]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
649 | LIB_PTHREAD | |
a5f46f6a | 650 | UDEV_RULES |
ec6a6fbe AK |
651 | STATIC_LINK |
652 | STATICDIR | |
653 | SNAPSHOTS | |
e1b8a236 | 654 | SELINUX_LIBS |
ec6a6fbe AK |
655 | POOL |
656 | PKGCONFIG | |
657 | OWNER | |
658 | MIRRORS | |
659 | LVM_RELEASE_DATE | |
660 | LVM_RELEASE | |
661 | LVM_PATCHLEVEL | |
662 | LVM_MINOR | |
663 | LVM_MAJOR | |
bf456146 | 664 | LVM_LIBAPI |
ec6a6fbe | 665 | LVM_VERSION |
ec6a6fbe AK |
666 | LVM1_FALLBACK |
667 | LVM1 | |
668 | LOCALEDIR | |
669 | LIB_SUFFIX | |
670 | LDDEPS | |
671 | JOBS | |
672 | INTL_PACKAGE | |
673 | INTL | |
674 | HAVE_SELINUX | |
675 | HAVE_REALTIME | |
676 | HAVE_LIBDL | |
677 | GROUP | |
678 | FSADM | |
679 | DM_LIB_PATCHLEVEL | |
680 | DM_LIB_VERSION | |
681 | DM_IOCTLS | |
682 | DM_DEVICE_UID | |
683 | DM_DEVICE_MODE | |
684 | DM_DEVICE_GID | |
685 | DM_COMPAT | |
686 | DMEVENTD | |
687 | DEVMAPPER | |
688 | DEBUG | |
689 | COPTIMISE_FLAG | |
e2997b73 | 690 | CONFDIR |
ec6a6fbe AK |
691 | CMDLIB |
692 | CLVMD | |
693 | CLUSTER | |
694 | CLDWHOLEARCHIVE | |
695 | CLDNOWHOLEARCHIVE | |
696 | CLDFLAGS | |
697 | BUILD_DMEVENTD | |
66fd4529 | 698 | BUILD_CMIRRORD |
572fefeb | 699 | APPLIB |
ec6a6fbe AK |
700 | MODPROBE_CMD |
701 | MSGFMT | |
702 | LVM2CMD_LIB | |
572fefeb | 703 | LVM2APP_LIB |
ec6a6fbe AK |
704 | GENHTML |
705 | LCOV | |
90c80887 AK |
706 | SACKPT_LIBS |
707 | SACKPT_CFLAGS | |
a946372e AK |
708 | DLM_LIBS |
709 | DLM_CFLAGS | |
e2997b73 AK |
710 | CPG_LIBS |
711 | CPG_CFLAGS | |
712 | CONFDB_LIBS | |
713 | CONFDB_CFLAGS | |
a946372e AK |
714 | SALCK_LIBS |
715 | SALCK_CFLAGS | |
e2997b73 AK |
716 | QUORUM_LIBS |
717 | QUORUM_CFLAGS | |
a946372e AK |
718 | COROSYNC_LIBS |
719 | COROSYNC_CFLAGS | |
720 | CMAN_LIBS | |
721 | CMAN_CFLAGS | |
722 | GULM_LIBS | |
723 | GULM_CFLAGS | |
724 | CCS_LIBS | |
725 | CCS_CFLAGS | |
726 | PKGCONFIGINIT_LIBS | |
727 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 728 | PKG_CONFIG |
ec6a6fbe AK |
729 | POW_LIB |
730 | LIBOBJS | |
731 | ALLOCA | |
732 | CSCOPE_CMD | |
733 | CFLOW_CMD | |
734 | RANLIB | |
735 | MKDIR_P | |
736 | SET_MAKE | |
737 | LN_S | |
738 | INSTALL_DATA | |
739 | INSTALL_SCRIPT | |
740 | INSTALL_PROGRAM | |
741 | EGREP | |
742 | GREP | |
743 | CPP | |
744 | OBJEXT | |
745 | EXEEXT | |
746 | ac_ct_CC | |
747 | CPPFLAGS | |
748 | LDFLAGS | |
749 | CFLAGS | |
750 | CC | |
751 | AWK | |
752 | SED | |
753 | target_os | |
754 | target_vendor | |
755 | target_cpu | |
756 | target | |
757 | host_os | |
758 | host_vendor | |
759 | host_cpu | |
760 | host | |
761 | build_os | |
762 | build_vendor | |
763 | build_cpu | |
764 | build | |
765 | target_alias | |
766 | host_alias | |
767 | build_alias | |
768 | LIBS | |
769 | ECHO_T | |
770 | ECHO_N | |
771 | ECHO_C | |
772 | DEFS | |
773 | mandir | |
774 | localedir | |
775 | libdir | |
776 | psdir | |
777 | pdfdir | |
778 | dvidir | |
779 | htmldir | |
780 | infodir | |
781 | docdir | |
782 | oldincludedir | |
783 | includedir | |
784 | localstatedir | |
785 | sharedstatedir | |
786 | sysconfdir | |
787 | datadir | |
788 | datarootdir | |
789 | libexecdir | |
790 | sbindir | |
791 | bindir | |
792 | program_transform_name | |
793 | prefix | |
794 | exec_prefix | |
795 | PACKAGE_BUGREPORT | |
796 | PACKAGE_STRING | |
797 | PACKAGE_VERSION | |
798 | PACKAGE_TARNAME | |
799 | PACKAGE_NAME | |
800 | PATH_SEPARATOR | |
801 | SHELL' | |
ad6254c5 | 802 | ac_subst_files='' |
ec6a6fbe AK |
803 | ac_user_opts=' |
804 | enable_option_checking | |
805 | enable_static_link | |
806 | with_user | |
807 | with_group | |
808 | with_device_uid | |
809 | with_device_gid | |
810 | with_device_mode | |
811 | enable_lvm1_fallback | |
812 | with_lvm1 | |
813 | with_pool | |
814 | with_cluster | |
815 | with_snapshots | |
816 | with_mirrors | |
817 | enable_readline | |
818 | enable_realtime | |
819 | with_clvmd | |
66fd4529 AK |
820 | enable_cmirrord |
821 | with_cmirrord_pidfile | |
ec6a6fbe AK |
822 | enable_debug |
823 | with_optimisation | |
824 | enable_profiling | |
825 | enable_devmapper | |
a5f46f6a AK |
826 | enable_udev_sync |
827 | enable_udev_rules | |
ec6a6fbe | 828 | enable_compat |
95eaa683 | 829 | enable_units_compat |
ec6a6fbe AK |
830 | enable_ioctl |
831 | enable_o_direct | |
572fefeb | 832 | enable_applib |
ec6a6fbe AK |
833 | enable_cmdlib |
834 | enable_pkgconfig | |
835 | enable_fsadm | |
836 | enable_dmeventd | |
837 | enable_selinux | |
838 | enable_nls | |
839 | with_localedir | |
840 | with_confdir | |
841 | with_staticdir | |
842 | with_usrlibdir | |
843 | with_usrsbindir | |
a5f46f6a | 844 | with_udev_prefix |
78ce7acc | 845 | with_udevdir |
ec6a6fbe AK |
846 | with_dmeventd_pidfile |
847 | with_dmeventd_path | |
848 | with_interface | |
849 | ' | |
7a197a62 AK |
850 | ac_precious_vars='build_alias |
851 | host_alias | |
852 | target_alias | |
853 | CC | |
854 | CFLAGS | |
855 | LDFLAGS | |
25fbec5b | 856 | LIBS |
7a197a62 | 857 | CPPFLAGS |
e2997b73 AK |
858 | CPP |
859 | PKG_CONFIG | |
a946372e AK |
860 | PKGCONFIGINIT_CFLAGS |
861 | PKGCONFIGINIT_LIBS | |
862 | CCS_CFLAGS | |
863 | CCS_LIBS | |
864 | GULM_CFLAGS | |
865 | GULM_LIBS | |
866 | CMAN_CFLAGS | |
867 | CMAN_LIBS | |
868 | COROSYNC_CFLAGS | |
869 | COROSYNC_LIBS | |
e2997b73 AK |
870 | QUORUM_CFLAGS |
871 | QUORUM_LIBS | |
a946372e AK |
872 | SALCK_CFLAGS |
873 | SALCK_LIBS | |
e2997b73 AK |
874 | CONFDB_CFLAGS |
875 | CONFDB_LIBS | |
876 | CPG_CFLAGS | |
a946372e AK |
877 | CPG_LIBS |
878 | DLM_CFLAGS | |
90c80887 AK |
879 | DLM_LIBS |
880 | SACKPT_CFLAGS | |
881 | SACKPT_LIBS' | |
7a197a62 | 882 | |
795ca3e5 AK |
883 | |
884 | # Initialize some variables set by options. | |
ad6254c5 AK |
885 | ac_init_help= |
886 | ac_init_version=false | |
ec6a6fbe AK |
887 | ac_unrecognized_opts= |
888 | ac_unrecognized_sep= | |
795ca3e5 AK |
889 | # The variables have the same names as the options, with |
890 | # dashes changed to underlines. | |
ad6254c5 | 891 | cache_file=/dev/null |
795ca3e5 | 892 | exec_prefix=NONE |
795ca3e5 | 893 | no_create= |
795ca3e5 AK |
894 | no_recursion= |
895 | prefix=NONE | |
896 | program_prefix=NONE | |
897 | program_suffix=NONE | |
898 | program_transform_name=s,x,x, | |
899 | silent= | |
900 | site= | |
901 | srcdir= | |
795ca3e5 AK |
902 | verbose= |
903 | x_includes=NONE | |
904 | x_libraries=NONE | |
ad6254c5 AK |
905 | |
906 | # Installation directory options. | |
907 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
908 | # and all the variables that are supposed to be based on exec_prefix | |
909 | # by default will actually change. | |
910 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 911 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
912 | bindir='${exec_prefix}/bin' |
913 | sbindir='${exec_prefix}/sbin' | |
914 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
915 | datarootdir='${prefix}/share' |
916 | datadir='${datarootdir}' | |
795ca3e5 AK |
917 | sysconfdir='${prefix}/etc' |
918 | sharedstatedir='${prefix}/com' | |
919 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
920 | includedir='${prefix}/include' |
921 | oldincludedir='/usr/include' | |
7a197a62 AK |
922 | docdir='${datarootdir}/doc/${PACKAGE}' |
923 | infodir='${datarootdir}/info' | |
924 | htmldir='${docdir}' | |
925 | dvidir='${docdir}' | |
926 | pdfdir='${docdir}' | |
927 | psdir='${docdir}' | |
928 | libdir='${exec_prefix}/lib' | |
929 | localedir='${datarootdir}/locale' | |
930 | mandir='${datarootdir}/man' | |
795ca3e5 | 931 | |
795ca3e5 | 932 | ac_prev= |
7a197a62 | 933 | ac_dashdash= |
795ca3e5 AK |
934 | for ac_option |
935 | do | |
795ca3e5 AK |
936 | # If the previous option needs an argument, assign it. |
937 | if test -n "$ac_prev"; then | |
7a197a62 | 938 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
939 | ac_prev= |
940 | continue | |
941 | fi | |
942 | ||
7a197a62 AK |
943 | case $ac_option in |
944 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
945 | *) ac_optarg=yes ;; | |
946 | esac | |
795ca3e5 AK |
947 | |
948 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
949 | ||
7a197a62 AK |
950 | case $ac_dashdash$ac_option in |
951 | --) | |
952 | ac_dashdash=yes ;; | |
795ca3e5 AK |
953 | |
954 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
955 | ac_prev=bindir ;; | |
956 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 957 | bindir=$ac_optarg ;; |
795ca3e5 AK |
958 | |
959 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 960 | ac_prev=build_alias ;; |
795ca3e5 | 961 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 962 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
963 | |
964 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
965 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
966 | ac_prev=cache_file ;; | |
967 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
968 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
969 | cache_file=$ac_optarg ;; |
970 | ||
971 | --config-cache | -C) | |
972 | cache_file=config.cache ;; | |
795ca3e5 | 973 | |
7a197a62 | 974 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 975 | ac_prev=datadir ;; |
7a197a62 | 976 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 977 | datadir=$ac_optarg ;; |
795ca3e5 | 978 | |
7a197a62 AK |
979 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
980 | | --dataroo | --dataro | --datar) | |
981 | ac_prev=datarootdir ;; | |
982 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
983 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
984 | datarootdir=$ac_optarg ;; | |
985 | ||
795ca3e5 | 986 | -disable-* | --disable-*) |
ec6a6fbe | 987 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 988 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
989 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
990 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 991 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
992 | ac_useropt_orig=$ac_useropt |
993 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
994 | case $ac_user_opts in | |
995 | *" | |
996 | "enable_$ac_useropt" | |
997 | "*) ;; | |
998 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
999 | ac_unrecognized_sep=', ';; | |
1000 | esac | |
1001 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1002 | |
1003 | -docdir | --docdir | --docdi | --doc | --do) | |
1004 | ac_prev=docdir ;; | |
1005 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1006 | docdir=$ac_optarg ;; | |
1007 | ||
1008 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1009 | ac_prev=dvidir ;; | |
1010 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1011 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1012 | |
1013 | -enable-* | --enable-*) | |
ec6a6fbe | 1014 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1015 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1016 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1017 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1018 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1019 | ac_useropt_orig=$ac_useropt |
1020 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1021 | case $ac_user_opts in | |
1022 | *" | |
1023 | "enable_$ac_useropt" | |
1024 | "*) ;; | |
1025 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1026 | ac_unrecognized_sep=', ';; | |
1027 | esac | |
1028 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1029 | |
1030 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1031 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1032 | | --exec | --exe | --ex) | |
1033 | ac_prev=exec_prefix ;; | |
1034 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1035 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1036 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1037 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1038 | |
1039 | -gas | --gas | --ga | --g) | |
1040 | # Obsolete; use --with-gas. | |
1041 | with_gas=yes ;; | |
1042 | ||
ad6254c5 AK |
1043 | -help | --help | --hel | --he | -h) |
1044 | ac_init_help=long ;; | |
1045 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1046 | ac_init_help=recursive ;; | |
1047 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1048 | ac_init_help=short ;; | |
795ca3e5 AK |
1049 | |
1050 | -host | --host | --hos | --ho) | |
ad6254c5 | 1051 | ac_prev=host_alias ;; |
795ca3e5 | 1052 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1053 | host_alias=$ac_optarg ;; |
795ca3e5 | 1054 | |
7a197a62 AK |
1055 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1056 | ac_prev=htmldir ;; | |
1057 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1058 | | --ht=*) | |
1059 | htmldir=$ac_optarg ;; | |
1060 | ||
795ca3e5 AK |
1061 | -includedir | --includedir | --includedi | --included | --include \ |
1062 | | --includ | --inclu | --incl | --inc) | |
1063 | ac_prev=includedir ;; | |
1064 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1065 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1066 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1067 | |
1068 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1069 | ac_prev=infodir ;; | |
1070 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1071 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1072 | |
1073 | -libdir | --libdir | --libdi | --libd) | |
1074 | ac_prev=libdir ;; | |
1075 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1076 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1077 | |
1078 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1079 | | --libexe | --libex | --libe) | |
1080 | ac_prev=libexecdir ;; | |
1081 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1082 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1083 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1084 | |
7a197a62 AK |
1085 | -localedir | --localedir | --localedi | --localed | --locale) |
1086 | ac_prev=localedir ;; | |
1087 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1088 | localedir=$ac_optarg ;; | |
1089 | ||
795ca3e5 | 1090 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1091 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1092 | ac_prev=localstatedir ;; |
1093 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1094 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1095 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1098 | ac_prev=mandir ;; | |
1099 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1100 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1101 | |
1102 | -nfp | --nfp | --nf) | |
1103 | # Obsolete; use --without-fp. | |
1104 | with_fp=no ;; | |
1105 | ||
1106 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1107 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1108 | no_create=yes ;; |
1109 | ||
1110 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1111 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1112 | no_recursion=yes ;; | |
1113 | ||
1114 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1115 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1116 | | --oldin | --oldi | --old | --ol | --o) | |
1117 | ac_prev=oldincludedir ;; | |
1118 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1119 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1120 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1121 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1122 | |
1123 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1124 | ac_prev=prefix ;; | |
1125 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1126 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1127 | |
1128 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1129 | | --program-pre | --program-pr | --program-p) | |
1130 | ac_prev=program_prefix ;; | |
1131 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1132 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1133 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1134 | |
1135 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1136 | | --program-suf | --program-su | --program-s) | |
1137 | ac_prev=program_suffix ;; | |
1138 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1139 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1140 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1141 | |
1142 | -program-transform-name | --program-transform-name \ | |
1143 | | --program-transform-nam | --program-transform-na \ | |
1144 | | --program-transform-n | --program-transform- \ | |
1145 | | --program-transform | --program-transfor \ | |
1146 | | --program-transfo | --program-transf \ | |
1147 | | --program-trans | --program-tran \ | |
1148 | | --progr-tra | --program-tr | --program-t) | |
1149 | ac_prev=program_transform_name ;; | |
1150 | -program-transform-name=* | --program-transform-name=* \ | |
1151 | | --program-transform-nam=* | --program-transform-na=* \ | |
1152 | | --program-transform-n=* | --program-transform-=* \ | |
1153 | | --program-transform=* | --program-transfor=* \ | |
1154 | | --program-transfo=* | --program-transf=* \ | |
1155 | | --program-trans=* | --program-tran=* \ | |
1156 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1157 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1158 | |
7a197a62 AK |
1159 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1160 | ac_prev=pdfdir ;; | |
1161 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1162 | pdfdir=$ac_optarg ;; | |
1163 | ||
1164 | -psdir | --psdir | --psdi | --psd | --ps) | |
1165 | ac_prev=psdir ;; | |
1166 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1167 | psdir=$ac_optarg ;; | |
1168 | ||
795ca3e5 AK |
1169 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1170 | | -silent | --silent | --silen | --sile | --sil) | |
1171 | silent=yes ;; | |
1172 | ||
1173 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1174 | ac_prev=sbindir ;; | |
1175 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1176 | | --sbi=* | --sb=*) | |
ad6254c5 | 1177 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1178 | |
1179 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1180 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1181 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1182 | | --sha | --sh) | |
1183 | ac_prev=sharedstatedir ;; | |
1184 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1185 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1186 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1187 | | --sha=* | --sh=*) | |
ad6254c5 | 1188 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1189 | |
1190 | -site | --site | --sit) | |
1191 | ac_prev=site ;; | |
1192 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1193 | site=$ac_optarg ;; |
795ca3e5 AK |
1194 | |
1195 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1196 | ac_prev=srcdir ;; | |
1197 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1198 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1199 | |
1200 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1201 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1202 | ac_prev=sysconfdir ;; | |
1203 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1204 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1205 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1206 | |
1207 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1208 | ac_prev=target_alias ;; |
795ca3e5 | 1209 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1210 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1211 | |
1212 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1213 | verbose=yes ;; | |
1214 | ||
ad6254c5 AK |
1215 | -version | --version | --versio | --versi | --vers | -V) |
1216 | ac_init_version=: ;; | |
795ca3e5 AK |
1217 | |
1218 | -with-* | --with-*) | |
ec6a6fbe | 1219 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1220 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1221 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1222 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1223 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1224 | ac_useropt_orig=$ac_useropt |
1225 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1226 | case $ac_user_opts in | |
1227 | *" | |
1228 | "with_$ac_useropt" | |
1229 | "*) ;; | |
1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1231 | ac_unrecognized_sep=', ';; | |
1232 | esac | |
1233 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1234 | |
1235 | -without-* | --without-*) | |
ec6a6fbe | 1236 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1237 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1239 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1240 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1241 | ac_useropt_orig=$ac_useropt |
1242 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1243 | case $ac_user_opts in | |
1244 | *" | |
1245 | "with_$ac_useropt" | |
1246 | "*) ;; | |
1247 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1248 | ac_unrecognized_sep=', ';; | |
1249 | esac | |
1250 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1251 | |
1252 | --x) | |
1253 | # Obsolete; use --with-x. | |
1254 | with_x=yes ;; | |
1255 | ||
1256 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1257 | | --x-incl | --x-inc | --x-in | --x-i) | |
1258 | ac_prev=x_includes ;; | |
1259 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1260 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1261 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1262 | |
1263 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1264 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1265 | ac_prev=x_libraries ;; | |
1266 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1267 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1268 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1269 | |
ec6a6fbe | 1270 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1271 | Try \`$0 --help' for more information." >&2 |
1272 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1273 | ;; |
1274 | ||
ad6254c5 AK |
1275 | *=*) |
1276 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1277 | # Reject names that are not valid shell variable names. | |
1278 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1279 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1280 | { (exit 1); exit 1; }; } |
7a197a62 | 1281 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1282 | export $ac_envvar ;; |
1283 | ||
795ca3e5 | 1284 | *) |
ad6254c5 | 1285 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1286 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1287 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1288 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1289 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1290 | ;; |
1291 | ||
1292 | esac | |
1293 | done | |
1294 | ||
1295 | if test -n "$ac_prev"; then | |
ad6254c5 | 1296 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1297 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1298 | { (exit 1); exit 1; }; } |
795ca3e5 | 1299 | fi |
795ca3e5 | 1300 | |
ec6a6fbe AK |
1301 | if test -n "$ac_unrecognized_opts"; then |
1302 | case $enable_option_checking in | |
1303 | no) ;; | |
1304 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1305 | { (exit 1); exit 1; }; } ;; | |
1306 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1307 | esac | |
1308 | fi | |
1309 | ||
1310 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1311 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1312 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1313 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1314 | libdir localedir mandir | |
795ca3e5 | 1315 | do |
7a197a62 | 1316 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1317 | # Remove trailing slashes. |
1318 | case $ac_val in | |
1319 | */ ) | |
1320 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1321 | eval $ac_var=\$ac_val;; | |
1322 | esac | |
1323 | # Be sure to have absolute directory names. | |
ad6254c5 | 1324 | case $ac_val in |
7a197a62 AK |
1325 | [\\/$]* | ?:[\\/]* ) continue;; |
1326 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1327 | esac |
ec6a6fbe | 1328 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1329 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1330 | done |
1331 | ||
ad6254c5 AK |
1332 | # There might be people who depend on the old broken behavior: `$host' |
1333 | # used to hold the argument of --host etc. | |
1334 | # FIXME: To remove some day. | |
1335 | build=$build_alias | |
1336 | host=$host_alias | |
1337 | target=$target_alias | |
1338 | ||
1339 | # FIXME: To remove some day. | |
1340 | if test "x$host_alias" != x; then | |
1341 | if test "x$build_alias" = x; then | |
1342 | cross_compiling=maybe | |
ec6a6fbe | 1343 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1344 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1345 | elif test "x$build_alias" != "x$host_alias"; then | |
1346 | cross_compiling=yes | |
1347 | fi | |
1348 | fi | |
8106cdd5 | 1349 | |
ad6254c5 AK |
1350 | ac_tool_prefix= |
1351 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1352 | ||
1353 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1354 | |
795ca3e5 | 1355 | |
7a197a62 AK |
1356 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1357 | ac_ls_di=`ls -di .` && | |
1358 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1359 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1360 | { (exit 1); exit 1; }; } |
1361 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1362 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1363 | { (exit 1); exit 1; }; } |
1364 | ||
1365 | ||
795ca3e5 AK |
1366 | # Find the source files, if location was not specified. |
1367 | if test -z "$srcdir"; then | |
1368 | ac_srcdir_defaulted=yes | |
7a197a62 | 1369 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1370 | ac_confdir=`$as_dirname -- "$as_myself" || |
1371 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1372 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1373 | X"$as_myself" : 'X\(//\)$' \| \ | |
1374 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1375 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1376 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\/\)[^/].*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)$/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\).*/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | s/.*/./; q'` | |
795ca3e5 | 1393 | srcdir=$ac_confdir |
7a197a62 | 1394 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1395 | srcdir=.. |
1396 | fi | |
1397 | else | |
1398 | ac_srcdir_defaulted=no | |
1399 | fi | |
7a197a62 AK |
1400 | if test ! -r "$srcdir/$ac_unique_file"; then |
1401 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1402 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1403 | { (exit 1); exit 1; }; } |
795ca3e5 | 1404 | fi |
7a197a62 AK |
1405 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1406 | ac_abs_confdir=`( | |
ec6a6fbe | 1407 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1408 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1409 | pwd)` |
1410 | # When building in place, set srcdir=. | |
1411 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1412 | srcdir=. | |
1413 | fi | |
1414 | # Remove unnecessary trailing slashes from srcdir. | |
1415 | # Double slashes in file names in object file debugging info | |
1416 | # mess up M-x gdb in Emacs. | |
1417 | case $srcdir in | |
1418 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1419 | esac | |
1420 | for ac_var in $ac_precious_vars; do | |
1421 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1422 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1423 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1424 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1425 | done | |
ad6254c5 AK |
1426 | |
1427 | # | |
1428 | # Report the --help message. | |
1429 | # | |
1430 | if test "$ac_init_help" = "long"; then | |
1431 | # Omit some internal or obsolete options to make the list less imposing. | |
1432 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1433 | cat <<_ACEOF | |
1434 | \`configure' configures this package to adapt to many kinds of systems. | |
1435 | ||
1436 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1437 | ||
1438 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1439 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1440 | ||
1441 | Defaults for the options are specified in brackets. | |
1442 | ||
1443 | Configuration: | |
1444 | -h, --help display this help and exit | |
1445 | --help=short display options specific to this package | |
1446 | --help=recursive display the short help of all the included packages | |
1447 | -V, --version display version information and exit | |
1448 | -q, --quiet, --silent do not print \`checking...' messages | |
1449 | --cache-file=FILE cache test results in FILE [disabled] | |
1450 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1451 | -n, --no-create do not create output files | |
1452 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1453 | ||
ad6254c5 AK |
1454 | Installation directories: |
1455 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1456 | [$ac_default_prefix] |
ad6254c5 | 1457 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1458 | [PREFIX] |
ad6254c5 AK |
1459 | |
1460 | By default, \`make install' will install all the files in | |
1461 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1462 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1463 | for instance \`--prefix=\$HOME'. | |
1464 | ||
1465 | For better control, use the options below. | |
1466 | ||
1467 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1468 | --bindir=DIR user executables [EPREFIX/bin] |
1469 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1470 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1471 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1472 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1473 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1474 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1475 | --includedir=DIR C header files [PREFIX/include] | |
1476 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1477 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1478 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1479 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1480 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1481 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1482 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1483 | --htmldir=DIR html documentation [DOCDIR] | |
1484 | --dvidir=DIR dvi documentation [DOCDIR] | |
1485 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1486 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1487 | _ACEOF |
1488 | ||
1489 | cat <<\_ACEOF | |
1490 | ||
1491 | System types: | |
1492 | --build=BUILD configure for building on BUILD [guessed] | |
1493 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1494 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1495 | _ACEOF | |
1496 | fi | |
1497 | ||
1498 | if test -n "$ac_init_help"; then | |
1499 | ||
1500 | cat <<\_ACEOF | |
1501 | ||
1502 | Optional Features: | |
ec6a6fbe | 1503 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1504 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1505 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1506 | --enable-static_link Use this to link the tools to their libraries |
1507 | statically. Default is dynamic linking | |
ad6254c5 AK |
1508 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1509 | device-mapper is missing from the kernel | |
1b523347 | 1510 | --disable-readline Disable readline support |
89044bc0 | 1511 | --enable-realtime Enable realtime clock support |
66fd4529 | 1512 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1513 | --enable-debug Enable debugging |
5556819a | 1514 | --enable-profiling Gather gcov profiling data |
93bd259b | 1515 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1516 | --enable-udev_sync Enable synchronisation with udev processing |
1517 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1518 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1519 | --enable-units-compat Enable output compatibility with old versions that |
1520 | that don't use KiB-style unit suffixes | |
93bd259b | 1521 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1522 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1523 | --enable-applib Build application library |
ad6254c5 | 1524 | --enable-cmdlib Build shared command library |
93bd259b | 1525 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1526 | --enable-fsadm Enable fsadm |
15d91f5a | 1527 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1528 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1529 | --enable-nls Enable Native Language Support |
1530 | ||
1531 | Optional Packages: | |
1532 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1533 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1534 | --with-user=USER Set the owner of installed files [USER=] |
1535 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1536 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1537 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1538 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1539 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1540 | TYPE=internal | |
1541 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1542 | TYPE=internal | |
1543 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1544 | TYPE=internal | |
1545 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1546 | TYPE=internal | |
1547 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1548 | TYPE=internal | |
a946372e | 1549 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1550 | The following cluster manager combinations are valid: |
a946372e AK |
1551 | * cman,gulm (RHEL4 or equivalent) |
1552 | * cman (RHEL5 or equivalent) | |
1553 | * cman,corosync,openais (or selection of them) | |
1554 | * all (autodetect) | |
1555 | * none (disable build) | |
a266258f | 1556 | TYPE=none |
66fd4529 | 1557 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1558 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1559 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1560 | --with-confdir=DIR Configuration files in DIR [/etc] |
1561 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1562 | --with-usrlibdir=DIR |
1563 | --with-usrsbindir=DIR | |
a5f46f6a | 1564 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1565 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1566 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1567 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1568 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1569 | |
1570 | Some influential environment variables: | |
1571 | CC C compiler command | |
1572 | CFLAGS C compiler flags | |
1573 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1574 | nonstandard directory <lib dir> | |
25fbec5b | 1575 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1576 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1577 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1578 | CPP C preprocessor |
e2997b73 | 1579 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1580 | PKGCONFIGINIT_CFLAGS |
1581 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1582 | PKGCONFIGINIT_LIBS | |
1583 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1584 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1585 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1586 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1587 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1588 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1589 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1590 | COROSYNC_CFLAGS | |
1591 | C compiler flags for COROSYNC, overriding pkg-config | |
1592 | COROSYNC_LIBS | |
1593 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1594 | QUORUM_CFLAGS |
1595 | C compiler flags for QUORUM, overriding pkg-config | |
1596 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1597 | SALCK_CFLAGS |
1598 | C compiler flags for SALCK, overriding pkg-config | |
1599 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1600 | CONFDB_CFLAGS |
1601 | C compiler flags for CONFDB, overriding pkg-config | |
1602 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1603 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1604 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1605 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1606 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1607 | SACKPT_CFLAGS |
1608 | C compiler flags for SACKPT, overriding pkg-config | |
1609 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1610 | |
1611 | Use these variables to override the choices made by `configure' or to help | |
1612 | it to find libraries and programs with nonstandard names/locations. | |
1613 | ||
1614 | _ACEOF | |
7a197a62 | 1615 | ac_status=$? |
ad6254c5 AK |
1616 | fi |
1617 | ||
1618 | if test "$ac_init_help" = "recursive"; then | |
1619 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1620 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1621 | test -d "$ac_dir" || |
1622 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1623 | continue | |
ad6254c5 AK |
1624 | ac_builddir=. |
1625 | ||
7a197a62 AK |
1626 | case "$ac_dir" in |
1627 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1628 | *) | |
ec6a6fbe | 1629 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1630 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1631 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1632 | case $ac_top_builddir_sub in |
1633 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1634 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1635 | esac ;; | |
1636 | esac | |
1637 | ac_abs_top_builddir=$ac_pwd | |
1638 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1639 | # for backward compatibility: | |
1640 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1641 | |
1642 | case $srcdir in | |
7a197a62 | 1643 | .) # We are building in place. |
ad6254c5 | 1644 | ac_srcdir=. |
7a197a62 AK |
1645 | ac_top_srcdir=$ac_top_builddir_sub |
1646 | ac_abs_top_srcdir=$ac_pwd ;; | |
1647 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1648 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1649 | ac_top_srcdir=$srcdir |
1650 | ac_abs_top_srcdir=$srcdir ;; | |
1651 | *) # Relative name. | |
1652 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1653 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1654 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1655 | esac |
7a197a62 AK |
1656 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1657 | ||
1658 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1659 | # Check for guested configure. | |
1660 | if test -f "$ac_srcdir/configure.gnu"; then | |
1661 | echo && | |
1662 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1663 | elif test -f "$ac_srcdir/configure"; then | |
1664 | echo && | |
1665 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1666 | else |
ec6a6fbe | 1667 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1668 | fi || ac_status=$? |
1669 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1670 | done |
1671 | fi | |
1672 | ||
7a197a62 | 1673 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1674 | if $ac_init_version; then |
1675 | cat <<\_ACEOF | |
7a197a62 | 1676 | configure |
ec6a6fbe | 1677 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1678 | |
7a197a62 | 1679 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1680 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1681 | This configure script is free software; the Free Software Foundation |
1682 | gives unlimited permission to copy, distribute and modify it. | |
1683 | _ACEOF | |
7a197a62 | 1684 | exit |
ad6254c5 | 1685 | fi |
7a197a62 | 1686 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1687 | This file contains any messages produced by compilers while |
1688 | running configure, to aid debugging if configure makes a mistake. | |
1689 | ||
1690 | It was created by $as_me, which was | |
ec6a6fbe | 1691 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1692 | |
1693 | $ $0 $@ | |
1694 | ||
1695 | _ACEOF | |
7a197a62 | 1696 | exec 5>>config.log |
ad6254c5 AK |
1697 | { |
1698 | cat <<_ASUNAME | |
1699 | ## --------- ## | |
1700 | ## Platform. ## | |
1701 | ## --------- ## | |
1702 | ||
1703 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1704 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1705 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1706 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1707 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1708 | ||
1709 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1710 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1711 | ||
1712 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1713 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1714 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1715 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1716 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1717 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1718 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1719 | ||
1720 | _ASUNAME | |
1721 | ||
1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1723 | for as_dir in $PATH | |
1724 | do | |
1725 | IFS=$as_save_IFS | |
1726 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1727 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1728 | done |
7a197a62 | 1729 | IFS=$as_save_IFS |
ad6254c5 AK |
1730 | |
1731 | } >&5 | |
1732 | ||
1733 | cat >&5 <<_ACEOF | |
1734 | ||
1735 | ||
1736 | ## ----------- ## | |
1737 | ## Core tests. ## | |
1738 | ## ----------- ## | |
1739 | ||
1740 | _ACEOF | |
1741 | ||
1742 | ||
1743 | # Keep a trace of the command line. | |
1744 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1745 | # Strip out --silent because we don't want to record it for future runs. | |
1746 | # Also quote any args containing shell meta-characters. | |
1747 | # Make two passes to allow for proper duplicate-argument suppression. | |
1748 | ac_configure_args= | |
1749 | ac_configure_args0= | |
1750 | ac_configure_args1= | |
ad6254c5 AK |
1751 | ac_must_keep_next=false |
1752 | for ac_pass in 1 2 | |
1753 | do | |
1754 | for ac_arg | |
1755 | do | |
1756 | case $ac_arg in | |
1757 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1758 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1759 | | -silent | --silent | --silen | --sile | --sil) | |
1760 | continue ;; | |
7a197a62 | 1761 | *\'*) |
ec6a6fbe | 1762 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1763 | esac |
1764 | case $ac_pass in | |
1765 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1766 | 2) | |
1767 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1768 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1769 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1770 | else |
8a2fc586 AK |
1771 | case $ac_arg in |
1772 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1773 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1774 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1775 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1776 | case "$ac_configure_args0 " in | |
1777 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1778 | esac | |
1779 | ;; | |
1780 | -* ) ac_must_keep_next=true ;; | |
1781 | esac | |
ad6254c5 | 1782 | fi |
7a197a62 | 1783 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1784 | ;; |
1785 | esac | |
1786 | done | |
1787 | done | |
1788 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1789 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1790 | ||
1791 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1792 | # config.log. We remove comments because anyway the quotes in there | |
1793 | # would cause problems or look ugly. | |
7a197a62 AK |
1794 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1795 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1796 | trap 'exit_status=$? |
1797 | # Save into config.log some information that might help in debugging. | |
1798 | { | |
1799 | echo | |
1800 | ||
1801 | cat <<\_ASBOX | |
1802 | ## ---------------- ## | |
1803 | ## Cache variables. ## | |
1804 | ## ---------------- ## | |
1805 | _ASBOX | |
1806 | echo | |
1807 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1808 | ( |
1809 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1810 | eval ac_val=\$$ac_var | |
1811 | case $ac_val in #( | |
1812 | *${as_nl}*) | |
1813 | case $ac_var in #( | |
ec6a6fbe AK |
1814 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1815 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1816 | esac |
1817 | case $ac_var in #( | |
1818 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1819 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1820 | *) $as_unset $ac_var ;; |
1821 | esac ;; | |
1822 | esac | |
1823 | done | |
ad6254c5 | 1824 | (set) 2>&1 | |
7a197a62 AK |
1825 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1826 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1827 | sed -n \ |
7a197a62 AK |
1828 | "s/'\''/'\''\\\\'\'''\''/g; |
1829 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1830 | ;; #( | |
ad6254c5 | 1831 | *) |
7a197a62 | 1832 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1833 | ;; |
7a197a62 AK |
1834 | esac | |
1835 | sort | |
1836 | ) | |
ad6254c5 AK |
1837 | echo |
1838 | ||
1839 | cat <<\_ASBOX | |
1840 | ## ----------------- ## | |
1841 | ## Output variables. ## | |
1842 | ## ----------------- ## | |
1843 | _ASBOX | |
1844 | echo | |
1845 | for ac_var in $ac_subst_vars | |
1846 | do | |
7a197a62 AK |
1847 | eval ac_val=\$$ac_var |
1848 | case $ac_val in | |
ec6a6fbe | 1849 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1850 | esac |
ec6a6fbe | 1851 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1852 | done | sort |
1853 | echo | |
1854 | ||
1855 | if test -n "$ac_subst_files"; then | |
1856 | cat <<\_ASBOX | |
7a197a62 AK |
1857 | ## ------------------- ## |
1858 | ## File substitutions. ## | |
1859 | ## ------------------- ## | |
ad6254c5 AK |
1860 | _ASBOX |
1861 | echo | |
1862 | for ac_var in $ac_subst_files | |
1863 | do | |
7a197a62 AK |
1864 | eval ac_val=\$$ac_var |
1865 | case $ac_val in | |
ec6a6fbe | 1866 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1867 | esac |
ec6a6fbe | 1868 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1869 | done | sort |
1870 | echo | |
1871 | fi | |
1872 | ||
1873 | if test -s confdefs.h; then | |
1874 | cat <<\_ASBOX | |
1875 | ## ----------- ## | |
1876 | ## confdefs.h. ## | |
1877 | ## ----------- ## | |
1878 | _ASBOX | |
1879 | echo | |
7a197a62 | 1880 | cat confdefs.h |
ad6254c5 AK |
1881 | echo |
1882 | fi | |
1883 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1884 | $as_echo "$as_me: caught signal $ac_signal" |
1885 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1886 | } >&5 |
7a197a62 AK |
1887 | rm -f core *.core core.conftest.* && |
1888 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1889 | exit $exit_status |
7a197a62 | 1890 | ' 0 |
ad6254c5 AK |
1891 | for ac_signal in 1 2 13 15; do |
1892 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1893 | done | |
1894 | ac_signal=0 | |
1895 | ||
1896 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1897 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1898 | |
1899 | # Predefined preprocessor variables. | |
1900 | ||
1901 | cat >>confdefs.h <<_ACEOF | |
1902 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1903 | _ACEOF | |
1904 | ||
1905 | ||
1906 | cat >>confdefs.h <<_ACEOF | |
1907 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1908 | _ACEOF | |
1909 | ||
1910 | ||
1911 | cat >>confdefs.h <<_ACEOF | |
1912 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1913 | _ACEOF | |
8106cdd5 | 1914 | |
ad6254c5 AK |
1915 | |
1916 | cat >>confdefs.h <<_ACEOF | |
1917 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1918 | _ACEOF | |
1919 | ||
1920 | ||
1921 | cat >>confdefs.h <<_ACEOF | |
1922 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1923 | _ACEOF | |
1924 | ||
1925 | ||
1926 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1927 | # Prefer an explicitly selected file to automatically selected ones. |
1928 | ac_site_file1=NONE | |
1929 | ac_site_file2=NONE | |
7a197a62 | 1930 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1931 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1932 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1933 | ac_site_file1=$prefix/share/config.site |
1934 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1935 | else |
ec6a6fbe AK |
1936 | ac_site_file1=$ac_default_prefix/share/config.site |
1937 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1938 | fi |
ec6a6fbe | 1939 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1940 | do |
ec6a6fbe | 1941 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1942 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1943 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1944 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1945 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1946 | . "$ac_site_file" |
1947 | fi | |
1948 | done | |
1949 | ||
1950 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1951 | # Some versions of bash will fail to source /dev/null (special |
1952 | # files actually), so we avoid doing that. | |
1953 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1954 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1955 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1956 | case $cache_file in |
7a197a62 AK |
1957 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1958 | *) . "./$cache_file";; | |
ad6254c5 AK |
1959 | esac |
1960 | fi | |
795ca3e5 | 1961 | else |
ec6a6fbe AK |
1962 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1963 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1964 | >$cache_file |
1965 | fi | |
1966 | ||
1967 | # Check that the precious variables saved in the cache have kept the same | |
1968 | # value. | |
1969 | ac_cache_corrupted=false | |
7a197a62 | 1970 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1971 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1972 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1973 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1974 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1975 | case $ac_old_set,$ac_new_set in |
1976 | set,) | |
ec6a6fbe AK |
1977 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1978 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1979 | ac_cache_corrupted=: ;; |
1980 | ,set) | |
ec6a6fbe AK |
1981 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1982 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1983 | ac_cache_corrupted=: ;; |
1984 | ,);; | |
1985 | *) | |
1986 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1987 | # differences in whitespace do not lead to failure. |
1988 | ac_old_val_w=`echo x $ac_old_val` | |
1989 | ac_new_val_w=`echo x $ac_new_val` | |
1990 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1991 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1992 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1993 | ac_cache_corrupted=: | |
1994 | else | |
1995 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1996 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1997 | eval $ac_var=\$ac_old_val | |
1998 | fi | |
1999 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2000 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2001 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2002 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2003 | fi;; |
2004 | esac | |
2005 | # Pass precious variables to config.status. | |
2006 | if test "$ac_new_set" = set; then | |
2007 | case $ac_new_val in | |
ec6a6fbe | 2008 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2009 | *) ac_arg=$ac_var=$ac_new_val ;; |
2010 | esac | |
2011 | case " $ac_configure_args " in | |
2012 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2013 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2014 | esac | |
2015 | fi | |
2016 | done | |
2017 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2018 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2020 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2021 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2022 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2023 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2024 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2025 | fi |
2026 | ||
ad6254c5 AK |
2027 | |
2028 | ||
2029 | ||
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
7a197a62 AK |
2043 | ac_ext=c |
2044 | ac_cpp='$CPP $CPPFLAGS' | |
2045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2048 | |
795ca3e5 AK |
2049 | |
2050 | ||
7a197a62 | 2051 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2052 | |
2053 | ||
80992638 | 2054 | ################################################################################ |
795ca3e5 | 2055 | ac_aux_dir= |
7a197a62 AK |
2056 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2057 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2058 | ac_aux_dir=$ac_dir |
2059 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2060 | break | |
7a197a62 | 2061 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2062 | ac_aux_dir=$ac_dir |
2063 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2064 | break | |
7a197a62 | 2065 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2066 | ac_aux_dir=$ac_dir |
2067 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2068 | break | |
795ca3e5 AK |
2069 | fi |
2070 | done | |
2071 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2072 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2073 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2074 | { (exit 1); exit 1; }; } |
795ca3e5 | 2075 | fi |
7a197a62 AK |
2076 | |
2077 | # These three variables are undocumented and unsupported, | |
2078 | # and are intended to be withdrawn in a future Autoconf release. | |
2079 | # They can cause serious problems if a builder's source tree is in a directory | |
2080 | # whose full name contains unusual characters. | |
2081 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2082 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2083 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2084 | ||
8ce0cbda AK |
2085 | |
2086 | ||
ad6254c5 | 2087 | ################################################################################ |
8ce0cbda | 2088 | # Make sure we can run config.sub. |
7a197a62 | 2089 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2090 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2091 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2092 | { (exit 1); exit 1; }; } |
2093 | ||
ec6a6fbe AK |
2094 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2095 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2096 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2097 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2098 | else |
7a197a62 AK |
2099 | ac_build_alias=$build_alias |
2100 | test "x$ac_build_alias" = x && | |
2101 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2102 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2103 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2104 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2105 | { (exit 1); exit 1; }; } |
7a197a62 | 2106 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2107 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2108 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2109 | { (exit 1); exit 1; }; } |
2110 | ||
2111 | fi | |
ec6a6fbe AK |
2112 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2113 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2114 | case $ac_cv_build in |
2115 | *-*-*) ;; | |
ec6a6fbe AK |
2116 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2117 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2118 | { (exit 1); exit 1; }; };; |
2119 | esac | |
ad6254c5 | 2120 | build=$ac_cv_build |
7a197a62 AK |
2121 | ac_save_IFS=$IFS; IFS='-' |
2122 | set x $ac_cv_build | |
2123 | shift | |
2124 | build_cpu=$1 | |
2125 | build_vendor=$2 | |
2126 | shift; shift | |
2127 | # Remember, the first character of IFS is used to create $*, | |
2128 | # except with old shells: | |
2129 | build_os=$* | |
2130 | IFS=$ac_save_IFS | |
2131 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2132 | |
2133 | ||
ec6a6fbe AK |
2134 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2135 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2136 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2137 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2138 | else |
7a197a62 AK |
2139 | if test "x$host_alias" = x; then |
2140 | ac_cv_host=$ac_cv_build | |
2141 | else | |
2142 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2143 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2144 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2145 | { (exit 1); exit 1; }; } |
7a197a62 | 2146 | fi |
ad6254c5 AK |
2147 | |
2148 | fi | |
ec6a6fbe AK |
2149 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2150 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2151 | case $ac_cv_host in |
2152 | *-*-*) ;; | |
ec6a6fbe AK |
2153 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2154 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2155 | { (exit 1); exit 1; }; };; |
2156 | esac | |
ad6254c5 | 2157 | host=$ac_cv_host |
7a197a62 AK |
2158 | ac_save_IFS=$IFS; IFS='-' |
2159 | set x $ac_cv_host | |
2160 | shift | |
2161 | host_cpu=$1 | |
2162 | host_vendor=$2 | |
2163 | shift; shift | |
2164 | # Remember, the first character of IFS is used to create $*, | |
2165 | # except with old shells: | |
2166 | host_os=$* | |
2167 | IFS=$ac_save_IFS | |
2168 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2169 | |
2170 | ||
ec6a6fbe AK |
2171 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2172 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2173 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2174 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2175 | else |
7a197a62 AK |
2176 | if test "x$target_alias" = x; then |
2177 | ac_cv_target=$ac_cv_host | |
2178 | else | |
2179 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2180 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2181 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2182 | { (exit 1); exit 1; }; } |
7a197a62 | 2183 | fi |
8ce0cbda | 2184 | |
ad6254c5 | 2185 | fi |
ec6a6fbe AK |
2186 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2187 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2188 | case $ac_cv_target in |
2189 | *-*-*) ;; | |
ec6a6fbe AK |
2190 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2191 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2192 | { (exit 1); exit 1; }; };; |
2193 | esac | |
ad6254c5 | 2194 | target=$ac_cv_target |
7a197a62 AK |
2195 | ac_save_IFS=$IFS; IFS='-' |
2196 | set x $ac_cv_target | |
2197 | shift | |
2198 | target_cpu=$1 | |
2199 | target_vendor=$2 | |
2200 | shift; shift | |
2201 | # Remember, the first character of IFS is used to create $*, | |
2202 | # except with old shells: | |
2203 | target_os=$* | |
2204 | IFS=$ac_save_IFS | |
2205 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2206 | |
8ce0cbda | 2207 | |
ad6254c5 AK |
2208 | # The aliases save the names the user supplied, while $host etc. |
2209 | # will get canonicalized. | |
2210 | test -n "$target_alias" && | |
8ce0cbda AK |
2211 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2212 | NONENONEs,x,x, && | |
2213 | program_prefix=${target_alias}- | |
2214 | ||
8ce0cbda AK |
2215 | case "$host_os" in |
2216 | linux*) | |
7f54ef36 | 2217 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2218 | COPTIMISE_FLAG="-O2" |
2219 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2220 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2221 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2222 | LDDEPS="$LDDEPS .export.sym" | |
2223 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2224 | LIB_SUFFIX=so |
8ce0cbda AK |
2225 | DEVMAPPER=yes |
2226 | ODIRECT=yes | |
d0191583 | 2227 | DM_IOCTLS=yes |
8ce0cbda AK |
2228 | SELINUX=yes |
2229 | CLUSTER=internal | |
93bd259b | 2230 | FSADM=yes |
d0191583 | 2231 | ;; |
8ce0cbda AK |
2232 | darwin*) |
2233 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2234 | COPTIMISE_FLAG="-O2" | |
2235 | CLDFLAGS="$CLDFLAGS" | |
2236 | CLDWHOLEARCHIVE="-all_load" | |
2237 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2238 | LIB_SUFFIX=dylib |
a653923f | 2239 | DEVMAPPER=yes |
8ce0cbda | 2240 | ODIRECT=no |
d0191583 | 2241 | DM_IOCTLS=no |
8ce0cbda AK |
2242 | SELINUX=no |
2243 | CLUSTER=none | |
d0191583 JM |
2244 | FSADM=no |
2245 | ;; | |
8ce0cbda AK |
2246 | esac |
2247 | ||
80992638 | 2248 | ################################################################################ |
ec6a6fbe AK |
2249 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2250 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2251 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2252 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2253 | else |
2254 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2255 | for ac_i in 1 2 3 4 5 6 7; do | |
2256 | ac_script="$ac_script$as_nl$ac_script" | |
2257 | done | |
ec6a6fbe | 2258 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2259 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2260 | if test -z "$SED"; then |
5951ef33 | 2261 | ac_path_SED_found=false |
ec6a6fbe AK |
2262 | # Loop through the user's path and test for each of PROGNAME-LIST |
2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2264 | for as_dir in $PATH |
2265 | do | |
2266 | IFS=$as_save_IFS | |
2267 | test -z "$as_dir" && as_dir=. | |
2268 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2269 | for ac_exec_ext in '' $ac_executable_extensions; do |
2270 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2271 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2272 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2273 | # Check for GNU $ac_path_SED |
2274 | case `"$ac_path_SED" --version 2>&1` in | |
2275 | *GNU*) | |
2276 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2277 | *) | |
2278 | ac_count=0 | |
ec6a6fbe | 2279 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2280 | while : |
2281 | do | |
2282 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2283 | mv "conftest.tmp" "conftest.in" | |
2284 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2285 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2286 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2287 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2288 | ac_count=`expr $ac_count + 1` | |
2289 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2290 | # Best one so far, save it but keep looking for a better one | |
2291 | ac_cv_path_SED="$ac_path_SED" | |
2292 | ac_path_SED_max=$ac_count | |
2293 | fi | |
2294 | # 10*(2^10) chars as input seems more than enough | |
2295 | test $ac_count -gt 10 && break | |
2296 | done | |
2297 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2298 | esac | |
2299 | ||
ec6a6fbe AK |
2300 | $ac_path_SED_found && break 3 |
2301 | done | |
5951ef33 AK |
2302 | done |
2303 | done | |
5951ef33 | 2304 | IFS=$as_save_IFS |
ec6a6fbe AK |
2305 | if test -z "$ac_cv_path_SED"; then |
2306 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2307 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2308 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2309 | fi |
5951ef33 AK |
2310 | else |
2311 | ac_cv_path_SED=$SED | |
2312 | fi | |
2313 | ||
2314 | fi | |
ec6a6fbe AK |
2315 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2316 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2317 | SED="$ac_cv_path_SED" |
2318 | rm -f conftest.sed | |
2319 | ||
ad6254c5 | 2320 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2321 | do |
ad6254c5 | 2322 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2323 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2324 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2325 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2326 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2327 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2328 | else |
2329 | if test -n "$AWK"; then | |
2330 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2331 | else | |
ad6254c5 AK |
2332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2333 | for as_dir in $PATH | |
2334 | do | |
2335 | IFS=$as_save_IFS | |
2336 | test -z "$as_dir" && as_dir=. | |
2337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2339 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2340 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2341 | break 2 |
2342 | fi | |
2343 | done | |
2344 | done | |
7a197a62 | 2345 | IFS=$as_save_IFS |
ad6254c5 | 2346 | |
795ca3e5 AK |
2347 | fi |
2348 | fi | |
ad6254c5 | 2349 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2350 | if test -n "$AWK"; then |
ec6a6fbe AK |
2351 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2352 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2353 | else |
ec6a6fbe AK |
2354 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2355 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2356 | fi |
2357 | ||
7a197a62 | 2358 | |
ad6254c5 AK |
2359 | test -n "$AWK" && break |
2360 | done | |
2361 | ||
2362 | ac_ext=c | |
2363 | ac_cpp='$CPP $CPPFLAGS' | |
2364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2367 | if test -n "$ac_tool_prefix"; then | |
2368 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2369 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2370 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2371 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2372 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2373 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2374 | else |
2375 | if test -n "$CC"; then | |
2376 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2377 | else | |
2378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2379 | for as_dir in $PATH | |
2380 | do | |
2381 | IFS=$as_save_IFS | |
2382 | test -z "$as_dir" && as_dir=. | |
2383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2385 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2386 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2387 | break 2 |
2388 | fi | |
2389 | done | |
8106cdd5 | 2390 | done |
7a197a62 | 2391 | IFS=$as_save_IFS |
8106cdd5 | 2392 | |
ad6254c5 AK |
2393 | fi |
2394 | fi | |
2395 | CC=$ac_cv_prog_CC | |
2396 | if test -n "$CC"; then | |
ec6a6fbe AK |
2397 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2398 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2399 | else |
ec6a6fbe AK |
2400 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2401 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2402 | fi |
2403 | ||
7a197a62 | 2404 | |
ad6254c5 AK |
2405 | fi |
2406 | if test -z "$ac_cv_prog_CC"; then | |
2407 | ac_ct_CC=$CC | |
2408 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2409 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2410 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2411 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2412 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2413 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2414 | else |
2415 | if test -n "$ac_ct_CC"; then | |
2416 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2417 | else | |
2418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2419 | for as_dir in $PATH | |
2420 | do | |
2421 | IFS=$as_save_IFS | |
2422 | test -z "$as_dir" && as_dir=. | |
2423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2425 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2426 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2427 | break 2 |
2428 | fi | |
2429 | done | |
2430 | done | |
7a197a62 | 2431 | IFS=$as_save_IFS |
ad6254c5 AK |
2432 | |
2433 | fi | |
2434 | fi | |
2435 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2436 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2437 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2438 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2439 | else |
ec6a6fbe AK |
2440 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2441 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2442 | fi |
2443 | ||
7a197a62 AK |
2444 | if test "x$ac_ct_CC" = x; then |
2445 | CC="" | |
2446 | else | |
2447 | case $cross_compiling:$ac_tool_warned in | |
2448 | yes:) | |
ec6a6fbe AK |
2449 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2450 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2451 | ac_tool_warned=yes ;; |
2452 | esac | |
2453 | CC=$ac_ct_CC | |
2454 | fi | |
ad6254c5 AK |
2455 | else |
2456 | CC="$ac_cv_prog_CC" | |
2457 | fi | |
2458 | ||
2459 | if test -z "$CC"; then | |
7a197a62 AK |
2460 | if test -n "$ac_tool_prefix"; then |
2461 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2462 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2463 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2464 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2465 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2466 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2467 | else |
2468 | if test -n "$CC"; then | |
2469 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2470 | else | |
ad6254c5 AK |
2471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2472 | for as_dir in $PATH | |
2473 | do | |
2474 | IFS=$as_save_IFS | |
2475 | test -z "$as_dir" && as_dir=. | |
2476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2478 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2479 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2480 | break 2 |
2481 | fi | |
2482 | done | |
2483 | done | |
7a197a62 | 2484 | IFS=$as_save_IFS |
ad6254c5 | 2485 | |
8106cdd5 AK |
2486 | fi |
2487 | fi | |
ad6254c5 | 2488 | CC=$ac_cv_prog_CC |
8106cdd5 | 2489 | if test -n "$CC"; then |
ec6a6fbe AK |
2490 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2491 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2492 | else |
ec6a6fbe AK |
2493 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2494 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2495 | fi |
2496 | ||
8106cdd5 | 2497 | |
7a197a62 | 2498 | fi |
ad6254c5 | 2499 | fi |
795ca3e5 AK |
2500 | if test -z "$CC"; then |
2501 | # Extract the first word of "cc", so it can be a program name with args. | |
2502 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2503 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2504 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2505 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2506 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2507 | else |
2508 | if test -n "$CC"; then | |
2509 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2510 | else | |
795ca3e5 | 2511 | ac_prog_rejected=no |
ad6254c5 AK |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2513 | for as_dir in $PATH | |
2514 | do | |
2515 | IFS=$as_save_IFS | |
2516 | test -z "$as_dir" && as_dir=. | |
2517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2519 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2520 | ac_prog_rejected=yes | |
2521 | continue | |
2522 | fi | |
2523 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2524 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2525 | break 2 |
2526 | fi | |
2527 | done | |
2528 | done | |
7a197a62 | 2529 | IFS=$as_save_IFS |
ad6254c5 | 2530 | |
795ca3e5 AK |
2531 | if test $ac_prog_rejected = yes; then |
2532 | # We found a bogon in the path, so make sure we never use it. | |
2533 | set dummy $ac_cv_prog_CC | |
2534 | shift | |
ad6254c5 | 2535 | if test $# != 0; then |
795ca3e5 AK |
2536 | # We chose a different compiler from the bogus one. |
2537 | # However, it has the same basename, so the bogon will be chosen | |
2538 | # first if we set CC to just the basename; use the full file name. | |
2539 | shift | |
ad6254c5 | 2540 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2541 | fi |
2542 | fi | |
2543 | fi | |
2544 | fi | |
ad6254c5 | 2545 | CC=$ac_cv_prog_CC |
795ca3e5 | 2546 | if test -n "$CC"; then |
ec6a6fbe AK |
2547 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2548 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2549 | else |
ec6a6fbe AK |
2550 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2551 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2552 | fi |
2553 | ||
7a197a62 | 2554 | |
ad6254c5 AK |
2555 | fi |
2556 | if test -z "$CC"; then | |
2557 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2558 | for ac_prog in cl.exe |
ad6254c5 AK |
2559 | do |
2560 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2561 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2562 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2563 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2564 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2565 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2566 | else |
2567 | if test -n "$CC"; then | |
2568 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2569 | else | |
ad6254c5 AK |
2570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2571 | for as_dir in $PATH | |
2572 | do | |
2573 | IFS=$as_save_IFS | |
2574 | test -z "$as_dir" && as_dir=. | |
2575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2577 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2578 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2579 | break 2 |
2580 | fi | |
2581 | done | |
2582 | done | |
7a197a62 | 2583 | IFS=$as_save_IFS |
ad6254c5 | 2584 | |
795ca3e5 AK |
2585 | fi |
2586 | fi | |
ad6254c5 | 2587 | CC=$ac_cv_prog_CC |
795ca3e5 | 2588 | if test -n "$CC"; then |
ec6a6fbe AK |
2589 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2590 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2591 | else |
ec6a6fbe AK |
2592 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2593 | $as_echo "no" >&6; } | |
795ca3e5 | 2594 | fi |
ad6254c5 | 2595 | |
7a197a62 | 2596 | |
ad6254c5 AK |
2597 | test -n "$CC" && break |
2598 | done | |
2599 | fi | |
2600 | if test -z "$CC"; then | |
2601 | ac_ct_CC=$CC | |
7a197a62 | 2602 | for ac_prog in cl.exe |
ad6254c5 AK |
2603 | do |
2604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2605 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2606 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2607 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2608 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2609 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2610 | else |
2611 | if test -n "$ac_ct_CC"; then | |
2612 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2613 | else | |
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2615 | for as_dir in $PATH | |
2616 | do | |
2617 | IFS=$as_save_IFS | |
2618 | test -z "$as_dir" && as_dir=. | |
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2621 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2622 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2623 | break 2 |
795ca3e5 | 2624 | fi |
ad6254c5 AK |
2625 | done |
2626 | done | |
7a197a62 | 2627 | IFS=$as_save_IFS |
ad6254c5 AK |
2628 | |
2629 | fi | |
2630 | fi | |
2631 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2632 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2633 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2634 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2635 | else |
ec6a6fbe AK |
2636 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2637 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2638 | fi |
2639 | ||
7a197a62 | 2640 | |
ad6254c5 AK |
2641 | test -n "$ac_ct_CC" && break |
2642 | done | |
795ca3e5 | 2643 | |
7a197a62 AK |
2644 | if test "x$ac_ct_CC" = x; then |
2645 | CC="" | |
2646 | else | |
2647 | case $cross_compiling:$ac_tool_warned in | |
2648 | yes:) | |
ec6a6fbe AK |
2649 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2651 | ac_tool_warned=yes ;; |
2652 | esac | |
2653 | CC=$ac_ct_CC | |
2654 | fi | |
ad6254c5 AK |
2655 | fi |
2656 | ||
2657 | fi | |
2658 | ||
2659 | ||
ec6a6fbe AK |
2660 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2661 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2662 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2663 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2664 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2665 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2666 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2667 | |
2668 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2669 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2670 | set X $ac_compile | |
2671 | ac_compiler=$2 | |
7a197a62 AK |
2672 | { (ac_try="$ac_compiler --version >&5" |
2673 | case "(($ac_try" in | |
2674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2675 | *) ac_try_echo=$ac_try;; | |
2676 | esac | |
ec6a6fbe AK |
2677 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2678 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2679 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2680 | ac_status=$? |
ec6a6fbe | 2681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2682 | (exit $ac_status); } |
7a197a62 AK |
2683 | { (ac_try="$ac_compiler -v >&5" |
2684 | case "(($ac_try" in | |
2685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2686 | *) ac_try_echo=$ac_try;; | |
2687 | esac | |
ec6a6fbe AK |
2688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2689 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2690 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2691 | ac_status=$? |
ec6a6fbe | 2692 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2693 | (exit $ac_status); } |
7a197a62 AK |
2694 | { (ac_try="$ac_compiler -V >&5" |
2695 | case "(($ac_try" in | |
2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2697 | *) ac_try_echo=$ac_try;; | |
2698 | esac | |
ec6a6fbe AK |
2699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2700 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2701 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2702 | ac_status=$? |
ec6a6fbe | 2703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2704 | (exit $ac_status); } |
2705 | ||
2706 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2707 | /* confdefs.h. */ |
2708 | _ACEOF | |
2709 | cat confdefs.h >>conftest.$ac_ext | |
2710 | cat >>conftest.$ac_ext <<_ACEOF | |
2711 | /* end confdefs.h. */ | |
2712 | ||
2713 | int | |
2714 | main () | |
2715 | { | |
2716 | ||
2717 | ; | |
2718 | return 0; | |
2719 | } | |
2720 | _ACEOF | |
2721 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2722 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2723 | # Try to create an executable without -o first, disregard a.out. |
2724 | # It will help us diagnose broken compilers, and finding out an intuition | |
2725 | # of exeext. | |
ec6a6fbe AK |
2726 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2727 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2728 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2729 | ||
2730 | # The possible output files: | |
2731 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2732 | ||
7a197a62 AK |
2733 | ac_rmfiles= |
2734 | for ac_file in $ac_files | |
2735 | do | |
2736 | case $ac_file in | |
ec6a6fbe | 2737 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2738 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2739 | esac | |
2740 | done | |
2741 | rm -f $ac_rmfiles | |
2742 | ||
2743 | if { (ac_try="$ac_link_default" | |
2744 | case "(($ac_try" in | |
2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2746 | *) ac_try_echo=$ac_try;; | |
2747 | esac | |
ec6a6fbe AK |
2748 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2749 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2750 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2751 | ac_status=$? |
ec6a6fbe | 2752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2753 | (exit $ac_status); }; then |
7a197a62 AK |
2754 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2755 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2756 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2757 | # so that the user can short-circuit this test for compilers unknown to | |
2758 | # Autoconf. | |
25fbec5b | 2759 | for ac_file in $ac_files '' |
ad6254c5 AK |
2760 | do |
2761 | test -f "$ac_file" || continue | |
2762 | case $ac_file in | |
ec6a6fbe | 2763 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2764 | ;; |
ad6254c5 | 2765 | [ab].out ) |
8a2fc586 AK |
2766 | # We found the default executable, but exeext='' is most |
2767 | # certainly right. | |
2768 | break;; | |
ad6254c5 | 2769 | *.* ) |
7a197a62 AK |
2770 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2771 | then :; else | |
2772 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2773 | fi | |
2774 | # We set ac_cv_exeext here because the later test for it is not | |
2775 | # safe: cross compilers may not add the suffix if given an `-o' | |
2776 | # argument, so we may need to know it at that point already. | |
2777 | # Even if this section looks crufty: it has the advantage of | |
2778 | # actually working. | |
8a2fc586 | 2779 | break;; |
ad6254c5 | 2780 | * ) |
8a2fc586 | 2781 | break;; |
ad6254c5 AK |
2782 | esac |
2783 | done | |
7a197a62 AK |
2784 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2785 | ||
ad6254c5 | 2786 | else |
25fbec5b AK |
2787 | ac_file='' |
2788 | fi | |
2789 | ||
ec6a6fbe AK |
2790 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2791 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2792 | if test -z "$ac_file"; then |
ec6a6fbe | 2793 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2794 | sed 's/^/| /' conftest.$ac_ext >&5 |
2795 | ||
ec6a6fbe AK |
2796 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2798 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2799 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2800 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2801 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2802 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2803 | fi |
2804 | ||
2805 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2806 | |
7a197a62 | 2807 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2808 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2809 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2810 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2811 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2812 | # If not cross compiling, check that we can run a simple program. | |
2813 | if test "$cross_compiling" != yes; then | |
2814 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2815 | { (case "(($ac_try" in |
2816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2817 | *) ac_try_echo=$ac_try;; | |
2818 | esac | |
ec6a6fbe AK |
2819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2820 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2821 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2822 | ac_status=$? |
ec6a6fbe | 2823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2824 | (exit $ac_status); }; }; then |
2825 | cross_compiling=no | |
795ca3e5 | 2826 | else |
ad6254c5 AK |
2827 | if test "$cross_compiling" = maybe; then |
2828 | cross_compiling=yes | |
2829 | else | |
ec6a6fbe AK |
2830 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2831 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2832 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2833 | If you meant to cross compile, use \`--host'. |
2834 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2835 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2836 | If you meant to cross compile, use \`--host'. |
2837 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2838 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2839 | fi |
795ca3e5 | 2840 | fi |
80992638 | 2841 | fi |
ec6a6fbe AK |
2842 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2843 | $as_echo "yes" >&6; } | |
ad6254c5 | 2844 | |
ec6a6fbe | 2845 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2846 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2847 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2848 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2849 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2850 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2851 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2852 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2853 | |
ec6a6fbe AK |
2854 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2855 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2856 | if { (ac_try="$ac_link" |
2857 | case "(($ac_try" in | |
2858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2859 | *) ac_try_echo=$ac_try;; | |
2860 | esac | |
ec6a6fbe AK |
2861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2862 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2863 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2864 | ac_status=$? |
ec6a6fbe | 2865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2866 | (exit $ac_status); }; then |
2867 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2868 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2869 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2870 | # `rm'. | |
2871 | for ac_file in conftest.exe conftest conftest.*; do | |
2872 | test -f "$ac_file" || continue | |
2873 | case $ac_file in | |
ec6a6fbe | 2874 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2875 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2876 | break;; |
ad6254c5 AK |
2877 | * ) break;; |
2878 | esac | |
2879 | done | |
80992638 | 2880 | else |
ec6a6fbe AK |
2881 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2882 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2883 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2884 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2885 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2886 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2887 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2888 | fi |
2889 | ||
2890 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2891 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2892 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2893 | |
2894 | rm -f conftest.$ac_ext | |
2895 | EXEEXT=$ac_cv_exeext | |
2896 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2897 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2898 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2899 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2900 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2901 | else |
ad6254c5 | 2902 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2903 | /* confdefs.h. */ |
2904 | _ACEOF | |
2905 | cat confdefs.h >>conftest.$ac_ext | |
2906 | cat >>conftest.$ac_ext <<_ACEOF | |
2907 | /* end confdefs.h. */ | |
2908 | ||
2909 | int | |
2910 | main () | |
2911 | { | |
2912 | ||
2913 | ; | |
2914 | return 0; | |
2915 | } | |
2916 | _ACEOF | |
2917 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2918 | if { (ac_try="$ac_compile" |
2919 | case "(($ac_try" in | |
2920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2921 | *) ac_try_echo=$ac_try;; | |
2922 | esac | |
ec6a6fbe AK |
2923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2924 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2925 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2926 | ac_status=$? |
ec6a6fbe | 2927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2928 | (exit $ac_status); }; then |
7a197a62 AK |
2929 | for ac_file in conftest.o conftest.obj conftest.*; do |
2930 | test -f "$ac_file" || continue; | |
ad6254c5 | 2931 | case $ac_file in |
ec6a6fbe | 2932 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2933 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2934 | break;; | |
2935 | esac | |
2936 | done | |
2937 | else | |
ec6a6fbe | 2938 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2939 | sed 's/^/| /' conftest.$ac_ext >&5 |
2940 | ||
ec6a6fbe AK |
2941 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2943 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2944 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2945 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2946 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2947 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2948 | fi |
2949 | ||
2950 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2951 | fi | |
ec6a6fbe AK |
2952 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2953 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2954 | OBJEXT=$ac_cv_objext |
2955 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2956 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2957 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2958 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2959 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2960 | else |
2961 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2962 | /* confdefs.h. */ |
2963 | _ACEOF | |
2964 | cat confdefs.h >>conftest.$ac_ext | |
2965 | cat >>conftest.$ac_ext <<_ACEOF | |
2966 | /* end confdefs.h. */ | |
2967 | ||
2968 | int | |
2969 | main () | |
2970 | { | |
2971 | #ifndef __GNUC__ | |
2972 | choke me | |
2973 | #endif | |
80992638 | 2974 | |
ad6254c5 AK |
2975 | ; |
2976 | return 0; | |
2977 | } | |
2978 | _ACEOF | |
2979 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2980 | if { (ac_try="$ac_compile" |
2981 | case "(($ac_try" in | |
2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2983 | *) ac_try_echo=$ac_try;; | |
2984 | esac | |
ec6a6fbe AK |
2985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2986 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2987 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2988 | ac_status=$? |
8a2fc586 AK |
2989 | grep -v '^ *+' conftest.er1 >conftest.err |
2990 | rm -f conftest.er1 | |
2991 | cat conftest.err >&5 | |
ec6a6fbe | 2992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2993 | (exit $ac_status); } && { |
2994 | test -z "$ac_c_werror_flag" || | |
2995 | test ! -s conftest.err | |
2996 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2997 | ac_compiler_gnu=yes |
80992638 | 2998 | else |
ec6a6fbe | 2999 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3000 | sed 's/^/| /' conftest.$ac_ext >&5 |
3001 | ||
7a197a62 | 3002 | ac_compiler_gnu=no |
8106cdd5 | 3003 | fi |
7a197a62 AK |
3004 | |
3005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3006 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3007 | |
ad6254c5 | 3008 | fi |
ec6a6fbe AK |
3009 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3010 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3011 | if test $ac_compiler_gnu = yes; then | |
3012 | GCC=yes | |
3013 | else | |
3014 | GCC= | |
3015 | fi | |
ad6254c5 AK |
3016 | ac_test_CFLAGS=${CFLAGS+set} |
3017 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3018 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3019 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3020 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3021 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3022 | else |
7a197a62 AK |
3023 | ac_save_c_werror_flag=$ac_c_werror_flag |
3024 | ac_c_werror_flag=yes | |
3025 | ac_cv_prog_cc_g=no | |
3026 | CFLAGS="-g" | |
3027 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3028 | /* confdefs.h. */ |
3029 | _ACEOF | |
3030 | cat confdefs.h >>conftest.$ac_ext | |
3031 | cat >>conftest.$ac_ext <<_ACEOF | |
3032 | /* end confdefs.h. */ | |
3033 | ||
3034 | int | |
3035 | main () | |
3036 | { | |
3037 | ||
3038 | ; | |
3039 | return 0; | |
3040 | } | |
3041 | _ACEOF | |
3042 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3043 | if { (ac_try="$ac_compile" |
3044 | case "(($ac_try" in | |
3045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3046 | *) ac_try_echo=$ac_try;; | |
3047 | esac | |
ec6a6fbe AK |
3048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3049 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3050 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3051 | ac_status=$? |
8a2fc586 AK |
3052 | grep -v '^ *+' conftest.er1 >conftest.err |
3053 | rm -f conftest.er1 | |
3054 | cat conftest.err >&5 | |
ec6a6fbe | 3055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3056 | (exit $ac_status); } && { |
3057 | test -z "$ac_c_werror_flag" || | |
3058 | test ! -s conftest.err | |
3059 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3060 | ac_cv_prog_cc_g=yes |
3061 | else | |
ec6a6fbe | 3062 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
3064 | ||
3065 | CFLAGS="" | |
3066 | cat >conftest.$ac_ext <<_ACEOF | |
3067 | /* confdefs.h. */ | |
3068 | _ACEOF | |
3069 | cat confdefs.h >>conftest.$ac_ext | |
3070 | cat >>conftest.$ac_ext <<_ACEOF | |
3071 | /* end confdefs.h. */ | |
3072 | ||
3073 | int | |
3074 | main () | |
3075 | { | |
3076 | ||
3077 | ; | |
3078 | return 0; | |
3079 | } | |
3080 | _ACEOF | |
3081 | rm -f conftest.$ac_objext | |
3082 | if { (ac_try="$ac_compile" | |
3083 | case "(($ac_try" in | |
3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3085 | *) ac_try_echo=$ac_try;; | |
3086 | esac | |
ec6a6fbe AK |
3087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3088 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3089 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3090 | ac_status=$? |
7a197a62 AK |
3091 | grep -v '^ *+' conftest.er1 >conftest.err |
3092 | rm -f conftest.er1 | |
3093 | cat conftest.err >&5 | |
ec6a6fbe | 3094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3095 | (exit $ac_status); } && { |
3096 | test -z "$ac_c_werror_flag" || | |
3097 | test ! -s conftest.err | |
3098 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3099 | : |
3100 | else | |
ec6a6fbe | 3101 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3102 | sed 's/^/| /' conftest.$ac_ext >&5 |
3103 | ||
3104 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3105 | CFLAGS="-g" | |
3106 | cat >conftest.$ac_ext <<_ACEOF | |
3107 | /* confdefs.h. */ | |
3108 | _ACEOF | |
3109 | cat confdefs.h >>conftest.$ac_ext | |
3110 | cat >>conftest.$ac_ext <<_ACEOF | |
3111 | /* end confdefs.h. */ | |
3112 | ||
3113 | int | |
3114 | main () | |
3115 | { | |
3116 | ||
3117 | ; | |
3118 | return 0; | |
3119 | } | |
3120 | _ACEOF | |
3121 | rm -f conftest.$ac_objext | |
3122 | if { (ac_try="$ac_compile" | |
3123 | case "(($ac_try" in | |
3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3125 | *) ac_try_echo=$ac_try;; | |
3126 | esac | |
ec6a6fbe AK |
3127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3128 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3129 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3130 | ac_status=$? |
7a197a62 AK |
3131 | grep -v '^ *+' conftest.er1 >conftest.err |
3132 | rm -f conftest.er1 | |
3133 | cat conftest.err >&5 | |
ec6a6fbe | 3134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3135 | (exit $ac_status); } && { |
3136 | test -z "$ac_c_werror_flag" || | |
3137 | test ! -s conftest.err | |
3138 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3139 | ac_cv_prog_cc_g=yes |
3140 | else | |
ec6a6fbe | 3141 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3143 | |
7a197a62 AK |
3144 | |
3145 | fi | |
3146 | ||
3147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3148 | fi | |
3149 | ||
3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3151 | fi |
7a197a62 AK |
3152 | |
3153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3154 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3155 | fi |
ec6a6fbe AK |
3156 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3157 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3158 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3159 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3160 | elif test $ac_cv_prog_cc_g = yes; then |
3161 | if test "$GCC" = yes; then | |
3162 | CFLAGS="-g -O2" | |
3163 | else | |
3164 | CFLAGS="-g" | |
3165 | fi | |
3166 | else | |
3167 | if test "$GCC" = yes; then | |
3168 | CFLAGS="-O2" | |
3169 | else | |
3170 | CFLAGS= | |
3171 | fi | |
3172 | fi | |
ec6a6fbe AK |
3173 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3174 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3175 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3176 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3177 | else |
7a197a62 | 3178 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3179 | ac_save_CC=$CC |
3180 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3181 | /* confdefs.h. */ |
3182 | _ACEOF | |
3183 | cat confdefs.h >>conftest.$ac_ext | |
3184 | cat >>conftest.$ac_ext <<_ACEOF | |
3185 | /* end confdefs.h. */ | |
3186 | #include <stdarg.h> | |
3187 | #include <stdio.h> | |
3188 | #include <sys/types.h> | |
3189 | #include <sys/stat.h> | |
3190 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3191 | struct buf { int x; }; | |
3192 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3193 | static char *e (p, i) | |
3194 | char **p; | |
3195 | int i; | |
3196 | { | |
3197 | return p[i]; | |
3198 | } | |
3199 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3200 | { | |
3201 | char *s; | |
3202 | va_list v; | |
3203 | va_start (v,p); | |
3204 | s = g (p, va_arg (v,int)); | |
3205 | va_end (v); | |
3206 | return s; | |
3207 | } | |
8a2fc586 AK |
3208 | |
3209 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3210 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3211 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3212 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3213 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3214 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3215 | that's true only with -std. */ |
8a2fc586 AK |
3216 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3217 | ||
7a197a62 AK |
3218 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3219 | inside strings and character constants. */ | |
3220 | #define FOO(x) 'x' | |
3221 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3222 | ||
ad6254c5 AK |
3223 | int test (int i, double x); |
3224 | struct s1 {int (*f) (int a);}; | |
3225 | struct s2 {int (*f) (double a);}; | |
3226 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3227 | int argc; | |
3228 | char **argv; | |
3229 | int | |
3230 | main () | |
3231 | { | |
3232 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3233 | ; | |
3234 | return 0; | |
3235 | } | |
3236 | _ACEOF | |
7a197a62 AK |
3237 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3238 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3239 | do |
3240 | CC="$ac_save_CC $ac_arg" | |
3241 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3242 | if { (ac_try="$ac_compile" |
3243 | case "(($ac_try" in | |
3244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3245 | *) ac_try_echo=$ac_try;; | |
3246 | esac | |
ec6a6fbe AK |
3247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3248 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3249 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3250 | ac_status=$? |
8a2fc586 AK |
3251 | grep -v '^ *+' conftest.er1 >conftest.err |
3252 | rm -f conftest.er1 | |
3253 | cat conftest.err >&5 | |
ec6a6fbe | 3254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3255 | (exit $ac_status); } && { |
3256 | test -z "$ac_c_werror_flag" || | |
3257 | test ! -s conftest.err | |
3258 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3259 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3260 | else |
ec6a6fbe | 3261 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3262 | sed 's/^/| /' conftest.$ac_ext >&5 |
3263 | ||
7a197a62 | 3264 | |
ad6254c5 | 3265 | fi |
7a197a62 AK |
3266 | |
3267 | rm -f core conftest.err conftest.$ac_objext | |
3268 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3269 | done |
7a197a62 | 3270 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3271 | CC=$ac_save_CC |
3272 | ||
3273 | fi | |
7a197a62 AK |
3274 | # AC_CACHE_VAL |
3275 | case "x$ac_cv_prog_cc_c89" in | |
3276 | x) | |
ec6a6fbe AK |
3277 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3278 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3279 | xno) |
ec6a6fbe AK |
3280 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3281 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3282 | *) |
7a197a62 | 3283 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3284 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3285 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3286 | esac |
3287 | ||
ad6254c5 | 3288 | |
ad6254c5 AK |
3289 | ac_ext=c |
3290 | ac_cpp='$CPP $CPPFLAGS' | |
3291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3294 | |
d0191583 JM |
3295 | |
3296 | ||
3297 | ac_ext=c | |
3298 | ac_cpp='$CPP $CPPFLAGS' | |
3299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3302 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3303 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3304 | # On Suns, sometimes $CPP names a directory. |
3305 | if test -n "$CPP" && test -d "$CPP"; then | |
3306 | CPP= | |
3307 | fi | |
3308 | if test -z "$CPP"; then | |
3309 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3310 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3311 | else |
d0191583 JM |
3312 | # Double quotes because CPP needs to be expanded |
3313 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3314 | do | |
3315 | ac_preproc_ok=false | |
3316 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3317 | do |
d0191583 JM |
3318 | # Use a header file that comes with gcc, so configuring glibc |
3319 | # with a fresh cross-compiler works. | |
3320 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3321 | # <limits.h> exists even on freestanding compilers. | |
3322 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3323 | # not just through cpp. "Syntax error" is here to catch this case. | |
3324 | cat >conftest.$ac_ext <<_ACEOF | |
3325 | /* confdefs.h. */ | |
3326 | _ACEOF | |
3327 | cat confdefs.h >>conftest.$ac_ext | |
3328 | cat >>conftest.$ac_ext <<_ACEOF | |
3329 | /* end confdefs.h. */ | |
3330 | #ifdef __STDC__ | |
3331 | # include <limits.h> | |
3332 | #else | |
3333 | # include <assert.h> | |
3334 | #endif | |
3335 | Syntax error | |
3336 | _ACEOF | |
3337 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3338 | case "(($ac_try" in | |
3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3340 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3341 | esac |
ec6a6fbe AK |
3342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3343 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3345 | ac_status=$? | |
3346 | grep -v '^ *+' conftest.er1 >conftest.err | |
3347 | rm -f conftest.er1 | |
3348 | cat conftest.err >&5 | |
ec6a6fbe | 3349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3350 | (exit $ac_status); } >/dev/null && { |
3351 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3352 | test ! -s conftest.err | |
3353 | }; then | |
3354 | : | |
3355 | else | |
ec6a6fbe | 3356 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3358 | |
d0191583 JM |
3359 | # Broken: fails on valid input. |
3360 | continue | |
795ca3e5 | 3361 | fi |
795ca3e5 | 3362 | |
d0191583 | 3363 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3364 | |
d0191583 JM |
3365 | # OK, works on sane cases. Now check whether nonexistent headers |
3366 | # can be detected and how. | |
3367 | cat >conftest.$ac_ext <<_ACEOF | |
3368 | /* confdefs.h. */ | |
3369 | _ACEOF | |
3370 | cat confdefs.h >>conftest.$ac_ext | |
3371 | cat >>conftest.$ac_ext <<_ACEOF | |
3372 | /* end confdefs.h. */ | |
3373 | #include <ac_nonexistent.h> | |
3374 | _ACEOF | |
3375 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3376 | case "(($ac_try" in | |
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3378 | *) ac_try_echo=$ac_try;; | |
3379 | esac | |
ec6a6fbe AK |
3380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3381 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3383 | ac_status=$? | |
3384 | grep -v '^ *+' conftest.er1 >conftest.err | |
3385 | rm -f conftest.er1 | |
3386 | cat conftest.err >&5 | |
ec6a6fbe | 3387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3388 | (exit $ac_status); } >/dev/null && { |
3389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3390 | test ! -s conftest.err | |
3391 | }; then | |
3392 | # Broken: success on invalid input. | |
3393 | continue | |
3394 | else | |
ec6a6fbe | 3395 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3396 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3397 | |
d0191583 JM |
3398 | # Passes both tests. |
3399 | ac_preproc_ok=: | |
3400 | break | |
3401 | fi | |
795ca3e5 | 3402 | |
d0191583 JM |
3403 | rm -f conftest.err conftest.$ac_ext |
3404 | ||
3405 | done | |
3406 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3407 | rm -f conftest.err conftest.$ac_ext | |
3408 | if $ac_preproc_ok; then | |
3409 | break | |
795ca3e5 AK |
3410 | fi |
3411 | ||
d0191583 JM |
3412 | done |
3413 | ac_cv_prog_CPP=$CPP | |
3414 | ||
3415 | fi | |
3416 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3417 | else |
d0191583 JM |
3418 | ac_cv_prog_CPP=$CPP |
3419 | fi | |
ec6a6fbe AK |
3420 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3421 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3422 | ac_preproc_ok=false |
3423 | for ac_c_preproc_warn_flag in '' yes | |
3424 | do | |
3425 | # Use a header file that comes with gcc, so configuring glibc | |
3426 | # with a fresh cross-compiler works. | |
3427 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3428 | # <limits.h> exists even on freestanding compilers. | |
3429 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3430 | # not just through cpp. "Syntax error" is here to catch this case. | |
3431 | cat >conftest.$ac_ext <<_ACEOF | |
3432 | /* confdefs.h. */ | |
ad6254c5 | 3433 | _ACEOF |
d0191583 JM |
3434 | cat confdefs.h >>conftest.$ac_ext |
3435 | cat >>conftest.$ac_ext <<_ACEOF | |
3436 | /* end confdefs.h. */ | |
3437 | #ifdef __STDC__ | |
3438 | # include <limits.h> | |
3439 | #else | |
3440 | # include <assert.h> | |
3441 | #endif | |
3442 | Syntax error | |
3443 | _ACEOF | |
3444 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3445 | case "(($ac_try" in | |
3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3447 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3448 | esac |
ec6a6fbe AK |
3449 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3450 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3451 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3452 | ac_status=$? | |
3453 | grep -v '^ *+' conftest.er1 >conftest.err | |
3454 | rm -f conftest.er1 | |
3455 | cat conftest.err >&5 | |
ec6a6fbe | 3456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3457 | (exit $ac_status); } >/dev/null && { |
3458 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3459 | test ! -s conftest.err | |
3460 | }; then | |
3461 | : | |
795ca3e5 | 3462 | else |
ec6a6fbe | 3463 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
3465 | ||
3466 | # Broken: fails on valid input. | |
3467 | continue | |
795ca3e5 AK |
3468 | fi |
3469 | ||
d0191583 JM |
3470 | rm -f conftest.err conftest.$ac_ext |
3471 | ||
3472 | # OK, works on sane cases. Now check whether nonexistent headers | |
3473 | # can be detected and how. | |
3474 | cat >conftest.$ac_ext <<_ACEOF | |
3475 | /* confdefs.h. */ | |
3476 | _ACEOF | |
3477 | cat confdefs.h >>conftest.$ac_ext | |
3478 | cat >>conftest.$ac_ext <<_ACEOF | |
3479 | /* end confdefs.h. */ | |
3480 | #include <ac_nonexistent.h> | |
3481 | _ACEOF | |
3482 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3483 | case "(($ac_try" in | |
3484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3485 | *) ac_try_echo=$ac_try;; | |
3486 | esac | |
ec6a6fbe AK |
3487 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3488 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3489 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3490 | ac_status=$? | |
3491 | grep -v '^ *+' conftest.er1 >conftest.err | |
3492 | rm -f conftest.er1 | |
3493 | cat conftest.err >&5 | |
ec6a6fbe | 3494 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3495 | (exit $ac_status); } >/dev/null && { |
3496 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3497 | test ! -s conftest.err | |
3498 | }; then | |
3499 | # Broken: success on invalid input. | |
3500 | continue | |
795ca3e5 | 3501 | else |
ec6a6fbe | 3502 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3503 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3504 | |
d0191583 JM |
3505 | # Passes both tests. |
3506 | ac_preproc_ok=: | |
3507 | break | |
795ca3e5 | 3508 | fi |
d0191583 JM |
3509 | |
3510 | rm -f conftest.err conftest.$ac_ext | |
3511 | ||
3512 | done | |
3513 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3514 | rm -f conftest.err conftest.$ac_ext | |
3515 | if $ac_preproc_ok; then | |
3516 | : | |
8106cdd5 | 3517 | else |
ec6a6fbe AK |
3518 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3519 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3520 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3521 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3522 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3523 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3524 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3525 | fi |
3526 | ||
d0191583 JM |
3527 | ac_ext=c |
3528 | ac_cpp='$CPP $CPPFLAGS' | |
3529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3532 | ||
7a197a62 | 3533 | |
ec6a6fbe AK |
3534 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3535 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3536 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3537 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3538 | else |
ec6a6fbe | 3539 | if test -z "$GREP"; then |
d0191583 | 3540 | ac_path_GREP_found=false |
ec6a6fbe AK |
3541 | # Loop through the user's path and test for each of PROGNAME-LIST |
3542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3543 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3544 | do |
3545 | IFS=$as_save_IFS | |
3546 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3547 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3548 | for ac_exec_ext in '' $ac_executable_extensions; do |
3549 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3550 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3551 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3552 | # Check for GNU $ac_path_GREP |
3553 | case `"$ac_path_GREP" --version 2>&1` in | |
3554 | *GNU*) | |
3555 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3556 | *) | |
3557 | ac_count=0 | |
ec6a6fbe | 3558 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3559 | while : |
3560 | do | |
3561 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3562 | mv "conftest.tmp" "conftest.in" | |
3563 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3564 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3565 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3566 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3567 | ac_count=`expr $ac_count + 1` | |
3568 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3569 | # Best one so far, save it but keep looking for a better one | |
3570 | ac_cv_path_GREP="$ac_path_GREP" | |
3571 | ac_path_GREP_max=$ac_count | |
3572 | fi | |
3573 | # 10*(2^10) chars as input seems more than enough | |
3574 | test $ac_count -gt 10 && break | |
3575 | done | |
3576 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3577 | esac | |
3578 | ||
ec6a6fbe AK |
3579 | $ac_path_GREP_found && break 3 |
3580 | done | |
d0191583 | 3581 | done |
ad6254c5 | 3582 | done |
7a197a62 | 3583 | IFS=$as_save_IFS |
ec6a6fbe AK |
3584 | if test -z "$ac_cv_path_GREP"; then |
3585 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3586 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3587 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3588 | fi |
80992638 | 3589 | else |
d0191583 | 3590 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3591 | fi |
8106cdd5 | 3592 | |
80992638 | 3593 | fi |
ec6a6fbe AK |
3594 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3595 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3596 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3597 | |
d0191583 | 3598 | |
ec6a6fbe AK |
3599 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3600 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3601 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3602 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3603 | else |
d0191583 JM |
3604 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3605 | then ac_cv_path_EGREP="$GREP -E" | |
3606 | else | |
ec6a6fbe | 3607 | if test -z "$EGREP"; then |
d0191583 | 3608 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3609 | # Loop through the user's path and test for each of PROGNAME-LIST |
3610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3611 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3612 | do |
3613 | IFS=$as_save_IFS | |
3614 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3615 | for ac_prog in egrep; do |
ec6a6fbe AK |
3616 | for ac_exec_ext in '' $ac_executable_extensions; do |
3617 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3618 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3619 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3620 | # Check for GNU $ac_path_EGREP |
3621 | case `"$ac_path_EGREP" --version 2>&1` in | |
3622 | *GNU*) | |
3623 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3624 | *) | |
3625 | ac_count=0 | |
ec6a6fbe | 3626 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3627 | while : |
3628 | do | |
3629 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3630 | mv "conftest.tmp" "conftest.in" | |
3631 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3632 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3633 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3634 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3635 | ac_count=`expr $ac_count + 1` | |
3636 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3637 | # Best one so far, save it but keep looking for a better one | |
3638 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3639 | ac_path_EGREP_max=$ac_count | |
3640 | fi | |
3641 | # 10*(2^10) chars as input seems more than enough | |
3642 | test $ac_count -gt 10 && break | |
3643 | done | |
3644 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3645 | esac |
8a2fc586 | 3646 | |
ec6a6fbe AK |
3647 | $ac_path_EGREP_found && break 3 |
3648 | done | |
d0191583 | 3649 | done |
8a2fc586 | 3650 | done |
7a197a62 | 3651 | IFS=$as_save_IFS |
ec6a6fbe AK |
3652 | if test -z "$ac_cv_path_EGREP"; then |
3653 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3654 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3655 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3656 | fi |
d0191583 JM |
3657 | else |
3658 | ac_cv_path_EGREP=$EGREP | |
3659 | fi | |
ad6254c5 | 3660 | |
d0191583 JM |
3661 | fi |
3662 | fi | |
ec6a6fbe AK |
3663 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3664 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3665 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3666 | |
3667 | ||
d0191583 | 3668 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3669 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3670 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3671 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3672 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3673 | else |
d0191583 | 3674 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3675 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3676 | /* confdefs.h. */ |
3677 | _ACEOF | |
3678 | cat confdefs.h >>conftest.$ac_ext | |
3679 | cat >>conftest.$ac_ext <<_ACEOF | |
3680 | /* end confdefs.h. */ | |
d0191583 JM |
3681 | #include <sgtty.h> |
3682 | Autoconf TIOCGETP | |
ad6254c5 | 3683 | _ACEOF |
d0191583 JM |
3684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3685 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3686 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3687 | else |
d0191583 | 3688 | ac_cv_prog_gcc_traditional=no |
80992638 | 3689 | fi |
d0191583 | 3690 | rm -f conftest* |
ad6254c5 | 3691 | |
8106cdd5 | 3692 | |
d0191583 JM |
3693 | if test $ac_cv_prog_gcc_traditional = no; then |
3694 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3695 | /* confdefs.h. */ |
3696 | _ACEOF | |
3697 | cat confdefs.h >>conftest.$ac_ext | |
3698 | cat >>conftest.$ac_ext <<_ACEOF | |
3699 | /* end confdefs.h. */ | |
d0191583 JM |
3700 | #include <termio.h> |
3701 | Autoconf TCGETA | |
ad6254c5 | 3702 | _ACEOF |
d0191583 JM |
3703 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3704 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3705 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3706 | fi |
d0191583 | 3707 | rm -f conftest* |
795ca3e5 | 3708 | |
d0191583 | 3709 | fi |
795ca3e5 | 3710 | fi |
ec6a6fbe AK |
3711 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3712 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3713 | if test $ac_cv_prog_gcc_traditional = yes; then |
3714 | CC="$CC -traditional" | |
3715 | fi | |
795ca3e5 AK |
3716 | fi |
3717 | ||
d0191583 JM |
3718 | # Find a good install program. We prefer a C program (faster), |
3719 | # so one script is as good as another. But avoid the broken or | |
3720 | # incompatible versions: | |
3721 | # SysV /etc/install, /usr/sbin/install | |
3722 | # SunOS /usr/etc/install | |
3723 | # IRIX /sbin/install | |
3724 | # AIX /bin/install | |
3725 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3726 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3727 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3728 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3729 | # OS/2's system install, which has a completely different semantic | |
3730 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3731 | # Reject install programs that cannot install multiple files. |
3732 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3733 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3734 | if test -z "$INSTALL"; then |
3735 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3736 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3737 | else |
d0191583 JM |
3738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3739 | for as_dir in $PATH | |
3740 | do | |
3741 | IFS=$as_save_IFS | |
3742 | test -z "$as_dir" && as_dir=. | |
3743 | # Account for people who put trailing slashes in PATH elements. | |
3744 | case $as_dir/ in | |
3745 | ./ | .// | /cC/* | \ | |
3746 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3747 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3748 | /usr/ucb/* ) ;; | |
3749 | *) | |
3750 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3751 | # Don't use installbsd from OSF since it installs stuff as root | |
3752 | # by default. | |
3753 | for ac_prog in ginstall scoinst install; do | |
3754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3755 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3756 | if test $ac_prog = install && | |
3757 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3758 | # AIX install. It has an incompatible calling convention. | |
3759 | : | |
3760 | elif test $ac_prog = install && | |
3761 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3762 | # program-specific install script used by HP pwplus--don't use. | |
3763 | : | |
3764 | else | |
ec6a6fbe AK |
3765 | rm -rf conftest.one conftest.two conftest.dir |
3766 | echo one > conftest.one | |
3767 | echo two > conftest.two | |
3768 | mkdir conftest.dir | |
3769 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3770 | test -s conftest.one && test -s conftest.two && | |
3771 | test -s conftest.dir/conftest.one && | |
3772 | test -s conftest.dir/conftest.two | |
3773 | then | |
3774 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3775 | break 3 | |
3776 | fi | |
d0191583 JM |
3777 | fi |
3778 | fi | |
3779 | done | |
3780 | done | |
3781 | ;; | |
3782 | esac | |
ec6a6fbe | 3783 | |
d0191583 JM |
3784 | done |
3785 | IFS=$as_save_IFS | |
80992638 | 3786 | |
ec6a6fbe | 3787 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3788 | |
3789 | fi | |
3790 | if test "${ac_cv_path_install+set}" = set; then | |
3791 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3792 | else |
d0191583 JM |
3793 | # As a last resort, use the slow shell script. Don't cache a |
3794 | # value for INSTALL within a source directory, because that will | |
3795 | # break other packages using the cache if that directory is | |
3796 | # removed, or if the value is a relative name. | |
3797 | INSTALL=$ac_install_sh | |
7a197a62 | 3798 | fi |
d0191583 | 3799 | fi |
ec6a6fbe AK |
3800 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3801 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3802 | |
d0191583 JM |
3803 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3804 | # It thinks the first close brace ends the variable substitution. | |
3805 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3806 | |
d0191583 | 3807 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3808 | |
d0191583 JM |
3809 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3810 | ||
ec6a6fbe AK |
3811 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3812 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3813 | LN_S=$as_ln_s |
3814 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3815 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3816 | $as_echo "yes" >&6; } | |
d0191583 | 3817 | else |
ec6a6fbe AK |
3818 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3819 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3820 | fi |
d0191583 | 3821 | |
ec6a6fbe AK |
3822 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3823 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3824 | set x ${MAKE-make} | |
3825 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3826 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3827 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3828 | else |
d0191583 JM |
3829 | cat >conftest.make <<\_ACEOF |
3830 | SHELL = /bin/sh | |
3831 | all: | |
3832 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3833 | _ACEOF | |
3834 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3835 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3836 | *@@@%%%=?*=@@@%%%*) | |
3837 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3838 | *) | |
3839 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3840 | esac | |
3841 | rm -f conftest.make | |
ad6254c5 | 3842 | fi |
d0191583 | 3843 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3844 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3845 | $as_echo "yes" >&6; } | |
d0191583 JM |
3846 | SET_MAKE= |
3847 | else | |
ec6a6fbe AK |
3848 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3849 | $as_echo "no" >&6; } | |
d0191583 | 3850 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3851 | fi |
8106cdd5 | 3852 | |
ec6a6fbe AK |
3853 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3854 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3855 | if test -z "$MKDIR_P"; then |
3856 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3857 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3858 | else |
3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3860 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3861 | do | |
3862 | IFS=$as_save_IFS | |
3863 | test -z "$as_dir" && as_dir=. | |
3864 | for ac_prog in mkdir gmkdir; do | |
3865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3866 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3867 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3868 | 'mkdir (GNU coreutils) '* | \ | |
3869 | 'mkdir (coreutils) '* | \ | |
3870 | 'mkdir (fileutils) '4.1*) | |
3871 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3872 | break 3;; | |
3873 | esac | |
3874 | done | |
3875 | done | |
3876 | done | |
3877 | IFS=$as_save_IFS | |
3878 | ||
3879 | fi | |
3880 | ||
3881 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3882 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3883 | else | |
3884 | # As a last resort, use the slow shell script. Don't cache a | |
3885 | # value for MKDIR_P within a source directory, because that will | |
3886 | # break other packages using the cache if that directory is | |
3887 | # removed, or if the value is a relative name. | |
3888 | test -d ./--version && rmdir ./--version | |
3889 | MKDIR_P="$ac_install_sh -d" | |
3890 | fi | |
3891 | fi | |
ec6a6fbe AK |
3892 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3893 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3894 | |
d0191583 JM |
3895 | if test -n "$ac_tool_prefix"; then |
3896 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3897 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3898 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3899 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3900 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3901 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3902 | else |
3903 | if test -n "$RANLIB"; then | |
3904 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3905 | else | |
3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3907 | for as_dir in $PATH | |
3908 | do | |
3909 | IFS=$as_save_IFS | |
3910 | test -z "$as_dir" && as_dir=. | |
3911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3913 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3914 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3915 | break 2 |
3916 | fi | |
3917 | done | |
3918 | done | |
3919 | IFS=$as_save_IFS | |
8106cdd5 | 3920 | |
795ca3e5 | 3921 | fi |
d0191583 JM |
3922 | fi |
3923 | RANLIB=$ac_cv_prog_RANLIB | |
3924 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3925 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3926 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3927 | else |
ec6a6fbe AK |
3928 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3929 | $as_echo "no" >&6; } | |
d0191583 JM |
3930 | fi |
3931 | ||
8106cdd5 | 3932 | |
ad6254c5 | 3933 | fi |
d0191583 JM |
3934 | if test -z "$ac_cv_prog_RANLIB"; then |
3935 | ac_ct_RANLIB=$RANLIB | |
3936 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3937 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3938 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3939 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3940 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3941 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3942 | else |
d0191583 JM |
3943 | if test -n "$ac_ct_RANLIB"; then |
3944 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3945 | else | |
3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3947 | for as_dir in $PATH | |
8106cdd5 | 3948 | do |
d0191583 JM |
3949 | IFS=$as_save_IFS |
3950 | test -z "$as_dir" && as_dir=. | |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3953 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3954 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3955 | break 2 |
3956 | fi | |
3957 | done | |
3958 | done | |
3959 | IFS=$as_save_IFS | |
3960 | ||
3961 | fi | |
3962 | fi | |
3963 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3964 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3965 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3966 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3967 | else |
ec6a6fbe AK |
3968 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3969 | $as_echo "no" >&6; } | |
d0191583 | 3970 | fi |
ad6254c5 | 3971 | |
d0191583 JM |
3972 | if test "x$ac_ct_RANLIB" = x; then |
3973 | RANLIB=":" | |
3974 | else | |
3975 | case $cross_compiling:$ac_tool_warned in | |
3976 | yes:) | |
ec6a6fbe AK |
3977 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3978 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3979 | ac_tool_warned=yes ;; |
3980 | esac | |
3981 | RANLIB=$ac_ct_RANLIB | |
3982 | fi | |
3983 | else | |
3984 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3985 | fi |
7a197a62 | 3986 | |
d0191583 JM |
3987 | # Extract the first word of "cflow", so it can be a program name with args. |
3988 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3989 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3990 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3991 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3992 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3993 | else |
3994 | case $CFLOW_CMD in | |
3995 | [\\/]* | ?:[\\/]*) | |
3996 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3997 | ;; | |
3998 | *) | |
3999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4000 | for as_dir in $PATH | |
4001 | do | |
4002 | IFS=$as_save_IFS | |
4003 | test -z "$as_dir" && as_dir=. | |
4004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4006 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4007 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4008 | break 2 |
4009 | fi | |
4010 | done | |
4011 | done | |
4012 | IFS=$as_save_IFS | |
ad6254c5 | 4013 | |
d0191583 | 4014 | ;; |
7a197a62 | 4015 | esac |
d0191583 JM |
4016 | fi |
4017 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4018 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4019 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4020 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4021 | else |
ec6a6fbe AK |
4022 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4023 | $as_echo "no" >&6; } | |
795ca3e5 | 4024 | fi |
7a197a62 | 4025 | |
ad6254c5 | 4026 | |
d0191583 JM |
4027 | # Extract the first word of "cscope", so it can be a program name with args. |
4028 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4029 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4030 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4031 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4032 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4033 | else |
4034 | case $CSCOPE_CMD in | |
4035 | [\\/]* | ?:[\\/]*) | |
4036 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4037 | ;; | |
4038 | *) | |
4039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4040 | for as_dir in $PATH | |
4041 | do | |
4042 | IFS=$as_save_IFS | |
4043 | test -z "$as_dir" && as_dir=. | |
4044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4046 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4047 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4048 | break 2 |
4049 | fi | |
795ca3e5 | 4050 | done |
d0191583 JM |
4051 | done |
4052 | IFS=$as_save_IFS | |
795ca3e5 | 4053 | |
d0191583 JM |
4054 | ;; |
4055 | esac | |
ad6254c5 | 4056 | fi |
d0191583 JM |
4057 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4058 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4059 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4060 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4061 | else |
ec6a6fbe AK |
4062 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4063 | $as_echo "no" >&6; } | |
795ca3e5 | 4064 | fi |
ad6254c5 | 4065 | |
7a197a62 | 4066 | |
ad6254c5 | 4067 | |
d0191583 JM |
4068 | ################################################################################ |
4069 | ||
4070 | ||
4071 | ||
4072 | ||
4073 | ||
4074 | ac_header_dirent=no | |
4075 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4076 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4077 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4078 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4079 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4080 | $as_echo_n "(cached) " >&6 |
d0191583 | 4081 | else |
ad6254c5 | 4082 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4083 | /* confdefs.h. */ |
4084 | _ACEOF | |
4085 | cat confdefs.h >>conftest.$ac_ext | |
4086 | cat >>conftest.$ac_ext <<_ACEOF | |
4087 | /* end confdefs.h. */ | |
d0191583 JM |
4088 | #include <sys/types.h> |
4089 | #include <$ac_hdr> | |
4090 | ||
4091 | int | |
4092 | main () | |
4093 | { | |
4094 | if ((DIR *) 0) | |
4095 | return 0; | |
4096 | ; | |
4097 | return 0; | |
4098 | } | |
ad6254c5 | 4099 | _ACEOF |
d0191583 JM |
4100 | rm -f conftest.$ac_objext |
4101 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4102 | case "(($ac_try" in |
4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4104 | *) ac_try_echo=$ac_try;; | |
4105 | esac | |
ec6a6fbe AK |
4106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4107 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4108 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4109 | ac_status=$? |
4110 | grep -v '^ *+' conftest.er1 >conftest.err | |
4111 | rm -f conftest.er1 | |
4112 | cat conftest.err >&5 | |
ec6a6fbe | 4113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4114 | (exit $ac_status); } && { |
4115 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4116 | test ! -s conftest.err |
d0191583 JM |
4117 | } && test -s conftest.$ac_objext; then |
4118 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4119 | else |
ec6a6fbe | 4120 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4121 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4122 | |
d0191583 | 4123 | eval "$as_ac_Header=no" |
795ca3e5 | 4124 | fi |
7a197a62 | 4125 | |
d0191583 | 4126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4127 | fi |
ec6a6fbe AK |
4128 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4129 | $as_echo "$as_val"'` | |
4130 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4131 | $as_echo "$ac_res" >&6; } | |
4132 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4133 | $as_echo "$as_val"'` | |
4134 | if test "x$as_val" = x""yes; then | |
d0191583 | 4135 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4136 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4137 | _ACEOF |
795ca3e5 | 4138 | |
d0191583 JM |
4139 | ac_header_dirent=$ac_hdr; break |
4140 | fi | |
ad6254c5 | 4141 | |
d0191583 JM |
4142 | done |
4143 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4144 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4145 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4146 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4147 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4148 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4149 | else |
d0191583 JM |
4150 | ac_func_search_save_LIBS=$LIBS |
4151 | cat >conftest.$ac_ext <<_ACEOF | |
4152 | /* confdefs.h. */ | |
4153 | _ACEOF | |
4154 | cat confdefs.h >>conftest.$ac_ext | |
4155 | cat >>conftest.$ac_ext <<_ACEOF | |
4156 | /* end confdefs.h. */ | |
ad6254c5 | 4157 | |
d0191583 JM |
4158 | /* Override any GCC internal prototype to avoid an error. |
4159 | Use char because int might match the return type of a GCC | |
4160 | builtin and then its argument prototype would still apply. */ | |
4161 | #ifdef __cplusplus | |
4162 | extern "C" | |
4163 | #endif | |
4164 | char opendir (); | |
4165 | int | |
4166 | main () | |
4167 | { | |
4168 | return opendir (); | |
4169 | ; | |
4170 | return 0; | |
4171 | } | |
4172 | _ACEOF | |
4173 | for ac_lib in '' dir; do | |
4174 | if test -z "$ac_lib"; then | |
4175 | ac_res="none required" | |
4176 | else | |
4177 | ac_res=-l$ac_lib | |
4178 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4179 | fi | |
4180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4181 | if { (ac_try="$ac_link" | |
4182 | case "(($ac_try" in | |
4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4184 | *) ac_try_echo=$ac_try;; | |
4185 | esac | |
ec6a6fbe AK |
4186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4187 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4188 | (eval "$ac_link") 2>conftest.er1 |
4189 | ac_status=$? | |
4190 | grep -v '^ *+' conftest.er1 >conftest.err | |
4191 | rm -f conftest.er1 | |
4192 | cat conftest.err >&5 | |
ec6a6fbe | 4193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4194 | (exit $ac_status); } && { |
4195 | test -z "$ac_c_werror_flag" || | |
4196 | test ! -s conftest.err | |
ec6a6fbe AK |
4197 | } && test -s conftest$ac_exeext && { |
4198 | test "$cross_compiling" = yes || | |
4199 | $as_test_x conftest$ac_exeext | |
4200 | }; then | |
d0191583 JM |
4201 | ac_cv_search_opendir=$ac_res |
4202 | else | |
ec6a6fbe | 4203 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4204 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4205 | |
ad6254c5 | 4206 | |
795ca3e5 | 4207 | fi |
ad6254c5 | 4208 | |
ec6a6fbe | 4209 | rm -rf conftest.dSYM |
d0191583 JM |
4210 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4211 | conftest$ac_exeext | |
4212 | if test "${ac_cv_search_opendir+set}" = set; then | |
4213 | break | |
7a197a62 | 4214 | fi |
d0191583 JM |
4215 | done |
4216 | if test "${ac_cv_search_opendir+set}" = set; then | |
4217 | : | |
7a197a62 | 4218 | else |
d0191583 | 4219 | ac_cv_search_opendir=no |
7a197a62 | 4220 | fi |
d0191583 JM |
4221 | rm conftest.$ac_ext |
4222 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4223 | fi |
ec6a6fbe AK |
4224 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4225 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4226 | ac_res=$ac_cv_search_opendir |
4227 | if test "$ac_res" != no; then | |
4228 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4229 | |
d0191583 | 4230 | fi |
7a197a62 | 4231 | |
7a197a62 | 4232 | else |
ec6a6fbe AK |
4233 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4234 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4235 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4236 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4237 | else |
d0191583 JM |
4238 | ac_func_search_save_LIBS=$LIBS |
4239 | cat >conftest.$ac_ext <<_ACEOF | |
4240 | /* confdefs.h. */ | |
4241 | _ACEOF | |
4242 | cat confdefs.h >>conftest.$ac_ext | |
4243 | cat >>conftest.$ac_ext <<_ACEOF | |
4244 | /* end confdefs.h. */ | |
7a197a62 | 4245 | |
d0191583 JM |
4246 | /* Override any GCC internal prototype to avoid an error. |
4247 | Use char because int might match the return type of a GCC | |
4248 | builtin and then its argument prototype would still apply. */ | |
4249 | #ifdef __cplusplus | |
4250 | extern "C" | |
4251 | #endif | |
4252 | char opendir (); | |
4253 | int | |
4254 | main () | |
4255 | { | |
4256 | return opendir (); | |
4257 | ; | |
4258 | return 0; | |
4259 | } | |
4260 | _ACEOF | |
4261 | for ac_lib in '' x; do | |
4262 | if test -z "$ac_lib"; then | |
4263 | ac_res="none required" | |
4264 | else | |
4265 | ac_res=-l$ac_lib | |
4266 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4267 | fi | |
4268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4269 | if { (ac_try="$ac_link" | |
4270 | case "(($ac_try" in | |
4271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4272 | *) ac_try_echo=$ac_try;; | |
4273 | esac | |
ec6a6fbe AK |
4274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4275 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4276 | (eval "$ac_link") 2>conftest.er1 |
4277 | ac_status=$? | |
4278 | grep -v '^ *+' conftest.er1 >conftest.err | |
4279 | rm -f conftest.er1 | |
4280 | cat conftest.err >&5 | |
ec6a6fbe | 4281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4282 | (exit $ac_status); } && { |
4283 | test -z "$ac_c_werror_flag" || | |
4284 | test ! -s conftest.err | |
ec6a6fbe AK |
4285 | } && test -s conftest$ac_exeext && { |
4286 | test "$cross_compiling" = yes || | |
4287 | $as_test_x conftest$ac_exeext | |
4288 | }; then | |
d0191583 JM |
4289 | ac_cv_search_opendir=$ac_res |
4290 | else | |
ec6a6fbe | 4291 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4292 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4293 | |
4294 | ||
4295 | fi | |
4296 | ||
ec6a6fbe | 4297 | rm -rf conftest.dSYM |
d0191583 JM |
4298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4299 | conftest$ac_exeext | |
4300 | if test "${ac_cv_search_opendir+set}" = set; then | |
4301 | break | |
7a197a62 | 4302 | fi |
d0191583 JM |
4303 | done |
4304 | if test "${ac_cv_search_opendir+set}" = set; then | |
4305 | : | |
7a197a62 | 4306 | else |
d0191583 | 4307 | ac_cv_search_opendir=no |
7a197a62 | 4308 | fi |
d0191583 JM |
4309 | rm conftest.$ac_ext |
4310 | LIBS=$ac_func_search_save_LIBS | |
4311 | fi | |
ec6a6fbe AK |
4312 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4313 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4314 | ac_res=$ac_cv_search_opendir |
4315 | if test "$ac_res" != no; then | |
4316 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4317 | |
7a197a62 | 4318 | fi |
7a197a62 | 4319 | |
d0191583 | 4320 | fi |
7a197a62 | 4321 | |
ec6a6fbe AK |
4322 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4323 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4324 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4325 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4326 | else |
4327 | cat >conftest.$ac_ext <<_ACEOF | |
4328 | /* confdefs.h. */ | |
4329 | _ACEOF | |
4330 | cat confdefs.h >>conftest.$ac_ext | |
4331 | cat >>conftest.$ac_ext <<_ACEOF | |
4332 | /* end confdefs.h. */ | |
4333 | #include <stdlib.h> | |
4334 | #include <stdarg.h> | |
4335 | #include <string.h> | |
4336 | #include <float.h> | |
4337 | ||
4338 | int | |
4339 | main () | |
4340 | { | |
4341 | ||
4342 | ; | |
4343 | return 0; | |
4344 | } | |
4345 | _ACEOF | |
4346 | rm -f conftest.$ac_objext | |
4347 | if { (ac_try="$ac_compile" | |
4348 | case "(($ac_try" in | |
4349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4350 | *) ac_try_echo=$ac_try;; | |
4351 | esac | |
ec6a6fbe AK |
4352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4353 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4354 | (eval "$ac_compile") 2>conftest.er1 |
4355 | ac_status=$? | |
4356 | grep -v '^ *+' conftest.er1 >conftest.err | |
4357 | rm -f conftest.er1 | |
4358 | cat conftest.err >&5 | |
ec6a6fbe | 4359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4360 | (exit $ac_status); } && { |
4361 | test -z "$ac_c_werror_flag" || | |
4362 | test ! -s conftest.err | |
4363 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4364 | ac_cv_header_stdc=yes |
4365 | else | |
ec6a6fbe | 4366 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4367 | sed 's/^/| /' conftest.$ac_ext >&5 |
4368 | ||
4369 | ac_cv_header_stdc=no | |
4370 | fi | |
4371 | ||
4372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4373 | ||
4374 | if test $ac_cv_header_stdc = yes; then | |
4375 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4376 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4377 | /* confdefs.h. */ |
4378 | _ACEOF | |
4379 | cat confdefs.h >>conftest.$ac_ext | |
4380 | cat >>conftest.$ac_ext <<_ACEOF | |
4381 | /* end confdefs.h. */ | |
4382 | #include <string.h> | |
8106cdd5 | 4383 | |
ad6254c5 AK |
4384 | _ACEOF |
4385 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4386 | $EGREP "memchr" >/dev/null 2>&1; then | |
4387 | : | |
4388 | else | |
4389 | ac_cv_header_stdc=no | |
80992638 | 4390 | fi |
ad6254c5 | 4391 | rm -f conftest* |
795ca3e5 AK |
4392 | |
4393 | fi | |
4394 | ||
ad6254c5 AK |
4395 | if test $ac_cv_header_stdc = yes; then |
4396 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4397 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4398 | /* confdefs.h. */ |
4399 | _ACEOF | |
4400 | cat confdefs.h >>conftest.$ac_ext | |
4401 | cat >>conftest.$ac_ext <<_ACEOF | |
4402 | /* end confdefs.h. */ | |
80992638 | 4403 | #include <stdlib.h> |
ad6254c5 AK |
4404 | |
4405 | _ACEOF | |
80992638 | 4406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4407 | $EGREP "free" >/dev/null 2>&1; then |
4408 | : | |
795ca3e5 | 4409 | else |
ad6254c5 | 4410 | ac_cv_header_stdc=no |
795ca3e5 | 4411 | fi |
80992638 | 4412 | rm -f conftest* |
8106cdd5 | 4413 | |
795ca3e5 AK |
4414 | fi |
4415 | ||
ad6254c5 AK |
4416 | if test $ac_cv_header_stdc = yes; then |
4417 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4418 | if test "$cross_compiling" = yes; then | |
4419 | : | |
795ca3e5 | 4420 | else |
ad6254c5 | 4421 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4422 | /* confdefs.h. */ |
4423 | _ACEOF | |
4424 | cat confdefs.h >>conftest.$ac_ext | |
4425 | cat >>conftest.$ac_ext <<_ACEOF | |
4426 | /* end confdefs.h. */ | |
4427 | #include <ctype.h> | |
7a197a62 | 4428 | #include <stdlib.h> |
ad6254c5 AK |
4429 | #if ((' ' & 0x0FF) == 0x020) |
4430 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4431 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4432 | #else | |
4433 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4434 | (('a' <= (c) && (c) <= 'i') \ |
4435 | || ('j' <= (c) && (c) <= 'r') \ | |
4436 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4437 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4438 | #endif |
ad6254c5 AK |
4439 | |
4440 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4441 | int | |
4442 | main () | |
4443 | { | |
4444 | int i; | |
4445 | for (i = 0; i < 256; i++) | |
4446 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4447 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4448 | return 2; |
4449 | return 0; | |
ad6254c5 AK |
4450 | } |
4451 | _ACEOF | |
4452 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4453 | if { (ac_try="$ac_link" |
4454 | case "(($ac_try" in | |
4455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4456 | *) ac_try_echo=$ac_try;; | |
4457 | esac | |
ec6a6fbe AK |
4458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4459 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4460 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4461 | ac_status=$? |
ec6a6fbe | 4462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4464 | { (case "(($ac_try" in |
4465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4466 | *) ac_try_echo=$ac_try;; | |
4467 | esac | |
ec6a6fbe AK |
4468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4469 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4470 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4471 | ac_status=$? |
ec6a6fbe | 4472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4473 | (exit $ac_status); }; }; then |
4474 | : | |
795ca3e5 | 4475 | else |
ec6a6fbe AK |
4476 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4477 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4478 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4479 | |
ad6254c5 AK |
4480 | ( exit $ac_status ) |
4481 | ac_cv_header_stdc=no | |
80992638 | 4482 | fi |
ec6a6fbe | 4483 | rm -rf conftest.dSYM |
7a197a62 | 4484 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4485 | fi |
7a197a62 AK |
4486 | |
4487 | ||
ad6254c5 AK |
4488 | fi |
4489 | fi | |
ec6a6fbe AK |
4490 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4491 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4492 | if test $ac_cv_header_stdc = yes; then |
4493 | ||
4494 | cat >>confdefs.h <<\_ACEOF | |
4495 | #define STDC_HEADERS 1 | |
4496 | _ACEOF | |
795ca3e5 AK |
4497 | |
4498 | fi | |
4499 | ||
ec6a6fbe AK |
4500 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4501 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4502 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4503 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4504 | else |
ad6254c5 | 4505 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4506 | /* confdefs.h. */ |
4507 | _ACEOF | |
4508 | cat confdefs.h >>conftest.$ac_ext | |
4509 | cat >>conftest.$ac_ext <<_ACEOF | |
4510 | /* end confdefs.h. */ | |
80992638 | 4511 | #include <sys/types.h> |
ad6254c5 AK |
4512 | #include <sys/wait.h> |
4513 | #ifndef WEXITSTATUS | |
7a197a62 | 4514 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4515 | #endif |
4516 | #ifndef WIFEXITED | |
4517 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4518 | #endif | |
4519 | ||
4520 | int | |
4521 | main () | |
4522 | { | |
4523 | int s; | |
4524 | wait (&s); | |
4525 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4526 | ; | |
4527 | return 0; | |
4528 | } | |
4529 | _ACEOF | |
4530 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4531 | if { (ac_try="$ac_compile" |
4532 | case "(($ac_try" in | |
4533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4534 | *) ac_try_echo=$ac_try;; | |
4535 | esac | |
ec6a6fbe AK |
4536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4537 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4538 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4539 | ac_status=$? |
8a2fc586 AK |
4540 | grep -v '^ *+' conftest.er1 >conftest.err |
4541 | rm -f conftest.er1 | |
4542 | cat conftest.err >&5 | |
ec6a6fbe | 4543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4544 | (exit $ac_status); } && { |
4545 | test -z "$ac_c_werror_flag" || | |
4546 | test ! -s conftest.err | |
4547 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4548 | ac_cv_header_sys_wait_h=yes |
4549 | else | |
ec6a6fbe | 4550 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4551 | sed 's/^/| /' conftest.$ac_ext >&5 |
4552 | ||
7a197a62 | 4553 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4554 | fi |
7a197a62 AK |
4555 | |
4556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4557 | fi |
ec6a6fbe AK |
4558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4559 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4560 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4561 | |
ad6254c5 AK |
4562 | cat >>confdefs.h <<\_ACEOF |
4563 | #define HAVE_SYS_WAIT_H 1 | |
4564 | _ACEOF | |
795ca3e5 AK |
4565 | |
4566 | fi | |
4567 | ||
ec6a6fbe AK |
4568 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4569 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4570 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4571 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4572 | else |
ad6254c5 | 4573 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4574 | /* confdefs.h. */ |
4575 | _ACEOF | |
4576 | cat confdefs.h >>conftest.$ac_ext | |
4577 | cat >>conftest.$ac_ext <<_ACEOF | |
4578 | /* end confdefs.h. */ | |
795ca3e5 AK |
4579 | #include <sys/types.h> |
4580 | #include <sys/time.h> | |
4581 | #include <time.h> | |
ad6254c5 AK |
4582 | |
4583 | int | |
4584 | main () | |
4585 | { | |
4586 | if ((struct tm *) 0) | |
4587 | return 0; | |
4588 | ; | |
4589 | return 0; | |
4590 | } | |
4591 | _ACEOF | |
4592 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4593 | if { (ac_try="$ac_compile" |
4594 | case "(($ac_try" in | |
4595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4596 | *) ac_try_echo=$ac_try;; | |
4597 | esac | |
ec6a6fbe AK |
4598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4599 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4600 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4601 | ac_status=$? |
8a2fc586 AK |
4602 | grep -v '^ *+' conftest.er1 >conftest.err |
4603 | rm -f conftest.er1 | |
4604 | cat conftest.err >&5 | |
ec6a6fbe | 4605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4606 | (exit $ac_status); } && { |
4607 | test -z "$ac_c_werror_flag" || | |
4608 | test ! -s conftest.err | |
4609 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4610 | ac_cv_header_time=yes |
4611 | else | |
ec6a6fbe | 4612 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4613 | sed 's/^/| /' conftest.$ac_ext >&5 |
4614 | ||
7a197a62 | 4615 | ac_cv_header_time=no |
795ca3e5 | 4616 | fi |
7a197a62 AK |
4617 | |
4618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4619 | fi |
ec6a6fbe AK |
4620 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4621 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4622 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4623 | |
4624 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4625 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4626 | _ACEOF |
b896caa1 | 4627 | |
8106cdd5 | 4628 | fi |
b896caa1 | 4629 | |
b896caa1 | 4630 | |
d0191583 JM |
4631 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4642 | inttypes.h stdint.h unistd.h | |
4643 | do | |
ec6a6fbe AK |
4644 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4645 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4646 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4647 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4648 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4649 | else |
4650 | cat >conftest.$ac_ext <<_ACEOF | |
4651 | /* confdefs.h. */ | |
4652 | _ACEOF | |
4653 | cat confdefs.h >>conftest.$ac_ext | |
4654 | cat >>conftest.$ac_ext <<_ACEOF | |
4655 | /* end confdefs.h. */ | |
4656 | $ac_includes_default | |
4657 | ||
4658 | #include <$ac_header> | |
4659 | _ACEOF | |
4660 | rm -f conftest.$ac_objext | |
4661 | if { (ac_try="$ac_compile" | |
4662 | case "(($ac_try" in | |
4663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4664 | *) ac_try_echo=$ac_try;; | |
4665 | esac | |
ec6a6fbe AK |
4666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4667 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4668 | (eval "$ac_compile") 2>conftest.er1 |
4669 | ac_status=$? | |
4670 | grep -v '^ *+' conftest.er1 >conftest.err | |
4671 | rm -f conftest.er1 | |
4672 | cat conftest.err >&5 | |
ec6a6fbe | 4673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4674 | (exit $ac_status); } && { |
4675 | test -z "$ac_c_werror_flag" || | |
4676 | test ! -s conftest.err | |
4677 | } && test -s conftest.$ac_objext; then | |
4678 | eval "$as_ac_Header=yes" | |
4679 | else | |
ec6a6fbe | 4680 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4681 | sed 's/^/| /' conftest.$ac_ext >&5 |
4682 | ||
4683 | eval "$as_ac_Header=no" | |
4684 | fi | |
4685 | ||
4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4687 | fi | |
ec6a6fbe AK |
4688 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4689 | $as_echo "$as_val"'` | |
4690 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4691 | $as_echo "$ac_res" >&6; } | |
4692 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4693 | $as_echo "$as_val"'` | |
4694 | if test "x$as_val" = x""yes; then | |
d0191583 | 4695 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4696 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4697 | _ACEOF |
4698 | ||
4699 | fi | |
4700 | ||
4701 | done | |
4702 | ||
b896caa1 | 4703 | |
b896caa1 AK |
4704 | |
4705 | ||
795ca3e5 | 4706 | |
8106cdd5 | 4707 | |
80992638 | 4708 | |
795ca3e5 | 4709 | |
a38df97f | 4710 | |
80992638 | 4711 | |
d0191583 JM |
4712 | |
4713 | ||
4714 | ||
4715 | ||
4716 | ||
4717 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4718 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4719 | do |
ec6a6fbe | 4720 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4722 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4723 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4724 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4725 | $as_echo_n "(cached) " >&6 |
d0191583 | 4726 | fi |
ec6a6fbe AK |
4727 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4728 | $as_echo "$as_val"'` | |
4729 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4730 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4731 | else |
d0191583 | 4732 | # Is the header compilable? |
ec6a6fbe AK |
4733 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4734 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4735 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4736 | /* confdefs.h. */ |
4737 | _ACEOF | |
4738 | cat confdefs.h >>conftest.$ac_ext | |
4739 | cat >>conftest.$ac_ext <<_ACEOF | |
4740 | /* end confdefs.h. */ | |
4741 | $ac_includes_default | |
ad6254c5 AK |
4742 | #include <$ac_header> |
4743 | _ACEOF | |
4744 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4745 | if { (ac_try="$ac_compile" |
4746 | case "(($ac_try" in | |
4747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4748 | *) ac_try_echo=$ac_try;; | |
4749 | esac | |
ec6a6fbe AK |
4750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4751 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4752 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4753 | ac_status=$? |
8a2fc586 AK |
4754 | grep -v '^ *+' conftest.er1 >conftest.err |
4755 | rm -f conftest.er1 | |
4756 | cat conftest.err >&5 | |
ec6a6fbe | 4757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4758 | (exit $ac_status); } && { |
4759 | test -z "$ac_c_werror_flag" || | |
4760 | test ! -s conftest.err | |
4761 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4762 | ac_header_compiler=yes |
ad6254c5 | 4763 | else |
ec6a6fbe | 4764 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4765 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4766 | |
d0191583 | 4767 | ac_header_compiler=no |
ad6254c5 | 4768 | fi |
7a197a62 AK |
4769 | |
4770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4771 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4772 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4773 | |
4774 | # Is the header present? | |
ec6a6fbe AK |
4775 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4776 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4777 | cat >conftest.$ac_ext <<_ACEOF |
4778 | /* confdefs.h. */ | |
4779 | _ACEOF | |
4780 | cat confdefs.h >>conftest.$ac_ext | |
4781 | cat >>conftest.$ac_ext <<_ACEOF | |
4782 | /* end confdefs.h. */ | |
4783 | #include <$ac_header> | |
4784 | _ACEOF | |
4785 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4786 | case "(($ac_try" in | |
4787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4788 | *) ac_try_echo=$ac_try;; | |
4789 | esac | |
ec6a6fbe AK |
4790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4791 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4793 | ac_status=$? | |
4794 | grep -v '^ *+' conftest.er1 >conftest.err | |
4795 | rm -f conftest.er1 | |
4796 | cat conftest.err >&5 | |
ec6a6fbe | 4797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4798 | (exit $ac_status); } >/dev/null && { |
4799 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4800 | test ! -s conftest.err | |
4801 | }; then | |
4802 | ac_header_preproc=yes | |
4803 | else | |
ec6a6fbe | 4804 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4805 | sed 's/^/| /' conftest.$ac_ext >&5 |
4806 | ||
4807 | ac_header_preproc=no | |
4808 | fi | |
4809 | ||
4810 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4811 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4812 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4813 | |
4814 | # So? What about this header? | |
4815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4816 | yes:no: ) | |
ec6a6fbe AK |
4817 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4818 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4819 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4820 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4821 | ac_header_preproc=yes |
4822 | ;; | |
4823 | no:yes:* ) | |
ec6a6fbe AK |
4824 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4825 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4826 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4827 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4828 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4829 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4831 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4833 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4835 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4836 | |
4837 | ;; | |
4838 | esac | |
ec6a6fbe AK |
4839 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4840 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4841 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4842 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4843 | else |
4844 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4845 | fi |
ec6a6fbe AK |
4846 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4847 | $as_echo "$as_val"'` | |
4848 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4849 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4850 | |
4851 | fi | |
ec6a6fbe AK |
4852 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4853 | $as_echo "$as_val"'` | |
4854 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4855 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4856 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4857 | _ACEOF |
a38df97f | 4858 | |
d0191583 | 4859 | else |
ec6a6fbe AK |
4860 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4861 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4862 | { (exit 1); exit 1; }; } |
80992638 AK |
4863 | fi |
4864 | ||
ad6254c5 AK |
4865 | done |
4866 | ||
7d1552c9 | 4867 | |
d0191583 JM |
4868 | case "$host_os" in |
4869 | linux*) | |
7d1552c9 | 4870 | |
80992638 | 4871 | |
5a52dca9 | 4872 | |
d0191583 | 4873 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4874 | do |
ec6a6fbe | 4875 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4876 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4877 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4878 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4880 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4881 | fi |
ec6a6fbe AK |
4882 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4883 | $as_echo "$as_val"'` | |
4884 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4885 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4886 | else |
4887 | # Is the header compilable? | |
ec6a6fbe AK |
4888 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4889 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4890 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4891 | /* confdefs.h. */ |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
4896 | $ac_includes_default | |
4897 | #include <$ac_header> | |
4898 | _ACEOF | |
4899 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4900 | if { (ac_try="$ac_compile" |
4901 | case "(($ac_try" in | |
4902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4903 | *) ac_try_echo=$ac_try;; | |
4904 | esac | |
ec6a6fbe AK |
4905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4906 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4907 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4908 | ac_status=$? |
8a2fc586 AK |
4909 | grep -v '^ *+' conftest.er1 >conftest.err |
4910 | rm -f conftest.er1 | |
4911 | cat conftest.err >&5 | |
ec6a6fbe | 4912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4913 | (exit $ac_status); } && { |
4914 | test -z "$ac_c_werror_flag" || | |
4915 | test ! -s conftest.err | |
4916 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4917 | ac_header_compiler=yes |
4918 | else | |
ec6a6fbe | 4919 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4920 | sed 's/^/| /' conftest.$ac_ext >&5 |
4921 | ||
4922 | ac_header_compiler=no | |
4923 | fi | |
4924 | ||
4925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4926 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4927 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4928 | |
4929 | # Is the header present? | |
ec6a6fbe AK |
4930 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4931 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4932 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4933 | /* confdefs.h. */ |
4934 | _ACEOF | |
4935 | cat confdefs.h >>conftest.$ac_ext | |
4936 | cat >>conftest.$ac_ext <<_ACEOF | |
4937 | /* end confdefs.h. */ | |
4938 | #include <$ac_header> | |
4939 | _ACEOF | |
7a197a62 AK |
4940 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4941 | case "(($ac_try" in | |
4942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4943 | *) ac_try_echo=$ac_try;; | |
4944 | esac | |
ec6a6fbe AK |
4945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4946 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4948 | ac_status=$? |
4949 | grep -v '^ *+' conftest.er1 >conftest.err | |
4950 | rm -f conftest.er1 | |
4951 | cat conftest.err >&5 | |
ec6a6fbe | 4952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4953 | (exit $ac_status); } >/dev/null && { |
4954 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4955 | test ! -s conftest.err | |
4956 | }; then | |
ad6254c5 AK |
4957 | ac_header_preproc=yes |
4958 | else | |
ec6a6fbe | 4959 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4960 | sed 's/^/| /' conftest.$ac_ext >&5 |
4961 | ||
4962 | ac_header_preproc=no | |
4963 | fi | |
7a197a62 | 4964 | |
ad6254c5 | 4965 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4966 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4967 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4968 | |
4969 | # So? What about this header? | |
8a2fc586 AK |
4970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4971 | yes:no: ) | |
ec6a6fbe AK |
4972 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4973 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4974 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4975 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4976 | ac_header_preproc=yes |
ad6254c5 | 4977 | ;; |
8a2fc586 | 4978 | no:yes:* ) |
ec6a6fbe AK |
4979 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4980 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4981 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4982 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4983 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4984 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4986 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4988 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4990 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4991 | |
ad6254c5 AK |
4992 | ;; |
4993 | esac | |
ec6a6fbe AK |
4994 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4995 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4997 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4998 | else |
8a2fc586 | 4999 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5000 | fi |
ec6a6fbe AK |
5001 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5002 | $as_echo "$as_val"'` | |
5003 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5004 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5005 | |
5006 | fi | |
ec6a6fbe AK |
5007 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5008 | $as_echo "$as_val"'` | |
5009 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5010 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5011 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5012 | _ACEOF |
b896caa1 | 5013 | |
d8ac0fbc | 5014 | else |
ec6a6fbe AK |
5015 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5016 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5017 | { (exit 1); exit 1; }; } |
80992638 AK |
5018 | fi |
5019 | ||
ad6254c5 | 5020 | done |
d0191583 JM |
5021 | ;; |
5022 | darwin*) | |
d8ac0fbc | 5023 | |
d8ac0fbc | 5024 | |
d0191583 | 5025 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5026 | do |
ec6a6fbe | 5027 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5028 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5029 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5030 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5032 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5033 | fi |
ec6a6fbe AK |
5034 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5035 | $as_echo "$as_val"'` | |
5036 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5037 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5038 | else |
5039 | # Is the header compilable? | |
ec6a6fbe AK |
5040 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5041 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5042 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5043 | /* confdefs.h. */ |
5044 | _ACEOF | |
5045 | cat confdefs.h >>conftest.$ac_ext | |
5046 | cat >>conftest.$ac_ext <<_ACEOF | |
5047 | /* end confdefs.h. */ | |
5048 | $ac_includes_default | |
5049 | #include <$ac_header> | |
5050 | _ACEOF | |
5051 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5052 | if { (ac_try="$ac_compile" |
5053 | case "(($ac_try" in | |
5054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5055 | *) ac_try_echo=$ac_try;; | |
5056 | esac | |
ec6a6fbe AK |
5057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5058 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5059 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5060 | ac_status=$? |
8a2fc586 AK |
5061 | grep -v '^ *+' conftest.er1 >conftest.err |
5062 | rm -f conftest.er1 | |
5063 | cat conftest.err >&5 | |
ec6a6fbe | 5064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5065 | (exit $ac_status); } && { |
5066 | test -z "$ac_c_werror_flag" || | |
5067 | test ! -s conftest.err | |
5068 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5069 | ac_header_compiler=yes |
5070 | else | |
ec6a6fbe | 5071 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5072 | sed 's/^/| /' conftest.$ac_ext >&5 |
5073 | ||
7a197a62 | 5074 | ac_header_compiler=no |
ad6254c5 | 5075 | fi |
7a197a62 AK |
5076 | |
5077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5078 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5079 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5080 | |
5081 | # Is the header present? | |
ec6a6fbe AK |
5082 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5083 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5084 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5085 | /* confdefs.h. */ |
5086 | _ACEOF | |
5087 | cat confdefs.h >>conftest.$ac_ext | |
5088 | cat >>conftest.$ac_ext <<_ACEOF | |
5089 | /* end confdefs.h. */ | |
5090 | #include <$ac_header> | |
5091 | _ACEOF | |
7a197a62 AK |
5092 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5093 | case "(($ac_try" in | |
5094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5095 | *) ac_try_echo=$ac_try;; | |
5096 | esac | |
ec6a6fbe AK |
5097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5098 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5099 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5100 | ac_status=$? |
5101 | grep -v '^ *+' conftest.er1 >conftest.err | |
5102 | rm -f conftest.er1 | |
5103 | cat conftest.err >&5 | |
ec6a6fbe | 5104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5105 | (exit $ac_status); } >/dev/null && { |
5106 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5107 | test ! -s conftest.err | |
5108 | }; then | |
ad6254c5 AK |
5109 | ac_header_preproc=yes |
5110 | else | |
ec6a6fbe | 5111 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5112 | sed 's/^/| /' conftest.$ac_ext >&5 |
5113 | ||
5114 | ac_header_preproc=no | |
5115 | fi | |
7a197a62 | 5116 | |
ad6254c5 | 5117 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5118 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5119 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5120 | |
5121 | # So? What about this header? | |
8a2fc586 AK |
5122 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5123 | yes:no: ) | |
ec6a6fbe AK |
5124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5125 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5126 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5127 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5128 | ac_header_preproc=yes |
ad6254c5 | 5129 | ;; |
8a2fc586 | 5130 | no:yes:* ) |
ec6a6fbe AK |
5131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5132 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5134 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5136 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5138 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5140 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5142 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5143 | |
ad6254c5 AK |
5144 | ;; |
5145 | esac | |
ec6a6fbe AK |
5146 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5147 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5149 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5150 | else |
8a2fc586 | 5151 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5152 | fi |
ec6a6fbe AK |
5153 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5154 | $as_echo "$as_val"'` | |
5155 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5156 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5157 | |
5158 | fi | |
ec6a6fbe AK |
5159 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5160 | $as_echo "$as_val"'` | |
5161 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5162 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5163 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5164 | _ACEOF |
4922197a | 5165 | |
4922197a | 5166 | else |
ec6a6fbe AK |
5167 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5168 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5169 | { (exit 1); exit 1; }; } |
80992638 AK |
5170 | fi |
5171 | ||
ad6254c5 | 5172 | done |
d0191583 JM |
5173 | ;; |
5174 | esac | |
4922197a | 5175 | |
4922197a | 5176 | |
4922197a | 5177 | |
ad6254c5 AK |
5178 | |
5179 | ||
d0191583 JM |
5180 | |
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5193 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5194 | sys/types.h unistd.h | |
ad6254c5 | 5195 | do |
ec6a6fbe | 5196 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5198 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5199 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5201 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5202 | fi |
ec6a6fbe AK |
5203 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5204 | $as_echo "$as_val"'` | |
5205 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5206 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5207 | else |
ad6254c5 | 5208 | # Is the header compilable? |
ec6a6fbe AK |
5209 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5210 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5211 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5212 | /* confdefs.h. */ |
5213 | _ACEOF | |
5214 | cat confdefs.h >>conftest.$ac_ext | |
5215 | cat >>conftest.$ac_ext <<_ACEOF | |
5216 | /* end confdefs.h. */ | |
5217 | $ac_includes_default | |
5218 | #include <$ac_header> | |
5219 | _ACEOF | |
5220 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5221 | if { (ac_try="$ac_compile" |
5222 | case "(($ac_try" in | |
5223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5224 | *) ac_try_echo=$ac_try;; | |
5225 | esac | |
ec6a6fbe AK |
5226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5227 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5228 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5229 | ac_status=$? |
8a2fc586 AK |
5230 | grep -v '^ *+' conftest.er1 >conftest.err |
5231 | rm -f conftest.er1 | |
5232 | cat conftest.err >&5 | |
ec6a6fbe | 5233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5234 | (exit $ac_status); } && { |
5235 | test -z "$ac_c_werror_flag" || | |
5236 | test ! -s conftest.err | |
5237 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5238 | ac_header_compiler=yes |
5239 | else | |
ec6a6fbe | 5240 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5241 | sed 's/^/| /' conftest.$ac_ext >&5 |
5242 | ||
7a197a62 | 5243 | ac_header_compiler=no |
ad6254c5 | 5244 | fi |
7a197a62 AK |
5245 | |
5246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5247 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5248 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5249 | |
5250 | # Is the header present? | |
ec6a6fbe AK |
5251 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5252 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5253 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5254 | /* confdefs.h. */ |
5255 | _ACEOF | |
5256 | cat confdefs.h >>conftest.$ac_ext | |
5257 | cat >>conftest.$ac_ext <<_ACEOF | |
5258 | /* end confdefs.h. */ | |
5259 | #include <$ac_header> | |
5260 | _ACEOF | |
7a197a62 AK |
5261 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5262 | case "(($ac_try" in | |
5263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5264 | *) ac_try_echo=$ac_try;; | |
5265 | esac | |
ec6a6fbe AK |
5266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5267 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5268 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5269 | ac_status=$? |
5270 | grep -v '^ *+' conftest.er1 >conftest.err | |
5271 | rm -f conftest.er1 | |
5272 | cat conftest.err >&5 | |
ec6a6fbe | 5273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5274 | (exit $ac_status); } >/dev/null && { |
5275 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5276 | test ! -s conftest.err | |
5277 | }; then | |
ad6254c5 AK |
5278 | ac_header_preproc=yes |
5279 | else | |
ec6a6fbe | 5280 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5281 | sed 's/^/| /' conftest.$ac_ext >&5 |
5282 | ||
5283 | ac_header_preproc=no | |
5284 | fi | |
7a197a62 | 5285 | |
ad6254c5 | 5286 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5287 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5288 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5289 | |
5290 | # So? What about this header? | |
8a2fc586 AK |
5291 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5292 | yes:no: ) | |
ec6a6fbe AK |
5293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5294 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5295 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5296 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5297 | ac_header_preproc=yes |
ad6254c5 | 5298 | ;; |
8a2fc586 | 5299 | no:yes:* ) |
ec6a6fbe AK |
5300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5301 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5303 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5305 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5307 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5309 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5311 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5312 | |
ad6254c5 AK |
5313 | ;; |
5314 | esac | |
ec6a6fbe AK |
5315 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5316 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5317 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5318 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5319 | else |
8a2fc586 | 5320 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5321 | fi |
ec6a6fbe AK |
5322 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5323 | $as_echo "$as_val"'` | |
5324 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5325 | $as_echo "$ac_res" >&6; } | |
80992638 | 5326 | |
ad6254c5 | 5327 | fi |
ec6a6fbe AK |
5328 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5329 | $as_echo "$as_val"'` | |
5330 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5331 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5332 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5333 | _ACEOF |
795ca3e5 | 5334 | |
795ca3e5 | 5335 | else |
ec6a6fbe AK |
5336 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5337 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5338 | { (exit 1); exit 1; }; } |
80992638 AK |
5339 | fi |
5340 | ||
ad6254c5 | 5341 | done |
ad6254c5 | 5342 | |
795ca3e5 | 5343 | |
d0191583 JM |
5344 | |
5345 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5346 | do |
ec6a6fbe | 5347 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5349 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5350 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5352 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5353 | fi |
ec6a6fbe AK |
5354 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5355 | $as_echo "$as_val"'` | |
5356 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5357 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5358 | else |
5359 | # Is the header compilable? | |
ec6a6fbe AK |
5360 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5361 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5362 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5363 | /* confdefs.h. */ |
5364 | _ACEOF | |
5365 | cat confdefs.h >>conftest.$ac_ext | |
5366 | cat >>conftest.$ac_ext <<_ACEOF | |
5367 | /* end confdefs.h. */ | |
5368 | $ac_includes_default | |
5369 | #include <$ac_header> | |
5370 | _ACEOF | |
5371 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5372 | if { (ac_try="$ac_compile" |
5373 | case "(($ac_try" in | |
5374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5375 | *) ac_try_echo=$ac_try;; | |
5376 | esac | |
ec6a6fbe AK |
5377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5378 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5379 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5380 | ac_status=$? |
8a2fc586 AK |
5381 | grep -v '^ *+' conftest.er1 >conftest.err |
5382 | rm -f conftest.er1 | |
5383 | cat conftest.err >&5 | |
ec6a6fbe | 5384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5385 | (exit $ac_status); } && { |
5386 | test -z "$ac_c_werror_flag" || | |
5387 | test ! -s conftest.err | |
5388 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5389 | ac_header_compiler=yes |
5390 | else | |
ec6a6fbe | 5391 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
5393 | ||
7a197a62 | 5394 | ac_header_compiler=no |
ad6254c5 | 5395 | fi |
7a197a62 AK |
5396 | |
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5398 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5399 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5400 | |
5401 | # Is the header present? | |
ec6a6fbe AK |
5402 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5403 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5404 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5405 | /* confdefs.h. */ |
5406 | _ACEOF | |
5407 | cat confdefs.h >>conftest.$ac_ext | |
5408 | cat >>conftest.$ac_ext <<_ACEOF | |
5409 | /* end confdefs.h. */ | |
5410 | #include <$ac_header> | |
5411 | _ACEOF | |
7a197a62 AK |
5412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5413 | case "(($ac_try" in | |
5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5415 | *) ac_try_echo=$ac_try;; | |
5416 | esac | |
ec6a6fbe AK |
5417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5418 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5420 | ac_status=$? |
5421 | grep -v '^ *+' conftest.er1 >conftest.err | |
5422 | rm -f conftest.er1 | |
5423 | cat conftest.err >&5 | |
ec6a6fbe | 5424 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5425 | (exit $ac_status); } >/dev/null && { |
5426 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5427 | test ! -s conftest.err | |
5428 | }; then | |
ad6254c5 AK |
5429 | ac_header_preproc=yes |
5430 | else | |
ec6a6fbe | 5431 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5432 | sed 's/^/| /' conftest.$ac_ext >&5 |
5433 | ||
5434 | ac_header_preproc=no | |
5435 | fi | |
7a197a62 | 5436 | |
ad6254c5 | 5437 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5438 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5439 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5440 | |
5441 | # So? What about this header? | |
8a2fc586 AK |
5442 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5443 | yes:no: ) | |
ec6a6fbe AK |
5444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5445 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5447 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5448 | ac_header_preproc=yes |
ad6254c5 | 5449 | ;; |
8a2fc586 | 5450 | no:yes:* ) |
ec6a6fbe AK |
5451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5452 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5454 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5456 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5458 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5460 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5462 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5463 | |
ad6254c5 AK |
5464 | ;; |
5465 | esac | |
ec6a6fbe AK |
5466 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5467 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5469 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5470 | else |
8a2fc586 | 5471 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5472 | fi |
ec6a6fbe AK |
5473 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5474 | $as_echo "$as_val"'` | |
5475 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5476 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5477 | |
ad6254c5 | 5478 | fi |
ec6a6fbe AK |
5479 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5480 | $as_echo "$as_val"'` | |
5481 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5482 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5483 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5484 | _ACEOF |
5485 | ||
80992638 AK |
5486 | fi |
5487 | ||
ad6254c5 | 5488 | done |
d0191583 | 5489 | |
d3c8211f | 5490 | |
80992638 | 5491 | ################################################################################ |
ec6a6fbe AK |
5492 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5493 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5494 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5495 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5496 | else |
ad6254c5 | 5497 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5498 | /* confdefs.h. */ |
5499 | _ACEOF | |
5500 | cat confdefs.h >>conftest.$ac_ext | |
5501 | cat >>conftest.$ac_ext <<_ACEOF | |
5502 | /* end confdefs.h. */ | |
5503 | ||
5504 | int | |
5505 | main () | |
5506 | { | |
5507 | /* FIXME: Include the comments suggested by Paul. */ | |
5508 | #ifndef __cplusplus | |
5509 | /* Ultrix mips cc rejects this. */ | |
5510 | typedef int charset[2]; | |
25fbec5b | 5511 | const charset cs; |
ad6254c5 | 5512 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5513 | char const *const *pcpcc; |
5514 | char **ppc; | |
ad6254c5 AK |
5515 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5516 | struct point {int x, y;}; | |
5517 | static struct point const zero = {0,0}; | |
5518 | /* AIX XL C 1.02.0.0 rejects this. | |
5519 | It does not let you subtract one const X* pointer from another in | |
5520 | an arm of an if-expression whose if-part is not a constant | |
5521 | expression */ | |
5522 | const char *g = "string"; | |
25fbec5b | 5523 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5524 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5525 | ++pcpcc; |
5526 | ppc = (char**) pcpcc; | |
5527 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5528 | { /* SCO 3.2v4 cc rejects this. */ |
5529 | char *t; | |
5530 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5531 | ||
5532 | *t++ = 0; | |
7a197a62 | 5533 | if (s) return 0; |
ad6254c5 AK |
5534 | } |
5535 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5536 | int x[] = {25, 17}; | |
5537 | const int *foo = &x[0]; | |
5538 | ++foo; | |
5539 | } | |
5540 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5541 | typedef const int *iptr; | |
5542 | iptr p = 0; | |
5543 | ++p; | |
5544 | } | |
5545 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5546 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5547 | struct s { int j; const int *ap[3]; }; | |
5548 | struct s *b; b->j = 5; | |
5549 | } | |
5550 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5551 | const int foo = 10; | |
7a197a62 | 5552 | if (!foo) return 0; |
ad6254c5 | 5553 | } |
25fbec5b | 5554 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5555 | #endif |
5556 | ||
5557 | ; | |
5558 | return 0; | |
5559 | } | |
5560 | _ACEOF | |
5561 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5562 | if { (ac_try="$ac_compile" |
5563 | case "(($ac_try" in | |
5564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5565 | *) ac_try_echo=$ac_try;; | |
5566 | esac | |
ec6a6fbe AK |
5567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5568 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5569 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5570 | ac_status=$? |
8a2fc586 AK |
5571 | grep -v '^ *+' conftest.er1 >conftest.err |
5572 | rm -f conftest.er1 | |
5573 | cat conftest.err >&5 | |
ec6a6fbe | 5574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5575 | (exit $ac_status); } && { |
5576 | test -z "$ac_c_werror_flag" || | |
5577 | test ! -s conftest.err | |
5578 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5579 | ac_cv_c_const=yes |
5580 | else | |
ec6a6fbe | 5581 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5582 | sed 's/^/| /' conftest.$ac_ext >&5 |
5583 | ||
7a197a62 | 5584 | ac_cv_c_const=no |
ad6254c5 | 5585 | fi |
7a197a62 AK |
5586 | |
5587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5588 | fi |
ec6a6fbe AK |
5589 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5590 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5591 | if test $ac_cv_c_const = no; then |
80992638 | 5592 | |
ad6254c5 | 5593 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5594 | #define const /**/ |
ad6254c5 | 5595 | _ACEOF |
80992638 | 5596 | |
d3c8211f | 5597 | fi |
d3c8211f | 5598 | |
ec6a6fbe AK |
5599 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5600 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5601 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5602 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5603 | else |
ad6254c5 AK |
5604 | ac_cv_c_inline=no |
5605 | for ac_kw in inline __inline__ __inline; do | |
5606 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5607 | /* confdefs.h. */ |
5608 | _ACEOF | |
5609 | cat confdefs.h >>conftest.$ac_ext | |
5610 | cat >>conftest.$ac_ext <<_ACEOF | |
5611 | /* end confdefs.h. */ | |
5612 | #ifndef __cplusplus | |
5613 | typedef int foo_t; | |
5614 | static $ac_kw foo_t static_foo () {return 0; } | |
5615 | $ac_kw foo_t foo () {return 0; } | |
5616 | #endif | |
80992638 | 5617 | |
ad6254c5 AK |
5618 | _ACEOF |
5619 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5620 | if { (ac_try="$ac_compile" |
5621 | case "(($ac_try" in | |
5622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5623 | *) ac_try_echo=$ac_try;; | |
5624 | esac | |
ec6a6fbe AK |
5625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5626 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5627 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5628 | ac_status=$? |
8a2fc586 AK |
5629 | grep -v '^ *+' conftest.er1 >conftest.err |
5630 | rm -f conftest.er1 | |
5631 | cat conftest.err >&5 | |
ec6a6fbe | 5632 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5633 | (exit $ac_status); } && { |
5634 | test -z "$ac_c_werror_flag" || | |
5635 | test ! -s conftest.err | |
5636 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5637 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5638 | else |
ec6a6fbe | 5639 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5640 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5641 | |
7a197a62 | 5642 | |
8ce0cbda | 5643 | fi |
7a197a62 AK |
5644 | |
5645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5646 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5647 | done |
8ce0cbda | 5648 | |
8ce0cbda | 5649 | fi |
ec6a6fbe AK |
5650 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5651 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5652 | |
5653 | ||
ad6254c5 AK |
5654 | case $ac_cv_c_inline in |
5655 | inline | yes) ;; | |
8a2fc586 AK |
5656 | *) |
5657 | case $ac_cv_c_inline in | |
5658 | no) ac_val=;; | |
5659 | *) ac_val=$ac_cv_c_inline;; | |
5660 | esac | |
5661 | cat >>confdefs.h <<_ACEOF | |
5662 | #ifndef __cplusplus | |
5663 | #define inline $ac_val | |
5664 | #endif | |
c1c065a3 | 5665 | _ACEOF |
d0191583 JM |
5666 | ;; |
5667 | esac | |
5668 | ||
ec6a6fbe AK |
5669 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5670 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5671 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5672 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5673 | else |
5674 | cat >conftest.$ac_ext <<_ACEOF | |
5675 | /* confdefs.h. */ | |
5676 | _ACEOF | |
5677 | cat confdefs.h >>conftest.$ac_ext | |
5678 | cat >>conftest.$ac_ext <<_ACEOF | |
5679 | /* end confdefs.h. */ | |
5680 | $ac_includes_default | |
5681 | int | |
5682 | main () | |
5683 | { | |
5684 | static struct stat ac_aggr; | |
5685 | if (ac_aggr.st_rdev) | |
5686 | return 0; | |
5687 | ; | |
5688 | return 0; | |
5689 | } | |
5690 | _ACEOF | |
5691 | rm -f conftest.$ac_objext | |
5692 | if { (ac_try="$ac_compile" | |
5693 | case "(($ac_try" in | |
5694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5695 | *) ac_try_echo=$ac_try;; | |
5696 | esac | |
ec6a6fbe AK |
5697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5698 | $as_echo "$ac_try_echo") >&5 | |
5699 | (eval "$ac_compile") 2>conftest.er1 | |
5700 | ac_status=$? | |
5701 | grep -v '^ *+' conftest.er1 >conftest.err | |
5702 | rm -f conftest.er1 | |
5703 | cat conftest.err >&5 | |
5704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5705 | (exit $ac_status); } && { | |
5706 | test -z "$ac_c_werror_flag" || | |
5707 | test ! -s conftest.err | |
5708 | } && test -s conftest.$ac_objext; then | |
5709 | ac_cv_member_struct_stat_st_rdev=yes | |
5710 | else | |
5711 | $as_echo "$as_me: failed program was:" >&5 | |
5712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5713 | ||
5714 | cat >conftest.$ac_ext <<_ACEOF | |
5715 | /* confdefs.h. */ | |
5716 | _ACEOF | |
5717 | cat confdefs.h >>conftest.$ac_ext | |
5718 | cat >>conftest.$ac_ext <<_ACEOF | |
5719 | /* end confdefs.h. */ | |
5720 | $ac_includes_default | |
5721 | int | |
5722 | main () | |
5723 | { | |
5724 | static struct stat ac_aggr; | |
5725 | if (sizeof ac_aggr.st_rdev) | |
5726 | return 0; | |
5727 | ; | |
5728 | return 0; | |
5729 | } | |
5730 | _ACEOF | |
5731 | rm -f conftest.$ac_objext | |
5732 | if { (ac_try="$ac_compile" | |
5733 | case "(($ac_try" in | |
5734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5735 | *) ac_try_echo=$ac_try;; | |
5736 | esac | |
5737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5738 | $as_echo "$ac_try_echo") >&5 | |
5739 | (eval "$ac_compile") 2>conftest.er1 | |
5740 | ac_status=$? | |
5741 | grep -v '^ *+' conftest.er1 >conftest.err | |
5742 | rm -f conftest.er1 | |
5743 | cat conftest.err >&5 | |
5744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5745 | (exit $ac_status); } && { | |
5746 | test -z "$ac_c_werror_flag" || | |
5747 | test ! -s conftest.err | |
5748 | } && test -s conftest.$ac_objext; then | |
5749 | ac_cv_member_struct_stat_st_rdev=yes | |
5750 | else | |
5751 | $as_echo "$as_me: failed program was:" >&5 | |
5752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5753 | ||
5754 | ac_cv_member_struct_stat_st_rdev=no | |
5755 | fi | |
5756 | ||
5757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5758 | fi | |
5759 | ||
5760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5761 | fi | |
5762 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5763 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5764 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5765 | ||
5766 | cat >>confdefs.h <<_ACEOF | |
5767 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5768 | _ACEOF | |
5769 | ||
5770 | ||
5771 | fi | |
5772 | ||
5773 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5774 | $as_echo_n "checking for off_t... " >&6; } | |
5775 | if test "${ac_cv_type_off_t+set}" = set; then | |
5776 | $as_echo_n "(cached) " >&6 | |
5777 | else | |
5778 | ac_cv_type_off_t=no | |
5779 | cat >conftest.$ac_ext <<_ACEOF | |
5780 | /* confdefs.h. */ | |
5781 | _ACEOF | |
5782 | cat confdefs.h >>conftest.$ac_ext | |
5783 | cat >>conftest.$ac_ext <<_ACEOF | |
5784 | /* end confdefs.h. */ | |
5785 | $ac_includes_default | |
5786 | int | |
5787 | main () | |
5788 | { | |
5789 | if (sizeof (off_t)) | |
5790 | return 0; | |
5791 | ; | |
5792 | return 0; | |
5793 | } | |
5794 | _ACEOF | |
5795 | rm -f conftest.$ac_objext | |
5796 | if { (ac_try="$ac_compile" | |
5797 | case "(($ac_try" in | |
5798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5799 | *) ac_try_echo=$ac_try;; | |
5800 | esac | |
5801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5802 | $as_echo "$ac_try_echo") >&5 | |
5803 | (eval "$ac_compile") 2>conftest.er1 | |
5804 | ac_status=$? | |
5805 | grep -v '^ *+' conftest.er1 >conftest.err | |
5806 | rm -f conftest.er1 | |
5807 | cat conftest.err >&5 | |
5808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5809 | (exit $ac_status); } && { | |
5810 | test -z "$ac_c_werror_flag" || | |
5811 | test ! -s conftest.err | |
5812 | } && test -s conftest.$ac_objext; then | |
5813 | cat >conftest.$ac_ext <<_ACEOF | |
5814 | /* confdefs.h. */ | |
5815 | _ACEOF | |
5816 | cat confdefs.h >>conftest.$ac_ext | |
5817 | cat >>conftest.$ac_ext <<_ACEOF | |
5818 | /* end confdefs.h. */ | |
5819 | $ac_includes_default | |
5820 | int | |
5821 | main () | |
5822 | { | |
5823 | if (sizeof ((off_t))) | |
5824 | return 0; | |
5825 | ; | |
5826 | return 0; | |
5827 | } | |
5828 | _ACEOF | |
5829 | rm -f conftest.$ac_objext | |
5830 | if { (ac_try="$ac_compile" | |
5831 | case "(($ac_try" in | |
5832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5833 | *) ac_try_echo=$ac_try;; | |
5834 | esac | |
5835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5836 | $as_echo "$ac_try_echo") >&5 | |
5837 | (eval "$ac_compile") 2>conftest.er1 | |
5838 | ac_status=$? | |
5839 | grep -v '^ *+' conftest.er1 >conftest.err | |
5840 | rm -f conftest.er1 | |
5841 | cat conftest.err >&5 | |
5842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5843 | (exit $ac_status); } && { | |
5844 | test -z "$ac_c_werror_flag" || | |
5845 | test ! -s conftest.err | |
5846 | } && test -s conftest.$ac_objext; then | |
5847 | : | |
5848 | else | |
5849 | $as_echo "$as_me: failed program was:" >&5 | |
5850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5851 | ||
5852 | ac_cv_type_off_t=yes | |
5853 | fi | |
5854 | ||
5855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5856 | else | |
5857 | $as_echo "$as_me: failed program was:" >&5 | |
5858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5859 | ||
5860 | ||
5861 | fi | |
5862 | ||
5863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5864 | fi | |
5865 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5866 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5867 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5868 | : | |
5869 | else | |
5870 | ||
5871 | cat >>confdefs.h <<_ACEOF | |
5872 | #define off_t long int | |
5873 | _ACEOF | |
5874 | ||
5875 | fi | |
5876 | ||
5877 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5878 | $as_echo_n "checking for pid_t... " >&6; } | |
5879 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5880 | $as_echo_n "(cached) " >&6 | |
5881 | else | |
5882 | ac_cv_type_pid_t=no | |
5883 | cat >conftest.$ac_ext <<_ACEOF | |
5884 | /* confdefs.h. */ | |
5885 | _ACEOF | |
5886 | cat confdefs.h >>conftest.$ac_ext | |
5887 | cat >>conftest.$ac_ext <<_ACEOF | |
5888 | /* end confdefs.h. */ | |
5889 | $ac_includes_default | |
5890 | int | |
5891 | main () | |
5892 | { | |
5893 | if (sizeof (pid_t)) | |
5894 | return 0; | |
5895 | ; | |
5896 | return 0; | |
5897 | } | |
5898 | _ACEOF | |
5899 | rm -f conftest.$ac_objext | |
5900 | if { (ac_try="$ac_compile" | |
5901 | case "(($ac_try" in | |
5902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5903 | *) ac_try_echo=$ac_try;; | |
5904 | esac | |
5905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5906 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5907 | (eval "$ac_compile") 2>conftest.er1 |
5908 | ac_status=$? | |
5909 | grep -v '^ *+' conftest.er1 >conftest.err | |
5910 | rm -f conftest.er1 | |
5911 | cat conftest.err >&5 | |
ec6a6fbe | 5912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5913 | (exit $ac_status); } && { |
5914 | test -z "$ac_c_werror_flag" || | |
5915 | test ! -s conftest.err | |
5916 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5917 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5918 | /* confdefs.h. */ |
5919 | _ACEOF | |
5920 | cat confdefs.h >>conftest.$ac_ext | |
5921 | cat >>conftest.$ac_ext <<_ACEOF | |
5922 | /* end confdefs.h. */ | |
5923 | $ac_includes_default | |
5924 | int | |
5925 | main () | |
5926 | { | |
ec6a6fbe AK |
5927 | if (sizeof ((pid_t))) |
5928 | return 0; | |
d0191583 JM |
5929 | ; |
5930 | return 0; | |
5931 | } | |
5932 | _ACEOF | |
5933 | rm -f conftest.$ac_objext | |
5934 | if { (ac_try="$ac_compile" | |
5935 | case "(($ac_try" in | |
5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5937 | *) ac_try_echo=$ac_try;; | |
5938 | esac | |
ec6a6fbe AK |
5939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5940 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5941 | (eval "$ac_compile") 2>conftest.er1 |
5942 | ac_status=$? | |
5943 | grep -v '^ *+' conftest.er1 >conftest.err | |
5944 | rm -f conftest.er1 | |
5945 | cat conftest.err >&5 | |
ec6a6fbe | 5946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5947 | (exit $ac_status); } && { |
5948 | test -z "$ac_c_werror_flag" || | |
5949 | test ! -s conftest.err | |
5950 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5951 | : |
d0191583 | 5952 | else |
ec6a6fbe | 5953 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5954 | sed 's/^/| /' conftest.$ac_ext >&5 |
5955 | ||
ec6a6fbe | 5956 | ac_cv_type_pid_t=yes |
d0191583 JM |
5957 | fi |
5958 | ||
5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5960 | else |
5961 | $as_echo "$as_me: failed program was:" >&5 | |
5962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5963 | ||
5964 | ||
d0191583 JM |
5965 | fi |
5966 | ||
5967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5968 | fi | |
ec6a6fbe AK |
5969 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5970 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5971 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5972 | : | |
5973 | else | |
d0191583 JM |
5974 | |
5975 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5976 | #define pid_t int |
d0191583 JM |
5977 | _ACEOF |
5978 | ||
d0191583 | 5979 | fi |
8ce0cbda | 5980 | |
ec6a6fbe AK |
5981 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5982 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5983 | if test "${ac_cv_type_signal+set}" = set; then | |
5984 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5985 | else |
b145d876 ZK |
5986 | cat >conftest.$ac_ext <<_ACEOF |
5987 | /* confdefs.h. */ | |
5988 | _ACEOF | |
5989 | cat confdefs.h >>conftest.$ac_ext | |
5990 | cat >>conftest.$ac_ext <<_ACEOF | |
5991 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5992 | #include <sys/types.h> |
5993 | #include <signal.h> | |
5994 | ||
b145d876 ZK |
5995 | int |
5996 | main () | |
5997 | { | |
ec6a6fbe | 5998 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5999 | ; |
6000 | return 0; | |
6001 | } | |
6002 | _ACEOF | |
6003 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6004 | if { (ac_try="$ac_compile" |
6005 | case "(($ac_try" in | |
6006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6007 | *) ac_try_echo=$ac_try;; | |
6008 | esac | |
ec6a6fbe AK |
6009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6010 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6011 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6012 | ac_status=$? |
8a2fc586 AK |
6013 | grep -v '^ *+' conftest.er1 >conftest.err |
6014 | rm -f conftest.er1 | |
6015 | cat conftest.err >&5 | |
ec6a6fbe | 6016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6017 | (exit $ac_status); } && { |
6018 | test -z "$ac_c_werror_flag" || | |
6019 | test ! -s conftest.err | |
6020 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6021 | ac_cv_type_signal=int |
b145d876 | 6022 | else |
ec6a6fbe | 6023 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6024 | sed 's/^/| /' conftest.$ac_ext >&5 |
6025 | ||
ec6a6fbe | 6026 | ac_cv_type_signal=void |
ad6254c5 | 6027 | fi |
b145d876 ZK |
6028 | |
6029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6030 | fi | |
ec6a6fbe AK |
6031 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6032 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6033 | |
ad6254c5 | 6034 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6035 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6036 | _ACEOF |
199e490e | 6037 | |
b896caa1 | 6038 | |
ec6a6fbe AK |
6039 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6040 | $as_echo_n "checking for size_t... " >&6; } | |
6041 | if test "${ac_cv_type_size_t+set}" = set; then | |
6042 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6043 | else |
ec6a6fbe AK |
6044 | ac_cv_type_size_t=no |
6045 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6046 | /* confdefs.h. */ |
6047 | _ACEOF | |
6048 | cat confdefs.h >>conftest.$ac_ext | |
6049 | cat >>conftest.$ac_ext <<_ACEOF | |
6050 | /* end confdefs.h. */ | |
6051 | $ac_includes_default | |
6052 | int | |
6053 | main () | |
6054 | { | |
ec6a6fbe AK |
6055 | if (sizeof (size_t)) |
6056 | return 0; | |
ad6254c5 AK |
6057 | ; |
6058 | return 0; | |
6059 | } | |
6060 | _ACEOF | |
6061 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6062 | if { (ac_try="$ac_compile" |
6063 | case "(($ac_try" in | |
6064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6065 | *) ac_try_echo=$ac_try;; | |
6066 | esac | |
ec6a6fbe AK |
6067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6068 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6069 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6070 | ac_status=$? |
8a2fc586 AK |
6071 | grep -v '^ *+' conftest.er1 >conftest.err |
6072 | rm -f conftest.er1 | |
6073 | cat conftest.err >&5 | |
ec6a6fbe | 6074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6075 | (exit $ac_status); } && { |
6076 | test -z "$ac_c_werror_flag" || | |
6077 | test ! -s conftest.err | |
6078 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6079 | cat >conftest.$ac_ext <<_ACEOF |
6080 | /* confdefs.h. */ | |
6081 | _ACEOF | |
6082 | cat confdefs.h >>conftest.$ac_ext | |
6083 | cat >>conftest.$ac_ext <<_ACEOF | |
6084 | /* end confdefs.h. */ | |
ec6a6fbe | 6085 | $ac_includes_default |
d0191583 JM |
6086 | int |
6087 | main () | |
6088 | { | |
ec6a6fbe AK |
6089 | if (sizeof ((size_t))) |
6090 | return 0; | |
d0191583 JM |
6091 | ; |
6092 | return 0; | |
6093 | } | |
6094 | _ACEOF | |
6095 | rm -f conftest.$ac_objext | |
6096 | if { (ac_try="$ac_compile" | |
6097 | case "(($ac_try" in | |
6098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6099 | *) ac_try_echo=$ac_try;; | |
6100 | esac | |
ec6a6fbe AK |
6101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6102 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6103 | (eval "$ac_compile") 2>conftest.er1 |
6104 | ac_status=$? | |
6105 | grep -v '^ *+' conftest.er1 >conftest.err | |
6106 | rm -f conftest.er1 | |
6107 | cat conftest.err >&5 | |
ec6a6fbe | 6108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6109 | (exit $ac_status); } && { |
6110 | test -z "$ac_c_werror_flag" || | |
6111 | test ! -s conftest.err | |
6112 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6113 | : |
d0191583 | 6114 | else |
ec6a6fbe | 6115 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6116 | sed 's/^/| /' conftest.$ac_ext >&5 |
6117 | ||
ec6a6fbe AK |
6118 | ac_cv_type_size_t=yes |
6119 | fi | |
6120 | ||
6121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6122 | else | |
6123 | $as_echo "$as_me: failed program was:" >&5 | |
6124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6125 | ||
6126 | ||
d0191583 JM |
6127 | fi |
6128 | ||
6129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6130 | fi | |
ec6a6fbe AK |
6131 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6132 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6133 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6134 | : | |
6135 | else | |
d0191583 JM |
6136 | |
6137 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6138 | #define size_t unsigned int |
d0191583 JM |
6139 | _ACEOF |
6140 | ||
ec6a6fbe | 6141 | fi |
d0191583 | 6142 | |
ec6a6fbe AK |
6143 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6144 | $as_echo_n "checking for mode_t... " >&6; } | |
6145 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6146 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6147 | else |
ec6a6fbe AK |
6148 | ac_cv_type_mode_t=no |
6149 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6150 | /* confdefs.h. */ |
6151 | _ACEOF | |
6152 | cat confdefs.h >>conftest.$ac_ext | |
6153 | cat >>conftest.$ac_ext <<_ACEOF | |
6154 | /* end confdefs.h. */ | |
6155 | $ac_includes_default | |
6156 | int | |
6157 | main () | |
6158 | { | |
ec6a6fbe AK |
6159 | if (sizeof (mode_t)) |
6160 | return 0; | |
ad6254c5 AK |
6161 | ; |
6162 | return 0; | |
6163 | } | |
6164 | _ACEOF | |
6165 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6166 | if { (ac_try="$ac_compile" |
6167 | case "(($ac_try" in | |
6168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6169 | *) ac_try_echo=$ac_try;; | |
6170 | esac | |
ec6a6fbe AK |
6171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6172 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6173 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6174 | ac_status=$? |
8a2fc586 AK |
6175 | grep -v '^ *+' conftest.er1 >conftest.err |
6176 | rm -f conftest.er1 | |
6177 | cat conftest.err >&5 | |
ec6a6fbe | 6178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6179 | (exit $ac_status); } && { |
6180 | test -z "$ac_c_werror_flag" || | |
6181 | test ! -s conftest.err | |
6182 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6183 | cat >conftest.$ac_ext <<_ACEOF |
6184 | /* confdefs.h. */ | |
6185 | _ACEOF | |
6186 | cat confdefs.h >>conftest.$ac_ext | |
6187 | cat >>conftest.$ac_ext <<_ACEOF | |
6188 | /* end confdefs.h. */ | |
6189 | $ac_includes_default | |
6190 | int | |
6191 | main () | |
6192 | { | |
ec6a6fbe AK |
6193 | if (sizeof ((mode_t))) |
6194 | return 0; | |
ad6254c5 AK |
6195 | ; |
6196 | return 0; | |
6197 | } | |
6198 | _ACEOF | |
6199 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6200 | if { (ac_try="$ac_compile" |
6201 | case "(($ac_try" in | |
6202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6203 | *) ac_try_echo=$ac_try;; | |
6204 | esac | |
ec6a6fbe AK |
6205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6206 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6207 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6208 | ac_status=$? |
8a2fc586 AK |
6209 | grep -v '^ *+' conftest.er1 >conftest.err |
6210 | rm -f conftest.er1 | |
6211 | cat conftest.err >&5 | |
ec6a6fbe | 6212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6213 | (exit $ac_status); } && { |
6214 | test -z "$ac_c_werror_flag" || | |
6215 | test ! -s conftest.err | |
6216 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6217 | : |
6218 | else | |
6219 | $as_echo "$as_me: failed program was:" >&5 | |
6220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6221 | ||
6222 | ac_cv_type_mode_t=yes | |
6223 | fi | |
6224 | ||
6225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6226 | else |
ec6a6fbe | 6227 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6228 | sed 's/^/| /' conftest.$ac_ext >&5 |
6229 | ||
ec6a6fbe | 6230 | |
80992638 | 6231 | fi |
7a197a62 AK |
6232 | |
6233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6234 | fi |
ec6a6fbe AK |
6235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6236 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6237 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6238 | : |
6239 | else | |
80992638 | 6240 | |
ad6254c5 AK |
6241 | cat >>confdefs.h <<_ACEOF |
6242 | #define mode_t int | |
6243 | _ACEOF | |
6244 | ||
6245 | fi | |
6246 | ||
ec6a6fbe AK |
6247 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6248 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6249 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6250 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6251 | else |
6252 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6253 | /* confdefs.h. */ |
6254 | _ACEOF | |
6255 | cat confdefs.h >>conftest.$ac_ext | |
6256 | cat >>conftest.$ac_ext <<_ACEOF | |
6257 | /* end confdefs.h. */ | |
6258 | $ac_includes_default | |
6259 | int | |
6260 | main () | |
6261 | { | |
6262 | static struct stat ac_aggr; | |
6263 | if (ac_aggr.st_rdev) | |
6264 | return 0; | |
6265 | ; | |
6266 | return 0; | |
6267 | } | |
6268 | _ACEOF | |
6269 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6270 | if { (ac_try="$ac_compile" |
6271 | case "(($ac_try" in | |
6272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6273 | *) ac_try_echo=$ac_try;; | |
6274 | esac | |
ec6a6fbe AK |
6275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6276 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6277 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6278 | ac_status=$? |
8a2fc586 AK |
6279 | grep -v '^ *+' conftest.er1 >conftest.err |
6280 | rm -f conftest.er1 | |
6281 | cat conftest.err >&5 | |
ec6a6fbe | 6282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6283 | (exit $ac_status); } && { |
6284 | test -z "$ac_c_werror_flag" || | |
6285 | test ! -s conftest.err | |
6286 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6287 | ac_cv_member_struct_stat_st_rdev=yes |
6288 | else | |
ec6a6fbe | 6289 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6290 | sed 's/^/| /' conftest.$ac_ext >&5 |
6291 | ||
7a197a62 | 6292 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6293 | /* confdefs.h. */ |
6294 | _ACEOF | |
6295 | cat confdefs.h >>conftest.$ac_ext | |
6296 | cat >>conftest.$ac_ext <<_ACEOF | |
6297 | /* end confdefs.h. */ | |
6298 | $ac_includes_default | |
6299 | int | |
6300 | main () | |
6301 | { | |
6302 | static struct stat ac_aggr; | |
6303 | if (sizeof ac_aggr.st_rdev) | |
6304 | return 0; | |
6305 | ; | |
6306 | return 0; | |
6307 | } | |
6308 | _ACEOF | |
6309 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6310 | if { (ac_try="$ac_compile" |
6311 | case "(($ac_try" in | |
6312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6313 | *) ac_try_echo=$ac_try;; | |
6314 | esac | |
ec6a6fbe AK |
6315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6316 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6317 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6318 | ac_status=$? |
8a2fc586 AK |
6319 | grep -v '^ *+' conftest.er1 >conftest.err |
6320 | rm -f conftest.er1 | |
6321 | cat conftest.err >&5 | |
ec6a6fbe | 6322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6323 | (exit $ac_status); } && { |
6324 | test -z "$ac_c_werror_flag" || | |
6325 | test ! -s conftest.err | |
6326 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6327 | ac_cv_member_struct_stat_st_rdev=yes |
6328 | else | |
ec6a6fbe | 6329 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6330 | sed 's/^/| /' conftest.$ac_ext >&5 |
6331 | ||
7a197a62 | 6332 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6333 | fi |
7a197a62 AK |
6334 | |
6335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6336 | fi |
7a197a62 AK |
6337 | |
6338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6339 | fi |
ec6a6fbe AK |
6340 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6341 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6342 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6343 | |
6344 | cat >>confdefs.h <<_ACEOF | |
6345 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6346 | _ACEOF | |
6347 | ||
6348 | ||
ad6254c5 AK |
6349 | fi |
6350 | ||
ec6a6fbe AK |
6351 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6352 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6353 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6354 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6355 | else |
6356 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6357 | /* confdefs.h. */ |
6358 | _ACEOF | |
6359 | cat confdefs.h >>conftest.$ac_ext | |
6360 | cat >>conftest.$ac_ext <<_ACEOF | |
6361 | /* end confdefs.h. */ | |
6362 | #include <sys/types.h> | |
6363 | #include <time.h> | |
6364 | ||
6365 | int | |
6366 | main () | |
6367 | { | |
25fbec5b AK |
6368 | struct tm tm; |
6369 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6370 | return !p; |
ad6254c5 AK |
6371 | ; |
6372 | return 0; | |
6373 | } | |
6374 | _ACEOF | |
6375 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6376 | if { (ac_try="$ac_compile" |
6377 | case "(($ac_try" in | |
6378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6379 | *) ac_try_echo=$ac_try;; | |
6380 | esac | |
ec6a6fbe AK |
6381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6382 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6383 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6384 | ac_status=$? |
8a2fc586 AK |
6385 | grep -v '^ *+' conftest.er1 >conftest.err |
6386 | rm -f conftest.er1 | |
6387 | cat conftest.err >&5 | |
ec6a6fbe | 6388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6389 | (exit $ac_status); } && { |
6390 | test -z "$ac_c_werror_flag" || | |
6391 | test ! -s conftest.err | |
6392 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6393 | ac_cv_struct_tm=time.h |
6394 | else | |
ec6a6fbe | 6395 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6396 | sed 's/^/| /' conftest.$ac_ext >&5 |
6397 | ||
7a197a62 | 6398 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6399 | fi |
7a197a62 AK |
6400 | |
6401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6402 | fi |
ec6a6fbe AK |
6403 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6404 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6405 | if test $ac_cv_struct_tm = sys/time.h; then |
6406 | ||
6407 | cat >>confdefs.h <<\_ACEOF | |
6408 | #define TM_IN_SYS_TIME 1 | |
6409 | _ACEOF | |
6410 | ||
6411 | fi | |
809fae91 | 6412 | |
795ca3e5 | 6413 | |
80992638 | 6414 | ################################################################################ |
ad6254c5 AK |
6415 | |
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
d0191583 JM |
6429 | |
6430 | ||
6431 | ||
6432 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6433 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6434 | uname | |
ad6254c5 | 6435 | do |
ec6a6fbe AK |
6436 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6437 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6438 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6439 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6440 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6441 | else |
ad6254c5 | 6442 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6443 | /* confdefs.h. */ |
6444 | _ACEOF | |
6445 | cat confdefs.h >>conftest.$ac_ext | |
6446 | cat >>conftest.$ac_ext <<_ACEOF | |
6447 | /* end confdefs.h. */ | |
8a2fc586 AK |
6448 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6450 | #define $ac_func innocuous_$ac_func | |
6451 | ||
ad6254c5 AK |
6452 | /* System header to define __stub macros and hopefully few prototypes, |
6453 | which can conflict with char $ac_func (); below. | |
6454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6455 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6456 | |
ad6254c5 AK |
6457 | #ifdef __STDC__ |
6458 | # include <limits.h> | |
6459 | #else | |
6460 | # include <assert.h> | |
6461 | #endif | |
8a2fc586 AK |
6462 | |
6463 | #undef $ac_func | |
6464 | ||
7a197a62 AK |
6465 | /* Override any GCC internal prototype to avoid an error. |
6466 | Use char because int might match the return type of a GCC | |
6467 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6468 | #ifdef __cplusplus |
6469 | extern "C" | |
ad6254c5 | 6470 | #endif |
ad6254c5 AK |
6471 | char $ac_func (); |
6472 | /* The GNU C library defines this for functions which it implements | |
6473 | to always fail with ENOSYS. Some functions are actually named | |
6474 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6475 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6476 | choke me |
ad6254c5 AK |
6477 | #endif |
6478 | ||
6479 | int | |
6480 | main () | |
6481 | { | |
7a197a62 | 6482 | return $ac_func (); |
ad6254c5 AK |
6483 | ; |
6484 | return 0; | |
6485 | } | |
6486 | _ACEOF | |
6487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6488 | if { (ac_try="$ac_link" |
6489 | case "(($ac_try" in | |
6490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6491 | *) ac_try_echo=$ac_try;; | |
6492 | esac | |
ec6a6fbe AK |
6493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6494 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6495 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6496 | ac_status=$? |
8a2fc586 AK |
6497 | grep -v '^ *+' conftest.er1 >conftest.err |
6498 | rm -f conftest.er1 | |
6499 | cat conftest.err >&5 | |
ec6a6fbe | 6500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6501 | (exit $ac_status); } && { |
6502 | test -z "$ac_c_werror_flag" || | |
6503 | test ! -s conftest.err | |
ec6a6fbe AK |
6504 | } && test -s conftest$ac_exeext && { |
6505 | test "$cross_compiling" = yes || | |
6506 | $as_test_x conftest$ac_exeext | |
6507 | }; then | |
fc54be10 AK |
6508 | eval "$as_ac_var=yes" |
6509 | else | |
ec6a6fbe | 6510 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6511 | sed 's/^/| /' conftest.$ac_ext >&5 |
6512 | ||
6513 | eval "$as_ac_var=no" | |
6514 | fi | |
6515 | ||
ec6a6fbe | 6516 | rm -rf conftest.dSYM |
25fbec5b | 6517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6518 | conftest$ac_exeext conftest.$ac_ext |
6519 | fi | |
ec6a6fbe AK |
6520 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6521 | $as_echo "$as_val"'` | |
6522 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6523 | $as_echo "$ac_res" >&6; } | |
6524 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6525 | $as_echo "$as_val"'` | |
6526 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6527 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6528 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6529 | _ACEOF |
6530 | ||
6531 | else | |
ec6a6fbe AK |
6532 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6533 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6534 | { (exit 1); exit 1; }; } |
6535 | fi | |
6536 | done | |
795ca3e5 | 6537 | |
a0f9708e AK |
6538 | |
6539 | for ac_func in siginterrupt | |
6540 | do | |
6541 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6542 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6543 | $as_echo_n "checking for $ac_func... " >&6; } | |
6544 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6545 | $as_echo_n "(cached) " >&6 | |
6546 | else | |
6547 | cat >conftest.$ac_ext <<_ACEOF | |
6548 | /* confdefs.h. */ | |
6549 | _ACEOF | |
6550 | cat confdefs.h >>conftest.$ac_ext | |
6551 | cat >>conftest.$ac_ext <<_ACEOF | |
6552 | /* end confdefs.h. */ | |
6553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6555 | #define $ac_func innocuous_$ac_func | |
6556 | ||
6557 | /* System header to define __stub macros and hopefully few prototypes, | |
6558 | which can conflict with char $ac_func (); below. | |
6559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6560 | <limits.h> exists even on freestanding compilers. */ | |
6561 | ||
6562 | #ifdef __STDC__ | |
6563 | # include <limits.h> | |
6564 | #else | |
6565 | # include <assert.h> | |
6566 | #endif | |
6567 | ||
6568 | #undef $ac_func | |
6569 | ||
6570 | /* Override any GCC internal prototype to avoid an error. | |
6571 | Use char because int might match the return type of a GCC | |
6572 | builtin and then its argument prototype would still apply. */ | |
6573 | #ifdef __cplusplus | |
6574 | extern "C" | |
6575 | #endif | |
6576 | char $ac_func (); | |
6577 | /* The GNU C library defines this for functions which it implements | |
6578 | to always fail with ENOSYS. Some functions are actually named | |
6579 | something starting with __ and the normal name is an alias. */ | |
6580 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6581 | choke me | |
6582 | #endif | |
6583 | ||
6584 | int | |
6585 | main () | |
6586 | { | |
6587 | return $ac_func (); | |
6588 | ; | |
6589 | return 0; | |
6590 | } | |
6591 | _ACEOF | |
6592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6593 | if { (ac_try="$ac_link" | |
6594 | case "(($ac_try" in | |
6595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6596 | *) ac_try_echo=$ac_try;; | |
6597 | esac | |
6598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6599 | $as_echo "$ac_try_echo") >&5 | |
6600 | (eval "$ac_link") 2>conftest.er1 | |
6601 | ac_status=$? | |
6602 | grep -v '^ *+' conftest.er1 >conftest.err | |
6603 | rm -f conftest.er1 | |
6604 | cat conftest.err >&5 | |
6605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6606 | (exit $ac_status); } && { | |
6607 | test -z "$ac_c_werror_flag" || | |
6608 | test ! -s conftest.err | |
6609 | } && test -s conftest$ac_exeext && { | |
6610 | test "$cross_compiling" = yes || | |
6611 | $as_test_x conftest$ac_exeext | |
6612 | }; then | |
6613 | eval "$as_ac_var=yes" | |
6614 | else | |
6615 | $as_echo "$as_me: failed program was:" >&5 | |
6616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6617 | ||
6618 | eval "$as_ac_var=no" | |
6619 | fi | |
6620 | ||
6621 | rm -rf conftest.dSYM | |
6622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6623 | conftest$ac_exeext conftest.$ac_ext | |
6624 | fi | |
6625 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
6626 | $as_echo "$as_val"'` | |
6627 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6628 | $as_echo "$ac_res" >&6; } | |
6629 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6630 | $as_echo "$as_val"'` | |
6631 | if test "x$as_val" = x""yes; then | |
6632 | cat >>confdefs.h <<_ACEOF | |
6633 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6634 | _ACEOF | |
6635 | ||
6636 | fi | |
6637 | done | |
6638 | ||
ad6254c5 AK |
6639 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6640 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6641 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6642 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6643 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6644 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6645 | else |
6646 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6647 | /* confdefs.h. */ |
6648 | _ACEOF | |
6649 | cat confdefs.h >>conftest.$ac_ext | |
6650 | cat >>conftest.$ac_ext <<_ACEOF | |
6651 | /* end confdefs.h. */ | |
6652 | #include <alloca.h> | |
6653 | int | |
6654 | main () | |
6655 | { | |
6656 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6657 | if (p) return 0; |
ad6254c5 AK |
6658 | ; |
6659 | return 0; | |
6660 | } | |
6661 | _ACEOF | |
6662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6663 | if { (ac_try="$ac_link" |
6664 | case "(($ac_try" in | |
6665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6666 | *) ac_try_echo=$ac_try;; | |
6667 | esac | |
ec6a6fbe AK |
6668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6669 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6670 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6671 | ac_status=$? |
8a2fc586 AK |
6672 | grep -v '^ *+' conftest.er1 >conftest.err |
6673 | rm -f conftest.er1 | |
6674 | cat conftest.err >&5 | |
ec6a6fbe | 6675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6676 | (exit $ac_status); } && { |
6677 | test -z "$ac_c_werror_flag" || | |
6678 | test ! -s conftest.err | |
ec6a6fbe AK |
6679 | } && test -s conftest$ac_exeext && { |
6680 | test "$cross_compiling" = yes || | |
6681 | $as_test_x conftest$ac_exeext | |
6682 | }; then | |
ad6254c5 AK |
6683 | ac_cv_working_alloca_h=yes |
6684 | else | |
ec6a6fbe | 6685 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6686 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6687 | |
7a197a62 | 6688 | ac_cv_working_alloca_h=no |
ad6254c5 | 6689 | fi |
7a197a62 | 6690 | |
ec6a6fbe | 6691 | rm -rf conftest.dSYM |
25fbec5b | 6692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6693 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6694 | fi |
ec6a6fbe AK |
6695 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6696 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6697 | if test $ac_cv_working_alloca_h = yes; then |
6698 | ||
6699 | cat >>confdefs.h <<\_ACEOF | |
6700 | #define HAVE_ALLOCA_H 1 | |
6701 | _ACEOF | |
6702 | ||
6703 | fi | |
6704 | ||
ec6a6fbe AK |
6705 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6706 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6707 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6708 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6709 | else |
6710 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6711 | /* confdefs.h. */ |
6712 | _ACEOF | |
6713 | cat confdefs.h >>conftest.$ac_ext | |
6714 | cat >>conftest.$ac_ext <<_ACEOF | |
6715 | /* end confdefs.h. */ | |
6716 | #ifdef __GNUC__ | |
6717 | # define alloca __builtin_alloca | |
6718 | #else | |
6719 | # ifdef _MSC_VER | |
6720 | # include <malloc.h> | |
6721 | # define alloca _alloca | |
6722 | # else | |
25fbec5b | 6723 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6724 | # include <alloca.h> |
6725 | # else | |
6726 | # ifdef _AIX | |
6727 | #pragma alloca | |
6728 | # else | |
6729 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6730 | char *alloca (); | |
6731 | # endif | |
6732 | # endif | |
6733 | # endif | |
6734 | # endif | |
6735 | #endif | |
6736 | ||
6737 | int | |
6738 | main () | |
6739 | { | |
6740 | char *p = (char *) alloca (1); | |
7a197a62 | 6741 | if (p) return 0; |
ad6254c5 AK |
6742 | ; |
6743 | return 0; | |
6744 | } | |
6745 | _ACEOF | |
6746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6747 | if { (ac_try="$ac_link" |
6748 | case "(($ac_try" in | |
6749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6750 | *) ac_try_echo=$ac_try;; | |
6751 | esac | |
ec6a6fbe AK |
6752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6753 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6754 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6755 | ac_status=$? |
8a2fc586 AK |
6756 | grep -v '^ *+' conftest.er1 >conftest.err |
6757 | rm -f conftest.er1 | |
6758 | cat conftest.err >&5 | |
ec6a6fbe | 6759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6760 | (exit $ac_status); } && { |
6761 | test -z "$ac_c_werror_flag" || | |
6762 | test ! -s conftest.err | |
ec6a6fbe AK |
6763 | } && test -s conftest$ac_exeext && { |
6764 | test "$cross_compiling" = yes || | |
6765 | $as_test_x conftest$ac_exeext | |
6766 | }; then | |
ad6254c5 AK |
6767 | ac_cv_func_alloca_works=yes |
6768 | else | |
ec6a6fbe | 6769 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6770 | sed 's/^/| /' conftest.$ac_ext >&5 |
6771 | ||
7a197a62 | 6772 | ac_cv_func_alloca_works=no |
ad6254c5 | 6773 | fi |
7a197a62 | 6774 | |
ec6a6fbe | 6775 | rm -rf conftest.dSYM |
25fbec5b | 6776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6777 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6778 | fi |
ec6a6fbe AK |
6779 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6780 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6781 | |
6782 | if test $ac_cv_func_alloca_works = yes; then | |
6783 | ||
6784 | cat >>confdefs.h <<\_ACEOF | |
6785 | #define HAVE_ALLOCA 1 | |
6786 | _ACEOF | |
6787 | ||
6788 | else | |
6789 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6790 | # that cause trouble. Some versions do not even contain alloca or | |
6791 | # contain a buggy version. If you still want to use their alloca, | |
6792 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6793 | ||
7a197a62 | 6794 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6795 | |
6796 | cat >>confdefs.h <<\_ACEOF | |
6797 | #define C_ALLOCA 1 | |
6798 | _ACEOF | |
6799 | ||
6800 | ||
ec6a6fbe AK |
6801 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6802 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6803 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6804 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6805 | else |
6806 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6807 | /* confdefs.h. */ |
6808 | _ACEOF | |
6809 | cat confdefs.h >>conftest.$ac_ext | |
6810 | cat >>conftest.$ac_ext <<_ACEOF | |
6811 | /* end confdefs.h. */ | |
7a197a62 | 6812 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6813 | webecray |
6814 | #else | |
6815 | wenotbecray | |
6816 | #endif | |
6817 | ||
6818 | _ACEOF | |
795ca3e5 | 6819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6820 | $EGREP "webecray" >/dev/null 2>&1; then |
6821 | ac_cv_os_cray=yes | |
6822 | else | |
6823 | ac_cv_os_cray=no | |
795ca3e5 AK |
6824 | fi |
6825 | rm -f conftest* | |
6826 | ||
795ca3e5 | 6827 | fi |
ec6a6fbe AK |
6828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6829 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6830 | if test $ac_cv_os_cray = yes; then |
6831 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6832 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6833 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6834 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6835 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6836 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6837 | else |
6838 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6839 | /* confdefs.h. */ |
6840 | _ACEOF | |
6841 | cat confdefs.h >>conftest.$ac_ext | |
6842 | cat >>conftest.$ac_ext <<_ACEOF | |
6843 | /* end confdefs.h. */ | |
8a2fc586 AK |
6844 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6845 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6846 | #define $ac_func innocuous_$ac_func | |
6847 | ||
ad6254c5 AK |
6848 | /* System header to define __stub macros and hopefully few prototypes, |
6849 | which can conflict with char $ac_func (); below. | |
6850 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6851 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6852 | |
ad6254c5 AK |
6853 | #ifdef __STDC__ |
6854 | # include <limits.h> | |
6855 | #else | |
6856 | # include <assert.h> | |
6857 | #endif | |
8a2fc586 AK |
6858 | |
6859 | #undef $ac_func | |
6860 | ||
7a197a62 AK |
6861 | /* Override any GCC internal prototype to avoid an error. |
6862 | Use char because int might match the return type of a GCC | |
6863 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6864 | #ifdef __cplusplus |
6865 | extern "C" | |
ad6254c5 | 6866 | #endif |
ad6254c5 AK |
6867 | char $ac_func (); |
6868 | /* The GNU C library defines this for functions which it implements | |
6869 | to always fail with ENOSYS. Some functions are actually named | |
6870 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6871 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6872 | choke me |
ad6254c5 AK |
6873 | #endif |
6874 | ||
6875 | int | |
6876 | main () | |
6877 | { | |
7a197a62 | 6878 | return $ac_func (); |
ad6254c5 AK |
6879 | ; |
6880 | return 0; | |
6881 | } | |
6882 | _ACEOF | |
6883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6884 | if { (ac_try="$ac_link" |
6885 | case "(($ac_try" in | |
6886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6887 | *) ac_try_echo=$ac_try;; | |
6888 | esac | |
ec6a6fbe AK |
6889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6890 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6891 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6892 | ac_status=$? |
8a2fc586 AK |
6893 | grep -v '^ *+' conftest.er1 >conftest.err |
6894 | rm -f conftest.er1 | |
6895 | cat conftest.err >&5 | |
ec6a6fbe | 6896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6897 | (exit $ac_status); } && { |
6898 | test -z "$ac_c_werror_flag" || | |
6899 | test ! -s conftest.err | |
ec6a6fbe AK |
6900 | } && test -s conftest$ac_exeext && { |
6901 | test "$cross_compiling" = yes || | |
6902 | $as_test_x conftest$ac_exeext | |
6903 | }; then | |
ad6254c5 AK |
6904 | eval "$as_ac_var=yes" |
6905 | else | |
ec6a6fbe | 6906 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6907 | sed 's/^/| /' conftest.$ac_ext >&5 |
6908 | ||
7a197a62 | 6909 | eval "$as_ac_var=no" |
ad6254c5 | 6910 | fi |
7a197a62 | 6911 | |
ec6a6fbe | 6912 | rm -rf conftest.dSYM |
25fbec5b | 6913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6914 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6915 | fi |
ec6a6fbe AK |
6916 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6917 | $as_echo "$as_val"'` | |
6918 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6919 | $as_echo "$ac_res" >&6; } | |
6920 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6921 | $as_echo "$as_val"'` | |
6922 | if test "x$as_val" = x""yes; then | |
80992638 | 6923 | |
ad6254c5 AK |
6924 | cat >>confdefs.h <<_ACEOF |
6925 | #define CRAY_STACKSEG_END $ac_func | |
6926 | _ACEOF | |
6927 | ||
6928 | break | |
6929 | fi | |
6930 | ||
6931 | done | |
6932 | fi | |
6933 | ||
ec6a6fbe AK |
6934 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6935 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6936 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6937 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6938 | else |
6939 | if test "$cross_compiling" = yes; then | |
6940 | ac_cv_c_stack_direction=0 | |
6941 | else | |
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. */ | |
7a197a62 | 6948 | $ac_includes_default |
ad6254c5 AK |
6949 | int |
6950 | find_stack_direction () | |
6951 | { | |
6952 | static char *addr = 0; | |
6953 | auto char dummy; | |
6954 | if (addr == 0) | |
6955 | { | |
6956 | addr = &dummy; | |
6957 | return find_stack_direction (); | |
6958 | } | |
6959 | else | |
6960 | return (&dummy > addr) ? 1 : -1; | |
6961 | } | |
6962 | ||
6963 | int | |
6964 | main () | |
6965 | { | |
7a197a62 | 6966 | return find_stack_direction () < 0; |
ad6254c5 AK |
6967 | } |
6968 | _ACEOF | |
6969 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6970 | if { (ac_try="$ac_link" |
6971 | case "(($ac_try" in | |
6972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6973 | *) ac_try_echo=$ac_try;; | |
6974 | esac | |
ec6a6fbe AK |
6975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6976 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6977 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6978 | ac_status=$? |
ec6a6fbe | 6979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6980 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6981 | { (case "(($ac_try" in |
6982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6983 | *) ac_try_echo=$ac_try;; | |
6984 | esac | |
ec6a6fbe AK |
6985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6986 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6987 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6988 | ac_status=$? |
ec6a6fbe | 6989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6990 | (exit $ac_status); }; }; then |
6991 | ac_cv_c_stack_direction=1 | |
6992 | else | |
ec6a6fbe AK |
6993 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6994 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6995 | sed 's/^/| /' conftest.$ac_ext >&5 |
6996 | ||
6997 | ( exit $ac_status ) | |
6998 | ac_cv_c_stack_direction=-1 | |
6999 | fi | |
ec6a6fbe | 7000 | rm -rf conftest.dSYM |
7a197a62 | 7001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7002 | fi |
7a197a62 AK |
7003 | |
7004 | ||
ad6254c5 | 7005 | fi |
ec6a6fbe AK |
7006 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7007 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
7008 | |
7009 | cat >>confdefs.h <<_ACEOF | |
7010 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7011 | _ACEOF | |
7012 | ||
7013 | ||
7014 | fi | |
7015 | ||
ec6a6fbe AK |
7016 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
7017 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 7018 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 7019 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7020 | else |
7021 | if test "$cross_compiling" = yes; then | |
7022 | ac_cv_func_closedir_void=yes | |
7023 | else | |
7024 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7025 | /* confdefs.h. */ |
7026 | _ACEOF | |
7027 | cat confdefs.h >>conftest.$ac_ext | |
7028 | cat >>conftest.$ac_ext <<_ACEOF | |
7029 | /* end confdefs.h. */ | |
7030 | $ac_includes_default | |
7031 | #include <$ac_header_dirent> | |
7032 | #ifndef __cplusplus | |
7033 | int closedir (); | |
7034 | #endif | |
7035 | ||
7036 | int | |
7037 | main () | |
7038 | { | |
7a197a62 | 7039 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
7040 | ; |
7041 | return 0; | |
7042 | } | |
7043 | _ACEOF | |
7044 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7045 | if { (ac_try="$ac_link" |
7046 | case "(($ac_try" in | |
7047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7048 | *) ac_try_echo=$ac_try;; | |
7049 | esac | |
ec6a6fbe AK |
7050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7051 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7052 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7053 | ac_status=$? |
ec6a6fbe | 7054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7055 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7056 | { (case "(($ac_try" in |
7057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7058 | *) ac_try_echo=$ac_try;; | |
7059 | esac | |
ec6a6fbe AK |
7060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7061 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7062 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7063 | ac_status=$? |
ec6a6fbe | 7064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7065 | (exit $ac_status); }; }; then |
7066 | ac_cv_func_closedir_void=no | |
7067 | else | |
ec6a6fbe AK |
7068 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7069 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7070 | sed 's/^/| /' conftest.$ac_ext >&5 |
7071 | ||
7072 | ( exit $ac_status ) | |
7073 | ac_cv_func_closedir_void=yes | |
7074 | fi | |
ec6a6fbe | 7075 | rm -rf conftest.dSYM |
7a197a62 | 7076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7077 | fi |
7a197a62 AK |
7078 | |
7079 | ||
ad6254c5 | 7080 | fi |
ec6a6fbe AK |
7081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
7082 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
7083 | if test $ac_cv_func_closedir_void = yes; then |
7084 | ||
7085 | cat >>confdefs.h <<\_ACEOF | |
7086 | #define CLOSEDIR_VOID 1 | |
7087 | _ACEOF | |
7088 | ||
7089 | fi | |
7090 | ||
7091 | ||
7a197a62 | 7092 | for ac_header in vfork.h |
ad6254c5 | 7093 | do |
ec6a6fbe | 7094 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7096 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7097 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7099 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7100 | fi |
ec6a6fbe AK |
7101 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7102 | $as_echo "$as_val"'` | |
7103 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7104 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7105 | else |
7106 | # Is the header compilable? | |
ec6a6fbe AK |
7107 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7108 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7109 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7110 | /* confdefs.h. */ |
7111 | _ACEOF | |
7112 | cat confdefs.h >>conftest.$ac_ext | |
7113 | cat >>conftest.$ac_ext <<_ACEOF | |
7114 | /* end confdefs.h. */ | |
7115 | $ac_includes_default | |
7116 | #include <$ac_header> | |
7117 | _ACEOF | |
7118 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7119 | if { (ac_try="$ac_compile" |
7120 | case "(($ac_try" in | |
7121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7122 | *) ac_try_echo=$ac_try;; | |
7123 | esac | |
ec6a6fbe AK |
7124 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7125 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7126 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7127 | ac_status=$? |
8a2fc586 AK |
7128 | grep -v '^ *+' conftest.er1 >conftest.err |
7129 | rm -f conftest.er1 | |
7130 | cat conftest.err >&5 | |
ec6a6fbe | 7131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7132 | (exit $ac_status); } && { |
7133 | test -z "$ac_c_werror_flag" || | |
7134 | test ! -s conftest.err | |
7135 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7136 | ac_header_compiler=yes |
7137 | else | |
ec6a6fbe | 7138 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7139 | sed 's/^/| /' conftest.$ac_ext >&5 |
7140 | ||
7a197a62 | 7141 | ac_header_compiler=no |
ad6254c5 | 7142 | fi |
7a197a62 AK |
7143 | |
7144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7145 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7146 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7147 | |
7148 | # Is the header present? | |
ec6a6fbe AK |
7149 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7150 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7151 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7152 | /* confdefs.h. */ |
7153 | _ACEOF | |
7154 | cat confdefs.h >>conftest.$ac_ext | |
7155 | cat >>conftest.$ac_ext <<_ACEOF | |
7156 | /* end confdefs.h. */ | |
7157 | #include <$ac_header> | |
7158 | _ACEOF | |
7a197a62 AK |
7159 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7160 | case "(($ac_try" in | |
7161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7162 | *) ac_try_echo=$ac_try;; | |
7163 | esac | |
ec6a6fbe AK |
7164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7165 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7167 | ac_status=$? |
7168 | grep -v '^ *+' conftest.er1 >conftest.err | |
7169 | rm -f conftest.er1 | |
7170 | cat conftest.err >&5 | |
ec6a6fbe | 7171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7172 | (exit $ac_status); } >/dev/null && { |
7173 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7174 | test ! -s conftest.err | |
7175 | }; then | |
ad6254c5 AK |
7176 | ac_header_preproc=yes |
7177 | else | |
ec6a6fbe | 7178 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7179 | sed 's/^/| /' conftest.$ac_ext >&5 |
7180 | ||
7181 | ac_header_preproc=no | |
7182 | fi | |
7a197a62 | 7183 | |
ad6254c5 | 7184 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7185 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7186 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7187 | |
7188 | # So? What about this header? | |
8a2fc586 AK |
7189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7190 | yes:no: ) | |
ec6a6fbe AK |
7191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7192 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7194 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7195 | ac_header_preproc=yes |
ad6254c5 | 7196 | ;; |
8a2fc586 | 7197 | no:yes:* ) |
ec6a6fbe AK |
7198 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7199 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7200 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7201 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7203 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7205 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7207 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7209 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7210 | |
ad6254c5 AK |
7211 | ;; |
7212 | esac | |
ec6a6fbe AK |
7213 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7214 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7215 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7216 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7217 | else |
8a2fc586 | 7218 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7219 | fi |
ec6a6fbe AK |
7220 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7221 | $as_echo "$as_val"'` | |
7222 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7223 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7224 | |
795ca3e5 | 7225 | fi |
ec6a6fbe AK |
7226 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7227 | $as_echo "$as_val"'` | |
7228 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7229 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7230 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7231 | _ACEOF |
7232 | ||
7233 | fi | |
7234 | ||
7235 | done | |
795ca3e5 | 7236 | |
ad6254c5 AK |
7237 | |
7238 | ||
7239 | for ac_func in fork vfork | |
7240 | do | |
ec6a6fbe AK |
7241 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7242 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7243 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7244 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7245 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7246 | else |
ad6254c5 | 7247 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7248 | /* confdefs.h. */ |
7249 | _ACEOF | |
7250 | cat confdefs.h >>conftest.$ac_ext | |
7251 | cat >>conftest.$ac_ext <<_ACEOF | |
7252 | /* end confdefs.h. */ | |
8a2fc586 AK |
7253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7255 | #define $ac_func innocuous_$ac_func | |
7256 | ||
ad6254c5 AK |
7257 | /* System header to define __stub macros and hopefully few prototypes, |
7258 | which can conflict with char $ac_func (); below. | |
7259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7260 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7261 | |
ad6254c5 AK |
7262 | #ifdef __STDC__ |
7263 | # include <limits.h> | |
7264 | #else | |
7265 | # include <assert.h> | |
795ca3e5 | 7266 | #endif |
8a2fc586 AK |
7267 | |
7268 | #undef $ac_func | |
7269 | ||
7a197a62 AK |
7270 | /* Override any GCC internal prototype to avoid an error. |
7271 | Use char because int might match the return type of a GCC | |
7272 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7273 | #ifdef __cplusplus |
ad6254c5 | 7274 | extern "C" |
ad6254c5 | 7275 | #endif |
ad6254c5 AK |
7276 | char $ac_func (); |
7277 | /* The GNU C library defines this for functions which it implements | |
7278 | to always fail with ENOSYS. Some functions are actually named | |
7279 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7280 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7281 | choke me |
795ca3e5 AK |
7282 | #endif |
7283 | ||
ad6254c5 AK |
7284 | int |
7285 | main () | |
7286 | { | |
7a197a62 | 7287 | return $ac_func (); |
ad6254c5 AK |
7288 | ; |
7289 | return 0; | |
7290 | } | |
7291 | _ACEOF | |
7292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7293 | if { (ac_try="$ac_link" |
7294 | case "(($ac_try" in | |
7295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7296 | *) ac_try_echo=$ac_try;; | |
7297 | esac | |
ec6a6fbe AK |
7298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7299 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7300 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7301 | ac_status=$? |
8a2fc586 AK |
7302 | grep -v '^ *+' conftest.er1 >conftest.err |
7303 | rm -f conftest.er1 | |
7304 | cat conftest.err >&5 | |
ec6a6fbe | 7305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7306 | (exit $ac_status); } && { |
7307 | test -z "$ac_c_werror_flag" || | |
7308 | test ! -s conftest.err | |
ec6a6fbe AK |
7309 | } && test -s conftest$ac_exeext && { |
7310 | test "$cross_compiling" = yes || | |
7311 | $as_test_x conftest$ac_exeext | |
7312 | }; then | |
ad6254c5 | 7313 | eval "$as_ac_var=yes" |
795ca3e5 | 7314 | else |
ec6a6fbe | 7315 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7316 | sed 's/^/| /' conftest.$ac_ext >&5 |
7317 | ||
7a197a62 | 7318 | eval "$as_ac_var=no" |
795ca3e5 | 7319 | fi |
7a197a62 | 7320 | |
ec6a6fbe | 7321 | rm -rf conftest.dSYM |
25fbec5b | 7322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7323 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7324 | fi |
ec6a6fbe AK |
7325 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7326 | $as_echo "$as_val"'` | |
7327 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7328 | $as_echo "$ac_res" >&6; } | |
7329 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7330 | $as_echo "$as_val"'` | |
7331 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7332 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7333 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7334 | _ACEOF |
7335 | ||
7336 | fi | |
7337 | done | |
7338 | ||
7339 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7340 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7341 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7342 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7343 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7344 | else |
7345 | if test "$cross_compiling" = yes; then | |
7346 | ac_cv_func_fork_works=cross | |
7347 | else | |
7348 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7349 | /* confdefs.h. */ |
7350 | _ACEOF | |
7351 | cat confdefs.h >>conftest.$ac_ext | |
7352 | cat >>conftest.$ac_ext <<_ACEOF | |
7353 | /* end confdefs.h. */ | |
7354 | $ac_includes_default | |
7355 | int | |
7356 | main () | |
7357 | { | |
7358 | ||
7359 | /* By Ruediger Kuhlmann. */ | |
7360 | return fork () < 0; | |
7361 | ||
7362 | ; | |
7363 | return 0; | |
7364 | } | |
ad6254c5 AK |
7365 | _ACEOF |
7366 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7367 | if { (ac_try="$ac_link" |
7368 | case "(($ac_try" in | |
7369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7370 | *) ac_try_echo=$ac_try;; | |
7371 | esac | |
ec6a6fbe AK |
7372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7373 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7374 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7375 | ac_status=$? |
ec6a6fbe | 7376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7378 | { (case "(($ac_try" in |
7379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7380 | *) ac_try_echo=$ac_try;; | |
7381 | esac | |
ec6a6fbe AK |
7382 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7383 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7384 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7385 | ac_status=$? |
ec6a6fbe | 7386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7387 | (exit $ac_status); }; }; then |
7388 | ac_cv_func_fork_works=yes | |
7389 | else | |
ec6a6fbe AK |
7390 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7391 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7392 | sed 's/^/| /' conftest.$ac_ext >&5 |
7393 | ||
7394 | ( exit $ac_status ) | |
7395 | ac_cv_func_fork_works=no | |
7396 | fi | |
ec6a6fbe | 7397 | rm -rf conftest.dSYM |
7a197a62 | 7398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7399 | fi |
7a197a62 AK |
7400 | |
7401 | ||
ad6254c5 | 7402 | fi |
ec6a6fbe AK |
7403 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7404 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7405 | |
7406 | else | |
7407 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7408 | fi | |
7409 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7410 | case $host in | |
7411 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7412 | # Override, as these systems have only a dummy fork() stub | |
7413 | ac_cv_func_fork_works=no | |
7414 | ;; | |
7415 | *) | |
7416 | ac_cv_func_fork_works=yes | |
7417 | ;; | |
7418 | esac | |
ec6a6fbe AK |
7419 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7420 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7421 | fi |
7422 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7423 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7424 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7425 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7426 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7427 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7428 | else |
7429 | if test "$cross_compiling" = yes; then | |
7430 | ac_cv_func_vfork_works=cross | |
7431 | else | |
7432 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7433 | /* confdefs.h. */ |
7434 | _ACEOF | |
7435 | cat confdefs.h >>conftest.$ac_ext | |
7436 | cat >>conftest.$ac_ext <<_ACEOF | |
7437 | /* end confdefs.h. */ | |
7438 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7439 | $ac_includes_default |
ad6254c5 | 7440 | #include <sys/wait.h> |
25fbec5b | 7441 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7442 | # include <vfork.h> |
7443 | #endif | |
7444 | /* On some sparc systems, changes by the child to local and incoming | |
7445 | argument registers are propagated back to the parent. The compiler | |
7446 | is told about this with #include <vfork.h>, but some compilers | |
7447 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7448 | static variable whose address is put into a register that is | |
7449 | clobbered by the vfork. */ | |
7450 | static void | |
7451 | #ifdef __cplusplus | |
7452 | sparc_address_test (int arg) | |
7453 | # else | |
7454 | sparc_address_test (arg) int arg; | |
7455 | #endif | |
7456 | { | |
7457 | static pid_t child; | |
7458 | if (!child) { | |
7459 | child = vfork (); | |
7460 | if (child < 0) { | |
7461 | perror ("vfork"); | |
7462 | _exit(2); | |
7463 | } | |
7464 | if (!child) { | |
7465 | arg = getpid(); | |
7466 | write(-1, "", 0); | |
7467 | _exit (arg); | |
7468 | } | |
7469 | } | |
7470 | } | |
7471 | ||
7472 | int | |
7473 | main () | |
7474 | { | |
7475 | pid_t parent = getpid (); | |
7476 | pid_t child; | |
7477 | ||
7478 | sparc_address_test (0); | |
7479 | ||
7480 | child = vfork (); | |
7481 | ||
7482 | if (child == 0) { | |
7483 | /* Here is another test for sparc vfork register problems. This | |
7484 | test uses lots of local variables, at least as many local | |
7485 | variables as main has allocated so far including compiler | |
7486 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7487 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7488 | reuse the register of parent for one of the local variables, | |
7489 | since it will think that parent can't possibly be used any more | |
7490 | in this routine. Assigning to the local variable will thus | |
7491 | munge parent in the parent process. */ | |
7492 | pid_t | |
7493 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7494 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7495 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7496 | use the same hardware register for all 8 local variables. */ | |
7497 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7498 | || p != p5 || p != p6 || p != p7) | |
7499 | _exit(1); | |
7500 | ||
7501 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7502 | from child file descriptors. If the child closes a descriptor | |
7503 | before it execs or exits, this munges the parent's descriptor | |
7504 | as well. Test for this by closing stdout in the child. */ | |
7505 | _exit(close(fileno(stdout)) != 0); | |
7506 | } else { | |
7507 | int status; | |
7508 | struct stat st; | |
7509 | ||
7510 | while (wait(&status) != child) | |
7511 | ; | |
7a197a62 | 7512 | return ( |
ad6254c5 AK |
7513 | /* Was there some problem with vforking? */ |
7514 | child < 0 | |
7515 | ||
7516 | /* Did the child fail? (This shouldn't happen.) */ | |
7517 | || status | |
7518 | ||
7519 | /* Did the vfork/compiler bug occur? */ | |
7520 | || parent != getpid() | |
7521 | ||
7522 | /* Did the file descriptor bug occur? */ | |
7523 | || fstat(fileno(stdout), &st) != 0 | |
7524 | ); | |
7525 | } | |
7526 | } | |
7527 | _ACEOF | |
7528 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7529 | if { (ac_try="$ac_link" |
7530 | case "(($ac_try" in | |
7531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7532 | *) ac_try_echo=$ac_try;; | |
7533 | esac | |
ec6a6fbe AK |
7534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7535 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7536 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7537 | ac_status=$? |
ec6a6fbe | 7538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7540 | { (case "(($ac_try" in |
7541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7542 | *) ac_try_echo=$ac_try;; | |
7543 | esac | |
ec6a6fbe AK |
7544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7545 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7546 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7547 | ac_status=$? |
ec6a6fbe | 7548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7549 | (exit $ac_status); }; }; then |
7550 | ac_cv_func_vfork_works=yes | |
7551 | else | |
ec6a6fbe AK |
7552 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7553 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7554 | sed 's/^/| /' conftest.$ac_ext >&5 |
7555 | ||
7556 | ( exit $ac_status ) | |
7557 | ac_cv_func_vfork_works=no | |
7558 | fi | |
ec6a6fbe | 7559 | rm -rf conftest.dSYM |
7a197a62 | 7560 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7561 | fi |
7a197a62 AK |
7562 | |
7563 | ||
ad6254c5 | 7564 | fi |
ec6a6fbe AK |
7565 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7566 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7567 | |
7568 | fi; | |
7569 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7570 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7571 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7572 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7573 | fi |
7574 | ||
7575 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7576 | ||
7577 | cat >>confdefs.h <<\_ACEOF | |
7578 | #define HAVE_WORKING_VFORK 1 | |
7579 | _ACEOF | |
7580 | ||
7581 | else | |
7582 | ||
7583 | cat >>confdefs.h <<\_ACEOF | |
7584 | #define vfork fork | |
7585 | _ACEOF | |
7586 | ||
7587 | fi | |
7588 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7589 | ||
7590 | cat >>confdefs.h <<\_ACEOF | |
7591 | #define HAVE_WORKING_FORK 1 | |
7592 | _ACEOF | |
7593 | ||
7594 | fi | |
7595 | ||
ec6a6fbe AK |
7596 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7597 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7598 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7599 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7600 | else |
7601 | rm -f conftest.sym conftest.file | |
7602 | echo >conftest.file | |
7603 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7604 | if test "$cross_compiling" = yes; then | |
7605 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7606 | else | |
7607 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7608 | /* confdefs.h. */ |
7609 | _ACEOF | |
7610 | cat confdefs.h >>conftest.$ac_ext | |
7611 | cat >>conftest.$ac_ext <<_ACEOF | |
7612 | /* end confdefs.h. */ | |
7613 | $ac_includes_default | |
7614 | int | |
7615 | main () | |
7616 | { | |
7617 | struct stat sbuf; | |
7618 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7619 | That is better in the sense that it means we will not |
7620 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7621 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7622 | ; |
7623 | return 0; | |
7624 | } | |
7625 | _ACEOF | |
7626 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7627 | if { (ac_try="$ac_link" |
7628 | case "(($ac_try" in | |
7629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7630 | *) ac_try_echo=$ac_try;; | |
7631 | esac | |
ec6a6fbe AK |
7632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7633 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7634 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7635 | ac_status=$? |
ec6a6fbe | 7636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7637 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7638 | { (case "(($ac_try" in |
7639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7640 | *) ac_try_echo=$ac_try;; | |
7641 | esac | |
ec6a6fbe AK |
7642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7643 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7644 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7645 | ac_status=$? |
ec6a6fbe | 7646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7647 | (exit $ac_status); }; }; then |
7648 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7649 | else | |
ec6a6fbe AK |
7650 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7651 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7652 | sed 's/^/| /' conftest.$ac_ext >&5 |
7653 | ||
7654 | ( exit $ac_status ) | |
7655 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7656 | fi | |
ec6a6fbe | 7657 | rm -rf conftest.dSYM |
7a197a62 | 7658 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7659 | fi |
7a197a62 AK |
7660 | |
7661 | ||
ad6254c5 AK |
7662 | else |
7663 | # If the `ln -s' command failed, then we probably don't even | |
7664 | # have an lstat function. | |
7665 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7666 | fi | |
7667 | rm -f conftest.sym conftest.file | |
7668 | ||
7669 | fi | |
ec6a6fbe AK |
7670 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7671 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7672 | |
7673 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7674 | ||
7675 | cat >>confdefs.h <<_ACEOF | |
7676 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7677 | _ACEOF | |
7678 | ||
7679 | ||
7680 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7681 | case " $LIBOBJS " in |
8a2fc586 | 7682 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7683 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7684 | ;; | |
8a2fc586 AK |
7685 | esac |
7686 | ||
ad6254c5 AK |
7687 | fi |
7688 | ||
ec6a6fbe AK |
7689 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7690 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7691 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7692 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7693 | else |
7694 | if test "$cross_compiling" = yes; then | |
7695 | ac_cv_func_lstat_empty_string_bug=yes | |
7696 | else | |
7697 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7698 | /* confdefs.h. */ |
7699 | _ACEOF | |
7700 | cat confdefs.h >>conftest.$ac_ext | |
7701 | cat >>conftest.$ac_ext <<_ACEOF | |
7702 | /* end confdefs.h. */ | |
7703 | $ac_includes_default | |
7704 | int | |
7705 | main () | |
7706 | { | |
7707 | struct stat sbuf; | |
7a197a62 | 7708 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7709 | ; |
7710 | return 0; | |
7711 | } | |
7712 | _ACEOF | |
7713 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7714 | if { (ac_try="$ac_link" |
7715 | case "(($ac_try" in | |
7716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7717 | *) ac_try_echo=$ac_try;; | |
7718 | esac | |
ec6a6fbe AK |
7719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7720 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7721 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7722 | ac_status=$? |
ec6a6fbe | 7723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7724 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7725 | { (case "(($ac_try" in |
7726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7727 | *) ac_try_echo=$ac_try;; | |
7728 | esac | |
ec6a6fbe AK |
7729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7730 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7731 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7732 | ac_status=$? |
ec6a6fbe | 7733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7734 | (exit $ac_status); }; }; then |
7a197a62 | 7735 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7736 | else |
ec6a6fbe AK |
7737 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7738 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7739 | sed 's/^/| /' conftest.$ac_ext >&5 |
7740 | ||
7741 | ( exit $ac_status ) | |
7a197a62 | 7742 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7743 | fi |
ec6a6fbe | 7744 | rm -rf conftest.dSYM |
7a197a62 | 7745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7746 | fi |
7a197a62 AK |
7747 | |
7748 | ||
ad6254c5 | 7749 | fi |
ec6a6fbe AK |
7750 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7751 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7752 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7753 | case " $LIBOBJS " in |
8a2fc586 | 7754 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7755 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7756 | ;; | |
8a2fc586 AK |
7757 | esac |
7758 | ||
ad6254c5 AK |
7759 | |
7760 | cat >>confdefs.h <<_ACEOF | |
7761 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7762 | _ACEOF | |
7763 | ||
7764 | fi | |
7765 | ||
7766 | ||
7767 | for ac_header in stdlib.h | |
7768 | do | |
ec6a6fbe | 7769 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7770 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7771 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7772 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7773 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7774 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7775 | fi |
ec6a6fbe AK |
7776 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7777 | $as_echo "$as_val"'` | |
7778 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7779 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7780 | else |
7781 | # Is the header compilable? | |
ec6a6fbe AK |
7782 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7783 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7784 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7785 | /* confdefs.h. */ |
7786 | _ACEOF | |
7787 | cat confdefs.h >>conftest.$ac_ext | |
7788 | cat >>conftest.$ac_ext <<_ACEOF | |
7789 | /* end confdefs.h. */ | |
7790 | $ac_includes_default | |
7791 | #include <$ac_header> | |
7792 | _ACEOF | |
7793 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7794 | if { (ac_try="$ac_compile" |
7795 | case "(($ac_try" in | |
7796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7797 | *) ac_try_echo=$ac_try;; | |
7798 | esac | |
ec6a6fbe AK |
7799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7800 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7801 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7802 | ac_status=$? |
8a2fc586 AK |
7803 | grep -v '^ *+' conftest.er1 >conftest.err |
7804 | rm -f conftest.er1 | |
7805 | cat conftest.err >&5 | |
ec6a6fbe | 7806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7807 | (exit $ac_status); } && { |
7808 | test -z "$ac_c_werror_flag" || | |
7809 | test ! -s conftest.err | |
7810 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7811 | ac_header_compiler=yes |
7812 | else | |
ec6a6fbe | 7813 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7814 | sed 's/^/| /' conftest.$ac_ext >&5 |
7815 | ||
7a197a62 | 7816 | ac_header_compiler=no |
ad6254c5 | 7817 | fi |
7a197a62 AK |
7818 | |
7819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7820 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7821 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7822 | |
7823 | # Is the header present? | |
ec6a6fbe AK |
7824 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7825 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7826 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7827 | /* confdefs.h. */ |
7828 | _ACEOF | |
7829 | cat confdefs.h >>conftest.$ac_ext | |
7830 | cat >>conftest.$ac_ext <<_ACEOF | |
7831 | /* end confdefs.h. */ | |
7832 | #include <$ac_header> | |
7833 | _ACEOF | |
7a197a62 AK |
7834 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7835 | case "(($ac_try" in | |
7836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7837 | *) ac_try_echo=$ac_try;; | |
7838 | esac | |
ec6a6fbe AK |
7839 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7840 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7841 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7842 | ac_status=$? |
7843 | grep -v '^ *+' conftest.er1 >conftest.err | |
7844 | rm -f conftest.er1 | |
7845 | cat conftest.err >&5 | |
ec6a6fbe | 7846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7847 | (exit $ac_status); } >/dev/null && { |
7848 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7849 | test ! -s conftest.err | |
7850 | }; then | |
ad6254c5 AK |
7851 | ac_header_preproc=yes |
7852 | else | |
ec6a6fbe | 7853 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7854 | sed 's/^/| /' conftest.$ac_ext >&5 |
7855 | ||
7856 | ac_header_preproc=no | |
7857 | fi | |
7a197a62 | 7858 | |
ad6254c5 | 7859 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7860 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7861 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7862 | |
7863 | # So? What about this header? | |
8a2fc586 AK |
7864 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7865 | yes:no: ) | |
ec6a6fbe AK |
7866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7867 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7869 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7870 | ac_header_preproc=yes |
ad6254c5 | 7871 | ;; |
8a2fc586 | 7872 | no:yes:* ) |
ec6a6fbe AK |
7873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7874 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7876 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7878 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7880 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7882 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7884 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7885 | |
ad6254c5 AK |
7886 | ;; |
7887 | esac | |
ec6a6fbe AK |
7888 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7889 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7890 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7891 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7892 | else |
8a2fc586 | 7893 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7894 | fi |
ec6a6fbe AK |
7895 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7896 | $as_echo "$as_val"'` | |
7897 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7898 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7899 | |
7900 | fi | |
ec6a6fbe AK |
7901 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7902 | $as_echo "$as_val"'` | |
7903 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7904 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7905 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7906 | _ACEOF |
7907 | ||
7908 | fi | |
7909 | ||
7910 | done | |
7911 | ||
ec6a6fbe AK |
7912 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7913 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7914 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7915 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7916 | else |
7917 | if test "$cross_compiling" = yes; then | |
7918 | ac_cv_func_malloc_0_nonnull=no | |
7919 | else | |
7920 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7921 | /* confdefs.h. */ |
7922 | _ACEOF | |
7923 | cat confdefs.h >>conftest.$ac_ext | |
7924 | cat >>conftest.$ac_ext <<_ACEOF | |
7925 | /* end confdefs.h. */ | |
25fbec5b | 7926 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7927 | # include <stdlib.h> |
7928 | #else | |
7929 | char *malloc (); | |
7930 | #endif | |
7931 | ||
7932 | int | |
7933 | main () | |
7934 | { | |
7a197a62 | 7935 | return ! malloc (0); |
ad6254c5 AK |
7936 | ; |
7937 | return 0; | |
7938 | } | |
7939 | _ACEOF | |
7940 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7941 | if { (ac_try="$ac_link" |
7942 | case "(($ac_try" in | |
7943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7944 | *) ac_try_echo=$ac_try;; | |
7945 | esac | |
ec6a6fbe AK |
7946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7947 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7948 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7949 | ac_status=$? |
ec6a6fbe | 7950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7952 | { (case "(($ac_try" in |
7953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7954 | *) ac_try_echo=$ac_try;; | |
7955 | esac | |
ec6a6fbe AK |
7956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7957 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7958 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7959 | ac_status=$? |
ec6a6fbe | 7960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7961 | (exit $ac_status); }; }; then |
7962 | ac_cv_func_malloc_0_nonnull=yes | |
7963 | else | |
ec6a6fbe AK |
7964 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7965 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7966 | sed 's/^/| /' conftest.$ac_ext >&5 |
7967 | ||
7968 | ( exit $ac_status ) | |
7969 | ac_cv_func_malloc_0_nonnull=no | |
7970 | fi | |
ec6a6fbe | 7971 | rm -rf conftest.dSYM |
7a197a62 | 7972 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7973 | fi |
7a197a62 AK |
7974 | |
7975 | ||
ad6254c5 | 7976 | fi |
ec6a6fbe AK |
7977 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7978 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7979 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7980 | ||
7981 | cat >>confdefs.h <<\_ACEOF | |
7982 | #define HAVE_MALLOC 1 | |
7983 | _ACEOF | |
7984 | ||
7985 | else | |
7986 | cat >>confdefs.h <<\_ACEOF | |
7987 | #define HAVE_MALLOC 0 | |
7988 | _ACEOF | |
7989 | ||
7a197a62 | 7990 | case " $LIBOBJS " in |
8a2fc586 | 7991 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7992 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7993 | ;; | |
8a2fc586 AK |
7994 | esac |
7995 | ||
ad6254c5 AK |
7996 | |
7997 | cat >>confdefs.h <<\_ACEOF | |
7998 | #define malloc rpl_malloc | |
7999 | _ACEOF | |
8000 | ||
8001 | fi | |
8002 | ||
8003 | ||
8004 | ||
ec6a6fbe AK |
8005 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
8006 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 8007 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 8008 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8009 | else |
8010 | if test "$cross_compiling" = yes; then | |
8011 | ac_cv_func_memcmp_working=no | |
8012 | else | |
8013 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8014 | /* confdefs.h. */ |
8015 | _ACEOF | |
8016 | cat confdefs.h >>conftest.$ac_ext | |
8017 | cat >>conftest.$ac_ext <<_ACEOF | |
8018 | /* end confdefs.h. */ | |
8a2fc586 | 8019 | $ac_includes_default |
ad6254c5 AK |
8020 | int |
8021 | main () | |
8022 | { | |
8023 | ||
8024 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 8025 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 8026 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 8027 | return 1; |
ad6254c5 AK |
8028 | |
8029 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8030 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8031 | William Lewis provided this test program. */ | |
8032 | { | |
8033 | char foo[21]; | |
8034 | char bar[21]; | |
8035 | int i; | |
8036 | for (i = 0; i < 4; i++) | |
8037 | { | |
8a2fc586 AK |
8038 | char *a = foo + i; |
8039 | char *b = bar + i; | |
8040 | strcpy (a, "--------01111111"); | |
8041 | strcpy (b, "--------10000000"); | |
8042 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 8043 | return 1; |
ad6254c5 | 8044 | } |
7a197a62 | 8045 | return 0; |
ad6254c5 AK |
8046 | } |
8047 | ||
8048 | ; | |
8049 | return 0; | |
8050 | } | |
8051 | _ACEOF | |
8052 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8053 | if { (ac_try="$ac_link" |
8054 | case "(($ac_try" in | |
8055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8056 | *) ac_try_echo=$ac_try;; | |
8057 | esac | |
ec6a6fbe AK |
8058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8059 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8060 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8061 | ac_status=$? |
ec6a6fbe | 8062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8064 | { (case "(($ac_try" in |
8065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8066 | *) ac_try_echo=$ac_try;; | |
8067 | esac | |
ec6a6fbe AK |
8068 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8069 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8070 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8071 | ac_status=$? |
ec6a6fbe | 8072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8073 | (exit $ac_status); }; }; then |
8074 | ac_cv_func_memcmp_working=yes | |
8075 | else | |
ec6a6fbe AK |
8076 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8077 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8078 | sed 's/^/| /' conftest.$ac_ext >&5 |
8079 | ||
8080 | ( exit $ac_status ) | |
8081 | ac_cv_func_memcmp_working=no | |
8082 | fi | |
ec6a6fbe | 8083 | rm -rf conftest.dSYM |
7a197a62 | 8084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8085 | fi |
7a197a62 AK |
8086 | |
8087 | ||
ad6254c5 | 8088 | fi |
ec6a6fbe AK |
8089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
8090 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 8091 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 8092 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
8093 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8094 | ;; | |
8a2fc586 AK |
8095 | esac |
8096 | ||
ad6254c5 AK |
8097 | |
8098 | ||
8099 | ||
8100 | for ac_header in stdlib.h unistd.h | |
8101 | do | |
ec6a6fbe | 8102 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8103 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8104 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8105 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8107 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8108 | fi |
ec6a6fbe AK |
8109 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8110 | $as_echo "$as_val"'` | |
8111 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8112 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8113 | else |
8114 | # Is the header compilable? | |
ec6a6fbe AK |
8115 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8116 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8117 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8118 | /* confdefs.h. */ |
8119 | _ACEOF | |
8120 | cat confdefs.h >>conftest.$ac_ext | |
8121 | cat >>conftest.$ac_ext <<_ACEOF | |
8122 | /* end confdefs.h. */ | |
8123 | $ac_includes_default | |
8124 | #include <$ac_header> | |
8125 | _ACEOF | |
8126 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8127 | if { (ac_try="$ac_compile" |
8128 | case "(($ac_try" in | |
8129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8130 | *) ac_try_echo=$ac_try;; | |
8131 | esac | |
ec6a6fbe AK |
8132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8133 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8134 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8135 | ac_status=$? |
8a2fc586 AK |
8136 | grep -v '^ *+' conftest.er1 >conftest.err |
8137 | rm -f conftest.er1 | |
8138 | cat conftest.err >&5 | |
ec6a6fbe | 8139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8140 | (exit $ac_status); } && { |
8141 | test -z "$ac_c_werror_flag" || | |
8142 | test ! -s conftest.err | |
8143 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8144 | ac_header_compiler=yes |
8145 | else | |
ec6a6fbe | 8146 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8147 | sed 's/^/| /' conftest.$ac_ext >&5 |
8148 | ||
7a197a62 | 8149 | ac_header_compiler=no |
ad6254c5 | 8150 | fi |
7a197a62 AK |
8151 | |
8152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8153 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8154 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8155 | |
8156 | # Is the header present? | |
ec6a6fbe AK |
8157 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8158 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8159 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8160 | /* confdefs.h. */ |
8161 | _ACEOF | |
8162 | cat confdefs.h >>conftest.$ac_ext | |
8163 | cat >>conftest.$ac_ext <<_ACEOF | |
8164 | /* end confdefs.h. */ | |
8165 | #include <$ac_header> | |
8166 | _ACEOF | |
7a197a62 AK |
8167 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8168 | case "(($ac_try" in | |
8169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8170 | *) ac_try_echo=$ac_try;; | |
8171 | esac | |
ec6a6fbe AK |
8172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8173 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8174 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8175 | ac_status=$? |
8176 | grep -v '^ *+' conftest.er1 >conftest.err | |
8177 | rm -f conftest.er1 | |
8178 | cat conftest.err >&5 | |
ec6a6fbe | 8179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8180 | (exit $ac_status); } >/dev/null && { |
8181 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8182 | test ! -s conftest.err | |
8183 | }; then | |
ad6254c5 AK |
8184 | ac_header_preproc=yes |
8185 | else | |
ec6a6fbe | 8186 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8187 | sed 's/^/| /' conftest.$ac_ext >&5 |
8188 | ||
8189 | ac_header_preproc=no | |
8190 | fi | |
7a197a62 | 8191 | |
ad6254c5 | 8192 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8193 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8194 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8195 | |
8196 | # So? What about this header? | |
8a2fc586 AK |
8197 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8198 | yes:no: ) | |
ec6a6fbe AK |
8199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8200 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8202 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8203 | ac_header_preproc=yes |
ad6254c5 | 8204 | ;; |
8a2fc586 | 8205 | no:yes:* ) |
ec6a6fbe AK |
8206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8207 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8209 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8211 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8212 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8213 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8215 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8216 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8217 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8218 | |
ad6254c5 AK |
8219 | ;; |
8220 | esac | |
ec6a6fbe AK |
8221 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8222 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8224 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8225 | else |
8a2fc586 | 8226 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8227 | fi |
ec6a6fbe AK |
8228 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8229 | $as_echo "$as_val"'` | |
8230 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8231 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8232 | |
8233 | fi | |
ec6a6fbe AK |
8234 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8235 | $as_echo "$as_val"'` | |
8236 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8237 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8238 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8239 | _ACEOF |
8240 | ||
8241 | fi | |
8242 | ||
8243 | done | |
8244 | ||
8245 | ||
8246 | for ac_func in getpagesize | |
8247 | do | |
ec6a6fbe AK |
8248 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8249 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8250 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8251 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8252 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8253 | else |
8254 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8255 | /* confdefs.h. */ |
8256 | _ACEOF | |
8257 | cat confdefs.h >>conftest.$ac_ext | |
8258 | cat >>conftest.$ac_ext <<_ACEOF | |
8259 | /* end confdefs.h. */ | |
8a2fc586 AK |
8260 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8261 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8262 | #define $ac_func innocuous_$ac_func | |
8263 | ||
ad6254c5 AK |
8264 | /* System header to define __stub macros and hopefully few prototypes, |
8265 | which can conflict with char $ac_func (); below. | |
8266 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8267 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8268 | |
ad6254c5 AK |
8269 | #ifdef __STDC__ |
8270 | # include <limits.h> | |
8271 | #else | |
8272 | # include <assert.h> | |
8273 | #endif | |
8a2fc586 AK |
8274 | |
8275 | #undef $ac_func | |
8276 | ||
7a197a62 AK |
8277 | /* Override any GCC internal prototype to avoid an error. |
8278 | Use char because int might match the return type of a GCC | |
8279 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8280 | #ifdef __cplusplus |
8281 | extern "C" | |
ad6254c5 | 8282 | #endif |
ad6254c5 AK |
8283 | char $ac_func (); |
8284 | /* The GNU C library defines this for functions which it implements | |
8285 | to always fail with ENOSYS. Some functions are actually named | |
8286 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8287 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8288 | choke me |
ad6254c5 AK |
8289 | #endif |
8290 | ||
8291 | int | |
8292 | main () | |
8293 | { | |
7a197a62 | 8294 | return $ac_func (); |
ad6254c5 AK |
8295 | ; |
8296 | return 0; | |
8297 | } | |
8298 | _ACEOF | |
8299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8300 | if { (ac_try="$ac_link" |
8301 | case "(($ac_try" in | |
8302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8303 | *) ac_try_echo=$ac_try;; | |
8304 | esac | |
ec6a6fbe AK |
8305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8306 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8307 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8308 | ac_status=$? |
8a2fc586 AK |
8309 | grep -v '^ *+' conftest.er1 >conftest.err |
8310 | rm -f conftest.er1 | |
8311 | cat conftest.err >&5 | |
ec6a6fbe | 8312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8313 | (exit $ac_status); } && { |
8314 | test -z "$ac_c_werror_flag" || | |
8315 | test ! -s conftest.err | |
ec6a6fbe AK |
8316 | } && test -s conftest$ac_exeext && { |
8317 | test "$cross_compiling" = yes || | |
8318 | $as_test_x conftest$ac_exeext | |
8319 | }; then | |
ad6254c5 AK |
8320 | eval "$as_ac_var=yes" |
8321 | else | |
ec6a6fbe | 8322 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8323 | sed 's/^/| /' conftest.$ac_ext >&5 |
8324 | ||
7a197a62 | 8325 | eval "$as_ac_var=no" |
ad6254c5 | 8326 | fi |
7a197a62 | 8327 | |
ec6a6fbe | 8328 | rm -rf conftest.dSYM |
25fbec5b | 8329 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8330 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8331 | fi |
ec6a6fbe AK |
8332 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8333 | $as_echo "$as_val"'` | |
8334 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8335 | $as_echo "$ac_res" >&6; } | |
8336 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8337 | $as_echo "$as_val"'` | |
8338 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8339 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8340 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8341 | _ACEOF |
8342 | ||
8343 | fi | |
8344 | done | |
8345 | ||
ec6a6fbe AK |
8346 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8347 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8348 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8349 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8350 | else |
8351 | if test "$cross_compiling" = yes; then | |
8352 | ac_cv_func_mmap_fixed_mapped=no | |
8353 | else | |
8354 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8355 | /* confdefs.h. */ |
8356 | _ACEOF | |
8357 | cat confdefs.h >>conftest.$ac_ext | |
8358 | cat >>conftest.$ac_ext <<_ACEOF | |
8359 | /* end confdefs.h. */ | |
8360 | $ac_includes_default | |
8361 | /* malloc might have been renamed as rpl_malloc. */ | |
8362 | #undef malloc | |
8363 | ||
8364 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8365 | Here is a matrix of mmap possibilities: | |
8366 | mmap private not fixed | |
8367 | mmap private fixed at somewhere currently unmapped | |
8368 | mmap private fixed at somewhere already mapped | |
8369 | mmap shared not fixed | |
8370 | mmap shared fixed at somewhere currently unmapped | |
8371 | mmap shared fixed at somewhere already mapped | |
8372 | For private mappings, we should verify that changes cannot be read() | |
8373 | back from the file, nor mmap's back from the file at a different | |
8374 | address. (There have been systems where private was not correctly | |
8375 | implemented like the infamous i386 svr4.0, and systems where the | |
8376 | VM page cache was not coherent with the file system buffer cache | |
8377 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8378 | For shared mappings, we should conversely verify that changes get | |
8379 | propagated back to all the places they're supposed to be. | |
8380 | ||
8381 | Grep wants private fixed already mapped. | |
8382 | The main things grep needs to know about mmap are: | |
8383 | * does it exist and is it safe to write into the mmap'd area | |
8384 | * how to use it (BSD variants) */ | |
8385 | ||
8386 | #include <fcntl.h> | |
8387 | #include <sys/mman.h> | |
8388 | ||
25fbec5b | 8389 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8390 | char *malloc (); |
8391 | #endif | |
8392 | ||
8393 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8394 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8395 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8396 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8397 | # define HAVE_SYS_PARAM_H 1 |
8398 | # endif | |
8399 | ||
8400 | # ifdef _SC_PAGESIZE | |
8401 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8402 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8403 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8404 | # include <sys/param.h> |
8405 | # ifdef EXEC_PAGESIZE | |
8406 | # define getpagesize() EXEC_PAGESIZE | |
8407 | # else /* no EXEC_PAGESIZE */ | |
8408 | # ifdef NBPG | |
8409 | # define getpagesize() NBPG * CLSIZE | |
8410 | # ifndef CLSIZE | |
8411 | # define CLSIZE 1 | |
8412 | # endif /* no CLSIZE */ | |
8413 | # else /* no NBPG */ | |
8414 | # ifdef NBPC | |
8415 | # define getpagesize() NBPC | |
8416 | # else /* no NBPC */ | |
8417 | # ifdef PAGESIZE | |
8418 | # define getpagesize() PAGESIZE | |
8419 | # endif /* PAGESIZE */ | |
8420 | # endif /* no NBPC */ | |
8421 | # endif /* no NBPG */ | |
8422 | # endif /* no EXEC_PAGESIZE */ | |
8423 | # else /* no HAVE_SYS_PARAM_H */ | |
8424 | # define getpagesize() 8192 /* punt totally */ | |
8425 | # endif /* no HAVE_SYS_PARAM_H */ | |
8426 | # endif /* no _SC_PAGESIZE */ | |
8427 | ||
8428 | #endif /* no HAVE_GETPAGESIZE */ | |
8429 | ||
8430 | int | |
8431 | main () | |
8432 | { | |
8433 | char *data, *data2, *data3; | |
8434 | int i, pagesize; | |
8435 | int fd; | |
8436 | ||
8437 | pagesize = getpagesize (); | |
8438 | ||
8439 | /* First, make a file with some known garbage in it. */ | |
8440 | data = (char *) malloc (pagesize); | |
8441 | if (!data) | |
7a197a62 | 8442 | return 1; |
ad6254c5 AK |
8443 | for (i = 0; i < pagesize; ++i) |
8444 | *(data + i) = rand (); | |
8445 | umask (0); | |
8446 | fd = creat ("conftest.mmap", 0600); | |
8447 | if (fd < 0) | |
7a197a62 | 8448 | return 1; |
ad6254c5 | 8449 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8450 | return 1; |
ad6254c5 AK |
8451 | close (fd); |
8452 | ||
8453 | /* Next, try to mmap the file at a fixed address which already has | |
8454 | something else allocated at it. If we can, also make sure that | |
8455 | we see the same garbage. */ | |
8456 | fd = open ("conftest.mmap", O_RDWR); | |
8457 | if (fd < 0) | |
7a197a62 | 8458 | return 1; |
ad6254c5 AK |
8459 | data2 = (char *) malloc (2 * pagesize); |
8460 | if (!data2) | |
7a197a62 AK |
8461 | return 1; |
8462 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8463 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8464 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8465 | return 1; |
ad6254c5 AK |
8466 | for (i = 0; i < pagesize; ++i) |
8467 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8468 | return 1; |
ad6254c5 AK |
8469 | |
8470 | /* Finally, make sure that changes to the mapped area do not | |
8471 | percolate back to the file as seen by read(). (This is a bug on | |
8472 | some variants of i386 svr4.0.) */ | |
8473 | for (i = 0; i < pagesize; ++i) | |
8474 | *(data2 + i) = *(data2 + i) + 1; | |
8475 | data3 = (char *) malloc (pagesize); | |
8476 | if (!data3) | |
7a197a62 | 8477 | return 1; |
ad6254c5 | 8478 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8479 | return 1; |
ad6254c5 AK |
8480 | for (i = 0; i < pagesize; ++i) |
8481 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8482 | return 1; |
ad6254c5 | 8483 | close (fd); |
7a197a62 | 8484 | return 0; |
ad6254c5 AK |
8485 | } |
8486 | _ACEOF | |
8487 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8488 | if { (ac_try="$ac_link" |
8489 | case "(($ac_try" in | |
8490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8491 | *) ac_try_echo=$ac_try;; | |
8492 | esac | |
ec6a6fbe AK |
8493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8494 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8495 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8496 | ac_status=$? |
ec6a6fbe | 8497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8499 | { (case "(($ac_try" in |
8500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8501 | *) ac_try_echo=$ac_try;; | |
8502 | esac | |
ec6a6fbe AK |
8503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8504 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8505 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8506 | ac_status=$? |
ec6a6fbe | 8507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8508 | (exit $ac_status); }; }; then |
8509 | ac_cv_func_mmap_fixed_mapped=yes | |
8510 | else | |
ec6a6fbe AK |
8511 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8512 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8513 | sed 's/^/| /' conftest.$ac_ext >&5 |
8514 | ||
8515 | ( exit $ac_status ) | |
8516 | ac_cv_func_mmap_fixed_mapped=no | |
8517 | fi | |
ec6a6fbe | 8518 | rm -rf conftest.dSYM |
7a197a62 | 8519 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8520 | fi |
7a197a62 AK |
8521 | |
8522 | ||
ad6254c5 | 8523 | fi |
ec6a6fbe AK |
8524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8525 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8526 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8527 | ||
8528 | cat >>confdefs.h <<\_ACEOF | |
8529 | #define HAVE_MMAP 1 | |
8530 | _ACEOF | |
8531 | ||
8532 | fi | |
8533 | rm -f conftest.mmap | |
8534 | ||
ec6a6fbe AK |
8535 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8536 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8537 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8538 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8539 | else |
8540 | if test "$cross_compiling" = yes; then | |
8541 | ac_cv_func_stat_empty_string_bug=yes | |
8542 | else | |
8543 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8544 | /* confdefs.h. */ |
8545 | _ACEOF | |
8546 | cat confdefs.h >>conftest.$ac_ext | |
8547 | cat >>conftest.$ac_ext <<_ACEOF | |
8548 | /* end confdefs.h. */ | |
8549 | $ac_includes_default | |
8550 | int | |
8551 | main () | |
8552 | { | |
8553 | struct stat sbuf; | |
7a197a62 | 8554 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8555 | ; |
8556 | return 0; | |
8557 | } | |
8558 | _ACEOF | |
8559 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8560 | if { (ac_try="$ac_link" |
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_link") 2>&5 |
ad6254c5 | 8568 | ac_status=$? |
ec6a6fbe | 8569 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8570 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8571 | { (case "(($ac_try" in |
8572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8573 | *) ac_try_echo=$ac_try;; | |
8574 | esac | |
ec6a6fbe AK |
8575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8576 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8577 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8578 | ac_status=$? |
ec6a6fbe | 8579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8580 | (exit $ac_status); }; }; then |
7a197a62 | 8581 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8582 | else |
ec6a6fbe AK |
8583 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8584 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8585 | sed 's/^/| /' conftest.$ac_ext >&5 |
8586 | ||
8587 | ( exit $ac_status ) | |
7a197a62 | 8588 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8589 | fi |
ec6a6fbe | 8590 | rm -rf conftest.dSYM |
7a197a62 | 8591 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8592 | fi |
7a197a62 AK |
8593 | |
8594 | ||
ad6254c5 | 8595 | fi |
ec6a6fbe AK |
8596 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8597 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8598 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8599 | case " $LIBOBJS " in |
8a2fc586 | 8600 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8601 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8602 | ;; | |
8a2fc586 AK |
8603 | esac |
8604 | ||
ad6254c5 AK |
8605 | |
8606 | cat >>confdefs.h <<_ACEOF | |
8607 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8608 | _ACEOF | |
8609 | ||
8610 | fi | |
8611 | ||
ec6a6fbe AK |
8612 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8613 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8614 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8615 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8616 | else |
8617 | if test "$cross_compiling" = yes; then | |
8618 | ac_cv_func_strtod=no | |
8619 | else | |
8620 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8621 | /* confdefs.h. */ |
8622 | _ACEOF | |
8623 | cat confdefs.h >>conftest.$ac_ext | |
8624 | cat >>conftest.$ac_ext <<_ACEOF | |
8625 | /* end confdefs.h. */ | |
8626 | ||
7a197a62 AK |
8627 | $ac_includes_default |
8628 | #ifndef strtod | |
ad6254c5 | 8629 | double strtod (); |
7a197a62 | 8630 | #endif |
ad6254c5 AK |
8631 | int |
8632 | main() | |
8633 | { | |
8634 | { | |
8635 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8636 | char *string = " +69"; | |
8637 | char *term; | |
8638 | double value; | |
8639 | value = strtod (string, &term); | |
8640 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8641 | return 1; |
ad6254c5 AK |
8642 | } |
8643 | ||
8644 | { | |
8645 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8646 | terminating character under some conditions. */ | |
8647 | char *string = "NaN"; | |
8648 | char *term; | |
8649 | strtod (string, &term); | |
8650 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8651 | return 1; |
ad6254c5 | 8652 | } |
7a197a62 | 8653 | return 0; |
ad6254c5 AK |
8654 | } |
8655 | ||
8656 | _ACEOF | |
8657 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8658 | if { (ac_try="$ac_link" |
8659 | case "(($ac_try" in | |
8660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8661 | *) ac_try_echo=$ac_try;; | |
8662 | esac | |
ec6a6fbe AK |
8663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8664 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8665 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8666 | ac_status=$? |
ec6a6fbe | 8667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8669 | { (case "(($ac_try" in |
8670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8671 | *) ac_try_echo=$ac_try;; | |
8672 | esac | |
ec6a6fbe AK |
8673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8674 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8675 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8676 | ac_status=$? |
ec6a6fbe | 8677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8678 | (exit $ac_status); }; }; then |
8679 | ac_cv_func_strtod=yes | |
8680 | else | |
ec6a6fbe AK |
8681 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8682 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8683 | sed 's/^/| /' conftest.$ac_ext >&5 |
8684 | ||
8685 | ( exit $ac_status ) | |
8686 | ac_cv_func_strtod=no | |
8687 | fi | |
ec6a6fbe | 8688 | rm -rf conftest.dSYM |
7a197a62 | 8689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8690 | fi |
7a197a62 AK |
8691 | |
8692 | ||
ad6254c5 | 8693 | fi |
ec6a6fbe AK |
8694 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8695 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8696 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8697 | case " $LIBOBJS " in |
8a2fc586 | 8698 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8699 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8700 | ;; | |
8a2fc586 AK |
8701 | esac |
8702 | ||
ec6a6fbe AK |
8703 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8704 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8705 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8706 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8707 | else |
8708 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8709 | /* confdefs.h. */ |
8710 | _ACEOF | |
8711 | cat confdefs.h >>conftest.$ac_ext | |
8712 | cat >>conftest.$ac_ext <<_ACEOF | |
8713 | /* end confdefs.h. */ | |
8a2fc586 AK |
8714 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8716 | #define pow innocuous_pow | |
8717 | ||
ad6254c5 AK |
8718 | /* System header to define __stub macros and hopefully few prototypes, |
8719 | which can conflict with char pow (); below. | |
8720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8721 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8722 | |
ad6254c5 AK |
8723 | #ifdef __STDC__ |
8724 | # include <limits.h> | |
8725 | #else | |
8726 | # include <assert.h> | |
8727 | #endif | |
8a2fc586 AK |
8728 | |
8729 | #undef pow | |
8730 | ||
7a197a62 AK |
8731 | /* Override any GCC internal prototype to avoid an error. |
8732 | Use char because int might match the return type of a GCC | |
8733 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8734 | #ifdef __cplusplus |
8735 | extern "C" | |
ad6254c5 | 8736 | #endif |
ad6254c5 AK |
8737 | char pow (); |
8738 | /* The GNU C library defines this for functions which it implements | |
8739 | to always fail with ENOSYS. Some functions are actually named | |
8740 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8741 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8742 | choke me |
ad6254c5 AK |
8743 | #endif |
8744 | ||
8745 | int | |
8746 | main () | |
8747 | { | |
7a197a62 | 8748 | return pow (); |
ad6254c5 AK |
8749 | ; |
8750 | return 0; | |
8751 | } | |
8752 | _ACEOF | |
8753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8754 | if { (ac_try="$ac_link" |
8755 | case "(($ac_try" in | |
8756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8757 | *) ac_try_echo=$ac_try;; | |
8758 | esac | |
ec6a6fbe AK |
8759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8760 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8761 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8762 | ac_status=$? |
8a2fc586 AK |
8763 | grep -v '^ *+' conftest.er1 >conftest.err |
8764 | rm -f conftest.er1 | |
8765 | cat conftest.err >&5 | |
ec6a6fbe | 8766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8767 | (exit $ac_status); } && { |
8768 | test -z "$ac_c_werror_flag" || | |
8769 | test ! -s conftest.err | |
ec6a6fbe AK |
8770 | } && test -s conftest$ac_exeext && { |
8771 | test "$cross_compiling" = yes || | |
8772 | $as_test_x conftest$ac_exeext | |
8773 | }; then | |
ad6254c5 AK |
8774 | ac_cv_func_pow=yes |
8775 | else | |
ec6a6fbe | 8776 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8777 | sed 's/^/| /' conftest.$ac_ext >&5 |
8778 | ||
7a197a62 | 8779 | ac_cv_func_pow=no |
ad6254c5 | 8780 | fi |
7a197a62 | 8781 | |
ec6a6fbe | 8782 | rm -rf conftest.dSYM |
25fbec5b | 8783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8784 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8785 | fi |
ec6a6fbe AK |
8786 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8787 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8788 | |
8789 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8790 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8791 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8792 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8793 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8794 | else |
8795 | ac_check_lib_save_LIBS=$LIBS | |
8796 | LIBS="-lm $LIBS" | |
8797 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8798 | /* confdefs.h. */ |
8799 | _ACEOF | |
8800 | cat confdefs.h >>conftest.$ac_ext | |
8801 | cat >>conftest.$ac_ext <<_ACEOF | |
8802 | /* end confdefs.h. */ | |
8803 | ||
7a197a62 AK |
8804 | /* Override any GCC internal prototype to avoid an error. |
8805 | Use char because int might match the return type of a GCC | |
8806 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8807 | #ifdef __cplusplus |
8808 | extern "C" | |
8809 | #endif | |
ad6254c5 AK |
8810 | char pow (); |
8811 | int | |
8812 | main () | |
8813 | { | |
7a197a62 | 8814 | return pow (); |
ad6254c5 AK |
8815 | ; |
8816 | return 0; | |
8817 | } | |
8818 | _ACEOF | |
8819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8820 | if { (ac_try="$ac_link" |
8821 | case "(($ac_try" in | |
8822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8823 | *) ac_try_echo=$ac_try;; | |
8824 | esac | |
ec6a6fbe AK |
8825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8826 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8827 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8828 | ac_status=$? |
8a2fc586 AK |
8829 | grep -v '^ *+' conftest.er1 >conftest.err |
8830 | rm -f conftest.er1 | |
8831 | cat conftest.err >&5 | |
ec6a6fbe | 8832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8833 | (exit $ac_status); } && { |
8834 | test -z "$ac_c_werror_flag" || | |
8835 | test ! -s conftest.err | |
ec6a6fbe AK |
8836 | } && test -s conftest$ac_exeext && { |
8837 | test "$cross_compiling" = yes || | |
8838 | $as_test_x conftest$ac_exeext | |
8839 | }; then | |
ad6254c5 AK |
8840 | ac_cv_lib_m_pow=yes |
8841 | else | |
ec6a6fbe | 8842 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8843 | sed 's/^/| /' conftest.$ac_ext >&5 |
8844 | ||
7a197a62 | 8845 | ac_cv_lib_m_pow=no |
ad6254c5 | 8846 | fi |
7a197a62 | 8847 | |
ec6a6fbe | 8848 | rm -rf conftest.dSYM |
25fbec5b | 8849 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8850 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8851 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8852 | fi |
ec6a6fbe AK |
8853 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8854 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8855 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8856 | POW_LIB=-lm |
8857 | else | |
ec6a6fbe AK |
8858 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8859 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8860 | fi |
72b2cb61 | 8861 | |
d0191583 | 8862 | fi |
72b2cb61 | 8863 | |
ad6254c5 AK |
8864 | fi |
8865 | ||
ad6254c5 | 8866 | |
d0191583 JM |
8867 | for ac_func in vprintf |
8868 | do | |
ec6a6fbe AK |
8869 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8870 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8871 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8872 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8873 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8874 | else |
d0191583 JM |
8875 | cat >conftest.$ac_ext <<_ACEOF |
8876 | /* confdefs.h. */ | |
8877 | _ACEOF | |
8878 | cat confdefs.h >>conftest.$ac_ext | |
8879 | cat >>conftest.$ac_ext <<_ACEOF | |
8880 | /* end confdefs.h. */ | |
8881 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8883 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8884 | |
d0191583 JM |
8885 | /* System header to define __stub macros and hopefully few prototypes, |
8886 | which can conflict with char $ac_func (); below. | |
8887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8888 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8889 | |
d0191583 JM |
8890 | #ifdef __STDC__ |
8891 | # include <limits.h> | |
8892 | #else | |
8893 | # include <assert.h> | |
8894 | #endif | |
ad6254c5 | 8895 | |
d0191583 | 8896 | #undef $ac_func |
72b2cb61 | 8897 | |
d0191583 JM |
8898 | /* Override any GCC internal prototype to avoid an error. |
8899 | Use char because int might match the return type of a GCC | |
8900 | builtin and then its argument prototype would still apply. */ | |
8901 | #ifdef __cplusplus | |
8902 | extern "C" | |
8903 | #endif | |
8904 | char $ac_func (); | |
8905 | /* The GNU C library defines this for functions which it implements | |
8906 | to always fail with ENOSYS. Some functions are actually named | |
8907 | something starting with __ and the normal name is an alias. */ | |
8908 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8909 | choke me | |
8910 | #endif | |
8911 | ||
8912 | int | |
8913 | main () | |
8914 | { | |
8915 | return $ac_func (); | |
8916 | ; | |
8917 | return 0; | |
8918 | } | |
72b2cb61 | 8919 | _ACEOF |
d0191583 JM |
8920 | rm -f conftest.$ac_objext conftest$ac_exeext |
8921 | if { (ac_try="$ac_link" | |
8922 | case "(($ac_try" in | |
8923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8924 | *) ac_try_echo=$ac_try;; | |
8925 | esac | |
ec6a6fbe AK |
8926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8927 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8928 | (eval "$ac_link") 2>conftest.er1 |
8929 | ac_status=$? | |
8930 | grep -v '^ *+' conftest.er1 >conftest.err | |
8931 | rm -f conftest.er1 | |
8932 | cat conftest.err >&5 | |
ec6a6fbe | 8933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8934 | (exit $ac_status); } && { |
8935 | test -z "$ac_c_werror_flag" || | |
8936 | test ! -s conftest.err | |
ec6a6fbe AK |
8937 | } && test -s conftest$ac_exeext && { |
8938 | test "$cross_compiling" = yes || | |
8939 | $as_test_x conftest$ac_exeext | |
8940 | }; then | |
d0191583 JM |
8941 | eval "$as_ac_var=yes" |
8942 | else | |
ec6a6fbe | 8943 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8944 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8945 | |
d0191583 | 8946 | eval "$as_ac_var=no" |
ad6254c5 AK |
8947 | fi |
8948 | ||
ec6a6fbe | 8949 | rm -rf conftest.dSYM |
d0191583 JM |
8950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8951 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8952 | fi |
ec6a6fbe AK |
8953 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8954 | $as_echo "$as_val"'` | |
8955 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8956 | $as_echo "$ac_res" >&6; } | |
8957 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8958 | $as_echo "$as_val"'` | |
8959 | if test "x$as_val" = x""yes; then | |
d0191583 | 8960 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8961 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8962 | _ACEOF |
7a197a62 | 8963 | |
ec6a6fbe AK |
8964 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8965 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8966 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8967 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8968 | else |
d0191583 JM |
8969 | cat >conftest.$ac_ext <<_ACEOF |
8970 | /* confdefs.h. */ | |
8971 | _ACEOF | |
8972 | cat confdefs.h >>conftest.$ac_ext | |
8973 | cat >>conftest.$ac_ext <<_ACEOF | |
8974 | /* end confdefs.h. */ | |
8975 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8976 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8977 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8978 | |
d0191583 JM |
8979 | /* System header to define __stub macros and hopefully few prototypes, |
8980 | which can conflict with char _doprnt (); below. | |
8981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8982 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8983 | |
d0191583 JM |
8984 | #ifdef __STDC__ |
8985 | # include <limits.h> | |
8986 | #else | |
8987 | # include <assert.h> | |
8988 | #endif | |
72b2cb61 | 8989 | |
d0191583 JM |
8990 | #undef _doprnt |
8991 | ||
8992 | /* Override any GCC internal prototype to avoid an error. | |
8993 | Use char because int might match the return type of a GCC | |
8994 | builtin and then its argument prototype would still apply. */ | |
8995 | #ifdef __cplusplus | |
8996 | extern "C" | |
8997 | #endif | |
8998 | char _doprnt (); | |
8999 | /* The GNU C library defines this for functions which it implements | |
9000 | to always fail with ENOSYS. Some functions are actually named | |
9001 | something starting with __ and the normal name is an alias. */ | |
9002 | #if defined __stub__doprnt || defined __stub____doprnt | |
9003 | choke me | |
9004 | #endif | |
9005 | ||
9006 | int | |
9007 | main () | |
9008 | { | |
9009 | return _doprnt (); | |
9010 | ; | |
9011 | return 0; | |
9012 | } | |
72b2cb61 | 9013 | _ACEOF |
d0191583 JM |
9014 | rm -f conftest.$ac_objext conftest$ac_exeext |
9015 | if { (ac_try="$ac_link" | |
9016 | case "(($ac_try" in | |
9017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9018 | *) ac_try_echo=$ac_try;; | |
9019 | esac | |
ec6a6fbe AK |
9020 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9021 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
9022 | (eval "$ac_link") 2>conftest.er1 |
9023 | ac_status=$? | |
9024 | grep -v '^ *+' conftest.er1 >conftest.err | |
9025 | rm -f conftest.er1 | |
9026 | cat conftest.err >&5 | |
ec6a6fbe | 9027 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
9028 | (exit $ac_status); } && { |
9029 | test -z "$ac_c_werror_flag" || | |
9030 | test ! -s conftest.err | |
ec6a6fbe AK |
9031 | } && test -s conftest$ac_exeext && { |
9032 | test "$cross_compiling" = yes || | |
9033 | $as_test_x conftest$ac_exeext | |
9034 | }; then | |
d0191583 JM |
9035 | ac_cv_func__doprnt=yes |
9036 | else | |
ec6a6fbe | 9037 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 9038 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 9039 | |
d0191583 | 9040 | ac_cv_func__doprnt=no |
ad6254c5 AK |
9041 | fi |
9042 | ||
ec6a6fbe | 9043 | rm -rf conftest.dSYM |
d0191583 JM |
9044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9045 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 9046 | fi |
ec6a6fbe AK |
9047 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9048 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
9049 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 9050 | |
d0191583 JM |
9051 | cat >>confdefs.h <<\_ACEOF |
9052 | #define HAVE_DOPRNT 1 | |
9053 | _ACEOF | |
ad6254c5 | 9054 | |
7a197a62 AK |
9055 | fi |
9056 | ||
d0191583 JM |
9057 | fi |
9058 | done | |
8b1a3214 | 9059 | |
ad6254c5 | 9060 | |
7a197a62 | 9061 | |
9c961554 | 9062 | ################################################################################ |
ec6a6fbe AK |
9063 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9064 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
9065 | # Check whether --enable-static_link was given. |
9066 | if test "${enable_static_link+set}" = set; then | |
9067 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9068 | else | |
9069 | STATIC_LINK=no | |
9070 | fi | |
9071 | ||
ec6a6fbe AK |
9072 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9073 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 9074 | |
d0191583 | 9075 | ################################################################################ |
ad6254c5 | 9076 | |
ad6254c5 AK |
9077 | |
9078 | ################################################################################ | |
ec6a6fbe AK |
9079 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
9080 | $as_echo_n "checking file owner... " >&6; } | |
39dabc84 | 9081 | OWNER="" |
d0191583 JM |
9082 | |
9083 | ||
9084 | # Check whether --with-user was given. | |
9085 | if test "${with_user+set}" = set; then | |
9086 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
9087 | fi |
9088 | ||
ec6a6fbe AK |
9089 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
9090 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 9091 | |
d0191583 JM |
9092 | if test x$OWNER != x; then |
9093 | OWNER="-o $OWNER" | |
ad6254c5 AK |
9094 | fi |
9095 | ||
9096 | ################################################################################ | |
ec6a6fbe AK |
9097 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
9098 | $as_echo_n "checking group owner... " >&6; } | |
39dabc84 | 9099 | GROUP="" |
ad6254c5 | 9100 | |
d0191583 JM |
9101 | # Check whether --with-group was given. |
9102 | if test "${with_group+set}" = set; then | |
9103 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
9104 | fi |
9105 | ||
ec6a6fbe AK |
9106 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
9107 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
9108 | |
9109 | if test x$GROUP != x; then | |
9110 | GROUP="-g $GROUP" | |
9111 | fi | |
ad6254c5 | 9112 | |
24bbc4d7 | 9113 | ################################################################################ |
ec6a6fbe AK |
9114 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9115 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9116 | |
9117 | ||
9118 | # Check whether --with-device-uid was given. | |
9119 | if test "${with_device_uid+set}" = set; then | |
9120 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9121 | else | |
9122 | DM_DEVICE_UID="0" | |
9123 | fi | |
9124 | ||
ec6a6fbe AK |
9125 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9126 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9127 | |
9128 | ################################################################################ | |
ec6a6fbe AK |
9129 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9130 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9131 | |
9132 | ||
9133 | # Check whether --with-device-gid was given. | |
9134 | if test "${with_device_gid+set}" = set; then | |
9135 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9136 | else | |
9137 | DM_DEVICE_GID="0" | |
9138 | fi | |
9139 | ||
ec6a6fbe AK |
9140 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9141 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9142 | |
93bd259b | 9143 | ################################################################################ |
ec6a6fbe AK |
9144 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9145 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9146 | |
9147 | ||
9148 | # Check whether --with-device-mode was given. | |
9149 | if test "${with_device_mode+set}" = set; then | |
9150 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9151 | else | |
9152 | DM_DEVICE_MODE="0600" | |
9153 | fi | |
9154 | ||
ec6a6fbe AK |
9155 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9156 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9157 | |
ad6254c5 | 9158 | ################################################################################ |
ec6a6fbe AK |
9159 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9160 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9161 | # Check whether --enable-lvm1_fallback was given. |
9162 | if test "${enable_lvm1_fallback+set}" = set; then | |
9163 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9164 | else | |
9165 | LVM1_FALLBACK=no | |
7a197a62 AK |
9166 | fi |
9167 | ||
ec6a6fbe AK |
9168 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9169 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9170 | |
d0191583 | 9171 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9172 | |
9173 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9174 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9175 | _ACEOF |
9176 | ||
ad6254c5 AK |
9177 | fi |
9178 | ||
9179 | ################################################################################ | |
ec6a6fbe AK |
9180 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9181 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9182 | |
9183 | # Check whether --with-lvm1 was given. | |
9184 | if test "${with_lvm1+set}" = set; then | |
9185 | withval=$with_lvm1; LVM1="$withval" | |
9186 | else | |
9187 | LVM1="internal" | |
7a197a62 AK |
9188 | fi |
9189 | ||
ec6a6fbe AK |
9190 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9191 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9192 | |
d0191583 | 9193 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9194 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9195 | " >&5 |
ec6a6fbe | 9196 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9197 | " >&2;} |
9198 | { (exit 1); exit 1; }; } | |
9199 | fi; | |
9200 | ||
9201 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9202 | |
9203 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9204 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9205 | _ACEOF |
9206 | ||
ad6254c5 AK |
9207 | fi |
9208 | ||
9209 | ################################################################################ | |
ec6a6fbe AK |
9210 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9211 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9212 | |
9213 | # Check whether --with-pool was given. | |
9214 | if test "${with_pool+set}" = set; then | |
9215 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9216 | else |
d0191583 | 9217 | POOL="internal" |
7a197a62 AK |
9218 | fi |
9219 | ||
ec6a6fbe AK |
9220 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9221 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9222 | |
d0191583 | 9223 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9224 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9225 | " >&5 |
ec6a6fbe | 9226 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9227 | " >&2;} |
9228 | { (exit 1); exit 1; }; } | |
9229 | fi; | |
7a197a62 | 9230 | |
d0191583 JM |
9231 | if test x$POOL = xinternal; then |
9232 | ||
9233 | cat >>confdefs.h <<\_ACEOF | |
9234 | #define POOL_INTERNAL 1 | |
9235 | _ACEOF | |
9236 | ||
9237 | fi | |
ad6254c5 | 9238 | |
06f62ad1 | 9239 | ################################################################################ |
ec6a6fbe AK |
9240 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9241 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9242 | |
9243 | # Check whether --with-cluster was given. | |
9244 | if test "${with_cluster+set}" = set; then | |
9245 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9246 | fi |
9247 | ||
ec6a6fbe AK |
9248 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9249 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9250 | |
d0191583 | 9251 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9252 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9253 | " >&5 |
ec6a6fbe | 9254 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9255 | " >&2;} |
9256 | { (exit 1); exit 1; }; } | |
d0191583 | 9257 | fi; |
06f62ad1 | 9258 | |
d0191583 | 9259 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9260 | |
9261 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9262 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9263 | _ACEOF |
9264 | ||
15d91f5a | 9265 | fi |
ad6254c5 AK |
9266 | |
9267 | ################################################################################ | |
ec6a6fbe AK |
9268 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9269 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9270 | |
d0191583 JM |
9271 | # Check whether --with-snapshots was given. |
9272 | if test "${with_snapshots+set}" = set; then | |
9273 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9274 | else | |
9275 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9276 | fi |
9277 | ||
ec6a6fbe AK |
9278 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9279 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9280 | |
d0191583 | 9281 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9282 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9283 | " >&5 |
ec6a6fbe | 9284 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9285 | " >&2;} |
9286 | { (exit 1); exit 1; }; } | |
9287 | fi; | |
9288 | ||
9289 | if test x$SNAPSHOTS = xinternal; then | |
9290 | ||
9291 | cat >>confdefs.h <<\_ACEOF | |
9292 | #define SNAPSHOT_INTERNAL 1 | |
9293 | _ACEOF | |
ad6254c5 | 9294 | |
ad6254c5 | 9295 | fi |
7a197a62 | 9296 | |
d0191583 | 9297 | ################################################################################ |
ec6a6fbe AK |
9298 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9299 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9300 | |
9301 | # Check whether --with-mirrors was given. | |
9302 | if test "${with_mirrors+set}" = set; then | |
9303 | withval=$with_mirrors; MIRRORS="$withval" | |
9304 | else | |
9305 | MIRRORS="internal" | |
ad6254c5 | 9306 | fi |
ad6254c5 | 9307 | |
ec6a6fbe AK |
9308 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9309 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9310 | |
d0191583 | 9311 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9312 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9313 | " >&5 |
ec6a6fbe | 9314 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9315 | " >&2;} |
9316 | { (exit 1); exit 1; }; } | |
9317 | fi; | |
ad6254c5 | 9318 | |
d0191583 | 9319 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9320 | |
d0191583 JM |
9321 | cat >>confdefs.h <<\_ACEOF |
9322 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9323 | _ACEOF |
8a2fc586 | 9324 | |
d0191583 | 9325 | fi |
8a2fc586 | 9326 | |
d0191583 | 9327 | ################################################################################ |
ec6a6fbe AK |
9328 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9329 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9330 | # Check whether --enable-readline was given. |
9331 | if test "${enable_readline+set}" = set; then | |
9332 | enableval=$enable_readline; READLINE=$enableval | |
9333 | else | |
06e459df | 9334 | READLINE=maybe |
d0191583 | 9335 | fi |
8a2fc586 | 9336 | |
ec6a6fbe AK |
9337 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9338 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9339 | |
d0191583 | 9340 | ################################################################################ |
ec6a6fbe AK |
9341 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9342 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9343 | # Check whether --enable-realtime was given. |
9344 | if test "${enable_realtime+set}" = set; then | |
9345 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9346 | fi |
ad6254c5 | 9347 | |
ec6a6fbe AK |
9348 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9349 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9350 | |
9351 | ################################################################################ | |
90c80887 | 9352 | pkg_config_init() { |
e2997b73 AK |
9353 | |
9354 | ||
9355 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9356 | if test -n "$ac_tool_prefix"; then | |
9357 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9358 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9359 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9360 | $as_echo_n "checking for $ac_word... " >&6; } | |
9361 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9362 | $as_echo_n "(cached) " >&6 | |
9363 | else | |
9364 | case $PKG_CONFIG in | |
9365 | [\\/]* | ?:[\\/]*) | |
9366 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9367 | ;; | |
9368 | *) | |
9369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9370 | for as_dir in $PATH | |
9371 | do | |
9372 | IFS=$as_save_IFS | |
9373 | test -z "$as_dir" && as_dir=. | |
9374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9376 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9377 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9378 | break 2 | |
9379 | fi | |
9380 | done | |
9381 | done | |
9382 | IFS=$as_save_IFS | |
9383 | ||
9384 | ;; | |
9385 | esac | |
9386 | fi | |
9387 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9388 | if test -n "$PKG_CONFIG"; then | |
9389 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9390 | $as_echo "$PKG_CONFIG" >&6; } | |
9391 | else | |
9392 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9393 | $as_echo "no" >&6; } | |
9394 | fi | |
9395 | ||
9396 | ||
9397 | fi | |
9398 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9399 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9400 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9401 | set dummy pkg-config; ac_word=$2 | |
9402 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9403 | $as_echo_n "checking for $ac_word... " >&6; } | |
9404 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9405 | $as_echo_n "(cached) " >&6 | |
9406 | else | |
9407 | case $ac_pt_PKG_CONFIG in | |
9408 | [\\/]* | ?:[\\/]*) | |
9409 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9410 | ;; | |
9411 | *) | |
9412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9413 | for as_dir in $PATH | |
9414 | do | |
9415 | IFS=$as_save_IFS | |
9416 | test -z "$as_dir" && as_dir=. | |
9417 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9419 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9420 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9421 | break 2 | |
9422 | fi | |
9423 | done | |
9424 | done | |
9425 | IFS=$as_save_IFS | |
9426 | ||
9427 | ;; | |
9428 | esac | |
9429 | fi | |
9430 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9431 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9432 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9433 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9434 | else | |
9435 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9436 | $as_echo "no" >&6; } | |
9437 | fi | |
9438 | ||
9439 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9440 | PKG_CONFIG="" | |
9441 | else | |
9442 | case $cross_compiling:$ac_tool_warned in | |
9443 | yes:) | |
9444 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9445 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9446 | ac_tool_warned=yes ;; | |
9447 | esac | |
9448 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9449 | fi | |
9450 | else | |
9451 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9452 | fi | |
9453 | ||
9454 | fi | |
9455 | if test -n "$PKG_CONFIG"; then | |
9456 | _pkg_min_version=0.9.0 | |
9457 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9458 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9459 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9460 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9461 | $as_echo "yes" >&6; } | |
9462 | else | |
9463 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9464 | $as_echo "no" >&6; } | |
9465 | PKG_CONFIG="" | |
9466 | fi | |
9467 | ||
9468 | fi | |
9469 | ||
9470 | pkg_failed=no | |
a946372e AK |
9471 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9472 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9473 | |
a946372e AK |
9474 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9475 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9476 | elif test -n "$PKG_CONFIG"; then |
9477 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9478 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9479 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9480 | ac_status=$? |
9481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9482 | (exit $ac_status); }; then | |
a946372e | 9483 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9484 | else |
9485 | pkg_failed=yes | |
9486 | fi | |
9487 | else | |
9488 | pkg_failed=untried | |
9489 | fi | |
a946372e AK |
9490 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9491 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9492 | elif test -n "$PKG_CONFIG"; then |
9493 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9494 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9495 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9496 | ac_status=$? |
9497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9498 | (exit $ac_status); }; then | |
a946372e | 9499 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9500 | else |
9501 | pkg_failed=yes | |
9502 | fi | |
9503 | else | |
9504 | pkg_failed=untried | |
9505 | fi | |
9506 | ||
9507 | ||
9508 | ||
9509 | if test $pkg_failed = yes; then | |
9510 | ||
9511 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9512 | _pkg_short_errors_supported=yes | |
9513 | else | |
9514 | _pkg_short_errors_supported=no | |
9515 | fi | |
9516 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9517 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9518 | else |
a946372e | 9519 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9520 | fi |
9521 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9522 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 AK |
9523 | |
9524 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9525 | $as_echo "no" >&6; } | |
a946372e AK |
9526 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9527 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9528 | elif test $pkg_failed = untried; then |
a946372e AK |
9529 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9530 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9531 | else |
a946372e AK |
9532 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9533 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9534 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9535 | $as_echo "yes" >&6; } | |
9536 | : | |
9537 | fi | |
90c80887 AK |
9538 | PKGCONFIG_INIT=1 |
9539 | } | |
9540 | ||
9541 | ################################################################################ | |
9542 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
9543 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
9544 | ||
9545 | # Check whether --with-clvmd was given. | |
9546 | if test "${with_clvmd+set}" = set; then | |
9547 | withval=$with_clvmd; CLVMD="$withval" | |
9548 | else | |
9549 | CLVMD="none" | |
9550 | fi | |
9551 | ||
9552 | if test x$CLVMD = xyes; then | |
9553 | CLVMD=all | |
9554 | fi | |
9555 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
9556 | $as_echo "$CLVMD" >&6; } | |
9557 | ||
9558 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
9559 | CLUSTER=internal | |
9560 | fi | |
9561 | ||
9562 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
9563 | pkg_config_init | |
9564 | fi | |
9565 | ||
9566 | ||
9567 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
9568 | BUILDGULM=yes | |
9569 | fi | |
9570 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9571 | BUILDCOROSYNC=yes | |
9572 | fi | |
9573 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9574 | BUILDOPENAIS=yes | |
9575 | fi | |
9576 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9577 | BUILDCMAN=yes | |
9578 | fi | |
9579 | ||
9580 | if test x$BUILDGULM = xyes; then | |
9581 | if test x$BUILDCOROSYNC = xyes || \ | |
9582 | test x$BUILDOPENAIS = xyes; then | |
9583 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9584 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9585 | { (exit 1); exit 1; }; } | |
9586 | fi | |
a946372e | 9587 | fi |
e2997b73 | 9588 | |
a946372e AK |
9589 | soft_bailout() { |
9590 | NOTFOUND=1 | |
9591 | } | |
e2997b73 | 9592 | |
a946372e AK |
9593 | hard_bailout() { |
9594 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9595 | $as_echo "$as_me: error: bailing out" >&2;} | |
9596 | { (exit 1); exit 1; }; } | |
9597 | } | |
9598 | ||
9599 | if test x$CLVMD = xall; then | |
9600 | bailout=soft_bailout | |
9601 | BUILDGULM=yes | |
9602 | BUILDCMAN=yes | |
9603 | BUILDCOROSYNC=yes | |
9604 | BUILDOPENAIS=yes | |
e2997b73 | 9605 | else |
a946372e | 9606 | bailout=hard_bailout |
e2997b73 | 9607 | fi |
a946372e AK |
9608 | |
9609 | check_lib_no_libs() { | |
9610 | lib_no_libs_arg1=$1 | |
9611 | shift | |
9612 | lib_no_libs_arg2=$1 | |
9613 | shift | |
9614 | lib_no_libs_args=$@ | |
9615 | ||
9616 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9617 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9618 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9619 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9620 | $as_echo_n "(cached) " >&6 | |
9621 | else | |
9622 | ac_check_lib_save_LIBS=$LIBS | |
9623 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9624 | cat >conftest.$ac_ext <<_ACEOF | |
9625 | /* confdefs.h. */ | |
9626 | _ACEOF | |
9627 | cat confdefs.h >>conftest.$ac_ext | |
9628 | cat >>conftest.$ac_ext <<_ACEOF | |
9629 | /* end confdefs.h. */ | |
9630 | ||
9631 | /* Override any GCC internal prototype to avoid an error. | |
9632 | Use char because int might match the return type of a GCC | |
9633 | builtin and then its argument prototype would still apply. */ | |
9634 | #ifdef __cplusplus | |
9635 | extern "C" | |
9636 | #endif | |
9637 | char $lib_no_libs_arg2 (); | |
9638 | int | |
9639 | main () | |
9640 | { | |
9641 | return $lib_no_libs_arg2 (); | |
9642 | ; | |
9643 | return 0; | |
9644 | } | |
9645 | _ACEOF | |
9646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9647 | if { (ac_try="$ac_link" | |
9648 | case "(($ac_try" in | |
9649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9650 | *) ac_try_echo=$ac_try;; | |
9651 | esac | |
9652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9653 | $as_echo "$ac_try_echo") >&5 | |
9654 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9655 | ac_status=$? |
a946372e AK |
9656 | grep -v '^ *+' conftest.er1 >conftest.err |
9657 | rm -f conftest.er1 | |
9658 | cat conftest.err >&5 | |
e2997b73 | 9659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9660 | (exit $ac_status); } && { |
9661 | test -z "$ac_c_werror_flag" || | |
9662 | test ! -s conftest.err | |
9663 | } && test -s conftest$ac_exeext && { | |
9664 | test "$cross_compiling" = yes || | |
9665 | $as_test_x conftest$ac_exeext | |
9666 | }; then | |
9667 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9668 | else |
a946372e AK |
9669 | $as_echo "$as_me: failed program was:" >&5 |
9670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9671 | |
a946372e AK |
9672 | eval "$as_ac_Lib=no" |
9673 | fi | |
e2997b73 | 9674 | |
a946372e AK |
9675 | rm -rf conftest.dSYM |
9676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9677 | conftest$ac_exeext conftest.$ac_ext | |
9678 | LIBS=$ac_check_lib_save_LIBS | |
9679 | fi | |
9680 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9681 | $as_echo "$as_val"'` | |
9682 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9683 | $as_echo "$ac_res" >&6; } | |
9684 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9685 | $as_echo "$as_val"'` | |
9686 | if test "x$as_val" = x""yes; then | |
9687 | cat >>confdefs.h <<_ACEOF | |
9688 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9689 | _ACEOF | |
e2997b73 | 9690 | |
a946372e | 9691 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9692 | |
e2997b73 | 9693 | else |
a946372e | 9694 | $bailout |
e2997b73 | 9695 | fi |
e2997b73 | 9696 | |
a946372e AK |
9697 | LIBS=$ac_check_lib_save_LIBS |
9698 | } | |
9699 | ||
9700 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9701 | |
9702 | pkg_failed=no | |
a946372e AK |
9703 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9704 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9705 | |
a946372e AK |
9706 | if test -n "$CCS_CFLAGS"; then |
9707 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9708 | elif test -n "$PKG_CONFIG"; then |
9709 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9710 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9711 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9712 | ac_status=$? |
9713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9714 | (exit $ac_status); }; then | |
a946372e | 9715 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9716 | else |
9717 | pkg_failed=yes | |
9718 | fi | |
9719 | else | |
9720 | pkg_failed=untried | |
9721 | fi | |
a946372e AK |
9722 | if test -n "$CCS_LIBS"; then |
9723 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9724 | elif test -n "$PKG_CONFIG"; then |
9725 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9726 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9727 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9728 | ac_status=$? |
9729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9730 | (exit $ac_status); }; then | |
a946372e | 9731 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9732 | else |
9733 | pkg_failed=yes | |
9734 | fi | |
9735 | else | |
9736 | pkg_failed=untried | |
9737 | fi | |
9738 | ||
9739 | ||
9740 | ||
9741 | if test $pkg_failed = yes; then | |
9742 | ||
9743 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9744 | _pkg_short_errors_supported=yes | |
9745 | else | |
9746 | _pkg_short_errors_supported=no | |
9747 | fi | |
9748 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9749 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9750 | else |
a946372e | 9751 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9752 | fi |
9753 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9754 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 AK |
9755 | |
9756 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9757 | $as_echo "no" >&6; } | |
a946372e | 9758 | NOTFOUND=0 |
e2997b73 | 9759 | |
a946372e AK |
9760 | for ac_header in ccs.h |
9761 | do | |
9762 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9764 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9765 | $as_echo_n "checking for $ac_header... " >&6; } | |
9766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9767 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9768 | fi |
a946372e AK |
9769 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9770 | $as_echo "$as_val"'` | |
9771 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9772 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9773 | else |
a946372e AK |
9774 | # Is the header compilable? |
9775 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9776 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9777 | cat >conftest.$ac_ext <<_ACEOF | |
9778 | /* confdefs.h. */ | |
9779 | _ACEOF | |
9780 | cat confdefs.h >>conftest.$ac_ext | |
9781 | cat >>conftest.$ac_ext <<_ACEOF | |
9782 | /* end confdefs.h. */ | |
9783 | $ac_includes_default | |
9784 | #include <$ac_header> | |
9785 | _ACEOF | |
9786 | rm -f conftest.$ac_objext | |
9787 | if { (ac_try="$ac_compile" | |
9788 | case "(($ac_try" in | |
9789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9790 | *) ac_try_echo=$ac_try;; | |
9791 | esac | |
9792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9793 | $as_echo "$ac_try_echo") >&5 | |
9794 | (eval "$ac_compile") 2>conftest.er1 | |
9795 | ac_status=$? | |
9796 | grep -v '^ *+' conftest.er1 >conftest.err | |
9797 | rm -f conftest.er1 | |
9798 | cat conftest.err >&5 | |
9799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9800 | (exit $ac_status); } && { | |
9801 | test -z "$ac_c_werror_flag" || | |
9802 | test ! -s conftest.err | |
9803 | } && test -s conftest.$ac_objext; then | |
9804 | ac_header_compiler=yes | |
9805 | else | |
9806 | $as_echo "$as_me: failed program was:" >&5 | |
9807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9808 | |
a946372e | 9809 | ac_header_compiler=no |
d0191583 JM |
9810 | fi |
9811 | ||
a946372e AK |
9812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9813 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9814 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9815 | |
a946372e AK |
9816 | # Is the header present? |
9817 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9818 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9819 | cat >conftest.$ac_ext <<_ACEOF | |
9820 | /* confdefs.h. */ | |
9821 | _ACEOF | |
9822 | cat confdefs.h >>conftest.$ac_ext | |
9823 | cat >>conftest.$ac_ext <<_ACEOF | |
9824 | /* end confdefs.h. */ | |
9825 | #include <$ac_header> | |
9826 | _ACEOF | |
9827 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9828 | case "(($ac_try" in | |
9829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9830 | *) ac_try_echo=$ac_try;; | |
9831 | esac | |
9832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9833 | $as_echo "$ac_try_echo") >&5 | |
9834 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9835 | ac_status=$? | |
9836 | grep -v '^ *+' conftest.er1 >conftest.err | |
9837 | rm -f conftest.er1 | |
9838 | cat conftest.err >&5 | |
9839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9840 | (exit $ac_status); } >/dev/null && { | |
9841 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9842 | test ! -s conftest.err | |
9843 | }; then | |
9844 | ac_header_preproc=yes | |
9845 | else | |
9846 | $as_echo "$as_me: failed program was:" >&5 | |
9847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9848 | ||
9849 | ac_header_preproc=no | |
9850 | fi | |
9851 | ||
9852 | rm -f conftest.err conftest.$ac_ext | |
9853 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9854 | $as_echo "$ac_header_preproc" >&6; } | |
9855 | ||
9856 | # So? What about this header? | |
9857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9858 | yes:no: ) | |
9859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9860 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9862 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9863 | ac_header_preproc=yes | |
9864 | ;; | |
9865 | no:yes:* ) | |
9866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9867 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9869 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9871 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9873 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9875 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9877 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9878 | ||
9879 | ;; | |
9880 | esac | |
9881 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9882 | $as_echo_n "checking for $ac_header... " >&6; } | |
9883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9884 | $as_echo_n "(cached) " >&6 | |
9885 | else | |
9886 | eval "$as_ac_Header=\$ac_header_preproc" | |
9887 | fi | |
9888 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9889 | $as_echo "$as_val"'` | |
9890 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9891 | $as_echo "$ac_res" >&6; } | |
9892 | ||
9893 | fi | |
9894 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9895 | $as_echo "$as_val"'` | |
9896 | if test "x$as_val" = x""yes; then | |
9897 | cat >>confdefs.h <<_ACEOF | |
9898 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9899 | _ACEOF | |
9900 | ||
9901 | else | |
9902 | $bailout | |
9903 | fi | |
9904 | ||
9905 | done | |
9906 | ||
9907 | check_lib_no_libs ccs ccs_connect | |
9908 | if test $NOTFOUND = 0; then | |
9909 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9910 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9911 | CCS_LIBS="-lccs" | |
9912 | HAVE_CCS=yes | |
9913 | fi | |
9914 | elif test $pkg_failed = untried; then | |
9915 | NOTFOUND=0 | |
9916 | ||
9917 | for ac_header in ccs.h | |
9918 | do | |
9919 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9920 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9921 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9922 | $as_echo_n "checking for $ac_header... " >&6; } | |
9923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9924 | $as_echo_n "(cached) " >&6 | |
9925 | fi | |
9926 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9927 | $as_echo "$as_val"'` | |
9928 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9929 | $as_echo "$ac_res" >&6; } | |
9930 | else | |
9931 | # Is the header compilable? | |
9932 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9933 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9934 | cat >conftest.$ac_ext <<_ACEOF | |
9935 | /* confdefs.h. */ | |
9936 | _ACEOF | |
9937 | cat confdefs.h >>conftest.$ac_ext | |
9938 | cat >>conftest.$ac_ext <<_ACEOF | |
9939 | /* end confdefs.h. */ | |
9940 | $ac_includes_default | |
9941 | #include <$ac_header> | |
9942 | _ACEOF | |
9943 | rm -f conftest.$ac_objext | |
9944 | if { (ac_try="$ac_compile" | |
9945 | case "(($ac_try" in | |
9946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9947 | *) ac_try_echo=$ac_try;; | |
9948 | esac | |
9949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9950 | $as_echo "$ac_try_echo") >&5 | |
9951 | (eval "$ac_compile") 2>conftest.er1 | |
9952 | ac_status=$? | |
9953 | grep -v '^ *+' conftest.er1 >conftest.err | |
9954 | rm -f conftest.er1 | |
9955 | cat conftest.err >&5 | |
9956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9957 | (exit $ac_status); } && { | |
9958 | test -z "$ac_c_werror_flag" || | |
9959 | test ! -s conftest.err | |
9960 | } && test -s conftest.$ac_objext; then | |
9961 | ac_header_compiler=yes | |
9962 | else | |
9963 | $as_echo "$as_me: failed program was:" >&5 | |
9964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9965 | ||
9966 | ac_header_compiler=no | |
9967 | fi | |
9968 | ||
9969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9970 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9971 | $as_echo "$ac_header_compiler" >&6; } | |
9972 | ||
9973 | # Is the header present? | |
9974 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9975 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9976 | cat >conftest.$ac_ext <<_ACEOF | |
9977 | /* confdefs.h. */ | |
9978 | _ACEOF | |
9979 | cat confdefs.h >>conftest.$ac_ext | |
9980 | cat >>conftest.$ac_ext <<_ACEOF | |
9981 | /* end confdefs.h. */ | |
9982 | #include <$ac_header> | |
9983 | _ACEOF | |
9984 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9985 | case "(($ac_try" in | |
9986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9987 | *) ac_try_echo=$ac_try;; | |
9988 | esac | |
9989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9990 | $as_echo "$ac_try_echo") >&5 | |
9991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9992 | ac_status=$? | |
9993 | grep -v '^ *+' conftest.er1 >conftest.err | |
9994 | rm -f conftest.er1 | |
9995 | cat conftest.err >&5 | |
9996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9997 | (exit $ac_status); } >/dev/null && { | |
9998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9999 | test ! -s conftest.err | |
10000 | }; then | |
10001 | ac_header_preproc=yes | |
10002 | else | |
10003 | $as_echo "$as_me: failed program was:" >&5 | |
10004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10005 | ||
10006 | ac_header_preproc=no | |
10007 | fi | |
10008 | ||
10009 | rm -f conftest.err conftest.$ac_ext | |
10010 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10011 | $as_echo "$ac_header_preproc" >&6; } | |
10012 | ||
10013 | # So? What about this header? | |
10014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10015 | yes:no: ) | |
10016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10017 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10019 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10020 | ac_header_preproc=yes | |
10021 | ;; | |
10022 | no:yes:* ) | |
10023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10024 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10026 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10028 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10030 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10032 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10034 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10035 | ||
10036 | ;; | |
10037 | esac | |
10038 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10039 | $as_echo_n "checking for $ac_header... " >&6; } | |
10040 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10041 | $as_echo_n "(cached) " >&6 | |
10042 | else | |
10043 | eval "$as_ac_Header=\$ac_header_preproc" | |
10044 | fi | |
10045 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10046 | $as_echo "$as_val"'` | |
10047 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10048 | $as_echo "$ac_res" >&6; } | |
10049 | ||
10050 | fi | |
10051 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10052 | $as_echo "$as_val"'` | |
10053 | if test "x$as_val" = x""yes; then | |
10054 | cat >>confdefs.h <<_ACEOF | |
10055 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10056 | _ACEOF | |
10057 | ||
10058 | else | |
10059 | $bailout | |
10060 | fi | |
10061 | ||
10062 | done | |
10063 | ||
10064 | check_lib_no_libs ccs ccs_connect | |
10065 | if test $NOTFOUND = 0; then | |
10066 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
10067 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
10068 | CCS_LIBS="-lccs" | |
10069 | HAVE_CCS=yes | |
10070 | fi | |
10071 | else | |
10072 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
10073 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
10074 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10075 | $as_echo "yes" >&6; } | |
10076 | HAVE_CCS=yes | |
10077 | fi | |
10078 | ||
10079 | pkg_failed=no | |
10080 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
10081 | $as_echo_n "checking for GULM... " >&6; } | |
10082 | ||
10083 | if test -n "$GULM_CFLAGS"; then | |
10084 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
10085 | elif test -n "$PKG_CONFIG"; then | |
10086 | if test -n "$PKG_CONFIG" && \ | |
10087 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10088 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10089 | ac_status=$? | |
10090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10091 | (exit $ac_status); }; then | |
10092 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
10093 | else | |
10094 | pkg_failed=yes | |
10095 | fi | |
10096 | else | |
10097 | pkg_failed=untried | |
10098 | fi | |
10099 | if test -n "$GULM_LIBS"; then | |
10100 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
10101 | elif test -n "$PKG_CONFIG"; then | |
10102 | if test -n "$PKG_CONFIG" && \ | |
10103 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10104 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10105 | ac_status=$? | |
10106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10107 | (exit $ac_status); }; then | |
10108 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
10109 | else | |
10110 | pkg_failed=yes | |
10111 | fi | |
10112 | else | |
10113 | pkg_failed=untried | |
10114 | fi | |
10115 | ||
10116 | ||
10117 | ||
10118 | if test $pkg_failed = yes; then | |
10119 | ||
10120 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10121 | _pkg_short_errors_supported=yes | |
10122 | else | |
10123 | _pkg_short_errors_supported=no | |
10124 | fi | |
10125 | if test $_pkg_short_errors_supported = yes; then | |
10126 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10127 | else | |
10128 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10129 | fi | |
10130 | # Put the nasty error message in config.log where it belongs | |
10131 | echo "$GULM_PKG_ERRORS" >&5 | |
10132 | ||
10133 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10134 | $as_echo "no" >&6; } | |
10135 | NOTFOUND=0 | |
10136 | ||
10137 | for ac_header in libgulm.h | |
10138 | do | |
10139 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10141 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10142 | $as_echo_n "checking for $ac_header... " >&6; } | |
10143 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10144 | $as_echo_n "(cached) " >&6 | |
10145 | fi | |
10146 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10147 | $as_echo "$as_val"'` | |
10148 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10149 | $as_echo "$ac_res" >&6; } | |
10150 | else | |
10151 | # Is the header compilable? | |
10152 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10153 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10154 | cat >conftest.$ac_ext <<_ACEOF | |
10155 | /* confdefs.h. */ | |
10156 | _ACEOF | |
10157 | cat confdefs.h >>conftest.$ac_ext | |
10158 | cat >>conftest.$ac_ext <<_ACEOF | |
10159 | /* end confdefs.h. */ | |
10160 | $ac_includes_default | |
10161 | #include <$ac_header> | |
10162 | _ACEOF | |
10163 | rm -f conftest.$ac_objext | |
10164 | if { (ac_try="$ac_compile" | |
10165 | case "(($ac_try" in | |
10166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10167 | *) ac_try_echo=$ac_try;; | |
10168 | esac | |
10169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10170 | $as_echo "$ac_try_echo") >&5 | |
10171 | (eval "$ac_compile") 2>conftest.er1 | |
10172 | ac_status=$? | |
10173 | grep -v '^ *+' conftest.er1 >conftest.err | |
10174 | rm -f conftest.er1 | |
10175 | cat conftest.err >&5 | |
10176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10177 | (exit $ac_status); } && { | |
10178 | test -z "$ac_c_werror_flag" || | |
10179 | test ! -s conftest.err | |
10180 | } && test -s conftest.$ac_objext; then | |
10181 | ac_header_compiler=yes | |
10182 | else | |
10183 | $as_echo "$as_me: failed program was:" >&5 | |
10184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10185 | ||
10186 | ac_header_compiler=no | |
10187 | fi | |
10188 | ||
10189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10190 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10191 | $as_echo "$ac_header_compiler" >&6; } | |
10192 | ||
10193 | # Is the header present? | |
10194 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10195 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10196 | cat >conftest.$ac_ext <<_ACEOF | |
10197 | /* confdefs.h. */ | |
10198 | _ACEOF | |
10199 | cat confdefs.h >>conftest.$ac_ext | |
10200 | cat >>conftest.$ac_ext <<_ACEOF | |
10201 | /* end confdefs.h. */ | |
10202 | #include <$ac_header> | |
10203 | _ACEOF | |
10204 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10205 | case "(($ac_try" in | |
10206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10207 | *) ac_try_echo=$ac_try;; | |
10208 | esac | |
10209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10210 | $as_echo "$ac_try_echo") >&5 | |
10211 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10212 | ac_status=$? | |
10213 | grep -v '^ *+' conftest.er1 >conftest.err | |
10214 | rm -f conftest.er1 | |
10215 | cat conftest.err >&5 | |
10216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10217 | (exit $ac_status); } >/dev/null && { | |
10218 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10219 | test ! -s conftest.err | |
10220 | }; then | |
10221 | ac_header_preproc=yes | |
10222 | else | |
10223 | $as_echo "$as_me: failed program was:" >&5 | |
10224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10225 | ||
10226 | ac_header_preproc=no | |
10227 | fi | |
10228 | ||
10229 | rm -f conftest.err conftest.$ac_ext | |
10230 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10231 | $as_echo "$ac_header_preproc" >&6; } | |
10232 | ||
10233 | # So? What about this header? | |
10234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10235 | yes:no: ) | |
10236 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10237 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10239 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10240 | ac_header_preproc=yes | |
10241 | ;; | |
10242 | no:yes:* ) | |
10243 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10244 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10245 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10246 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10247 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10248 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10249 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10250 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10251 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10252 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10254 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10255 | ||
10256 | ;; | |
10257 | esac | |
10258 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10259 | $as_echo_n "checking for $ac_header... " >&6; } | |
10260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10261 | $as_echo_n "(cached) " >&6 | |
10262 | else | |
10263 | eval "$as_ac_Header=\$ac_header_preproc" | |
10264 | fi | |
10265 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10266 | $as_echo "$as_val"'` | |
10267 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10268 | $as_echo "$ac_res" >&6; } | |
10269 | ||
10270 | fi | |
10271 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10272 | $as_echo "$as_val"'` | |
10273 | if test "x$as_val" = x""yes; then | |
10274 | cat >>confdefs.h <<_ACEOF | |
10275 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10276 | _ACEOF | |
10277 | ||
10278 | else | |
10279 | $bailout | |
10280 | fi | |
10281 | ||
10282 | done | |
10283 | ||
10284 | check_lib_no_libs gulm lg_core_login | |
10285 | if test $NOTFOUND = 0; then | |
10286 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10287 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10288 | GULM_LIBS="-lgulm" | |
10289 | HAVE_GULM=yes | |
10290 | fi | |
10291 | elif test $pkg_failed = untried; then | |
10292 | NOTFOUND=0 | |
10293 | ||
10294 | for ac_header in libgulm.h | |
10295 | do | |
10296 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10297 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10298 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10299 | $as_echo_n "checking for $ac_header... " >&6; } | |
10300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10301 | $as_echo_n "(cached) " >&6 | |
10302 | fi | |
10303 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10304 | $as_echo "$as_val"'` | |
10305 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10306 | $as_echo "$ac_res" >&6; } | |
10307 | else | |
10308 | # Is the header compilable? | |
10309 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10310 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10311 | cat >conftest.$ac_ext <<_ACEOF | |
10312 | /* confdefs.h. */ | |
10313 | _ACEOF | |
10314 | cat confdefs.h >>conftest.$ac_ext | |
10315 | cat >>conftest.$ac_ext <<_ACEOF | |
10316 | /* end confdefs.h. */ | |
10317 | $ac_includes_default | |
10318 | #include <$ac_header> | |
10319 | _ACEOF | |
10320 | rm -f conftest.$ac_objext | |
10321 | if { (ac_try="$ac_compile" | |
10322 | case "(($ac_try" in | |
10323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10324 | *) ac_try_echo=$ac_try;; | |
10325 | esac | |
10326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10327 | $as_echo "$ac_try_echo") >&5 | |
10328 | (eval "$ac_compile") 2>conftest.er1 | |
10329 | ac_status=$? | |
10330 | grep -v '^ *+' conftest.er1 >conftest.err | |
10331 | rm -f conftest.er1 | |
10332 | cat conftest.err >&5 | |
10333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10334 | (exit $ac_status); } && { | |
10335 | test -z "$ac_c_werror_flag" || | |
10336 | test ! -s conftest.err | |
10337 | } && test -s conftest.$ac_objext; then | |
10338 | ac_header_compiler=yes | |
10339 | else | |
10340 | $as_echo "$as_me: failed program was:" >&5 | |
10341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10342 | ||
10343 | ac_header_compiler=no | |
10344 | fi | |
10345 | ||
10346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10347 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10348 | $as_echo "$ac_header_compiler" >&6; } | |
10349 | ||
10350 | # Is the header present? | |
10351 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10352 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10353 | cat >conftest.$ac_ext <<_ACEOF | |
10354 | /* confdefs.h. */ | |
10355 | _ACEOF | |
10356 | cat confdefs.h >>conftest.$ac_ext | |
10357 | cat >>conftest.$ac_ext <<_ACEOF | |
10358 | /* end confdefs.h. */ | |
10359 | #include <$ac_header> | |
10360 | _ACEOF | |
10361 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10362 | case "(($ac_try" in | |
10363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10364 | *) ac_try_echo=$ac_try;; | |
10365 | esac | |
10366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10367 | $as_echo "$ac_try_echo") >&5 | |
10368 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10369 | ac_status=$? | |
10370 | grep -v '^ *+' conftest.er1 >conftest.err | |
10371 | rm -f conftest.er1 | |
10372 | cat conftest.err >&5 | |
10373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10374 | (exit $ac_status); } >/dev/null && { | |
10375 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10376 | test ! -s conftest.err | |
10377 | }; then | |
10378 | ac_header_preproc=yes | |
10379 | else | |
10380 | $as_echo "$as_me: failed program was:" >&5 | |
10381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10382 | ||
10383 | ac_header_preproc=no | |
10384 | fi | |
10385 | ||
10386 | rm -f conftest.err conftest.$ac_ext | |
10387 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10388 | $as_echo "$ac_header_preproc" >&6; } | |
10389 | ||
10390 | # So? What about this header? | |
10391 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10392 | yes:no: ) | |
10393 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10394 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10395 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10396 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10397 | ac_header_preproc=yes | |
10398 | ;; | |
10399 | no:yes:* ) | |
10400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10401 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10403 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10405 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10407 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10408 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10409 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10410 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10411 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10412 | ||
10413 | ;; | |
10414 | esac | |
10415 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10416 | $as_echo_n "checking for $ac_header... " >&6; } | |
10417 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10418 | $as_echo_n "(cached) " >&6 | |
10419 | else | |
10420 | eval "$as_ac_Header=\$ac_header_preproc" | |
10421 | fi | |
10422 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10423 | $as_echo "$as_val"'` | |
10424 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10425 | $as_echo "$ac_res" >&6; } | |
10426 | ||
10427 | fi | |
10428 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10429 | $as_echo "$as_val"'` | |
10430 | if test "x$as_val" = x""yes; then | |
10431 | cat >>confdefs.h <<_ACEOF | |
10432 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10433 | _ACEOF | |
10434 | ||
10435 | else | |
10436 | $bailout | |
10437 | fi | |
10438 | ||
10439 | done | |
10440 | ||
10441 | check_lib_no_libs gulm lg_core_login | |
10442 | if test $NOTFOUND = 0; then | |
10443 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10444 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10445 | GULM_LIBS="-lgulm" | |
10446 | HAVE_GULM=yes | |
10447 | fi | |
10448 | else | |
10449 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10450 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10451 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10452 | $as_echo "yes" >&6; } | |
10453 | HAVE_GULM=yes | |
10454 | fi | |
10455 | fi | |
10456 | ||
10457 | if test x$BUILDCMAN = xyes; then | |
10458 | ||
10459 | pkg_failed=no | |
10460 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10461 | $as_echo_n "checking for CMAN... " >&6; } | |
10462 | ||
10463 | if test -n "$CMAN_CFLAGS"; then | |
10464 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10465 | elif test -n "$PKG_CONFIG"; then | |
10466 | if test -n "$PKG_CONFIG" && \ | |
10467 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10468 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10469 | ac_status=$? | |
10470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10471 | (exit $ac_status); }; then | |
10472 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10473 | else | |
10474 | pkg_failed=yes | |
10475 | fi | |
10476 | else | |
10477 | pkg_failed=untried | |
10478 | fi | |
10479 | if test -n "$CMAN_LIBS"; then | |
10480 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10481 | elif test -n "$PKG_CONFIG"; then | |
10482 | if test -n "$PKG_CONFIG" && \ | |
10483 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10484 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10485 | ac_status=$? | |
10486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10487 | (exit $ac_status); }; then | |
10488 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10489 | else | |
10490 | pkg_failed=yes | |
10491 | fi | |
10492 | else | |
10493 | pkg_failed=untried | |
10494 | fi | |
10495 | ||
10496 | ||
10497 | ||
10498 | if test $pkg_failed = yes; then | |
10499 | ||
10500 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10501 | _pkg_short_errors_supported=yes | |
10502 | else | |
10503 | _pkg_short_errors_supported=no | |
10504 | fi | |
10505 | if test $_pkg_short_errors_supported = yes; then | |
10506 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10507 | else | |
10508 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10509 | fi | |
10510 | # Put the nasty error message in config.log where it belongs | |
10511 | echo "$CMAN_PKG_ERRORS" >&5 | |
10512 | ||
10513 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10514 | $as_echo "no" >&6; } | |
10515 | NOTFOUND=0 | |
10516 | ||
10517 | for ac_header in libcman.h | |
10518 | do | |
10519 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10521 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10522 | $as_echo_n "checking for $ac_header... " >&6; } | |
10523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10524 | $as_echo_n "(cached) " >&6 | |
10525 | fi | |
10526 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10527 | $as_echo "$as_val"'` | |
10528 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10529 | $as_echo "$ac_res" >&6; } | |
10530 | else | |
10531 | # Is the header compilable? | |
10532 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10533 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10534 | cat >conftest.$ac_ext <<_ACEOF | |
10535 | /* confdefs.h. */ | |
10536 | _ACEOF | |
10537 | cat confdefs.h >>conftest.$ac_ext | |
10538 | cat >>conftest.$ac_ext <<_ACEOF | |
10539 | /* end confdefs.h. */ | |
10540 | $ac_includes_default | |
10541 | #include <$ac_header> | |
10542 | _ACEOF | |
10543 | rm -f conftest.$ac_objext | |
10544 | if { (ac_try="$ac_compile" | |
10545 | case "(($ac_try" in | |
10546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10547 | *) ac_try_echo=$ac_try;; | |
10548 | esac | |
10549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10550 | $as_echo "$ac_try_echo") >&5 | |
10551 | (eval "$ac_compile") 2>conftest.er1 | |
10552 | ac_status=$? | |
10553 | grep -v '^ *+' conftest.er1 >conftest.err | |
10554 | rm -f conftest.er1 | |
10555 | cat conftest.err >&5 | |
10556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10557 | (exit $ac_status); } && { | |
10558 | test -z "$ac_c_werror_flag" || | |
10559 | test ! -s conftest.err | |
10560 | } && test -s conftest.$ac_objext; then | |
10561 | ac_header_compiler=yes | |
10562 | else | |
10563 | $as_echo "$as_me: failed program was:" >&5 | |
10564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10565 | ||
10566 | ac_header_compiler=no | |
10567 | fi | |
10568 | ||
10569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10570 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10571 | $as_echo "$ac_header_compiler" >&6; } | |
10572 | ||
10573 | # Is the header present? | |
10574 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10575 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10576 | cat >conftest.$ac_ext <<_ACEOF | |
10577 | /* confdefs.h. */ | |
10578 | _ACEOF | |
10579 | cat confdefs.h >>conftest.$ac_ext | |
10580 | cat >>conftest.$ac_ext <<_ACEOF | |
10581 | /* end confdefs.h. */ | |
10582 | #include <$ac_header> | |
10583 | _ACEOF | |
10584 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10585 | case "(($ac_try" in | |
10586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10587 | *) ac_try_echo=$ac_try;; | |
10588 | esac | |
10589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10590 | $as_echo "$ac_try_echo") >&5 | |
10591 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10592 | ac_status=$? | |
10593 | grep -v '^ *+' conftest.er1 >conftest.err | |
10594 | rm -f conftest.er1 | |
10595 | cat conftest.err >&5 | |
10596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10597 | (exit $ac_status); } >/dev/null && { | |
10598 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10599 | test ! -s conftest.err | |
10600 | }; then | |
10601 | ac_header_preproc=yes | |
10602 | else | |
10603 | $as_echo "$as_me: failed program was:" >&5 | |
10604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10605 | ||
10606 | ac_header_preproc=no | |
10607 | fi | |
10608 | ||
10609 | rm -f conftest.err conftest.$ac_ext | |
10610 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10611 | $as_echo "$ac_header_preproc" >&6; } | |
10612 | ||
10613 | # So? What about this header? | |
10614 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10615 | yes:no: ) | |
10616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10617 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10619 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10620 | ac_header_preproc=yes | |
10621 | ;; | |
10622 | no:yes:* ) | |
10623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10624 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10626 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10628 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10630 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10632 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10634 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10635 | ||
10636 | ;; | |
10637 | esac | |
10638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10639 | $as_echo_n "checking for $ac_header... " >&6; } | |
10640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10641 | $as_echo_n "(cached) " >&6 | |
10642 | else | |
10643 | eval "$as_ac_Header=\$ac_header_preproc" | |
10644 | fi | |
10645 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10646 | $as_echo "$as_val"'` | |
10647 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10648 | $as_echo "$ac_res" >&6; } | |
10649 | ||
10650 | fi | |
10651 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10652 | $as_echo "$as_val"'` | |
10653 | if test "x$as_val" = x""yes; then | |
10654 | cat >>confdefs.h <<_ACEOF | |
10655 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10656 | _ACEOF | |
10657 | ||
10658 | else | |
10659 | $bailout | |
10660 | fi | |
10661 | ||
10662 | done | |
10663 | ||
10664 | check_lib_no_libs cman cman_init | |
10665 | if test $NOTFOUND = 0; then | |
10666 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10667 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10668 | CMAN_LIBS="-lcman" | |
10669 | HAVE_CMAN=yes | |
10670 | fi | |
10671 | elif test $pkg_failed = untried; then | |
10672 | NOTFOUND=0 | |
10673 | ||
10674 | for ac_header in libcman.h | |
10675 | do | |
10676 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10678 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10679 | $as_echo_n "checking for $ac_header... " >&6; } | |
10680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10681 | $as_echo_n "(cached) " >&6 | |
10682 | fi | |
10683 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10684 | $as_echo "$as_val"'` | |
10685 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10686 | $as_echo "$ac_res" >&6; } | |
10687 | else | |
10688 | # Is the header compilable? | |
10689 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10690 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10691 | cat >conftest.$ac_ext <<_ACEOF | |
10692 | /* confdefs.h. */ | |
10693 | _ACEOF | |
10694 | cat confdefs.h >>conftest.$ac_ext | |
10695 | cat >>conftest.$ac_ext <<_ACEOF | |
10696 | /* end confdefs.h. */ | |
10697 | $ac_includes_default | |
10698 | #include <$ac_header> | |
10699 | _ACEOF | |
10700 | rm -f conftest.$ac_objext | |
10701 | if { (ac_try="$ac_compile" | |
10702 | case "(($ac_try" in | |
10703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10704 | *) ac_try_echo=$ac_try;; | |
10705 | esac | |
10706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10707 | $as_echo "$ac_try_echo") >&5 | |
10708 | (eval "$ac_compile") 2>conftest.er1 | |
10709 | ac_status=$? | |
10710 | grep -v '^ *+' conftest.er1 >conftest.err | |
10711 | rm -f conftest.er1 | |
10712 | cat conftest.err >&5 | |
10713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10714 | (exit $ac_status); } && { | |
10715 | test -z "$ac_c_werror_flag" || | |
10716 | test ! -s conftest.err | |
10717 | } && test -s conftest.$ac_objext; then | |
10718 | ac_header_compiler=yes | |
10719 | else | |
10720 | $as_echo "$as_me: failed program was:" >&5 | |
10721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10722 | ||
10723 | ac_header_compiler=no | |
10724 | fi | |
10725 | ||
10726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10727 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10728 | $as_echo "$ac_header_compiler" >&6; } | |
10729 | ||
10730 | # Is the header present? | |
10731 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10732 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10733 | cat >conftest.$ac_ext <<_ACEOF | |
10734 | /* confdefs.h. */ | |
10735 | _ACEOF | |
10736 | cat confdefs.h >>conftest.$ac_ext | |
10737 | cat >>conftest.$ac_ext <<_ACEOF | |
10738 | /* end confdefs.h. */ | |
10739 | #include <$ac_header> | |
10740 | _ACEOF | |
10741 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10742 | case "(($ac_try" in | |
10743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10744 | *) ac_try_echo=$ac_try;; | |
10745 | esac | |
10746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10747 | $as_echo "$ac_try_echo") >&5 | |
10748 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10749 | ac_status=$? | |
10750 | grep -v '^ *+' conftest.er1 >conftest.err | |
10751 | rm -f conftest.er1 | |
10752 | cat conftest.err >&5 | |
10753 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10754 | (exit $ac_status); } >/dev/null && { | |
10755 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10756 | test ! -s conftest.err | |
10757 | }; then | |
10758 | ac_header_preproc=yes | |
10759 | else | |
10760 | $as_echo "$as_me: failed program was:" >&5 | |
10761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10762 | ||
10763 | ac_header_preproc=no | |
10764 | fi | |
10765 | ||
10766 | rm -f conftest.err conftest.$ac_ext | |
10767 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10768 | $as_echo "$ac_header_preproc" >&6; } | |
10769 | ||
10770 | # So? What about this header? | |
10771 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10772 | yes:no: ) | |
10773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10774 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10775 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10776 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10777 | ac_header_preproc=yes | |
10778 | ;; | |
10779 | no:yes:* ) | |
10780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10781 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10782 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10783 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10784 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10785 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10786 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10787 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10788 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10789 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10790 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10791 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10792 | ||
10793 | ;; | |
10794 | esac | |
10795 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10796 | $as_echo_n "checking for $ac_header... " >&6; } | |
10797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10798 | $as_echo_n "(cached) " >&6 | |
10799 | else | |
10800 | eval "$as_ac_Header=\$ac_header_preproc" | |
10801 | fi | |
10802 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10803 | $as_echo "$as_val"'` | |
10804 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10805 | $as_echo "$ac_res" >&6; } | |
10806 | ||
10807 | fi | |
10808 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10809 | $as_echo "$as_val"'` | |
10810 | if test "x$as_val" = x""yes; then | |
10811 | cat >>confdefs.h <<_ACEOF | |
10812 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10813 | _ACEOF | |
10814 | ||
10815 | else | |
10816 | $bailout | |
10817 | fi | |
10818 | ||
10819 | done | |
10820 | ||
10821 | check_lib_no_libs cman cman_init | |
10822 | if test $NOTFOUND = 0; then | |
10823 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10824 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10825 | CMAN_LIBS="-lcman" | |
10826 | HAVE_CMAN=yes | |
10827 | fi | |
10828 | else | |
10829 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10830 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10831 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10832 | $as_echo "yes" >&6; } | |
10833 | HAVE_CMAN=yes | |
10834 | fi | |
10835 | CHECKCONFDB=yes | |
10836 | CHECKDLM=yes | |
10837 | fi | |
10838 | ||
10839 | if test x$BUILDCOROSYNC = xyes || \ | |
10840 | test x$BUILDOPENAIS = xyes; then | |
10841 | ||
10842 | pkg_failed=no | |
10843 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10844 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10845 | ||
10846 | if test -n "$COROSYNC_CFLAGS"; then | |
10847 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10848 | elif test -n "$PKG_CONFIG"; then | |
10849 | if test -n "$PKG_CONFIG" && \ | |
10850 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10851 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10852 | ac_status=$? | |
10853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10854 | (exit $ac_status); }; then | |
10855 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10856 | else | |
10857 | pkg_failed=yes | |
10858 | fi | |
10859 | else | |
10860 | pkg_failed=untried | |
10861 | fi | |
10862 | if test -n "$COROSYNC_LIBS"; then | |
10863 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10864 | elif test -n "$PKG_CONFIG"; then | |
10865 | if test -n "$PKG_CONFIG" && \ | |
10866 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10867 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10868 | ac_status=$? | |
10869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10870 | (exit $ac_status); }; then | |
10871 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10872 | else | |
10873 | pkg_failed=yes | |
10874 | fi | |
10875 | else | |
10876 | pkg_failed=untried | |
10877 | fi | |
10878 | ||
10879 | ||
10880 | ||
10881 | if test $pkg_failed = yes; then | |
10882 | ||
10883 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10884 | _pkg_short_errors_supported=yes | |
10885 | else | |
10886 | _pkg_short_errors_supported=no | |
10887 | fi | |
10888 | if test $_pkg_short_errors_supported = yes; then | |
10889 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10890 | else | |
10891 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10892 | fi | |
10893 | # Put the nasty error message in config.log where it belongs | |
10894 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10895 | ||
10896 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10897 | $as_echo "no" >&6; } | |
10898 | $bailout | |
10899 | elif test $pkg_failed = untried; then | |
10900 | $bailout | |
10901 | else | |
10902 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10903 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10904 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10905 | $as_echo "yes" >&6; } | |
10906 | HAVE_COROSYNC=yes | |
10907 | fi | |
10908 | CHECKCONFDB=yes | |
10909 | fi | |
10910 | ||
10911 | if test x$BUILDCOROSYNC = xyes; then | |
10912 | ||
10913 | pkg_failed=no | |
10914 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10915 | $as_echo_n "checking for QUORUM... " >&6; } | |
10916 | ||
10917 | if test -n "$QUORUM_CFLAGS"; then | |
10918 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10919 | elif test -n "$PKG_CONFIG"; then | |
10920 | if test -n "$PKG_CONFIG" && \ | |
10921 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10922 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10923 | ac_status=$? | |
10924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10925 | (exit $ac_status); }; then | |
10926 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10927 | else | |
10928 | pkg_failed=yes | |
10929 | fi | |
10930 | else | |
10931 | pkg_failed=untried | |
10932 | fi | |
10933 | if test -n "$QUORUM_LIBS"; then | |
10934 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
10935 | elif test -n "$PKG_CONFIG"; then | |
10936 | if test -n "$PKG_CONFIG" && \ | |
10937 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10938 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10939 | ac_status=$? | |
10940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10941 | (exit $ac_status); }; then | |
10942 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
10943 | else | |
10944 | pkg_failed=yes | |
10945 | fi | |
10946 | else | |
10947 | pkg_failed=untried | |
10948 | fi | |
10949 | ||
10950 | ||
10951 | ||
10952 | if test $pkg_failed = yes; then | |
10953 | ||
10954 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10955 | _pkg_short_errors_supported=yes | |
10956 | else | |
10957 | _pkg_short_errors_supported=no | |
10958 | fi | |
10959 | if test $_pkg_short_errors_supported = yes; then | |
10960 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
10961 | else | |
10962 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
10963 | fi | |
10964 | # Put the nasty error message in config.log where it belongs | |
10965 | echo "$QUORUM_PKG_ERRORS" >&5 | |
10966 | ||
10967 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10968 | $as_echo "no" >&6; } | |
10969 | $bailout | |
10970 | elif test $pkg_failed = untried; then | |
10971 | $bailout | |
10972 | else | |
10973 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
10974 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
10975 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10976 | $as_echo "yes" >&6; } | |
10977 | HAVE_QUORUM=yes | |
10978 | fi | |
10979 | CHECKCPG=yes | |
10980 | CHECKDLM=yes | |
10981 | fi | |
10982 | ||
10983 | if test x$BUILDOPENAIS = xyes; then | |
10984 | ||
10985 | pkg_failed=no | |
10986 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
10987 | $as_echo_n "checking for SALCK... " >&6; } | |
10988 | ||
10989 | if test -n "$SALCK_CFLAGS"; then | |
10990 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
10991 | elif test -n "$PKG_CONFIG"; then | |
10992 | if test -n "$PKG_CONFIG" && \ | |
10993 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10994 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10995 | ac_status=$? | |
10996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10997 | (exit $ac_status); }; then | |
10998 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
10999 | else | |
11000 | pkg_failed=yes | |
11001 | fi | |
11002 | else | |
11003 | pkg_failed=untried | |
11004 | fi | |
11005 | if test -n "$SALCK_LIBS"; then | |
11006 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
11007 | elif test -n "$PKG_CONFIG"; then | |
11008 | if test -n "$PKG_CONFIG" && \ | |
11009 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
11010 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11011 | ac_status=$? | |
11012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11013 | (exit $ac_status); }; then | |
11014 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
11015 | else | |
11016 | pkg_failed=yes | |
11017 | fi | |
11018 | else | |
11019 | pkg_failed=untried | |
11020 | fi | |
11021 | ||
11022 | ||
11023 | ||
11024 | if test $pkg_failed = yes; then | |
11025 | ||
11026 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11027 | _pkg_short_errors_supported=yes | |
11028 | else | |
11029 | _pkg_short_errors_supported=no | |
11030 | fi | |
11031 | if test $_pkg_short_errors_supported = yes; then | |
11032 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
11033 | else | |
11034 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
11035 | fi | |
11036 | # Put the nasty error message in config.log where it belongs | |
11037 | echo "$SALCK_PKG_ERRORS" >&5 | |
11038 | ||
11039 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11040 | $as_echo "no" >&6; } | |
11041 | $bailout | |
11042 | elif test $pkg_failed = untried; then | |
11043 | $bailout | |
11044 | else | |
11045 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
11046 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
11047 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11048 | $as_echo "yes" >&6; } | |
11049 | HAVE_SALCK=yes | |
11050 | fi | |
11051 | CHECKCPG=yes | |
11052 | fi | |
11053 | ||
11054 | ||
11055 | ||
11056 | if test x$CHECKCONFDB = xyes; then | |
11057 | ||
11058 | pkg_failed=no | |
11059 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
11060 | $as_echo_n "checking for CONFDB... " >&6; } | |
11061 | ||
11062 | if test -n "$CONFDB_CFLAGS"; then | |
11063 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
11064 | elif test -n "$PKG_CONFIG"; then | |
11065 | if test -n "$PKG_CONFIG" && \ | |
11066 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11067 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11068 | ac_status=$? | |
11069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11070 | (exit $ac_status); }; then | |
11071 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
11072 | else | |
11073 | pkg_failed=yes | |
11074 | fi | |
11075 | else | |
11076 | pkg_failed=untried | |
11077 | fi | |
11078 | if test -n "$CONFDB_LIBS"; then | |
11079 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
11080 | elif test -n "$PKG_CONFIG"; then | |
11081 | if test -n "$PKG_CONFIG" && \ | |
11082 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11083 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11084 | ac_status=$? | |
11085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11086 | (exit $ac_status); }; then | |
11087 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
11088 | else | |
11089 | pkg_failed=yes | |
11090 | fi | |
11091 | else | |
11092 | pkg_failed=untried | |
11093 | fi | |
11094 | ||
11095 | ||
11096 | ||
11097 | if test $pkg_failed = yes; then | |
11098 | ||
11099 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11100 | _pkg_short_errors_supported=yes | |
11101 | else | |
11102 | _pkg_short_errors_supported=no | |
11103 | fi | |
11104 | if test $_pkg_short_errors_supported = yes; then | |
11105 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
11106 | else | |
11107 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
11108 | fi | |
11109 | # Put the nasty error message in config.log where it belongs | |
11110 | echo "$CONFDB_PKG_ERRORS" >&5 | |
11111 | ||
11112 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11113 | $as_echo "no" >&6; } | |
11114 | HAVE_CONFDB=no | |
11115 | elif test $pkg_failed = untried; then | |
11116 | HAVE_CONFDB=no | |
11117 | else | |
11118 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11119 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11120 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11121 | $as_echo "yes" >&6; } | |
11122 | HAVE_CONFDB=yes | |
11123 | fi | |
11124 | ||
11125 | ||
11126 | for ac_header in corosync/confdb.h | |
11127 | do | |
11128 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11130 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11131 | $as_echo_n "checking for $ac_header... " >&6; } | |
11132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11133 | $as_echo_n "(cached) " >&6 | |
11134 | fi | |
11135 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11136 | $as_echo "$as_val"'` | |
11137 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11138 | $as_echo "$ac_res" >&6; } | |
11139 | else | |
11140 | # Is the header compilable? | |
11141 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11142 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11143 | cat >conftest.$ac_ext <<_ACEOF | |
11144 | /* confdefs.h. */ | |
11145 | _ACEOF | |
11146 | cat confdefs.h >>conftest.$ac_ext | |
11147 | cat >>conftest.$ac_ext <<_ACEOF | |
11148 | /* end confdefs.h. */ | |
11149 | $ac_includes_default | |
11150 | #include <$ac_header> | |
11151 | _ACEOF | |
11152 | rm -f conftest.$ac_objext | |
11153 | if { (ac_try="$ac_compile" | |
11154 | case "(($ac_try" in | |
11155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11156 | *) ac_try_echo=$ac_try;; | |
11157 | esac | |
11158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11159 | $as_echo "$ac_try_echo") >&5 | |
11160 | (eval "$ac_compile") 2>conftest.er1 | |
11161 | ac_status=$? | |
11162 | grep -v '^ *+' conftest.er1 >conftest.err | |
11163 | rm -f conftest.er1 | |
11164 | cat conftest.err >&5 | |
11165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11166 | (exit $ac_status); } && { | |
11167 | test -z "$ac_c_werror_flag" || | |
11168 | test ! -s conftest.err | |
11169 | } && test -s conftest.$ac_objext; then | |
11170 | ac_header_compiler=yes | |
11171 | else | |
11172 | $as_echo "$as_me: failed program was:" >&5 | |
11173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11174 | ||
11175 | ac_header_compiler=no | |
11176 | fi | |
11177 | ||
11178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11179 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11180 | $as_echo "$ac_header_compiler" >&6; } | |
11181 | ||
11182 | # Is the header present? | |
11183 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11184 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11185 | cat >conftest.$ac_ext <<_ACEOF | |
11186 | /* confdefs.h. */ | |
11187 | _ACEOF | |
11188 | cat confdefs.h >>conftest.$ac_ext | |
11189 | cat >>conftest.$ac_ext <<_ACEOF | |
11190 | /* end confdefs.h. */ | |
11191 | #include <$ac_header> | |
11192 | _ACEOF | |
11193 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11194 | case "(($ac_try" in | |
11195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11196 | *) ac_try_echo=$ac_try;; | |
11197 | esac | |
11198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11199 | $as_echo "$ac_try_echo") >&5 | |
11200 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11201 | ac_status=$? | |
11202 | grep -v '^ *+' conftest.er1 >conftest.err | |
11203 | rm -f conftest.er1 | |
11204 | cat conftest.err >&5 | |
11205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11206 | (exit $ac_status); } >/dev/null && { | |
11207 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11208 | test ! -s conftest.err | |
11209 | }; then | |
11210 | ac_header_preproc=yes | |
11211 | else | |
11212 | $as_echo "$as_me: failed program was:" >&5 | |
11213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11214 | ||
11215 | ac_header_preproc=no | |
11216 | fi | |
11217 | ||
11218 | rm -f conftest.err conftest.$ac_ext | |
11219 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11220 | $as_echo "$ac_header_preproc" >&6; } | |
11221 | ||
11222 | # So? What about this header? | |
11223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11224 | yes:no: ) | |
11225 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11226 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11227 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11228 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11229 | ac_header_preproc=yes | |
11230 | ;; | |
11231 | no:yes:* ) | |
11232 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11233 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11234 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11235 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11236 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11237 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11239 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11241 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11243 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11244 | ||
11245 | ;; | |
11246 | esac | |
11247 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11248 | $as_echo_n "checking for $ac_header... " >&6; } | |
11249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11250 | $as_echo_n "(cached) " >&6 | |
11251 | else | |
11252 | eval "$as_ac_Header=\$ac_header_preproc" | |
11253 | fi | |
11254 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11255 | $as_echo "$as_val"'` | |
11256 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11257 | $as_echo "$ac_res" >&6; } | |
11258 | ||
11259 | fi | |
11260 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11261 | $as_echo "$as_val"'` | |
11262 | if test "x$as_val" = x""yes; then | |
11263 | cat >>confdefs.h <<_ACEOF | |
11264 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11265 | _ACEOF | |
11266 | HAVE_CONFDB_H=yes | |
11267 | else | |
11268 | HAVE_CONFDB_H=no | |
11269 | fi | |
11270 | ||
11271 | done | |
11272 | ||
11273 | ||
11274 | if test x$HAVE_CONFDB != xyes && \ | |
11275 | test x$HAVE_CONFDB_H = xyes; then | |
11276 | check_lib_no_libs confdb confdb_initialize | |
11277 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11278 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11279 | CONFDB_LIBS="-lconfdb" | |
11280 | HAVE_CONFDB=yes | |
11281 | fi | |
11282 | ||
11283 | if test x$BUILDCOROSYNC = xyes && \ | |
11284 | test x$HAVE_CONFDB != xyes && | |
11285 | test x$CLVMD != xall; then | |
11286 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11287 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11288 | { (exit 1); exit 1; }; } | |
11289 | fi | |
11290 | fi | |
11291 | ||
11292 | if test x$CHECKCPG = xyes; then | |
11293 | ||
11294 | pkg_failed=no | |
11295 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11296 | $as_echo_n "checking for CPG... " >&6; } | |
11297 | ||
11298 | if test -n "$CPG_CFLAGS"; then | |
11299 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11300 | elif test -n "$PKG_CONFIG"; then | |
11301 | if test -n "$PKG_CONFIG" && \ | |
11302 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11303 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11304 | ac_status=$? | |
11305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11306 | (exit $ac_status); }; then | |
11307 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11308 | else | |
11309 | pkg_failed=yes | |
11310 | fi | |
11311 | else | |
11312 | pkg_failed=untried | |
11313 | fi | |
11314 | if test -n "$CPG_LIBS"; then | |
11315 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11316 | elif test -n "$PKG_CONFIG"; then | |
11317 | if test -n "$PKG_CONFIG" && \ | |
11318 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11319 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11320 | ac_status=$? | |
11321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11322 | (exit $ac_status); }; then | |
11323 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11324 | else | |
11325 | pkg_failed=yes | |
11326 | fi | |
11327 | else | |
11328 | pkg_failed=untried | |
11329 | fi | |
11330 | ||
11331 | ||
11332 | ||
11333 | if test $pkg_failed = yes; then | |
11334 | ||
11335 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11336 | _pkg_short_errors_supported=yes | |
11337 | else | |
11338 | _pkg_short_errors_supported=no | |
11339 | fi | |
11340 | if test $_pkg_short_errors_supported = yes; then | |
11341 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11342 | else | |
11343 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11344 | fi | |
11345 | # Put the nasty error message in config.log where it belongs | |
11346 | echo "$CPG_PKG_ERRORS" >&5 | |
11347 | ||
11348 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11349 | $as_echo "no" >&6; } | |
11350 | $bailout | |
11351 | elif test $pkg_failed = untried; then | |
11352 | $bailout | |
11353 | else | |
11354 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11355 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11356 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11357 | $as_echo "yes" >&6; } | |
11358 | HAVE_CPG=yes | |
11359 | fi | |
11360 | fi | |
11361 | ||
11362 | if test x$CHECKDLM = xyes; then | |
11363 | ||
11364 | pkg_failed=no | |
11365 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11366 | $as_echo_n "checking for DLM... " >&6; } | |
11367 | ||
11368 | if test -n "$DLM_CFLAGS"; then | |
11369 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11370 | elif test -n "$PKG_CONFIG"; then | |
11371 | if test -n "$PKG_CONFIG" && \ | |
11372 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11373 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11374 | ac_status=$? | |
11375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11376 | (exit $ac_status); }; then | |
11377 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11378 | else | |
11379 | pkg_failed=yes | |
11380 | fi | |
11381 | else | |
11382 | pkg_failed=untried | |
11383 | fi | |
11384 | if test -n "$DLM_LIBS"; then | |
11385 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11386 | elif test -n "$PKG_CONFIG"; then | |
11387 | if test -n "$PKG_CONFIG" && \ | |
11388 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11389 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11390 | ac_status=$? | |
11391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11392 | (exit $ac_status); }; then | |
11393 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11394 | else | |
11395 | pkg_failed=yes | |
11396 | fi | |
11397 | else | |
11398 | pkg_failed=untried | |
11399 | fi | |
11400 | ||
11401 | ||
11402 | ||
11403 | if test $pkg_failed = yes; then | |
11404 | ||
11405 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11406 | _pkg_short_errors_supported=yes | |
11407 | else | |
11408 | _pkg_short_errors_supported=no | |
11409 | fi | |
11410 | if test $_pkg_short_errors_supported = yes; then | |
11411 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11412 | else | |
11413 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11414 | fi | |
11415 | # Put the nasty error message in config.log where it belongs | |
11416 | echo "$DLM_PKG_ERRORS" >&5 | |
11417 | ||
11418 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11419 | $as_echo "no" >&6; } | |
11420 | NOTFOUND=0 | |
11421 | ||
11422 | for ac_header in libdlm.h | |
11423 | do | |
11424 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11425 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11426 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11427 | $as_echo_n "checking for $ac_header... " >&6; } | |
11428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11429 | $as_echo_n "(cached) " >&6 | |
11430 | fi | |
11431 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11432 | $as_echo "$as_val"'` | |
11433 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11434 | $as_echo "$ac_res" >&6; } | |
11435 | else | |
11436 | # Is the header compilable? | |
11437 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11438 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11439 | cat >conftest.$ac_ext <<_ACEOF | |
11440 | /* confdefs.h. */ | |
11441 | _ACEOF | |
11442 | cat confdefs.h >>conftest.$ac_ext | |
11443 | cat >>conftest.$ac_ext <<_ACEOF | |
11444 | /* end confdefs.h. */ | |
11445 | $ac_includes_default | |
11446 | #include <$ac_header> | |
11447 | _ACEOF | |
11448 | rm -f conftest.$ac_objext | |
11449 | if { (ac_try="$ac_compile" | |
11450 | case "(($ac_try" in | |
11451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11452 | *) ac_try_echo=$ac_try;; | |
11453 | esac | |
11454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11455 | $as_echo "$ac_try_echo") >&5 | |
11456 | (eval "$ac_compile") 2>conftest.er1 | |
11457 | ac_status=$? | |
11458 | grep -v '^ *+' conftest.er1 >conftest.err | |
11459 | rm -f conftest.er1 | |
11460 | cat conftest.err >&5 | |
11461 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11462 | (exit $ac_status); } && { | |
11463 | test -z "$ac_c_werror_flag" || | |
11464 | test ! -s conftest.err | |
11465 | } && test -s conftest.$ac_objext; then | |
11466 | ac_header_compiler=yes | |
11467 | else | |
11468 | $as_echo "$as_me: failed program was:" >&5 | |
11469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11470 | ||
11471 | ac_header_compiler=no | |
11472 | fi | |
11473 | ||
11474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11475 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11476 | $as_echo "$ac_header_compiler" >&6; } | |
11477 | ||
11478 | # Is the header present? | |
11479 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11480 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11481 | cat >conftest.$ac_ext <<_ACEOF | |
11482 | /* confdefs.h. */ | |
11483 | _ACEOF | |
11484 | cat confdefs.h >>conftest.$ac_ext | |
11485 | cat >>conftest.$ac_ext <<_ACEOF | |
11486 | /* end confdefs.h. */ | |
11487 | #include <$ac_header> | |
11488 | _ACEOF | |
11489 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11490 | case "(($ac_try" in | |
11491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11492 | *) ac_try_echo=$ac_try;; | |
11493 | esac | |
11494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11495 | $as_echo "$ac_try_echo") >&5 | |
11496 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11497 | ac_status=$? | |
11498 | grep -v '^ *+' conftest.er1 >conftest.err | |
11499 | rm -f conftest.er1 | |
11500 | cat conftest.err >&5 | |
11501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 | (exit $ac_status); } >/dev/null && { | |
11503 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11504 | test ! -s conftest.err | |
11505 | }; then | |
11506 | ac_header_preproc=yes | |
11507 | else | |
11508 | $as_echo "$as_me: failed program was:" >&5 | |
11509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11510 | ||
11511 | ac_header_preproc=no | |
11512 | fi | |
11513 | ||
11514 | rm -f conftest.err conftest.$ac_ext | |
11515 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11516 | $as_echo "$ac_header_preproc" >&6; } | |
11517 | ||
11518 | # So? What about this header? | |
11519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11520 | yes:no: ) | |
11521 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11522 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11523 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11524 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11525 | ac_header_preproc=yes | |
11526 | ;; | |
11527 | no:yes:* ) | |
11528 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11529 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11530 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11531 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11532 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11533 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11534 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11535 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11536 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11537 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11539 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11540 | ||
11541 | ;; | |
11542 | esac | |
11543 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11544 | $as_echo_n "checking for $ac_header... " >&6; } | |
11545 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11546 | $as_echo_n "(cached) " >&6 | |
11547 | else | |
11548 | eval "$as_ac_Header=\$ac_header_preproc" | |
11549 | fi | |
11550 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11551 | $as_echo "$as_val"'` | |
11552 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11553 | $as_echo "$ac_res" >&6; } | |
11554 | ||
11555 | fi | |
11556 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11557 | $as_echo "$as_val"'` | |
11558 | if test "x$as_val" = x""yes; then | |
11559 | cat >>confdefs.h <<_ACEOF | |
11560 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11561 | _ACEOF | |
11562 | ||
11563 | else | |
11564 | $bailout | |
11565 | fi | |
11566 | ||
11567 | done | |
11568 | ||
11569 | check_lib_no_libs dlm dlm_lock -lpthread | |
11570 | if test $NOTFOUND = 0; then | |
11571 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11572 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11573 | DLM_LIBS="-ldlm -lpthread" | |
11574 | HAVE_DLM=yes | |
11575 | fi | |
11576 | elif test $pkg_failed = untried; then | |
11577 | NOTFOUND=0 | |
11578 | ||
11579 | for ac_header in libdlm.h | |
11580 | do | |
11581 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11582 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11583 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11584 | $as_echo_n "checking for $ac_header... " >&6; } | |
11585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11586 | $as_echo_n "(cached) " >&6 | |
11587 | fi | |
11588 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11589 | $as_echo "$as_val"'` | |
11590 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11591 | $as_echo "$ac_res" >&6; } | |
11592 | else | |
11593 | # Is the header compilable? | |
11594 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11595 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11596 | cat >conftest.$ac_ext <<_ACEOF | |
11597 | /* confdefs.h. */ | |
11598 | _ACEOF | |
11599 | cat confdefs.h >>conftest.$ac_ext | |
11600 | cat >>conftest.$ac_ext <<_ACEOF | |
11601 | /* end confdefs.h. */ | |
11602 | $ac_includes_default | |
11603 | #include <$ac_header> | |
11604 | _ACEOF | |
11605 | rm -f conftest.$ac_objext | |
11606 | if { (ac_try="$ac_compile" | |
11607 | case "(($ac_try" in | |
11608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11609 | *) ac_try_echo=$ac_try;; | |
11610 | esac | |
11611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11612 | $as_echo "$ac_try_echo") >&5 | |
11613 | (eval "$ac_compile") 2>conftest.er1 | |
11614 | ac_status=$? | |
11615 | grep -v '^ *+' conftest.er1 >conftest.err | |
11616 | rm -f conftest.er1 | |
11617 | cat conftest.err >&5 | |
11618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11619 | (exit $ac_status); } && { | |
11620 | test -z "$ac_c_werror_flag" || | |
11621 | test ! -s conftest.err | |
11622 | } && test -s conftest.$ac_objext; then | |
11623 | ac_header_compiler=yes | |
11624 | else | |
11625 | $as_echo "$as_me: failed program was:" >&5 | |
11626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11627 | ||
11628 | ac_header_compiler=no | |
11629 | fi | |
11630 | ||
11631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11632 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11633 | $as_echo "$ac_header_compiler" >&6; } | |
11634 | ||
11635 | # Is the header present? | |
11636 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11637 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11638 | cat >conftest.$ac_ext <<_ACEOF | |
11639 | /* confdefs.h. */ | |
11640 | _ACEOF | |
11641 | cat confdefs.h >>conftest.$ac_ext | |
11642 | cat >>conftest.$ac_ext <<_ACEOF | |
11643 | /* end confdefs.h. */ | |
11644 | #include <$ac_header> | |
11645 | _ACEOF | |
11646 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11647 | case "(($ac_try" in | |
11648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11649 | *) ac_try_echo=$ac_try;; | |
11650 | esac | |
11651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11652 | $as_echo "$ac_try_echo") >&5 | |
11653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11654 | ac_status=$? | |
11655 | grep -v '^ *+' conftest.er1 >conftest.err | |
11656 | rm -f conftest.er1 | |
11657 | cat conftest.err >&5 | |
11658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11659 | (exit $ac_status); } >/dev/null && { | |
11660 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11661 | test ! -s conftest.err | |
11662 | }; then | |
11663 | ac_header_preproc=yes | |
11664 | else | |
11665 | $as_echo "$as_me: failed program was:" >&5 | |
11666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11667 | ||
11668 | ac_header_preproc=no | |
11669 | fi | |
11670 | ||
11671 | rm -f conftest.err conftest.$ac_ext | |
11672 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11673 | $as_echo "$ac_header_preproc" >&6; } | |
11674 | ||
11675 | # So? What about this header? | |
11676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11677 | yes:no: ) | |
11678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11679 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11681 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11682 | ac_header_preproc=yes | |
11683 | ;; | |
11684 | no:yes:* ) | |
11685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11686 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11688 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11690 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11692 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11694 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11696 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11697 | ||
11698 | ;; | |
11699 | esac | |
11700 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11701 | $as_echo_n "checking for $ac_header... " >&6; } | |
11702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11703 | $as_echo_n "(cached) " >&6 | |
11704 | else | |
11705 | eval "$as_ac_Header=\$ac_header_preproc" | |
11706 | fi | |
11707 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11708 | $as_echo "$as_val"'` | |
11709 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11710 | $as_echo "$ac_res" >&6; } | |
11711 | ||
11712 | fi | |
11713 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11714 | $as_echo "$as_val"'` | |
11715 | if test "x$as_val" = x""yes; then | |
11716 | cat >>confdefs.h <<_ACEOF | |
11717 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11718 | _ACEOF | |
11719 | ||
11720 | else | |
11721 | $bailout | |
11722 | fi | |
11723 | ||
11724 | done | |
11725 | ||
11726 | check_lib_no_libs dlm dlm_lock -lpthread | |
11727 | if test $NOTFOUND = 0; then | |
11728 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11729 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11730 | DLM_LIBS="-ldlm -lpthread" | |
11731 | HAVE_DLM=yes | |
11732 | fi | |
11733 | else | |
11734 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11735 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11736 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11737 | $as_echo "yes" >&6; } | |
11738 | HAVE_DLM=yes | |
11739 | fi | |
11740 | fi | |
11741 | ||
11742 | if test x$CLVMD = xall; then | |
8c222979 | 11743 | CLVMD=none |
a946372e AK |
11744 | if test x$HAVE_CCS = xyes && \ |
11745 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
11746 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
11747 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
11748 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
11749 | fi |
11750 | if test x$HAVE_CMAN = xyes && \ | |
11751 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
11752 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
11753 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
11754 | CLVMD="$CLVMD,cman" | |
a946372e AK |
11755 | fi |
11756 | if test x$HAVE_COROSYNC = xyes && \ | |
11757 | test x$HAVE_QUORUM = xyes && \ | |
11758 | test x$HAVE_CPG = xyes && \ | |
11759 | test x$HAVE_DLM = xyes && \ | |
11760 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
11761 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
11762 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
11763 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
11764 | fi |
11765 | if test x$HAVE_COROSYNC = xyes && \ | |
11766 | test x$HAVE_CPG = xyes && \ | |
11767 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
11768 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
11769 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
11770 | CLVMD="$CLVMD,openais" | |
11771 | fi | |
11772 | if test x$CLVMD = xnone; then | |
11773 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
11774 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 11775 | fi |
a946372e AK |
11776 | fi |
11777 | ||
11778 | ################################################################################ | |
66fd4529 AK |
11779 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11780 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11781 | # Check whether --enable-cmirrord was given. | |
11782 | if test "${enable_cmirrord+set}" = set; then | |
11783 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11784 | else | |
11785 | CMIRRORD=no | |
11786 | fi | |
11787 | ||
11788 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11789 | $as_echo "$CMIRRORD" >&6; } | |
11790 | ||
11791 | BUILD_CMIRRORD=$CMIRRORD | |
11792 | ||
11793 | ################################################################################ | |
11794 | ||
11795 | ||
11796 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11797 | ||
11798 | # Check whether --with-cmirrord-pidfile was given. | |
11799 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11800 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11801 | #define CMIRRORD_PIDFILE "$withval" | |
11802 | _ACEOF | |
11803 | ||
11804 | else | |
11805 | cat >>confdefs.h <<_ACEOF | |
11806 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11807 | _ACEOF | |
11808 | ||
a946372e AK |
11809 | fi |
11810 | ||
66fd4529 | 11811 | fi |
a946372e | 11812 | |
66fd4529 AK |
11813 | ################################################################################ |
11814 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
11815 | if test x$PKGCONFIG_INIT != x1; then |
11816 | pkg_config_init | |
11817 | fi | |
11818 | ||
11819 | pkg_failed=no | |
11820 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
11821 | $as_echo_n "checking for SACKPT... " >&6; } | |
11822 | ||
11823 | if test -n "$SACKPT_CFLAGS"; then | |
11824 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
11825 | elif test -n "$PKG_CONFIG"; then | |
11826 | if test -n "$PKG_CONFIG" && \ | |
11827 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11828 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11829 | ac_status=$? | |
11830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11831 | (exit $ac_status); }; then | |
11832 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
11833 | else | |
11834 | pkg_failed=yes | |
11835 | fi | |
11836 | else | |
11837 | pkg_failed=untried | |
11838 | fi | |
11839 | if test -n "$SACKPT_LIBS"; then | |
11840 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
11841 | elif test -n "$PKG_CONFIG"; then | |
11842 | if test -n "$PKG_CONFIG" && \ | |
11843 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11844 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11845 | ac_status=$? | |
11846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11847 | (exit $ac_status); }; then | |
11848 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
11849 | else | |
11850 | pkg_failed=yes | |
11851 | fi | |
11852 | else | |
11853 | pkg_failed=untried | |
11854 | fi | |
11855 | ||
11856 | ||
11857 | ||
11858 | if test $pkg_failed = yes; then | |
11859 | ||
11860 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11861 | _pkg_short_errors_supported=yes | |
11862 | else | |
11863 | _pkg_short_errors_supported=no | |
11864 | fi | |
11865 | if test $_pkg_short_errors_supported = yes; then | |
11866 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
11867 | else | |
11868 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
11869 | fi | |
11870 | # Put the nasty error message in config.log where it belongs | |
11871 | echo "$SACKPT_PKG_ERRORS" >&5 | |
11872 | ||
11873 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
11874 | ||
11875 | $SACKPT_PKG_ERRORS | |
11876 | ||
11877 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11878 | installed software in a non-standard prefix. | |
11879 | ||
11880 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11881 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11882 | See the pkg-config man page for more details. | |
11883 | " >&5 | |
11884 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: | |
11885 | ||
11886 | $SACKPT_PKG_ERRORS | |
11887 | ||
11888 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11889 | installed software in a non-standard prefix. | |
11890 | ||
11891 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11892 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11893 | See the pkg-config man page for more details. | |
11894 | " >&2;} | |
11895 | { (exit 1); exit 1; }; } | |
11896 | elif test $pkg_failed = untried; then | |
11897 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11898 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11899 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11900 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11901 | path to pkg-config. | |
11902 | ||
11903 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11904 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11905 | See the pkg-config man page for more details. | |
11906 | ||
11907 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11908 | See \`config.log' for more details." >&5 | |
11909 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11910 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11911 | path to pkg-config. | |
11912 | ||
11913 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11914 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11915 | See the pkg-config man page for more details. | |
11916 | ||
11917 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11918 | See \`config.log' for more details." >&2;} | |
11919 | { (exit 1); exit 1; }; }; } | |
11920 | else | |
11921 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
11922 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
11923 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11924 | $as_echo "yes" >&6; } | |
11925 | : | |
11926 | fi | |
11927 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
11928 | |
11929 | pkg_failed=no | |
11930 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11931 | $as_echo_n "checking for CPG... " >&6; } | |
11932 | ||
11933 | if test -n "$CPG_CFLAGS"; then | |
11934 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11935 | elif test -n "$PKG_CONFIG"; then | |
11936 | if test -n "$PKG_CONFIG" && \ | |
11937 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11938 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11939 | ac_status=$? | |
11940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11941 | (exit $ac_status); }; then | |
11942 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11943 | else | |
11944 | pkg_failed=yes | |
11945 | fi | |
11946 | else | |
11947 | pkg_failed=untried | |
11948 | fi | |
11949 | if test -n "$CPG_LIBS"; then | |
11950 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11951 | elif test -n "$PKG_CONFIG"; then | |
11952 | if test -n "$PKG_CONFIG" && \ | |
11953 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11954 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11955 | ac_status=$? | |
11956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11957 | (exit $ac_status); }; then | |
11958 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11959 | else | |
11960 | pkg_failed=yes | |
11961 | fi | |
11962 | else | |
11963 | pkg_failed=untried | |
11964 | fi | |
11965 | ||
11966 | ||
11967 | ||
11968 | if test $pkg_failed = yes; then | |
11969 | ||
11970 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11971 | _pkg_short_errors_supported=yes | |
11972 | else | |
11973 | _pkg_short_errors_supported=no | |
11974 | fi | |
11975 | if test $_pkg_short_errors_supported = yes; then | |
11976 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11977 | else | |
11978 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11979 | fi | |
11980 | # Put the nasty error message in config.log where it belongs | |
11981 | echo "$CPG_PKG_ERRORS" >&5 | |
11982 | ||
90c80887 AK |
11983 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
11984 | ||
11985 | $CPG_PKG_ERRORS | |
11986 | ||
11987 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11988 | installed software in a non-standard prefix. | |
11989 | ||
11990 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11991 | and CPG_LIBS to avoid the need to call pkg-config. | |
11992 | See the pkg-config man page for more details. | |
11993 | " >&5 | |
11994 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: | |
11995 | ||
11996 | $CPG_PKG_ERRORS | |
11997 | ||
11998 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11999 | installed software in a non-standard prefix. | |
12000 | ||
12001 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12002 | and CPG_LIBS to avoid the need to call pkg-config. | |
12003 | See the pkg-config man page for more details. | |
12004 | " >&2;} | |
12005 | { (exit 1); exit 1; }; } | |
a946372e | 12006 | elif test $pkg_failed = untried; then |
90c80887 AK |
12007 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12008 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12009 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
12010 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12011 | path to pkg-config. | |
12012 | ||
12013 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12014 | and CPG_LIBS to avoid the need to call pkg-config. | |
12015 | See the pkg-config man page for more details. | |
12016 | ||
12017 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12018 | See \`config.log' for more details." >&5 | |
12019 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
12020 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12021 | path to pkg-config. | |
12022 | ||
12023 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12024 | and CPG_LIBS to avoid the need to call pkg-config. | |
12025 | See the pkg-config man page for more details. | |
12026 | ||
12027 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12028 | See \`config.log' for more details." >&2;} | |
12029 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
12030 | else |
12031 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
12032 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
12033 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12034 | $as_echo "yes" >&6; } | |
12035 | : | |
12036 | fi | |
90c80887 | 12037 | fi |
a946372e AK |
12038 | fi |
12039 | ||
12040 | ################################################################################ | |
12041 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
12042 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
12043 | # Check whether --enable-debug was given. | |
12044 | if test "${enable_debug+set}" = set; then | |
12045 | enableval=$enable_debug; DEBUG=$enableval | |
12046 | else | |
12047 | DEBUG=no | |
12048 | fi | |
12049 | ||
12050 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
12051 | $as_echo "$DEBUG" >&6; } | |
12052 | ||
12053 | if test x$DEBUG = xyes; then | |
12054 | COPTIMISE_FLAG= | |
12055 | else | |
12056 | CSCOPE_CMD= | |
12057 | fi | |
12058 | ||
12059 | ################################################################################ | |
12060 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
12061 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
12062 | ||
12063 | # Check whether --with-optimisation was given. | |
12064 | if test "${with_optimisation+set}" = set; then | |
12065 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
12066 | fi | |
12067 | ||
12068 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
12069 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
12070 | ||
12071 | ################################################################################ | |
12072 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
12073 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
12074 | # Check whether --enable-profiling was given. | |
12075 | if test "${enable_profiling+set}" = set; then | |
5556819a | 12076 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 12077 | else |
5556819a | 12078 | PROFILING=no |
fddafd51 ZK |
12079 | fi |
12080 | ||
ec6a6fbe AK |
12081 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
12082 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
12083 | |
12084 | if test "x$PROFILING" = xyes; then | |
12085 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
12086 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 12087 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
12088 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12089 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12090 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 12091 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12092 | else |
12093 | case $LCOV in | |
12094 | [\\/]* | ?:[\\/]*) | |
12095 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
12096 | ;; | |
12097 | *) | |
12098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12099 | for as_dir in $PATH | |
12100 | do | |
12101 | IFS=$as_save_IFS | |
12102 | test -z "$as_dir" && as_dir=. | |
12103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12105 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12106 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12107 | break 2 |
12108 | fi | |
12109 | done | |
12110 | done | |
12111 | IFS=$as_save_IFS | |
12112 | ||
b145d876 | 12113 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
12114 | ;; |
12115 | esac | |
12116 | fi | |
12117 | LCOV=$ac_cv_path_LCOV | |
12118 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
12119 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
12120 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 12121 | else |
ec6a6fbe AK |
12122 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12123 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12124 | fi |
12125 | ||
12126 | ||
5556819a | 12127 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 12128 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
12129 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12130 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12131 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 12132 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12133 | else |
12134 | case $GENHTML in | |
12135 | [\\/]* | ?:[\\/]*) | |
12136 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
12137 | ;; | |
12138 | *) | |
12139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12140 | for as_dir in $PATH | |
12141 | do | |
12142 | IFS=$as_save_IFS | |
12143 | test -z "$as_dir" && as_dir=. | |
12144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12145 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12146 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12147 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12148 | break 2 |
12149 | fi | |
12150 | done | |
12151 | done | |
12152 | IFS=$as_save_IFS | |
12153 | ||
b145d876 | 12154 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
12155 | ;; |
12156 | esac | |
12157 | fi | |
12158 | GENHTML=$ac_cv_path_GENHTML | |
12159 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
12160 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
12161 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 12162 | else |
ec6a6fbe AK |
12163 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12164 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12165 | fi |
12166 | ||
12167 | ||
b145d876 | 12168 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
12169 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
12170 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
12171 | { (exit 1); exit 1; }; } |
12172 | fi | |
5556819a | 12173 | fi |
d0191583 JM |
12174 | |
12175 | ################################################################################ | |
ec6a6fbe AK |
12176 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
12177 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
12178 | # Check whether --enable-devmapper was given. |
12179 | if test "${enable_devmapper+set}" = set; then | |
12180 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
12181 | fi |
12182 | ||
ec6a6fbe AK |
12183 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
12184 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
12185 | |
12186 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
12187 | |
12188 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 12189 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
12190 | _ACEOF |
12191 | ||
12192 | fi | |
12193 | ||
a5f46f6a AK |
12194 | ################################################################################ |
12195 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
12196 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
12197 | # Check whether --enable-udev_sync was given. | |
12198 | if test "${enable_udev_sync+set}" = set; then | |
12199 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
12200 | else | |
12201 | UDEV_SYNC=no | |
12202 | fi | |
12203 | ||
12204 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
12205 | $as_echo "$UDEV_SYNC" >&6; } | |
12206 | ||
12207 | if test x$UDEV_SYNC = xyes; then | |
12208 | ||
12209 | cat >>confdefs.h <<\_ACEOF | |
12210 | #define UDEV_SYNC_SUPPORT 1 | |
12211 | _ACEOF | |
12212 | ||
12213 | fi | |
12214 | ||
12215 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
12216 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
12217 | # Check whether --enable-udev_rules was given. | |
12218 | if test "${enable_udev_rules+set}" = set; then | |
12219 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
12220 | else | |
12221 | UDEV_RULES=$UDEV_SYNC | |
12222 | fi | |
12223 | ||
12224 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
12225 | $as_echo "$UDEV_RULES" >&6; } | |
12226 | ||
90c80887 AK |
12227 | ################################################################################ |
12228 | ||
12229 | if test x$UDEV_SYNC = xyes; then | |
12230 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
12231 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
12232 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
12233 | $as_echo_n "(cached) " >&6 | |
12234 | else | |
12235 | ac_check_lib_save_LIBS=$LIBS | |
12236 | LIBS="-ludev $LIBS" | |
12237 | cat >conftest.$ac_ext <<_ACEOF | |
12238 | /* confdefs.h. */ | |
12239 | _ACEOF | |
12240 | cat confdefs.h >>conftest.$ac_ext | |
12241 | cat >>conftest.$ac_ext <<_ACEOF | |
12242 | /* end confdefs.h. */ | |
12243 | ||
12244 | /* Override any GCC internal prototype to avoid an error. | |
12245 | Use char because int might match the return type of a GCC | |
12246 | builtin and then its argument prototype would still apply. */ | |
12247 | #ifdef __cplusplus | |
12248 | extern "C" | |
12249 | #endif | |
12250 | char udev_queue_get_udev_is_active (); | |
12251 | int | |
12252 | main () | |
12253 | { | |
12254 | return udev_queue_get_udev_is_active (); | |
12255 | ; | |
12256 | return 0; | |
12257 | } | |
12258 | _ACEOF | |
12259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12260 | if { (ac_try="$ac_link" | |
12261 | case "(($ac_try" in | |
12262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12263 | *) ac_try_echo=$ac_try;; | |
12264 | esac | |
12265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12266 | $as_echo "$ac_try_echo") >&5 | |
12267 | (eval "$ac_link") 2>conftest.er1 | |
12268 | ac_status=$? | |
12269 | grep -v '^ *+' conftest.er1 >conftest.err | |
12270 | rm -f conftest.er1 | |
12271 | cat conftest.err >&5 | |
12272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12273 | (exit $ac_status); } && { | |
12274 | test -z "$ac_c_werror_flag" || | |
12275 | test ! -s conftest.err | |
12276 | } && test -s conftest$ac_exeext && { | |
12277 | test "$cross_compiling" = yes || | |
12278 | $as_test_x conftest$ac_exeext | |
12279 | }; then | |
12280 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
12281 | else | |
12282 | $as_echo "$as_me: failed program was:" >&5 | |
12283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12284 | ||
12285 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
12286 | fi | |
12287 | ||
12288 | rm -rf conftest.dSYM | |
12289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12290 | conftest$ac_exeext conftest.$ac_ext | |
12291 | LIBS=$ac_check_lib_save_LIBS | |
12292 | fi | |
12293 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
12294 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
12295 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
12296 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes | |
12297 | else | |
12298 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no | |
12299 | fi | |
12300 | ||
12301 | ||
12302 | if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then | |
12303 | ||
12304 | cat >>confdefs.h <<\_ACEOF | |
12305 | #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1 | |
12306 | _ACEOF | |
12307 | ||
12308 | LIBS="-ludev $LIBS" | |
12309 | fi | |
12310 | fi | |
12311 | ||
93bd259b AK |
12312 | ################################################################################ |
12313 | # Check whether --enable-compat was given. | |
12314 | if test "${enable_compat+set}" = set; then | |
12315 | enableval=$enable_compat; DM_COMPAT=$enableval | |
12316 | else | |
12317 | DM_COMPAT=no | |
12318 | fi | |
12319 | ||
12320 | ||
95eaa683 AK |
12321 | ################################################################################ |
12322 | # Check whether --enable-units-compat was given. | |
12323 | if test "${enable_units_compat+set}" = set; then | |
12324 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
12325 | else | |
12326 | UNITS_COMPAT=no | |
12327 | fi | |
12328 | ||
12329 | ||
12330 | if test x$UNITS_COMPAT = xyes; then | |
12331 | ||
12332 | cat >>confdefs.h <<\_ACEOF | |
12333 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
12334 | _ACEOF | |
12335 | ||
12336 | fi | |
12337 | ||
93bd259b AK |
12338 | ################################################################################ |
12339 | # Check whether --enable-ioctl was given. | |
12340 | if test "${enable_ioctl+set}" = set; then | |
12341 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
12342 | fi | |
12343 | ||
12344 | ||
d0191583 | 12345 | ################################################################################ |
ec6a6fbe AK |
12346 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
12347 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
12348 | # Check whether --enable-o_direct was given. |
12349 | if test "${enable_o_direct+set}" = set; then | |
12350 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 12351 | fi |
ad6254c5 | 12352 | |
ec6a6fbe AK |
12353 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
12354 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 12355 | |
d0191583 | 12356 | if test x$ODIRECT = xyes; then |
ad6254c5 | 12357 | |
d0191583 JM |
12358 | cat >>confdefs.h <<\_ACEOF |
12359 | #define O_DIRECT_SUPPORT 1 | |
12360 | _ACEOF | |
ad6254c5 | 12361 | |
d0191583 | 12362 | fi |
ad6254c5 | 12363 | |
572fefeb AK |
12364 | ################################################################################ |
12365 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
12366 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
12367 | # Check whether --enable-applib was given. | |
12368 | if test "${enable_applib+set}" = set; then | |
12369 | enableval=$enable_applib; APPLIB=$enableval | |
12370 | else | |
12371 | APPLIB=no | |
12372 | fi | |
12373 | ||
12374 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12375 | $as_echo "$APPLIB" >&6; } | |
12376 | ||
12377 | test x$APPLIB = xyes \ | |
12378 | && LVM2APP_LIB=-llvm2app \ | |
12379 | || LVM2APP_LIB= | |
12380 | ||
d0191583 | 12381 | ################################################################################ |
ec6a6fbe AK |
12382 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12383 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12384 | # Check whether --enable-cmdlib was given. |
12385 | if test "${enable_cmdlib+set}" = set; then | |
12386 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12387 | else |
d0191583 JM |
12388 | CMDLIB=no |
12389 | fi | |
8a2fc586 | 12390 | |
ec6a6fbe AK |
12391 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12392 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12393 | |
2a9a80c9 | 12394 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12395 | && LVM2CMD_LIB=-llvm2cmd \ |
12396 | || LVM2CMD_LIB= | |
12397 | ||
93bd259b AK |
12398 | ################################################################################ |
12399 | # Check whether --enable-pkgconfig was given. | |
12400 | if test "${enable_pkgconfig+set}" = set; then | |
12401 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12402 | else | |
12403 | PKGCONFIG=no | |
12404 | fi | |
12405 | ||
2a9a80c9 | 12406 | |
d0191583 | 12407 | ################################################################################ |
ec6a6fbe AK |
12408 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12409 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12410 | # Check whether --enable-fsadm was given. |
12411 | if test "${enable_fsadm+set}" = set; then | |
12412 | enableval=$enable_fsadm; FSADM=$enableval | |
12413 | fi | |
8a2fc586 | 12414 | |
ec6a6fbe AK |
12415 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12416 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12417 | |
d0191583 | 12418 | ################################################################################ |
ec6a6fbe AK |
12419 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12420 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12421 | # Check whether --enable-dmeventd was given. |
12422 | if test "${enable_dmeventd+set}" = set; then | |
12423 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12424 | fi | |
ad6254c5 | 12425 | |
ec6a6fbe AK |
12426 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12427 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12428 | |
93bd259b AK |
12429 | BUILD_DMEVENTD=$DMEVENTD |
12430 | ||
2a9a80c9 PR |
12431 | if test x$DMEVENTD = xyes; then |
12432 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12433 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12434 | " >&5 |
ec6a6fbe | 12435 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12436 | " >&2;} |
d0191583 | 12437 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12438 | fi |
12439 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12440 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12441 | " >&5 |
ec6a6fbe | 12442 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12443 | " >&2;} |
12444 | { (exit 1); exit 1; }; } | |
12445 | fi | |
ad6254c5 | 12446 | fi |
7a197a62 | 12447 | |
d0191583 JM |
12448 | if test x$DMEVENTD = xyes; then |
12449 | ||
12450 | cat >>confdefs.h <<\_ACEOF | |
12451 | #define DMEVENTD 1 | |
ad6254c5 AK |
12452 | _ACEOF |
12453 | ||
ad6254c5 | 12454 | fi |
93bd259b AK |
12455 | |
12456 | ################################################################################ | |
12457 | ||
ec6a6fbe AK |
12458 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12459 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12460 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12461 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12462 | else |
12463 | ac_check_lib_save_LIBS=$LIBS | |
12464 | LIBS="-lc $LIBS" | |
12465 | cat >conftest.$ac_ext <<_ACEOF | |
12466 | /* confdefs.h. */ | |
12467 | _ACEOF | |
12468 | cat confdefs.h >>conftest.$ac_ext | |
12469 | cat >>conftest.$ac_ext <<_ACEOF | |
12470 | /* end confdefs.h. */ | |
12471 | ||
12472 | /* Override any GCC internal prototype to avoid an error. | |
12473 | Use char because int might match the return type of a GCC | |
12474 | builtin and then its argument prototype would still apply. */ | |
12475 | #ifdef __cplusplus | |
12476 | extern "C" | |
12477 | #endif | |
12478 | char getline (); | |
12479 | int | |
12480 | main () | |
12481 | { | |
12482 | return getline (); | |
12483 | ; | |
12484 | return 0; | |
12485 | } | |
12486 | _ACEOF | |
12487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12488 | if { (ac_try="$ac_link" | |
12489 | case "(($ac_try" in | |
12490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12491 | *) ac_try_echo=$ac_try;; | |
12492 | esac | |
ec6a6fbe AK |
12493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12494 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12495 | (eval "$ac_link") 2>conftest.er1 |
12496 | ac_status=$? | |
12497 | grep -v '^ *+' conftest.er1 >conftest.err | |
12498 | rm -f conftest.er1 | |
12499 | cat conftest.err >&5 | |
ec6a6fbe | 12500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12501 | (exit $ac_status); } && { |
12502 | test -z "$ac_c_werror_flag" || | |
12503 | test ! -s conftest.err | |
ec6a6fbe AK |
12504 | } && test -s conftest$ac_exeext && { |
12505 | test "$cross_compiling" = yes || | |
12506 | $as_test_x conftest$ac_exeext | |
12507 | }; then | |
93bd259b AK |
12508 | ac_cv_lib_c_getline=yes |
12509 | else | |
ec6a6fbe | 12510 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12511 | sed 's/^/| /' conftest.$ac_ext >&5 |
12512 | ||
12513 | ac_cv_lib_c_getline=no | |
12514 | fi | |
12515 | ||
ec6a6fbe | 12516 | rm -rf conftest.dSYM |
93bd259b AK |
12517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12518 | conftest$ac_exeext conftest.$ac_ext | |
12519 | LIBS=$ac_check_lib_save_LIBS | |
12520 | fi | |
ec6a6fbe AK |
12521 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12522 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12523 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12524 | |
12525 | cat >>confdefs.h <<\_ACEOF | |
12526 | #define HAVE_GETLINE 1 | |
12527 | _ACEOF | |
12528 | ||
12529 | fi | |
12530 | ||
12531 | ||
12532 | ################################################################################ | |
12533 | ||
ec6a6fbe AK |
12534 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12535 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12536 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12537 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12538 | else |
12539 | ac_check_lib_save_LIBS=$LIBS | |
12540 | LIBS="-lc $LIBS" | |
12541 | cat >conftest.$ac_ext <<_ACEOF | |
12542 | /* confdefs.h. */ | |
12543 | _ACEOF | |
12544 | cat confdefs.h >>conftest.$ac_ext | |
12545 | cat >>conftest.$ac_ext <<_ACEOF | |
12546 | /* end confdefs.h. */ | |
12547 | ||
12548 | /* Override any GCC internal prototype to avoid an error. | |
12549 | Use char because int might match the return type of a GCC | |
12550 | builtin and then its argument prototype would still apply. */ | |
12551 | #ifdef __cplusplus | |
12552 | extern "C" | |
12553 | #endif | |
12554 | char canonicalize_file_name (); | |
12555 | int | |
12556 | main () | |
12557 | { | |
12558 | return canonicalize_file_name (); | |
12559 | ; | |
12560 | return 0; | |
12561 | } | |
12562 | _ACEOF | |
12563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12564 | if { (ac_try="$ac_link" | |
12565 | case "(($ac_try" in | |
12566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12567 | *) ac_try_echo=$ac_try;; | |
12568 | esac | |
ec6a6fbe AK |
12569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12570 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12571 | (eval "$ac_link") 2>conftest.er1 |
12572 | ac_status=$? | |
12573 | grep -v '^ *+' conftest.er1 >conftest.err | |
12574 | rm -f conftest.er1 | |
12575 | cat conftest.err >&5 | |
ec6a6fbe | 12576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12577 | (exit $ac_status); } && { |
12578 | test -z "$ac_c_werror_flag" || | |
12579 | test ! -s conftest.err | |
ec6a6fbe AK |
12580 | } && test -s conftest$ac_exeext && { |
12581 | test "$cross_compiling" = yes || | |
12582 | $as_test_x conftest$ac_exeext | |
12583 | }; then | |
93bd259b AK |
12584 | ac_cv_lib_c_canonicalize_file_name=yes |
12585 | else | |
ec6a6fbe | 12586 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12587 | sed 's/^/| /' conftest.$ac_ext >&5 |
12588 | ||
12589 | ac_cv_lib_c_canonicalize_file_name=no | |
12590 | fi | |
12591 | ||
ec6a6fbe | 12592 | rm -rf conftest.dSYM |
93bd259b AK |
12593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12594 | conftest$ac_exeext conftest.$ac_ext | |
12595 | LIBS=$ac_check_lib_save_LIBS | |
12596 | fi | |
ec6a6fbe AK |
12597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12598 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12599 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12600 | |
12601 | cat >>confdefs.h <<\_ACEOF | |
12602 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12603 | _ACEOF | |
12604 | ||
12605 | fi | |
12606 | ||
12607 | ||
d0191583 JM |
12608 | ################################################################################ |
12609 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12610 | then exec_prefix=""; | |
12611 | fi; | |
ad6254c5 AK |
12612 | |
12613 | ################################################################################ | |
06e459df | 12614 | if test x$READLINE != xno; then |
ec6a6fbe AK |
12615 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
12616 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 12617 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 12618 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12619 | else |
12620 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 12621 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12622 | /* confdefs.h. */ |
12623 | _ACEOF | |
12624 | cat confdefs.h >>conftest.$ac_ext | |
12625 | cat >>conftest.$ac_ext <<_ACEOF | |
12626 | /* end confdefs.h. */ | |
12627 | ||
7a197a62 AK |
12628 | /* Override any GCC internal prototype to avoid an error. |
12629 | Use char because int might match the return type of a GCC | |
12630 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12631 | #ifdef __cplusplus |
12632 | extern "C" | |
12633 | #endif | |
ad6254c5 AK |
12634 | char tgetent (); |
12635 | int | |
12636 | main () | |
12637 | { | |
7a197a62 | 12638 | return tgetent (); |
ad6254c5 AK |
12639 | ; |
12640 | return 0; | |
12641 | } | |
12642 | _ACEOF | |
18dcfb69 | 12643 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
12644 | if test -z "$ac_lib"; then |
12645 | ac_res="none required" | |
12646 | else | |
12647 | ac_res=-l$ac_lib | |
12648 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12649 | fi | |
12650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12651 | if { (ac_try="$ac_link" | |
12652 | case "(($ac_try" in | |
12653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12654 | *) ac_try_echo=$ac_try;; | |
12655 | esac | |
ec6a6fbe AK |
12656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12657 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12658 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12659 | ac_status=$? |
8a2fc586 AK |
12660 | grep -v '^ *+' conftest.er1 >conftest.err |
12661 | rm -f conftest.er1 | |
12662 | cat conftest.err >&5 | |
ec6a6fbe | 12663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12664 | (exit $ac_status); } && { |
12665 | test -z "$ac_c_werror_flag" || | |
12666 | test ! -s conftest.err | |
ec6a6fbe AK |
12667 | } && test -s conftest$ac_exeext && { |
12668 | test "$cross_compiling" = yes || | |
12669 | $as_test_x conftest$ac_exeext | |
12670 | }; then | |
7a197a62 | 12671 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 12672 | else |
ec6a6fbe | 12673 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12674 | sed 's/^/| /' conftest.$ac_ext >&5 |
12675 | ||
ad6254c5 | 12676 | |
7a197a62 | 12677 | fi |
ad6254c5 | 12678 | |
ec6a6fbe | 12679 | rm -rf conftest.dSYM |
25fbec5b | 12680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
12681 | conftest$ac_exeext |
12682 | if test "${ac_cv_search_tgetent+set}" = set; then | |
12683 | break | |
ad6254c5 | 12684 | fi |
7a197a62 AK |
12685 | done |
12686 | if test "${ac_cv_search_tgetent+set}" = set; then | |
12687 | : | |
12688 | else | |
12689 | ac_cv_search_tgetent=no | |
ad6254c5 | 12690 | fi |
7a197a62 | 12691 | rm conftest.$ac_ext |
ad6254c5 AK |
12692 | LIBS=$ac_func_search_save_LIBS |
12693 | fi | |
ec6a6fbe AK |
12694 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
12695 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
12696 | ac_res=$ac_cv_search_tgetent |
12697 | if test "$ac_res" != no; then | |
12698 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 12699 | tg_found=yes |
ad6254c5 | 12700 | else |
06e459df JM |
12701 | tg_found=no |
12702 | fi | |
12703 | ||
12704 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 12705 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
12706 | --enable-readline option (which is enabled by default). Either disable readline |
12707 | support with --disable-readline or download and install termcap from: | |
12708 | ftp.gnu.org/gnu/termcap | |
12709 | Note: if you are using precompiled packages you will also need the development | |
12710 | package as well (which may be called termcap-devel or something similar). | |
12711 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
12712 | not found either - but you could try installing that as well. | |
12713 | " >&5 | |
ec6a6fbe | 12714 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
12715 | --enable-readline option (which is enabled by default). Either disable readline |
12716 | support with --disable-readline or download and install termcap from: | |
12717 | ftp.gnu.org/gnu/termcap | |
12718 | Note: if you are using precompiled packages you will also need the development | |
12719 | package as well (which may be called termcap-devel or something similar). | |
12720 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
12721 | not found either - but you could try installing that as well. | |
12722 | " >&2;} | |
12723 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
12724 | fi |
12725 | ||
12726 | ################################################################################ | |
ec6a6fbe AK |
12727 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12728 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12729 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12730 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12731 | else |
12732 | ac_check_lib_save_LIBS=$LIBS | |
12733 | LIBS="-ldl $LIBS" | |
12734 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12735 | /* confdefs.h. */ |
12736 | _ACEOF | |
12737 | cat confdefs.h >>conftest.$ac_ext | |
12738 | cat >>conftest.$ac_ext <<_ACEOF | |
12739 | /* end confdefs.h. */ | |
12740 | ||
7a197a62 AK |
12741 | /* Override any GCC internal prototype to avoid an error. |
12742 | Use char because int might match the return type of a GCC | |
12743 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12744 | #ifdef __cplusplus |
12745 | extern "C" | |
12746 | #endif | |
ad6254c5 AK |
12747 | char dlopen (); |
12748 | int | |
12749 | main () | |
12750 | { | |
7a197a62 | 12751 | return dlopen (); |
ad6254c5 AK |
12752 | ; |
12753 | return 0; | |
12754 | } | |
12755 | _ACEOF | |
12756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12757 | if { (ac_try="$ac_link" |
12758 | case "(($ac_try" in | |
12759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12760 | *) ac_try_echo=$ac_try;; | |
12761 | esac | |
ec6a6fbe AK |
12762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12763 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12764 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12765 | ac_status=$? |
8a2fc586 AK |
12766 | grep -v '^ *+' conftest.er1 >conftest.err |
12767 | rm -f conftest.er1 | |
12768 | cat conftest.err >&5 | |
ec6a6fbe | 12769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12770 | (exit $ac_status); } && { |
12771 | test -z "$ac_c_werror_flag" || | |
12772 | test ! -s conftest.err | |
ec6a6fbe AK |
12773 | } && test -s conftest$ac_exeext && { |
12774 | test "$cross_compiling" = yes || | |
12775 | $as_test_x conftest$ac_exeext | |
12776 | }; then | |
ad6254c5 AK |
12777 | ac_cv_lib_dl_dlopen=yes |
12778 | else | |
ec6a6fbe | 12779 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12780 | sed 's/^/| /' conftest.$ac_ext >&5 |
12781 | ||
7a197a62 | 12782 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12783 | fi |
7a197a62 | 12784 | |
ec6a6fbe | 12785 | rm -rf conftest.dSYM |
25fbec5b | 12786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12787 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12788 | LIBS=$ac_check_lib_save_LIBS |
12789 | fi | |
ec6a6fbe AK |
12790 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12791 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12792 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
12793 | HAVE_LIBDL=yes |
12794 | else | |
12795 | HAVE_LIBDL=no | |
12796 | fi | |
12797 | ||
12798 | ||
7e9e9502 | 12799 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
12800 | |
12801 | cat >>confdefs.h <<\_ACEOF | |
12802 | #define HAVE_LIBDL 1 | |
12803 | _ACEOF | |
12804 | ||
ad6254c5 AK |
12805 | LIBS="-ldl $LIBS" |
12806 | else | |
12807 | HAVE_LIBDL=no | |
12808 | fi | |
12809 | ||
12810 | ################################################################################ | |
12811 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12812 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12813 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12814 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12815 | " >&5 |
ec6a6fbe | 12816 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12817 | " >&2;} |
12818 | { (exit 1); exit 1; }; } | |
12819 | fi | |
12820 | ||
d0191583 | 12821 | ################################################################################ |
ec6a6fbe AK |
12822 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12823 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12824 | # Check whether --enable-selinux was given. |
12825 | if test "${enable_selinux+set}" = set; then | |
12826 | enableval=$enable_selinux; SELINUX=$enableval | |
12827 | fi | |
12828 | ||
ec6a6fbe AK |
12829 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12830 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12831 | |
ad6254c5 AK |
12832 | ################################################################################ |
12833 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12834 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12835 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12836 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12837 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12838 | else |
12839 | ac_check_lib_save_LIBS=$LIBS | |
12840 | LIBS="-lsepol $LIBS" | |
12841 | cat >conftest.$ac_ext <<_ACEOF | |
12842 | /* confdefs.h. */ | |
12843 | _ACEOF | |
12844 | cat confdefs.h >>conftest.$ac_ext | |
12845 | cat >>conftest.$ac_ext <<_ACEOF | |
12846 | /* end confdefs.h. */ | |
12847 | ||
7a197a62 AK |
12848 | /* Override any GCC internal prototype to avoid an error. |
12849 | Use char because int might match the return type of a GCC | |
12850 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12851 | #ifdef __cplusplus |
12852 | extern "C" | |
12853 | #endif | |
8a2fc586 AK |
12854 | char sepol_check_context (); |
12855 | int | |
12856 | main () | |
12857 | { | |
7a197a62 | 12858 | return sepol_check_context (); |
8a2fc586 AK |
12859 | ; |
12860 | return 0; | |
12861 | } | |
12862 | _ACEOF | |
12863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12864 | if { (ac_try="$ac_link" |
12865 | case "(($ac_try" in | |
12866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12867 | *) ac_try_echo=$ac_try;; | |
12868 | esac | |
ec6a6fbe AK |
12869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12870 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12871 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12872 | ac_status=$? |
12873 | grep -v '^ *+' conftest.er1 >conftest.err | |
12874 | rm -f conftest.er1 | |
12875 | cat conftest.err >&5 | |
ec6a6fbe | 12876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12877 | (exit $ac_status); } && { |
12878 | test -z "$ac_c_werror_flag" || | |
12879 | test ! -s conftest.err | |
ec6a6fbe AK |
12880 | } && test -s conftest$ac_exeext && { |
12881 | test "$cross_compiling" = yes || | |
12882 | $as_test_x conftest$ac_exeext | |
12883 | }; then | |
8a2fc586 AK |
12884 | ac_cv_lib_sepol_sepol_check_context=yes |
12885 | else | |
ec6a6fbe | 12886 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12887 | sed 's/^/| /' conftest.$ac_ext >&5 |
12888 | ||
7a197a62 | 12889 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12890 | fi |
7a197a62 | 12891 | |
ec6a6fbe | 12892 | rm -rf conftest.dSYM |
25fbec5b | 12893 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12894 | conftest$ac_exeext conftest.$ac_ext |
12895 | LIBS=$ac_check_lib_save_LIBS | |
12896 | fi | |
ec6a6fbe AK |
12897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12898 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12899 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
12900 | HAVE_SEPOL=yes |
12901 | else | |
12902 | HAVE_SEPOL=no | |
12903 | fi | |
12904 | ||
8a2fc586 AK |
12905 | |
12906 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
12907 | |
12908 | cat >>confdefs.h <<\_ACEOF | |
12909 | #define HAVE_SEPOL 1 | |
12910 | _ACEOF | |
12911 | ||
e1b8a236 | 12912 | SELINUX_LIBS="-lsepol $SELINUX_LIBS" |
8a2fc586 AK |
12913 | fi |
12914 | ||
ec6a6fbe AK |
12915 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12916 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12917 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12918 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12919 | else |
12920 | ac_check_lib_save_LIBS=$LIBS | |
12921 | LIBS="-lselinux $LIBS" | |
12922 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12923 | /* confdefs.h. */ |
12924 | _ACEOF | |
12925 | cat confdefs.h >>conftest.$ac_ext | |
12926 | cat >>conftest.$ac_ext <<_ACEOF | |
12927 | /* end confdefs.h. */ | |
12928 | ||
7a197a62 AK |
12929 | /* Override any GCC internal prototype to avoid an error. |
12930 | Use char because int might match the return type of a GCC | |
12931 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12932 | #ifdef __cplusplus |
12933 | extern "C" | |
12934 | #endif | |
ad6254c5 AK |
12935 | char is_selinux_enabled (); |
12936 | int | |
12937 | main () | |
12938 | { | |
7a197a62 | 12939 | return is_selinux_enabled (); |
ad6254c5 AK |
12940 | ; |
12941 | return 0; | |
12942 | } | |
12943 | _ACEOF | |
12944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12945 | if { (ac_try="$ac_link" |
12946 | case "(($ac_try" in | |
12947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12948 | *) ac_try_echo=$ac_try;; | |
12949 | esac | |
ec6a6fbe AK |
12950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12951 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12952 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12953 | ac_status=$? |
8a2fc586 AK |
12954 | grep -v '^ *+' conftest.er1 >conftest.err |
12955 | rm -f conftest.er1 | |
12956 | cat conftest.err >&5 | |
ec6a6fbe | 12957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12958 | (exit $ac_status); } && { |
12959 | test -z "$ac_c_werror_flag" || | |
12960 | test ! -s conftest.err | |
ec6a6fbe AK |
12961 | } && test -s conftest$ac_exeext && { |
12962 | test "$cross_compiling" = yes || | |
12963 | $as_test_x conftest$ac_exeext | |
12964 | }; then | |
ad6254c5 AK |
12965 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12966 | else | |
ec6a6fbe | 12967 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12968 | sed 's/^/| /' conftest.$ac_ext >&5 |
12969 | ||
7a197a62 | 12970 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12971 | fi |
7a197a62 | 12972 | |
ec6a6fbe | 12973 | rm -rf conftest.dSYM |
25fbec5b | 12974 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12975 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12976 | LIBS=$ac_check_lib_save_LIBS |
12977 | fi | |
ec6a6fbe AK |
12978 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12979 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12980 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
12981 | HAVE_SELINUX=yes |
12982 | else | |
12983 | HAVE_SELINUX=no | |
12984 | fi | |
12985 | ||
ad6254c5 AK |
12986 | |
12987 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
12988 | |
12989 | cat >>confdefs.h <<\_ACEOF | |
12990 | #define HAVE_SELINUX 1 | |
12991 | _ACEOF | |
12992 | ||
e1b8a236 | 12993 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
ad6254c5 | 12994 | else |
ec6a6fbe AK |
12995 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
12996 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 | 12997 | fi |
e1b8a236 | 12998 | LIBS="$SELINUX_LIBS $LIBS" |
66e941e8 | 12999 | |
d0191583 | 13000 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
13001 | # fails on at least Debian unstable due to unsatisfied references |
13002 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
13003 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
13004 | lvm_saved_libs=$LIBS | |
13005 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
13006 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
13007 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 13008 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 13009 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
13010 | else |
13011 | ac_func_search_save_LIBS=$LIBS | |
13012 | cat >conftest.$ac_ext <<_ACEOF | |
13013 | /* confdefs.h. */ | |
13014 | _ACEOF | |
13015 | cat confdefs.h >>conftest.$ac_ext | |
13016 | cat >>conftest.$ac_ext <<_ACEOF | |
13017 | /* end confdefs.h. */ | |
13018 | ||
13019 | /* Override any GCC internal prototype to avoid an error. | |
13020 | Use char because int might match the return type of a GCC | |
13021 | builtin and then its argument prototype would still apply. */ | |
13022 | #ifdef __cplusplus | |
13023 | extern "C" | |
13024 | #endif | |
13025 | char pthread_mutex_lock (); | |
13026 | int | |
13027 | main () | |
13028 | { | |
13029 | return pthread_mutex_lock (); | |
13030 | ; | |
13031 | return 0; | |
13032 | } | |
13033 | _ACEOF | |
13034 | for ac_lib in '' pthread; do | |
13035 | if test -z "$ac_lib"; then | |
13036 | ac_res="none required" | |
13037 | else | |
13038 | ac_res=-l$ac_lib | |
13039 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13040 | fi | |
13041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13042 | if { (ac_try="$ac_link" | |
13043 | case "(($ac_try" in | |
13044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13045 | *) ac_try_echo=$ac_try;; | |
13046 | esac | |
ec6a6fbe AK |
13047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13048 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
13049 | (eval "$ac_link") 2>conftest.er1 |
13050 | ac_status=$? | |
13051 | grep -v '^ *+' conftest.er1 >conftest.err | |
13052 | rm -f conftest.er1 | |
13053 | cat conftest.err >&5 | |
ec6a6fbe | 13054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13055 | (exit $ac_status); } && { |
13056 | test -z "$ac_c_werror_flag" || | |
13057 | test ! -s conftest.err | |
ec6a6fbe AK |
13058 | } && test -s conftest$ac_exeext && { |
13059 | test "$cross_compiling" = yes || | |
13060 | $as_test_x conftest$ac_exeext | |
13061 | }; then | |
66e941e8 JM |
13062 | ac_cv_search_pthread_mutex_lock=$ac_res |
13063 | else | |
ec6a6fbe | 13064 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
13065 | sed 's/^/| /' conftest.$ac_ext >&5 |
13066 | ||
13067 | ||
13068 | fi | |
13069 | ||
ec6a6fbe | 13070 | rm -rf conftest.dSYM |
25fbec5b | 13071 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
13072 | conftest$ac_exeext |
13073 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
13074 | break | |
13075 | fi | |
13076 | done | |
13077 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
13078 | : | |
13079 | else | |
13080 | ac_cv_search_pthread_mutex_lock=no | |
13081 | fi | |
13082 | rm conftest.$ac_ext | |
13083 | LIBS=$ac_func_search_save_LIBS | |
13084 | fi | |
ec6a6fbe AK |
13085 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
13086 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
13087 | ac_res=$ac_cv_search_pthread_mutex_lock |
13088 | if test "$ac_res" != no; then | |
13089 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13090 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
13091 | LIB_PTHREAD=-lpthread | |
13092 | fi | |
13093 | ||
13094 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
13095 | fi |
13096 | fi | |
13097 | ||
8b1a3214 AK |
13098 | ################################################################################ |
13099 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
13100 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
13101 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 13102 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 13103 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
13104 | else |
13105 | ac_check_lib_save_LIBS=$LIBS | |
13106 | LIBS="-lrt $LIBS" | |
13107 | cat >conftest.$ac_ext <<_ACEOF | |
13108 | /* confdefs.h. */ | |
13109 | _ACEOF | |
13110 | cat confdefs.h >>conftest.$ac_ext | |
13111 | cat >>conftest.$ac_ext <<_ACEOF | |
13112 | /* end confdefs.h. */ | |
13113 | ||
7a197a62 AK |
13114 | /* Override any GCC internal prototype to avoid an error. |
13115 | Use char because int might match the return type of a GCC | |
13116 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
13117 | #ifdef __cplusplus |
13118 | extern "C" | |
13119 | #endif | |
8b1a3214 AK |
13120 | char clock_gettime (); |
13121 | int | |
13122 | main () | |
13123 | { | |
7a197a62 | 13124 | return clock_gettime (); |
8b1a3214 AK |
13125 | ; |
13126 | return 0; | |
13127 | } | |
13128 | _ACEOF | |
13129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13130 | if { (ac_try="$ac_link" |
13131 | case "(($ac_try" in | |
13132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13133 | *) ac_try_echo=$ac_try;; | |
13134 | esac | |
ec6a6fbe AK |
13135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13136 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13137 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13138 | ac_status=$? |
13139 | grep -v '^ *+' conftest.er1 >conftest.err | |
13140 | rm -f conftest.er1 | |
13141 | cat conftest.err >&5 | |
ec6a6fbe | 13142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13143 | (exit $ac_status); } && { |
13144 | test -z "$ac_c_werror_flag" || | |
13145 | test ! -s conftest.err | |
ec6a6fbe AK |
13146 | } && test -s conftest$ac_exeext && { |
13147 | test "$cross_compiling" = yes || | |
13148 | $as_test_x conftest$ac_exeext | |
13149 | }; then | |
8b1a3214 AK |
13150 | ac_cv_lib_rt_clock_gettime=yes |
13151 | else | |
ec6a6fbe | 13152 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13153 | sed 's/^/| /' conftest.$ac_ext >&5 |
13154 | ||
7a197a62 | 13155 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13156 | fi |
7a197a62 | 13157 | |
ec6a6fbe | 13158 | rm -rf conftest.dSYM |
25fbec5b | 13159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13160 | conftest$ac_exeext conftest.$ac_ext |
13161 | LIBS=$ac_check_lib_save_LIBS | |
13162 | fi | |
ec6a6fbe AK |
13163 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13164 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13165 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13166 | HAVE_REALTIME=yes |
13167 | else | |
13168 | HAVE_REALTIME=no | |
13169 | fi | |
13170 | ||
8b1a3214 AK |
13171 | |
13172 | if test x$HAVE_REALTIME = xyes; then | |
13173 | ||
13174 | cat >>confdefs.h <<\_ACEOF | |
13175 | #define HAVE_REALTIME 1 | |
13176 | _ACEOF | |
13177 | ||
13178 | LIBS="-lrt $LIBS" | |
13179 | else | |
ec6a6fbe AK |
13180 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13181 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13182 | fi |
13183 | fi | |
13184 | ||
ad6254c5 AK |
13185 | ################################################################################ |
13186 | ||
13187 | for ac_header in getopt.h | |
13188 | do | |
ec6a6fbe | 13189 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13191 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13192 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13193 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13194 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13195 | fi |
ec6a6fbe AK |
13196 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13197 | $as_echo "$as_val"'` | |
13198 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13199 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13200 | else |
13201 | # Is the header compilable? | |
ec6a6fbe AK |
13202 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13203 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13204 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13205 | /* confdefs.h. */ |
13206 | _ACEOF | |
13207 | cat confdefs.h >>conftest.$ac_ext | |
13208 | cat >>conftest.$ac_ext <<_ACEOF | |
13209 | /* end confdefs.h. */ | |
13210 | $ac_includes_default | |
13211 | #include <$ac_header> | |
13212 | _ACEOF | |
13213 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13214 | if { (ac_try="$ac_compile" |
13215 | case "(($ac_try" in | |
13216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13217 | *) ac_try_echo=$ac_try;; | |
13218 | esac | |
ec6a6fbe AK |
13219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13220 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13221 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13222 | ac_status=$? |
8a2fc586 AK |
13223 | grep -v '^ *+' conftest.er1 >conftest.err |
13224 | rm -f conftest.er1 | |
13225 | cat conftest.err >&5 | |
ec6a6fbe | 13226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13227 | (exit $ac_status); } && { |
13228 | test -z "$ac_c_werror_flag" || | |
13229 | test ! -s conftest.err | |
13230 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13231 | ac_header_compiler=yes |
13232 | else | |
ec6a6fbe | 13233 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13234 | sed 's/^/| /' conftest.$ac_ext >&5 |
13235 | ||
7a197a62 | 13236 | ac_header_compiler=no |
ad6254c5 | 13237 | fi |
7a197a62 AK |
13238 | |
13239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13240 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13241 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13242 | |
13243 | # Is the header present? | |
ec6a6fbe AK |
13244 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13245 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13246 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13247 | /* confdefs.h. */ |
13248 | _ACEOF | |
13249 | cat confdefs.h >>conftest.$ac_ext | |
13250 | cat >>conftest.$ac_ext <<_ACEOF | |
13251 | /* end confdefs.h. */ | |
13252 | #include <$ac_header> | |
13253 | _ACEOF | |
7a197a62 AK |
13254 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13255 | case "(($ac_try" in | |
13256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13257 | *) ac_try_echo=$ac_try;; | |
13258 | esac | |
ec6a6fbe AK |
13259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13260 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13261 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13262 | ac_status=$? |
13263 | grep -v '^ *+' conftest.er1 >conftest.err | |
13264 | rm -f conftest.er1 | |
13265 | cat conftest.err >&5 | |
ec6a6fbe | 13266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13267 | (exit $ac_status); } >/dev/null && { |
13268 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13269 | test ! -s conftest.err | |
13270 | }; then | |
ad6254c5 AK |
13271 | ac_header_preproc=yes |
13272 | else | |
ec6a6fbe | 13273 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13274 | sed 's/^/| /' conftest.$ac_ext >&5 |
13275 | ||
13276 | ac_header_preproc=no | |
13277 | fi | |
7a197a62 | 13278 | |
ad6254c5 | 13279 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13280 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13281 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13282 | |
13283 | # So? What about this header? | |
8a2fc586 AK |
13284 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13285 | yes:no: ) | |
ec6a6fbe AK |
13286 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13287 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13288 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13289 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13290 | ac_header_preproc=yes |
ad6254c5 | 13291 | ;; |
8a2fc586 | 13292 | no:yes:* ) |
ec6a6fbe AK |
13293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13294 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13295 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13296 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13298 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13300 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13302 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13304 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13305 | |
ad6254c5 AK |
13306 | ;; |
13307 | esac | |
ec6a6fbe AK |
13308 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13309 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13310 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13311 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13312 | else |
8a2fc586 | 13313 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13314 | fi |
ec6a6fbe AK |
13315 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13316 | $as_echo "$as_val"'` | |
13317 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13318 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13319 | |
13320 | fi | |
ec6a6fbe AK |
13321 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13322 | $as_echo "$as_val"'` | |
13323 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13324 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13325 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13326 | _ACEOF |
72b2cb61 AK |
13327 | |
13328 | cat >>confdefs.h <<\_ACEOF | |
13329 | #define HAVE_GETOPTLONG 1 | |
13330 | _ACEOF | |
13331 | ||
ad6254c5 AK |
13332 | fi |
13333 | ||
13334 | done | |
13335 | ||
13336 | ||
13337 | ################################################################################ | |
06e459df | 13338 | if test x$READLINE != xno; then |
bc1024f8 JM |
13339 | rl_found=yes |
13340 | ||
ec6a6fbe AK |
13341 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
13342 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 13343 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13344 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13345 | else |
13346 | ac_check_lib_save_LIBS=$LIBS | |
13347 | LIBS="-lreadline $LIBS" | |
13348 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13349 | /* confdefs.h. */ |
13350 | _ACEOF | |
13351 | cat confdefs.h >>conftest.$ac_ext | |
13352 | cat >>conftest.$ac_ext <<_ACEOF | |
13353 | /* end confdefs.h. */ | |
13354 | ||
7a197a62 AK |
13355 | /* Override any GCC internal prototype to avoid an error. |
13356 | Use char because int might match the return type of a GCC | |
13357 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13358 | #ifdef __cplusplus |
13359 | extern "C" | |
13360 | #endif | |
ad6254c5 AK |
13361 | char readline (); |
13362 | int | |
13363 | main () | |
13364 | { | |
7a197a62 | 13365 | return readline (); |
ad6254c5 AK |
13366 | ; |
13367 | return 0; | |
13368 | } | |
13369 | _ACEOF | |
13370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13371 | if { (ac_try="$ac_link" |
13372 | case "(($ac_try" in | |
13373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13374 | *) ac_try_echo=$ac_try;; | |
13375 | esac | |
ec6a6fbe AK |
13376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13377 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13378 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13379 | ac_status=$? |
8a2fc586 AK |
13380 | grep -v '^ *+' conftest.er1 >conftest.err |
13381 | rm -f conftest.er1 | |
13382 | cat conftest.err >&5 | |
ec6a6fbe | 13383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13384 | (exit $ac_status); } && { |
13385 | test -z "$ac_c_werror_flag" || | |
13386 | test ! -s conftest.err | |
ec6a6fbe AK |
13387 | } && test -s conftest$ac_exeext && { |
13388 | test "$cross_compiling" = yes || | |
13389 | $as_test_x conftest$ac_exeext | |
13390 | }; then | |
ad6254c5 AK |
13391 | ac_cv_lib_readline_readline=yes |
13392 | else | |
ec6a6fbe | 13393 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13394 | sed 's/^/| /' conftest.$ac_ext >&5 |
13395 | ||
7a197a62 | 13396 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13397 | fi |
7a197a62 | 13398 | |
ec6a6fbe | 13399 | rm -rf conftest.dSYM |
25fbec5b | 13400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13401 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13402 | LIBS=$ac_check_lib_save_LIBS |
13403 | fi | |
ec6a6fbe AK |
13404 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13405 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13406 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
13407 | cat >>confdefs.h <<_ACEOF |
13408 | #define HAVE_LIBREADLINE 1 | |
13409 | _ACEOF | |
13410 | ||
13411 | LIBS="-lreadline $LIBS" | |
13412 | ||
ad6254c5 | 13413 | else |
06e459df JM |
13414 | rl_found=no |
13415 | fi | |
13416 | ||
13417 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 13418 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13419 | --enable-readline option (which is enabled by default). Either disable readline |
13420 | support with --disable-readline or download and install readline from: | |
13421 | ftp.gnu.org/gnu/readline | |
13422 | Note: if you are using precompiled packages you will also need the development | |
13423 | package as well (which may be called readline-devel or something similar). | |
13424 | " >&5 | |
ec6a6fbe | 13425 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13426 | --enable-readline option (which is enabled by default). Either disable readline |
13427 | support with --disable-readline or download and install readline from: | |
13428 | ftp.gnu.org/gnu/readline | |
13429 | Note: if you are using precompiled packages you will also need the development | |
13430 | package as well (which may be called readline-devel or something similar). | |
13431 | " >&2;} | |
13432 | { (exit 1); exit 1; }; } | |
06e459df | 13433 | if test $rl_found = yes; then |
bc1024f8 JM |
13434 | |
13435 | for ac_func in rl_completion_matches | |
13436 | do | |
ec6a6fbe AK |
13437 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13438 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13439 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13440 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13441 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13442 | else |
13443 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13444 | /* confdefs.h. */ |
13445 | _ACEOF | |
13446 | cat confdefs.h >>conftest.$ac_ext | |
13447 | cat >>conftest.$ac_ext <<_ACEOF | |
13448 | /* end confdefs.h. */ | |
bc1024f8 | 13449 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13450 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13451 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13452 | |
ad6254c5 | 13453 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13454 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13455 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13456 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13457 | |
ad6254c5 AK |
13458 | #ifdef __STDC__ |
13459 | # include <limits.h> | |
13460 | #else | |
13461 | # include <assert.h> | |
13462 | #endif | |
8a2fc586 | 13463 | |
bc1024f8 | 13464 | #undef $ac_func |
8a2fc586 | 13465 | |
7a197a62 AK |
13466 | /* Override any GCC internal prototype to avoid an error. |
13467 | Use char because int might match the return type of a GCC | |
13468 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13469 | #ifdef __cplusplus |
13470 | extern "C" | |
ad6254c5 | 13471 | #endif |
bc1024f8 | 13472 | char $ac_func (); |
ad6254c5 AK |
13473 | /* The GNU C library defines this for functions which it implements |
13474 | to always fail with ENOSYS. Some functions are actually named | |
13475 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13476 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13477 | choke me |
ad6254c5 AK |
13478 | #endif |
13479 | ||
13480 | int | |
13481 | main () | |
13482 | { | |
bc1024f8 | 13483 | return $ac_func (); |
ad6254c5 AK |
13484 | ; |
13485 | return 0; | |
13486 | } | |
13487 | _ACEOF | |
13488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13489 | if { (ac_try="$ac_link" |
13490 | case "(($ac_try" in | |
13491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13492 | *) ac_try_echo=$ac_try;; | |
13493 | esac | |
ec6a6fbe AK |
13494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13495 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13496 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13497 | ac_status=$? |
8a2fc586 AK |
13498 | grep -v '^ *+' conftest.er1 >conftest.err |
13499 | rm -f conftest.er1 | |
13500 | cat conftest.err >&5 | |
ec6a6fbe | 13501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13502 | (exit $ac_status); } && { |
13503 | test -z "$ac_c_werror_flag" || | |
13504 | test ! -s conftest.err | |
ec6a6fbe AK |
13505 | } && test -s conftest$ac_exeext && { |
13506 | test "$cross_compiling" = yes || | |
13507 | $as_test_x conftest$ac_exeext | |
13508 | }; then | |
bc1024f8 | 13509 | eval "$as_ac_var=yes" |
ad6254c5 | 13510 | else |
ec6a6fbe | 13511 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13512 | sed 's/^/| /' conftest.$ac_ext >&5 |
13513 | ||
bc1024f8 | 13514 | eval "$as_ac_var=no" |
ad6254c5 | 13515 | fi |
7a197a62 | 13516 | |
ec6a6fbe | 13517 | rm -rf conftest.dSYM |
25fbec5b | 13518 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13519 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13520 | fi |
ec6a6fbe AK |
13521 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13522 | $as_echo "$as_val"'` | |
13523 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13524 | $as_echo "$ac_res" >&6; } | |
13525 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13526 | $as_echo "$as_val"'` | |
13527 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13528 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13529 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13530 | _ACEOF |
13531 | ||
13532 | fi | |
bc1024f8 | 13533 | done |
ad6254c5 | 13534 | |
d179cc7a JM |
13535 | |
13536 | cat >>confdefs.h <<\_ACEOF | |
13537 | #define READLINE_SUPPORT 1 | |
13538 | _ACEOF | |
13539 | ||
06e459df | 13540 | fi |
ad6254c5 AK |
13541 | fi |
13542 | ||
13543 | ################################################################################ | |
ec6a6fbe AK |
13544 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13545 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13546 | # Check whether --enable-nls was given. |
ad6254c5 | 13547 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13548 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13549 | else |
13550 | INTL=no | |
7a197a62 AK |
13551 | fi |
13552 | ||
ec6a6fbe AK |
13553 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13554 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13555 | |
13556 | if test x$INTL = xyes; then | |
93bd259b | 13557 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13558 | INTL_PACKAGE="lvm2" |
13559 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13560 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13561 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13562 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13563 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13564 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13565 | else |
13566 | case $MSGFMT in | |
13567 | [\\/]* | ?:[\\/]*) | |
13568 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13569 | ;; | |
13570 | *) | |
13571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13572 | for as_dir in $PATH | |
13573 | do | |
13574 | IFS=$as_save_IFS | |
13575 | test -z "$as_dir" && as_dir=. | |
13576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13578 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13579 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13580 | break 2 |
13581 | fi | |
13582 | done | |
13583 | done | |
7a197a62 | 13584 | IFS=$as_save_IFS |
ad6254c5 AK |
13585 | |
13586 | ;; | |
13587 | esac | |
13588 | fi | |
13589 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13590 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13591 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13592 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13593 | else |
ec6a6fbe AK |
13594 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13595 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13596 | fi |
13597 | ||
7a197a62 | 13598 | |
ad6254c5 | 13599 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13600 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13601 | " >&5 |
ec6a6fbe | 13602 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13603 | " >&2;} |
13604 | { (exit 1); exit 1; }; } | |
13605 | fi; | |
13606 | ||
13607 | ||
7a197a62 | 13608 | # Check whether --with-localedir was given. |
ad6254c5 | 13609 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13610 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13611 | else |
13612 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13613 | fi |
13614 | ||
ad6254c5 AK |
13615 | fi |
13616 | ||
13617 | ################################################################################ | |
13618 | ||
7a197a62 | 13619 | # Check whether --with-confdir was given. |
ad6254c5 | 13620 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13621 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13622 | else |
13623 | CONFDIR='/etc' | |
7a197a62 AK |
13624 | fi |
13625 | ||
ad6254c5 AK |
13626 | |
13627 | ||
7a197a62 | 13628 | # Check whether --with-staticdir was given. |
ad6254c5 | 13629 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13630 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13631 | else |
13632 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13633 | fi |
ad6254c5 | 13634 | |
33f732c5 | 13635 | |
7a197a62 | 13636 | |
68f2de6d AK |
13637 | # Check whether --with-usrlibdir was given. |
13638 | if test "${with_usrlibdir+set}" = set; then | |
13639 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13640 | else | |
13641 | usrlibdir='${prefix}/lib' | |
13642 | fi | |
13643 | ||
13644 | ||
13645 | ||
13646 | # Check whether --with-usrsbindir was given. | |
13647 | if test "${with_usrsbindir+set}" = set; then | |
13648 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13649 | else | |
13650 | usrsbindir='${prefix}/sbin' | |
13651 | fi | |
13652 | ||
13653 | ||
a5f46f6a AK |
13654 | ################################################################################ |
13655 | ||
13656 | # Check whether --with-udev_prefix was given. | |
13657 | if test "${with_udev_prefix+set}" = set; then | |
13658 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13659 | else | |
13660 | udev_prefix='${exec_prefix}' | |
13661 | fi | |
13662 | ||
13663 | ||
78ce7acc AK |
13664 | |
13665 | # Check whether --with-udevdir was given. | |
13666 | if test "${with_udevdir+set}" = set; then | |
13667 | withval=$with_udevdir; udevdir="$withval" | |
13668 | else | |
13669 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13670 | fi | |
13671 | ||
a5f46f6a | 13672 | |
ad6254c5 AK |
13673 | ################################################################################ |
13674 | if test x$READLINE = xyes; then | |
13675 | ||
13676 | ||
13677 | for ac_header in readline/readline.h readline/history.h | |
13678 | do | |
ec6a6fbe | 13679 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13681 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13682 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13684 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13685 | fi |
ec6a6fbe AK |
13686 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13687 | $as_echo "$as_val"'` | |
13688 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13689 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13690 | else |
13691 | # Is the header compilable? | |
ec6a6fbe AK |
13692 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13693 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13694 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13695 | /* confdefs.h. */ |
13696 | _ACEOF | |
13697 | cat confdefs.h >>conftest.$ac_ext | |
13698 | cat >>conftest.$ac_ext <<_ACEOF | |
13699 | /* end confdefs.h. */ | |
13700 | $ac_includes_default | |
13701 | #include <$ac_header> | |
13702 | _ACEOF | |
13703 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13704 | if { (ac_try="$ac_compile" |
13705 | case "(($ac_try" in | |
13706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13707 | *) ac_try_echo=$ac_try;; | |
13708 | esac | |
ec6a6fbe AK |
13709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13710 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13711 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13712 | ac_status=$? |
8a2fc586 AK |
13713 | grep -v '^ *+' conftest.er1 >conftest.err |
13714 | rm -f conftest.er1 | |
13715 | cat conftest.err >&5 | |
ec6a6fbe | 13716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13717 | (exit $ac_status); } && { |
13718 | test -z "$ac_c_werror_flag" || | |
13719 | test ! -s conftest.err | |
13720 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13721 | ac_header_compiler=yes |
13722 | else | |
ec6a6fbe | 13723 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13724 | sed 's/^/| /' conftest.$ac_ext >&5 |
13725 | ||
7a197a62 | 13726 | ac_header_compiler=no |
ad6254c5 | 13727 | fi |
7a197a62 AK |
13728 | |
13729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13730 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13731 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13732 | |
13733 | # Is the header present? | |
ec6a6fbe AK |
13734 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13735 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13736 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13737 | /* confdefs.h. */ |
13738 | _ACEOF | |
13739 | cat confdefs.h >>conftest.$ac_ext | |
13740 | cat >>conftest.$ac_ext <<_ACEOF | |
13741 | /* end confdefs.h. */ | |
13742 | #include <$ac_header> | |
13743 | _ACEOF | |
7a197a62 AK |
13744 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13745 | case "(($ac_try" in | |
13746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13747 | *) ac_try_echo=$ac_try;; | |
13748 | esac | |
ec6a6fbe AK |
13749 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13750 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13751 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13752 | ac_status=$? |
13753 | grep -v '^ *+' conftest.er1 >conftest.err | |
13754 | rm -f conftest.er1 | |
13755 | cat conftest.err >&5 | |
ec6a6fbe | 13756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13757 | (exit $ac_status); } >/dev/null && { |
13758 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13759 | test ! -s conftest.err | |
13760 | }; then | |
ad6254c5 AK |
13761 | ac_header_preproc=yes |
13762 | else | |
ec6a6fbe | 13763 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13764 | sed 's/^/| /' conftest.$ac_ext >&5 |
13765 | ||
13766 | ac_header_preproc=no | |
13767 | fi | |
7a197a62 | 13768 | |
ad6254c5 | 13769 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13770 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13771 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13772 | |
13773 | # So? What about this header? | |
8a2fc586 AK |
13774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13775 | yes:no: ) | |
ec6a6fbe AK |
13776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13777 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13780 | ac_header_preproc=yes |
ad6254c5 | 13781 | ;; |
8a2fc586 | 13782 | no:yes:* ) |
ec6a6fbe AK |
13783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13784 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13786 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13788 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13790 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13791 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13792 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13794 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13795 | |
ad6254c5 AK |
13796 | ;; |
13797 | esac | |
ec6a6fbe AK |
13798 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13799 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13800 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13801 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13802 | else |
8a2fc586 | 13803 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13804 | fi |
ec6a6fbe AK |
13805 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13806 | $as_echo "$as_val"'` | |
13807 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13808 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13809 | |
13810 | fi | |
ec6a6fbe AK |
13811 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13812 | $as_echo "$as_val"'` | |
13813 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13814 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13815 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13816 | _ACEOF |
13817 | ||
13818 | else | |
ec6a6fbe AK |
13819 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13820 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
13821 | { (exit 1); exit 1; }; } |
13822 | fi | |
13823 | ||
13824 | done | |
13825 | ||
13826 | fi | |
13827 | ||
5c7fc7c4 | 13828 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
13829 | |
13830 | ||
13831 | ||
13832 | ||
13833 | ||
13834 | ||
13835 | ||
13836 | ||
13837 | ||
13838 | ||
13839 | 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 | |
13840 | do | |
ec6a6fbe | 13841 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13842 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13843 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13844 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13845 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13846 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13847 | fi |
ec6a6fbe AK |
13848 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13849 | $as_echo "$as_val"'` | |
13850 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13851 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13852 | else |
13853 | # Is the header compilable? | |
ec6a6fbe AK |
13854 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13855 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13856 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13857 | /* confdefs.h. */ |
13858 | _ACEOF | |
13859 | cat confdefs.h >>conftest.$ac_ext | |
13860 | cat >>conftest.$ac_ext <<_ACEOF | |
13861 | /* end confdefs.h. */ | |
13862 | $ac_includes_default | |
13863 | #include <$ac_header> | |
13864 | _ACEOF | |
13865 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13866 | if { (ac_try="$ac_compile" |
13867 | case "(($ac_try" in | |
13868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13869 | *) ac_try_echo=$ac_try;; | |
13870 | esac | |
ec6a6fbe AK |
13871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13872 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13873 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13874 | ac_status=$? |
8a2fc586 AK |
13875 | grep -v '^ *+' conftest.er1 >conftest.err |
13876 | rm -f conftest.er1 | |
13877 | cat conftest.err >&5 | |
ec6a6fbe | 13878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13879 | (exit $ac_status); } && { |
13880 | test -z "$ac_c_werror_flag" || | |
13881 | test ! -s conftest.err | |
13882 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13883 | ac_header_compiler=yes |
13884 | else | |
ec6a6fbe | 13885 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13886 | sed 's/^/| /' conftest.$ac_ext >&5 |
13887 | ||
7a197a62 | 13888 | ac_header_compiler=no |
ad6254c5 | 13889 | fi |
7a197a62 AK |
13890 | |
13891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13892 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13893 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13894 | |
13895 | # Is the header present? | |
ec6a6fbe AK |
13896 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13897 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13898 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13899 | /* confdefs.h. */ |
13900 | _ACEOF | |
13901 | cat confdefs.h >>conftest.$ac_ext | |
13902 | cat >>conftest.$ac_ext <<_ACEOF | |
13903 | /* end confdefs.h. */ | |
13904 | #include <$ac_header> | |
13905 | _ACEOF | |
7a197a62 AK |
13906 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13907 | case "(($ac_try" in | |
13908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13909 | *) ac_try_echo=$ac_try;; | |
13910 | esac | |
ec6a6fbe AK |
13911 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13912 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13913 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13914 | ac_status=$? |
13915 | grep -v '^ *+' conftest.er1 >conftest.err | |
13916 | rm -f conftest.er1 | |
13917 | cat conftest.err >&5 | |
ec6a6fbe | 13918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13919 | (exit $ac_status); } >/dev/null && { |
13920 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13921 | test ! -s conftest.err | |
13922 | }; then | |
ad6254c5 AK |
13923 | ac_header_preproc=yes |
13924 | else | |
ec6a6fbe | 13925 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13926 | sed 's/^/| /' conftest.$ac_ext >&5 |
13927 | ||
13928 | ac_header_preproc=no | |
13929 | fi | |
7a197a62 | 13930 | |
ad6254c5 | 13931 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13932 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13933 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13934 | |
13935 | # So? What about this header? | |
8a2fc586 AK |
13936 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13937 | yes:no: ) | |
ec6a6fbe AK |
13938 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13939 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13940 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13941 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13942 | ac_header_preproc=yes |
ad6254c5 | 13943 | ;; |
8a2fc586 | 13944 | no:yes:* ) |
ec6a6fbe AK |
13945 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13946 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13947 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13948 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13949 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13950 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13951 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13952 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13953 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13954 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13955 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13956 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13957 | |
ad6254c5 AK |
13958 | ;; |
13959 | esac | |
ec6a6fbe AK |
13960 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13961 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13962 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13963 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13964 | else |
8a2fc586 | 13965 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13966 | fi |
ec6a6fbe AK |
13967 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13968 | $as_echo "$as_val"'` | |
13969 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13970 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13971 | |
13972 | fi | |
ec6a6fbe AK |
13973 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13974 | $as_echo "$as_val"'` | |
13975 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13976 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13977 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13978 | _ACEOF |
13979 | ||
13980 | else | |
ec6a6fbe AK |
13981 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13982 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 13983 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
13984 | fi |
13985 | ||
ad6254c5 AK |
13986 | done |
13987 | ||
13988 | ||
795ca3e5 | 13989 | |
8106cdd5 | 13990 | |
ad6254c5 AK |
13991 | |
13992 | ||
13993 | for ac_func in dup2 getmntent memmove select socket | |
13994 | do | |
ec6a6fbe AK |
13995 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13996 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13997 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 13998 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13999 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14000 | else |
ad6254c5 | 14001 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14002 | /* confdefs.h. */ |
14003 | _ACEOF | |
14004 | cat confdefs.h >>conftest.$ac_ext | |
14005 | cat >>conftest.$ac_ext <<_ACEOF | |
14006 | /* end confdefs.h. */ | |
8a2fc586 AK |
14007 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14008 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14009 | #define $ac_func innocuous_$ac_func | |
14010 | ||
795ca3e5 | 14011 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
14012 | which can conflict with char $ac_func (); below. |
14013 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14014 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14015 | |
ad6254c5 AK |
14016 | #ifdef __STDC__ |
14017 | # include <limits.h> | |
14018 | #else | |
14019 | # include <assert.h> | |
14020 | #endif | |
8a2fc586 AK |
14021 | |
14022 | #undef $ac_func | |
14023 | ||
7a197a62 AK |
14024 | /* Override any GCC internal prototype to avoid an error. |
14025 | Use char because int might match the return type of a GCC | |
14026 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14027 | #ifdef __cplusplus |
14028 | extern "C" | |
ad6254c5 | 14029 | #endif |
ad6254c5 | 14030 | char $ac_func (); |
795ca3e5 AK |
14031 | /* The GNU C library defines this for functions which it implements |
14032 | to always fail with ENOSYS. Some functions are actually named | |
14033 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14034 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 14035 | choke me |
795ca3e5 AK |
14036 | #endif |
14037 | ||
ad6254c5 AK |
14038 | int |
14039 | main () | |
14040 | { | |
7a197a62 | 14041 | return $ac_func (); |
ad6254c5 AK |
14042 | ; |
14043 | return 0; | |
14044 | } | |
14045 | _ACEOF | |
14046 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14047 | if { (ac_try="$ac_link" |
14048 | case "(($ac_try" in | |
14049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14050 | *) ac_try_echo=$ac_try;; | |
14051 | esac | |
ec6a6fbe AK |
14052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14053 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14054 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14055 | ac_status=$? |
8a2fc586 AK |
14056 | grep -v '^ *+' conftest.er1 >conftest.err |
14057 | rm -f conftest.er1 | |
14058 | cat conftest.err >&5 | |
ec6a6fbe | 14059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14060 | (exit $ac_status); } && { |
14061 | test -z "$ac_c_werror_flag" || | |
14062 | test ! -s conftest.err | |
ec6a6fbe AK |
14063 | } && test -s conftest$ac_exeext && { |
14064 | test "$cross_compiling" = yes || | |
14065 | $as_test_x conftest$ac_exeext | |
14066 | }; then | |
ad6254c5 | 14067 | eval "$as_ac_var=yes" |
795ca3e5 | 14068 | else |
ec6a6fbe | 14069 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14070 | sed 's/^/| /' conftest.$ac_ext >&5 |
14071 | ||
7a197a62 | 14072 | eval "$as_ac_var=no" |
80992638 | 14073 | fi |
7a197a62 | 14074 | |
ec6a6fbe | 14075 | rm -rf conftest.dSYM |
25fbec5b | 14076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14077 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 14078 | fi |
ec6a6fbe AK |
14079 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14080 | $as_echo "$as_val"'` | |
14081 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14082 | $as_echo "$ac_res" >&6; } | |
14083 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14084 | $as_echo "$as_val"'` | |
14085 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14086 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14087 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 14088 | _ACEOF |
80992638 AK |
14089 | |
14090 | else | |
ec6a6fbe AK |
14091 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14092 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14093 | { (exit 1); exit 1; }; } |
8106cdd5 | 14094 | fi |
ad6254c5 | 14095 | done |
795ca3e5 | 14096 | |
25fbec5b AK |
14097 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
14098 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
14099 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
14100 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 14101 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 14102 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
14103 | else |
14104 | ac_func_search_save_LIBS=$LIBS | |
14105 | cat >conftest.$ac_ext <<_ACEOF | |
14106 | /* confdefs.h. */ | |
14107 | _ACEOF | |
14108 | cat confdefs.h >>conftest.$ac_ext | |
14109 | cat >>conftest.$ac_ext <<_ACEOF | |
14110 | /* end confdefs.h. */ | |
80992638 | 14111 | |
7a197a62 AK |
14112 | /* Override any GCC internal prototype to avoid an error. |
14113 | Use char because int might match the return type of a GCC | |
ad6254c5 | 14114 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
14115 | #ifdef __cplusplus |
14116 | extern "C" | |
14117 | #endif | |
25fbec5b | 14118 | char getmntent (); |
ad6254c5 AK |
14119 | int |
14120 | main () | |
14121 | { | |
25fbec5b | 14122 | return getmntent (); |
ad6254c5 AK |
14123 | ; |
14124 | return 0; | |
14125 | } | |
14126 | _ACEOF | |
25fbec5b AK |
14127 | for ac_lib in '' sun seq gen; do |
14128 | if test -z "$ac_lib"; then | |
14129 | ac_res="none required" | |
14130 | else | |
14131 | ac_res=-l$ac_lib | |
14132 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14133 | fi | |
14134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14135 | if { (ac_try="$ac_link" |
14136 | case "(($ac_try" in | |
14137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14138 | *) ac_try_echo=$ac_try;; | |
14139 | esac | |
ec6a6fbe AK |
14140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14141 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14142 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14143 | ac_status=$? |
8a2fc586 AK |
14144 | grep -v '^ *+' conftest.er1 >conftest.err |
14145 | rm -f conftest.er1 | |
14146 | cat conftest.err >&5 | |
ec6a6fbe | 14147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14148 | (exit $ac_status); } && { |
14149 | test -z "$ac_c_werror_flag" || | |
14150 | test ! -s conftest.err | |
ec6a6fbe AK |
14151 | } && test -s conftest$ac_exeext && { |
14152 | test "$cross_compiling" = yes || | |
14153 | $as_test_x conftest$ac_exeext | |
14154 | }; then | |
25fbec5b | 14155 | ac_cv_search_getmntent=$ac_res |
80992638 | 14156 | else |
ec6a6fbe | 14157 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14158 | sed 's/^/| /' conftest.$ac_ext >&5 |
14159 | ||
25fbec5b | 14160 | |
795ca3e5 AK |
14161 | fi |
14162 | ||
ec6a6fbe | 14163 | rm -rf conftest.dSYM |
25fbec5b AK |
14164 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14165 | conftest$ac_exeext | |
14166 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14167 | break | |
795ca3e5 | 14168 | fi |
25fbec5b AK |
14169 | done |
14170 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14171 | : | |
14172 | else | |
14173 | ac_cv_search_getmntent=no | |
14174 | fi | |
14175 | rm conftest.$ac_ext | |
14176 | LIBS=$ac_func_search_save_LIBS | |
14177 | fi | |
ec6a6fbe AK |
14178 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14179 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14180 | ac_res=$ac_cv_search_getmntent |
14181 | if test "$ac_res" != no; then | |
14182 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14183 | ac_cv_func_getmntent=yes | |
14184 | ||
14185 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14186 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14187 | _ACEOF |
795ca3e5 | 14188 | |
25fbec5b AK |
14189 | else |
14190 | ac_cv_func_getmntent=no | |
795ca3e5 | 14191 | fi |
795ca3e5 AK |
14192 | |
14193 | ||
ad6254c5 AK |
14194 | # AC_FUNC_REALLOC |
14195 | ||
14196 | ||
14197 | for ac_header in sys/select.h sys/socket.h | |
14198 | do | |
ec6a6fbe | 14199 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14201 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14202 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14203 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14204 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14205 | fi |
ec6a6fbe AK |
14206 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14207 | $as_echo "$as_val"'` | |
14208 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14209 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14210 | else |
ad6254c5 | 14211 | # Is the header compilable? |
ec6a6fbe AK |
14212 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14213 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14215 | /* confdefs.h. */ |
14216 | _ACEOF | |
14217 | cat confdefs.h >>conftest.$ac_ext | |
14218 | cat >>conftest.$ac_ext <<_ACEOF | |
14219 | /* end confdefs.h. */ | |
14220 | $ac_includes_default | |
14221 | #include <$ac_header> | |
14222 | _ACEOF | |
14223 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14224 | if { (ac_try="$ac_compile" |
14225 | case "(($ac_try" in | |
14226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14227 | *) ac_try_echo=$ac_try;; | |
14228 | esac | |
ec6a6fbe AK |
14229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14230 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14231 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14232 | ac_status=$? |
8a2fc586 AK |
14233 | grep -v '^ *+' conftest.er1 >conftest.err |
14234 | rm -f conftest.er1 | |
14235 | cat conftest.err >&5 | |
ec6a6fbe | 14236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14237 | (exit $ac_status); } && { |
14238 | test -z "$ac_c_werror_flag" || | |
14239 | test ! -s conftest.err | |
14240 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14241 | ac_header_compiler=yes |
80992638 | 14242 | else |
ec6a6fbe | 14243 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14244 | sed 's/^/| /' conftest.$ac_ext >&5 |
14245 | ||
7a197a62 | 14246 | ac_header_compiler=no |
ad6254c5 | 14247 | fi |
7a197a62 AK |
14248 | |
14249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14250 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14251 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14252 | |
14253 | # Is the header present? | |
ec6a6fbe AK |
14254 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14255 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14256 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14257 | /* confdefs.h. */ |
14258 | _ACEOF | |
14259 | cat confdefs.h >>conftest.$ac_ext | |
14260 | cat >>conftest.$ac_ext <<_ACEOF | |
14261 | /* end confdefs.h. */ | |
14262 | #include <$ac_header> | |
14263 | _ACEOF | |
7a197a62 AK |
14264 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14265 | case "(($ac_try" in | |
14266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14267 | *) ac_try_echo=$ac_try;; | |
14268 | esac | |
ec6a6fbe AK |
14269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14270 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14271 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14272 | ac_status=$? |
14273 | grep -v '^ *+' conftest.er1 >conftest.err | |
14274 | rm -f conftest.er1 | |
14275 | cat conftest.err >&5 | |
ec6a6fbe | 14276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14277 | (exit $ac_status); } >/dev/null && { |
14278 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14279 | test ! -s conftest.err | |
14280 | }; then | |
ad6254c5 AK |
14281 | ac_header_preproc=yes |
14282 | else | |
ec6a6fbe | 14283 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14284 | sed 's/^/| /' conftest.$ac_ext >&5 |
14285 | ||
14286 | ac_header_preproc=no | |
14287 | fi | |
7a197a62 | 14288 | |
ad6254c5 | 14289 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14290 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14291 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14292 | |
14293 | # So? What about this header? | |
8a2fc586 AK |
14294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14295 | yes:no: ) | |
ec6a6fbe AK |
14296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14297 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14299 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14300 | ac_header_preproc=yes |
ad6254c5 | 14301 | ;; |
8a2fc586 | 14302 | no:yes:* ) |
ec6a6fbe AK |
14303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14304 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14306 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14308 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14310 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14312 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14314 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14315 | |
ad6254c5 AK |
14316 | ;; |
14317 | esac | |
ec6a6fbe AK |
14318 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14319 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14320 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14321 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14322 | else |
8a2fc586 | 14323 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14324 | fi |
ec6a6fbe AK |
14325 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14326 | $as_echo "$as_val"'` | |
14327 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14328 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14329 | |
795ca3e5 | 14330 | fi |
ec6a6fbe AK |
14331 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14332 | $as_echo "$as_val"'` | |
14333 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14334 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14335 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14336 | _ACEOF |
14337 | ||
795ca3e5 AK |
14338 | fi |
14339 | ||
ad6254c5 AK |
14340 | done |
14341 | ||
ec6a6fbe AK |
14342 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14343 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14344 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14345 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14346 | else |
ad6254c5 | 14347 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14348 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14349 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14350 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14351 | /* confdefs.h. */ |
14352 | _ACEOF | |
14353 | cat confdefs.h >>conftest.$ac_ext | |
14354 | cat >>conftest.$ac_ext <<_ACEOF | |
14355 | /* end confdefs.h. */ | |
14356 | $ac_includes_default | |
25fbec5b | 14357 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14358 | # include <sys/select.h> |
14359 | #endif | |
25fbec5b | 14360 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14361 | # include <sys/socket.h> |
14362 | #endif | |
14363 | ||
14364 | int | |
14365 | main () | |
14366 | { | |
14367 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14368 | $ac_arg234, $ac_arg234, $ac_arg234, |
14369 | $ac_arg5); | |
ad6254c5 AK |
14370 | ; |
14371 | return 0; | |
14372 | } | |
14373 | _ACEOF | |
14374 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14375 | if { (ac_try="$ac_compile" |
14376 | case "(($ac_try" in | |
14377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14378 | *) ac_try_echo=$ac_try;; | |
14379 | esac | |
ec6a6fbe AK |
14380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14381 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14382 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14383 | ac_status=$? |
8a2fc586 AK |
14384 | grep -v '^ *+' conftest.er1 >conftest.err |
14385 | rm -f conftest.er1 | |
14386 | cat conftest.err >&5 | |
ec6a6fbe | 14387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14388 | (exit $ac_status); } && { |
14389 | test -z "$ac_c_werror_flag" || | |
14390 | test ! -s conftest.err | |
14391 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14392 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14393 | else | |
ec6a6fbe | 14394 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14395 | sed 's/^/| /' conftest.$ac_ext >&5 |
14396 | ||
7a197a62 | 14397 | |
ad6254c5 | 14398 | fi |
7a197a62 AK |
14399 | |
14400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14401 | done |
14402 | done | |
14403 | done | |
14404 | # Provide a safe default value. | |
14405 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14406 | ||
26e7f2e0 | 14407 | fi |
ec6a6fbe AK |
14408 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14409 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14410 | ac_save_IFS=$IFS; IFS=',' |
14411 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14412 | IFS=$ac_save_IFS | |
14413 | shift | |
14414 | ||
14415 | cat >>confdefs.h <<_ACEOF | |
14416 | #define SELECT_TYPE_ARG1 $1 | |
14417 | _ACEOF | |
14418 | ||
14419 | ||
14420 | cat >>confdefs.h <<_ACEOF | |
14421 | #define SELECT_TYPE_ARG234 ($2) | |
14422 | _ACEOF | |
14423 | ||
14424 | ||
14425 | cat >>confdefs.h <<_ACEOF | |
14426 | #define SELECT_TYPE_ARG5 ($3) | |
14427 | _ACEOF | |
14428 | ||
80992638 | 14429 | rm -f conftest* |
80992638 | 14430 | |
8106cdd5 | 14431 | fi |
ad6254c5 | 14432 | |
ad6254c5 AK |
14433 | if test x$CLUSTER != xnone; then |
14434 | ||
14435 | ||
14436 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14437 | do |
ec6a6fbe | 14438 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14439 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14440 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14441 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14443 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14444 | fi |
ec6a6fbe AK |
14445 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14446 | $as_echo "$as_val"'` | |
14447 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14448 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14449 | else |
14450 | # Is the header compilable? | |
ec6a6fbe AK |
14451 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14452 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14453 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14454 | /* confdefs.h. */ |
14455 | _ACEOF | |
14456 | cat confdefs.h >>conftest.$ac_ext | |
14457 | cat >>conftest.$ac_ext <<_ACEOF | |
14458 | /* end confdefs.h. */ | |
14459 | $ac_includes_default | |
14460 | #include <$ac_header> | |
14461 | _ACEOF | |
14462 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14463 | if { (ac_try="$ac_compile" |
14464 | case "(($ac_try" in | |
14465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14466 | *) ac_try_echo=$ac_try;; | |
14467 | esac | |
ec6a6fbe AK |
14468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14469 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14470 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14471 | ac_status=$? |
8a2fc586 AK |
14472 | grep -v '^ *+' conftest.er1 >conftest.err |
14473 | rm -f conftest.er1 | |
14474 | cat conftest.err >&5 | |
ec6a6fbe | 14475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14476 | (exit $ac_status); } && { |
14477 | test -z "$ac_c_werror_flag" || | |
14478 | test ! -s conftest.err | |
14479 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14480 | ac_header_compiler=yes |
14481 | else | |
ec6a6fbe | 14482 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14483 | sed 's/^/| /' conftest.$ac_ext >&5 |
14484 | ||
7a197a62 | 14485 | ac_header_compiler=no |
ad6254c5 | 14486 | fi |
7a197a62 AK |
14487 | |
14488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14489 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14490 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14491 | |
14492 | # Is the header present? | |
ec6a6fbe AK |
14493 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14494 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14495 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14496 | /* confdefs.h. */ |
14497 | _ACEOF | |
14498 | cat confdefs.h >>conftest.$ac_ext | |
14499 | cat >>conftest.$ac_ext <<_ACEOF | |
14500 | /* end confdefs.h. */ | |
14501 | #include <$ac_header> | |
14502 | _ACEOF | |
7a197a62 AK |
14503 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14504 | case "(($ac_try" in | |
14505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14506 | *) ac_try_echo=$ac_try;; | |
14507 | esac | |
ec6a6fbe AK |
14508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14509 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14511 | ac_status=$? |
14512 | grep -v '^ *+' conftest.er1 >conftest.err | |
14513 | rm -f conftest.er1 | |
14514 | cat conftest.err >&5 | |
ec6a6fbe | 14515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14516 | (exit $ac_status); } >/dev/null && { |
14517 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14518 | test ! -s conftest.err | |
14519 | }; then | |
ad6254c5 AK |
14520 | ac_header_preproc=yes |
14521 | else | |
ec6a6fbe | 14522 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14523 | sed 's/^/| /' conftest.$ac_ext >&5 |
14524 | ||
14525 | ac_header_preproc=no | |
14526 | fi | |
7a197a62 | 14527 | |
ad6254c5 | 14528 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14529 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14530 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14531 | |
14532 | # So? What about this header? | |
8a2fc586 AK |
14533 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14534 | yes:no: ) | |
ec6a6fbe AK |
14535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14536 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14538 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14539 | ac_header_preproc=yes |
ad6254c5 | 14540 | ;; |
8a2fc586 | 14541 | no:yes:* ) |
ec6a6fbe AK |
14542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14543 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14545 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14547 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14549 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14550 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14551 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14552 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14553 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14554 | |
ad6254c5 AK |
14555 | ;; |
14556 | esac | |
ec6a6fbe AK |
14557 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14558 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14559 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14560 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14561 | else |
8a2fc586 | 14562 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14563 | fi |
ec6a6fbe AK |
14564 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14565 | $as_echo "$as_val"'` | |
14566 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14567 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14568 | |
14569 | fi | |
ec6a6fbe AK |
14570 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14571 | $as_echo "$as_val"'` | |
14572 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14573 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14574 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14575 | _ACEOF |
14576 | ||
80992638 | 14577 | else |
ec6a6fbe AK |
14578 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14579 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14580 | { (exit 1); exit 1; }; } |
b896caa1 | 14581 | fi |
ad6254c5 | 14582 | |
b896caa1 AK |
14583 | done |
14584 | ||
14585 | ||
ad6254c5 AK |
14586 | for ac_func in socket |
14587 | do | |
ec6a6fbe AK |
14588 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14589 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14590 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14591 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14592 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14593 | else |
ad6254c5 | 14594 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14595 | /* confdefs.h. */ |
14596 | _ACEOF | |
14597 | cat confdefs.h >>conftest.$ac_ext | |
14598 | cat >>conftest.$ac_ext <<_ACEOF | |
14599 | /* end confdefs.h. */ | |
8a2fc586 AK |
14600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14602 | #define $ac_func innocuous_$ac_func | |
14603 | ||
ad6254c5 AK |
14604 | /* System header to define __stub macros and hopefully few prototypes, |
14605 | which can conflict with char $ac_func (); below. | |
14606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14607 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14608 | |
ad6254c5 AK |
14609 | #ifdef __STDC__ |
14610 | # include <limits.h> | |
14611 | #else | |
14612 | # include <assert.h> | |
14613 | #endif | |
8a2fc586 AK |
14614 | |
14615 | #undef $ac_func | |
14616 | ||
7a197a62 AK |
14617 | /* Override any GCC internal prototype to avoid an error. |
14618 | Use char because int might match the return type of a GCC | |
14619 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14620 | #ifdef __cplusplus |
14621 | extern "C" | |
ad6254c5 | 14622 | #endif |
ad6254c5 AK |
14623 | char $ac_func (); |
14624 | /* The GNU C library defines this for functions which it implements | |
14625 | to always fail with ENOSYS. Some functions are actually named | |
14626 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14627 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14628 | choke me |
ad6254c5 AK |
14629 | #endif |
14630 | ||
14631 | int | |
14632 | main () | |
14633 | { | |
7a197a62 | 14634 | return $ac_func (); |
ad6254c5 AK |
14635 | ; |
14636 | return 0; | |
14637 | } | |
14638 | _ACEOF | |
14639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14640 | if { (ac_try="$ac_link" |
14641 | case "(($ac_try" in | |
14642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14643 | *) ac_try_echo=$ac_try;; | |
14644 | esac | |
ec6a6fbe AK |
14645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14646 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14647 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14648 | ac_status=$? |
8a2fc586 AK |
14649 | grep -v '^ *+' conftest.er1 >conftest.err |
14650 | rm -f conftest.er1 | |
14651 | cat conftest.err >&5 | |
ec6a6fbe | 14652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14653 | (exit $ac_status); } && { |
14654 | test -z "$ac_c_werror_flag" || | |
14655 | test ! -s conftest.err | |
ec6a6fbe AK |
14656 | } && test -s conftest$ac_exeext && { |
14657 | test "$cross_compiling" = yes || | |
14658 | $as_test_x conftest$ac_exeext | |
14659 | }; then | |
ad6254c5 AK |
14660 | eval "$as_ac_var=yes" |
14661 | else | |
ec6a6fbe | 14662 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14663 | sed 's/^/| /' conftest.$ac_ext >&5 |
14664 | ||
7a197a62 | 14665 | eval "$as_ac_var=no" |
ad6254c5 | 14666 | fi |
7a197a62 | 14667 | |
ec6a6fbe | 14668 | rm -rf conftest.dSYM |
25fbec5b | 14669 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14670 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14671 | fi |
ec6a6fbe AK |
14672 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14673 | $as_echo "$as_val"'` | |
14674 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14675 | $as_echo "$ac_res" >&6; } | |
14676 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14677 | $as_echo "$as_val"'` | |
14678 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14679 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14680 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14681 | _ACEOF |
14682 | ||
14683 | else | |
ec6a6fbe AK |
14684 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14685 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14686 | { (exit 1); exit 1; }; } |
14687 | fi | |
14688 | done | |
14689 | ||
14690 | fi | |
14691 | ||
14692 | if test x$HAVE_LIBDL = xyes; then | |
14693 | ||
14694 | for ac_header in dlfcn.h | |
14695 | do | |
ec6a6fbe | 14696 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14697 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14698 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14699 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14700 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14701 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14702 | fi |
ec6a6fbe AK |
14703 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14704 | $as_echo "$as_val"'` | |
14705 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14706 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14707 | else |
14708 | # Is the header compilable? | |
ec6a6fbe AK |
14709 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14710 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14711 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14712 | /* confdefs.h. */ |
14713 | _ACEOF | |
14714 | cat confdefs.h >>conftest.$ac_ext | |
14715 | cat >>conftest.$ac_ext <<_ACEOF | |
14716 | /* end confdefs.h. */ | |
14717 | $ac_includes_default | |
14718 | #include <$ac_header> | |
14719 | _ACEOF | |
14720 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14721 | if { (ac_try="$ac_compile" |
14722 | case "(($ac_try" in | |
14723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14724 | *) ac_try_echo=$ac_try;; | |
14725 | esac | |
ec6a6fbe AK |
14726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14727 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14728 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14729 | ac_status=$? |
8a2fc586 AK |
14730 | grep -v '^ *+' conftest.er1 >conftest.err |
14731 | rm -f conftest.er1 | |
14732 | cat conftest.err >&5 | |
ec6a6fbe | 14733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14734 | (exit $ac_status); } && { |
14735 | test -z "$ac_c_werror_flag" || | |
14736 | test ! -s conftest.err | |
14737 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14738 | ac_header_compiler=yes |
14739 | else | |
ec6a6fbe | 14740 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14741 | sed 's/^/| /' conftest.$ac_ext >&5 |
14742 | ||
7a197a62 | 14743 | ac_header_compiler=no |
ad6254c5 | 14744 | fi |
7a197a62 AK |
14745 | |
14746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14747 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14748 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14749 | |
14750 | # Is the header present? | |
ec6a6fbe AK |
14751 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14752 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14753 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14754 | /* confdefs.h. */ |
14755 | _ACEOF | |
14756 | cat confdefs.h >>conftest.$ac_ext | |
14757 | cat >>conftest.$ac_ext <<_ACEOF | |
14758 | /* end confdefs.h. */ | |
14759 | #include <$ac_header> | |
14760 | _ACEOF | |
7a197a62 AK |
14761 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14762 | case "(($ac_try" in | |
14763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14764 | *) ac_try_echo=$ac_try;; | |
14765 | esac | |
ec6a6fbe AK |
14766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14767 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14769 | ac_status=$? |
14770 | grep -v '^ *+' conftest.er1 >conftest.err | |
14771 | rm -f conftest.er1 | |
14772 | cat conftest.err >&5 | |
ec6a6fbe | 14773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14774 | (exit $ac_status); } >/dev/null && { |
14775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14776 | test ! -s conftest.err | |
14777 | }; then | |
ad6254c5 AK |
14778 | ac_header_preproc=yes |
14779 | else | |
ec6a6fbe | 14780 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14781 | sed 's/^/| /' conftest.$ac_ext >&5 |
14782 | ||
14783 | ac_header_preproc=no | |
14784 | fi | |
7a197a62 | 14785 | |
ad6254c5 | 14786 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14787 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14788 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14789 | |
14790 | # So? What about this header? | |
8a2fc586 AK |
14791 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14792 | yes:no: ) | |
ec6a6fbe AK |
14793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14794 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14795 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14796 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14797 | ac_header_preproc=yes |
ad6254c5 | 14798 | ;; |
8a2fc586 | 14799 | no:yes:* ) |
ec6a6fbe AK |
14800 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14801 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14802 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14803 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14804 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14805 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14806 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14807 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14808 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14809 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14810 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14811 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14812 | |
ad6254c5 AK |
14813 | ;; |
14814 | esac | |
ec6a6fbe AK |
14815 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14816 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14818 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14819 | else |
8a2fc586 | 14820 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 14821 | fi |
ec6a6fbe AK |
14822 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14823 | $as_echo "$as_val"'` | |
14824 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14825 | $as_echo "$ac_res" >&6; } | |
80992638 | 14826 | |
8106cdd5 | 14827 | fi |
ec6a6fbe AK |
14828 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14829 | $as_echo "$as_val"'` | |
14830 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14831 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14832 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14833 | _ACEOF |
795ca3e5 AK |
14834 | |
14835 | else | |
ec6a6fbe AK |
14836 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14837 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14838 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14839 | fi |
14840 | ||
ad6254c5 | 14841 | done |
80992638 | 14842 | |
ad6254c5 | 14843 | fi |
80992638 | 14844 | |
ad6254c5 | 14845 | if test x$INTL = xyes; then |
83912faa | 14846 | |
ad6254c5 AK |
14847 | for ac_header in libintl.h |
14848 | do | |
ec6a6fbe | 14849 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14850 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14851 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14852 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14854 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14855 | fi |
ec6a6fbe AK |
14856 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14857 | $as_echo "$as_val"'` | |
14858 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14859 | $as_echo "$ac_res" >&6; } | |
83912faa | 14860 | else |
ad6254c5 | 14861 | # Is the header compilable? |
ec6a6fbe AK |
14862 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14863 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14864 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14865 | /* confdefs.h. */ |
14866 | _ACEOF | |
14867 | cat confdefs.h >>conftest.$ac_ext | |
14868 | cat >>conftest.$ac_ext <<_ACEOF | |
14869 | /* end confdefs.h. */ | |
14870 | $ac_includes_default | |
14871 | #include <$ac_header> | |
14872 | _ACEOF | |
14873 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14874 | if { (ac_try="$ac_compile" |
14875 | case "(($ac_try" in | |
14876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14877 | *) ac_try_echo=$ac_try;; | |
14878 | esac | |
ec6a6fbe AK |
14879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14880 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14881 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14882 | ac_status=$? |
8a2fc586 AK |
14883 | grep -v '^ *+' conftest.er1 >conftest.err |
14884 | rm -f conftest.er1 | |
14885 | cat conftest.err >&5 | |
ec6a6fbe | 14886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14887 | (exit $ac_status); } && { |
14888 | test -z "$ac_c_werror_flag" || | |
14889 | test ! -s conftest.err | |
14890 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14891 | ac_header_compiler=yes |
14892 | else | |
ec6a6fbe | 14893 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14894 | sed 's/^/| /' conftest.$ac_ext >&5 |
14895 | ||
7a197a62 | 14896 | ac_header_compiler=no |
ad6254c5 | 14897 | fi |
7a197a62 AK |
14898 | |
14899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14900 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14901 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14902 | |
14903 | # Is the header present? | |
ec6a6fbe AK |
14904 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14905 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14906 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14907 | /* confdefs.h. */ |
14908 | _ACEOF | |
14909 | cat confdefs.h >>conftest.$ac_ext | |
14910 | cat >>conftest.$ac_ext <<_ACEOF | |
14911 | /* end confdefs.h. */ | |
14912 | #include <$ac_header> | |
14913 | _ACEOF | |
7a197a62 AK |
14914 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14915 | case "(($ac_try" in | |
14916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14917 | *) ac_try_echo=$ac_try;; | |
14918 | esac | |
ec6a6fbe AK |
14919 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14920 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14921 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14922 | ac_status=$? |
14923 | grep -v '^ *+' conftest.er1 >conftest.err | |
14924 | rm -f conftest.er1 | |
14925 | cat conftest.err >&5 | |
ec6a6fbe | 14926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14927 | (exit $ac_status); } >/dev/null && { |
14928 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14929 | test ! -s conftest.err | |
14930 | }; then | |
ad6254c5 AK |
14931 | ac_header_preproc=yes |
14932 | else | |
ec6a6fbe | 14933 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14934 | sed 's/^/| /' conftest.$ac_ext >&5 |
14935 | ||
14936 | ac_header_preproc=no | |
14937 | fi | |
7a197a62 | 14938 | |
ad6254c5 | 14939 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14940 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14941 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14942 | |
14943 | # So? What about this header? | |
8a2fc586 AK |
14944 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14945 | yes:no: ) | |
ec6a6fbe AK |
14946 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14947 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14948 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14949 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14950 | ac_header_preproc=yes |
ad6254c5 | 14951 | ;; |
8a2fc586 | 14952 | no:yes:* ) |
ec6a6fbe AK |
14953 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14954 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14955 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14956 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14957 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14958 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14959 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14960 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14961 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14962 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14963 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14964 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14965 | |
ad6254c5 AK |
14966 | ;; |
14967 | esac | |
ec6a6fbe AK |
14968 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14969 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14970 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14971 | $as_echo_n "(cached) " >&6 |
80992638 | 14972 | else |
8a2fc586 | 14973 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 14974 | fi |
ec6a6fbe AK |
14975 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14976 | $as_echo "$as_val"'` | |
14977 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14978 | $as_echo "$ac_res" >&6; } | |
83912faa | 14979 | |
69792976 | 14980 | fi |
ec6a6fbe AK |
14981 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14982 | $as_echo "$as_val"'` | |
14983 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14984 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14985 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14986 | _ACEOF |
69792976 | 14987 | |
69792976 | 14988 | else |
ec6a6fbe AK |
14989 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14990 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14991 | { (exit 1); exit 1; }; } |
80992638 AK |
14992 | fi |
14993 | ||
ad6254c5 | 14994 | done |
69792976 | 14995 | |
ad6254c5 AK |
14996 | fi |
14997 | ||
ad6254c5 AK |
14998 | if test x$HAVE_SELINUX = xyes; then |
14999 | ||
15000 | for ac_header in selinux/selinux.h | |
15001 | do | |
ec6a6fbe | 15002 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15003 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15004 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15005 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15006 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15007 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15008 | fi |
ec6a6fbe AK |
15009 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15010 | $as_echo "$as_val"'` | |
15011 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15012 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 15013 | else |
ad6254c5 | 15014 | # Is the header compilable? |
ec6a6fbe AK |
15015 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15016 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15017 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15018 | /* confdefs.h. */ |
15019 | _ACEOF | |
15020 | cat confdefs.h >>conftest.$ac_ext | |
15021 | cat >>conftest.$ac_ext <<_ACEOF | |
15022 | /* end confdefs.h. */ | |
15023 | $ac_includes_default | |
15024 | #include <$ac_header> | |
15025 | _ACEOF | |
15026 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15027 | if { (ac_try="$ac_compile" |
15028 | case "(($ac_try" in | |
15029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15030 | *) ac_try_echo=$ac_try;; | |
15031 | esac | |
ec6a6fbe AK |
15032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15033 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15034 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15035 | ac_status=$? |
8a2fc586 AK |
15036 | grep -v '^ *+' conftest.er1 >conftest.err |
15037 | rm -f conftest.er1 | |
15038 | cat conftest.err >&5 | |
ec6a6fbe | 15039 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15040 | (exit $ac_status); } && { |
15041 | test -z "$ac_c_werror_flag" || | |
15042 | test ! -s conftest.err | |
15043 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15044 | ac_header_compiler=yes |
15045 | else | |
ec6a6fbe | 15046 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15047 | sed 's/^/| /' conftest.$ac_ext >&5 |
15048 | ||
7a197a62 | 15049 | ac_header_compiler=no |
ad6254c5 | 15050 | fi |
7a197a62 AK |
15051 | |
15052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15053 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15054 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15055 | |
15056 | # Is the header present? | |
ec6a6fbe AK |
15057 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15058 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15059 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15060 | /* confdefs.h. */ |
15061 | _ACEOF | |
15062 | cat confdefs.h >>conftest.$ac_ext | |
15063 | cat >>conftest.$ac_ext <<_ACEOF | |
15064 | /* end confdefs.h. */ | |
15065 | #include <$ac_header> | |
15066 | _ACEOF | |
7a197a62 AK |
15067 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15068 | case "(($ac_try" in | |
15069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15070 | *) ac_try_echo=$ac_try;; | |
15071 | esac | |
ec6a6fbe AK |
15072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15073 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15074 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15075 | ac_status=$? |
15076 | grep -v '^ *+' conftest.er1 >conftest.err | |
15077 | rm -f conftest.er1 | |
15078 | cat conftest.err >&5 | |
ec6a6fbe | 15079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15080 | (exit $ac_status); } >/dev/null && { |
15081 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15082 | test ! -s conftest.err | |
15083 | }; then | |
ad6254c5 AK |
15084 | ac_header_preproc=yes |
15085 | else | |
ec6a6fbe | 15086 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15087 | sed 's/^/| /' conftest.$ac_ext >&5 |
15088 | ||
15089 | ac_header_preproc=no | |
15090 | fi | |
7a197a62 | 15091 | |
ad6254c5 | 15092 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15093 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15094 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15095 | |
15096 | # So? What about this header? | |
8a2fc586 AK |
15097 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15098 | yes:no: ) | |
ec6a6fbe AK |
15099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15100 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15102 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15103 | ac_header_preproc=yes |
ad6254c5 | 15104 | ;; |
8a2fc586 | 15105 | no:yes:* ) |
ec6a6fbe AK |
15106 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15107 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15108 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15109 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15110 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15111 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15112 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15113 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15114 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15115 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15116 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15117 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15118 | |
ad6254c5 AK |
15119 | ;; |
15120 | esac | |
ec6a6fbe AK |
15121 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15122 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15123 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15124 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15125 | else |
8a2fc586 | 15126 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 15127 | fi |
ec6a6fbe AK |
15128 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15129 | $as_echo "$as_val"'` | |
15130 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15131 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 15132 | |
ad6254c5 | 15133 | fi |
ec6a6fbe AK |
15134 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15135 | $as_echo "$as_val"'` | |
15136 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15137 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15138 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15139 | _ACEOF |
0a62c911 | 15140 | |
0a62c911 | 15141 | else |
ec6a6fbe AK |
15142 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15143 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15144 | { (exit 1); exit 1; }; } |
80992638 AK |
15145 | fi |
15146 | ||
ad6254c5 | 15147 | done |
0a62c911 | 15148 | |
ad6254c5 | 15149 | fi |
0a62c911 | 15150 | |
a5f46f6a AK |
15151 | if test x$UDEV_SYNC = xyes; then |
15152 | ||
15153 | ||
15154 | for ac_header in sys/ipc.h sys/sem.h | |
15155 | do | |
15156 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15158 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15159 | $as_echo_n "checking for $ac_header... " >&6; } | |
15160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15161 | $as_echo_n "(cached) " >&6 | |
15162 | fi | |
15163 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15164 | $as_echo "$as_val"'` | |
15165 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15166 | $as_echo "$ac_res" >&6; } | |
15167 | else | |
15168 | # Is the header compilable? | |
15169 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15170 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15171 | cat >conftest.$ac_ext <<_ACEOF | |
15172 | /* confdefs.h. */ | |
15173 | _ACEOF | |
15174 | cat confdefs.h >>conftest.$ac_ext | |
15175 | cat >>conftest.$ac_ext <<_ACEOF | |
15176 | /* end confdefs.h. */ | |
15177 | $ac_includes_default | |
15178 | #include <$ac_header> | |
15179 | _ACEOF | |
15180 | rm -f conftest.$ac_objext | |
15181 | if { (ac_try="$ac_compile" | |
15182 | case "(($ac_try" in | |
15183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15184 | *) ac_try_echo=$ac_try;; | |
15185 | esac | |
15186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15187 | $as_echo "$ac_try_echo") >&5 | |
15188 | (eval "$ac_compile") 2>conftest.er1 | |
15189 | ac_status=$? | |
15190 | grep -v '^ *+' conftest.er1 >conftest.err | |
15191 | rm -f conftest.er1 | |
15192 | cat conftest.err >&5 | |
15193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15194 | (exit $ac_status); } && { | |
15195 | test -z "$ac_c_werror_flag" || | |
15196 | test ! -s conftest.err | |
15197 | } && test -s conftest.$ac_objext; then | |
15198 | ac_header_compiler=yes | |
15199 | else | |
15200 | $as_echo "$as_me: failed program was:" >&5 | |
15201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15202 | ||
15203 | ac_header_compiler=no | |
15204 | fi | |
15205 | ||
15206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15207 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15208 | $as_echo "$ac_header_compiler" >&6; } | |
15209 | ||
15210 | # Is the header present? | |
15211 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15212 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15213 | cat >conftest.$ac_ext <<_ACEOF | |
15214 | /* confdefs.h. */ | |
15215 | _ACEOF | |
15216 | cat confdefs.h >>conftest.$ac_ext | |
15217 | cat >>conftest.$ac_ext <<_ACEOF | |
15218 | /* end confdefs.h. */ | |
15219 | #include <$ac_header> | |
15220 | _ACEOF | |
15221 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15222 | case "(($ac_try" in | |
15223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15224 | *) ac_try_echo=$ac_try;; | |
15225 | esac | |
15226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15227 | $as_echo "$ac_try_echo") >&5 | |
15228 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15229 | ac_status=$? | |
15230 | grep -v '^ *+' conftest.er1 >conftest.err | |
15231 | rm -f conftest.er1 | |
15232 | cat conftest.err >&5 | |
15233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15234 | (exit $ac_status); } >/dev/null && { | |
15235 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15236 | test ! -s conftest.err | |
15237 | }; then | |
15238 | ac_header_preproc=yes | |
15239 | else | |
15240 | $as_echo "$as_me: failed program was:" >&5 | |
15241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15242 | ||
15243 | ac_header_preproc=no | |
15244 | fi | |
15245 | ||
15246 | rm -f conftest.err conftest.$ac_ext | |
15247 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15248 | $as_echo "$ac_header_preproc" >&6; } | |
15249 | ||
15250 | # So? What about this header? | |
15251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15252 | yes:no: ) | |
15253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15254 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15256 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15257 | ac_header_preproc=yes | |
15258 | ;; | |
15259 | no:yes:* ) | |
15260 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15261 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15262 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15263 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15265 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15267 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15269 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15271 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15272 | ||
15273 | ;; | |
15274 | esac | |
15275 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15276 | $as_echo_n "checking for $ac_header... " >&6; } | |
15277 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15278 | $as_echo_n "(cached) " >&6 | |
15279 | else | |
15280 | eval "$as_ac_Header=\$ac_header_preproc" | |
15281 | fi | |
15282 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15283 | $as_echo "$as_val"'` | |
15284 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15285 | $as_echo "$ac_res" >&6; } | |
15286 | ||
15287 | fi | |
15288 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15289 | $as_echo "$as_val"'` | |
15290 | if test "x$as_val" = x""yes; then | |
15291 | cat >>confdefs.h <<_ACEOF | |
15292 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15293 | _ACEOF | |
15294 | ||
15295 | else | |
15296 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15297 | $as_echo "$as_me: error: bailing out" >&2;} | |
15298 | { (exit 1); exit 1; }; } | |
15299 | fi | |
15300 | ||
15301 | done | |
15302 | ||
15303 | fi | |
15304 | ||
a653923f AK |
15305 | ################################################################################ |
15306 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15307 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15308 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15309 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15310 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15311 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15312 | else |
15313 | case $MODPROBE_CMD in | |
15314 | [\\/]* | ?:[\\/]*) | |
15315 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15316 | ;; | |
15317 | *) | |
15318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15319 | for as_dir in $PATH | |
15320 | do | |
15321 | IFS=$as_save_IFS | |
15322 | test -z "$as_dir" && as_dir=. | |
15323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15325 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15326 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15327 | break 2 |
15328 | fi | |
15329 | done | |
15330 | done | |
7a197a62 | 15331 | IFS=$as_save_IFS |
72b2cb61 AK |
15332 | |
15333 | ;; | |
15334 | esac | |
15335 | fi | |
15336 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15337 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15338 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15339 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15340 | else |
ec6a6fbe AK |
15341 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15342 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15343 | fi |
15344 | ||
a653923f | 15345 | |
7a197a62 | 15346 | |
a653923f | 15347 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15348 | |
15349 | cat >>confdefs.h <<_ACEOF | |
15350 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15351 | _ACEOF | |
15352 | ||
a653923f AK |
15353 | fi |
15354 | ||
80992638 | 15355 | ################################################################################ |
93bd259b AK |
15356 | |
15357 | ||
15358 | if test "$BUILD_DMEVENTD" = yes; then | |
15359 | ||
15360 | # Check whether --with-dmeventd-pidfile was given. | |
15361 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15362 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15363 | #define DMEVENTD_PIDFILE "$withval" | |
15364 | _ACEOF | |
15365 | ||
15366 | else | |
15367 | cat >>confdefs.h <<_ACEOF | |
15368 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15369 | _ACEOF | |
15370 | ||
15371 | fi | |
15372 | ||
15373 | fi | |
15374 | ||
15375 | ||
15376 | ||
15377 | if test "$BUILD_DMEVENTD" = yes; then | |
15378 | dmeventd_prefix="$exec_prefix" | |
15379 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15380 | dmeventd_prefix="$prefix" | |
15381 | fi | |
15382 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15383 | dmeventd_prefix="" | |
15384 | fi | |
15385 | ||
15386 | # Check whether --with-dmeventd-path was given. | |
15387 | if test "${with_dmeventd_path+set}" = set; then | |
15388 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15389 | #define DMEVENTD_PATH "$withval" | |
15390 | _ACEOF | |
15391 | ||
15392 | else | |
15393 | cat >>confdefs.h <<_ACEOF | |
15394 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15395 | _ACEOF | |
15396 | ||
15397 | fi | |
15398 | ||
15399 | fi | |
15400 | ||
15401 | ################################################################################ | |
ec6a6fbe AK |
15402 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15403 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15404 | |
15405 | # Check whether --with-interface was given. | |
15406 | if test "${with_interface+set}" = set; then | |
15407 | withval=$with_interface; interface="$withval" | |
15408 | else | |
15409 | interface=ioctl | |
15410 | fi | |
15411 | ||
15412 | if [ "x$interface" != xioctl ]; | |
15413 | then | |
ec6a6fbe AK |
15414 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15415 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15416 | { (exit 1); exit 1; }; } |
15417 | fi | |
ec6a6fbe AK |
15418 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15419 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15420 | |
15421 | ################################################################################ | |
db8b5af9 | 15422 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15423 | |
15424 | cat >>confdefs.h <<_ACEOF | |
15425 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15426 | _ACEOF | |
15427 | ||
15428 | ||
db8b5af9 | 15429 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15430 | |
db8b5af9 | 15431 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15432 | |
db8b5af9 | 15433 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 15434 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15435 | VER=`echo "$VER" | $AWK '{print $1}'` |
15436 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15437 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15438 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15439 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15440 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15441 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15442 | |
80992638 | 15443 | ################################################################################ |
fae0c576 | 15444 | |
83912faa | 15445 | |
795ca3e5 AK |
15446 | |
15447 | ||
15448 | ||
15449 | ||
15450 | ||
15451 | ||
5a52dca9 | 15452 | |
8ef2b021 | 15453 | |
199e490e | 15454 | |
69792976 AK |
15455 | |
15456 | ||
15457 | ||
d0191583 | 15458 | |
69792976 | 15459 | |
8106cdd5 AK |
15460 | |
15461 | ||
15462 | ||
15463 | ||
15464 | ||
d68a82ec | 15465 | |
036f273a | 15466 | |
7d1552c9 | 15467 | |
8106cdd5 | 15468 | |
0a62c911 | 15469 | |
8106cdd5 | 15470 | |
4a7f3eb2 | 15471 | |
4922197a AK |
15472 | |
15473 | ||
d8ac0fbc | 15474 | |
1a9ea74d | 15475 | |
8a2fc586 AK |
15476 | |
15477 | ||
d0191583 | 15478 | |
93bd259b AK |
15479 | |
15480 | ||
15481 | ||
15482 | ||
15483 | ||
d0191583 JM |
15484 | |
15485 | ||
15486 | ||
15487 | ||
15488 | ||
8a2fc586 | 15489 | |
8ce0cbda | 15490 | |
8b1a3214 | 15491 | |
ec6a6fbe AK |
15492 | |
15493 | ||
15494 | ||
15495 | ||
e2997b73 AK |
15496 | |
15497 | ||
15498 | ||
15499 | ||
15500 | ||
15501 | ||
a946372e AK |
15502 | |
15503 | ||
15504 | ||
15505 | ||
15506 | ||
15507 | ||
15508 | ||
15509 | ||
15510 | ||
15511 | ||
15512 | ||
ec6a6fbe | 15513 | |
33f732c5 | 15514 | |
66e941e8 | 15515 | |
d3c8211f | 15516 | |
7e3fe830 | 15517 | |
a5f46f6a AK |
15518 | |
15519 | ||
15520 | ||
572fefeb | 15521 | |
90c80887 AK |
15522 | |
15523 | ||
bf456146 | 15524 | |
e1b8a236 | 15525 | |
68f2de6d AK |
15526 | |
15527 | ||
80992638 | 15528 | ################################################################################ |
db8b5af9 | 15529 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 15530 | |
ad6254c5 | 15531 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15532 | # This file is a shell script that caches the results of configure |
15533 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15534 | # scripts and configure runs, see configure's option --config-cache. |
15535 | # It is not useful on other systems. If it contains results you don't | |
15536 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15537 | # |
ad6254c5 AK |
15538 | # config.status only pays attention to the cache file if you give it |
15539 | # the --recheck option to rerun configure. | |
795ca3e5 | 15540 | # |
ad6254c5 AK |
15541 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15542 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15543 | # following values. | |
15544 | ||
15545 | _ACEOF | |
15546 | ||
795ca3e5 AK |
15547 | # The following way of writing the cache mishandles newlines in values, |
15548 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15549 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15550 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15551 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15552 | ( |
15553 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15554 | eval ac_val=\$$ac_var | |
15555 | case $ac_val in #( | |
15556 | *${as_nl}*) | |
15557 | case $ac_var in #( | |
ec6a6fbe AK |
15558 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15559 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15560 | esac |
15561 | case $ac_var in #( | |
15562 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15563 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15564 | *) $as_unset $ac_var ;; |
15565 | esac ;; | |
15566 | esac | |
15567 | done | |
15568 | ||
ad6254c5 | 15569 | (set) 2>&1 | |
7a197a62 AK |
15570 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15571 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15572 | # `set' does not quote correctly, so add quotes (double-quote |
15573 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15574 | sed -n \ | |
8a2fc586 AK |
15575 | "s/'/'\\\\''/g; |
15576 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15577 | ;; #( |
ad6254c5 AK |
15578 | *) |
15579 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15580 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15581 | ;; |
7a197a62 AK |
15582 | esac | |
15583 | sort | |
15584 | ) | | |
ad6254c5 | 15585 | sed ' |
7a197a62 | 15586 | /^ac_cv_env_/b end |
ad6254c5 | 15587 | t clear |
7a197a62 | 15588 | :clear |
ad6254c5 AK |
15589 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15590 | t end | |
7a197a62 AK |
15591 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15592 | :end' >>confcache | |
15593 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15594 | if test -w "$cache_file"; then | |
15595 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15596 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15597 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15598 | cat confcache >$cache_file |
795ca3e5 | 15599 | else |
ec6a6fbe AK |
15600 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15601 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15602 | fi |
15603 | fi | |
15604 | rm -f confcache | |
15605 | ||
795ca3e5 AK |
15606 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15607 | # Let make expand exec_prefix. | |
15608 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15609 | ||
72b2cb61 | 15610 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15611 | |
15612 | ac_libobjs= | |
15613 | ac_ltlibobjs= | |
15614 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15615 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15616 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15617 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15618 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15619 | # will be set to the directory where LIBOBJS objects are built. | |
15620 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15621 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15622 | done |
15623 | LIBOBJS=$ac_libobjs | |
80992638 | 15624 | |
ad6254c5 AK |
15625 | LTLIBOBJS=$ac_ltlibobjs |
15626 | ||
15627 | ||
15628 | ||
15629 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15630 | ac_write_fail=0 |
ad6254c5 AK |
15631 | ac_clean_files_save=$ac_clean_files |
15632 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15633 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15634 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15635 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15636 | #! $SHELL |
15637 | # Generated by $as_me. | |
795ca3e5 | 15638 | # Run this file to recreate the current configuration. |
795ca3e5 | 15639 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15640 | # configure, is in config.log if it exists. |
15641 | ||
15642 | debug=false | |
15643 | ac_cs_recheck=false | |
15644 | ac_cs_silent=false | |
15645 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15646 | _ACEOF | |
15647 | ||
ec6a6fbe | 15648 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15649 | ## --------------------- ## |
15650 | ## M4sh Initialization. ## | |
15651 | ## --------------------- ## | |
15652 | ||
25fbec5b AK |
15653 | # Be more Bourne compatible |
15654 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15655 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15656 | emulate sh | |
15657 | NULLCMD=: | |
ec6a6fbe | 15658 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15659 | # is contrary to our usage. Disable this feature. |
15660 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15661 | setopt NO_GLOB_SUBST |
15662 | else | |
25fbec5b AK |
15663 | case `(set -o) 2>/dev/null` in |
15664 | *posix*) set -o posix ;; | |
15665 | esac | |
15666 | ||
7a197a62 | 15667 | fi |
25fbec5b AK |
15668 | |
15669 | ||
7a197a62 AK |
15670 | |
15671 | ||
15672 | # PATH needs CR | |
15673 | # Avoid depending upon Character Ranges. | |
15674 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15675 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15676 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15677 | as_cr_digits='0123456789' | |
15678 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15679 | ||
ec6a6fbe AK |
15680 | as_nl=' |
15681 | ' | |
15682 | export as_nl | |
15683 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15684 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15685 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15686 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15687 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15688 | as_echo='printf %s\n' | |
15689 | as_echo_n='printf %s' | |
15690 | else | |
15691 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15692 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15693 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15694 | else |
ec6a6fbe AK |
15695 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15696 | as_echo_n_body='eval | |
15697 | arg=$1; | |
15698 | case $arg in | |
15699 | *"$as_nl"*) | |
15700 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15701 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15702 | esac; | |
15703 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15704 | ' | |
15705 | export as_echo_n_body | |
15706 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15707 | fi |
ec6a6fbe AK |
15708 | export as_echo_body |
15709 | as_echo='sh -c $as_echo_body as_echo' | |
15710 | fi | |
15711 | ||
15712 | # The user is always right. | |
15713 | if test "${PATH_SEPARATOR+set}" != set; then | |
15714 | PATH_SEPARATOR=: | |
15715 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15716 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15717 | PATH_SEPARATOR=';' | |
15718 | } | |
ad6254c5 AK |
15719 | fi |
15720 | ||
15721 | # Support unset when possible. | |
8a2fc586 | 15722 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15723 | as_unset=unset |
15724 | else | |
15725 | as_unset=false | |
15726 | fi | |
8106cdd5 | 15727 | |
ad6254c5 | 15728 | |
7a197a62 AK |
15729 | # IFS |
15730 | # We need space, tab and new line, in precisely that order. Quoting is | |
15731 | # there to prevent editors from complaining about space-tab. | |
15732 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15733 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15734 | IFS=" "" $as_nl" |
15735 | ||
15736 | # Find who we are. Look in the path if we contain no directory separator. | |
15737 | case $0 in | |
15738 | *[\\/]* ) as_myself=$0 ;; | |
15739 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15740 | for as_dir in $PATH | |
15741 | do | |
15742 | IFS=$as_save_IFS | |
15743 | test -z "$as_dir" && as_dir=. | |
15744 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15745 | done | |
15746 | IFS=$as_save_IFS | |
15747 | ||
15748 | ;; | |
15749 | esac | |
15750 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15751 | # in which case we are not to be found in the path. | |
15752 | if test "x$as_myself" = x; then | |
15753 | as_myself=$0 | |
15754 | fi | |
15755 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15756 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15757 | { (exit 1); exit 1; } |
15758 | fi | |
15759 | ||
ad6254c5 | 15760 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15761 | for as_var in ENV MAIL MAILPATH |
15762 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15763 | done | |
ad6254c5 AK |
15764 | PS1='$ ' |
15765 | PS2='> ' | |
15766 | PS4='+ ' | |
15767 | ||
15768 | # NLS nuisances. | |
ec6a6fbe AK |
15769 | LC_ALL=C |
15770 | export LC_ALL | |
15771 | LANGUAGE=C | |
15772 | export LANGUAGE | |
8106cdd5 | 15773 | |
ad6254c5 | 15774 | # Required to use basename. |
7a197a62 AK |
15775 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15776 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15777 | as_expr=expr |
15778 | else | |
15779 | as_expr=false | |
15780 | fi | |
8106cdd5 | 15781 | |
7a197a62 | 15782 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15783 | as_basename=basename |
15784 | else | |
15785 | as_basename=false | |
15786 | fi | |
15787 | ||
15788 | ||
15789 | # Name of the executable. | |
7a197a62 | 15790 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15791 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15792 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15793 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15794 | $as_echo X/"$0" | |
7a197a62 AK |
15795 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15796 | s//\1/ | |
15797 | q | |
15798 | } | |
15799 | /^X\/\(\/\/\)$/{ | |
15800 | s//\1/ | |
15801 | q | |
15802 | } | |
15803 | /^X\/\(\/\).*/{ | |
15804 | s//\1/ | |
15805 | q | |
15806 | } | |
15807 | s/.*/./; q'` | |
ad6254c5 | 15808 | |
7a197a62 AK |
15809 | # CDPATH. |
15810 | $as_unset CDPATH | |
ad6254c5 AK |
15811 | |
15812 | ||
ad6254c5 | 15813 | |
ad6254c5 AK |
15814 | as_lineno_1=$LINENO |
15815 | as_lineno_2=$LINENO | |
ad6254c5 | 15816 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15817 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15818 | |
ad6254c5 AK |
15819 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15820 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15821 | # line-number line after each line using $LINENO; the second 'sed' |
15822 | # does the real work. The second script uses 'N' to pair each | |
15823 | # line-number line with the line containing $LINENO, and appends | |
15824 | # trailing '-' during substitution so that $LINENO is not a special | |
15825 | # case at line end. | |
ad6254c5 | 15826 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15827 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15828 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15829 | sed -n ' | |
15830 | p | |
15831 | /[$]LINENO/= | |
15832 | ' <$as_myself | | |
ad6254c5 | 15833 | sed ' |
7a197a62 AK |
15834 | s/[$]LINENO.*/&-/ |
15835 | t lineno | |
15836 | b | |
15837 | :lineno | |
ad6254c5 | 15838 | N |
7a197a62 AK |
15839 | :loop |
15840 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15841 | t loop |
7a197a62 | 15842 | s/-\n.*// |
ad6254c5 | 15843 | ' >$as_me.lineno && |
7a197a62 | 15844 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15845 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15846 | { (exit 1); exit 1; }; } |
15847 | ||
15848 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15849 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15850 | # original and so on. Autoconf is especially sensitive to this). |
15851 | . "./$as_me.lineno" | |
ad6254c5 AK |
15852 | # Exit status is that of the last command. |
15853 | exit | |
15854 | } | |
15855 | ||
15856 | ||
7a197a62 AK |
15857 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15858 | as_dirname=dirname | |
15859 | else | |
15860 | as_dirname=false | |
15861 | fi | |
15862 | ||
15863 | ECHO_C= ECHO_N= ECHO_T= | |
15864 | case `echo -n x` in | |
15865 | -n*) | |
15866 | case `echo 'x\c'` in | |
15867 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15868 | *) ECHO_C='\c';; | |
15869 | esac;; | |
15870 | *) | |
15871 | ECHO_N='-n';; | |
ad6254c5 | 15872 | esac |
7a197a62 AK |
15873 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15874 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15875 | as_expr=expr |
15876 | else | |
15877 | as_expr=false | |
15878 | fi | |
80992638 | 15879 | |
ad6254c5 | 15880 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15881 | if test -d conf$$.dir; then |
15882 | rm -f conf$$.dir/conf$$.file | |
15883 | else | |
15884 | rm -f conf$$.dir | |
ec6a6fbe AK |
15885 | mkdir conf$$.dir 2>/dev/null |
15886 | fi | |
15887 | if (echo >conf$$.file) 2>/dev/null; then | |
15888 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15889 | as_ln_s='ln -s' | |
15890 | # ... but there are two gotchas: | |
15891 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15892 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15893 | # In both cases, we have to default to `cp -p'. | |
15894 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15895 | as_ln_s='cp -p' | |
15896 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15897 | as_ln_s=ln | |
15898 | else | |
ad6254c5 | 15899 | as_ln_s='cp -p' |
ec6a6fbe | 15900 | fi |
ad6254c5 AK |
15901 | else |
15902 | as_ln_s='cp -p' | |
15903 | fi | |
7a197a62 AK |
15904 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15905 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15906 | |
ad6254c5 AK |
15907 | if mkdir -p . 2>/dev/null; then |
15908 | as_mkdir_p=: | |
15909 | else | |
8a2fc586 | 15910 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
15911 | as_mkdir_p=false |
15912 | fi | |
15913 | ||
25fbec5b AK |
15914 | if test -x / >/dev/null 2>&1; then |
15915 | as_test_x='test -x' | |
7a197a62 | 15916 | else |
25fbec5b AK |
15917 | if ls -dL / >/dev/null 2>&1; then |
15918 | as_ls_L_option=L | |
15919 | else | |
15920 | as_ls_L_option= | |
15921 | fi | |
15922 | as_test_x=' | |
15923 | eval sh -c '\'' | |
15924 | if test -d "$1"; then | |
ec6a6fbe | 15925 | test -d "$1/."; |
25fbec5b AK |
15926 | else |
15927 | case $1 in | |
ec6a6fbe | 15928 | -*)set "./$1";; |
25fbec5b AK |
15929 | esac; |
15930 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
15931 | ???[sx]*):;;*)false;;esac;fi | |
15932 | '\'' sh | |
15933 | ' | |
7a197a62 | 15934 | fi |
25fbec5b | 15935 | as_executable_p=$as_test_x |
ad6254c5 AK |
15936 | |
15937 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 15938 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15939 | |
15940 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 15941 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15942 | |
15943 | ||
ad6254c5 AK |
15944 | exec 6>&1 |
15945 | ||
7a197a62 | 15946 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 15947 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
15948 | # values after options handling. |
15949 | ac_log=" | |
ad6254c5 | 15950 | This file was extended by $as_me, which was |
ec6a6fbe | 15951 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
15952 | |
15953 | CONFIG_FILES = $CONFIG_FILES | |
15954 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15955 | CONFIG_LINKS = $CONFIG_LINKS | |
15956 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15957 | $ $0 $@ | |
15958 | ||
7a197a62 AK |
15959 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15960 | " | |
15961 | ||
ad6254c5 AK |
15962 | _ACEOF |
15963 | ||
ec6a6fbe AK |
15964 | case $ac_config_files in *" |
15965 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15966 | esac | |
15967 | ||
15968 | case $ac_config_headers in *" | |
15969 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15970 | esac | |
15971 | ||
15972 | ||
15973 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 15974 | # Files that config.status was made for. |
68f2de6d AK |
15975 | config_files="$ac_config_files" |
15976 | config_headers="$ac_config_headers" | |
ad6254c5 | 15977 | |
7a197a62 | 15978 | _ACEOF |
ad6254c5 | 15979 | |
ec6a6fbe | 15980 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15981 | ac_cs_usage="\ |
15982 | \`$as_me' instantiates files from templates according to the | |
15983 | current configuration. | |
15984 | ||
ec6a6fbe | 15985 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
15986 | |
15987 | -h, --help print this help, then exit | |
25fbec5b | 15988 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
15989 | -q, --quiet, --silent |
15990 | do not print progress messages | |
ad6254c5 AK |
15991 | -d, --debug don't remove temporary files |
15992 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
15993 | --file=FILE[:TEMPLATE] |
15994 | instantiate the configuration file FILE | |
15995 | --header=FILE[:TEMPLATE] | |
15996 | instantiate the configuration header FILE | |
ad6254c5 AK |
15997 | |
15998 | Configuration files: | |
15999 | $config_files | |
16000 | ||
72b2cb61 AK |
16001 | Configuration headers: |
16002 | $config_headers | |
16003 | ||
ad6254c5 | 16004 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 16005 | |
7a197a62 | 16006 | _ACEOF |
ec6a6fbe | 16007 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16008 | ac_cs_version="\\ |
16009 | config.status | |
ec6a6fbe AK |
16010 | configured by $0, generated by GNU Autoconf 2.63, |
16011 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 16012 | |
ec6a6fbe | 16013 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
16014 | This config.status script is free software; the Free Software Foundation |
16015 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
16016 | |
16017 | ac_pwd='$ac_pwd' | |
16018 | srcdir='$srcdir' | |
16019 | INSTALL='$INSTALL' | |
fddafd51 | 16020 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
16021 | AWK='$AWK' |
16022 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
16023 | _ACEOF |
16024 | ||
ec6a6fbe AK |
16025 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16026 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
16027 | ac_need_defaults=: |
16028 | while test $# != 0 | |
16029 | do | |
16030 | case $1 in | |
16031 | --*=*) | |
7a197a62 AK |
16032 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16033 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
16034 | ac_shift=: |
16035 | ;; | |
7a197a62 | 16036 | *) |
ad6254c5 AK |
16037 | ac_option=$1 |
16038 | ac_optarg=$2 | |
16039 | ac_shift=shift | |
16040 | ;; | |
ad6254c5 AK |
16041 | esac |
16042 | ||
16043 | case $ac_option in | |
16044 | # Handling of the options. | |
ad6254c5 AK |
16045 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16046 | ac_cs_recheck=: ;; | |
7a197a62 | 16047 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 16048 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 16049 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
16050 | debug=: ;; |
16051 | --file | --fil | --fi | --f ) | |
16052 | $ac_shift | |
ec6a6fbe AK |
16053 | case $ac_optarg in |
16054 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16055 | esac | |
16056 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
16057 | ac_need_defaults=false;; |
16058 | --header | --heade | --head | --hea ) | |
16059 | $ac_shift | |
ec6a6fbe AK |
16060 | case $ac_optarg in |
16061 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16062 | esac | |
16063 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 16064 | ac_need_defaults=false;; |
7a197a62 AK |
16065 | --he | --h) |
16066 | # Conflict between --help and --header | |
ec6a6fbe | 16067 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
16068 | Try \`$0 --help' for more information." >&2 |
16069 | { (exit 1); exit 1; }; };; | |
16070 | --help | --hel | -h ) | |
ec6a6fbe | 16071 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
16072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16073 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16074 | ac_cs_silent=: ;; | |
16075 | ||
16076 | # This is an error. | |
ec6a6fbe | 16077 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 16078 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
16079 | { (exit 1); exit 1; }; } ;; |
16080 | ||
7a197a62 AK |
16081 | *) ac_config_targets="$ac_config_targets $1" |
16082 | ac_need_defaults=false ;; | |
ad6254c5 AK |
16083 | |
16084 | esac | |
16085 | shift | |
16086 | done | |
16087 | ||
16088 | ac_configure_extra_args= | |
16089 | ||
16090 | if $ac_cs_silent; then | |
16091 | exec 6>/dev/null | |
16092 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16093 | fi | |
16094 | ||
16095 | _ACEOF | |
ec6a6fbe | 16096 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 16097 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
16098 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16099 | shift | |
16100 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16101 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 16102 | export CONFIG_SHELL |
ec6a6fbe | 16103 | exec "\$@" |
ad6254c5 AK |
16104 | fi |
16105 | ||
16106 | _ACEOF | |
ec6a6fbe | 16107 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16108 | exec 5>>config.log |
16109 | { | |
16110 | echo | |
16111 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16112 | ## Running $as_me. ## | |
16113 | _ASBOX | |
ec6a6fbe | 16114 | $as_echo "$ac_log" |
7a197a62 | 16115 | } >&5 |
ad6254c5 | 16116 | |
7a197a62 | 16117 | _ACEOF |
ec6a6fbe | 16118 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 16119 | _ACEOF |
ad6254c5 | 16120 | |
ec6a6fbe | 16121 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16122 | |
16123 | # Handling of arguments. | |
ad6254c5 AK |
16124 | for ac_config_target in $ac_config_targets |
16125 | do | |
7a197a62 AK |
16126 | case $ac_config_target in |
16127 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16128 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16129 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16130 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16131 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16132 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16133 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16134 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16135 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
16136 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16137 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16138 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
db8b5af9 | 16139 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
16140 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16141 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16142 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16143 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16144 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16145 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 16146 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16147 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16148 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16149 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16150 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16151 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16152 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16153 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16154 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
595eaf92 | 16155 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16156 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16157 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16158 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16159 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16160 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16161 | |
ec6a6fbe AK |
16162 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16163 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16164 | { (exit 1); exit 1; }; };; |
80992638 | 16165 | esac |
ad6254c5 AK |
16166 | done |
16167 | ||
7a197a62 | 16168 | |
ad6254c5 AK |
16169 | # If the user did not use the arguments to specify the items to instantiate, |
16170 | # then the envvar interface is used. Set only those that are not. | |
16171 | # We use the long form for the default assignment because of an extremely | |
16172 | # bizarre bug on SunOS 4.1.3. | |
16173 | if $ac_need_defaults; then | |
16174 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16175 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16176 | fi |
16177 | ||
16178 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16179 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16180 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16181 | # Hook for its removal unless debugging. |
16182 | # Note that there is a small window in which the directory will not be cleaned: | |
16183 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16184 | $debug || |
16185 | { | |
7a197a62 AK |
16186 | tmp= |
16187 | trap 'exit_status=$? | |
16188 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16189 | ' 0 | |
ad6254c5 AK |
16190 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16191 | } | |
ad6254c5 AK |
16192 | # Create a (secure) tmp directory for tmp files. |
16193 | ||
16194 | { | |
7a197a62 | 16195 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16196 | test -n "$tmp" && test -d "$tmp" |
16197 | } || | |
16198 | { | |
7a197a62 AK |
16199 | tmp=./conf$$-$RANDOM |
16200 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16201 | } || |
16202 | { | |
ec6a6fbe | 16203 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16204 | { (exit 1); exit 1; } |
16205 | } | |
16206 | ||
ec6a6fbe AK |
16207 | # Set up the scripts for CONFIG_FILES section. |
16208 | # No need to generate them if there are no CONFIG_FILES. | |
16209 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16210 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16211 | |
68f2de6d | 16212 | |
ec6a6fbe AK |
16213 | ac_cr='\r' |
16214 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16215 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16216 | ac_cs_awk_cr='\\r' | |
16217 | else | |
16218 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16219 | fi |
7a197a62 | 16220 | |
ec6a6fbe | 16221 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16222 | _ACEOF |
7a197a62 | 16223 | |
8106cdd5 | 16224 | |
ec6a6fbe AK |
16225 | { |
16226 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16227 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16228 | echo "_ACEOF" | |
16229 | } >conf$$subs.sh || | |
16230 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16231 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16232 | { (exit 1); exit 1; }; } | |
16233 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16234 | ac_delim='%!_!# ' |
16235 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16236 | . ./conf$$subs.sh || |
16237 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16238 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16239 | { (exit 1); exit 1; }; } | |
16240 | ||
16241 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16242 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16243 | break |
16244 | elif $ac_last_try; then | |
ec6a6fbe AK |
16245 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16246 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16247 | { (exit 1); exit 1; }; } |
16248 | else | |
16249 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16250 | fi | |
16251 | done | |
ec6a6fbe AK |
16252 | rm -f conf$$subs.sh |
16253 | ||
16254 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16255 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16256 | _ACEOF | |
16257 | sed -n ' | |
16258 | h | |
16259 | s/^/S["/; s/!.*/"]=/ | |
16260 | p | |
16261 | g | |
16262 | s/^[^!]*!// | |
16263 | :repl | |
16264 | t repl | |
16265 | s/'"$ac_delim"'$// | |
16266 | t delim | |
16267 | :nl | |
16268 | h | |
16269 | s/\(.\{148\}\).*/\1/ | |
16270 | t more1 | |
16271 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16272 | p | |
16273 | n | |
16274 | b repl | |
16275 | :more1 | |
16276 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16277 | p | |
16278 | g | |
16279 | s/.\{148\}// | |
16280 | t nl | |
16281 | :delim | |
16282 | h | |
16283 | s/\(.\{148\}\).*/\1/ | |
16284 | t more2 | |
16285 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16286 | p | |
16287 | b | |
16288 | :more2 | |
16289 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16290 | p | |
16291 | g | |
16292 | s/.\{148\}// | |
16293 | t delim | |
16294 | ' <conf$$subs.awk | sed ' | |
16295 | /^[^""]/{ | |
16296 | N | |
16297 | s/\n// | |
16298 | } | |
16299 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16300 | rm -f conf$$subs.awk | |
16301 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16302 | _ACAWK | |
16303 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16304 | for (key in S) S_is_set[key] = 1 | |
16305 | FS = "\a" | |
7a197a62 | 16306 | |
ec6a6fbe AK |
16307 | } |
16308 | { | |
16309 | line = $ 0 | |
16310 | nfields = split(line, field, "@") | |
16311 | substed = 0 | |
16312 | len = length(field[1]) | |
16313 | for (i = 2; i < nfields; i++) { | |
16314 | key = field[i] | |
16315 | keylen = length(key) | |
16316 | if (S_is_set[key]) { | |
16317 | value = S[key] | |
16318 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16319 | len += length(value) + length(field[++i]) | |
16320 | substed = 1 | |
16321 | } else | |
16322 | len += 1 + keylen | |
16323 | } | |
16324 | ||
16325 | print line | |
16326 | } | |
fddafd51 | 16327 | |
ec6a6fbe | 16328 | _ACAWK |
1995c9ff | 16329 | _ACEOF |
ec6a6fbe AK |
16330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16331 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16332 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16333 | else | |
16334 | cat | |
16335 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16336 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16337 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16338 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16339 | _ACEOF |
16340 | ||
7a197a62 AK |
16341 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16342 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16343 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16344 | # (actually we leave an empty line to preserve line numbers). | |
16345 | if test "x$srcdir" = x.; then | |
16346 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16347 | s/:*\$(srcdir):*/:/ | |
16348 | s/:*\${srcdir}:*/:/ | |
16349 | s/:*@srcdir@:*/:/ | |
16350 | s/^\([^=]*=[ ]*\):*/\1/ | |
16351 | s/:*$// | |
16352 | s/^[^=]*=[ ]*$// | |
16353 | }' | |
16354 | fi | |
16355 | ||
ec6a6fbe | 16356 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16357 | fi # test -n "$CONFIG_FILES" |
16358 | ||
ec6a6fbe AK |
16359 | # Set up the scripts for CONFIG_HEADERS section. |
16360 | # No need to generate them if there are no CONFIG_HEADERS. | |
16361 | # This happens for instance with `./config.status Makefile'. | |
16362 | if test -n "$CONFIG_HEADERS"; then | |
16363 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16364 | BEGIN { | |
16365 | _ACEOF | |
16366 | ||
16367 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16368 | # here-document in config.status, that substitutes the proper values into | |
16369 | # config.h.in to produce config.h. | |
16370 | ||
16371 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16372 | # handling of long lines. | |
16373 | ac_delim='%!_!# ' | |
16374 | for ac_last_try in false false :; do | |
16375 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16376 | if test -z "$ac_t"; then | |
16377 | break | |
16378 | elif $ac_last_try; then | |
16379 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16380 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16381 | { (exit 1); exit 1; }; } | |
16382 | else | |
16383 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16384 | fi | |
16385 | done | |
16386 | ||
16387 | # For the awk script, D is an array of macro values keyed by name, | |
16388 | # likewise P contains macro parameters if any. Preserve backslash | |
16389 | # newline sequences. | |
16390 | ||
16391 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16392 | sed -n ' | |
16393 | s/.\{148\}/&'"$ac_delim"'/g | |
16394 | t rset | |
16395 | :rset | |
16396 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16397 | t def | |
16398 | d | |
16399 | :def | |
16400 | s/\\$// | |
16401 | t bsnl | |
16402 | s/["\\]/\\&/g | |
16403 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16404 | D["\1"]=" \3"/p | |
16405 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16406 | d | |
16407 | :bsnl | |
16408 | s/["\\]/\\&/g | |
16409 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16410 | D["\1"]=" \3\\\\\\n"\\/p | |
16411 | t cont | |
16412 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16413 | t cont | |
16414 | d | |
16415 | :cont | |
16416 | n | |
16417 | s/.\{148\}/&'"$ac_delim"'/g | |
16418 | t clear | |
16419 | :clear | |
16420 | s/\\$// | |
16421 | t bsnlc | |
16422 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16423 | d | |
16424 | :bsnlc | |
16425 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16426 | b cont | |
16427 | ' <confdefs.h | sed ' | |
16428 | s/'"$ac_delim"'/"\\\ | |
16429 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16430 | ||
16431 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16432 | for (key in D) D_is_set[key] = 1 | |
16433 | FS = "\a" | |
16434 | } | |
16435 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16436 | line = \$ 0 | |
16437 | split(line, arg, " ") | |
16438 | if (arg[1] == "#") { | |
16439 | defundef = arg[2] | |
16440 | mac1 = arg[3] | |
16441 | } else { | |
16442 | defundef = substr(arg[1], 2) | |
16443 | mac1 = arg[2] | |
16444 | } | |
16445 | split(mac1, mac2, "(") #) | |
16446 | macro = mac2[1] | |
16447 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16448 | if (D_is_set[macro]) { | |
16449 | # Preserve the white space surrounding the "#". | |
16450 | print prefix "define", macro P[macro] D[macro] | |
16451 | next | |
16452 | } else { | |
16453 | # Replace #undef with comments. This is necessary, for example, | |
16454 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16455 | # on some systems where configure will not decide to define it. | |
16456 | if (defundef == "undef") { | |
16457 | print "/*", prefix defundef, macro, "*/" | |
16458 | next | |
16459 | } | |
16460 | } | |
16461 | } | |
16462 | { print } | |
16463 | _ACAWK | |
16464 | _ACEOF | |
16465 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16466 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16467 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16468 | { (exit 1); exit 1; }; } | |
16469 | fi # test -n "$CONFIG_HEADERS" | |
16470 | ||
7a197a62 | 16471 | |
ec6a6fbe AK |
16472 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16473 | shift | |
16474 | for ac_tag | |
7a197a62 AK |
16475 | do |
16476 | case $ac_tag in | |
16477 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16478 | esac | |
16479 | case $ac_mode$ac_tag in | |
16480 | :[FHL]*:*);; | |
ec6a6fbe AK |
16481 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16482 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16483 | { (exit 1); exit 1; }; };; |
16484 | :[FH]-) ac_tag=-:-;; | |
16485 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16486 | esac | |
16487 | ac_save_IFS=$IFS | |
16488 | IFS=: | |
16489 | set x $ac_tag | |
16490 | IFS=$ac_save_IFS | |
16491 | shift | |
16492 | ac_file=$1 | |
16493 | shift | |
16494 | ||
16495 | case $ac_mode in | |
16496 | :L) ac_source=$1;; | |
16497 | :[FH]) | |
16498 | ac_file_inputs= | |
16499 | for ac_f | |
16500 | do | |
16501 | case $ac_f in | |
16502 | -) ac_f="$tmp/stdin";; | |
16503 | *) # Look for the file first in the build tree, then in the source tree | |
16504 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16505 | # because $ac_f cannot contain `:'. | |
16506 | test -f "$ac_f" || | |
16507 | case $ac_f in | |
16508 | [\\/$]*) false;; | |
16509 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16510 | esac || | |
ec6a6fbe AK |
16511 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16512 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16513 | { (exit 1); exit 1; }; };; |
16514 | esac | |
ec6a6fbe AK |
16515 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16516 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16517 | done |
16518 | ||
16519 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16520 | # use $as_me), people would be surprised to read: | |
16521 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16522 | configure_input='Generated from '` |
16523 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16524 | `' by configure.' | |
7a197a62 AK |
16525 | if test x"$ac_file" != x-; then |
16526 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16527 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16528 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16529 | fi |
ec6a6fbe AK |
16530 | # Neutralize special characters interpreted by sed in replacement strings. |
16531 | case $configure_input in #( | |
16532 | *\&* | *\|* | *\\* ) | |
16533 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16534 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16535 | *) ac_sed_conf_input=$configure_input;; | |
16536 | esac | |
7a197a62 AK |
16537 | |
16538 | case $ac_tag in | |
ec6a6fbe AK |
16539 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16540 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16541 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16542 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16543 | esac |
16544 | ;; | |
80992638 | 16545 | esac |
8106cdd5 | 16546 | |
7a197a62 | 16547 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16548 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16549 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16550 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16551 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16552 | $as_echo X"$ac_file" | |
7a197a62 AK |
16553 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16554 | s//\1/ | |
16555 | q | |
16556 | } | |
16557 | /^X\(\/\/\)[^/].*/{ | |
16558 | s//\1/ | |
16559 | q | |
16560 | } | |
16561 | /^X\(\/\/\)$/{ | |
16562 | s//\1/ | |
16563 | q | |
16564 | } | |
16565 | /^X\(\/\).*/{ | |
16566 | s//\1/ | |
16567 | q | |
16568 | } | |
16569 | s/.*/./; q'` | |
16570 | { as_dir="$ac_dir" | |
16571 | case $as_dir in #( | |
16572 | -*) as_dir=./$as_dir;; | |
16573 | esac | |
16574 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16575 | as_dirs= |
7a197a62 AK |
16576 | while :; do |
16577 | case $as_dir in #( | |
ec6a6fbe | 16578 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16579 | *) as_qdir=$as_dir;; |
16580 | esac | |
16581 | as_dirs="'$as_qdir' $as_dirs" | |
16582 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16583 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16584 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16585 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16586 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16587 | $as_echo X"$as_dir" | |
7a197a62 AK |
16588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16589 | s//\1/ | |
16590 | q | |
16591 | } | |
16592 | /^X\(\/\/\)[^/].*/{ | |
16593 | s//\1/ | |
16594 | q | |
16595 | } | |
16596 | /^X\(\/\/\)$/{ | |
16597 | s//\1/ | |
16598 | q | |
16599 | } | |
16600 | /^X\(\/\).*/{ | |
16601 | s//\1/ | |
16602 | q | |
16603 | } | |
16604 | s/.*/./; q'` | |
16605 | test -d "$as_dir" && break | |
ad6254c5 | 16606 | done |
7a197a62 | 16607 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16608 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16609 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16610 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16611 | ac_builddir=. |
16612 | ||
7a197a62 AK |
16613 | case "$ac_dir" in |
16614 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16615 | *) | |
ec6a6fbe | 16616 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16617 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16618 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16619 | case $ac_top_builddir_sub in |
16620 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16621 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16622 | esac ;; | |
16623 | esac | |
16624 | ac_abs_top_builddir=$ac_pwd | |
16625 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16626 | # for backward compatibility: | |
16627 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16628 | |
16629 | case $srcdir in | |
7a197a62 | 16630 | .) # We are building in place. |
ad6254c5 | 16631 | ac_srcdir=. |
7a197a62 AK |
16632 | ac_top_srcdir=$ac_top_builddir_sub |
16633 | ac_abs_top_srcdir=$ac_pwd ;; | |
16634 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16635 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16636 | ac_top_srcdir=$srcdir |
16637 | ac_abs_top_srcdir=$srcdir ;; | |
16638 | *) # Relative name. | |
16639 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16640 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16641 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16642 | esac |
7a197a62 | 16643 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16644 | |
ad6254c5 | 16645 | |
7a197a62 AK |
16646 | case $ac_mode in |
16647 | :F) | |
16648 | # | |
16649 | # CONFIG_FILE | |
16650 | # | |
ad6254c5 AK |
16651 | |
16652 | case $INSTALL in | |
16653 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16654 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16655 | esac |
fddafd51 ZK |
16656 | ac_MKDIR_P=$MKDIR_P |
16657 | case $MKDIR_P in | |
16658 | [\\/$]* | ?:[\\/]* ) ;; | |
16659 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16660 | esac | |
7a197a62 | 16661 | _ACEOF |
795ca3e5 | 16662 | |
ec6a6fbe | 16663 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16664 | # If the template does not know about datarootdir, expand it. |
16665 | # FIXME: This hack should be removed a few years after 2.60. | |
16666 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16667 | ||
ec6a6fbe AK |
16668 | ac_sed_dataroot=' |
16669 | /datarootdir/ { | |
7a197a62 AK |
16670 | p |
16671 | q | |
16672 | } | |
16673 | /@datadir@/p | |
16674 | /@docdir@/p | |
16675 | /@infodir@/p | |
16676 | /@localedir@/p | |
16677 | /@mandir@/p | |
ec6a6fbe AK |
16678 | ' |
16679 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16680 | *datarootdir*) ac_datarootdir_seen=yes;; |
16681 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16683 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16684 | _ACEOF |
ec6a6fbe | 16685 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16686 | ac_datarootdir_hack=' |
16687 | s&@datadir@&$datadir&g | |
16688 | s&@docdir@&$docdir&g | |
16689 | s&@infodir@&$infodir&g | |
16690 | s&@localedir@&$localedir&g | |
16691 | s&@mandir@&$mandir&g | |
16692 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16693 | esac | |
16694 | _ACEOF | |
16695 | ||
16696 | # Neutralize VPATH when `$srcdir' = `.'. | |
16697 | # Shell code in configure.ac might set extrasub. | |
16698 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16700 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16701 | $extrasub |
16702 | _ACEOF | |
ec6a6fbe | 16703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16704 | :t |
16705 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16706 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16707 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16708 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16709 | s&@srcdir@&$ac_srcdir&;t t |
16710 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16711 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16712 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16713 | s&@builddir@&$ac_builddir&;t t | |
16714 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16715 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16716 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16717 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16718 | $ac_datarootdir_hack |
ec6a6fbe AK |
16719 | " |
16720 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16721 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16722 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16723 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16724 | |
16725 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16726 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16727 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16728 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16729 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16730 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16731 | which seems to be undefined. Please make sure it is defined." >&2;} |
16732 | ||
16733 | rm -f "$tmp/stdin" | |
72b2cb61 | 16734 | case $ac_file in |
ec6a6fbe AK |
16735 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16736 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16737 | esac \ | |
16738 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16739 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16740 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16741 | ;; |
16742 | :H) | |
16743 | # | |
16744 | # CONFIG_HEADER | |
16745 | # | |
72b2cb61 | 16746 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16747 | { |
16748 | $as_echo "/* $configure_input */" \ | |
16749 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16750 | } >"$tmp/config.h" \ | |
16751 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16752 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16753 | { (exit 1); exit 1; }; } | |
16754 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16755 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16756 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16757 | else |
ec6a6fbe AK |
16758 | rm -f "$ac_file" |
16759 | mv "$tmp/config.h" "$ac_file" \ | |
16760 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16761 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16762 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16763 | fi |
16764 | else | |
ec6a6fbe AK |
16765 | $as_echo "/* $configure_input */" \ |
16766 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16767 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16768 | $as_echo "$as_me: error: could not create -" >&2;} | |
16769 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16770 | fi |
7a197a62 AK |
16771 | ;; |
16772 | ||
16773 | ||
16774 | esac | |
16775 | ||
16776 | done # for ac_tag | |
795ca3e5 | 16777 | |
795ca3e5 | 16778 | |
ad6254c5 AK |
16779 | { (exit 0); exit 0; } |
16780 | _ACEOF | |
795ca3e5 | 16781 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16782 | ac_clean_files=$ac_clean_files_save |
16783 | ||
ec6a6fbe AK |
16784 | test $ac_write_fail = 0 || |
16785 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16786 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16787 | { (exit 1); exit 1; }; } | |
16788 | ||
ad6254c5 AK |
16789 | |
16790 | # configure is writing to config.log, and then calls config.status. | |
16791 | # config.status does its own redirection, appending to config.log. | |
16792 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16793 | # by configure, so config.status won't be able to write to it; its | |
16794 | # output is simply discarded. So we exec the FD to /dev/null, | |
16795 | # effectively closing config.log, so it can be properly (re)opened and | |
16796 | # appended to by config.status. When coming back to configure, we | |
16797 | # need to make the FD available again. | |
16798 | if test "$no_create" != yes; then | |
16799 | ac_cs_success=: | |
16800 | ac_config_status_args= | |
16801 | test "$silent" = yes && | |
16802 | ac_config_status_args="$ac_config_status_args --quiet" | |
16803 | exec 5>/dev/null | |
16804 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16805 | exec 5>>config.log | |
16806 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16807 | # would make configure fail if this is the last instruction. | |
16808 | $ac_cs_success || { (exit 1); exit 1; } | |
16809 | fi | |
ec6a6fbe AK |
16810 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16811 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16812 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16813 | fi | |
795ca3e5 | 16814 | |
2dc95e1c AK |
16815 | |
16816 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16817 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16818 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16819 | fi |