]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
23b059e7 | 649 | WRITE_INSTALL |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
db724a44 | 652 | UDEV_LIBS |
ec6a6fbe AK |
653 | STATIC_LINK |
654 | STATICDIR | |
655 | SNAPSHOTS | |
e1b8a236 | 656 | SELINUX_LIBS |
539f4a77 | 657 | READLINE_LIBS |
f30875db | 658 | PTHREAD_LIBS |
ec6a6fbe AK |
659 | POOL |
660 | PKGCONFIG | |
ec6a6fbe AK |
661 | MIRRORS |
662 | LVM_RELEASE_DATE | |
663 | LVM_RELEASE | |
664 | LVM_PATCHLEVEL | |
665 | LVM_MINOR | |
666 | LVM_MAJOR | |
bf456146 | 667 | LVM_LIBAPI |
ec6a6fbe | 668 | LVM_VERSION |
ec6a6fbe AK |
669 | LVM1_FALLBACK |
670 | LVM1 | |
671 | LOCALEDIR | |
672 | LIB_SUFFIX | |
673 | LDDEPS | |
674 | JOBS | |
675 | INTL_PACKAGE | |
676 | INTL | |
ec6a6fbe AK |
677 | HAVE_REALTIME |
678 | HAVE_LIBDL | |
ec6a6fbe AK |
679 | FSADM |
680 | DM_LIB_PATCHLEVEL | |
681 | DM_LIB_VERSION | |
682 | DM_IOCTLS | |
683 | DM_DEVICE_UID | |
684 | DM_DEVICE_MODE | |
685 | DM_DEVICE_GID | |
686 | DM_COMPAT | |
687 | DMEVENTD | |
19a2c6e0 | 688 | DL_LIBS |
ec6a6fbe AK |
689 | DEVMAPPER |
690 | DEBUG | |
691 | COPTIMISE_FLAG | |
e2997b73 | 692 | CONFDIR |
ec6a6fbe AK |
693 | CMDLIB |
694 | CLVMD | |
695 | CLUSTER | |
696 | CLDWHOLEARCHIVE | |
697 | CLDNOWHOLEARCHIVE | |
698 | CLDFLAGS | |
699 | BUILD_DMEVENTD | |
66fd4529 | 700 | BUILD_CMIRRORD |
572fefeb | 701 | APPLIB |
ec6a6fbe AK |
702 | MODPROBE_CMD |
703 | MSGFMT | |
704 | LVM2CMD_LIB | |
572fefeb | 705 | LVM2APP_LIB |
fd4728e1 | 706 | GENPNG |
ec6a6fbe AK |
707 | GENHTML |
708 | LCOV | |
90c80887 AK |
709 | SACKPT_LIBS |
710 | SACKPT_CFLAGS | |
a946372e AK |
711 | DLM_LIBS |
712 | DLM_CFLAGS | |
e2997b73 AK |
713 | CPG_LIBS |
714 | CPG_CFLAGS | |
715 | CONFDB_LIBS | |
716 | CONFDB_CFLAGS | |
a946372e AK |
717 | SALCK_LIBS |
718 | SALCK_CFLAGS | |
e2997b73 AK |
719 | QUORUM_LIBS |
720 | QUORUM_CFLAGS | |
a946372e AK |
721 | COROSYNC_LIBS |
722 | COROSYNC_CFLAGS | |
723 | CMAN_LIBS | |
724 | CMAN_CFLAGS | |
725 | GULM_LIBS | |
726 | GULM_CFLAGS | |
727 | CCS_LIBS | |
728 | CCS_CFLAGS | |
729 | PKGCONFIGINIT_LIBS | |
730 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 731 | PKG_CONFIG |
ec6a6fbe AK |
732 | POW_LIB |
733 | LIBOBJS | |
734 | ALLOCA | |
735 | CSCOPE_CMD | |
736 | CFLOW_CMD | |
737 | RANLIB | |
738 | MKDIR_P | |
739 | SET_MAKE | |
740 | LN_S | |
741 | INSTALL_DATA | |
742 | INSTALL_SCRIPT | |
743 | INSTALL_PROGRAM | |
744 | EGREP | |
745 | GREP | |
746 | CPP | |
747 | OBJEXT | |
748 | EXEEXT | |
749 | ac_ct_CC | |
750 | CPPFLAGS | |
751 | LDFLAGS | |
752 | CFLAGS | |
753 | CC | |
754 | AWK | |
755 | SED | |
756 | target_os | |
757 | target_vendor | |
758 | target_cpu | |
759 | target | |
760 | host_os | |
761 | host_vendor | |
762 | host_cpu | |
763 | host | |
764 | build_os | |
765 | build_vendor | |
766 | build_cpu | |
767 | build | |
768 | target_alias | |
769 | host_alias | |
770 | build_alias | |
771 | LIBS | |
772 | ECHO_T | |
773 | ECHO_N | |
774 | ECHO_C | |
775 | DEFS | |
776 | mandir | |
777 | localedir | |
778 | libdir | |
779 | psdir | |
780 | pdfdir | |
781 | dvidir | |
782 | htmldir | |
783 | infodir | |
784 | docdir | |
785 | oldincludedir | |
786 | includedir | |
787 | localstatedir | |
788 | sharedstatedir | |
789 | sysconfdir | |
790 | datadir | |
791 | datarootdir | |
792 | libexecdir | |
793 | sbindir | |
794 | bindir | |
795 | program_transform_name | |
796 | prefix | |
797 | exec_prefix | |
798 | PACKAGE_BUGREPORT | |
799 | PACKAGE_STRING | |
800 | PACKAGE_VERSION | |
801 | PACKAGE_TARNAME | |
802 | PACKAGE_NAME | |
803 | PATH_SEPARATOR | |
804 | SHELL' | |
ad6254c5 | 805 | ac_subst_files='' |
ec6a6fbe AK |
806 | ac_user_opts=' |
807 | enable_option_checking | |
808 | enable_static_link | |
809 | with_user | |
810 | with_group | |
811 | with_device_uid | |
812 | with_device_gid | |
813 | with_device_mode | |
814 | enable_lvm1_fallback | |
815 | with_lvm1 | |
816 | with_pool | |
817 | with_cluster | |
818 | with_snapshots | |
819 | with_mirrors | |
820 | enable_readline | |
821 | enable_realtime | |
822 | with_clvmd | |
66fd4529 AK |
823 | enable_cmirrord |
824 | with_cmirrord_pidfile | |
ec6a6fbe AK |
825 | enable_debug |
826 | with_optimisation | |
827 | enable_profiling | |
828 | enable_devmapper | |
a5f46f6a AK |
829 | enable_udev_sync |
830 | enable_udev_rules | |
ec6a6fbe | 831 | enable_compat |
95eaa683 | 832 | enable_units_compat |
ec6a6fbe AK |
833 | enable_ioctl |
834 | enable_o_direct | |
572fefeb | 835 | enable_applib |
ec6a6fbe AK |
836 | enable_cmdlib |
837 | enable_pkgconfig | |
23b059e7 | 838 | enable_write_install |
ec6a6fbe AK |
839 | enable_fsadm |
840 | enable_dmeventd | |
841 | enable_selinux | |
842 | enable_nls | |
843 | with_localedir | |
844 | with_confdir | |
845 | with_staticdir | |
846 | with_usrlibdir | |
847 | with_usrsbindir | |
a5f46f6a | 848 | with_udev_prefix |
78ce7acc | 849 | with_udevdir |
ec6a6fbe AK |
850 | with_dmeventd_pidfile |
851 | with_dmeventd_path | |
852 | with_interface | |
853 | ' | |
7a197a62 AK |
854 | ac_precious_vars='build_alias |
855 | host_alias | |
856 | target_alias | |
857 | CC | |
858 | CFLAGS | |
859 | LDFLAGS | |
25fbec5b | 860 | LIBS |
7a197a62 | 861 | CPPFLAGS |
e2997b73 AK |
862 | CPP |
863 | PKG_CONFIG | |
a946372e AK |
864 | PKGCONFIGINIT_CFLAGS |
865 | PKGCONFIGINIT_LIBS | |
866 | CCS_CFLAGS | |
867 | CCS_LIBS | |
868 | GULM_CFLAGS | |
869 | GULM_LIBS | |
870 | CMAN_CFLAGS | |
871 | CMAN_LIBS | |
872 | COROSYNC_CFLAGS | |
873 | COROSYNC_LIBS | |
e2997b73 AK |
874 | QUORUM_CFLAGS |
875 | QUORUM_LIBS | |
a946372e AK |
876 | SALCK_CFLAGS |
877 | SALCK_LIBS | |
e2997b73 AK |
878 | CONFDB_CFLAGS |
879 | CONFDB_LIBS | |
880 | CPG_CFLAGS | |
a946372e AK |
881 | CPG_LIBS |
882 | DLM_CFLAGS | |
90c80887 AK |
883 | DLM_LIBS |
884 | SACKPT_CFLAGS | |
885 | SACKPT_LIBS' | |
7a197a62 | 886 | |
795ca3e5 AK |
887 | |
888 | # Initialize some variables set by options. | |
ad6254c5 AK |
889 | ac_init_help= |
890 | ac_init_version=false | |
ec6a6fbe AK |
891 | ac_unrecognized_opts= |
892 | ac_unrecognized_sep= | |
795ca3e5 AK |
893 | # The variables have the same names as the options, with |
894 | # dashes changed to underlines. | |
ad6254c5 | 895 | cache_file=/dev/null |
795ca3e5 | 896 | exec_prefix=NONE |
795ca3e5 | 897 | no_create= |
795ca3e5 AK |
898 | no_recursion= |
899 | prefix=NONE | |
900 | program_prefix=NONE | |
901 | program_suffix=NONE | |
902 | program_transform_name=s,x,x, | |
903 | silent= | |
904 | site= | |
905 | srcdir= | |
795ca3e5 AK |
906 | verbose= |
907 | x_includes=NONE | |
908 | x_libraries=NONE | |
ad6254c5 AK |
909 | |
910 | # Installation directory options. | |
911 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
912 | # and all the variables that are supposed to be based on exec_prefix | |
913 | # by default will actually change. | |
914 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 915 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
916 | bindir='${exec_prefix}/bin' |
917 | sbindir='${exec_prefix}/sbin' | |
918 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
919 | datarootdir='${prefix}/share' |
920 | datadir='${datarootdir}' | |
795ca3e5 AK |
921 | sysconfdir='${prefix}/etc' |
922 | sharedstatedir='${prefix}/com' | |
923 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
924 | includedir='${prefix}/include' |
925 | oldincludedir='/usr/include' | |
7a197a62 AK |
926 | docdir='${datarootdir}/doc/${PACKAGE}' |
927 | infodir='${datarootdir}/info' | |
928 | htmldir='${docdir}' | |
929 | dvidir='${docdir}' | |
930 | pdfdir='${docdir}' | |
931 | psdir='${docdir}' | |
932 | libdir='${exec_prefix}/lib' | |
933 | localedir='${datarootdir}/locale' | |
934 | mandir='${datarootdir}/man' | |
795ca3e5 | 935 | |
795ca3e5 | 936 | ac_prev= |
7a197a62 | 937 | ac_dashdash= |
795ca3e5 AK |
938 | for ac_option |
939 | do | |
795ca3e5 AK |
940 | # If the previous option needs an argument, assign it. |
941 | if test -n "$ac_prev"; then | |
7a197a62 | 942 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
943 | ac_prev= |
944 | continue | |
945 | fi | |
946 | ||
7a197a62 AK |
947 | case $ac_option in |
948 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
949 | *) ac_optarg=yes ;; | |
950 | esac | |
795ca3e5 AK |
951 | |
952 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
953 | ||
7a197a62 AK |
954 | case $ac_dashdash$ac_option in |
955 | --) | |
956 | ac_dashdash=yes ;; | |
795ca3e5 AK |
957 | |
958 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
959 | ac_prev=bindir ;; | |
960 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 961 | bindir=$ac_optarg ;; |
795ca3e5 AK |
962 | |
963 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 964 | ac_prev=build_alias ;; |
795ca3e5 | 965 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 966 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
967 | |
968 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
969 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
970 | ac_prev=cache_file ;; | |
971 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
972 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
973 | cache_file=$ac_optarg ;; |
974 | ||
975 | --config-cache | -C) | |
976 | cache_file=config.cache ;; | |
795ca3e5 | 977 | |
7a197a62 | 978 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 979 | ac_prev=datadir ;; |
7a197a62 | 980 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 981 | datadir=$ac_optarg ;; |
795ca3e5 | 982 | |
7a197a62 AK |
983 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
984 | | --dataroo | --dataro | --datar) | |
985 | ac_prev=datarootdir ;; | |
986 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
987 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
988 | datarootdir=$ac_optarg ;; | |
989 | ||
795ca3e5 | 990 | -disable-* | --disable-*) |
ec6a6fbe | 991 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 992 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
994 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 995 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
996 | ac_useropt_orig=$ac_useropt |
997 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
998 | case $ac_user_opts in | |
999 | *" | |
1000 | "enable_$ac_useropt" | |
1001 | "*) ;; | |
1002 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1003 | ac_unrecognized_sep=', ';; | |
1004 | esac | |
1005 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1006 | |
1007 | -docdir | --docdir | --docdi | --doc | --do) | |
1008 | ac_prev=docdir ;; | |
1009 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1010 | docdir=$ac_optarg ;; | |
1011 | ||
1012 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1013 | ac_prev=dvidir ;; | |
1014 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1015 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1016 | |
1017 | -enable-* | --enable-*) | |
ec6a6fbe | 1018 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1019 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1021 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1022 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1023 | ac_useropt_orig=$ac_useropt |
1024 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1025 | case $ac_user_opts in | |
1026 | *" | |
1027 | "enable_$ac_useropt" | |
1028 | "*) ;; | |
1029 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1030 | ac_unrecognized_sep=', ';; | |
1031 | esac | |
1032 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1033 | |
1034 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1035 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1036 | | --exec | --exe | --ex) | |
1037 | ac_prev=exec_prefix ;; | |
1038 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1039 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1040 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1041 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1042 | |
1043 | -gas | --gas | --ga | --g) | |
1044 | # Obsolete; use --with-gas. | |
1045 | with_gas=yes ;; | |
1046 | ||
ad6254c5 AK |
1047 | -help | --help | --hel | --he | -h) |
1048 | ac_init_help=long ;; | |
1049 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1050 | ac_init_help=recursive ;; | |
1051 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1052 | ac_init_help=short ;; | |
795ca3e5 AK |
1053 | |
1054 | -host | --host | --hos | --ho) | |
ad6254c5 | 1055 | ac_prev=host_alias ;; |
795ca3e5 | 1056 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1057 | host_alias=$ac_optarg ;; |
795ca3e5 | 1058 | |
7a197a62 AK |
1059 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1060 | ac_prev=htmldir ;; | |
1061 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1062 | | --ht=*) | |
1063 | htmldir=$ac_optarg ;; | |
1064 | ||
795ca3e5 AK |
1065 | -includedir | --includedir | --includedi | --included | --include \ |
1066 | | --includ | --inclu | --incl | --inc) | |
1067 | ac_prev=includedir ;; | |
1068 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1069 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1070 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1071 | |
1072 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1073 | ac_prev=infodir ;; | |
1074 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1075 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1076 | |
1077 | -libdir | --libdir | --libdi | --libd) | |
1078 | ac_prev=libdir ;; | |
1079 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1080 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1081 | |
1082 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1083 | | --libexe | --libex | --libe) | |
1084 | ac_prev=libexecdir ;; | |
1085 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1086 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1087 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1088 | |
7a197a62 AK |
1089 | -localedir | --localedir | --localedi | --localed | --locale) |
1090 | ac_prev=localedir ;; | |
1091 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1092 | localedir=$ac_optarg ;; | |
1093 | ||
795ca3e5 | 1094 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1095 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1096 | ac_prev=localstatedir ;; |
1097 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1098 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1099 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1100 | |
1101 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1102 | ac_prev=mandir ;; | |
1103 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1104 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1105 | |
1106 | -nfp | --nfp | --nf) | |
1107 | # Obsolete; use --without-fp. | |
1108 | with_fp=no ;; | |
1109 | ||
1110 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1111 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1112 | no_create=yes ;; |
1113 | ||
1114 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1115 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1116 | no_recursion=yes ;; | |
1117 | ||
1118 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1119 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1120 | | --oldin | --oldi | --old | --ol | --o) | |
1121 | ac_prev=oldincludedir ;; | |
1122 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1123 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1124 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1125 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1126 | |
1127 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1128 | ac_prev=prefix ;; | |
1129 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1130 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1131 | |
1132 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1133 | | --program-pre | --program-pr | --program-p) | |
1134 | ac_prev=program_prefix ;; | |
1135 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1136 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1137 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1138 | |
1139 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1140 | | --program-suf | --program-su | --program-s) | |
1141 | ac_prev=program_suffix ;; | |
1142 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1143 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1144 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1145 | |
1146 | -program-transform-name | --program-transform-name \ | |
1147 | | --program-transform-nam | --program-transform-na \ | |
1148 | | --program-transform-n | --program-transform- \ | |
1149 | | --program-transform | --program-transfor \ | |
1150 | | --program-transfo | --program-transf \ | |
1151 | | --program-trans | --program-tran \ | |
1152 | | --progr-tra | --program-tr | --program-t) | |
1153 | ac_prev=program_transform_name ;; | |
1154 | -program-transform-name=* | --program-transform-name=* \ | |
1155 | | --program-transform-nam=* | --program-transform-na=* \ | |
1156 | | --program-transform-n=* | --program-transform-=* \ | |
1157 | | --program-transform=* | --program-transfor=* \ | |
1158 | | --program-transfo=* | --program-transf=* \ | |
1159 | | --program-trans=* | --program-tran=* \ | |
1160 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1161 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1162 | |
7a197a62 AK |
1163 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1164 | ac_prev=pdfdir ;; | |
1165 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1166 | pdfdir=$ac_optarg ;; | |
1167 | ||
1168 | -psdir | --psdir | --psdi | --psd | --ps) | |
1169 | ac_prev=psdir ;; | |
1170 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1171 | psdir=$ac_optarg ;; | |
1172 | ||
795ca3e5 AK |
1173 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1174 | | -silent | --silent | --silen | --sile | --sil) | |
1175 | silent=yes ;; | |
1176 | ||
1177 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1178 | ac_prev=sbindir ;; | |
1179 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1180 | | --sbi=* | --sb=*) | |
ad6254c5 | 1181 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1182 | |
1183 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1184 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1185 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1186 | | --sha | --sh) | |
1187 | ac_prev=sharedstatedir ;; | |
1188 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1189 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1190 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1191 | | --sha=* | --sh=*) | |
ad6254c5 | 1192 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1193 | |
1194 | -site | --site | --sit) | |
1195 | ac_prev=site ;; | |
1196 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1197 | site=$ac_optarg ;; |
795ca3e5 AK |
1198 | |
1199 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1200 | ac_prev=srcdir ;; | |
1201 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1202 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1203 | |
1204 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1205 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1206 | ac_prev=sysconfdir ;; | |
1207 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1208 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1209 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1210 | |
1211 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1212 | ac_prev=target_alias ;; |
795ca3e5 | 1213 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1214 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1215 | |
1216 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1217 | verbose=yes ;; | |
1218 | ||
ad6254c5 AK |
1219 | -version | --version | --versio | --versi | --vers | -V) |
1220 | ac_init_version=: ;; | |
795ca3e5 AK |
1221 | |
1222 | -with-* | --with-*) | |
ec6a6fbe | 1223 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1224 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1225 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1226 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1227 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1228 | ac_useropt_orig=$ac_useropt |
1229 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1230 | case $ac_user_opts in | |
1231 | *" | |
1232 | "with_$ac_useropt" | |
1233 | "*) ;; | |
1234 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1235 | ac_unrecognized_sep=', ';; | |
1236 | esac | |
1237 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1238 | |
1239 | -without-* | --without-*) | |
ec6a6fbe | 1240 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1241 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1242 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1243 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1244 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1245 | ac_useropt_orig=$ac_useropt |
1246 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1247 | case $ac_user_opts in | |
1248 | *" | |
1249 | "with_$ac_useropt" | |
1250 | "*) ;; | |
1251 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1252 | ac_unrecognized_sep=', ';; | |
1253 | esac | |
1254 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1255 | |
1256 | --x) | |
1257 | # Obsolete; use --with-x. | |
1258 | with_x=yes ;; | |
1259 | ||
1260 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1261 | | --x-incl | --x-inc | --x-in | --x-i) | |
1262 | ac_prev=x_includes ;; | |
1263 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1264 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1265 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1266 | |
1267 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1268 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1269 | ac_prev=x_libraries ;; | |
1270 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1271 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1272 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1273 | |
ec6a6fbe | 1274 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1275 | Try \`$0 --help' for more information." >&2 |
1276 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1277 | ;; |
1278 | ||
ad6254c5 AK |
1279 | *=*) |
1280 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1281 | # Reject names that are not valid shell variable names. | |
1282 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1283 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1284 | { (exit 1); exit 1; }; } |
7a197a62 | 1285 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1286 | export $ac_envvar ;; |
1287 | ||
795ca3e5 | 1288 | *) |
ad6254c5 | 1289 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1290 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1291 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1292 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1293 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1294 | ;; |
1295 | ||
1296 | esac | |
1297 | done | |
1298 | ||
1299 | if test -n "$ac_prev"; then | |
ad6254c5 | 1300 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1301 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1302 | { (exit 1); exit 1; }; } |
795ca3e5 | 1303 | fi |
795ca3e5 | 1304 | |
ec6a6fbe AK |
1305 | if test -n "$ac_unrecognized_opts"; then |
1306 | case $enable_option_checking in | |
1307 | no) ;; | |
1308 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1309 | { (exit 1); exit 1; }; } ;; | |
1310 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1311 | esac | |
1312 | fi | |
1313 | ||
1314 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1315 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1316 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1317 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1318 | libdir localedir mandir | |
795ca3e5 | 1319 | do |
7a197a62 | 1320 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1321 | # Remove trailing slashes. |
1322 | case $ac_val in | |
1323 | */ ) | |
1324 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1325 | eval $ac_var=\$ac_val;; | |
1326 | esac | |
1327 | # Be sure to have absolute directory names. | |
ad6254c5 | 1328 | case $ac_val in |
7a197a62 AK |
1329 | [\\/$]* | ?:[\\/]* ) continue;; |
1330 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1331 | esac |
ec6a6fbe | 1332 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1333 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1334 | done |
1335 | ||
ad6254c5 AK |
1336 | # There might be people who depend on the old broken behavior: `$host' |
1337 | # used to hold the argument of --host etc. | |
1338 | # FIXME: To remove some day. | |
1339 | build=$build_alias | |
1340 | host=$host_alias | |
1341 | target=$target_alias | |
1342 | ||
1343 | # FIXME: To remove some day. | |
1344 | if test "x$host_alias" != x; then | |
1345 | if test "x$build_alias" = x; then | |
1346 | cross_compiling=maybe | |
ec6a6fbe | 1347 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1348 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1349 | elif test "x$build_alias" != "x$host_alias"; then | |
1350 | cross_compiling=yes | |
1351 | fi | |
1352 | fi | |
8106cdd5 | 1353 | |
ad6254c5 AK |
1354 | ac_tool_prefix= |
1355 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1356 | ||
1357 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1358 | |
795ca3e5 | 1359 | |
7a197a62 AK |
1360 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1361 | ac_ls_di=`ls -di .` && | |
1362 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1363 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1364 | { (exit 1); exit 1; }; } |
1365 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1366 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1367 | { (exit 1); exit 1; }; } |
1368 | ||
1369 | ||
795ca3e5 AK |
1370 | # Find the source files, if location was not specified. |
1371 | if test -z "$srcdir"; then | |
1372 | ac_srcdir_defaulted=yes | |
7a197a62 | 1373 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1374 | ac_confdir=`$as_dirname -- "$as_myself" || |
1375 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1376 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1377 | X"$as_myself" : 'X\(//\)$' \| \ | |
1378 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1379 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)[^/].*/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\/\)$/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | /^X\(\/\).*/{ | |
1393 | s//\1/ | |
1394 | q | |
1395 | } | |
1396 | s/.*/./; q'` | |
795ca3e5 | 1397 | srcdir=$ac_confdir |
7a197a62 | 1398 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1399 | srcdir=.. |
1400 | fi | |
1401 | else | |
1402 | ac_srcdir_defaulted=no | |
1403 | fi | |
7a197a62 AK |
1404 | if test ! -r "$srcdir/$ac_unique_file"; then |
1405 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1406 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1407 | { (exit 1); exit 1; }; } |
795ca3e5 | 1408 | fi |
7a197a62 AK |
1409 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1410 | ac_abs_confdir=`( | |
ec6a6fbe | 1411 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1412 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1413 | pwd)` |
1414 | # When building in place, set srcdir=. | |
1415 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1416 | srcdir=. | |
1417 | fi | |
1418 | # Remove unnecessary trailing slashes from srcdir. | |
1419 | # Double slashes in file names in object file debugging info | |
1420 | # mess up M-x gdb in Emacs. | |
1421 | case $srcdir in | |
1422 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1423 | esac | |
1424 | for ac_var in $ac_precious_vars; do | |
1425 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1426 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1427 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1428 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1429 | done | |
ad6254c5 AK |
1430 | |
1431 | # | |
1432 | # Report the --help message. | |
1433 | # | |
1434 | if test "$ac_init_help" = "long"; then | |
1435 | # Omit some internal or obsolete options to make the list less imposing. | |
1436 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1437 | cat <<_ACEOF | |
1438 | \`configure' configures this package to adapt to many kinds of systems. | |
1439 | ||
1440 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1441 | ||
1442 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1443 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1444 | ||
1445 | Defaults for the options are specified in brackets. | |
1446 | ||
1447 | Configuration: | |
1448 | -h, --help display this help and exit | |
1449 | --help=short display options specific to this package | |
1450 | --help=recursive display the short help of all the included packages | |
1451 | -V, --version display version information and exit | |
1452 | -q, --quiet, --silent do not print \`checking...' messages | |
1453 | --cache-file=FILE cache test results in FILE [disabled] | |
1454 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1455 | -n, --no-create do not create output files | |
1456 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1457 | ||
ad6254c5 AK |
1458 | Installation directories: |
1459 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1460 | [$ac_default_prefix] |
ad6254c5 | 1461 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1462 | [PREFIX] |
ad6254c5 AK |
1463 | |
1464 | By default, \`make install' will install all the files in | |
1465 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1466 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1467 | for instance \`--prefix=\$HOME'. | |
1468 | ||
1469 | For better control, use the options below. | |
1470 | ||
1471 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1472 | --bindir=DIR user executables [EPREFIX/bin] |
1473 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1474 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1475 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1476 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1477 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1478 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1479 | --includedir=DIR C header files [PREFIX/include] | |
1480 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1481 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1482 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1483 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1484 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1485 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1486 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1487 | --htmldir=DIR html documentation [DOCDIR] | |
1488 | --dvidir=DIR dvi documentation [DOCDIR] | |
1489 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1490 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1491 | _ACEOF |
1492 | ||
1493 | cat <<\_ACEOF | |
1494 | ||
1495 | System types: | |
1496 | --build=BUILD configure for building on BUILD [guessed] | |
1497 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1498 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1499 | _ACEOF | |
1500 | fi | |
1501 | ||
1502 | if test -n "$ac_init_help"; then | |
1503 | ||
1504 | cat <<\_ACEOF | |
1505 | ||
1506 | Optional Features: | |
ec6a6fbe | 1507 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1508 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1509 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1510 | --enable-static_link Use this to link the tools to their libraries |
1511 | statically. Default is dynamic linking | |
ad6254c5 AK |
1512 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1513 | device-mapper is missing from the kernel | |
1b523347 | 1514 | --disable-readline Disable readline support |
89044bc0 | 1515 | --enable-realtime Enable realtime clock support |
66fd4529 | 1516 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1517 | --enable-debug Enable debugging |
5556819a | 1518 | --enable-profiling Gather gcov profiling data |
93bd259b | 1519 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1520 | --enable-udev_sync Enable synchronisation with udev processing |
1521 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1522 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1523 | --enable-units-compat Enable output compatibility with old versions that |
1524 | that don't use KiB-style unit suffixes | |
93bd259b | 1525 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1526 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1527 | --enable-applib Build application library |
ad6254c5 | 1528 | --enable-cmdlib Build shared command library |
93bd259b | 1529 | --enable-pkgconfig Install pkgconfig support |
23b059e7 | 1530 | --enable-write_install Install user writable files |
c9274524 | 1531 | --disable-fsadm Disable fsadm |
15d91f5a | 1532 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1533 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1534 | --enable-nls Enable Native Language Support |
1535 | ||
1536 | Optional Packages: | |
1537 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1538 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1539 | --with-user=USER Set the owner of installed files [USER=] |
1540 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1541 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1542 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1543 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1544 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1545 | TYPE=internal | |
1546 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1547 | TYPE=internal | |
1548 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1549 | TYPE=internal | |
1550 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1551 | TYPE=internal | |
1552 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1553 | TYPE=internal | |
a946372e | 1554 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1555 | The following cluster manager combinations are valid: |
a946372e AK |
1556 | * cman,gulm (RHEL4 or equivalent) |
1557 | * cman (RHEL5 or equivalent) | |
1558 | * cman,corosync,openais (or selection of them) | |
1091650a | 1559 | * singlenode (localhost only) |
a946372e AK |
1560 | * all (autodetect) |
1561 | * none (disable build) | |
a266258f | 1562 | TYPE=none |
66fd4529 | 1563 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1564 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1565 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1566 | --with-confdir=DIR Configuration files in DIR [/etc] |
1567 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1568 | --with-usrlibdir=DIR |
1569 | --with-usrsbindir=DIR | |
a5f46f6a | 1570 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1571 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1572 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1573 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1574 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1575 | |
1576 | Some influential environment variables: | |
1577 | CC C compiler command | |
1578 | CFLAGS C compiler flags | |
1579 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1580 | nonstandard directory <lib dir> | |
25fbec5b | 1581 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1582 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1583 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1584 | CPP C preprocessor |
e2997b73 | 1585 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1586 | PKGCONFIGINIT_CFLAGS |
1587 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1588 | PKGCONFIGINIT_LIBS | |
1589 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1590 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1591 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1592 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1593 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1594 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1595 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1596 | COROSYNC_CFLAGS | |
1597 | C compiler flags for COROSYNC, overriding pkg-config | |
1598 | COROSYNC_LIBS | |
1599 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1600 | QUORUM_CFLAGS |
1601 | C compiler flags for QUORUM, overriding pkg-config | |
1602 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1603 | SALCK_CFLAGS |
1604 | C compiler flags for SALCK, overriding pkg-config | |
1605 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1606 | CONFDB_CFLAGS |
1607 | C compiler flags for CONFDB, overriding pkg-config | |
1608 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1609 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1610 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1611 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1612 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1613 | SACKPT_CFLAGS |
1614 | C compiler flags for SACKPT, overriding pkg-config | |
1615 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1616 | |
1617 | Use these variables to override the choices made by `configure' or to help | |
1618 | it to find libraries and programs with nonstandard names/locations. | |
1619 | ||
1620 | _ACEOF | |
7a197a62 | 1621 | ac_status=$? |
ad6254c5 AK |
1622 | fi |
1623 | ||
1624 | if test "$ac_init_help" = "recursive"; then | |
1625 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1626 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1627 | test -d "$ac_dir" || |
1628 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1629 | continue | |
ad6254c5 AK |
1630 | ac_builddir=. |
1631 | ||
7a197a62 AK |
1632 | case "$ac_dir" in |
1633 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1634 | *) | |
ec6a6fbe | 1635 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1636 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1637 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1638 | case $ac_top_builddir_sub in |
1639 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1640 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1641 | esac ;; | |
1642 | esac | |
1643 | ac_abs_top_builddir=$ac_pwd | |
1644 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1645 | # for backward compatibility: | |
1646 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1647 | |
1648 | case $srcdir in | |
7a197a62 | 1649 | .) # We are building in place. |
ad6254c5 | 1650 | ac_srcdir=. |
7a197a62 AK |
1651 | ac_top_srcdir=$ac_top_builddir_sub |
1652 | ac_abs_top_srcdir=$ac_pwd ;; | |
1653 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1654 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1655 | ac_top_srcdir=$srcdir |
1656 | ac_abs_top_srcdir=$srcdir ;; | |
1657 | *) # Relative name. | |
1658 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1659 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1660 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1661 | esac |
7a197a62 AK |
1662 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1663 | ||
1664 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1665 | # Check for guested configure. | |
1666 | if test -f "$ac_srcdir/configure.gnu"; then | |
1667 | echo && | |
1668 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1669 | elif test -f "$ac_srcdir/configure"; then | |
1670 | echo && | |
1671 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1672 | else |
ec6a6fbe | 1673 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1674 | fi || ac_status=$? |
1675 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1676 | done |
1677 | fi | |
1678 | ||
7a197a62 | 1679 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1680 | if $ac_init_version; then |
1681 | cat <<\_ACEOF | |
7a197a62 | 1682 | configure |
ec6a6fbe | 1683 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1684 | |
7a197a62 | 1685 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1686 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1687 | This configure script is free software; the Free Software Foundation |
1688 | gives unlimited permission to copy, distribute and modify it. | |
1689 | _ACEOF | |
7a197a62 | 1690 | exit |
ad6254c5 | 1691 | fi |
7a197a62 | 1692 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1693 | This file contains any messages produced by compilers while |
1694 | running configure, to aid debugging if configure makes a mistake. | |
1695 | ||
1696 | It was created by $as_me, which was | |
ec6a6fbe | 1697 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1698 | |
1699 | $ $0 $@ | |
1700 | ||
1701 | _ACEOF | |
7a197a62 | 1702 | exec 5>>config.log |
ad6254c5 AK |
1703 | { |
1704 | cat <<_ASUNAME | |
1705 | ## --------- ## | |
1706 | ## Platform. ## | |
1707 | ## --------- ## | |
1708 | ||
1709 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1710 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1711 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1712 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1713 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1714 | ||
1715 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1716 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1717 | ||
1718 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1719 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1720 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1721 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1722 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1723 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1724 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1725 | ||
1726 | _ASUNAME | |
1727 | ||
1728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1729 | for as_dir in $PATH | |
1730 | do | |
1731 | IFS=$as_save_IFS | |
1732 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1733 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1734 | done |
7a197a62 | 1735 | IFS=$as_save_IFS |
ad6254c5 AK |
1736 | |
1737 | } >&5 | |
1738 | ||
1739 | cat >&5 <<_ACEOF | |
1740 | ||
1741 | ||
1742 | ## ----------- ## | |
1743 | ## Core tests. ## | |
1744 | ## ----------- ## | |
1745 | ||
1746 | _ACEOF | |
1747 | ||
1748 | ||
1749 | # Keep a trace of the command line. | |
1750 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1751 | # Strip out --silent because we don't want to record it for future runs. | |
1752 | # Also quote any args containing shell meta-characters. | |
1753 | # Make two passes to allow for proper duplicate-argument suppression. | |
1754 | ac_configure_args= | |
1755 | ac_configure_args0= | |
1756 | ac_configure_args1= | |
ad6254c5 AK |
1757 | ac_must_keep_next=false |
1758 | for ac_pass in 1 2 | |
1759 | do | |
1760 | for ac_arg | |
1761 | do | |
1762 | case $ac_arg in | |
1763 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1764 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1765 | | -silent | --silent | --silen | --sile | --sil) | |
1766 | continue ;; | |
7a197a62 | 1767 | *\'*) |
ec6a6fbe | 1768 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1769 | esac |
1770 | case $ac_pass in | |
1771 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1772 | 2) | |
1773 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1774 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1775 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1776 | else |
8a2fc586 AK |
1777 | case $ac_arg in |
1778 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1779 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1780 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1781 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1782 | case "$ac_configure_args0 " in | |
1783 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1784 | esac | |
1785 | ;; | |
1786 | -* ) ac_must_keep_next=true ;; | |
1787 | esac | |
ad6254c5 | 1788 | fi |
7a197a62 | 1789 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1790 | ;; |
1791 | esac | |
1792 | done | |
1793 | done | |
1794 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1795 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1796 | ||
1797 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1798 | # config.log. We remove comments because anyway the quotes in there | |
1799 | # would cause problems or look ugly. | |
7a197a62 AK |
1800 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1801 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1802 | trap 'exit_status=$? |
1803 | # Save into config.log some information that might help in debugging. | |
1804 | { | |
1805 | echo | |
1806 | ||
1807 | cat <<\_ASBOX | |
1808 | ## ---------------- ## | |
1809 | ## Cache variables. ## | |
1810 | ## ---------------- ## | |
1811 | _ASBOX | |
1812 | echo | |
1813 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1814 | ( |
1815 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1816 | eval ac_val=\$$ac_var | |
1817 | case $ac_val in #( | |
1818 | *${as_nl}*) | |
1819 | case $ac_var in #( | |
ec6a6fbe AK |
1820 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1821 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1822 | esac |
1823 | case $ac_var in #( | |
1824 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1825 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1826 | *) $as_unset $ac_var ;; |
1827 | esac ;; | |
1828 | esac | |
1829 | done | |
ad6254c5 | 1830 | (set) 2>&1 | |
7a197a62 AK |
1831 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1832 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1833 | sed -n \ |
7a197a62 AK |
1834 | "s/'\''/'\''\\\\'\'''\''/g; |
1835 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1836 | ;; #( | |
ad6254c5 | 1837 | *) |
7a197a62 | 1838 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1839 | ;; |
7a197a62 AK |
1840 | esac | |
1841 | sort | |
1842 | ) | |
ad6254c5 AK |
1843 | echo |
1844 | ||
1845 | cat <<\_ASBOX | |
1846 | ## ----------------- ## | |
1847 | ## Output variables. ## | |
1848 | ## ----------------- ## | |
1849 | _ASBOX | |
1850 | echo | |
1851 | for ac_var in $ac_subst_vars | |
1852 | do | |
7a197a62 AK |
1853 | eval ac_val=\$$ac_var |
1854 | case $ac_val in | |
ec6a6fbe | 1855 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1856 | esac |
ec6a6fbe | 1857 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1858 | done | sort |
1859 | echo | |
1860 | ||
1861 | if test -n "$ac_subst_files"; then | |
1862 | cat <<\_ASBOX | |
7a197a62 AK |
1863 | ## ------------------- ## |
1864 | ## File substitutions. ## | |
1865 | ## ------------------- ## | |
ad6254c5 AK |
1866 | _ASBOX |
1867 | echo | |
1868 | for ac_var in $ac_subst_files | |
1869 | do | |
7a197a62 AK |
1870 | eval ac_val=\$$ac_var |
1871 | case $ac_val in | |
ec6a6fbe | 1872 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1873 | esac |
ec6a6fbe | 1874 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1875 | done | sort |
1876 | echo | |
1877 | fi | |
1878 | ||
1879 | if test -s confdefs.h; then | |
1880 | cat <<\_ASBOX | |
1881 | ## ----------- ## | |
1882 | ## confdefs.h. ## | |
1883 | ## ----------- ## | |
1884 | _ASBOX | |
1885 | echo | |
7a197a62 | 1886 | cat confdefs.h |
ad6254c5 AK |
1887 | echo |
1888 | fi | |
1889 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1890 | $as_echo "$as_me: caught signal $ac_signal" |
1891 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1892 | } >&5 |
7a197a62 AK |
1893 | rm -f core *.core core.conftest.* && |
1894 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1895 | exit $exit_status |
7a197a62 | 1896 | ' 0 |
ad6254c5 AK |
1897 | for ac_signal in 1 2 13 15; do |
1898 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1899 | done | |
1900 | ac_signal=0 | |
1901 | ||
1902 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1903 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1904 | |
1905 | # Predefined preprocessor variables. | |
1906 | ||
1907 | cat >>confdefs.h <<_ACEOF | |
1908 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1909 | _ACEOF | |
1910 | ||
1911 | ||
1912 | cat >>confdefs.h <<_ACEOF | |
1913 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1914 | _ACEOF | |
1915 | ||
1916 | ||
1917 | cat >>confdefs.h <<_ACEOF | |
1918 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1919 | _ACEOF | |
8106cdd5 | 1920 | |
ad6254c5 AK |
1921 | |
1922 | cat >>confdefs.h <<_ACEOF | |
1923 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1924 | _ACEOF | |
1925 | ||
1926 | ||
1927 | cat >>confdefs.h <<_ACEOF | |
1928 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1929 | _ACEOF | |
1930 | ||
1931 | ||
1932 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1933 | # Prefer an explicitly selected file to automatically selected ones. |
1934 | ac_site_file1=NONE | |
1935 | ac_site_file2=NONE | |
7a197a62 | 1936 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1937 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1938 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1939 | ac_site_file1=$prefix/share/config.site |
1940 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1941 | else |
ec6a6fbe AK |
1942 | ac_site_file1=$ac_default_prefix/share/config.site |
1943 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1944 | fi |
ec6a6fbe | 1945 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1946 | do |
ec6a6fbe | 1947 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1948 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1949 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1950 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1951 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1952 | . "$ac_site_file" |
1953 | fi | |
1954 | done | |
1955 | ||
1956 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1957 | # Some versions of bash will fail to source /dev/null (special |
1958 | # files actually), so we avoid doing that. | |
1959 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1960 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1961 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1962 | case $cache_file in |
7a197a62 AK |
1963 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1964 | *) . "./$cache_file";; | |
ad6254c5 AK |
1965 | esac |
1966 | fi | |
795ca3e5 | 1967 | else |
ec6a6fbe AK |
1968 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1969 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1970 | >$cache_file |
1971 | fi | |
1972 | ||
1973 | # Check that the precious variables saved in the cache have kept the same | |
1974 | # value. | |
1975 | ac_cache_corrupted=false | |
7a197a62 | 1976 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1977 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1978 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1979 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1980 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1981 | case $ac_old_set,$ac_new_set in |
1982 | set,) | |
ec6a6fbe AK |
1983 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1984 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1985 | ac_cache_corrupted=: ;; |
1986 | ,set) | |
ec6a6fbe AK |
1987 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1988 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1989 | ac_cache_corrupted=: ;; |
1990 | ,);; | |
1991 | *) | |
1992 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1993 | # differences in whitespace do not lead to failure. |
1994 | ac_old_val_w=`echo x $ac_old_val` | |
1995 | ac_new_val_w=`echo x $ac_new_val` | |
1996 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1997 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1998 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1999 | ac_cache_corrupted=: | |
2000 | else | |
2001 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2002 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2003 | eval $ac_var=\$ac_old_val | |
2004 | fi | |
2005 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2006 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2007 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2008 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2009 | fi;; |
2010 | esac | |
2011 | # Pass precious variables to config.status. | |
2012 | if test "$ac_new_set" = set; then | |
2013 | case $ac_new_val in | |
ec6a6fbe | 2014 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2015 | *) ac_arg=$ac_var=$ac_new_val ;; |
2016 | esac | |
2017 | case " $ac_configure_args " in | |
2018 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2019 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2020 | esac | |
2021 | fi | |
2022 | done | |
2023 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2024 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2025 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2026 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2027 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2028 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2029 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2030 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2031 | fi |
2032 | ||
ad6254c5 AK |
2033 | |
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | ||
2044 | ||
2045 | ||
2046 | ||
2047 | ||
2048 | ||
7a197a62 AK |
2049 | ac_ext=c |
2050 | ac_cpp='$CPP $CPPFLAGS' | |
2051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2054 | |
795ca3e5 AK |
2055 | |
2056 | ||
7a197a62 | 2057 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2058 | |
2059 | ||
80992638 | 2060 | ################################################################################ |
795ca3e5 | 2061 | ac_aux_dir= |
7a197a62 AK |
2062 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2063 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2064 | ac_aux_dir=$ac_dir |
2065 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2066 | break | |
7a197a62 | 2067 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2068 | ac_aux_dir=$ac_dir |
2069 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2070 | break | |
7a197a62 | 2071 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2072 | ac_aux_dir=$ac_dir |
2073 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2074 | break | |
795ca3e5 AK |
2075 | fi |
2076 | done | |
2077 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2078 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2079 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2080 | { (exit 1); exit 1; }; } |
795ca3e5 | 2081 | fi |
7a197a62 AK |
2082 | |
2083 | # These three variables are undocumented and unsupported, | |
2084 | # and are intended to be withdrawn in a future Autoconf release. | |
2085 | # They can cause serious problems if a builder's source tree is in a directory | |
2086 | # whose full name contains unusual characters. | |
2087 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2088 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2089 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2090 | ||
8ce0cbda AK |
2091 | |
2092 | ||
ad6254c5 | 2093 | ################################################################################ |
8ce0cbda | 2094 | # Make sure we can run config.sub. |
7a197a62 | 2095 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2096 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2097 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2098 | { (exit 1); exit 1; }; } |
2099 | ||
ec6a6fbe AK |
2100 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2101 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2102 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2103 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2104 | else |
7a197a62 AK |
2105 | ac_build_alias=$build_alias |
2106 | test "x$ac_build_alias" = x && | |
2107 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2108 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2109 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2110 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2111 | { (exit 1); exit 1; }; } |
7a197a62 | 2112 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2113 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2114 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2115 | { (exit 1); exit 1; }; } |
2116 | ||
2117 | fi | |
ec6a6fbe AK |
2118 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2119 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2120 | case $ac_cv_build in |
2121 | *-*-*) ;; | |
ec6a6fbe AK |
2122 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2123 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2124 | { (exit 1); exit 1; }; };; |
2125 | esac | |
ad6254c5 | 2126 | build=$ac_cv_build |
7a197a62 AK |
2127 | ac_save_IFS=$IFS; IFS='-' |
2128 | set x $ac_cv_build | |
2129 | shift | |
2130 | build_cpu=$1 | |
2131 | build_vendor=$2 | |
2132 | shift; shift | |
2133 | # Remember, the first character of IFS is used to create $*, | |
2134 | # except with old shells: | |
2135 | build_os=$* | |
2136 | IFS=$ac_save_IFS | |
2137 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2138 | |
2139 | ||
ec6a6fbe AK |
2140 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2141 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2142 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2143 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2144 | else |
7a197a62 AK |
2145 | if test "x$host_alias" = x; then |
2146 | ac_cv_host=$ac_cv_build | |
2147 | else | |
2148 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2149 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2150 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2151 | { (exit 1); exit 1; }; } |
7a197a62 | 2152 | fi |
ad6254c5 AK |
2153 | |
2154 | fi | |
ec6a6fbe AK |
2155 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2156 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2157 | case $ac_cv_host in |
2158 | *-*-*) ;; | |
ec6a6fbe AK |
2159 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2160 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2161 | { (exit 1); exit 1; }; };; |
2162 | esac | |
ad6254c5 | 2163 | host=$ac_cv_host |
7a197a62 AK |
2164 | ac_save_IFS=$IFS; IFS='-' |
2165 | set x $ac_cv_host | |
2166 | shift | |
2167 | host_cpu=$1 | |
2168 | host_vendor=$2 | |
2169 | shift; shift | |
2170 | # Remember, the first character of IFS is used to create $*, | |
2171 | # except with old shells: | |
2172 | host_os=$* | |
2173 | IFS=$ac_save_IFS | |
2174 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2175 | |
2176 | ||
ec6a6fbe AK |
2177 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2178 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2179 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2180 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2181 | else |
7a197a62 AK |
2182 | if test "x$target_alias" = x; then |
2183 | ac_cv_target=$ac_cv_host | |
2184 | else | |
2185 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2186 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2187 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2188 | { (exit 1); exit 1; }; } |
7a197a62 | 2189 | fi |
8ce0cbda | 2190 | |
ad6254c5 | 2191 | fi |
ec6a6fbe AK |
2192 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2193 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2194 | case $ac_cv_target in |
2195 | *-*-*) ;; | |
ec6a6fbe AK |
2196 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2197 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2198 | { (exit 1); exit 1; }; };; |
2199 | esac | |
ad6254c5 | 2200 | target=$ac_cv_target |
7a197a62 AK |
2201 | ac_save_IFS=$IFS; IFS='-' |
2202 | set x $ac_cv_target | |
2203 | shift | |
2204 | target_cpu=$1 | |
2205 | target_vendor=$2 | |
2206 | shift; shift | |
2207 | # Remember, the first character of IFS is used to create $*, | |
2208 | # except with old shells: | |
2209 | target_os=$* | |
2210 | IFS=$ac_save_IFS | |
2211 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2212 | |
8ce0cbda | 2213 | |
ad6254c5 AK |
2214 | # The aliases save the names the user supplied, while $host etc. |
2215 | # will get canonicalized. | |
2216 | test -n "$target_alias" && | |
8ce0cbda AK |
2217 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2218 | NONENONEs,x,x, && | |
2219 | program_prefix=${target_alias}- | |
2220 | ||
8ce0cbda AK |
2221 | case "$host_os" in |
2222 | linux*) | |
7f54ef36 | 2223 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2224 | COPTIMISE_FLAG="-O2" |
2225 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2226 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2227 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2228 | LDDEPS="$LDDEPS .export.sym" | |
2229 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2230 | LIB_SUFFIX=so |
8ce0cbda AK |
2231 | DEVMAPPER=yes |
2232 | ODIRECT=yes | |
d0191583 | 2233 | DM_IOCTLS=yes |
8ce0cbda AK |
2234 | SELINUX=yes |
2235 | CLUSTER=internal | |
93bd259b | 2236 | FSADM=yes |
d0191583 | 2237 | ;; |
8ce0cbda AK |
2238 | darwin*) |
2239 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2240 | COPTIMISE_FLAG="-O2" | |
2241 | CLDFLAGS="$CLDFLAGS" | |
2242 | CLDWHOLEARCHIVE="-all_load" | |
2243 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2244 | LIB_SUFFIX=dylib |
a653923f | 2245 | DEVMAPPER=yes |
8ce0cbda | 2246 | ODIRECT=no |
d0191583 | 2247 | DM_IOCTLS=no |
8ce0cbda AK |
2248 | SELINUX=no |
2249 | CLUSTER=none | |
d0191583 JM |
2250 | FSADM=no |
2251 | ;; | |
8ce0cbda AK |
2252 | esac |
2253 | ||
80992638 | 2254 | ################################################################################ |
ec6a6fbe AK |
2255 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2256 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2257 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2258 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2259 | else |
2260 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2261 | for ac_i in 1 2 3 4 5 6 7; do | |
2262 | ac_script="$ac_script$as_nl$ac_script" | |
2263 | done | |
ec6a6fbe | 2264 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2265 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2266 | if test -z "$SED"; then |
5951ef33 | 2267 | ac_path_SED_found=false |
ec6a6fbe AK |
2268 | # Loop through the user's path and test for each of PROGNAME-LIST |
2269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2270 | for as_dir in $PATH |
2271 | do | |
2272 | IFS=$as_save_IFS | |
2273 | test -z "$as_dir" && as_dir=. | |
2274 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2275 | for ac_exec_ext in '' $ac_executable_extensions; do |
2276 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2277 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2278 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2279 | # Check for GNU $ac_path_SED |
2280 | case `"$ac_path_SED" --version 2>&1` in | |
2281 | *GNU*) | |
2282 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2283 | *) | |
2284 | ac_count=0 | |
ec6a6fbe | 2285 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2286 | while : |
2287 | do | |
2288 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2289 | mv "conftest.tmp" "conftest.in" | |
2290 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2291 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2292 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2293 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2294 | ac_count=`expr $ac_count + 1` | |
2295 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2296 | # Best one so far, save it but keep looking for a better one | |
2297 | ac_cv_path_SED="$ac_path_SED" | |
2298 | ac_path_SED_max=$ac_count | |
2299 | fi | |
2300 | # 10*(2^10) chars as input seems more than enough | |
2301 | test $ac_count -gt 10 && break | |
2302 | done | |
2303 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2304 | esac | |
2305 | ||
ec6a6fbe AK |
2306 | $ac_path_SED_found && break 3 |
2307 | done | |
5951ef33 AK |
2308 | done |
2309 | done | |
5951ef33 | 2310 | IFS=$as_save_IFS |
ec6a6fbe AK |
2311 | if test -z "$ac_cv_path_SED"; then |
2312 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2313 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2314 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2315 | fi |
5951ef33 AK |
2316 | else |
2317 | ac_cv_path_SED=$SED | |
2318 | fi | |
2319 | ||
2320 | fi | |
ec6a6fbe AK |
2321 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2322 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2323 | SED="$ac_cv_path_SED" |
2324 | rm -f conftest.sed | |
2325 | ||
ad6254c5 | 2326 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2327 | do |
ad6254c5 | 2328 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2329 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2330 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2331 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2332 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2333 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2334 | else |
2335 | if test -n "$AWK"; then | |
2336 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2337 | else | |
ad6254c5 AK |
2338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2339 | for as_dir in $PATH | |
2340 | do | |
2341 | IFS=$as_save_IFS | |
2342 | test -z "$as_dir" && as_dir=. | |
2343 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2345 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2346 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2347 | break 2 |
2348 | fi | |
2349 | done | |
2350 | done | |
7a197a62 | 2351 | IFS=$as_save_IFS |
ad6254c5 | 2352 | |
795ca3e5 AK |
2353 | fi |
2354 | fi | |
ad6254c5 | 2355 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2356 | if test -n "$AWK"; then |
ec6a6fbe AK |
2357 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2358 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2359 | else |
ec6a6fbe AK |
2360 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2361 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2362 | fi |
2363 | ||
7a197a62 | 2364 | |
ad6254c5 AK |
2365 | test -n "$AWK" && break |
2366 | done | |
2367 | ||
2368 | ac_ext=c | |
2369 | ac_cpp='$CPP $CPPFLAGS' | |
2370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2373 | if test -n "$ac_tool_prefix"; then | |
2374 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2375 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2376 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2377 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2378 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2379 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2380 | else |
2381 | if test -n "$CC"; then | |
2382 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2383 | else | |
2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2385 | for as_dir in $PATH | |
2386 | do | |
2387 | IFS=$as_save_IFS | |
2388 | test -z "$as_dir" && as_dir=. | |
2389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2391 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2392 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2393 | break 2 |
2394 | fi | |
2395 | done | |
8106cdd5 | 2396 | done |
7a197a62 | 2397 | IFS=$as_save_IFS |
8106cdd5 | 2398 | |
ad6254c5 AK |
2399 | fi |
2400 | fi | |
2401 | CC=$ac_cv_prog_CC | |
2402 | if test -n "$CC"; then | |
ec6a6fbe AK |
2403 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2404 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2405 | else |
ec6a6fbe AK |
2406 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2407 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2408 | fi |
2409 | ||
7a197a62 | 2410 | |
ad6254c5 AK |
2411 | fi |
2412 | if test -z "$ac_cv_prog_CC"; then | |
2413 | ac_ct_CC=$CC | |
2414 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2415 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2416 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2417 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2418 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2419 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2420 | else |
2421 | if test -n "$ac_ct_CC"; then | |
2422 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2423 | else | |
2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2425 | for as_dir in $PATH | |
2426 | do | |
2427 | IFS=$as_save_IFS | |
2428 | test -z "$as_dir" && as_dir=. | |
2429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2431 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2432 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2433 | break 2 |
2434 | fi | |
2435 | done | |
2436 | done | |
7a197a62 | 2437 | IFS=$as_save_IFS |
ad6254c5 AK |
2438 | |
2439 | fi | |
2440 | fi | |
2441 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2442 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2443 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2444 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2445 | else |
ec6a6fbe AK |
2446 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2447 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2448 | fi |
2449 | ||
7a197a62 AK |
2450 | if test "x$ac_ct_CC" = x; then |
2451 | CC="" | |
2452 | else | |
2453 | case $cross_compiling:$ac_tool_warned in | |
2454 | yes:) | |
ec6a6fbe AK |
2455 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2456 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2457 | ac_tool_warned=yes ;; |
2458 | esac | |
2459 | CC=$ac_ct_CC | |
2460 | fi | |
ad6254c5 AK |
2461 | else |
2462 | CC="$ac_cv_prog_CC" | |
2463 | fi | |
2464 | ||
2465 | if test -z "$CC"; then | |
7a197a62 AK |
2466 | if test -n "$ac_tool_prefix"; then |
2467 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2468 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2469 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2470 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2471 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2472 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2473 | else |
2474 | if test -n "$CC"; then | |
2475 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2476 | else | |
ad6254c5 AK |
2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2478 | for as_dir in $PATH | |
2479 | do | |
2480 | IFS=$as_save_IFS | |
2481 | test -z "$as_dir" && as_dir=. | |
2482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2484 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2485 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2486 | break 2 |
2487 | fi | |
2488 | done | |
2489 | done | |
7a197a62 | 2490 | IFS=$as_save_IFS |
ad6254c5 | 2491 | |
8106cdd5 AK |
2492 | fi |
2493 | fi | |
ad6254c5 | 2494 | CC=$ac_cv_prog_CC |
8106cdd5 | 2495 | if test -n "$CC"; then |
ec6a6fbe AK |
2496 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2497 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2498 | else |
ec6a6fbe AK |
2499 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2500 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2501 | fi |
2502 | ||
8106cdd5 | 2503 | |
7a197a62 | 2504 | fi |
ad6254c5 | 2505 | fi |
795ca3e5 AK |
2506 | if test -z "$CC"; then |
2507 | # Extract the first word of "cc", so it can be a program name with args. | |
2508 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2509 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2510 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2511 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2512 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2513 | else |
2514 | if test -n "$CC"; then | |
2515 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2516 | else | |
795ca3e5 | 2517 | ac_prog_rejected=no |
ad6254c5 AK |
2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2519 | for as_dir in $PATH | |
2520 | do | |
2521 | IFS=$as_save_IFS | |
2522 | test -z "$as_dir" && as_dir=. | |
2523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2525 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2526 | ac_prog_rejected=yes | |
2527 | continue | |
2528 | fi | |
2529 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2530 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2531 | break 2 |
2532 | fi | |
2533 | done | |
2534 | done | |
7a197a62 | 2535 | IFS=$as_save_IFS |
ad6254c5 | 2536 | |
795ca3e5 AK |
2537 | if test $ac_prog_rejected = yes; then |
2538 | # We found a bogon in the path, so make sure we never use it. | |
2539 | set dummy $ac_cv_prog_CC | |
2540 | shift | |
ad6254c5 | 2541 | if test $# != 0; then |
795ca3e5 AK |
2542 | # We chose a different compiler from the bogus one. |
2543 | # However, it has the same basename, so the bogon will be chosen | |
2544 | # first if we set CC to just the basename; use the full file name. | |
2545 | shift | |
ad6254c5 | 2546 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2547 | fi |
2548 | fi | |
2549 | fi | |
2550 | fi | |
ad6254c5 | 2551 | CC=$ac_cv_prog_CC |
795ca3e5 | 2552 | if test -n "$CC"; then |
ec6a6fbe AK |
2553 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2554 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2555 | else |
ec6a6fbe AK |
2556 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2557 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2558 | fi |
2559 | ||
7a197a62 | 2560 | |
ad6254c5 AK |
2561 | fi |
2562 | if test -z "$CC"; then | |
2563 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2564 | for ac_prog in cl.exe |
ad6254c5 AK |
2565 | do |
2566 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2567 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2568 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2569 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2570 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2571 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2572 | else |
2573 | if test -n "$CC"; then | |
2574 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2575 | else | |
ad6254c5 AK |
2576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2577 | for as_dir in $PATH | |
2578 | do | |
2579 | IFS=$as_save_IFS | |
2580 | test -z "$as_dir" && as_dir=. | |
2581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2583 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2584 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2585 | break 2 |
2586 | fi | |
2587 | done | |
2588 | done | |
7a197a62 | 2589 | IFS=$as_save_IFS |
ad6254c5 | 2590 | |
795ca3e5 AK |
2591 | fi |
2592 | fi | |
ad6254c5 | 2593 | CC=$ac_cv_prog_CC |
795ca3e5 | 2594 | if test -n "$CC"; then |
ec6a6fbe AK |
2595 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2596 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2597 | else |
ec6a6fbe AK |
2598 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2599 | $as_echo "no" >&6; } | |
795ca3e5 | 2600 | fi |
ad6254c5 | 2601 | |
7a197a62 | 2602 | |
ad6254c5 AK |
2603 | test -n "$CC" && break |
2604 | done | |
2605 | fi | |
2606 | if test -z "$CC"; then | |
2607 | ac_ct_CC=$CC | |
7a197a62 | 2608 | for ac_prog in cl.exe |
ad6254c5 AK |
2609 | do |
2610 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2611 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2612 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2613 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2614 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2615 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2616 | else |
2617 | if test -n "$ac_ct_CC"; then | |
2618 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2619 | else | |
2620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2621 | for as_dir in $PATH | |
2622 | do | |
2623 | IFS=$as_save_IFS | |
2624 | test -z "$as_dir" && as_dir=. | |
2625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2627 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2628 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2629 | break 2 |
795ca3e5 | 2630 | fi |
ad6254c5 AK |
2631 | done |
2632 | done | |
7a197a62 | 2633 | IFS=$as_save_IFS |
ad6254c5 AK |
2634 | |
2635 | fi | |
2636 | fi | |
2637 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2638 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2639 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2640 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2641 | else |
ec6a6fbe AK |
2642 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2643 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2644 | fi |
2645 | ||
7a197a62 | 2646 | |
ad6254c5 AK |
2647 | test -n "$ac_ct_CC" && break |
2648 | done | |
795ca3e5 | 2649 | |
7a197a62 AK |
2650 | if test "x$ac_ct_CC" = x; then |
2651 | CC="" | |
2652 | else | |
2653 | case $cross_compiling:$ac_tool_warned in | |
2654 | yes:) | |
ec6a6fbe AK |
2655 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2656 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2657 | ac_tool_warned=yes ;; |
2658 | esac | |
2659 | CC=$ac_ct_CC | |
2660 | fi | |
ad6254c5 AK |
2661 | fi |
2662 | ||
2663 | fi | |
2664 | ||
2665 | ||
ec6a6fbe AK |
2666 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2668 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2669 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2670 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2671 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2672 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2673 | |
2674 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2675 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2676 | set X $ac_compile | |
2677 | ac_compiler=$2 | |
7a197a62 AK |
2678 | { (ac_try="$ac_compiler --version >&5" |
2679 | case "(($ac_try" in | |
2680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2681 | *) ac_try_echo=$ac_try;; | |
2682 | esac | |
ec6a6fbe AK |
2683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2684 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2685 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2686 | ac_status=$? |
ec6a6fbe | 2687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2688 | (exit $ac_status); } |
7a197a62 AK |
2689 | { (ac_try="$ac_compiler -v >&5" |
2690 | case "(($ac_try" in | |
2691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2692 | *) ac_try_echo=$ac_try;; | |
2693 | esac | |
ec6a6fbe AK |
2694 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2695 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2696 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2697 | ac_status=$? |
ec6a6fbe | 2698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2699 | (exit $ac_status); } |
7a197a62 AK |
2700 | { (ac_try="$ac_compiler -V >&5" |
2701 | case "(($ac_try" in | |
2702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2703 | *) ac_try_echo=$ac_try;; | |
2704 | esac | |
ec6a6fbe AK |
2705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2706 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2707 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2708 | ac_status=$? |
ec6a6fbe | 2709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2710 | (exit $ac_status); } |
2711 | ||
2712 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2713 | /* confdefs.h. */ |
2714 | _ACEOF | |
2715 | cat confdefs.h >>conftest.$ac_ext | |
2716 | cat >>conftest.$ac_ext <<_ACEOF | |
2717 | /* end confdefs.h. */ | |
2718 | ||
2719 | int | |
2720 | main () | |
2721 | { | |
2722 | ||
2723 | ; | |
2724 | return 0; | |
2725 | } | |
2726 | _ACEOF | |
2727 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2728 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2729 | # Try to create an executable without -o first, disregard a.out. |
2730 | # It will help us diagnose broken compilers, and finding out an intuition | |
2731 | # of exeext. | |
ec6a6fbe AK |
2732 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2733 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2734 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2735 | ||
2736 | # The possible output files: | |
2737 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2738 | ||
7a197a62 AK |
2739 | ac_rmfiles= |
2740 | for ac_file in $ac_files | |
2741 | do | |
2742 | case $ac_file in | |
ec6a6fbe | 2743 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2744 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2745 | esac | |
2746 | done | |
2747 | rm -f $ac_rmfiles | |
2748 | ||
2749 | if { (ac_try="$ac_link_default" | |
2750 | case "(($ac_try" in | |
2751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2752 | *) ac_try_echo=$ac_try;; | |
2753 | esac | |
ec6a6fbe AK |
2754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2755 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2756 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2757 | ac_status=$? |
ec6a6fbe | 2758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2759 | (exit $ac_status); }; then |
7a197a62 AK |
2760 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2761 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2762 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2763 | # so that the user can short-circuit this test for compilers unknown to | |
2764 | # Autoconf. | |
25fbec5b | 2765 | for ac_file in $ac_files '' |
ad6254c5 AK |
2766 | do |
2767 | test -f "$ac_file" || continue | |
2768 | case $ac_file in | |
ec6a6fbe | 2769 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2770 | ;; |
ad6254c5 | 2771 | [ab].out ) |
8a2fc586 AK |
2772 | # We found the default executable, but exeext='' is most |
2773 | # certainly right. | |
2774 | break;; | |
ad6254c5 | 2775 | *.* ) |
7a197a62 AK |
2776 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2777 | then :; else | |
2778 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2779 | fi | |
2780 | # We set ac_cv_exeext here because the later test for it is not | |
2781 | # safe: cross compilers may not add the suffix if given an `-o' | |
2782 | # argument, so we may need to know it at that point already. | |
2783 | # Even if this section looks crufty: it has the advantage of | |
2784 | # actually working. | |
8a2fc586 | 2785 | break;; |
ad6254c5 | 2786 | * ) |
8a2fc586 | 2787 | break;; |
ad6254c5 AK |
2788 | esac |
2789 | done | |
7a197a62 AK |
2790 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2791 | ||
ad6254c5 | 2792 | else |
25fbec5b AK |
2793 | ac_file='' |
2794 | fi | |
2795 | ||
ec6a6fbe AK |
2796 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2797 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2798 | if test -z "$ac_file"; then |
ec6a6fbe | 2799 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2800 | sed 's/^/| /' conftest.$ac_ext >&5 |
2801 | ||
ec6a6fbe AK |
2802 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2803 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2804 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2805 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2806 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2807 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2808 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2809 | fi |
2810 | ||
2811 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2812 | |
7a197a62 | 2813 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2814 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2815 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2816 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2817 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2818 | # If not cross compiling, check that we can run a simple program. | |
2819 | if test "$cross_compiling" != yes; then | |
2820 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2821 | { (case "(($ac_try" in |
2822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2823 | *) ac_try_echo=$ac_try;; | |
2824 | esac | |
ec6a6fbe AK |
2825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2826 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2827 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2828 | ac_status=$? |
ec6a6fbe | 2829 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2830 | (exit $ac_status); }; }; then |
2831 | cross_compiling=no | |
795ca3e5 | 2832 | else |
ad6254c5 AK |
2833 | if test "$cross_compiling" = maybe; then |
2834 | cross_compiling=yes | |
2835 | else | |
ec6a6fbe AK |
2836 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2838 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2839 | If you meant to cross compile, use \`--host'. |
2840 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2841 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2842 | If you meant to cross compile, use \`--host'. |
2843 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2844 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2845 | fi |
795ca3e5 | 2846 | fi |
80992638 | 2847 | fi |
ec6a6fbe AK |
2848 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2849 | $as_echo "yes" >&6; } | |
ad6254c5 | 2850 | |
ec6a6fbe | 2851 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2852 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2853 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2854 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2855 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2856 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2857 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2858 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2859 | |
ec6a6fbe AK |
2860 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2861 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2862 | if { (ac_try="$ac_link" |
2863 | case "(($ac_try" in | |
2864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2865 | *) ac_try_echo=$ac_try;; | |
2866 | esac | |
ec6a6fbe AK |
2867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2868 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2869 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2870 | ac_status=$? |
ec6a6fbe | 2871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2872 | (exit $ac_status); }; then |
2873 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2874 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2875 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2876 | # `rm'. | |
2877 | for ac_file in conftest.exe conftest conftest.*; do | |
2878 | test -f "$ac_file" || continue | |
2879 | case $ac_file in | |
ec6a6fbe | 2880 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2881 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2882 | break;; |
ad6254c5 AK |
2883 | * ) break;; |
2884 | esac | |
2885 | done | |
80992638 | 2886 | else |
ec6a6fbe AK |
2887 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2888 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2889 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2890 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2891 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2892 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2893 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2894 | fi |
2895 | ||
2896 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2898 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2899 | |
2900 | rm -f conftest.$ac_ext | |
2901 | EXEEXT=$ac_cv_exeext | |
2902 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2903 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2904 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2905 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2906 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2907 | else |
ad6254c5 | 2908 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2909 | /* confdefs.h. */ |
2910 | _ACEOF | |
2911 | cat confdefs.h >>conftest.$ac_ext | |
2912 | cat >>conftest.$ac_ext <<_ACEOF | |
2913 | /* end confdefs.h. */ | |
2914 | ||
2915 | int | |
2916 | main () | |
2917 | { | |
2918 | ||
2919 | ; | |
2920 | return 0; | |
2921 | } | |
2922 | _ACEOF | |
2923 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2924 | if { (ac_try="$ac_compile" |
2925 | case "(($ac_try" in | |
2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2927 | *) ac_try_echo=$ac_try;; | |
2928 | esac | |
ec6a6fbe AK |
2929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2930 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2931 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2932 | ac_status=$? |
ec6a6fbe | 2933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2934 | (exit $ac_status); }; then |
7a197a62 AK |
2935 | for ac_file in conftest.o conftest.obj conftest.*; do |
2936 | test -f "$ac_file" || continue; | |
ad6254c5 | 2937 | case $ac_file in |
ec6a6fbe | 2938 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2939 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2940 | break;; | |
2941 | esac | |
2942 | done | |
2943 | else | |
ec6a6fbe | 2944 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2945 | sed 's/^/| /' conftest.$ac_ext >&5 |
2946 | ||
ec6a6fbe AK |
2947 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2949 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2950 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2951 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2952 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2953 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2954 | fi |
2955 | ||
2956 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2957 | fi | |
ec6a6fbe AK |
2958 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2959 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2960 | OBJEXT=$ac_cv_objext |
2961 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2962 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2963 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2964 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2965 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2966 | else |
2967 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2968 | /* confdefs.h. */ |
2969 | _ACEOF | |
2970 | cat confdefs.h >>conftest.$ac_ext | |
2971 | cat >>conftest.$ac_ext <<_ACEOF | |
2972 | /* end confdefs.h. */ | |
2973 | ||
2974 | int | |
2975 | main () | |
2976 | { | |
2977 | #ifndef __GNUC__ | |
2978 | choke me | |
2979 | #endif | |
80992638 | 2980 | |
ad6254c5 AK |
2981 | ; |
2982 | return 0; | |
2983 | } | |
2984 | _ACEOF | |
2985 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2986 | if { (ac_try="$ac_compile" |
2987 | case "(($ac_try" in | |
2988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2989 | *) ac_try_echo=$ac_try;; | |
2990 | esac | |
ec6a6fbe AK |
2991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2992 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2993 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2994 | ac_status=$? |
8a2fc586 AK |
2995 | grep -v '^ *+' conftest.er1 >conftest.err |
2996 | rm -f conftest.er1 | |
2997 | cat conftest.err >&5 | |
ec6a6fbe | 2998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2999 | (exit $ac_status); } && { |
3000 | test -z "$ac_c_werror_flag" || | |
3001 | test ! -s conftest.err | |
3002 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3003 | ac_compiler_gnu=yes |
80992638 | 3004 | else |
ec6a6fbe | 3005 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3006 | sed 's/^/| /' conftest.$ac_ext >&5 |
3007 | ||
7a197a62 | 3008 | ac_compiler_gnu=no |
8106cdd5 | 3009 | fi |
7a197a62 AK |
3010 | |
3011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3012 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3013 | |
ad6254c5 | 3014 | fi |
ec6a6fbe AK |
3015 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3016 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3017 | if test $ac_compiler_gnu = yes; then | |
3018 | GCC=yes | |
3019 | else | |
3020 | GCC= | |
3021 | fi | |
ad6254c5 AK |
3022 | ac_test_CFLAGS=${CFLAGS+set} |
3023 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3024 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3025 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3026 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3027 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3028 | else |
7a197a62 AK |
3029 | ac_save_c_werror_flag=$ac_c_werror_flag |
3030 | ac_c_werror_flag=yes | |
3031 | ac_cv_prog_cc_g=no | |
3032 | CFLAGS="-g" | |
3033 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3034 | /* confdefs.h. */ |
3035 | _ACEOF | |
3036 | cat confdefs.h >>conftest.$ac_ext | |
3037 | cat >>conftest.$ac_ext <<_ACEOF | |
3038 | /* end confdefs.h. */ | |
3039 | ||
3040 | int | |
3041 | main () | |
3042 | { | |
3043 | ||
3044 | ; | |
3045 | return 0; | |
3046 | } | |
3047 | _ACEOF | |
3048 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3049 | if { (ac_try="$ac_compile" |
3050 | case "(($ac_try" in | |
3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3052 | *) ac_try_echo=$ac_try;; | |
3053 | esac | |
ec6a6fbe AK |
3054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3055 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3056 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3057 | ac_status=$? |
8a2fc586 AK |
3058 | grep -v '^ *+' conftest.er1 >conftest.err |
3059 | rm -f conftest.er1 | |
3060 | cat conftest.err >&5 | |
ec6a6fbe | 3061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3062 | (exit $ac_status); } && { |
3063 | test -z "$ac_c_werror_flag" || | |
3064 | test ! -s conftest.err | |
3065 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3066 | ac_cv_prog_cc_g=yes |
3067 | else | |
ec6a6fbe | 3068 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
3070 | ||
3071 | CFLAGS="" | |
3072 | cat >conftest.$ac_ext <<_ACEOF | |
3073 | /* confdefs.h. */ | |
3074 | _ACEOF | |
3075 | cat confdefs.h >>conftest.$ac_ext | |
3076 | cat >>conftest.$ac_ext <<_ACEOF | |
3077 | /* end confdefs.h. */ | |
3078 | ||
3079 | int | |
3080 | main () | |
3081 | { | |
3082 | ||
3083 | ; | |
3084 | return 0; | |
3085 | } | |
3086 | _ACEOF | |
3087 | rm -f conftest.$ac_objext | |
3088 | if { (ac_try="$ac_compile" | |
3089 | case "(($ac_try" in | |
3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3091 | *) ac_try_echo=$ac_try;; | |
3092 | esac | |
ec6a6fbe AK |
3093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3094 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3095 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3096 | ac_status=$? |
7a197a62 AK |
3097 | grep -v '^ *+' conftest.er1 >conftest.err |
3098 | rm -f conftest.er1 | |
3099 | cat conftest.err >&5 | |
ec6a6fbe | 3100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3101 | (exit $ac_status); } && { |
3102 | test -z "$ac_c_werror_flag" || | |
3103 | test ! -s conftest.err | |
3104 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3105 | : |
3106 | else | |
ec6a6fbe | 3107 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3108 | sed 's/^/| /' conftest.$ac_ext >&5 |
3109 | ||
3110 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3111 | CFLAGS="-g" | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
3113 | /* confdefs.h. */ | |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | ||
3119 | int | |
3120 | main () | |
3121 | { | |
3122 | ||
3123 | ; | |
3124 | return 0; | |
3125 | } | |
3126 | _ACEOF | |
3127 | rm -f conftest.$ac_objext | |
3128 | if { (ac_try="$ac_compile" | |
3129 | case "(($ac_try" in | |
3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3131 | *) ac_try_echo=$ac_try;; | |
3132 | esac | |
ec6a6fbe AK |
3133 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3134 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3135 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3136 | ac_status=$? |
7a197a62 AK |
3137 | grep -v '^ *+' conftest.er1 >conftest.err |
3138 | rm -f conftest.er1 | |
3139 | cat conftest.err >&5 | |
ec6a6fbe | 3140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3141 | (exit $ac_status); } && { |
3142 | test -z "$ac_c_werror_flag" || | |
3143 | test ! -s conftest.err | |
3144 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3145 | ac_cv_prog_cc_g=yes |
3146 | else | |
ec6a6fbe | 3147 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3149 | |
7a197a62 AK |
3150 | |
3151 | fi | |
3152 | ||
3153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3154 | fi | |
3155 | ||
3156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3157 | fi |
7a197a62 AK |
3158 | |
3159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3160 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3161 | fi |
ec6a6fbe AK |
3162 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3163 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3164 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3165 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3166 | elif test $ac_cv_prog_cc_g = yes; then |
3167 | if test "$GCC" = yes; then | |
3168 | CFLAGS="-g -O2" | |
3169 | else | |
3170 | CFLAGS="-g" | |
3171 | fi | |
3172 | else | |
3173 | if test "$GCC" = yes; then | |
3174 | CFLAGS="-O2" | |
3175 | else | |
3176 | CFLAGS= | |
3177 | fi | |
3178 | fi | |
ec6a6fbe AK |
3179 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3180 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3181 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3182 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3183 | else |
7a197a62 | 3184 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3185 | ac_save_CC=$CC |
3186 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3187 | /* confdefs.h. */ |
3188 | _ACEOF | |
3189 | cat confdefs.h >>conftest.$ac_ext | |
3190 | cat >>conftest.$ac_ext <<_ACEOF | |
3191 | /* end confdefs.h. */ | |
3192 | #include <stdarg.h> | |
3193 | #include <stdio.h> | |
3194 | #include <sys/types.h> | |
3195 | #include <sys/stat.h> | |
3196 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3197 | struct buf { int x; }; | |
3198 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3199 | static char *e (p, i) | |
3200 | char **p; | |
3201 | int i; | |
3202 | { | |
3203 | return p[i]; | |
3204 | } | |
3205 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3206 | { | |
3207 | char *s; | |
3208 | va_list v; | |
3209 | va_start (v,p); | |
3210 | s = g (p, va_arg (v,int)); | |
3211 | va_end (v); | |
3212 | return s; | |
3213 | } | |
8a2fc586 AK |
3214 | |
3215 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3216 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3217 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3218 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3219 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3220 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3221 | that's true only with -std. */ |
8a2fc586 AK |
3222 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3223 | ||
7a197a62 AK |
3224 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3225 | inside strings and character constants. */ | |
3226 | #define FOO(x) 'x' | |
3227 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3228 | ||
ad6254c5 AK |
3229 | int test (int i, double x); |
3230 | struct s1 {int (*f) (int a);}; | |
3231 | struct s2 {int (*f) (double a);}; | |
3232 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3233 | int argc; | |
3234 | char **argv; | |
3235 | int | |
3236 | main () | |
3237 | { | |
3238 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3239 | ; | |
3240 | return 0; | |
3241 | } | |
3242 | _ACEOF | |
7a197a62 AK |
3243 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3244 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3245 | do |
3246 | CC="$ac_save_CC $ac_arg" | |
3247 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3248 | if { (ac_try="$ac_compile" |
3249 | case "(($ac_try" in | |
3250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3251 | *) ac_try_echo=$ac_try;; | |
3252 | esac | |
ec6a6fbe AK |
3253 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3254 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3255 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3256 | ac_status=$? |
8a2fc586 AK |
3257 | grep -v '^ *+' conftest.er1 >conftest.err |
3258 | rm -f conftest.er1 | |
3259 | cat conftest.err >&5 | |
ec6a6fbe | 3260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3261 | (exit $ac_status); } && { |
3262 | test -z "$ac_c_werror_flag" || | |
3263 | test ! -s conftest.err | |
3264 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3265 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3266 | else |
ec6a6fbe | 3267 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3268 | sed 's/^/| /' conftest.$ac_ext >&5 |
3269 | ||
7a197a62 | 3270 | |
ad6254c5 | 3271 | fi |
7a197a62 AK |
3272 | |
3273 | rm -f core conftest.err conftest.$ac_objext | |
3274 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3275 | done |
7a197a62 | 3276 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3277 | CC=$ac_save_CC |
3278 | ||
3279 | fi | |
7a197a62 AK |
3280 | # AC_CACHE_VAL |
3281 | case "x$ac_cv_prog_cc_c89" in | |
3282 | x) | |
ec6a6fbe AK |
3283 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3284 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3285 | xno) |
ec6a6fbe AK |
3286 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3287 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3288 | *) |
7a197a62 | 3289 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3290 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3291 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3292 | esac |
3293 | ||
ad6254c5 | 3294 | |
ad6254c5 AK |
3295 | ac_ext=c |
3296 | ac_cpp='$CPP $CPPFLAGS' | |
3297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3300 | |
d0191583 JM |
3301 | |
3302 | ||
3303 | ac_ext=c | |
3304 | ac_cpp='$CPP $CPPFLAGS' | |
3305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3308 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3309 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3310 | # On Suns, sometimes $CPP names a directory. |
3311 | if test -n "$CPP" && test -d "$CPP"; then | |
3312 | CPP= | |
3313 | fi | |
3314 | if test -z "$CPP"; then | |
3315 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3316 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3317 | else |
d0191583 JM |
3318 | # Double quotes because CPP needs to be expanded |
3319 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3320 | do | |
3321 | ac_preproc_ok=false | |
3322 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3323 | do |
d0191583 JM |
3324 | # Use a header file that comes with gcc, so configuring glibc |
3325 | # with a fresh cross-compiler works. | |
3326 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3327 | # <limits.h> exists even on freestanding compilers. | |
3328 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3329 | # not just through cpp. "Syntax error" is here to catch this case. | |
3330 | cat >conftest.$ac_ext <<_ACEOF | |
3331 | /* confdefs.h. */ | |
3332 | _ACEOF | |
3333 | cat confdefs.h >>conftest.$ac_ext | |
3334 | cat >>conftest.$ac_ext <<_ACEOF | |
3335 | /* end confdefs.h. */ | |
3336 | #ifdef __STDC__ | |
3337 | # include <limits.h> | |
3338 | #else | |
3339 | # include <assert.h> | |
3340 | #endif | |
3341 | Syntax error | |
3342 | _ACEOF | |
3343 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3344 | case "(($ac_try" in | |
3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3346 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3347 | esac |
ec6a6fbe AK |
3348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3349 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3350 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3351 | ac_status=$? | |
3352 | grep -v '^ *+' conftest.er1 >conftest.err | |
3353 | rm -f conftest.er1 | |
3354 | cat conftest.err >&5 | |
ec6a6fbe | 3355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3356 | (exit $ac_status); } >/dev/null && { |
3357 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3358 | test ! -s conftest.err | |
3359 | }; then | |
3360 | : | |
3361 | else | |
ec6a6fbe | 3362 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3363 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3364 | |
d0191583 JM |
3365 | # Broken: fails on valid input. |
3366 | continue | |
795ca3e5 | 3367 | fi |
795ca3e5 | 3368 | |
d0191583 | 3369 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3370 | |
d0191583 JM |
3371 | # OK, works on sane cases. Now check whether nonexistent headers |
3372 | # can be detected and how. | |
3373 | cat >conftest.$ac_ext <<_ACEOF | |
3374 | /* confdefs.h. */ | |
3375 | _ACEOF | |
3376 | cat confdefs.h >>conftest.$ac_ext | |
3377 | cat >>conftest.$ac_ext <<_ACEOF | |
3378 | /* end confdefs.h. */ | |
3379 | #include <ac_nonexistent.h> | |
3380 | _ACEOF | |
3381 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3382 | case "(($ac_try" in | |
3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3384 | *) ac_try_echo=$ac_try;; | |
3385 | esac | |
ec6a6fbe AK |
3386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3387 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3388 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3389 | ac_status=$? | |
3390 | grep -v '^ *+' conftest.er1 >conftest.err | |
3391 | rm -f conftest.er1 | |
3392 | cat conftest.err >&5 | |
ec6a6fbe | 3393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3394 | (exit $ac_status); } >/dev/null && { |
3395 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3396 | test ! -s conftest.err | |
3397 | }; then | |
3398 | # Broken: success on invalid input. | |
3399 | continue | |
3400 | else | |
ec6a6fbe | 3401 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3402 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3403 | |
d0191583 JM |
3404 | # Passes both tests. |
3405 | ac_preproc_ok=: | |
3406 | break | |
3407 | fi | |
795ca3e5 | 3408 | |
d0191583 JM |
3409 | rm -f conftest.err conftest.$ac_ext |
3410 | ||
3411 | done | |
3412 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3413 | rm -f conftest.err conftest.$ac_ext | |
3414 | if $ac_preproc_ok; then | |
3415 | break | |
795ca3e5 AK |
3416 | fi |
3417 | ||
d0191583 JM |
3418 | done |
3419 | ac_cv_prog_CPP=$CPP | |
3420 | ||
3421 | fi | |
3422 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3423 | else |
d0191583 JM |
3424 | ac_cv_prog_CPP=$CPP |
3425 | fi | |
ec6a6fbe AK |
3426 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3427 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3428 | ac_preproc_ok=false |
3429 | for ac_c_preproc_warn_flag in '' yes | |
3430 | do | |
3431 | # Use a header file that comes with gcc, so configuring glibc | |
3432 | # with a fresh cross-compiler works. | |
3433 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3434 | # <limits.h> exists even on freestanding compilers. | |
3435 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3436 | # not just through cpp. "Syntax error" is here to catch this case. | |
3437 | cat >conftest.$ac_ext <<_ACEOF | |
3438 | /* confdefs.h. */ | |
ad6254c5 | 3439 | _ACEOF |
d0191583 JM |
3440 | cat confdefs.h >>conftest.$ac_ext |
3441 | cat >>conftest.$ac_ext <<_ACEOF | |
3442 | /* end confdefs.h. */ | |
3443 | #ifdef __STDC__ | |
3444 | # include <limits.h> | |
3445 | #else | |
3446 | # include <assert.h> | |
3447 | #endif | |
3448 | Syntax error | |
3449 | _ACEOF | |
3450 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3451 | case "(($ac_try" in | |
3452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3453 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3454 | esac |
ec6a6fbe AK |
3455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3456 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3457 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3458 | ac_status=$? | |
3459 | grep -v '^ *+' conftest.er1 >conftest.err | |
3460 | rm -f conftest.er1 | |
3461 | cat conftest.err >&5 | |
ec6a6fbe | 3462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3463 | (exit $ac_status); } >/dev/null && { |
3464 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3465 | test ! -s conftest.err | |
3466 | }; then | |
3467 | : | |
795ca3e5 | 3468 | else |
ec6a6fbe | 3469 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3470 | sed 's/^/| /' conftest.$ac_ext >&5 |
3471 | ||
3472 | # Broken: fails on valid input. | |
3473 | continue | |
795ca3e5 AK |
3474 | fi |
3475 | ||
d0191583 JM |
3476 | rm -f conftest.err conftest.$ac_ext |
3477 | ||
3478 | # OK, works on sane cases. Now check whether nonexistent headers | |
3479 | # can be detected and how. | |
3480 | cat >conftest.$ac_ext <<_ACEOF | |
3481 | /* confdefs.h. */ | |
3482 | _ACEOF | |
3483 | cat confdefs.h >>conftest.$ac_ext | |
3484 | cat >>conftest.$ac_ext <<_ACEOF | |
3485 | /* end confdefs.h. */ | |
3486 | #include <ac_nonexistent.h> | |
3487 | _ACEOF | |
3488 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3489 | case "(($ac_try" in | |
3490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3491 | *) ac_try_echo=$ac_try;; | |
3492 | esac | |
ec6a6fbe AK |
3493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3494 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3496 | ac_status=$? | |
3497 | grep -v '^ *+' conftest.er1 >conftest.err | |
3498 | rm -f conftest.er1 | |
3499 | cat conftest.err >&5 | |
ec6a6fbe | 3500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3501 | (exit $ac_status); } >/dev/null && { |
3502 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3503 | test ! -s conftest.err | |
3504 | }; then | |
3505 | # Broken: success on invalid input. | |
3506 | continue | |
795ca3e5 | 3507 | else |
ec6a6fbe | 3508 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3509 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3510 | |
d0191583 JM |
3511 | # Passes both tests. |
3512 | ac_preproc_ok=: | |
3513 | break | |
795ca3e5 | 3514 | fi |
d0191583 JM |
3515 | |
3516 | rm -f conftest.err conftest.$ac_ext | |
3517 | ||
3518 | done | |
3519 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3520 | rm -f conftest.err conftest.$ac_ext | |
3521 | if $ac_preproc_ok; then | |
3522 | : | |
8106cdd5 | 3523 | else |
ec6a6fbe AK |
3524 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3525 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3526 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3527 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3528 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3529 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3530 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3531 | fi |
3532 | ||
d0191583 JM |
3533 | ac_ext=c |
3534 | ac_cpp='$CPP $CPPFLAGS' | |
3535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3538 | ||
7a197a62 | 3539 | |
ec6a6fbe AK |
3540 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3541 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3542 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3543 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3544 | else |
ec6a6fbe | 3545 | if test -z "$GREP"; then |
d0191583 | 3546 | ac_path_GREP_found=false |
ec6a6fbe AK |
3547 | # Loop through the user's path and test for each of PROGNAME-LIST |
3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3549 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3550 | do |
3551 | IFS=$as_save_IFS | |
3552 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3553 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3554 | for ac_exec_ext in '' $ac_executable_extensions; do |
3555 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3556 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3557 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3558 | # Check for GNU $ac_path_GREP |
3559 | case `"$ac_path_GREP" --version 2>&1` in | |
3560 | *GNU*) | |
3561 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3562 | *) | |
3563 | ac_count=0 | |
ec6a6fbe | 3564 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3565 | while : |
3566 | do | |
3567 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3568 | mv "conftest.tmp" "conftest.in" | |
3569 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3570 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3571 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3572 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3573 | ac_count=`expr $ac_count + 1` | |
3574 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3575 | # Best one so far, save it but keep looking for a better one | |
3576 | ac_cv_path_GREP="$ac_path_GREP" | |
3577 | ac_path_GREP_max=$ac_count | |
3578 | fi | |
3579 | # 10*(2^10) chars as input seems more than enough | |
3580 | test $ac_count -gt 10 && break | |
3581 | done | |
3582 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3583 | esac | |
3584 | ||
ec6a6fbe AK |
3585 | $ac_path_GREP_found && break 3 |
3586 | done | |
d0191583 | 3587 | done |
ad6254c5 | 3588 | done |
7a197a62 | 3589 | IFS=$as_save_IFS |
ec6a6fbe AK |
3590 | if test -z "$ac_cv_path_GREP"; then |
3591 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3592 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3593 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3594 | fi |
80992638 | 3595 | else |
d0191583 | 3596 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3597 | fi |
8106cdd5 | 3598 | |
80992638 | 3599 | fi |
ec6a6fbe AK |
3600 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3601 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3602 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3603 | |
d0191583 | 3604 | |
ec6a6fbe AK |
3605 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3606 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3607 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3608 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3609 | else |
d0191583 JM |
3610 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3611 | then ac_cv_path_EGREP="$GREP -E" | |
3612 | else | |
ec6a6fbe | 3613 | if test -z "$EGREP"; then |
d0191583 | 3614 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3615 | # Loop through the user's path and test for each of PROGNAME-LIST |
3616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3617 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3618 | do |
3619 | IFS=$as_save_IFS | |
3620 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3621 | for ac_prog in egrep; do |
ec6a6fbe AK |
3622 | for ac_exec_ext in '' $ac_executable_extensions; do |
3623 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3624 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3625 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3626 | # Check for GNU $ac_path_EGREP |
3627 | case `"$ac_path_EGREP" --version 2>&1` in | |
3628 | *GNU*) | |
3629 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3630 | *) | |
3631 | ac_count=0 | |
ec6a6fbe | 3632 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3633 | while : |
3634 | do | |
3635 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3636 | mv "conftest.tmp" "conftest.in" | |
3637 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3638 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3639 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3640 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3641 | ac_count=`expr $ac_count + 1` | |
3642 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3643 | # Best one so far, save it but keep looking for a better one | |
3644 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3645 | ac_path_EGREP_max=$ac_count | |
3646 | fi | |
3647 | # 10*(2^10) chars as input seems more than enough | |
3648 | test $ac_count -gt 10 && break | |
3649 | done | |
3650 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3651 | esac |
8a2fc586 | 3652 | |
ec6a6fbe AK |
3653 | $ac_path_EGREP_found && break 3 |
3654 | done | |
d0191583 | 3655 | done |
8a2fc586 | 3656 | done |
7a197a62 | 3657 | IFS=$as_save_IFS |
ec6a6fbe AK |
3658 | if test -z "$ac_cv_path_EGREP"; then |
3659 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3660 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3661 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3662 | fi |
d0191583 JM |
3663 | else |
3664 | ac_cv_path_EGREP=$EGREP | |
3665 | fi | |
ad6254c5 | 3666 | |
d0191583 JM |
3667 | fi |
3668 | fi | |
ec6a6fbe AK |
3669 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3670 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3671 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3672 | |
3673 | ||
d0191583 | 3674 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3675 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3676 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3677 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3678 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3679 | else |
d0191583 | 3680 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3681 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3682 | /* confdefs.h. */ |
3683 | _ACEOF | |
3684 | cat confdefs.h >>conftest.$ac_ext | |
3685 | cat >>conftest.$ac_ext <<_ACEOF | |
3686 | /* end confdefs.h. */ | |
d0191583 JM |
3687 | #include <sgtty.h> |
3688 | Autoconf TIOCGETP | |
ad6254c5 | 3689 | _ACEOF |
d0191583 JM |
3690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3691 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3692 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3693 | else |
d0191583 | 3694 | ac_cv_prog_gcc_traditional=no |
80992638 | 3695 | fi |
d0191583 | 3696 | rm -f conftest* |
ad6254c5 | 3697 | |
8106cdd5 | 3698 | |
d0191583 JM |
3699 | if test $ac_cv_prog_gcc_traditional = no; then |
3700 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3701 | /* confdefs.h. */ |
3702 | _ACEOF | |
3703 | cat confdefs.h >>conftest.$ac_ext | |
3704 | cat >>conftest.$ac_ext <<_ACEOF | |
3705 | /* end confdefs.h. */ | |
d0191583 JM |
3706 | #include <termio.h> |
3707 | Autoconf TCGETA | |
ad6254c5 | 3708 | _ACEOF |
d0191583 JM |
3709 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3710 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3711 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3712 | fi |
d0191583 | 3713 | rm -f conftest* |
795ca3e5 | 3714 | |
d0191583 | 3715 | fi |
795ca3e5 | 3716 | fi |
ec6a6fbe AK |
3717 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3718 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3719 | if test $ac_cv_prog_gcc_traditional = yes; then |
3720 | CC="$CC -traditional" | |
3721 | fi | |
795ca3e5 AK |
3722 | fi |
3723 | ||
d0191583 JM |
3724 | # Find a good install program. We prefer a C program (faster), |
3725 | # so one script is as good as another. But avoid the broken or | |
3726 | # incompatible versions: | |
3727 | # SysV /etc/install, /usr/sbin/install | |
3728 | # SunOS /usr/etc/install | |
3729 | # IRIX /sbin/install | |
3730 | # AIX /bin/install | |
3731 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3732 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3733 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3734 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3735 | # OS/2's system install, which has a completely different semantic | |
3736 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3737 | # Reject install programs that cannot install multiple files. |
3738 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3739 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3740 | if test -z "$INSTALL"; then |
3741 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3742 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3743 | else |
d0191583 JM |
3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3745 | for as_dir in $PATH | |
3746 | do | |
3747 | IFS=$as_save_IFS | |
3748 | test -z "$as_dir" && as_dir=. | |
3749 | # Account for people who put trailing slashes in PATH elements. | |
3750 | case $as_dir/ in | |
3751 | ./ | .// | /cC/* | \ | |
3752 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3753 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3754 | /usr/ucb/* ) ;; | |
3755 | *) | |
3756 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3757 | # Don't use installbsd from OSF since it installs stuff as root | |
3758 | # by default. | |
3759 | for ac_prog in ginstall scoinst install; do | |
3760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3761 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3762 | if test $ac_prog = install && | |
3763 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3764 | # AIX install. It has an incompatible calling convention. | |
3765 | : | |
3766 | elif test $ac_prog = install && | |
3767 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3768 | # program-specific install script used by HP pwplus--don't use. | |
3769 | : | |
3770 | else | |
ec6a6fbe AK |
3771 | rm -rf conftest.one conftest.two conftest.dir |
3772 | echo one > conftest.one | |
3773 | echo two > conftest.two | |
3774 | mkdir conftest.dir | |
3775 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3776 | test -s conftest.one && test -s conftest.two && | |
3777 | test -s conftest.dir/conftest.one && | |
3778 | test -s conftest.dir/conftest.two | |
3779 | then | |
3780 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3781 | break 3 | |
3782 | fi | |
d0191583 JM |
3783 | fi |
3784 | fi | |
3785 | done | |
3786 | done | |
3787 | ;; | |
3788 | esac | |
ec6a6fbe | 3789 | |
d0191583 JM |
3790 | done |
3791 | IFS=$as_save_IFS | |
80992638 | 3792 | |
ec6a6fbe | 3793 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3794 | |
3795 | fi | |
3796 | if test "${ac_cv_path_install+set}" = set; then | |
3797 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3798 | else |
d0191583 JM |
3799 | # As a last resort, use the slow shell script. Don't cache a |
3800 | # value for INSTALL within a source directory, because that will | |
3801 | # break other packages using the cache if that directory is | |
3802 | # removed, or if the value is a relative name. | |
3803 | INSTALL=$ac_install_sh | |
7a197a62 | 3804 | fi |
d0191583 | 3805 | fi |
ec6a6fbe AK |
3806 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3807 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3808 | |
d0191583 JM |
3809 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3810 | # It thinks the first close brace ends the variable substitution. | |
3811 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3812 | |
d0191583 | 3813 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3814 | |
d0191583 JM |
3815 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3816 | ||
ec6a6fbe AK |
3817 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3818 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3819 | LN_S=$as_ln_s |
3820 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3821 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3822 | $as_echo "yes" >&6; } | |
d0191583 | 3823 | else |
ec6a6fbe AK |
3824 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3825 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3826 | fi |
d0191583 | 3827 | |
ec6a6fbe AK |
3828 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3829 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3830 | set x ${MAKE-make} | |
3831 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3832 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3833 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3834 | else |
d0191583 JM |
3835 | cat >conftest.make <<\_ACEOF |
3836 | SHELL = /bin/sh | |
3837 | all: | |
3838 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3839 | _ACEOF | |
3840 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3841 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3842 | *@@@%%%=?*=@@@%%%*) | |
3843 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3844 | *) | |
3845 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3846 | esac | |
3847 | rm -f conftest.make | |
ad6254c5 | 3848 | fi |
d0191583 | 3849 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3850 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3851 | $as_echo "yes" >&6; } | |
d0191583 JM |
3852 | SET_MAKE= |
3853 | else | |
ec6a6fbe AK |
3854 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3855 | $as_echo "no" >&6; } | |
d0191583 | 3856 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3857 | fi |
8106cdd5 | 3858 | |
ec6a6fbe AK |
3859 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3860 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3861 | if test -z "$MKDIR_P"; then |
3862 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3863 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3864 | else |
3865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3866 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3867 | do | |
3868 | IFS=$as_save_IFS | |
3869 | test -z "$as_dir" && as_dir=. | |
3870 | for ac_prog in mkdir gmkdir; do | |
3871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3872 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3873 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3874 | 'mkdir (GNU coreutils) '* | \ | |
3875 | 'mkdir (coreutils) '* | \ | |
3876 | 'mkdir (fileutils) '4.1*) | |
3877 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3878 | break 3;; | |
3879 | esac | |
3880 | done | |
3881 | done | |
3882 | done | |
3883 | IFS=$as_save_IFS | |
3884 | ||
3885 | fi | |
3886 | ||
3887 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3888 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3889 | else | |
3890 | # As a last resort, use the slow shell script. Don't cache a | |
3891 | # value for MKDIR_P within a source directory, because that will | |
3892 | # break other packages using the cache if that directory is | |
3893 | # removed, or if the value is a relative name. | |
3894 | test -d ./--version && rmdir ./--version | |
3895 | MKDIR_P="$ac_install_sh -d" | |
3896 | fi | |
3897 | fi | |
ec6a6fbe AK |
3898 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3899 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3900 | |
d0191583 JM |
3901 | if test -n "$ac_tool_prefix"; then |
3902 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3903 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3904 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3905 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3906 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3907 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3908 | else |
3909 | if test -n "$RANLIB"; then | |
3910 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3911 | else | |
3912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3913 | for as_dir in $PATH | |
3914 | do | |
3915 | IFS=$as_save_IFS | |
3916 | test -z "$as_dir" && as_dir=. | |
3917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3919 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3920 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3921 | break 2 |
3922 | fi | |
3923 | done | |
3924 | done | |
3925 | IFS=$as_save_IFS | |
8106cdd5 | 3926 | |
795ca3e5 | 3927 | fi |
d0191583 JM |
3928 | fi |
3929 | RANLIB=$ac_cv_prog_RANLIB | |
3930 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3931 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3932 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3933 | else |
ec6a6fbe AK |
3934 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3935 | $as_echo "no" >&6; } | |
d0191583 JM |
3936 | fi |
3937 | ||
8106cdd5 | 3938 | |
ad6254c5 | 3939 | fi |
d0191583 JM |
3940 | if test -z "$ac_cv_prog_RANLIB"; then |
3941 | ac_ct_RANLIB=$RANLIB | |
3942 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3943 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3944 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3945 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3946 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3947 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3948 | else |
d0191583 JM |
3949 | if test -n "$ac_ct_RANLIB"; then |
3950 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3951 | else | |
3952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3953 | for as_dir in $PATH | |
8106cdd5 | 3954 | do |
d0191583 JM |
3955 | IFS=$as_save_IFS |
3956 | test -z "$as_dir" && as_dir=. | |
3957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3959 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3960 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3961 | break 2 |
3962 | fi | |
3963 | done | |
3964 | done | |
3965 | IFS=$as_save_IFS | |
3966 | ||
3967 | fi | |
3968 | fi | |
3969 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3970 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3971 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3972 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3973 | else |
ec6a6fbe AK |
3974 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3975 | $as_echo "no" >&6; } | |
d0191583 | 3976 | fi |
ad6254c5 | 3977 | |
d0191583 JM |
3978 | if test "x$ac_ct_RANLIB" = x; then |
3979 | RANLIB=":" | |
3980 | else | |
3981 | case $cross_compiling:$ac_tool_warned in | |
3982 | yes:) | |
ec6a6fbe AK |
3983 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3984 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3985 | ac_tool_warned=yes ;; |
3986 | esac | |
3987 | RANLIB=$ac_ct_RANLIB | |
3988 | fi | |
3989 | else | |
3990 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3991 | fi |
7a197a62 | 3992 | |
d0191583 JM |
3993 | # Extract the first word of "cflow", so it can be a program name with args. |
3994 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3995 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3996 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3997 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3998 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3999 | else |
4000 | case $CFLOW_CMD in | |
4001 | [\\/]* | ?:[\\/]*) | |
4002 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4003 | ;; | |
4004 | *) | |
4005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4006 | for as_dir in $PATH | |
4007 | do | |
4008 | IFS=$as_save_IFS | |
4009 | test -z "$as_dir" && as_dir=. | |
4010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4012 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4013 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4014 | break 2 |
4015 | fi | |
4016 | done | |
4017 | done | |
4018 | IFS=$as_save_IFS | |
ad6254c5 | 4019 | |
d0191583 | 4020 | ;; |
7a197a62 | 4021 | esac |
d0191583 JM |
4022 | fi |
4023 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4024 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4025 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4026 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4027 | else |
ec6a6fbe AK |
4028 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4029 | $as_echo "no" >&6; } | |
795ca3e5 | 4030 | fi |
7a197a62 | 4031 | |
ad6254c5 | 4032 | |
d0191583 JM |
4033 | # Extract the first word of "cscope", so it can be a program name with args. |
4034 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4035 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4036 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4037 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4038 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4039 | else |
4040 | case $CSCOPE_CMD in | |
4041 | [\\/]* | ?:[\\/]*) | |
4042 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4043 | ;; | |
4044 | *) | |
4045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4046 | for as_dir in $PATH | |
4047 | do | |
4048 | IFS=$as_save_IFS | |
4049 | test -z "$as_dir" && as_dir=. | |
4050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4052 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4053 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4054 | break 2 |
4055 | fi | |
795ca3e5 | 4056 | done |
d0191583 JM |
4057 | done |
4058 | IFS=$as_save_IFS | |
795ca3e5 | 4059 | |
d0191583 JM |
4060 | ;; |
4061 | esac | |
ad6254c5 | 4062 | fi |
d0191583 JM |
4063 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4064 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4065 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4066 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4067 | else |
ec6a6fbe AK |
4068 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4069 | $as_echo "no" >&6; } | |
795ca3e5 | 4070 | fi |
ad6254c5 | 4071 | |
7a197a62 | 4072 | |
ad6254c5 | 4073 | |
d0191583 JM |
4074 | ################################################################################ |
4075 | ||
4076 | ||
4077 | ||
4078 | ||
4079 | ||
4080 | ac_header_dirent=no | |
4081 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4082 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4083 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4084 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4086 | $as_echo_n "(cached) " >&6 |
d0191583 | 4087 | else |
ad6254c5 | 4088 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4089 | /* confdefs.h. */ |
4090 | _ACEOF | |
4091 | cat confdefs.h >>conftest.$ac_ext | |
4092 | cat >>conftest.$ac_ext <<_ACEOF | |
4093 | /* end confdefs.h. */ | |
d0191583 JM |
4094 | #include <sys/types.h> |
4095 | #include <$ac_hdr> | |
4096 | ||
4097 | int | |
4098 | main () | |
4099 | { | |
4100 | if ((DIR *) 0) | |
4101 | return 0; | |
4102 | ; | |
4103 | return 0; | |
4104 | } | |
ad6254c5 | 4105 | _ACEOF |
d0191583 JM |
4106 | rm -f conftest.$ac_objext |
4107 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4108 | case "(($ac_try" in |
4109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4110 | *) ac_try_echo=$ac_try;; | |
4111 | esac | |
ec6a6fbe AK |
4112 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4113 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4114 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4115 | ac_status=$? |
4116 | grep -v '^ *+' conftest.er1 >conftest.err | |
4117 | rm -f conftest.er1 | |
4118 | cat conftest.err >&5 | |
ec6a6fbe | 4119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4120 | (exit $ac_status); } && { |
4121 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4122 | test ! -s conftest.err |
d0191583 JM |
4123 | } && test -s conftest.$ac_objext; then |
4124 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4125 | else |
ec6a6fbe | 4126 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4127 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4128 | |
d0191583 | 4129 | eval "$as_ac_Header=no" |
795ca3e5 | 4130 | fi |
7a197a62 | 4131 | |
d0191583 | 4132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4133 | fi |
ec6a6fbe AK |
4134 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4135 | $as_echo "$as_val"'` | |
4136 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4137 | $as_echo "$ac_res" >&6; } | |
4138 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4139 | $as_echo "$as_val"'` | |
4140 | if test "x$as_val" = x""yes; then | |
d0191583 | 4141 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4142 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4143 | _ACEOF |
795ca3e5 | 4144 | |
d0191583 JM |
4145 | ac_header_dirent=$ac_hdr; break |
4146 | fi | |
ad6254c5 | 4147 | |
d0191583 JM |
4148 | done |
4149 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4150 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4151 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4152 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4153 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4154 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4155 | else |
d0191583 JM |
4156 | ac_func_search_save_LIBS=$LIBS |
4157 | cat >conftest.$ac_ext <<_ACEOF | |
4158 | /* confdefs.h. */ | |
4159 | _ACEOF | |
4160 | cat confdefs.h >>conftest.$ac_ext | |
4161 | cat >>conftest.$ac_ext <<_ACEOF | |
4162 | /* end confdefs.h. */ | |
ad6254c5 | 4163 | |
d0191583 JM |
4164 | /* Override any GCC internal prototype to avoid an error. |
4165 | Use char because int might match the return type of a GCC | |
4166 | builtin and then its argument prototype would still apply. */ | |
4167 | #ifdef __cplusplus | |
4168 | extern "C" | |
4169 | #endif | |
4170 | char opendir (); | |
4171 | int | |
4172 | main () | |
4173 | { | |
4174 | return opendir (); | |
4175 | ; | |
4176 | return 0; | |
4177 | } | |
4178 | _ACEOF | |
4179 | for ac_lib in '' dir; do | |
4180 | if test -z "$ac_lib"; then | |
4181 | ac_res="none required" | |
4182 | else | |
4183 | ac_res=-l$ac_lib | |
4184 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4185 | fi | |
4186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4187 | if { (ac_try="$ac_link" | |
4188 | case "(($ac_try" in | |
4189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4190 | *) ac_try_echo=$ac_try;; | |
4191 | esac | |
ec6a6fbe AK |
4192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4193 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4194 | (eval "$ac_link") 2>conftest.er1 |
4195 | ac_status=$? | |
4196 | grep -v '^ *+' conftest.er1 >conftest.err | |
4197 | rm -f conftest.er1 | |
4198 | cat conftest.err >&5 | |
ec6a6fbe | 4199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4200 | (exit $ac_status); } && { |
4201 | test -z "$ac_c_werror_flag" || | |
4202 | test ! -s conftest.err | |
ec6a6fbe AK |
4203 | } && test -s conftest$ac_exeext && { |
4204 | test "$cross_compiling" = yes || | |
4205 | $as_test_x conftest$ac_exeext | |
4206 | }; then | |
d0191583 JM |
4207 | ac_cv_search_opendir=$ac_res |
4208 | else | |
ec6a6fbe | 4209 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4211 | |
ad6254c5 | 4212 | |
795ca3e5 | 4213 | fi |
ad6254c5 | 4214 | |
ec6a6fbe | 4215 | rm -rf conftest.dSYM |
d0191583 JM |
4216 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4217 | conftest$ac_exeext | |
4218 | if test "${ac_cv_search_opendir+set}" = set; then | |
4219 | break | |
7a197a62 | 4220 | fi |
d0191583 JM |
4221 | done |
4222 | if test "${ac_cv_search_opendir+set}" = set; then | |
4223 | : | |
7a197a62 | 4224 | else |
d0191583 | 4225 | ac_cv_search_opendir=no |
7a197a62 | 4226 | fi |
d0191583 JM |
4227 | rm conftest.$ac_ext |
4228 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4229 | fi |
ec6a6fbe AK |
4230 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4231 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4232 | ac_res=$ac_cv_search_opendir |
4233 | if test "$ac_res" != no; then | |
4234 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4235 | |
d0191583 | 4236 | fi |
7a197a62 | 4237 | |
7a197a62 | 4238 | else |
ec6a6fbe AK |
4239 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4240 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4241 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4242 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4243 | else |
d0191583 JM |
4244 | ac_func_search_save_LIBS=$LIBS |
4245 | cat >conftest.$ac_ext <<_ACEOF | |
4246 | /* confdefs.h. */ | |
4247 | _ACEOF | |
4248 | cat confdefs.h >>conftest.$ac_ext | |
4249 | cat >>conftest.$ac_ext <<_ACEOF | |
4250 | /* end confdefs.h. */ | |
7a197a62 | 4251 | |
d0191583 JM |
4252 | /* Override any GCC internal prototype to avoid an error. |
4253 | Use char because int might match the return type of a GCC | |
4254 | builtin and then its argument prototype would still apply. */ | |
4255 | #ifdef __cplusplus | |
4256 | extern "C" | |
4257 | #endif | |
4258 | char opendir (); | |
4259 | int | |
4260 | main () | |
4261 | { | |
4262 | return opendir (); | |
4263 | ; | |
4264 | return 0; | |
4265 | } | |
4266 | _ACEOF | |
4267 | for ac_lib in '' x; do | |
4268 | if test -z "$ac_lib"; then | |
4269 | ac_res="none required" | |
4270 | else | |
4271 | ac_res=-l$ac_lib | |
4272 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4273 | fi | |
4274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4275 | if { (ac_try="$ac_link" | |
4276 | case "(($ac_try" in | |
4277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4278 | *) ac_try_echo=$ac_try;; | |
4279 | esac | |
ec6a6fbe AK |
4280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4281 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4282 | (eval "$ac_link") 2>conftest.er1 |
4283 | ac_status=$? | |
4284 | grep -v '^ *+' conftest.er1 >conftest.err | |
4285 | rm -f conftest.er1 | |
4286 | cat conftest.err >&5 | |
ec6a6fbe | 4287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4288 | (exit $ac_status); } && { |
4289 | test -z "$ac_c_werror_flag" || | |
4290 | test ! -s conftest.err | |
ec6a6fbe AK |
4291 | } && test -s conftest$ac_exeext && { |
4292 | test "$cross_compiling" = yes || | |
4293 | $as_test_x conftest$ac_exeext | |
4294 | }; then | |
d0191583 JM |
4295 | ac_cv_search_opendir=$ac_res |
4296 | else | |
ec6a6fbe | 4297 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4298 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4299 | |
4300 | ||
4301 | fi | |
4302 | ||
ec6a6fbe | 4303 | rm -rf conftest.dSYM |
d0191583 JM |
4304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4305 | conftest$ac_exeext | |
4306 | if test "${ac_cv_search_opendir+set}" = set; then | |
4307 | break | |
7a197a62 | 4308 | fi |
d0191583 JM |
4309 | done |
4310 | if test "${ac_cv_search_opendir+set}" = set; then | |
4311 | : | |
7a197a62 | 4312 | else |
d0191583 | 4313 | ac_cv_search_opendir=no |
7a197a62 | 4314 | fi |
d0191583 JM |
4315 | rm conftest.$ac_ext |
4316 | LIBS=$ac_func_search_save_LIBS | |
4317 | fi | |
ec6a6fbe AK |
4318 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4319 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4320 | ac_res=$ac_cv_search_opendir |
4321 | if test "$ac_res" != no; then | |
4322 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4323 | |
7a197a62 | 4324 | fi |
7a197a62 | 4325 | |
d0191583 | 4326 | fi |
7a197a62 | 4327 | |
ec6a6fbe AK |
4328 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4329 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4330 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4331 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4332 | else |
4333 | cat >conftest.$ac_ext <<_ACEOF | |
4334 | /* confdefs.h. */ | |
4335 | _ACEOF | |
4336 | cat confdefs.h >>conftest.$ac_ext | |
4337 | cat >>conftest.$ac_ext <<_ACEOF | |
4338 | /* end confdefs.h. */ | |
4339 | #include <stdlib.h> | |
4340 | #include <stdarg.h> | |
4341 | #include <string.h> | |
4342 | #include <float.h> | |
4343 | ||
4344 | int | |
4345 | main () | |
4346 | { | |
4347 | ||
4348 | ; | |
4349 | return 0; | |
4350 | } | |
4351 | _ACEOF | |
4352 | rm -f conftest.$ac_objext | |
4353 | if { (ac_try="$ac_compile" | |
4354 | case "(($ac_try" in | |
4355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4356 | *) ac_try_echo=$ac_try;; | |
4357 | esac | |
ec6a6fbe AK |
4358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4359 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4360 | (eval "$ac_compile") 2>conftest.er1 |
4361 | ac_status=$? | |
4362 | grep -v '^ *+' conftest.er1 >conftest.err | |
4363 | rm -f conftest.er1 | |
4364 | cat conftest.err >&5 | |
ec6a6fbe | 4365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4366 | (exit $ac_status); } && { |
4367 | test -z "$ac_c_werror_flag" || | |
4368 | test ! -s conftest.err | |
4369 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4370 | ac_cv_header_stdc=yes |
4371 | else | |
ec6a6fbe | 4372 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4373 | sed 's/^/| /' conftest.$ac_ext >&5 |
4374 | ||
4375 | ac_cv_header_stdc=no | |
4376 | fi | |
4377 | ||
4378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4379 | ||
4380 | if test $ac_cv_header_stdc = yes; then | |
4381 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4382 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4383 | /* confdefs.h. */ |
4384 | _ACEOF | |
4385 | cat confdefs.h >>conftest.$ac_ext | |
4386 | cat >>conftest.$ac_ext <<_ACEOF | |
4387 | /* end confdefs.h. */ | |
4388 | #include <string.h> | |
8106cdd5 | 4389 | |
ad6254c5 AK |
4390 | _ACEOF |
4391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4392 | $EGREP "memchr" >/dev/null 2>&1; then | |
4393 | : | |
4394 | else | |
4395 | ac_cv_header_stdc=no | |
80992638 | 4396 | fi |
ad6254c5 | 4397 | rm -f conftest* |
795ca3e5 AK |
4398 | |
4399 | fi | |
4400 | ||
ad6254c5 AK |
4401 | if test $ac_cv_header_stdc = yes; then |
4402 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4403 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4404 | /* confdefs.h. */ |
4405 | _ACEOF | |
4406 | cat confdefs.h >>conftest.$ac_ext | |
4407 | cat >>conftest.$ac_ext <<_ACEOF | |
4408 | /* end confdefs.h. */ | |
80992638 | 4409 | #include <stdlib.h> |
ad6254c5 AK |
4410 | |
4411 | _ACEOF | |
80992638 | 4412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4413 | $EGREP "free" >/dev/null 2>&1; then |
4414 | : | |
795ca3e5 | 4415 | else |
ad6254c5 | 4416 | ac_cv_header_stdc=no |
795ca3e5 | 4417 | fi |
80992638 | 4418 | rm -f conftest* |
8106cdd5 | 4419 | |
795ca3e5 AK |
4420 | fi |
4421 | ||
ad6254c5 AK |
4422 | if test $ac_cv_header_stdc = yes; then |
4423 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4424 | if test "$cross_compiling" = yes; then | |
4425 | : | |
795ca3e5 | 4426 | else |
ad6254c5 | 4427 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4428 | /* confdefs.h. */ |
4429 | _ACEOF | |
4430 | cat confdefs.h >>conftest.$ac_ext | |
4431 | cat >>conftest.$ac_ext <<_ACEOF | |
4432 | /* end confdefs.h. */ | |
4433 | #include <ctype.h> | |
7a197a62 | 4434 | #include <stdlib.h> |
ad6254c5 AK |
4435 | #if ((' ' & 0x0FF) == 0x020) |
4436 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4437 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4438 | #else | |
4439 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4440 | (('a' <= (c) && (c) <= 'i') \ |
4441 | || ('j' <= (c) && (c) <= 'r') \ | |
4442 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4443 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4444 | #endif |
ad6254c5 AK |
4445 | |
4446 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4447 | int | |
4448 | main () | |
4449 | { | |
4450 | int i; | |
4451 | for (i = 0; i < 256; i++) | |
4452 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4453 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4454 | return 2; |
4455 | return 0; | |
ad6254c5 AK |
4456 | } |
4457 | _ACEOF | |
4458 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4459 | if { (ac_try="$ac_link" |
4460 | case "(($ac_try" in | |
4461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4462 | *) ac_try_echo=$ac_try;; | |
4463 | esac | |
ec6a6fbe AK |
4464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4465 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4466 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4467 | ac_status=$? |
ec6a6fbe | 4468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4469 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4470 | { (case "(($ac_try" in |
4471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4472 | *) ac_try_echo=$ac_try;; | |
4473 | esac | |
ec6a6fbe AK |
4474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4475 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4476 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4477 | ac_status=$? |
ec6a6fbe | 4478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4479 | (exit $ac_status); }; }; then |
4480 | : | |
795ca3e5 | 4481 | else |
ec6a6fbe AK |
4482 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4483 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4484 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4485 | |
ad6254c5 AK |
4486 | ( exit $ac_status ) |
4487 | ac_cv_header_stdc=no | |
80992638 | 4488 | fi |
ec6a6fbe | 4489 | rm -rf conftest.dSYM |
7a197a62 | 4490 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4491 | fi |
7a197a62 AK |
4492 | |
4493 | ||
ad6254c5 AK |
4494 | fi |
4495 | fi | |
ec6a6fbe AK |
4496 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4497 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4498 | if test $ac_cv_header_stdc = yes; then |
4499 | ||
4500 | cat >>confdefs.h <<\_ACEOF | |
4501 | #define STDC_HEADERS 1 | |
4502 | _ACEOF | |
795ca3e5 AK |
4503 | |
4504 | fi | |
4505 | ||
ec6a6fbe AK |
4506 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4507 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4508 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4509 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4510 | else |
ad6254c5 | 4511 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4512 | /* confdefs.h. */ |
4513 | _ACEOF | |
4514 | cat confdefs.h >>conftest.$ac_ext | |
4515 | cat >>conftest.$ac_ext <<_ACEOF | |
4516 | /* end confdefs.h. */ | |
80992638 | 4517 | #include <sys/types.h> |
ad6254c5 AK |
4518 | #include <sys/wait.h> |
4519 | #ifndef WEXITSTATUS | |
7a197a62 | 4520 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4521 | #endif |
4522 | #ifndef WIFEXITED | |
4523 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4524 | #endif | |
4525 | ||
4526 | int | |
4527 | main () | |
4528 | { | |
4529 | int s; | |
4530 | wait (&s); | |
4531 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4532 | ; | |
4533 | return 0; | |
4534 | } | |
4535 | _ACEOF | |
4536 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4537 | if { (ac_try="$ac_compile" |
4538 | case "(($ac_try" in | |
4539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4540 | *) ac_try_echo=$ac_try;; | |
4541 | esac | |
ec6a6fbe AK |
4542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4543 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4544 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4545 | ac_status=$? |
8a2fc586 AK |
4546 | grep -v '^ *+' conftest.er1 >conftest.err |
4547 | rm -f conftest.er1 | |
4548 | cat conftest.err >&5 | |
ec6a6fbe | 4549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4550 | (exit $ac_status); } && { |
4551 | test -z "$ac_c_werror_flag" || | |
4552 | test ! -s conftest.err | |
4553 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4554 | ac_cv_header_sys_wait_h=yes |
4555 | else | |
ec6a6fbe | 4556 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4557 | sed 's/^/| /' conftest.$ac_ext >&5 |
4558 | ||
7a197a62 | 4559 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4560 | fi |
7a197a62 AK |
4561 | |
4562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4563 | fi |
ec6a6fbe AK |
4564 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4565 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4566 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4567 | |
ad6254c5 AK |
4568 | cat >>confdefs.h <<\_ACEOF |
4569 | #define HAVE_SYS_WAIT_H 1 | |
4570 | _ACEOF | |
795ca3e5 AK |
4571 | |
4572 | fi | |
4573 | ||
ec6a6fbe AK |
4574 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4575 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4576 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4577 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4578 | else |
ad6254c5 | 4579 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4580 | /* confdefs.h. */ |
4581 | _ACEOF | |
4582 | cat confdefs.h >>conftest.$ac_ext | |
4583 | cat >>conftest.$ac_ext <<_ACEOF | |
4584 | /* end confdefs.h. */ | |
795ca3e5 AK |
4585 | #include <sys/types.h> |
4586 | #include <sys/time.h> | |
4587 | #include <time.h> | |
ad6254c5 AK |
4588 | |
4589 | int | |
4590 | main () | |
4591 | { | |
4592 | if ((struct tm *) 0) | |
4593 | return 0; | |
4594 | ; | |
4595 | return 0; | |
4596 | } | |
4597 | _ACEOF | |
4598 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4599 | if { (ac_try="$ac_compile" |
4600 | case "(($ac_try" in | |
4601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4602 | *) ac_try_echo=$ac_try;; | |
4603 | esac | |
ec6a6fbe AK |
4604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4605 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4606 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4607 | ac_status=$? |
8a2fc586 AK |
4608 | grep -v '^ *+' conftest.er1 >conftest.err |
4609 | rm -f conftest.er1 | |
4610 | cat conftest.err >&5 | |
ec6a6fbe | 4611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4612 | (exit $ac_status); } && { |
4613 | test -z "$ac_c_werror_flag" || | |
4614 | test ! -s conftest.err | |
4615 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4616 | ac_cv_header_time=yes |
4617 | else | |
ec6a6fbe | 4618 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4619 | sed 's/^/| /' conftest.$ac_ext >&5 |
4620 | ||
7a197a62 | 4621 | ac_cv_header_time=no |
795ca3e5 | 4622 | fi |
7a197a62 AK |
4623 | |
4624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4625 | fi |
ec6a6fbe AK |
4626 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4627 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4628 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4629 | |
4630 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4631 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4632 | _ACEOF |
b896caa1 | 4633 | |
8106cdd5 | 4634 | fi |
b896caa1 | 4635 | |
b896caa1 | 4636 | |
d0191583 JM |
4637 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
4646 | ||
4647 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4648 | inttypes.h stdint.h unistd.h | |
4649 | do | |
ec6a6fbe AK |
4650 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4651 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4652 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4653 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4654 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4655 | else |
4656 | cat >conftest.$ac_ext <<_ACEOF | |
4657 | /* confdefs.h. */ | |
4658 | _ACEOF | |
4659 | cat confdefs.h >>conftest.$ac_ext | |
4660 | cat >>conftest.$ac_ext <<_ACEOF | |
4661 | /* end confdefs.h. */ | |
4662 | $ac_includes_default | |
4663 | ||
4664 | #include <$ac_header> | |
4665 | _ACEOF | |
4666 | rm -f conftest.$ac_objext | |
4667 | if { (ac_try="$ac_compile" | |
4668 | case "(($ac_try" in | |
4669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4670 | *) ac_try_echo=$ac_try;; | |
4671 | esac | |
ec6a6fbe AK |
4672 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4673 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4674 | (eval "$ac_compile") 2>conftest.er1 |
4675 | ac_status=$? | |
4676 | grep -v '^ *+' conftest.er1 >conftest.err | |
4677 | rm -f conftest.er1 | |
4678 | cat conftest.err >&5 | |
ec6a6fbe | 4679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4680 | (exit $ac_status); } && { |
4681 | test -z "$ac_c_werror_flag" || | |
4682 | test ! -s conftest.err | |
4683 | } && test -s conftest.$ac_objext; then | |
4684 | eval "$as_ac_Header=yes" | |
4685 | else | |
ec6a6fbe | 4686 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
4688 | ||
4689 | eval "$as_ac_Header=no" | |
4690 | fi | |
4691 | ||
4692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693 | fi | |
ec6a6fbe AK |
4694 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4695 | $as_echo "$as_val"'` | |
4696 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4697 | $as_echo "$ac_res" >&6; } | |
4698 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4699 | $as_echo "$as_val"'` | |
4700 | if test "x$as_val" = x""yes; then | |
d0191583 | 4701 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4702 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4703 | _ACEOF |
4704 | ||
4705 | fi | |
4706 | ||
4707 | done | |
4708 | ||
b896caa1 | 4709 | |
b896caa1 AK |
4710 | |
4711 | ||
795ca3e5 | 4712 | |
8106cdd5 | 4713 | |
80992638 | 4714 | |
795ca3e5 | 4715 | |
a38df97f | 4716 | |
80992638 | 4717 | |
d0191583 JM |
4718 | |
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4724 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4725 | do |
ec6a6fbe | 4726 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4728 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4729 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4731 | $as_echo_n "(cached) " >&6 |
d0191583 | 4732 | fi |
ec6a6fbe AK |
4733 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4734 | $as_echo "$as_val"'` | |
4735 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4736 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4737 | else |
d0191583 | 4738 | # Is the header compilable? |
ec6a6fbe AK |
4739 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4740 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4741 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4742 | /* confdefs.h. */ |
4743 | _ACEOF | |
4744 | cat confdefs.h >>conftest.$ac_ext | |
4745 | cat >>conftest.$ac_ext <<_ACEOF | |
4746 | /* end confdefs.h. */ | |
4747 | $ac_includes_default | |
ad6254c5 AK |
4748 | #include <$ac_header> |
4749 | _ACEOF | |
4750 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4751 | if { (ac_try="$ac_compile" |
4752 | case "(($ac_try" in | |
4753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4754 | *) ac_try_echo=$ac_try;; | |
4755 | esac | |
ec6a6fbe AK |
4756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4757 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4758 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4759 | ac_status=$? |
8a2fc586 AK |
4760 | grep -v '^ *+' conftest.er1 >conftest.err |
4761 | rm -f conftest.er1 | |
4762 | cat conftest.err >&5 | |
ec6a6fbe | 4763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4764 | (exit $ac_status); } && { |
4765 | test -z "$ac_c_werror_flag" || | |
4766 | test ! -s conftest.err | |
4767 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4768 | ac_header_compiler=yes |
ad6254c5 | 4769 | else |
ec6a6fbe | 4770 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4771 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4772 | |
d0191583 | 4773 | ac_header_compiler=no |
ad6254c5 | 4774 | fi |
7a197a62 AK |
4775 | |
4776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4777 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4778 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4779 | |
4780 | # Is the header present? | |
ec6a6fbe AK |
4781 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4782 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4783 | cat >conftest.$ac_ext <<_ACEOF |
4784 | /* confdefs.h. */ | |
4785 | _ACEOF | |
4786 | cat confdefs.h >>conftest.$ac_ext | |
4787 | cat >>conftest.$ac_ext <<_ACEOF | |
4788 | /* end confdefs.h. */ | |
4789 | #include <$ac_header> | |
4790 | _ACEOF | |
4791 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4792 | case "(($ac_try" in | |
4793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4794 | *) ac_try_echo=$ac_try;; | |
4795 | esac | |
ec6a6fbe AK |
4796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4797 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4798 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4799 | ac_status=$? | |
4800 | grep -v '^ *+' conftest.er1 >conftest.err | |
4801 | rm -f conftest.er1 | |
4802 | cat conftest.err >&5 | |
ec6a6fbe | 4803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4804 | (exit $ac_status); } >/dev/null && { |
4805 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4806 | test ! -s conftest.err | |
4807 | }; then | |
4808 | ac_header_preproc=yes | |
4809 | else | |
ec6a6fbe | 4810 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4811 | sed 's/^/| /' conftest.$ac_ext >&5 |
4812 | ||
4813 | ac_header_preproc=no | |
4814 | fi | |
4815 | ||
4816 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4817 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4818 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4819 | |
4820 | # So? What about this header? | |
4821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4822 | yes:no: ) | |
ec6a6fbe AK |
4823 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4824 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4825 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4826 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4827 | ac_header_preproc=yes |
4828 | ;; | |
4829 | no:yes:* ) | |
ec6a6fbe AK |
4830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4831 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4833 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4835 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4837 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4839 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4841 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4842 | |
4843 | ;; | |
4844 | esac | |
ec6a6fbe AK |
4845 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4846 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4847 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4848 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4849 | else |
4850 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4851 | fi |
ec6a6fbe AK |
4852 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4853 | $as_echo "$as_val"'` | |
4854 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4855 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4856 | |
4857 | fi | |
ec6a6fbe AK |
4858 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4859 | $as_echo "$as_val"'` | |
4860 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4861 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4862 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4863 | _ACEOF |
a38df97f | 4864 | |
d0191583 | 4865 | else |
ec6a6fbe AK |
4866 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4867 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4868 | { (exit 1); exit 1; }; } |
80992638 AK |
4869 | fi |
4870 | ||
ad6254c5 AK |
4871 | done |
4872 | ||
7d1552c9 | 4873 | |
d0191583 JM |
4874 | case "$host_os" in |
4875 | linux*) | |
7d1552c9 | 4876 | |
80992638 | 4877 | |
5a52dca9 | 4878 | |
d0191583 | 4879 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4880 | do |
ec6a6fbe | 4881 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4883 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4884 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4885 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4886 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4887 | fi |
ec6a6fbe AK |
4888 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4889 | $as_echo "$as_val"'` | |
4890 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4891 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4892 | else |
4893 | # Is the header compilable? | |
ec6a6fbe AK |
4894 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4895 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4896 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4897 | /* confdefs.h. */ |
4898 | _ACEOF | |
4899 | cat confdefs.h >>conftest.$ac_ext | |
4900 | cat >>conftest.$ac_ext <<_ACEOF | |
4901 | /* end confdefs.h. */ | |
4902 | $ac_includes_default | |
4903 | #include <$ac_header> | |
4904 | _ACEOF | |
4905 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4906 | if { (ac_try="$ac_compile" |
4907 | case "(($ac_try" in | |
4908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4909 | *) ac_try_echo=$ac_try;; | |
4910 | esac | |
ec6a6fbe AK |
4911 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4912 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4913 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4914 | ac_status=$? |
8a2fc586 AK |
4915 | grep -v '^ *+' conftest.er1 >conftest.err |
4916 | rm -f conftest.er1 | |
4917 | cat conftest.err >&5 | |
ec6a6fbe | 4918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4919 | (exit $ac_status); } && { |
4920 | test -z "$ac_c_werror_flag" || | |
4921 | test ! -s conftest.err | |
4922 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4923 | ac_header_compiler=yes |
4924 | else | |
ec6a6fbe | 4925 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4926 | sed 's/^/| /' conftest.$ac_ext >&5 |
4927 | ||
4928 | ac_header_compiler=no | |
4929 | fi | |
4930 | ||
4931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4932 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4933 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4934 | |
4935 | # Is the header present? | |
ec6a6fbe AK |
4936 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4937 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4938 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4939 | /* confdefs.h. */ |
4940 | _ACEOF | |
4941 | cat confdefs.h >>conftest.$ac_ext | |
4942 | cat >>conftest.$ac_ext <<_ACEOF | |
4943 | /* end confdefs.h. */ | |
4944 | #include <$ac_header> | |
4945 | _ACEOF | |
7a197a62 AK |
4946 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4947 | case "(($ac_try" in | |
4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4949 | *) ac_try_echo=$ac_try;; | |
4950 | esac | |
ec6a6fbe AK |
4951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4952 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4953 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4954 | ac_status=$? |
4955 | grep -v '^ *+' conftest.er1 >conftest.err | |
4956 | rm -f conftest.er1 | |
4957 | cat conftest.err >&5 | |
ec6a6fbe | 4958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4959 | (exit $ac_status); } >/dev/null && { |
4960 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4961 | test ! -s conftest.err | |
4962 | }; then | |
ad6254c5 AK |
4963 | ac_header_preproc=yes |
4964 | else | |
ec6a6fbe | 4965 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4966 | sed 's/^/| /' conftest.$ac_ext >&5 |
4967 | ||
4968 | ac_header_preproc=no | |
4969 | fi | |
7a197a62 | 4970 | |
ad6254c5 | 4971 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4972 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4973 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4974 | |
4975 | # So? What about this header? | |
8a2fc586 AK |
4976 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4977 | yes:no: ) | |
ec6a6fbe AK |
4978 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4979 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4980 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4981 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4982 | ac_header_preproc=yes |
ad6254c5 | 4983 | ;; |
8a2fc586 | 4984 | no:yes:* ) |
ec6a6fbe AK |
4985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4986 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4988 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4990 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4992 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4994 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4996 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4997 | |
ad6254c5 AK |
4998 | ;; |
4999 | esac | |
ec6a6fbe AK |
5000 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5001 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5003 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5004 | else |
8a2fc586 | 5005 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5006 | fi |
ec6a6fbe AK |
5007 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5008 | $as_echo "$as_val"'` | |
5009 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5010 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5011 | |
5012 | fi | |
ec6a6fbe AK |
5013 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5014 | $as_echo "$as_val"'` | |
5015 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5016 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5017 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5018 | _ACEOF |
b896caa1 | 5019 | |
d8ac0fbc | 5020 | else |
ec6a6fbe AK |
5021 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5022 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5023 | { (exit 1); exit 1; }; } |
80992638 AK |
5024 | fi |
5025 | ||
ad6254c5 | 5026 | done |
d0191583 JM |
5027 | ;; |
5028 | darwin*) | |
d8ac0fbc | 5029 | |
d8ac0fbc | 5030 | |
d0191583 | 5031 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5032 | do |
ec6a6fbe | 5033 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5034 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5035 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5036 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5037 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5038 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5039 | fi |
ec6a6fbe AK |
5040 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5041 | $as_echo "$as_val"'` | |
5042 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5043 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5044 | else |
5045 | # Is the header compilable? | |
ec6a6fbe AK |
5046 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5047 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5048 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5049 | /* confdefs.h. */ |
5050 | _ACEOF | |
5051 | cat confdefs.h >>conftest.$ac_ext | |
5052 | cat >>conftest.$ac_ext <<_ACEOF | |
5053 | /* end confdefs.h. */ | |
5054 | $ac_includes_default | |
5055 | #include <$ac_header> | |
5056 | _ACEOF | |
5057 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5058 | if { (ac_try="$ac_compile" |
5059 | case "(($ac_try" in | |
5060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5061 | *) ac_try_echo=$ac_try;; | |
5062 | esac | |
ec6a6fbe AK |
5063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5064 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5065 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5066 | ac_status=$? |
8a2fc586 AK |
5067 | grep -v '^ *+' conftest.er1 >conftest.err |
5068 | rm -f conftest.er1 | |
5069 | cat conftest.err >&5 | |
ec6a6fbe | 5070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5071 | (exit $ac_status); } && { |
5072 | test -z "$ac_c_werror_flag" || | |
5073 | test ! -s conftest.err | |
5074 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5075 | ac_header_compiler=yes |
5076 | else | |
ec6a6fbe | 5077 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5078 | sed 's/^/| /' conftest.$ac_ext >&5 |
5079 | ||
7a197a62 | 5080 | ac_header_compiler=no |
ad6254c5 | 5081 | fi |
7a197a62 AK |
5082 | |
5083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5084 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5085 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5086 | |
5087 | # Is the header present? | |
ec6a6fbe AK |
5088 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5089 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5090 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5091 | /* confdefs.h. */ |
5092 | _ACEOF | |
5093 | cat confdefs.h >>conftest.$ac_ext | |
5094 | cat >>conftest.$ac_ext <<_ACEOF | |
5095 | /* end confdefs.h. */ | |
5096 | #include <$ac_header> | |
5097 | _ACEOF | |
7a197a62 AK |
5098 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5099 | case "(($ac_try" in | |
5100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5101 | *) ac_try_echo=$ac_try;; | |
5102 | esac | |
ec6a6fbe AK |
5103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5104 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5105 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5106 | ac_status=$? |
5107 | grep -v '^ *+' conftest.er1 >conftest.err | |
5108 | rm -f conftest.er1 | |
5109 | cat conftest.err >&5 | |
ec6a6fbe | 5110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5111 | (exit $ac_status); } >/dev/null && { |
5112 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5113 | test ! -s conftest.err | |
5114 | }; then | |
ad6254c5 AK |
5115 | ac_header_preproc=yes |
5116 | else | |
ec6a6fbe | 5117 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5118 | sed 's/^/| /' conftest.$ac_ext >&5 |
5119 | ||
5120 | ac_header_preproc=no | |
5121 | fi | |
7a197a62 | 5122 | |
ad6254c5 | 5123 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5124 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5125 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5126 | |
5127 | # So? What about this header? | |
8a2fc586 AK |
5128 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5129 | yes:no: ) | |
ec6a6fbe AK |
5130 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5131 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5133 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5134 | ac_header_preproc=yes |
ad6254c5 | 5135 | ;; |
8a2fc586 | 5136 | no:yes:* ) |
ec6a6fbe AK |
5137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5138 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5140 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5142 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5143 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5144 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5145 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5146 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5147 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5148 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5149 | |
ad6254c5 AK |
5150 | ;; |
5151 | esac | |
ec6a6fbe AK |
5152 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5153 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5154 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5155 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5156 | else |
8a2fc586 | 5157 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5158 | fi |
ec6a6fbe AK |
5159 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5160 | $as_echo "$as_val"'` | |
5161 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5162 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5163 | |
5164 | fi | |
ec6a6fbe AK |
5165 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5166 | $as_echo "$as_val"'` | |
5167 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5168 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5169 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5170 | _ACEOF |
4922197a | 5171 | |
4922197a | 5172 | else |
ec6a6fbe AK |
5173 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5174 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5175 | { (exit 1); exit 1; }; } |
80992638 AK |
5176 | fi |
5177 | ||
ad6254c5 | 5178 | done |
d0191583 JM |
5179 | ;; |
5180 | esac | |
4922197a | 5181 | |
4922197a | 5182 | |
4922197a | 5183 | |
ad6254c5 AK |
5184 | |
5185 | ||
d0191583 JM |
5186 | |
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | ||
5198 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5199 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5200 | sys/types.h unistd.h | |
ad6254c5 | 5201 | do |
ec6a6fbe | 5202 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5203 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5204 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5205 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5207 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5208 | fi |
ec6a6fbe AK |
5209 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5210 | $as_echo "$as_val"'` | |
5211 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5212 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5213 | else |
ad6254c5 | 5214 | # Is the header compilable? |
ec6a6fbe AK |
5215 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5216 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5217 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5218 | /* confdefs.h. */ |
5219 | _ACEOF | |
5220 | cat confdefs.h >>conftest.$ac_ext | |
5221 | cat >>conftest.$ac_ext <<_ACEOF | |
5222 | /* end confdefs.h. */ | |
5223 | $ac_includes_default | |
5224 | #include <$ac_header> | |
5225 | _ACEOF | |
5226 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5227 | if { (ac_try="$ac_compile" |
5228 | case "(($ac_try" in | |
5229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5230 | *) ac_try_echo=$ac_try;; | |
5231 | esac | |
ec6a6fbe AK |
5232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5233 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5234 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5235 | ac_status=$? |
8a2fc586 AK |
5236 | grep -v '^ *+' conftest.er1 >conftest.err |
5237 | rm -f conftest.er1 | |
5238 | cat conftest.err >&5 | |
ec6a6fbe | 5239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5240 | (exit $ac_status); } && { |
5241 | test -z "$ac_c_werror_flag" || | |
5242 | test ! -s conftest.err | |
5243 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5244 | ac_header_compiler=yes |
5245 | else | |
ec6a6fbe | 5246 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5247 | sed 's/^/| /' conftest.$ac_ext >&5 |
5248 | ||
7a197a62 | 5249 | ac_header_compiler=no |
ad6254c5 | 5250 | fi |
7a197a62 AK |
5251 | |
5252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5253 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5254 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5255 | |
5256 | # Is the header present? | |
ec6a6fbe AK |
5257 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5258 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5259 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5260 | /* confdefs.h. */ |
5261 | _ACEOF | |
5262 | cat confdefs.h >>conftest.$ac_ext | |
5263 | cat >>conftest.$ac_ext <<_ACEOF | |
5264 | /* end confdefs.h. */ | |
5265 | #include <$ac_header> | |
5266 | _ACEOF | |
7a197a62 AK |
5267 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5268 | case "(($ac_try" in | |
5269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5270 | *) ac_try_echo=$ac_try;; | |
5271 | esac | |
ec6a6fbe AK |
5272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5273 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5274 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5275 | ac_status=$? |
5276 | grep -v '^ *+' conftest.er1 >conftest.err | |
5277 | rm -f conftest.er1 | |
5278 | cat conftest.err >&5 | |
ec6a6fbe | 5279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5280 | (exit $ac_status); } >/dev/null && { |
5281 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5282 | test ! -s conftest.err | |
5283 | }; then | |
ad6254c5 AK |
5284 | ac_header_preproc=yes |
5285 | else | |
ec6a6fbe | 5286 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5287 | sed 's/^/| /' conftest.$ac_ext >&5 |
5288 | ||
5289 | ac_header_preproc=no | |
5290 | fi | |
7a197a62 | 5291 | |
ad6254c5 | 5292 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5293 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5294 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5295 | |
5296 | # So? What about this header? | |
8a2fc586 AK |
5297 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5298 | yes:no: ) | |
ec6a6fbe AK |
5299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5300 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5302 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5303 | ac_header_preproc=yes |
ad6254c5 | 5304 | ;; |
8a2fc586 | 5305 | no:yes:* ) |
ec6a6fbe AK |
5306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5307 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5309 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5311 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5313 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5315 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5317 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5318 | |
ad6254c5 AK |
5319 | ;; |
5320 | esac | |
ec6a6fbe AK |
5321 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5322 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5324 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5325 | else |
8a2fc586 | 5326 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5327 | fi |
ec6a6fbe AK |
5328 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5329 | $as_echo "$as_val"'` | |
5330 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5331 | $as_echo "$ac_res" >&6; } | |
80992638 | 5332 | |
ad6254c5 | 5333 | fi |
ec6a6fbe AK |
5334 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5335 | $as_echo "$as_val"'` | |
5336 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5337 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5338 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5339 | _ACEOF |
795ca3e5 | 5340 | |
795ca3e5 | 5341 | else |
ec6a6fbe AK |
5342 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5343 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5344 | { (exit 1); exit 1; }; } |
80992638 AK |
5345 | fi |
5346 | ||
ad6254c5 | 5347 | done |
ad6254c5 | 5348 | |
795ca3e5 | 5349 | |
d0191583 JM |
5350 | |
5351 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5352 | do |
ec6a6fbe | 5353 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5355 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5356 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5358 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5359 | fi |
ec6a6fbe AK |
5360 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5361 | $as_echo "$as_val"'` | |
5362 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5363 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5364 | else |
5365 | # Is the header compilable? | |
ec6a6fbe AK |
5366 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5367 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5368 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5369 | /* confdefs.h. */ |
5370 | _ACEOF | |
5371 | cat confdefs.h >>conftest.$ac_ext | |
5372 | cat >>conftest.$ac_ext <<_ACEOF | |
5373 | /* end confdefs.h. */ | |
5374 | $ac_includes_default | |
5375 | #include <$ac_header> | |
5376 | _ACEOF | |
5377 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5378 | if { (ac_try="$ac_compile" |
5379 | case "(($ac_try" in | |
5380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5381 | *) ac_try_echo=$ac_try;; | |
5382 | esac | |
ec6a6fbe AK |
5383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5384 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5385 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5386 | ac_status=$? |
8a2fc586 AK |
5387 | grep -v '^ *+' conftest.er1 >conftest.err |
5388 | rm -f conftest.er1 | |
5389 | cat conftest.err >&5 | |
ec6a6fbe | 5390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5391 | (exit $ac_status); } && { |
5392 | test -z "$ac_c_werror_flag" || | |
5393 | test ! -s conftest.err | |
5394 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5395 | ac_header_compiler=yes |
5396 | else | |
ec6a6fbe | 5397 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5398 | sed 's/^/| /' conftest.$ac_ext >&5 |
5399 | ||
7a197a62 | 5400 | ac_header_compiler=no |
ad6254c5 | 5401 | fi |
7a197a62 AK |
5402 | |
5403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5404 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5405 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5406 | |
5407 | # Is the header present? | |
ec6a6fbe AK |
5408 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5409 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5410 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5411 | /* confdefs.h. */ |
5412 | _ACEOF | |
5413 | cat confdefs.h >>conftest.$ac_ext | |
5414 | cat >>conftest.$ac_ext <<_ACEOF | |
5415 | /* end confdefs.h. */ | |
5416 | #include <$ac_header> | |
5417 | _ACEOF | |
7a197a62 AK |
5418 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5419 | case "(($ac_try" in | |
5420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5421 | *) ac_try_echo=$ac_try;; | |
5422 | esac | |
ec6a6fbe AK |
5423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5424 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5425 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5426 | ac_status=$? |
5427 | grep -v '^ *+' conftest.er1 >conftest.err | |
5428 | rm -f conftest.er1 | |
5429 | cat conftest.err >&5 | |
ec6a6fbe | 5430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5431 | (exit $ac_status); } >/dev/null && { |
5432 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5433 | test ! -s conftest.err | |
5434 | }; then | |
ad6254c5 AK |
5435 | ac_header_preproc=yes |
5436 | else | |
ec6a6fbe | 5437 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5438 | sed 's/^/| /' conftest.$ac_ext >&5 |
5439 | ||
5440 | ac_header_preproc=no | |
5441 | fi | |
7a197a62 | 5442 | |
ad6254c5 | 5443 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5444 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5445 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5446 | |
5447 | # So? What about this header? | |
8a2fc586 AK |
5448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5449 | yes:no: ) | |
ec6a6fbe AK |
5450 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5451 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5452 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5453 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5454 | ac_header_preproc=yes |
ad6254c5 | 5455 | ;; |
8a2fc586 | 5456 | no:yes:* ) |
ec6a6fbe AK |
5457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5458 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5460 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5462 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5464 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5465 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5466 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5467 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5468 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5469 | |
ad6254c5 AK |
5470 | ;; |
5471 | esac | |
ec6a6fbe AK |
5472 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5473 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5474 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5475 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5476 | else |
8a2fc586 | 5477 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5478 | fi |
ec6a6fbe AK |
5479 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5480 | $as_echo "$as_val"'` | |
5481 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5482 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5483 | |
ad6254c5 | 5484 | fi |
ec6a6fbe AK |
5485 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5486 | $as_echo "$as_val"'` | |
5487 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5488 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5489 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5490 | _ACEOF |
5491 | ||
80992638 AK |
5492 | fi |
5493 | ||
ad6254c5 | 5494 | done |
d0191583 | 5495 | |
d3c8211f | 5496 | |
80992638 | 5497 | ################################################################################ |
ec6a6fbe AK |
5498 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5499 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5500 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5501 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5502 | else |
ad6254c5 | 5503 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5504 | /* confdefs.h. */ |
5505 | _ACEOF | |
5506 | cat confdefs.h >>conftest.$ac_ext | |
5507 | cat >>conftest.$ac_ext <<_ACEOF | |
5508 | /* end confdefs.h. */ | |
5509 | ||
5510 | int | |
5511 | main () | |
5512 | { | |
5513 | /* FIXME: Include the comments suggested by Paul. */ | |
5514 | #ifndef __cplusplus | |
5515 | /* Ultrix mips cc rejects this. */ | |
5516 | typedef int charset[2]; | |
25fbec5b | 5517 | const charset cs; |
ad6254c5 | 5518 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5519 | char const *const *pcpcc; |
5520 | char **ppc; | |
ad6254c5 AK |
5521 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5522 | struct point {int x, y;}; | |
5523 | static struct point const zero = {0,0}; | |
5524 | /* AIX XL C 1.02.0.0 rejects this. | |
5525 | It does not let you subtract one const X* pointer from another in | |
5526 | an arm of an if-expression whose if-part is not a constant | |
5527 | expression */ | |
5528 | const char *g = "string"; | |
25fbec5b | 5529 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5530 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5531 | ++pcpcc; |
5532 | ppc = (char**) pcpcc; | |
5533 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5534 | { /* SCO 3.2v4 cc rejects this. */ |
5535 | char *t; | |
5536 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5537 | ||
5538 | *t++ = 0; | |
7a197a62 | 5539 | if (s) return 0; |
ad6254c5 AK |
5540 | } |
5541 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5542 | int x[] = {25, 17}; | |
5543 | const int *foo = &x[0]; | |
5544 | ++foo; | |
5545 | } | |
5546 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5547 | typedef const int *iptr; | |
5548 | iptr p = 0; | |
5549 | ++p; | |
5550 | } | |
5551 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5552 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5553 | struct s { int j; const int *ap[3]; }; | |
5554 | struct s *b; b->j = 5; | |
5555 | } | |
5556 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5557 | const int foo = 10; | |
7a197a62 | 5558 | if (!foo) return 0; |
ad6254c5 | 5559 | } |
25fbec5b | 5560 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5561 | #endif |
5562 | ||
5563 | ; | |
5564 | return 0; | |
5565 | } | |
5566 | _ACEOF | |
5567 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5568 | if { (ac_try="$ac_compile" |
5569 | case "(($ac_try" in | |
5570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5571 | *) ac_try_echo=$ac_try;; | |
5572 | esac | |
ec6a6fbe AK |
5573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5574 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5575 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5576 | ac_status=$? |
8a2fc586 AK |
5577 | grep -v '^ *+' conftest.er1 >conftest.err |
5578 | rm -f conftest.er1 | |
5579 | cat conftest.err >&5 | |
ec6a6fbe | 5580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5581 | (exit $ac_status); } && { |
5582 | test -z "$ac_c_werror_flag" || | |
5583 | test ! -s conftest.err | |
5584 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5585 | ac_cv_c_const=yes |
5586 | else | |
ec6a6fbe | 5587 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5588 | sed 's/^/| /' conftest.$ac_ext >&5 |
5589 | ||
7a197a62 | 5590 | ac_cv_c_const=no |
ad6254c5 | 5591 | fi |
7a197a62 AK |
5592 | |
5593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5594 | fi |
ec6a6fbe AK |
5595 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5596 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5597 | if test $ac_cv_c_const = no; then |
80992638 | 5598 | |
ad6254c5 | 5599 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5600 | #define const /**/ |
ad6254c5 | 5601 | _ACEOF |
80992638 | 5602 | |
d3c8211f | 5603 | fi |
d3c8211f | 5604 | |
ec6a6fbe AK |
5605 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5606 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5607 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5608 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5609 | else |
ad6254c5 AK |
5610 | ac_cv_c_inline=no |
5611 | for ac_kw in inline __inline__ __inline; do | |
5612 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5613 | /* confdefs.h. */ |
5614 | _ACEOF | |
5615 | cat confdefs.h >>conftest.$ac_ext | |
5616 | cat >>conftest.$ac_ext <<_ACEOF | |
5617 | /* end confdefs.h. */ | |
5618 | #ifndef __cplusplus | |
5619 | typedef int foo_t; | |
5620 | static $ac_kw foo_t static_foo () {return 0; } | |
5621 | $ac_kw foo_t foo () {return 0; } | |
5622 | #endif | |
80992638 | 5623 | |
ad6254c5 AK |
5624 | _ACEOF |
5625 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5626 | if { (ac_try="$ac_compile" |
5627 | case "(($ac_try" in | |
5628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5629 | *) ac_try_echo=$ac_try;; | |
5630 | esac | |
ec6a6fbe AK |
5631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5632 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5633 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5634 | ac_status=$? |
8a2fc586 AK |
5635 | grep -v '^ *+' conftest.er1 >conftest.err |
5636 | rm -f conftest.er1 | |
5637 | cat conftest.err >&5 | |
ec6a6fbe | 5638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5639 | (exit $ac_status); } && { |
5640 | test -z "$ac_c_werror_flag" || | |
5641 | test ! -s conftest.err | |
5642 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5643 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5644 | else |
ec6a6fbe | 5645 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5646 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5647 | |
7a197a62 | 5648 | |
8ce0cbda | 5649 | fi |
7a197a62 AK |
5650 | |
5651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5652 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5653 | done |
8ce0cbda | 5654 | |
8ce0cbda | 5655 | fi |
ec6a6fbe AK |
5656 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5657 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5658 | |
5659 | ||
ad6254c5 AK |
5660 | case $ac_cv_c_inline in |
5661 | inline | yes) ;; | |
8a2fc586 AK |
5662 | *) |
5663 | case $ac_cv_c_inline in | |
5664 | no) ac_val=;; | |
5665 | *) ac_val=$ac_cv_c_inline;; | |
5666 | esac | |
5667 | cat >>confdefs.h <<_ACEOF | |
5668 | #ifndef __cplusplus | |
5669 | #define inline $ac_val | |
5670 | #endif | |
c1c065a3 | 5671 | _ACEOF |
d0191583 JM |
5672 | ;; |
5673 | esac | |
5674 | ||
ec6a6fbe AK |
5675 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5676 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5677 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5678 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5679 | else |
5680 | cat >conftest.$ac_ext <<_ACEOF | |
5681 | /* confdefs.h. */ | |
5682 | _ACEOF | |
5683 | cat confdefs.h >>conftest.$ac_ext | |
5684 | cat >>conftest.$ac_ext <<_ACEOF | |
5685 | /* end confdefs.h. */ | |
5686 | $ac_includes_default | |
5687 | int | |
5688 | main () | |
5689 | { | |
5690 | static struct stat ac_aggr; | |
5691 | if (ac_aggr.st_rdev) | |
5692 | return 0; | |
5693 | ; | |
5694 | return 0; | |
5695 | } | |
5696 | _ACEOF | |
5697 | rm -f conftest.$ac_objext | |
5698 | if { (ac_try="$ac_compile" | |
5699 | case "(($ac_try" in | |
5700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5701 | *) ac_try_echo=$ac_try;; | |
5702 | esac | |
ec6a6fbe AK |
5703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5704 | $as_echo "$ac_try_echo") >&5 | |
5705 | (eval "$ac_compile") 2>conftest.er1 | |
5706 | ac_status=$? | |
5707 | grep -v '^ *+' conftest.er1 >conftest.err | |
5708 | rm -f conftest.er1 | |
5709 | cat conftest.err >&5 | |
5710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5711 | (exit $ac_status); } && { | |
5712 | test -z "$ac_c_werror_flag" || | |
5713 | test ! -s conftest.err | |
5714 | } && test -s conftest.$ac_objext; then | |
5715 | ac_cv_member_struct_stat_st_rdev=yes | |
5716 | else | |
5717 | $as_echo "$as_me: failed program was:" >&5 | |
5718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5719 | ||
5720 | cat >conftest.$ac_ext <<_ACEOF | |
5721 | /* confdefs.h. */ | |
5722 | _ACEOF | |
5723 | cat confdefs.h >>conftest.$ac_ext | |
5724 | cat >>conftest.$ac_ext <<_ACEOF | |
5725 | /* end confdefs.h. */ | |
5726 | $ac_includes_default | |
5727 | int | |
5728 | main () | |
5729 | { | |
5730 | static struct stat ac_aggr; | |
5731 | if (sizeof ac_aggr.st_rdev) | |
5732 | return 0; | |
5733 | ; | |
5734 | return 0; | |
5735 | } | |
5736 | _ACEOF | |
5737 | rm -f conftest.$ac_objext | |
5738 | if { (ac_try="$ac_compile" | |
5739 | case "(($ac_try" in | |
5740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5741 | *) ac_try_echo=$ac_try;; | |
5742 | esac | |
5743 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5744 | $as_echo "$ac_try_echo") >&5 | |
5745 | (eval "$ac_compile") 2>conftest.er1 | |
5746 | ac_status=$? | |
5747 | grep -v '^ *+' conftest.er1 >conftest.err | |
5748 | rm -f conftest.er1 | |
5749 | cat conftest.err >&5 | |
5750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5751 | (exit $ac_status); } && { | |
5752 | test -z "$ac_c_werror_flag" || | |
5753 | test ! -s conftest.err | |
5754 | } && test -s conftest.$ac_objext; then | |
5755 | ac_cv_member_struct_stat_st_rdev=yes | |
5756 | else | |
5757 | $as_echo "$as_me: failed program was:" >&5 | |
5758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5759 | ||
5760 | ac_cv_member_struct_stat_st_rdev=no | |
5761 | fi | |
5762 | ||
5763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5764 | fi | |
5765 | ||
5766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5767 | fi | |
5768 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5769 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5770 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5771 | ||
5772 | cat >>confdefs.h <<_ACEOF | |
5773 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5774 | _ACEOF | |
5775 | ||
5776 | ||
5777 | fi | |
5778 | ||
5779 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5780 | $as_echo_n "checking for off_t... " >&6; } | |
5781 | if test "${ac_cv_type_off_t+set}" = set; then | |
5782 | $as_echo_n "(cached) " >&6 | |
5783 | else | |
5784 | ac_cv_type_off_t=no | |
5785 | cat >conftest.$ac_ext <<_ACEOF | |
5786 | /* confdefs.h. */ | |
5787 | _ACEOF | |
5788 | cat confdefs.h >>conftest.$ac_ext | |
5789 | cat >>conftest.$ac_ext <<_ACEOF | |
5790 | /* end confdefs.h. */ | |
5791 | $ac_includes_default | |
5792 | int | |
5793 | main () | |
5794 | { | |
5795 | if (sizeof (off_t)) | |
5796 | return 0; | |
5797 | ; | |
5798 | return 0; | |
5799 | } | |
5800 | _ACEOF | |
5801 | rm -f conftest.$ac_objext | |
5802 | if { (ac_try="$ac_compile" | |
5803 | case "(($ac_try" in | |
5804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5805 | *) ac_try_echo=$ac_try;; | |
5806 | esac | |
5807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5808 | $as_echo "$ac_try_echo") >&5 | |
5809 | (eval "$ac_compile") 2>conftest.er1 | |
5810 | ac_status=$? | |
5811 | grep -v '^ *+' conftest.er1 >conftest.err | |
5812 | rm -f conftest.er1 | |
5813 | cat conftest.err >&5 | |
5814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5815 | (exit $ac_status); } && { | |
5816 | test -z "$ac_c_werror_flag" || | |
5817 | test ! -s conftest.err | |
5818 | } && test -s conftest.$ac_objext; then | |
5819 | cat >conftest.$ac_ext <<_ACEOF | |
5820 | /* confdefs.h. */ | |
5821 | _ACEOF | |
5822 | cat confdefs.h >>conftest.$ac_ext | |
5823 | cat >>conftest.$ac_ext <<_ACEOF | |
5824 | /* end confdefs.h. */ | |
5825 | $ac_includes_default | |
5826 | int | |
5827 | main () | |
5828 | { | |
5829 | if (sizeof ((off_t))) | |
5830 | return 0; | |
5831 | ; | |
5832 | return 0; | |
5833 | } | |
5834 | _ACEOF | |
5835 | rm -f conftest.$ac_objext | |
5836 | if { (ac_try="$ac_compile" | |
5837 | case "(($ac_try" in | |
5838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5839 | *) ac_try_echo=$ac_try;; | |
5840 | esac | |
5841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5842 | $as_echo "$ac_try_echo") >&5 | |
5843 | (eval "$ac_compile") 2>conftest.er1 | |
5844 | ac_status=$? | |
5845 | grep -v '^ *+' conftest.er1 >conftest.err | |
5846 | rm -f conftest.er1 | |
5847 | cat conftest.err >&5 | |
5848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5849 | (exit $ac_status); } && { | |
5850 | test -z "$ac_c_werror_flag" || | |
5851 | test ! -s conftest.err | |
5852 | } && test -s conftest.$ac_objext; then | |
5853 | : | |
5854 | else | |
5855 | $as_echo "$as_me: failed program was:" >&5 | |
5856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5857 | ||
5858 | ac_cv_type_off_t=yes | |
5859 | fi | |
5860 | ||
5861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5862 | else | |
5863 | $as_echo "$as_me: failed program was:" >&5 | |
5864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5865 | ||
5866 | ||
5867 | fi | |
5868 | ||
5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5870 | fi | |
5871 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5872 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5873 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5874 | : | |
5875 | else | |
5876 | ||
5877 | cat >>confdefs.h <<_ACEOF | |
5878 | #define off_t long int | |
5879 | _ACEOF | |
5880 | ||
5881 | fi | |
5882 | ||
5883 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5884 | $as_echo_n "checking for pid_t... " >&6; } | |
5885 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5886 | $as_echo_n "(cached) " >&6 | |
5887 | else | |
5888 | ac_cv_type_pid_t=no | |
5889 | cat >conftest.$ac_ext <<_ACEOF | |
5890 | /* confdefs.h. */ | |
5891 | _ACEOF | |
5892 | cat confdefs.h >>conftest.$ac_ext | |
5893 | cat >>conftest.$ac_ext <<_ACEOF | |
5894 | /* end confdefs.h. */ | |
5895 | $ac_includes_default | |
5896 | int | |
5897 | main () | |
5898 | { | |
5899 | if (sizeof (pid_t)) | |
5900 | return 0; | |
5901 | ; | |
5902 | return 0; | |
5903 | } | |
5904 | _ACEOF | |
5905 | rm -f conftest.$ac_objext | |
5906 | if { (ac_try="$ac_compile" | |
5907 | case "(($ac_try" in | |
5908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5909 | *) ac_try_echo=$ac_try;; | |
5910 | esac | |
5911 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5912 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5913 | (eval "$ac_compile") 2>conftest.er1 |
5914 | ac_status=$? | |
5915 | grep -v '^ *+' conftest.er1 >conftest.err | |
5916 | rm -f conftest.er1 | |
5917 | cat conftest.err >&5 | |
ec6a6fbe | 5918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5919 | (exit $ac_status); } && { |
5920 | test -z "$ac_c_werror_flag" || | |
5921 | test ! -s conftest.err | |
5922 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5923 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5924 | /* confdefs.h. */ |
5925 | _ACEOF | |
5926 | cat confdefs.h >>conftest.$ac_ext | |
5927 | cat >>conftest.$ac_ext <<_ACEOF | |
5928 | /* end confdefs.h. */ | |
5929 | $ac_includes_default | |
5930 | int | |
5931 | main () | |
5932 | { | |
ec6a6fbe AK |
5933 | if (sizeof ((pid_t))) |
5934 | return 0; | |
d0191583 JM |
5935 | ; |
5936 | return 0; | |
5937 | } | |
5938 | _ACEOF | |
5939 | rm -f conftest.$ac_objext | |
5940 | if { (ac_try="$ac_compile" | |
5941 | case "(($ac_try" in | |
5942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5943 | *) ac_try_echo=$ac_try;; | |
5944 | esac | |
ec6a6fbe AK |
5945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5946 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5947 | (eval "$ac_compile") 2>conftest.er1 |
5948 | ac_status=$? | |
5949 | grep -v '^ *+' conftest.er1 >conftest.err | |
5950 | rm -f conftest.er1 | |
5951 | cat conftest.err >&5 | |
ec6a6fbe | 5952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5953 | (exit $ac_status); } && { |
5954 | test -z "$ac_c_werror_flag" || | |
5955 | test ! -s conftest.err | |
5956 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5957 | : |
d0191583 | 5958 | else |
ec6a6fbe | 5959 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5960 | sed 's/^/| /' conftest.$ac_ext >&5 |
5961 | ||
ec6a6fbe | 5962 | ac_cv_type_pid_t=yes |
d0191583 JM |
5963 | fi |
5964 | ||
5965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5966 | else |
5967 | $as_echo "$as_me: failed program was:" >&5 | |
5968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5969 | ||
5970 | ||
d0191583 JM |
5971 | fi |
5972 | ||
5973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5974 | fi | |
ec6a6fbe AK |
5975 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5976 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5977 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5978 | : | |
5979 | else | |
d0191583 JM |
5980 | |
5981 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5982 | #define pid_t int |
d0191583 JM |
5983 | _ACEOF |
5984 | ||
d0191583 | 5985 | fi |
8ce0cbda | 5986 | |
ec6a6fbe AK |
5987 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5988 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5989 | if test "${ac_cv_type_signal+set}" = set; then | |
5990 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5991 | else |
b145d876 ZK |
5992 | cat >conftest.$ac_ext <<_ACEOF |
5993 | /* confdefs.h. */ | |
5994 | _ACEOF | |
5995 | cat confdefs.h >>conftest.$ac_ext | |
5996 | cat >>conftest.$ac_ext <<_ACEOF | |
5997 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5998 | #include <sys/types.h> |
5999 | #include <signal.h> | |
6000 | ||
b145d876 ZK |
6001 | int |
6002 | main () | |
6003 | { | |
ec6a6fbe | 6004 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
6005 | ; |
6006 | return 0; | |
6007 | } | |
6008 | _ACEOF | |
6009 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6010 | if { (ac_try="$ac_compile" |
6011 | case "(($ac_try" in | |
6012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6013 | *) ac_try_echo=$ac_try;; | |
6014 | esac | |
ec6a6fbe AK |
6015 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6016 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6017 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6018 | ac_status=$? |
8a2fc586 AK |
6019 | grep -v '^ *+' conftest.er1 >conftest.err |
6020 | rm -f conftest.er1 | |
6021 | cat conftest.err >&5 | |
ec6a6fbe | 6022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6023 | (exit $ac_status); } && { |
6024 | test -z "$ac_c_werror_flag" || | |
6025 | test ! -s conftest.err | |
6026 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6027 | ac_cv_type_signal=int |
b145d876 | 6028 | else |
ec6a6fbe | 6029 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6030 | sed 's/^/| /' conftest.$ac_ext >&5 |
6031 | ||
ec6a6fbe | 6032 | ac_cv_type_signal=void |
ad6254c5 | 6033 | fi |
b145d876 ZK |
6034 | |
6035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6036 | fi | |
ec6a6fbe AK |
6037 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6038 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6039 | |
ad6254c5 | 6040 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6041 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6042 | _ACEOF |
199e490e | 6043 | |
b896caa1 | 6044 | |
ec6a6fbe AK |
6045 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6046 | $as_echo_n "checking for size_t... " >&6; } | |
6047 | if test "${ac_cv_type_size_t+set}" = set; then | |
6048 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6049 | else |
ec6a6fbe AK |
6050 | ac_cv_type_size_t=no |
6051 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6052 | /* confdefs.h. */ |
6053 | _ACEOF | |
6054 | cat confdefs.h >>conftest.$ac_ext | |
6055 | cat >>conftest.$ac_ext <<_ACEOF | |
6056 | /* end confdefs.h. */ | |
6057 | $ac_includes_default | |
6058 | int | |
6059 | main () | |
6060 | { | |
ec6a6fbe AK |
6061 | if (sizeof (size_t)) |
6062 | return 0; | |
ad6254c5 AK |
6063 | ; |
6064 | return 0; | |
6065 | } | |
6066 | _ACEOF | |
6067 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6068 | if { (ac_try="$ac_compile" |
6069 | case "(($ac_try" in | |
6070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6071 | *) ac_try_echo=$ac_try;; | |
6072 | esac | |
ec6a6fbe AK |
6073 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6074 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6075 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6076 | ac_status=$? |
8a2fc586 AK |
6077 | grep -v '^ *+' conftest.er1 >conftest.err |
6078 | rm -f conftest.er1 | |
6079 | cat conftest.err >&5 | |
ec6a6fbe | 6080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6081 | (exit $ac_status); } && { |
6082 | test -z "$ac_c_werror_flag" || | |
6083 | test ! -s conftest.err | |
6084 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6085 | cat >conftest.$ac_ext <<_ACEOF |
6086 | /* confdefs.h. */ | |
6087 | _ACEOF | |
6088 | cat confdefs.h >>conftest.$ac_ext | |
6089 | cat >>conftest.$ac_ext <<_ACEOF | |
6090 | /* end confdefs.h. */ | |
ec6a6fbe | 6091 | $ac_includes_default |
d0191583 JM |
6092 | int |
6093 | main () | |
6094 | { | |
ec6a6fbe AK |
6095 | if (sizeof ((size_t))) |
6096 | return 0; | |
d0191583 JM |
6097 | ; |
6098 | return 0; | |
6099 | } | |
6100 | _ACEOF | |
6101 | rm -f conftest.$ac_objext | |
6102 | if { (ac_try="$ac_compile" | |
6103 | case "(($ac_try" in | |
6104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6105 | *) ac_try_echo=$ac_try;; | |
6106 | esac | |
ec6a6fbe AK |
6107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6108 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6109 | (eval "$ac_compile") 2>conftest.er1 |
6110 | ac_status=$? | |
6111 | grep -v '^ *+' conftest.er1 >conftest.err | |
6112 | rm -f conftest.er1 | |
6113 | cat conftest.err >&5 | |
ec6a6fbe | 6114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6115 | (exit $ac_status); } && { |
6116 | test -z "$ac_c_werror_flag" || | |
6117 | test ! -s conftest.err | |
6118 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6119 | : |
d0191583 | 6120 | else |
ec6a6fbe | 6121 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6122 | sed 's/^/| /' conftest.$ac_ext >&5 |
6123 | ||
ec6a6fbe AK |
6124 | ac_cv_type_size_t=yes |
6125 | fi | |
6126 | ||
6127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6128 | else | |
6129 | $as_echo "$as_me: failed program was:" >&5 | |
6130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6131 | ||
6132 | ||
d0191583 JM |
6133 | fi |
6134 | ||
6135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6136 | fi | |
ec6a6fbe AK |
6137 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6138 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6139 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6140 | : | |
6141 | else | |
d0191583 JM |
6142 | |
6143 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6144 | #define size_t unsigned int |
d0191583 JM |
6145 | _ACEOF |
6146 | ||
ec6a6fbe | 6147 | fi |
d0191583 | 6148 | |
ec6a6fbe AK |
6149 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6150 | $as_echo_n "checking for mode_t... " >&6; } | |
6151 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6152 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6153 | else |
ec6a6fbe AK |
6154 | ac_cv_type_mode_t=no |
6155 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6156 | /* confdefs.h. */ |
6157 | _ACEOF | |
6158 | cat confdefs.h >>conftest.$ac_ext | |
6159 | cat >>conftest.$ac_ext <<_ACEOF | |
6160 | /* end confdefs.h. */ | |
6161 | $ac_includes_default | |
6162 | int | |
6163 | main () | |
6164 | { | |
ec6a6fbe AK |
6165 | if (sizeof (mode_t)) |
6166 | return 0; | |
ad6254c5 AK |
6167 | ; |
6168 | return 0; | |
6169 | } | |
6170 | _ACEOF | |
6171 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6172 | if { (ac_try="$ac_compile" |
6173 | case "(($ac_try" in | |
6174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6175 | *) ac_try_echo=$ac_try;; | |
6176 | esac | |
ec6a6fbe AK |
6177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6178 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6179 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6180 | ac_status=$? |
8a2fc586 AK |
6181 | grep -v '^ *+' conftest.er1 >conftest.err |
6182 | rm -f conftest.er1 | |
6183 | cat conftest.err >&5 | |
ec6a6fbe | 6184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6185 | (exit $ac_status); } && { |
6186 | test -z "$ac_c_werror_flag" || | |
6187 | test ! -s conftest.err | |
6188 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6189 | cat >conftest.$ac_ext <<_ACEOF |
6190 | /* confdefs.h. */ | |
6191 | _ACEOF | |
6192 | cat confdefs.h >>conftest.$ac_ext | |
6193 | cat >>conftest.$ac_ext <<_ACEOF | |
6194 | /* end confdefs.h. */ | |
6195 | $ac_includes_default | |
6196 | int | |
6197 | main () | |
6198 | { | |
ec6a6fbe AK |
6199 | if (sizeof ((mode_t))) |
6200 | return 0; | |
ad6254c5 AK |
6201 | ; |
6202 | return 0; | |
6203 | } | |
6204 | _ACEOF | |
6205 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6206 | if { (ac_try="$ac_compile" |
6207 | case "(($ac_try" in | |
6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6209 | *) ac_try_echo=$ac_try;; | |
6210 | esac | |
ec6a6fbe AK |
6211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6212 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6213 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6214 | ac_status=$? |
8a2fc586 AK |
6215 | grep -v '^ *+' conftest.er1 >conftest.err |
6216 | rm -f conftest.er1 | |
6217 | cat conftest.err >&5 | |
ec6a6fbe | 6218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6219 | (exit $ac_status); } && { |
6220 | test -z "$ac_c_werror_flag" || | |
6221 | test ! -s conftest.err | |
6222 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6223 | : |
6224 | else | |
6225 | $as_echo "$as_me: failed program was:" >&5 | |
6226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6227 | ||
6228 | ac_cv_type_mode_t=yes | |
6229 | fi | |
6230 | ||
6231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6232 | else |
ec6a6fbe | 6233 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6234 | sed 's/^/| /' conftest.$ac_ext >&5 |
6235 | ||
ec6a6fbe | 6236 | |
80992638 | 6237 | fi |
7a197a62 AK |
6238 | |
6239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6240 | fi |
ec6a6fbe AK |
6241 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6242 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6243 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6244 | : |
6245 | else | |
80992638 | 6246 | |
ad6254c5 AK |
6247 | cat >>confdefs.h <<_ACEOF |
6248 | #define mode_t int | |
6249 | _ACEOF | |
6250 | ||
6251 | fi | |
6252 | ||
ec6a6fbe AK |
6253 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6254 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6255 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6256 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6257 | else |
6258 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6259 | /* confdefs.h. */ |
6260 | _ACEOF | |
6261 | cat confdefs.h >>conftest.$ac_ext | |
6262 | cat >>conftest.$ac_ext <<_ACEOF | |
6263 | /* end confdefs.h. */ | |
6264 | $ac_includes_default | |
6265 | int | |
6266 | main () | |
6267 | { | |
6268 | static struct stat ac_aggr; | |
6269 | if (ac_aggr.st_rdev) | |
6270 | return 0; | |
6271 | ; | |
6272 | return 0; | |
6273 | } | |
6274 | _ACEOF | |
6275 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6276 | if { (ac_try="$ac_compile" |
6277 | case "(($ac_try" in | |
6278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6279 | *) ac_try_echo=$ac_try;; | |
6280 | esac | |
ec6a6fbe AK |
6281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6282 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6283 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6284 | ac_status=$? |
8a2fc586 AK |
6285 | grep -v '^ *+' conftest.er1 >conftest.err |
6286 | rm -f conftest.er1 | |
6287 | cat conftest.err >&5 | |
ec6a6fbe | 6288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6289 | (exit $ac_status); } && { |
6290 | test -z "$ac_c_werror_flag" || | |
6291 | test ! -s conftest.err | |
6292 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6293 | ac_cv_member_struct_stat_st_rdev=yes |
6294 | else | |
ec6a6fbe | 6295 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6296 | sed 's/^/| /' conftest.$ac_ext >&5 |
6297 | ||
7a197a62 | 6298 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6299 | /* confdefs.h. */ |
6300 | _ACEOF | |
6301 | cat confdefs.h >>conftest.$ac_ext | |
6302 | cat >>conftest.$ac_ext <<_ACEOF | |
6303 | /* end confdefs.h. */ | |
6304 | $ac_includes_default | |
6305 | int | |
6306 | main () | |
6307 | { | |
6308 | static struct stat ac_aggr; | |
6309 | if (sizeof ac_aggr.st_rdev) | |
6310 | return 0; | |
6311 | ; | |
6312 | return 0; | |
6313 | } | |
6314 | _ACEOF | |
6315 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6316 | if { (ac_try="$ac_compile" |
6317 | case "(($ac_try" in | |
6318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6319 | *) ac_try_echo=$ac_try;; | |
6320 | esac | |
ec6a6fbe AK |
6321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6322 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6323 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6324 | ac_status=$? |
8a2fc586 AK |
6325 | grep -v '^ *+' conftest.er1 >conftest.err |
6326 | rm -f conftest.er1 | |
6327 | cat conftest.err >&5 | |
ec6a6fbe | 6328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6329 | (exit $ac_status); } && { |
6330 | test -z "$ac_c_werror_flag" || | |
6331 | test ! -s conftest.err | |
6332 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6333 | ac_cv_member_struct_stat_st_rdev=yes |
6334 | else | |
ec6a6fbe | 6335 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6336 | sed 's/^/| /' conftest.$ac_ext >&5 |
6337 | ||
7a197a62 | 6338 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6339 | fi |
7a197a62 AK |
6340 | |
6341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6342 | fi |
7a197a62 AK |
6343 | |
6344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6345 | fi |
ec6a6fbe AK |
6346 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6347 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6348 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6349 | |
6350 | cat >>confdefs.h <<_ACEOF | |
6351 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6352 | _ACEOF | |
6353 | ||
6354 | ||
ad6254c5 AK |
6355 | fi |
6356 | ||
ec6a6fbe AK |
6357 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6358 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6359 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6360 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6361 | else |
6362 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6363 | /* confdefs.h. */ |
6364 | _ACEOF | |
6365 | cat confdefs.h >>conftest.$ac_ext | |
6366 | cat >>conftest.$ac_ext <<_ACEOF | |
6367 | /* end confdefs.h. */ | |
6368 | #include <sys/types.h> | |
6369 | #include <time.h> | |
6370 | ||
6371 | int | |
6372 | main () | |
6373 | { | |
25fbec5b AK |
6374 | struct tm tm; |
6375 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6376 | return !p; |
ad6254c5 AK |
6377 | ; |
6378 | return 0; | |
6379 | } | |
6380 | _ACEOF | |
6381 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6382 | if { (ac_try="$ac_compile" |
6383 | case "(($ac_try" in | |
6384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6385 | *) ac_try_echo=$ac_try;; | |
6386 | esac | |
ec6a6fbe AK |
6387 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6388 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6389 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6390 | ac_status=$? |
8a2fc586 AK |
6391 | grep -v '^ *+' conftest.er1 >conftest.err |
6392 | rm -f conftest.er1 | |
6393 | cat conftest.err >&5 | |
ec6a6fbe | 6394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6395 | (exit $ac_status); } && { |
6396 | test -z "$ac_c_werror_flag" || | |
6397 | test ! -s conftest.err | |
6398 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6399 | ac_cv_struct_tm=time.h |
6400 | else | |
ec6a6fbe | 6401 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6402 | sed 's/^/| /' conftest.$ac_ext >&5 |
6403 | ||
7a197a62 | 6404 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6405 | fi |
7a197a62 AK |
6406 | |
6407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6408 | fi |
ec6a6fbe AK |
6409 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6410 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6411 | if test $ac_cv_struct_tm = sys/time.h; then |
6412 | ||
6413 | cat >>confdefs.h <<\_ACEOF | |
6414 | #define TM_IN_SYS_TIME 1 | |
6415 | _ACEOF | |
6416 | ||
6417 | fi | |
809fae91 | 6418 | |
795ca3e5 | 6419 | |
80992638 | 6420 | ################################################################################ |
ad6254c5 AK |
6421 | |
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
d0191583 JM |
6435 | |
6436 | ||
6437 | ||
6438 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6439 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6440 | uname | |
ad6254c5 | 6441 | do |
ec6a6fbe AK |
6442 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6443 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6444 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6445 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6446 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6447 | else |
ad6254c5 | 6448 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6449 | /* confdefs.h. */ |
6450 | _ACEOF | |
6451 | cat confdefs.h >>conftest.$ac_ext | |
6452 | cat >>conftest.$ac_ext <<_ACEOF | |
6453 | /* end confdefs.h. */ | |
8a2fc586 AK |
6454 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6455 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6456 | #define $ac_func innocuous_$ac_func | |
6457 | ||
ad6254c5 AK |
6458 | /* System header to define __stub macros and hopefully few prototypes, |
6459 | which can conflict with char $ac_func (); below. | |
6460 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6461 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6462 | |
ad6254c5 AK |
6463 | #ifdef __STDC__ |
6464 | # include <limits.h> | |
6465 | #else | |
6466 | # include <assert.h> | |
6467 | #endif | |
8a2fc586 AK |
6468 | |
6469 | #undef $ac_func | |
6470 | ||
7a197a62 AK |
6471 | /* Override any GCC internal prototype to avoid an error. |
6472 | Use char because int might match the return type of a GCC | |
6473 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6474 | #ifdef __cplusplus |
6475 | extern "C" | |
ad6254c5 | 6476 | #endif |
ad6254c5 AK |
6477 | char $ac_func (); |
6478 | /* The GNU C library defines this for functions which it implements | |
6479 | to always fail with ENOSYS. Some functions are actually named | |
6480 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6481 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6482 | choke me |
ad6254c5 AK |
6483 | #endif |
6484 | ||
6485 | int | |
6486 | main () | |
6487 | { | |
7a197a62 | 6488 | return $ac_func (); |
ad6254c5 AK |
6489 | ; |
6490 | return 0; | |
6491 | } | |
6492 | _ACEOF | |
6493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6494 | if { (ac_try="$ac_link" |
6495 | case "(($ac_try" in | |
6496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6497 | *) ac_try_echo=$ac_try;; | |
6498 | esac | |
ec6a6fbe AK |
6499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6500 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6501 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6502 | ac_status=$? |
8a2fc586 AK |
6503 | grep -v '^ *+' conftest.er1 >conftest.err |
6504 | rm -f conftest.er1 | |
6505 | cat conftest.err >&5 | |
ec6a6fbe | 6506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6507 | (exit $ac_status); } && { |
6508 | test -z "$ac_c_werror_flag" || | |
6509 | test ! -s conftest.err | |
ec6a6fbe AK |
6510 | } && test -s conftest$ac_exeext && { |
6511 | test "$cross_compiling" = yes || | |
6512 | $as_test_x conftest$ac_exeext | |
6513 | }; then | |
fc54be10 AK |
6514 | eval "$as_ac_var=yes" |
6515 | else | |
ec6a6fbe | 6516 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6517 | sed 's/^/| /' conftest.$ac_ext >&5 |
6518 | ||
6519 | eval "$as_ac_var=no" | |
6520 | fi | |
6521 | ||
ec6a6fbe | 6522 | rm -rf conftest.dSYM |
25fbec5b | 6523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6524 | conftest$ac_exeext conftest.$ac_ext |
6525 | fi | |
ec6a6fbe AK |
6526 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6527 | $as_echo "$as_val"'` | |
6528 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6529 | $as_echo "$ac_res" >&6; } | |
6530 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6531 | $as_echo "$as_val"'` | |
6532 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6533 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6534 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6535 | _ACEOF |
6536 | ||
6537 | else | |
ec6a6fbe AK |
6538 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6539 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6540 | { (exit 1); exit 1; }; } |
6541 | fi | |
6542 | done | |
795ca3e5 | 6543 | |
a0f9708e AK |
6544 | |
6545 | for ac_func in siginterrupt | |
6546 | do | |
6547 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6548 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6549 | $as_echo_n "checking for $ac_func... " >&6; } | |
6550 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6551 | $as_echo_n "(cached) " >&6 | |
6552 | else | |
6553 | cat >conftest.$ac_ext <<_ACEOF | |
6554 | /* confdefs.h. */ | |
6555 | _ACEOF | |
6556 | cat confdefs.h >>conftest.$ac_ext | |
6557 | cat >>conftest.$ac_ext <<_ACEOF | |
6558 | /* end confdefs.h. */ | |
6559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6561 | #define $ac_func innocuous_$ac_func | |
6562 | ||
6563 | /* System header to define __stub macros and hopefully few prototypes, | |
6564 | which can conflict with char $ac_func (); below. | |
6565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6566 | <limits.h> exists even on freestanding compilers. */ | |
6567 | ||
6568 | #ifdef __STDC__ | |
6569 | # include <limits.h> | |
6570 | #else | |
6571 | # include <assert.h> | |
6572 | #endif | |
6573 | ||
6574 | #undef $ac_func | |
6575 | ||
6576 | /* Override any GCC internal prototype to avoid an error. | |
6577 | Use char because int might match the return type of a GCC | |
6578 | builtin and then its argument prototype would still apply. */ | |
6579 | #ifdef __cplusplus | |
6580 | extern "C" | |
6581 | #endif | |
6582 | char $ac_func (); | |
6583 | /* The GNU C library defines this for functions which it implements | |
6584 | to always fail with ENOSYS. Some functions are actually named | |
6585 | something starting with __ and the normal name is an alias. */ | |
6586 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6587 | choke me | |
6588 | #endif | |
6589 | ||
6590 | int | |
6591 | main () | |
6592 | { | |
6593 | return $ac_func (); | |
6594 | ; | |
6595 | return 0; | |
6596 | } | |
6597 | _ACEOF | |
6598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6599 | if { (ac_try="$ac_link" | |
6600 | case "(($ac_try" in | |
6601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6602 | *) ac_try_echo=$ac_try;; | |
6603 | esac | |
6604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6605 | $as_echo "$ac_try_echo") >&5 | |
6606 | (eval "$ac_link") 2>conftest.er1 | |
6607 | ac_status=$? | |
6608 | grep -v '^ *+' conftest.er1 >conftest.err | |
6609 | rm -f conftest.er1 | |
6610 | cat conftest.err >&5 | |
6611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6612 | (exit $ac_status); } && { | |
6613 | test -z "$ac_c_werror_flag" || | |
6614 | test ! -s conftest.err | |
6615 | } && test -s conftest$ac_exeext && { | |
6616 | test "$cross_compiling" = yes || | |
6617 | $as_test_x conftest$ac_exeext | |
6618 | }; then | |
6619 | eval "$as_ac_var=yes" | |
6620 | else | |
6621 | $as_echo "$as_me: failed program was:" >&5 | |
6622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6623 | ||
6624 | eval "$as_ac_var=no" | |
6625 | fi | |
6626 | ||
6627 | rm -rf conftest.dSYM | |
6628 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6629 | conftest$ac_exeext conftest.$ac_ext | |
6630 | fi | |
6631 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
6632 | $as_echo "$as_val"'` | |
6633 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6634 | $as_echo "$ac_res" >&6; } | |
6635 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6636 | $as_echo "$as_val"'` | |
6637 | if test "x$as_val" = x""yes; then | |
6638 | cat >>confdefs.h <<_ACEOF | |
6639 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6640 | _ACEOF | |
6641 | ||
6642 | fi | |
6643 | done | |
6644 | ||
ad6254c5 AK |
6645 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6646 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6647 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6648 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6649 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6650 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6651 | else |
6652 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6653 | /* confdefs.h. */ |
6654 | _ACEOF | |
6655 | cat confdefs.h >>conftest.$ac_ext | |
6656 | cat >>conftest.$ac_ext <<_ACEOF | |
6657 | /* end confdefs.h. */ | |
6658 | #include <alloca.h> | |
6659 | int | |
6660 | main () | |
6661 | { | |
6662 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6663 | if (p) return 0; |
ad6254c5 AK |
6664 | ; |
6665 | return 0; | |
6666 | } | |
6667 | _ACEOF | |
6668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6669 | if { (ac_try="$ac_link" |
6670 | case "(($ac_try" in | |
6671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6672 | *) ac_try_echo=$ac_try;; | |
6673 | esac | |
ec6a6fbe AK |
6674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6675 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6676 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6677 | ac_status=$? |
8a2fc586 AK |
6678 | grep -v '^ *+' conftest.er1 >conftest.err |
6679 | rm -f conftest.er1 | |
6680 | cat conftest.err >&5 | |
ec6a6fbe | 6681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6682 | (exit $ac_status); } && { |
6683 | test -z "$ac_c_werror_flag" || | |
6684 | test ! -s conftest.err | |
ec6a6fbe AK |
6685 | } && test -s conftest$ac_exeext && { |
6686 | test "$cross_compiling" = yes || | |
6687 | $as_test_x conftest$ac_exeext | |
6688 | }; then | |
ad6254c5 AK |
6689 | ac_cv_working_alloca_h=yes |
6690 | else | |
ec6a6fbe | 6691 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6692 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6693 | |
7a197a62 | 6694 | ac_cv_working_alloca_h=no |
ad6254c5 | 6695 | fi |
7a197a62 | 6696 | |
ec6a6fbe | 6697 | rm -rf conftest.dSYM |
25fbec5b | 6698 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6699 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6700 | fi |
ec6a6fbe AK |
6701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6702 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6703 | if test $ac_cv_working_alloca_h = yes; then |
6704 | ||
6705 | cat >>confdefs.h <<\_ACEOF | |
6706 | #define HAVE_ALLOCA_H 1 | |
6707 | _ACEOF | |
6708 | ||
6709 | fi | |
6710 | ||
ec6a6fbe AK |
6711 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6712 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6713 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6714 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6715 | else |
6716 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6717 | /* confdefs.h. */ |
6718 | _ACEOF | |
6719 | cat confdefs.h >>conftest.$ac_ext | |
6720 | cat >>conftest.$ac_ext <<_ACEOF | |
6721 | /* end confdefs.h. */ | |
6722 | #ifdef __GNUC__ | |
6723 | # define alloca __builtin_alloca | |
6724 | #else | |
6725 | # ifdef _MSC_VER | |
6726 | # include <malloc.h> | |
6727 | # define alloca _alloca | |
6728 | # else | |
25fbec5b | 6729 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6730 | # include <alloca.h> |
6731 | # else | |
6732 | # ifdef _AIX | |
6733 | #pragma alloca | |
6734 | # else | |
6735 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6736 | char *alloca (); | |
6737 | # endif | |
6738 | # endif | |
6739 | # endif | |
6740 | # endif | |
6741 | #endif | |
6742 | ||
6743 | int | |
6744 | main () | |
6745 | { | |
6746 | char *p = (char *) alloca (1); | |
7a197a62 | 6747 | if (p) return 0; |
ad6254c5 AK |
6748 | ; |
6749 | return 0; | |
6750 | } | |
6751 | _ACEOF | |
6752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6753 | if { (ac_try="$ac_link" |
6754 | case "(($ac_try" in | |
6755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6756 | *) ac_try_echo=$ac_try;; | |
6757 | esac | |
ec6a6fbe AK |
6758 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6759 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6760 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6761 | ac_status=$? |
8a2fc586 AK |
6762 | grep -v '^ *+' conftest.er1 >conftest.err |
6763 | rm -f conftest.er1 | |
6764 | cat conftest.err >&5 | |
ec6a6fbe | 6765 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6766 | (exit $ac_status); } && { |
6767 | test -z "$ac_c_werror_flag" || | |
6768 | test ! -s conftest.err | |
ec6a6fbe AK |
6769 | } && test -s conftest$ac_exeext && { |
6770 | test "$cross_compiling" = yes || | |
6771 | $as_test_x conftest$ac_exeext | |
6772 | }; then | |
ad6254c5 AK |
6773 | ac_cv_func_alloca_works=yes |
6774 | else | |
ec6a6fbe | 6775 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6776 | sed 's/^/| /' conftest.$ac_ext >&5 |
6777 | ||
7a197a62 | 6778 | ac_cv_func_alloca_works=no |
ad6254c5 | 6779 | fi |
7a197a62 | 6780 | |
ec6a6fbe | 6781 | rm -rf conftest.dSYM |
25fbec5b | 6782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6783 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6784 | fi |
ec6a6fbe AK |
6785 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6786 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6787 | |
6788 | if test $ac_cv_func_alloca_works = yes; then | |
6789 | ||
6790 | cat >>confdefs.h <<\_ACEOF | |
6791 | #define HAVE_ALLOCA 1 | |
6792 | _ACEOF | |
6793 | ||
6794 | else | |
6795 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6796 | # that cause trouble. Some versions do not even contain alloca or | |
6797 | # contain a buggy version. If you still want to use their alloca, | |
6798 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6799 | ||
7a197a62 | 6800 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6801 | |
6802 | cat >>confdefs.h <<\_ACEOF | |
6803 | #define C_ALLOCA 1 | |
6804 | _ACEOF | |
6805 | ||
6806 | ||
ec6a6fbe AK |
6807 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6808 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6809 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6810 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6811 | else |
6812 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6813 | /* confdefs.h. */ |
6814 | _ACEOF | |
6815 | cat confdefs.h >>conftest.$ac_ext | |
6816 | cat >>conftest.$ac_ext <<_ACEOF | |
6817 | /* end confdefs.h. */ | |
7a197a62 | 6818 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6819 | webecray |
6820 | #else | |
6821 | wenotbecray | |
6822 | #endif | |
6823 | ||
6824 | _ACEOF | |
795ca3e5 | 6825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6826 | $EGREP "webecray" >/dev/null 2>&1; then |
6827 | ac_cv_os_cray=yes | |
6828 | else | |
6829 | ac_cv_os_cray=no | |
795ca3e5 AK |
6830 | fi |
6831 | rm -f conftest* | |
6832 | ||
795ca3e5 | 6833 | fi |
ec6a6fbe AK |
6834 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6835 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6836 | if test $ac_cv_os_cray = yes; then |
6837 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6838 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6839 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6840 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6841 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6842 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6843 | else |
6844 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6845 | /* confdefs.h. */ |
6846 | _ACEOF | |
6847 | cat confdefs.h >>conftest.$ac_ext | |
6848 | cat >>conftest.$ac_ext <<_ACEOF | |
6849 | /* end confdefs.h. */ | |
8a2fc586 AK |
6850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6852 | #define $ac_func innocuous_$ac_func | |
6853 | ||
ad6254c5 AK |
6854 | /* System header to define __stub macros and hopefully few prototypes, |
6855 | which can conflict with char $ac_func (); below. | |
6856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6857 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6858 | |
ad6254c5 AK |
6859 | #ifdef __STDC__ |
6860 | # include <limits.h> | |
6861 | #else | |
6862 | # include <assert.h> | |
6863 | #endif | |
8a2fc586 AK |
6864 | |
6865 | #undef $ac_func | |
6866 | ||
7a197a62 AK |
6867 | /* Override any GCC internal prototype to avoid an error. |
6868 | Use char because int might match the return type of a GCC | |
6869 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6870 | #ifdef __cplusplus |
6871 | extern "C" | |
ad6254c5 | 6872 | #endif |
ad6254c5 AK |
6873 | char $ac_func (); |
6874 | /* The GNU C library defines this for functions which it implements | |
6875 | to always fail with ENOSYS. Some functions are actually named | |
6876 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6877 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6878 | choke me |
ad6254c5 AK |
6879 | #endif |
6880 | ||
6881 | int | |
6882 | main () | |
6883 | { | |
7a197a62 | 6884 | return $ac_func (); |
ad6254c5 AK |
6885 | ; |
6886 | return 0; | |
6887 | } | |
6888 | _ACEOF | |
6889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6890 | if { (ac_try="$ac_link" |
6891 | case "(($ac_try" in | |
6892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6893 | *) ac_try_echo=$ac_try;; | |
6894 | esac | |
ec6a6fbe AK |
6895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6896 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6897 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6898 | ac_status=$? |
8a2fc586 AK |
6899 | grep -v '^ *+' conftest.er1 >conftest.err |
6900 | rm -f conftest.er1 | |
6901 | cat conftest.err >&5 | |
ec6a6fbe | 6902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6903 | (exit $ac_status); } && { |
6904 | test -z "$ac_c_werror_flag" || | |
6905 | test ! -s conftest.err | |
ec6a6fbe AK |
6906 | } && test -s conftest$ac_exeext && { |
6907 | test "$cross_compiling" = yes || | |
6908 | $as_test_x conftest$ac_exeext | |
6909 | }; then | |
ad6254c5 AK |
6910 | eval "$as_ac_var=yes" |
6911 | else | |
ec6a6fbe | 6912 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6913 | sed 's/^/| /' conftest.$ac_ext >&5 |
6914 | ||
7a197a62 | 6915 | eval "$as_ac_var=no" |
ad6254c5 | 6916 | fi |
7a197a62 | 6917 | |
ec6a6fbe | 6918 | rm -rf conftest.dSYM |
25fbec5b | 6919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6920 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6921 | fi |
ec6a6fbe AK |
6922 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6923 | $as_echo "$as_val"'` | |
6924 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6925 | $as_echo "$ac_res" >&6; } | |
6926 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6927 | $as_echo "$as_val"'` | |
6928 | if test "x$as_val" = x""yes; then | |
80992638 | 6929 | |
ad6254c5 AK |
6930 | cat >>confdefs.h <<_ACEOF |
6931 | #define CRAY_STACKSEG_END $ac_func | |
6932 | _ACEOF | |
6933 | ||
6934 | break | |
6935 | fi | |
6936 | ||
6937 | done | |
6938 | fi | |
6939 | ||
ec6a6fbe AK |
6940 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6941 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6942 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6943 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6944 | else |
6945 | if test "$cross_compiling" = yes; then | |
6946 | ac_cv_c_stack_direction=0 | |
6947 | else | |
6948 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6949 | /* confdefs.h. */ |
6950 | _ACEOF | |
6951 | cat confdefs.h >>conftest.$ac_ext | |
6952 | cat >>conftest.$ac_ext <<_ACEOF | |
6953 | /* end confdefs.h. */ | |
7a197a62 | 6954 | $ac_includes_default |
ad6254c5 AK |
6955 | int |
6956 | find_stack_direction () | |
6957 | { | |
6958 | static char *addr = 0; | |
6959 | auto char dummy; | |
6960 | if (addr == 0) | |
6961 | { | |
6962 | addr = &dummy; | |
6963 | return find_stack_direction (); | |
6964 | } | |
6965 | else | |
6966 | return (&dummy > addr) ? 1 : -1; | |
6967 | } | |
6968 | ||
6969 | int | |
6970 | main () | |
6971 | { | |
7a197a62 | 6972 | return find_stack_direction () < 0; |
ad6254c5 AK |
6973 | } |
6974 | _ACEOF | |
6975 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6976 | if { (ac_try="$ac_link" |
6977 | case "(($ac_try" in | |
6978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6979 | *) ac_try_echo=$ac_try;; | |
6980 | esac | |
ec6a6fbe AK |
6981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6982 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6983 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6984 | ac_status=$? |
ec6a6fbe | 6985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6987 | { (case "(($ac_try" in |
6988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6989 | *) ac_try_echo=$ac_try;; | |
6990 | esac | |
ec6a6fbe AK |
6991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6992 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6993 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6994 | ac_status=$? |
ec6a6fbe | 6995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6996 | (exit $ac_status); }; }; then |
6997 | ac_cv_c_stack_direction=1 | |
6998 | else | |
ec6a6fbe AK |
6999 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7000 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7001 | sed 's/^/| /' conftest.$ac_ext >&5 |
7002 | ||
7003 | ( exit $ac_status ) | |
7004 | ac_cv_c_stack_direction=-1 | |
7005 | fi | |
ec6a6fbe | 7006 | rm -rf conftest.dSYM |
7a197a62 | 7007 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7008 | fi |
7a197a62 AK |
7009 | |
7010 | ||
ad6254c5 | 7011 | fi |
ec6a6fbe AK |
7012 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7013 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
7014 | |
7015 | cat >>confdefs.h <<_ACEOF | |
7016 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7017 | _ACEOF | |
7018 | ||
7019 | ||
7020 | fi | |
7021 | ||
ec6a6fbe AK |
7022 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
7023 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 7024 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 7025 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7026 | else |
7027 | if test "$cross_compiling" = yes; then | |
7028 | ac_cv_func_closedir_void=yes | |
7029 | else | |
7030 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7031 | /* confdefs.h. */ |
7032 | _ACEOF | |
7033 | cat confdefs.h >>conftest.$ac_ext | |
7034 | cat >>conftest.$ac_ext <<_ACEOF | |
7035 | /* end confdefs.h. */ | |
7036 | $ac_includes_default | |
7037 | #include <$ac_header_dirent> | |
7038 | #ifndef __cplusplus | |
7039 | int closedir (); | |
7040 | #endif | |
7041 | ||
7042 | int | |
7043 | main () | |
7044 | { | |
7a197a62 | 7045 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
7046 | ; |
7047 | return 0; | |
7048 | } | |
7049 | _ACEOF | |
7050 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7051 | if { (ac_try="$ac_link" |
7052 | case "(($ac_try" in | |
7053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7054 | *) ac_try_echo=$ac_try;; | |
7055 | esac | |
ec6a6fbe AK |
7056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7057 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7058 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7059 | ac_status=$? |
ec6a6fbe | 7060 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7062 | { (case "(($ac_try" in |
7063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7064 | *) ac_try_echo=$ac_try;; | |
7065 | esac | |
ec6a6fbe AK |
7066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7067 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7068 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7069 | ac_status=$? |
ec6a6fbe | 7070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7071 | (exit $ac_status); }; }; then |
7072 | ac_cv_func_closedir_void=no | |
7073 | else | |
ec6a6fbe AK |
7074 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7075 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7076 | sed 's/^/| /' conftest.$ac_ext >&5 |
7077 | ||
7078 | ( exit $ac_status ) | |
7079 | ac_cv_func_closedir_void=yes | |
7080 | fi | |
ec6a6fbe | 7081 | rm -rf conftest.dSYM |
7a197a62 | 7082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7083 | fi |
7a197a62 AK |
7084 | |
7085 | ||
ad6254c5 | 7086 | fi |
ec6a6fbe AK |
7087 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
7088 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
7089 | if test $ac_cv_func_closedir_void = yes; then |
7090 | ||
7091 | cat >>confdefs.h <<\_ACEOF | |
7092 | #define CLOSEDIR_VOID 1 | |
7093 | _ACEOF | |
7094 | ||
7095 | fi | |
7096 | ||
7097 | ||
7a197a62 | 7098 | for ac_header in vfork.h |
ad6254c5 | 7099 | do |
ec6a6fbe | 7100 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7101 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7102 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7103 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7104 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7105 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7106 | fi |
ec6a6fbe AK |
7107 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7108 | $as_echo "$as_val"'` | |
7109 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7110 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7111 | else |
7112 | # Is the header compilable? | |
ec6a6fbe AK |
7113 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7114 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7115 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7116 | /* confdefs.h. */ |
7117 | _ACEOF | |
7118 | cat confdefs.h >>conftest.$ac_ext | |
7119 | cat >>conftest.$ac_ext <<_ACEOF | |
7120 | /* end confdefs.h. */ | |
7121 | $ac_includes_default | |
7122 | #include <$ac_header> | |
7123 | _ACEOF | |
7124 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7125 | if { (ac_try="$ac_compile" |
7126 | case "(($ac_try" in | |
7127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7128 | *) ac_try_echo=$ac_try;; | |
7129 | esac | |
ec6a6fbe AK |
7130 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7131 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7132 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7133 | ac_status=$? |
8a2fc586 AK |
7134 | grep -v '^ *+' conftest.er1 >conftest.err |
7135 | rm -f conftest.er1 | |
7136 | cat conftest.err >&5 | |
ec6a6fbe | 7137 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7138 | (exit $ac_status); } && { |
7139 | test -z "$ac_c_werror_flag" || | |
7140 | test ! -s conftest.err | |
7141 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7142 | ac_header_compiler=yes |
7143 | else | |
ec6a6fbe | 7144 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7145 | sed 's/^/| /' conftest.$ac_ext >&5 |
7146 | ||
7a197a62 | 7147 | ac_header_compiler=no |
ad6254c5 | 7148 | fi |
7a197a62 AK |
7149 | |
7150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7151 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7152 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7153 | |
7154 | # Is the header present? | |
ec6a6fbe AK |
7155 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7156 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7157 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7158 | /* confdefs.h. */ |
7159 | _ACEOF | |
7160 | cat confdefs.h >>conftest.$ac_ext | |
7161 | cat >>conftest.$ac_ext <<_ACEOF | |
7162 | /* end confdefs.h. */ | |
7163 | #include <$ac_header> | |
7164 | _ACEOF | |
7a197a62 AK |
7165 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7166 | case "(($ac_try" in | |
7167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7168 | *) ac_try_echo=$ac_try;; | |
7169 | esac | |
ec6a6fbe AK |
7170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7171 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7172 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7173 | ac_status=$? |
7174 | grep -v '^ *+' conftest.er1 >conftest.err | |
7175 | rm -f conftest.er1 | |
7176 | cat conftest.err >&5 | |
ec6a6fbe | 7177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7178 | (exit $ac_status); } >/dev/null && { |
7179 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7180 | test ! -s conftest.err | |
7181 | }; then | |
ad6254c5 AK |
7182 | ac_header_preproc=yes |
7183 | else | |
ec6a6fbe | 7184 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7185 | sed 's/^/| /' conftest.$ac_ext >&5 |
7186 | ||
7187 | ac_header_preproc=no | |
7188 | fi | |
7a197a62 | 7189 | |
ad6254c5 | 7190 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7191 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7192 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7193 | |
7194 | # So? What about this header? | |
8a2fc586 AK |
7195 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7196 | yes:no: ) | |
ec6a6fbe AK |
7197 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7198 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7200 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7201 | ac_header_preproc=yes |
ad6254c5 | 7202 | ;; |
8a2fc586 | 7203 | no:yes:* ) |
ec6a6fbe AK |
7204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7205 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7207 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7209 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7211 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7212 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7213 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7215 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7216 | |
ad6254c5 AK |
7217 | ;; |
7218 | esac | |
ec6a6fbe AK |
7219 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7220 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7222 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7223 | else |
8a2fc586 | 7224 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7225 | fi |
ec6a6fbe AK |
7226 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7227 | $as_echo "$as_val"'` | |
7228 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7229 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7230 | |
795ca3e5 | 7231 | fi |
ec6a6fbe AK |
7232 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7233 | $as_echo "$as_val"'` | |
7234 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7235 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7236 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7237 | _ACEOF |
7238 | ||
7239 | fi | |
7240 | ||
7241 | done | |
795ca3e5 | 7242 | |
ad6254c5 AK |
7243 | |
7244 | ||
7245 | for ac_func in fork vfork | |
7246 | do | |
ec6a6fbe AK |
7247 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7248 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7249 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7250 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7251 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7252 | else |
ad6254c5 | 7253 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7254 | /* confdefs.h. */ |
7255 | _ACEOF | |
7256 | cat confdefs.h >>conftest.$ac_ext | |
7257 | cat >>conftest.$ac_ext <<_ACEOF | |
7258 | /* end confdefs.h. */ | |
8a2fc586 AK |
7259 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7260 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7261 | #define $ac_func innocuous_$ac_func | |
7262 | ||
ad6254c5 AK |
7263 | /* System header to define __stub macros and hopefully few prototypes, |
7264 | which can conflict with char $ac_func (); below. | |
7265 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7266 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7267 | |
ad6254c5 AK |
7268 | #ifdef __STDC__ |
7269 | # include <limits.h> | |
7270 | #else | |
7271 | # include <assert.h> | |
795ca3e5 | 7272 | #endif |
8a2fc586 AK |
7273 | |
7274 | #undef $ac_func | |
7275 | ||
7a197a62 AK |
7276 | /* Override any GCC internal prototype to avoid an error. |
7277 | Use char because int might match the return type of a GCC | |
7278 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7279 | #ifdef __cplusplus |
ad6254c5 | 7280 | extern "C" |
ad6254c5 | 7281 | #endif |
ad6254c5 AK |
7282 | char $ac_func (); |
7283 | /* The GNU C library defines this for functions which it implements | |
7284 | to always fail with ENOSYS. Some functions are actually named | |
7285 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7286 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7287 | choke me |
795ca3e5 AK |
7288 | #endif |
7289 | ||
ad6254c5 AK |
7290 | int |
7291 | main () | |
7292 | { | |
7a197a62 | 7293 | return $ac_func (); |
ad6254c5 AK |
7294 | ; |
7295 | return 0; | |
7296 | } | |
7297 | _ACEOF | |
7298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7299 | if { (ac_try="$ac_link" |
7300 | case "(($ac_try" in | |
7301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7302 | *) ac_try_echo=$ac_try;; | |
7303 | esac | |
ec6a6fbe AK |
7304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7305 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7306 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7307 | ac_status=$? |
8a2fc586 AK |
7308 | grep -v '^ *+' conftest.er1 >conftest.err |
7309 | rm -f conftest.er1 | |
7310 | cat conftest.err >&5 | |
ec6a6fbe | 7311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7312 | (exit $ac_status); } && { |
7313 | test -z "$ac_c_werror_flag" || | |
7314 | test ! -s conftest.err | |
ec6a6fbe AK |
7315 | } && test -s conftest$ac_exeext && { |
7316 | test "$cross_compiling" = yes || | |
7317 | $as_test_x conftest$ac_exeext | |
7318 | }; then | |
ad6254c5 | 7319 | eval "$as_ac_var=yes" |
795ca3e5 | 7320 | else |
ec6a6fbe | 7321 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7322 | sed 's/^/| /' conftest.$ac_ext >&5 |
7323 | ||
7a197a62 | 7324 | eval "$as_ac_var=no" |
795ca3e5 | 7325 | fi |
7a197a62 | 7326 | |
ec6a6fbe | 7327 | rm -rf conftest.dSYM |
25fbec5b | 7328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7329 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7330 | fi |
ec6a6fbe AK |
7331 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7332 | $as_echo "$as_val"'` | |
7333 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7334 | $as_echo "$ac_res" >&6; } | |
7335 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7336 | $as_echo "$as_val"'` | |
7337 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7338 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7339 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7340 | _ACEOF |
7341 | ||
7342 | fi | |
7343 | done | |
7344 | ||
7345 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7346 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7347 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7348 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7349 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7350 | else |
7351 | if test "$cross_compiling" = yes; then | |
7352 | ac_cv_func_fork_works=cross | |
7353 | else | |
7354 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7355 | /* confdefs.h. */ |
7356 | _ACEOF | |
7357 | cat confdefs.h >>conftest.$ac_ext | |
7358 | cat >>conftest.$ac_ext <<_ACEOF | |
7359 | /* end confdefs.h. */ | |
7360 | $ac_includes_default | |
7361 | int | |
7362 | main () | |
7363 | { | |
7364 | ||
7365 | /* By Ruediger Kuhlmann. */ | |
7366 | return fork () < 0; | |
7367 | ||
7368 | ; | |
7369 | return 0; | |
7370 | } | |
ad6254c5 AK |
7371 | _ACEOF |
7372 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7373 | if { (ac_try="$ac_link" |
7374 | case "(($ac_try" in | |
7375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7376 | *) ac_try_echo=$ac_try;; | |
7377 | esac | |
ec6a6fbe AK |
7378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7379 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7380 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7381 | ac_status=$? |
ec6a6fbe | 7382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7384 | { (case "(($ac_try" in |
7385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7386 | *) ac_try_echo=$ac_try;; | |
7387 | esac | |
ec6a6fbe AK |
7388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7389 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7390 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7391 | ac_status=$? |
ec6a6fbe | 7392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7393 | (exit $ac_status); }; }; then |
7394 | ac_cv_func_fork_works=yes | |
7395 | else | |
ec6a6fbe AK |
7396 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7397 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7398 | sed 's/^/| /' conftest.$ac_ext >&5 |
7399 | ||
7400 | ( exit $ac_status ) | |
7401 | ac_cv_func_fork_works=no | |
7402 | fi | |
ec6a6fbe | 7403 | rm -rf conftest.dSYM |
7a197a62 | 7404 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7405 | fi |
7a197a62 AK |
7406 | |
7407 | ||
ad6254c5 | 7408 | fi |
ec6a6fbe AK |
7409 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7410 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7411 | |
7412 | else | |
7413 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7414 | fi | |
7415 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7416 | case $host in | |
7417 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7418 | # Override, as these systems have only a dummy fork() stub | |
7419 | ac_cv_func_fork_works=no | |
7420 | ;; | |
7421 | *) | |
7422 | ac_cv_func_fork_works=yes | |
7423 | ;; | |
7424 | esac | |
ec6a6fbe AK |
7425 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7426 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7427 | fi |
7428 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7429 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7430 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7431 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7432 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7433 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7434 | else |
7435 | if test "$cross_compiling" = yes; then | |
7436 | ac_cv_func_vfork_works=cross | |
7437 | else | |
7438 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7439 | /* confdefs.h. */ |
7440 | _ACEOF | |
7441 | cat confdefs.h >>conftest.$ac_ext | |
7442 | cat >>conftest.$ac_ext <<_ACEOF | |
7443 | /* end confdefs.h. */ | |
7444 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7445 | $ac_includes_default |
ad6254c5 | 7446 | #include <sys/wait.h> |
25fbec5b | 7447 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7448 | # include <vfork.h> |
7449 | #endif | |
7450 | /* On some sparc systems, changes by the child to local and incoming | |
7451 | argument registers are propagated back to the parent. The compiler | |
7452 | is told about this with #include <vfork.h>, but some compilers | |
7453 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7454 | static variable whose address is put into a register that is | |
7455 | clobbered by the vfork. */ | |
7456 | static void | |
7457 | #ifdef __cplusplus | |
7458 | sparc_address_test (int arg) | |
7459 | # else | |
7460 | sparc_address_test (arg) int arg; | |
7461 | #endif | |
7462 | { | |
7463 | static pid_t child; | |
7464 | if (!child) { | |
7465 | child = vfork (); | |
7466 | if (child < 0) { | |
7467 | perror ("vfork"); | |
7468 | _exit(2); | |
7469 | } | |
7470 | if (!child) { | |
7471 | arg = getpid(); | |
7472 | write(-1, "", 0); | |
7473 | _exit (arg); | |
7474 | } | |
7475 | } | |
7476 | } | |
7477 | ||
7478 | int | |
7479 | main () | |
7480 | { | |
7481 | pid_t parent = getpid (); | |
7482 | pid_t child; | |
7483 | ||
7484 | sparc_address_test (0); | |
7485 | ||
7486 | child = vfork (); | |
7487 | ||
7488 | if (child == 0) { | |
7489 | /* Here is another test for sparc vfork register problems. This | |
7490 | test uses lots of local variables, at least as many local | |
7491 | variables as main has allocated so far including compiler | |
7492 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7493 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7494 | reuse the register of parent for one of the local variables, | |
7495 | since it will think that parent can't possibly be used any more | |
7496 | in this routine. Assigning to the local variable will thus | |
7497 | munge parent in the parent process. */ | |
7498 | pid_t | |
7499 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7500 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7501 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7502 | use the same hardware register for all 8 local variables. */ | |
7503 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7504 | || p != p5 || p != p6 || p != p7) | |
7505 | _exit(1); | |
7506 | ||
7507 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7508 | from child file descriptors. If the child closes a descriptor | |
7509 | before it execs or exits, this munges the parent's descriptor | |
7510 | as well. Test for this by closing stdout in the child. */ | |
7511 | _exit(close(fileno(stdout)) != 0); | |
7512 | } else { | |
7513 | int status; | |
7514 | struct stat st; | |
7515 | ||
7516 | while (wait(&status) != child) | |
7517 | ; | |
7a197a62 | 7518 | return ( |
ad6254c5 AK |
7519 | /* Was there some problem with vforking? */ |
7520 | child < 0 | |
7521 | ||
7522 | /* Did the child fail? (This shouldn't happen.) */ | |
7523 | || status | |
7524 | ||
7525 | /* Did the vfork/compiler bug occur? */ | |
7526 | || parent != getpid() | |
7527 | ||
7528 | /* Did the file descriptor bug occur? */ | |
7529 | || fstat(fileno(stdout), &st) != 0 | |
7530 | ); | |
7531 | } | |
7532 | } | |
7533 | _ACEOF | |
7534 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7535 | if { (ac_try="$ac_link" |
7536 | case "(($ac_try" in | |
7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7538 | *) ac_try_echo=$ac_try;; | |
7539 | esac | |
ec6a6fbe AK |
7540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7541 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7542 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7543 | ac_status=$? |
ec6a6fbe | 7544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7546 | { (case "(($ac_try" in |
7547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7548 | *) ac_try_echo=$ac_try;; | |
7549 | esac | |
ec6a6fbe AK |
7550 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7551 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7552 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7553 | ac_status=$? |
ec6a6fbe | 7554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7555 | (exit $ac_status); }; }; then |
7556 | ac_cv_func_vfork_works=yes | |
7557 | else | |
ec6a6fbe AK |
7558 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7559 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7560 | sed 's/^/| /' conftest.$ac_ext >&5 |
7561 | ||
7562 | ( exit $ac_status ) | |
7563 | ac_cv_func_vfork_works=no | |
7564 | fi | |
ec6a6fbe | 7565 | rm -rf conftest.dSYM |
7a197a62 | 7566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7567 | fi |
7a197a62 AK |
7568 | |
7569 | ||
ad6254c5 | 7570 | fi |
ec6a6fbe AK |
7571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7572 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7573 | |
7574 | fi; | |
7575 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7576 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7577 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7578 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7579 | fi |
7580 | ||
7581 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7582 | ||
7583 | cat >>confdefs.h <<\_ACEOF | |
7584 | #define HAVE_WORKING_VFORK 1 | |
7585 | _ACEOF | |
7586 | ||
7587 | else | |
7588 | ||
7589 | cat >>confdefs.h <<\_ACEOF | |
7590 | #define vfork fork | |
7591 | _ACEOF | |
7592 | ||
7593 | fi | |
7594 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7595 | ||
7596 | cat >>confdefs.h <<\_ACEOF | |
7597 | #define HAVE_WORKING_FORK 1 | |
7598 | _ACEOF | |
7599 | ||
7600 | fi | |
7601 | ||
ec6a6fbe AK |
7602 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7603 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7604 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7605 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7606 | else |
7607 | rm -f conftest.sym conftest.file | |
7608 | echo >conftest.file | |
7609 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7610 | if test "$cross_compiling" = yes; then | |
7611 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7612 | else | |
7613 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7614 | /* confdefs.h. */ |
7615 | _ACEOF | |
7616 | cat confdefs.h >>conftest.$ac_ext | |
7617 | cat >>conftest.$ac_ext <<_ACEOF | |
7618 | /* end confdefs.h. */ | |
7619 | $ac_includes_default | |
7620 | int | |
7621 | main () | |
7622 | { | |
7623 | struct stat sbuf; | |
7624 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7625 | That is better in the sense that it means we will not |
7626 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7627 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7628 | ; |
7629 | return 0; | |
7630 | } | |
7631 | _ACEOF | |
7632 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7633 | if { (ac_try="$ac_link" |
7634 | case "(($ac_try" in | |
7635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7636 | *) ac_try_echo=$ac_try;; | |
7637 | esac | |
ec6a6fbe AK |
7638 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7639 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7640 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7641 | ac_status=$? |
ec6a6fbe | 7642 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7643 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7644 | { (case "(($ac_try" in |
7645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7646 | *) ac_try_echo=$ac_try;; | |
7647 | esac | |
ec6a6fbe AK |
7648 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7649 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7650 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7651 | ac_status=$? |
ec6a6fbe | 7652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7653 | (exit $ac_status); }; }; then |
7654 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7655 | else | |
ec6a6fbe AK |
7656 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7657 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7658 | sed 's/^/| /' conftest.$ac_ext >&5 |
7659 | ||
7660 | ( exit $ac_status ) | |
7661 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7662 | fi | |
ec6a6fbe | 7663 | rm -rf conftest.dSYM |
7a197a62 | 7664 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7665 | fi |
7a197a62 AK |
7666 | |
7667 | ||
ad6254c5 AK |
7668 | else |
7669 | # If the `ln -s' command failed, then we probably don't even | |
7670 | # have an lstat function. | |
7671 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7672 | fi | |
7673 | rm -f conftest.sym conftest.file | |
7674 | ||
7675 | fi | |
ec6a6fbe AK |
7676 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7677 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7678 | |
7679 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7680 | ||
7681 | cat >>confdefs.h <<_ACEOF | |
7682 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7683 | _ACEOF | |
7684 | ||
7685 | ||
7686 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7687 | case " $LIBOBJS " in |
8a2fc586 | 7688 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7689 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7690 | ;; | |
8a2fc586 AK |
7691 | esac |
7692 | ||
ad6254c5 AK |
7693 | fi |
7694 | ||
ec6a6fbe AK |
7695 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7696 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7697 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7698 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7699 | else |
7700 | if test "$cross_compiling" = yes; then | |
7701 | ac_cv_func_lstat_empty_string_bug=yes | |
7702 | else | |
7703 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7704 | /* confdefs.h. */ |
7705 | _ACEOF | |
7706 | cat confdefs.h >>conftest.$ac_ext | |
7707 | cat >>conftest.$ac_ext <<_ACEOF | |
7708 | /* end confdefs.h. */ | |
7709 | $ac_includes_default | |
7710 | int | |
7711 | main () | |
7712 | { | |
7713 | struct stat sbuf; | |
7a197a62 | 7714 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7715 | ; |
7716 | return 0; | |
7717 | } | |
7718 | _ACEOF | |
7719 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7720 | if { (ac_try="$ac_link" |
7721 | case "(($ac_try" in | |
7722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7723 | *) ac_try_echo=$ac_try;; | |
7724 | esac | |
ec6a6fbe AK |
7725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7726 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7727 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7728 | ac_status=$? |
ec6a6fbe | 7729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7731 | { (case "(($ac_try" in |
7732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7733 | *) ac_try_echo=$ac_try;; | |
7734 | esac | |
ec6a6fbe AK |
7735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7736 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7737 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7738 | ac_status=$? |
ec6a6fbe | 7739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7740 | (exit $ac_status); }; }; then |
7a197a62 | 7741 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7742 | else |
ec6a6fbe AK |
7743 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7744 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7745 | sed 's/^/| /' conftest.$ac_ext >&5 |
7746 | ||
7747 | ( exit $ac_status ) | |
7a197a62 | 7748 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7749 | fi |
ec6a6fbe | 7750 | rm -rf conftest.dSYM |
7a197a62 | 7751 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7752 | fi |
7a197a62 AK |
7753 | |
7754 | ||
ad6254c5 | 7755 | fi |
ec6a6fbe AK |
7756 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7757 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7758 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7759 | case " $LIBOBJS " in |
8a2fc586 | 7760 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7761 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7762 | ;; | |
8a2fc586 AK |
7763 | esac |
7764 | ||
ad6254c5 AK |
7765 | |
7766 | cat >>confdefs.h <<_ACEOF | |
7767 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7768 | _ACEOF | |
7769 | ||
7770 | fi | |
7771 | ||
7772 | ||
7773 | for ac_header in stdlib.h | |
7774 | do | |
ec6a6fbe | 7775 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7776 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7777 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7778 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7780 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7781 | fi |
ec6a6fbe AK |
7782 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7783 | $as_echo "$as_val"'` | |
7784 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7785 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7786 | else |
7787 | # Is the header compilable? | |
ec6a6fbe AK |
7788 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7789 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7790 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7791 | /* confdefs.h. */ |
7792 | _ACEOF | |
7793 | cat confdefs.h >>conftest.$ac_ext | |
7794 | cat >>conftest.$ac_ext <<_ACEOF | |
7795 | /* end confdefs.h. */ | |
7796 | $ac_includes_default | |
7797 | #include <$ac_header> | |
7798 | _ACEOF | |
7799 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7800 | if { (ac_try="$ac_compile" |
7801 | case "(($ac_try" in | |
7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7803 | *) ac_try_echo=$ac_try;; | |
7804 | esac | |
ec6a6fbe AK |
7805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7806 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7807 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7808 | ac_status=$? |
8a2fc586 AK |
7809 | grep -v '^ *+' conftest.er1 >conftest.err |
7810 | rm -f conftest.er1 | |
7811 | cat conftest.err >&5 | |
ec6a6fbe | 7812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7813 | (exit $ac_status); } && { |
7814 | test -z "$ac_c_werror_flag" || | |
7815 | test ! -s conftest.err | |
7816 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7817 | ac_header_compiler=yes |
7818 | else | |
ec6a6fbe | 7819 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7820 | sed 's/^/| /' conftest.$ac_ext >&5 |
7821 | ||
7a197a62 | 7822 | ac_header_compiler=no |
ad6254c5 | 7823 | fi |
7a197a62 AK |
7824 | |
7825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7826 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7827 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7828 | |
7829 | # Is the header present? | |
ec6a6fbe AK |
7830 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7831 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7832 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7833 | /* confdefs.h. */ |
7834 | _ACEOF | |
7835 | cat confdefs.h >>conftest.$ac_ext | |
7836 | cat >>conftest.$ac_ext <<_ACEOF | |
7837 | /* end confdefs.h. */ | |
7838 | #include <$ac_header> | |
7839 | _ACEOF | |
7a197a62 AK |
7840 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7841 | case "(($ac_try" in | |
7842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7843 | *) ac_try_echo=$ac_try;; | |
7844 | esac | |
ec6a6fbe AK |
7845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7846 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7847 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7848 | ac_status=$? |
7849 | grep -v '^ *+' conftest.er1 >conftest.err | |
7850 | rm -f conftest.er1 | |
7851 | cat conftest.err >&5 | |
ec6a6fbe | 7852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7853 | (exit $ac_status); } >/dev/null && { |
7854 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7855 | test ! -s conftest.err | |
7856 | }; then | |
ad6254c5 AK |
7857 | ac_header_preproc=yes |
7858 | else | |
ec6a6fbe | 7859 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7860 | sed 's/^/| /' conftest.$ac_ext >&5 |
7861 | ||
7862 | ac_header_preproc=no | |
7863 | fi | |
7a197a62 | 7864 | |
ad6254c5 | 7865 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7866 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7867 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7868 | |
7869 | # So? What about this header? | |
8a2fc586 AK |
7870 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7871 | yes:no: ) | |
ec6a6fbe AK |
7872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7873 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7875 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7876 | ac_header_preproc=yes |
ad6254c5 | 7877 | ;; |
8a2fc586 | 7878 | no:yes:* ) |
ec6a6fbe AK |
7879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7880 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7882 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7884 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7886 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7887 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7888 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7889 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7890 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7891 | |
ad6254c5 AK |
7892 | ;; |
7893 | esac | |
ec6a6fbe AK |
7894 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7895 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7896 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7897 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7898 | else |
8a2fc586 | 7899 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7900 | fi |
ec6a6fbe AK |
7901 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7902 | $as_echo "$as_val"'` | |
7903 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7904 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7905 | |
7906 | fi | |
ec6a6fbe AK |
7907 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7908 | $as_echo "$as_val"'` | |
7909 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7910 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7911 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7912 | _ACEOF |
7913 | ||
7914 | fi | |
7915 | ||
7916 | done | |
7917 | ||
ec6a6fbe AK |
7918 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7919 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7920 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7921 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7922 | else |
7923 | if test "$cross_compiling" = yes; then | |
7924 | ac_cv_func_malloc_0_nonnull=no | |
7925 | else | |
7926 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7927 | /* confdefs.h. */ |
7928 | _ACEOF | |
7929 | cat confdefs.h >>conftest.$ac_ext | |
7930 | cat >>conftest.$ac_ext <<_ACEOF | |
7931 | /* end confdefs.h. */ | |
25fbec5b | 7932 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7933 | # include <stdlib.h> |
7934 | #else | |
7935 | char *malloc (); | |
7936 | #endif | |
7937 | ||
7938 | int | |
7939 | main () | |
7940 | { | |
7a197a62 | 7941 | return ! malloc (0); |
ad6254c5 AK |
7942 | ; |
7943 | return 0; | |
7944 | } | |
7945 | _ACEOF | |
7946 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7947 | if { (ac_try="$ac_link" |
7948 | case "(($ac_try" in | |
7949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7950 | *) ac_try_echo=$ac_try;; | |
7951 | esac | |
ec6a6fbe AK |
7952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7953 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7954 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7955 | ac_status=$? |
ec6a6fbe | 7956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7957 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7958 | { (case "(($ac_try" in |
7959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7960 | *) ac_try_echo=$ac_try;; | |
7961 | esac | |
ec6a6fbe AK |
7962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7963 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7964 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7965 | ac_status=$? |
ec6a6fbe | 7966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7967 | (exit $ac_status); }; }; then |
7968 | ac_cv_func_malloc_0_nonnull=yes | |
7969 | else | |
ec6a6fbe AK |
7970 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7971 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7972 | sed 's/^/| /' conftest.$ac_ext >&5 |
7973 | ||
7974 | ( exit $ac_status ) | |
7975 | ac_cv_func_malloc_0_nonnull=no | |
7976 | fi | |
ec6a6fbe | 7977 | rm -rf conftest.dSYM |
7a197a62 | 7978 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7979 | fi |
7a197a62 AK |
7980 | |
7981 | ||
ad6254c5 | 7982 | fi |
ec6a6fbe AK |
7983 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7984 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7985 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7986 | ||
7987 | cat >>confdefs.h <<\_ACEOF | |
7988 | #define HAVE_MALLOC 1 | |
7989 | _ACEOF | |
7990 | ||
7991 | else | |
7992 | cat >>confdefs.h <<\_ACEOF | |
7993 | #define HAVE_MALLOC 0 | |
7994 | _ACEOF | |
7995 | ||
7a197a62 | 7996 | case " $LIBOBJS " in |
8a2fc586 | 7997 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7998 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7999 | ;; | |
8a2fc586 AK |
8000 | esac |
8001 | ||
ad6254c5 AK |
8002 | |
8003 | cat >>confdefs.h <<\_ACEOF | |
8004 | #define malloc rpl_malloc | |
8005 | _ACEOF | |
8006 | ||
8007 | fi | |
8008 | ||
8009 | ||
8010 | ||
ec6a6fbe AK |
8011 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
8012 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 8013 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 8014 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8015 | else |
8016 | if test "$cross_compiling" = yes; then | |
8017 | ac_cv_func_memcmp_working=no | |
8018 | else | |
8019 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8020 | /* confdefs.h. */ |
8021 | _ACEOF | |
8022 | cat confdefs.h >>conftest.$ac_ext | |
8023 | cat >>conftest.$ac_ext <<_ACEOF | |
8024 | /* end confdefs.h. */ | |
8a2fc586 | 8025 | $ac_includes_default |
ad6254c5 AK |
8026 | int |
8027 | main () | |
8028 | { | |
8029 | ||
8030 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 8031 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 8032 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 8033 | return 1; |
ad6254c5 AK |
8034 | |
8035 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8036 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8037 | William Lewis provided this test program. */ | |
8038 | { | |
8039 | char foo[21]; | |
8040 | char bar[21]; | |
8041 | int i; | |
8042 | for (i = 0; i < 4; i++) | |
8043 | { | |
8a2fc586 AK |
8044 | char *a = foo + i; |
8045 | char *b = bar + i; | |
8046 | strcpy (a, "--------01111111"); | |
8047 | strcpy (b, "--------10000000"); | |
8048 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 8049 | return 1; |
ad6254c5 | 8050 | } |
7a197a62 | 8051 | return 0; |
ad6254c5 AK |
8052 | } |
8053 | ||
8054 | ; | |
8055 | return 0; | |
8056 | } | |
8057 | _ACEOF | |
8058 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8059 | if { (ac_try="$ac_link" |
8060 | case "(($ac_try" in | |
8061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8062 | *) ac_try_echo=$ac_try;; | |
8063 | esac | |
ec6a6fbe AK |
8064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8065 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8066 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8067 | ac_status=$? |
ec6a6fbe | 8068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8070 | { (case "(($ac_try" in |
8071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8072 | *) ac_try_echo=$ac_try;; | |
8073 | esac | |
ec6a6fbe AK |
8074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8075 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8076 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8077 | ac_status=$? |
ec6a6fbe | 8078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8079 | (exit $ac_status); }; }; then |
8080 | ac_cv_func_memcmp_working=yes | |
8081 | else | |
ec6a6fbe AK |
8082 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8083 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8084 | sed 's/^/| /' conftest.$ac_ext >&5 |
8085 | ||
8086 | ( exit $ac_status ) | |
8087 | ac_cv_func_memcmp_working=no | |
8088 | fi | |
ec6a6fbe | 8089 | rm -rf conftest.dSYM |
7a197a62 | 8090 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8091 | fi |
7a197a62 AK |
8092 | |
8093 | ||
ad6254c5 | 8094 | fi |
ec6a6fbe AK |
8095 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
8096 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 8097 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 8098 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
8099 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8100 | ;; | |
8a2fc586 AK |
8101 | esac |
8102 | ||
ad6254c5 AK |
8103 | |
8104 | ||
8105 | ||
8106 | for ac_header in stdlib.h unistd.h | |
8107 | do | |
ec6a6fbe | 8108 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8109 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8110 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8111 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8112 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8113 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8114 | fi |
ec6a6fbe AK |
8115 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8116 | $as_echo "$as_val"'` | |
8117 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8118 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8119 | else |
8120 | # Is the header compilable? | |
ec6a6fbe AK |
8121 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8122 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8123 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8124 | /* confdefs.h. */ |
8125 | _ACEOF | |
8126 | cat confdefs.h >>conftest.$ac_ext | |
8127 | cat >>conftest.$ac_ext <<_ACEOF | |
8128 | /* end confdefs.h. */ | |
8129 | $ac_includes_default | |
8130 | #include <$ac_header> | |
8131 | _ACEOF | |
8132 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8133 | if { (ac_try="$ac_compile" |
8134 | case "(($ac_try" in | |
8135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8136 | *) ac_try_echo=$ac_try;; | |
8137 | esac | |
ec6a6fbe AK |
8138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8139 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8140 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8141 | ac_status=$? |
8a2fc586 AK |
8142 | grep -v '^ *+' conftest.er1 >conftest.err |
8143 | rm -f conftest.er1 | |
8144 | cat conftest.err >&5 | |
ec6a6fbe | 8145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8146 | (exit $ac_status); } && { |
8147 | test -z "$ac_c_werror_flag" || | |
8148 | test ! -s conftest.err | |
8149 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8150 | ac_header_compiler=yes |
8151 | else | |
ec6a6fbe | 8152 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8153 | sed 's/^/| /' conftest.$ac_ext >&5 |
8154 | ||
7a197a62 | 8155 | ac_header_compiler=no |
ad6254c5 | 8156 | fi |
7a197a62 AK |
8157 | |
8158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8159 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8160 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8161 | |
8162 | # Is the header present? | |
ec6a6fbe AK |
8163 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8164 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8165 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8166 | /* confdefs.h. */ |
8167 | _ACEOF | |
8168 | cat confdefs.h >>conftest.$ac_ext | |
8169 | cat >>conftest.$ac_ext <<_ACEOF | |
8170 | /* end confdefs.h. */ | |
8171 | #include <$ac_header> | |
8172 | _ACEOF | |
7a197a62 AK |
8173 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8174 | case "(($ac_try" in | |
8175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8176 | *) ac_try_echo=$ac_try;; | |
8177 | esac | |
ec6a6fbe AK |
8178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8179 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8180 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8181 | ac_status=$? |
8182 | grep -v '^ *+' conftest.er1 >conftest.err | |
8183 | rm -f conftest.er1 | |
8184 | cat conftest.err >&5 | |
ec6a6fbe | 8185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8186 | (exit $ac_status); } >/dev/null && { |
8187 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8188 | test ! -s conftest.err | |
8189 | }; then | |
ad6254c5 AK |
8190 | ac_header_preproc=yes |
8191 | else | |
ec6a6fbe | 8192 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8193 | sed 's/^/| /' conftest.$ac_ext >&5 |
8194 | ||
8195 | ac_header_preproc=no | |
8196 | fi | |
7a197a62 | 8197 | |
ad6254c5 | 8198 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8199 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8200 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8201 | |
8202 | # So? What about this header? | |
8a2fc586 AK |
8203 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8204 | yes:no: ) | |
ec6a6fbe AK |
8205 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8206 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8207 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8208 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8209 | ac_header_preproc=yes |
ad6254c5 | 8210 | ;; |
8a2fc586 | 8211 | no:yes:* ) |
ec6a6fbe AK |
8212 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8213 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8215 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8216 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8217 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8218 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8219 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8220 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8221 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8222 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8223 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8224 | |
ad6254c5 AK |
8225 | ;; |
8226 | esac | |
ec6a6fbe AK |
8227 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8228 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8229 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8230 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8231 | else |
8a2fc586 | 8232 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8233 | fi |
ec6a6fbe AK |
8234 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8235 | $as_echo "$as_val"'` | |
8236 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8237 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8238 | |
8239 | fi | |
ec6a6fbe AK |
8240 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8241 | $as_echo "$as_val"'` | |
8242 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8243 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8244 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8245 | _ACEOF |
8246 | ||
8247 | fi | |
8248 | ||
8249 | done | |
8250 | ||
8251 | ||
8252 | for ac_func in getpagesize | |
8253 | do | |
ec6a6fbe AK |
8254 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8255 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8256 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8257 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8258 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8259 | else |
8260 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8261 | /* confdefs.h. */ |
8262 | _ACEOF | |
8263 | cat confdefs.h >>conftest.$ac_ext | |
8264 | cat >>conftest.$ac_ext <<_ACEOF | |
8265 | /* end confdefs.h. */ | |
8a2fc586 AK |
8266 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8267 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8268 | #define $ac_func innocuous_$ac_func | |
8269 | ||
ad6254c5 AK |
8270 | /* System header to define __stub macros and hopefully few prototypes, |
8271 | which can conflict with char $ac_func (); below. | |
8272 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8273 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8274 | |
ad6254c5 AK |
8275 | #ifdef __STDC__ |
8276 | # include <limits.h> | |
8277 | #else | |
8278 | # include <assert.h> | |
8279 | #endif | |
8a2fc586 AK |
8280 | |
8281 | #undef $ac_func | |
8282 | ||
7a197a62 AK |
8283 | /* Override any GCC internal prototype to avoid an error. |
8284 | Use char because int might match the return type of a GCC | |
8285 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8286 | #ifdef __cplusplus |
8287 | extern "C" | |
ad6254c5 | 8288 | #endif |
ad6254c5 AK |
8289 | char $ac_func (); |
8290 | /* The GNU C library defines this for functions which it implements | |
8291 | to always fail with ENOSYS. Some functions are actually named | |
8292 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8293 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8294 | choke me |
ad6254c5 AK |
8295 | #endif |
8296 | ||
8297 | int | |
8298 | main () | |
8299 | { | |
7a197a62 | 8300 | return $ac_func (); |
ad6254c5 AK |
8301 | ; |
8302 | return 0; | |
8303 | } | |
8304 | _ACEOF | |
8305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8306 | if { (ac_try="$ac_link" |
8307 | case "(($ac_try" in | |
8308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8309 | *) ac_try_echo=$ac_try;; | |
8310 | esac | |
ec6a6fbe AK |
8311 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8312 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8313 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8314 | ac_status=$? |
8a2fc586 AK |
8315 | grep -v '^ *+' conftest.er1 >conftest.err |
8316 | rm -f conftest.er1 | |
8317 | cat conftest.err >&5 | |
ec6a6fbe | 8318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8319 | (exit $ac_status); } && { |
8320 | test -z "$ac_c_werror_flag" || | |
8321 | test ! -s conftest.err | |
ec6a6fbe AK |
8322 | } && test -s conftest$ac_exeext && { |
8323 | test "$cross_compiling" = yes || | |
8324 | $as_test_x conftest$ac_exeext | |
8325 | }; then | |
ad6254c5 AK |
8326 | eval "$as_ac_var=yes" |
8327 | else | |
ec6a6fbe | 8328 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8329 | sed 's/^/| /' conftest.$ac_ext >&5 |
8330 | ||
7a197a62 | 8331 | eval "$as_ac_var=no" |
ad6254c5 | 8332 | fi |
7a197a62 | 8333 | |
ec6a6fbe | 8334 | rm -rf conftest.dSYM |
25fbec5b | 8335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8336 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8337 | fi |
ec6a6fbe AK |
8338 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8339 | $as_echo "$as_val"'` | |
8340 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8341 | $as_echo "$ac_res" >&6; } | |
8342 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8343 | $as_echo "$as_val"'` | |
8344 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8345 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8346 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8347 | _ACEOF |
8348 | ||
8349 | fi | |
8350 | done | |
8351 | ||
ec6a6fbe AK |
8352 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8353 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8354 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8355 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8356 | else |
8357 | if test "$cross_compiling" = yes; then | |
8358 | ac_cv_func_mmap_fixed_mapped=no | |
8359 | else | |
8360 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8361 | /* confdefs.h. */ |
8362 | _ACEOF | |
8363 | cat confdefs.h >>conftest.$ac_ext | |
8364 | cat >>conftest.$ac_ext <<_ACEOF | |
8365 | /* end confdefs.h. */ | |
8366 | $ac_includes_default | |
8367 | /* malloc might have been renamed as rpl_malloc. */ | |
8368 | #undef malloc | |
8369 | ||
8370 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8371 | Here is a matrix of mmap possibilities: | |
8372 | mmap private not fixed | |
8373 | mmap private fixed at somewhere currently unmapped | |
8374 | mmap private fixed at somewhere already mapped | |
8375 | mmap shared not fixed | |
8376 | mmap shared fixed at somewhere currently unmapped | |
8377 | mmap shared fixed at somewhere already mapped | |
8378 | For private mappings, we should verify that changes cannot be read() | |
8379 | back from the file, nor mmap's back from the file at a different | |
8380 | address. (There have been systems where private was not correctly | |
8381 | implemented like the infamous i386 svr4.0, and systems where the | |
8382 | VM page cache was not coherent with the file system buffer cache | |
8383 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8384 | For shared mappings, we should conversely verify that changes get | |
8385 | propagated back to all the places they're supposed to be. | |
8386 | ||
8387 | Grep wants private fixed already mapped. | |
8388 | The main things grep needs to know about mmap are: | |
8389 | * does it exist and is it safe to write into the mmap'd area | |
8390 | * how to use it (BSD variants) */ | |
8391 | ||
8392 | #include <fcntl.h> | |
8393 | #include <sys/mman.h> | |
8394 | ||
25fbec5b | 8395 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8396 | char *malloc (); |
8397 | #endif | |
8398 | ||
8399 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8400 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8401 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8402 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8403 | # define HAVE_SYS_PARAM_H 1 |
8404 | # endif | |
8405 | ||
8406 | # ifdef _SC_PAGESIZE | |
8407 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8408 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8409 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8410 | # include <sys/param.h> |
8411 | # ifdef EXEC_PAGESIZE | |
8412 | # define getpagesize() EXEC_PAGESIZE | |
8413 | # else /* no EXEC_PAGESIZE */ | |
8414 | # ifdef NBPG | |
8415 | # define getpagesize() NBPG * CLSIZE | |
8416 | # ifndef CLSIZE | |
8417 | # define CLSIZE 1 | |
8418 | # endif /* no CLSIZE */ | |
8419 | # else /* no NBPG */ | |
8420 | # ifdef NBPC | |
8421 | # define getpagesize() NBPC | |
8422 | # else /* no NBPC */ | |
8423 | # ifdef PAGESIZE | |
8424 | # define getpagesize() PAGESIZE | |
8425 | # endif /* PAGESIZE */ | |
8426 | # endif /* no NBPC */ | |
8427 | # endif /* no NBPG */ | |
8428 | # endif /* no EXEC_PAGESIZE */ | |
8429 | # else /* no HAVE_SYS_PARAM_H */ | |
8430 | # define getpagesize() 8192 /* punt totally */ | |
8431 | # endif /* no HAVE_SYS_PARAM_H */ | |
8432 | # endif /* no _SC_PAGESIZE */ | |
8433 | ||
8434 | #endif /* no HAVE_GETPAGESIZE */ | |
8435 | ||
8436 | int | |
8437 | main () | |
8438 | { | |
8439 | char *data, *data2, *data3; | |
8440 | int i, pagesize; | |
8441 | int fd; | |
8442 | ||
8443 | pagesize = getpagesize (); | |
8444 | ||
8445 | /* First, make a file with some known garbage in it. */ | |
8446 | data = (char *) malloc (pagesize); | |
8447 | if (!data) | |
7a197a62 | 8448 | return 1; |
ad6254c5 AK |
8449 | for (i = 0; i < pagesize; ++i) |
8450 | *(data + i) = rand (); | |
8451 | umask (0); | |
8452 | fd = creat ("conftest.mmap", 0600); | |
8453 | if (fd < 0) | |
7a197a62 | 8454 | return 1; |
ad6254c5 | 8455 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8456 | return 1; |
ad6254c5 AK |
8457 | close (fd); |
8458 | ||
8459 | /* Next, try to mmap the file at a fixed address which already has | |
8460 | something else allocated at it. If we can, also make sure that | |
8461 | we see the same garbage. */ | |
8462 | fd = open ("conftest.mmap", O_RDWR); | |
8463 | if (fd < 0) | |
7a197a62 | 8464 | return 1; |
ad6254c5 AK |
8465 | data2 = (char *) malloc (2 * pagesize); |
8466 | if (!data2) | |
7a197a62 AK |
8467 | return 1; |
8468 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8469 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8470 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8471 | return 1; |
ad6254c5 AK |
8472 | for (i = 0; i < pagesize; ++i) |
8473 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8474 | return 1; |
ad6254c5 AK |
8475 | |
8476 | /* Finally, make sure that changes to the mapped area do not | |
8477 | percolate back to the file as seen by read(). (This is a bug on | |
8478 | some variants of i386 svr4.0.) */ | |
8479 | for (i = 0; i < pagesize; ++i) | |
8480 | *(data2 + i) = *(data2 + i) + 1; | |
8481 | data3 = (char *) malloc (pagesize); | |
8482 | if (!data3) | |
7a197a62 | 8483 | return 1; |
ad6254c5 | 8484 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8485 | return 1; |
ad6254c5 AK |
8486 | for (i = 0; i < pagesize; ++i) |
8487 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8488 | return 1; |
ad6254c5 | 8489 | close (fd); |
7a197a62 | 8490 | return 0; |
ad6254c5 AK |
8491 | } |
8492 | _ACEOF | |
8493 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8494 | if { (ac_try="$ac_link" |
8495 | case "(($ac_try" in | |
8496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8497 | *) ac_try_echo=$ac_try;; | |
8498 | esac | |
ec6a6fbe AK |
8499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8500 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8501 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8502 | ac_status=$? |
ec6a6fbe | 8503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8504 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8505 | { (case "(($ac_try" in |
8506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8507 | *) ac_try_echo=$ac_try;; | |
8508 | esac | |
ec6a6fbe AK |
8509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8510 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8511 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8512 | ac_status=$? |
ec6a6fbe | 8513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8514 | (exit $ac_status); }; }; then |
8515 | ac_cv_func_mmap_fixed_mapped=yes | |
8516 | else | |
ec6a6fbe AK |
8517 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8518 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8519 | sed 's/^/| /' conftest.$ac_ext >&5 |
8520 | ||
8521 | ( exit $ac_status ) | |
8522 | ac_cv_func_mmap_fixed_mapped=no | |
8523 | fi | |
ec6a6fbe | 8524 | rm -rf conftest.dSYM |
7a197a62 | 8525 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8526 | fi |
7a197a62 AK |
8527 | |
8528 | ||
ad6254c5 | 8529 | fi |
ec6a6fbe AK |
8530 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8531 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8532 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8533 | ||
8534 | cat >>confdefs.h <<\_ACEOF | |
8535 | #define HAVE_MMAP 1 | |
8536 | _ACEOF | |
8537 | ||
8538 | fi | |
8539 | rm -f conftest.mmap | |
8540 | ||
ec6a6fbe AK |
8541 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8542 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8543 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8544 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8545 | else |
8546 | if test "$cross_compiling" = yes; then | |
8547 | ac_cv_func_stat_empty_string_bug=yes | |
8548 | else | |
8549 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8550 | /* confdefs.h. */ |
8551 | _ACEOF | |
8552 | cat confdefs.h >>conftest.$ac_ext | |
8553 | cat >>conftest.$ac_ext <<_ACEOF | |
8554 | /* end confdefs.h. */ | |
8555 | $ac_includes_default | |
8556 | int | |
8557 | main () | |
8558 | { | |
8559 | struct stat sbuf; | |
7a197a62 | 8560 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8561 | ; |
8562 | return 0; | |
8563 | } | |
8564 | _ACEOF | |
8565 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8566 | if { (ac_try="$ac_link" |
8567 | case "(($ac_try" in | |
8568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8569 | *) ac_try_echo=$ac_try;; | |
8570 | esac | |
ec6a6fbe AK |
8571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8572 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8573 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8574 | ac_status=$? |
ec6a6fbe | 8575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8576 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8577 | { (case "(($ac_try" in |
8578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8579 | *) ac_try_echo=$ac_try;; | |
8580 | esac | |
ec6a6fbe AK |
8581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8582 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8583 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8584 | ac_status=$? |
ec6a6fbe | 8585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8586 | (exit $ac_status); }; }; then |
7a197a62 | 8587 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8588 | else |
ec6a6fbe AK |
8589 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8590 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8591 | sed 's/^/| /' conftest.$ac_ext >&5 |
8592 | ||
8593 | ( exit $ac_status ) | |
7a197a62 | 8594 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8595 | fi |
ec6a6fbe | 8596 | rm -rf conftest.dSYM |
7a197a62 | 8597 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8598 | fi |
7a197a62 AK |
8599 | |
8600 | ||
ad6254c5 | 8601 | fi |
ec6a6fbe AK |
8602 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8603 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8604 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8605 | case " $LIBOBJS " in |
8a2fc586 | 8606 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8607 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8608 | ;; | |
8a2fc586 AK |
8609 | esac |
8610 | ||
ad6254c5 AK |
8611 | |
8612 | cat >>confdefs.h <<_ACEOF | |
8613 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8614 | _ACEOF | |
8615 | ||
8616 | fi | |
8617 | ||
ec6a6fbe AK |
8618 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8619 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8620 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8621 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8622 | else |
8623 | if test "$cross_compiling" = yes; then | |
8624 | ac_cv_func_strtod=no | |
8625 | else | |
8626 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8627 | /* confdefs.h. */ |
8628 | _ACEOF | |
8629 | cat confdefs.h >>conftest.$ac_ext | |
8630 | cat >>conftest.$ac_ext <<_ACEOF | |
8631 | /* end confdefs.h. */ | |
8632 | ||
7a197a62 AK |
8633 | $ac_includes_default |
8634 | #ifndef strtod | |
ad6254c5 | 8635 | double strtod (); |
7a197a62 | 8636 | #endif |
ad6254c5 AK |
8637 | int |
8638 | main() | |
8639 | { | |
8640 | { | |
8641 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8642 | char *string = " +69"; | |
8643 | char *term; | |
8644 | double value; | |
8645 | value = strtod (string, &term); | |
8646 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8647 | return 1; |
ad6254c5 AK |
8648 | } |
8649 | ||
8650 | { | |
8651 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8652 | terminating character under some conditions. */ | |
8653 | char *string = "NaN"; | |
8654 | char *term; | |
8655 | strtod (string, &term); | |
8656 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8657 | return 1; |
ad6254c5 | 8658 | } |
7a197a62 | 8659 | return 0; |
ad6254c5 AK |
8660 | } |
8661 | ||
8662 | _ACEOF | |
8663 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8664 | if { (ac_try="$ac_link" |
8665 | case "(($ac_try" in | |
8666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8667 | *) ac_try_echo=$ac_try;; | |
8668 | esac | |
ec6a6fbe AK |
8669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8670 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8671 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8672 | ac_status=$? |
ec6a6fbe | 8673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8675 | { (case "(($ac_try" in |
8676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8677 | *) ac_try_echo=$ac_try;; | |
8678 | esac | |
ec6a6fbe AK |
8679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8680 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8681 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8682 | ac_status=$? |
ec6a6fbe | 8683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8684 | (exit $ac_status); }; }; then |
8685 | ac_cv_func_strtod=yes | |
8686 | else | |
ec6a6fbe AK |
8687 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8688 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8689 | sed 's/^/| /' conftest.$ac_ext >&5 |
8690 | ||
8691 | ( exit $ac_status ) | |
8692 | ac_cv_func_strtod=no | |
8693 | fi | |
ec6a6fbe | 8694 | rm -rf conftest.dSYM |
7a197a62 | 8695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8696 | fi |
7a197a62 AK |
8697 | |
8698 | ||
ad6254c5 | 8699 | fi |
ec6a6fbe AK |
8700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8701 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8702 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8703 | case " $LIBOBJS " in |
8a2fc586 | 8704 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8705 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8706 | ;; | |
8a2fc586 AK |
8707 | esac |
8708 | ||
ec6a6fbe AK |
8709 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8710 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8711 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8712 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8713 | else |
8714 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8715 | /* confdefs.h. */ |
8716 | _ACEOF | |
8717 | cat confdefs.h >>conftest.$ac_ext | |
8718 | cat >>conftest.$ac_ext <<_ACEOF | |
8719 | /* end confdefs.h. */ | |
8a2fc586 AK |
8720 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8722 | #define pow innocuous_pow | |
8723 | ||
ad6254c5 AK |
8724 | /* System header to define __stub macros and hopefully few prototypes, |
8725 | which can conflict with char pow (); below. | |
8726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8727 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8728 | |
ad6254c5 AK |
8729 | #ifdef __STDC__ |
8730 | # include <limits.h> | |
8731 | #else | |
8732 | # include <assert.h> | |
8733 | #endif | |
8a2fc586 AK |
8734 | |
8735 | #undef pow | |
8736 | ||
7a197a62 AK |
8737 | /* Override any GCC internal prototype to avoid an error. |
8738 | Use char because int might match the return type of a GCC | |
8739 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8740 | #ifdef __cplusplus |
8741 | extern "C" | |
ad6254c5 | 8742 | #endif |
ad6254c5 AK |
8743 | char pow (); |
8744 | /* The GNU C library defines this for functions which it implements | |
8745 | to always fail with ENOSYS. Some functions are actually named | |
8746 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8747 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8748 | choke me |
ad6254c5 AK |
8749 | #endif |
8750 | ||
8751 | int | |
8752 | main () | |
8753 | { | |
7a197a62 | 8754 | return pow (); |
ad6254c5 AK |
8755 | ; |
8756 | return 0; | |
8757 | } | |
8758 | _ACEOF | |
8759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8760 | if { (ac_try="$ac_link" |
8761 | case "(($ac_try" in | |
8762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8763 | *) ac_try_echo=$ac_try;; | |
8764 | esac | |
ec6a6fbe AK |
8765 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8766 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8767 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8768 | ac_status=$? |
8a2fc586 AK |
8769 | grep -v '^ *+' conftest.er1 >conftest.err |
8770 | rm -f conftest.er1 | |
8771 | cat conftest.err >&5 | |
ec6a6fbe | 8772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8773 | (exit $ac_status); } && { |
8774 | test -z "$ac_c_werror_flag" || | |
8775 | test ! -s conftest.err | |
ec6a6fbe AK |
8776 | } && test -s conftest$ac_exeext && { |
8777 | test "$cross_compiling" = yes || | |
8778 | $as_test_x conftest$ac_exeext | |
8779 | }; then | |
ad6254c5 AK |
8780 | ac_cv_func_pow=yes |
8781 | else | |
ec6a6fbe | 8782 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8783 | sed 's/^/| /' conftest.$ac_ext >&5 |
8784 | ||
7a197a62 | 8785 | ac_cv_func_pow=no |
ad6254c5 | 8786 | fi |
7a197a62 | 8787 | |
ec6a6fbe | 8788 | rm -rf conftest.dSYM |
25fbec5b | 8789 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8790 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8791 | fi |
ec6a6fbe AK |
8792 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8793 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8794 | |
8795 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8796 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8797 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8798 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8799 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8800 | else |
8801 | ac_check_lib_save_LIBS=$LIBS | |
8802 | LIBS="-lm $LIBS" | |
8803 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8804 | /* confdefs.h. */ |
8805 | _ACEOF | |
8806 | cat confdefs.h >>conftest.$ac_ext | |
8807 | cat >>conftest.$ac_ext <<_ACEOF | |
8808 | /* end confdefs.h. */ | |
8809 | ||
7a197a62 AK |
8810 | /* Override any GCC internal prototype to avoid an error. |
8811 | Use char because int might match the return type of a GCC | |
8812 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8813 | #ifdef __cplusplus |
8814 | extern "C" | |
8815 | #endif | |
ad6254c5 AK |
8816 | char pow (); |
8817 | int | |
8818 | main () | |
8819 | { | |
7a197a62 | 8820 | return pow (); |
ad6254c5 AK |
8821 | ; |
8822 | return 0; | |
8823 | } | |
8824 | _ACEOF | |
8825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8826 | if { (ac_try="$ac_link" |
8827 | case "(($ac_try" in | |
8828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8829 | *) ac_try_echo=$ac_try;; | |
8830 | esac | |
ec6a6fbe AK |
8831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8832 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8833 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8834 | ac_status=$? |
8a2fc586 AK |
8835 | grep -v '^ *+' conftest.er1 >conftest.err |
8836 | rm -f conftest.er1 | |
8837 | cat conftest.err >&5 | |
ec6a6fbe | 8838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8839 | (exit $ac_status); } && { |
8840 | test -z "$ac_c_werror_flag" || | |
8841 | test ! -s conftest.err | |
ec6a6fbe AK |
8842 | } && test -s conftest$ac_exeext && { |
8843 | test "$cross_compiling" = yes || | |
8844 | $as_test_x conftest$ac_exeext | |
8845 | }; then | |
ad6254c5 AK |
8846 | ac_cv_lib_m_pow=yes |
8847 | else | |
ec6a6fbe | 8848 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8849 | sed 's/^/| /' conftest.$ac_ext >&5 |
8850 | ||
7a197a62 | 8851 | ac_cv_lib_m_pow=no |
ad6254c5 | 8852 | fi |
7a197a62 | 8853 | |
ec6a6fbe | 8854 | rm -rf conftest.dSYM |
25fbec5b | 8855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8856 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8857 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8858 | fi |
ec6a6fbe AK |
8859 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8860 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8861 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8862 | POW_LIB=-lm |
8863 | else | |
ec6a6fbe AK |
8864 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8865 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8866 | fi |
72b2cb61 | 8867 | |
d0191583 | 8868 | fi |
72b2cb61 | 8869 | |
ad6254c5 AK |
8870 | fi |
8871 | ||
ad6254c5 | 8872 | |
d0191583 JM |
8873 | for ac_func in vprintf |
8874 | do | |
ec6a6fbe AK |
8875 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8876 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8877 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8878 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8879 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8880 | else |
d0191583 JM |
8881 | cat >conftest.$ac_ext <<_ACEOF |
8882 | /* confdefs.h. */ | |
8883 | _ACEOF | |
8884 | cat confdefs.h >>conftest.$ac_ext | |
8885 | cat >>conftest.$ac_ext <<_ACEOF | |
8886 | /* end confdefs.h. */ | |
8887 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8889 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8890 | |
d0191583 JM |
8891 | /* System header to define __stub macros and hopefully few prototypes, |
8892 | which can conflict with char $ac_func (); below. | |
8893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8894 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8895 | |
d0191583 JM |
8896 | #ifdef __STDC__ |
8897 | # include <limits.h> | |
8898 | #else | |
8899 | # include <assert.h> | |
8900 | #endif | |
ad6254c5 | 8901 | |
d0191583 | 8902 | #undef $ac_func |
72b2cb61 | 8903 | |
d0191583 JM |
8904 | /* Override any GCC internal prototype to avoid an error. |
8905 | Use char because int might match the return type of a GCC | |
8906 | builtin and then its argument prototype would still apply. */ | |
8907 | #ifdef __cplusplus | |
8908 | extern "C" | |
8909 | #endif | |
8910 | char $ac_func (); | |
8911 | /* The GNU C library defines this for functions which it implements | |
8912 | to always fail with ENOSYS. Some functions are actually named | |
8913 | something starting with __ and the normal name is an alias. */ | |
8914 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8915 | choke me | |
8916 | #endif | |
8917 | ||
8918 | int | |
8919 | main () | |
8920 | { | |
8921 | return $ac_func (); | |
8922 | ; | |
8923 | return 0; | |
8924 | } | |
72b2cb61 | 8925 | _ACEOF |
d0191583 JM |
8926 | rm -f conftest.$ac_objext conftest$ac_exeext |
8927 | if { (ac_try="$ac_link" | |
8928 | case "(($ac_try" in | |
8929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8930 | *) ac_try_echo=$ac_try;; | |
8931 | esac | |
ec6a6fbe AK |
8932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8933 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8934 | (eval "$ac_link") 2>conftest.er1 |
8935 | ac_status=$? | |
8936 | grep -v '^ *+' conftest.er1 >conftest.err | |
8937 | rm -f conftest.er1 | |
8938 | cat conftest.err >&5 | |
ec6a6fbe | 8939 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8940 | (exit $ac_status); } && { |
8941 | test -z "$ac_c_werror_flag" || | |
8942 | test ! -s conftest.err | |
ec6a6fbe AK |
8943 | } && test -s conftest$ac_exeext && { |
8944 | test "$cross_compiling" = yes || | |
8945 | $as_test_x conftest$ac_exeext | |
8946 | }; then | |
d0191583 JM |
8947 | eval "$as_ac_var=yes" |
8948 | else | |
ec6a6fbe | 8949 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8950 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8951 | |
d0191583 | 8952 | eval "$as_ac_var=no" |
ad6254c5 AK |
8953 | fi |
8954 | ||
ec6a6fbe | 8955 | rm -rf conftest.dSYM |
d0191583 JM |
8956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8957 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8958 | fi |
ec6a6fbe AK |
8959 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8960 | $as_echo "$as_val"'` | |
8961 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8962 | $as_echo "$ac_res" >&6; } | |
8963 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8964 | $as_echo "$as_val"'` | |
8965 | if test "x$as_val" = x""yes; then | |
d0191583 | 8966 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8967 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8968 | _ACEOF |
7a197a62 | 8969 | |
ec6a6fbe AK |
8970 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8971 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8972 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8973 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8974 | else |
d0191583 JM |
8975 | cat >conftest.$ac_ext <<_ACEOF |
8976 | /* confdefs.h. */ | |
8977 | _ACEOF | |
8978 | cat confdefs.h >>conftest.$ac_ext | |
8979 | cat >>conftest.$ac_ext <<_ACEOF | |
8980 | /* end confdefs.h. */ | |
8981 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8982 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8983 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8984 | |
d0191583 JM |
8985 | /* System header to define __stub macros and hopefully few prototypes, |
8986 | which can conflict with char _doprnt (); below. | |
8987 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8988 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8989 | |
d0191583 JM |
8990 | #ifdef __STDC__ |
8991 | # include <limits.h> | |
8992 | #else | |
8993 | # include <assert.h> | |
8994 | #endif | |
72b2cb61 | 8995 | |
d0191583 JM |
8996 | #undef _doprnt |
8997 | ||
8998 | /* Override any GCC internal prototype to avoid an error. | |
8999 | Use char because int might match the return type of a GCC | |
9000 | builtin and then its argument prototype would still apply. */ | |
9001 | #ifdef __cplusplus | |
9002 | extern "C" | |
9003 | #endif | |
9004 | char _doprnt (); | |
9005 | /* The GNU C library defines this for functions which it implements | |
9006 | to always fail with ENOSYS. Some functions are actually named | |
9007 | something starting with __ and the normal name is an alias. */ | |
9008 | #if defined __stub__doprnt || defined __stub____doprnt | |
9009 | choke me | |
9010 | #endif | |
9011 | ||
9012 | int | |
9013 | main () | |
9014 | { | |
9015 | return _doprnt (); | |
9016 | ; | |
9017 | return 0; | |
9018 | } | |
72b2cb61 | 9019 | _ACEOF |
d0191583 JM |
9020 | rm -f conftest.$ac_objext conftest$ac_exeext |
9021 | if { (ac_try="$ac_link" | |
9022 | case "(($ac_try" in | |
9023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9024 | *) ac_try_echo=$ac_try;; | |
9025 | esac | |
ec6a6fbe AK |
9026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9027 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
9028 | (eval "$ac_link") 2>conftest.er1 |
9029 | ac_status=$? | |
9030 | grep -v '^ *+' conftest.er1 >conftest.err | |
9031 | rm -f conftest.er1 | |
9032 | cat conftest.err >&5 | |
ec6a6fbe | 9033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
9034 | (exit $ac_status); } && { |
9035 | test -z "$ac_c_werror_flag" || | |
9036 | test ! -s conftest.err | |
ec6a6fbe AK |
9037 | } && test -s conftest$ac_exeext && { |
9038 | test "$cross_compiling" = yes || | |
9039 | $as_test_x conftest$ac_exeext | |
9040 | }; then | |
d0191583 JM |
9041 | ac_cv_func__doprnt=yes |
9042 | else | |
ec6a6fbe | 9043 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 9044 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 9045 | |
d0191583 | 9046 | ac_cv_func__doprnt=no |
ad6254c5 AK |
9047 | fi |
9048 | ||
ec6a6fbe | 9049 | rm -rf conftest.dSYM |
d0191583 JM |
9050 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9051 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 9052 | fi |
ec6a6fbe AK |
9053 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9054 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
9055 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 9056 | |
d0191583 JM |
9057 | cat >>confdefs.h <<\_ACEOF |
9058 | #define HAVE_DOPRNT 1 | |
9059 | _ACEOF | |
ad6254c5 | 9060 | |
7a197a62 AK |
9061 | fi |
9062 | ||
d0191583 JM |
9063 | fi |
9064 | done | |
8b1a3214 | 9065 | |
ad6254c5 | 9066 | |
7a197a62 | 9067 | |
9c961554 | 9068 | ################################################################################ |
ec6a6fbe AK |
9069 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9070 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
9071 | # Check whether --enable-static_link was given. |
9072 | if test "${enable_static_link+set}" = set; then | |
9073 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9074 | else | |
9075 | STATIC_LINK=no | |
9076 | fi | |
9077 | ||
ec6a6fbe AK |
9078 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9079 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 9080 | |
d0191583 | 9081 | ################################################################################ |
ad6254c5 | 9082 | |
ad6254c5 AK |
9083 | |
9084 | ################################################################################ | |
ec6a6fbe AK |
9085 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
9086 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
9087 | |
9088 | # Check whether --with-user was given. | |
9089 | if test "${with_user+set}" = set; then | |
9090 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
9091 | fi |
9092 | ||
ec6a6fbe AK |
9093 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
9094 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 9095 | |
d0191583 | 9096 | if test x$OWNER != x; then |
23b059e7 | 9097 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
9098 | fi |
9099 | ||
9100 | ################################################################################ | |
ec6a6fbe AK |
9101 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
9102 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 9103 | |
d0191583 JM |
9104 | # Check whether --with-group was given. |
9105 | if test "${with_group+set}" = set; then | |
9106 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
9107 | fi |
9108 | ||
ec6a6fbe AK |
9109 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
9110 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
9111 | |
9112 | if test x$GROUP != x; then | |
23b059e7 | 9113 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 9114 | fi |
ad6254c5 | 9115 | |
24bbc4d7 | 9116 | ################################################################################ |
ec6a6fbe AK |
9117 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9118 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9119 | |
9120 | ||
9121 | # Check whether --with-device-uid was given. | |
9122 | if test "${with_device_uid+set}" = set; then | |
9123 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9124 | else | |
9125 | DM_DEVICE_UID="0" | |
9126 | fi | |
9127 | ||
ec6a6fbe AK |
9128 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9129 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9130 | |
9131 | ################################################################################ | |
ec6a6fbe AK |
9132 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9133 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9134 | |
9135 | ||
9136 | # Check whether --with-device-gid was given. | |
9137 | if test "${with_device_gid+set}" = set; then | |
9138 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9139 | else | |
9140 | DM_DEVICE_GID="0" | |
9141 | fi | |
9142 | ||
ec6a6fbe AK |
9143 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9144 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9145 | |
93bd259b | 9146 | ################################################################################ |
ec6a6fbe AK |
9147 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9148 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9149 | |
9150 | ||
9151 | # Check whether --with-device-mode was given. | |
9152 | if test "${with_device_mode+set}" = set; then | |
9153 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9154 | else | |
9155 | DM_DEVICE_MODE="0600" | |
9156 | fi | |
9157 | ||
ec6a6fbe AK |
9158 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9159 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9160 | |
ad6254c5 | 9161 | ################################################################################ |
ec6a6fbe AK |
9162 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9163 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9164 | # Check whether --enable-lvm1_fallback was given. |
9165 | if test "${enable_lvm1_fallback+set}" = set; then | |
9166 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9167 | else | |
9168 | LVM1_FALLBACK=no | |
7a197a62 AK |
9169 | fi |
9170 | ||
ec6a6fbe AK |
9171 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9172 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9173 | |
d0191583 | 9174 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9175 | |
9176 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9177 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9178 | _ACEOF |
9179 | ||
ad6254c5 AK |
9180 | fi |
9181 | ||
9182 | ################################################################################ | |
ec6a6fbe AK |
9183 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9184 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9185 | |
9186 | # Check whether --with-lvm1 was given. | |
9187 | if test "${with_lvm1+set}" = set; then | |
9188 | withval=$with_lvm1; LVM1="$withval" | |
9189 | else | |
9190 | LVM1="internal" | |
7a197a62 AK |
9191 | fi |
9192 | ||
ec6a6fbe AK |
9193 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9194 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9195 | |
d0191583 | 9196 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9197 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9198 | " >&5 |
ec6a6fbe | 9199 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9200 | " >&2;} |
9201 | { (exit 1); exit 1; }; } | |
9202 | fi; | |
9203 | ||
9204 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9205 | |
9206 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9207 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9208 | _ACEOF |
9209 | ||
ad6254c5 AK |
9210 | fi |
9211 | ||
9212 | ################################################################################ | |
ec6a6fbe AK |
9213 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9214 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9215 | |
9216 | # Check whether --with-pool was given. | |
9217 | if test "${with_pool+set}" = set; then | |
9218 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9219 | else |
d0191583 | 9220 | POOL="internal" |
7a197a62 AK |
9221 | fi |
9222 | ||
ec6a6fbe AK |
9223 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9224 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9225 | |
d0191583 | 9226 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9227 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9228 | " >&5 |
ec6a6fbe | 9229 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9230 | " >&2;} |
9231 | { (exit 1); exit 1; }; } | |
9232 | fi; | |
7a197a62 | 9233 | |
d0191583 JM |
9234 | if test x$POOL = xinternal; then |
9235 | ||
9236 | cat >>confdefs.h <<\_ACEOF | |
9237 | #define POOL_INTERNAL 1 | |
9238 | _ACEOF | |
9239 | ||
9240 | fi | |
ad6254c5 | 9241 | |
06f62ad1 | 9242 | ################################################################################ |
ec6a6fbe AK |
9243 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9244 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9245 | |
9246 | # Check whether --with-cluster was given. | |
9247 | if test "${with_cluster+set}" = set; then | |
9248 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9249 | fi |
9250 | ||
ec6a6fbe AK |
9251 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9252 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9253 | |
d0191583 | 9254 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9255 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9256 | " >&5 |
ec6a6fbe | 9257 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9258 | " >&2;} |
9259 | { (exit 1); exit 1; }; } | |
d0191583 | 9260 | fi; |
06f62ad1 | 9261 | |
d0191583 | 9262 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9263 | |
9264 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9265 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9266 | _ACEOF |
9267 | ||
15d91f5a | 9268 | fi |
ad6254c5 AK |
9269 | |
9270 | ################################################################################ | |
ec6a6fbe AK |
9271 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9272 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9273 | |
d0191583 JM |
9274 | # Check whether --with-snapshots was given. |
9275 | if test "${with_snapshots+set}" = set; then | |
9276 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9277 | else | |
9278 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9279 | fi |
9280 | ||
ec6a6fbe AK |
9281 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9282 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9283 | |
d0191583 | 9284 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9285 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9286 | " >&5 |
ec6a6fbe | 9287 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9288 | " >&2;} |
9289 | { (exit 1); exit 1; }; } | |
9290 | fi; | |
9291 | ||
9292 | if test x$SNAPSHOTS = xinternal; then | |
9293 | ||
9294 | cat >>confdefs.h <<\_ACEOF | |
9295 | #define SNAPSHOT_INTERNAL 1 | |
9296 | _ACEOF | |
ad6254c5 | 9297 | |
ad6254c5 | 9298 | fi |
7a197a62 | 9299 | |
d0191583 | 9300 | ################################################################################ |
ec6a6fbe AK |
9301 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9302 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9303 | |
9304 | # Check whether --with-mirrors was given. | |
9305 | if test "${with_mirrors+set}" = set; then | |
9306 | withval=$with_mirrors; MIRRORS="$withval" | |
9307 | else | |
9308 | MIRRORS="internal" | |
ad6254c5 | 9309 | fi |
ad6254c5 | 9310 | |
ec6a6fbe AK |
9311 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9312 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9313 | |
d0191583 | 9314 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9315 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9316 | " >&5 |
ec6a6fbe | 9317 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9318 | " >&2;} |
9319 | { (exit 1); exit 1; }; } | |
9320 | fi; | |
ad6254c5 | 9321 | |
d0191583 | 9322 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9323 | |
d0191583 JM |
9324 | cat >>confdefs.h <<\_ACEOF |
9325 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9326 | _ACEOF |
8a2fc586 | 9327 | |
d0191583 | 9328 | fi |
8a2fc586 | 9329 | |
d0191583 | 9330 | ################################################################################ |
ec6a6fbe AK |
9331 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9332 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9333 | # Check whether --enable-readline was given. |
9334 | if test "${enable_readline+set}" = set; then | |
9335 | enableval=$enable_readline; READLINE=$enableval | |
9336 | else | |
06e459df | 9337 | READLINE=maybe |
d0191583 | 9338 | fi |
8a2fc586 | 9339 | |
ec6a6fbe AK |
9340 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9341 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9342 | |
d0191583 | 9343 | ################################################################################ |
ec6a6fbe AK |
9344 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9345 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9346 | # Check whether --enable-realtime was given. |
9347 | if test "${enable_realtime+set}" = set; then | |
9348 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9349 | fi |
ad6254c5 | 9350 | |
ec6a6fbe AK |
9351 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9352 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9353 | |
9354 | ################################################################################ | |
90c80887 | 9355 | pkg_config_init() { |
e2997b73 AK |
9356 | |
9357 | ||
9358 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9359 | if test -n "$ac_tool_prefix"; then | |
9360 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9361 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9362 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9363 | $as_echo_n "checking for $ac_word... " >&6; } | |
9364 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9365 | $as_echo_n "(cached) " >&6 | |
9366 | else | |
9367 | case $PKG_CONFIG in | |
9368 | [\\/]* | ?:[\\/]*) | |
9369 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9370 | ;; | |
9371 | *) | |
9372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9373 | for as_dir in $PATH | |
9374 | do | |
9375 | IFS=$as_save_IFS | |
9376 | test -z "$as_dir" && as_dir=. | |
9377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9378 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9379 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9380 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9381 | break 2 | |
9382 | fi | |
9383 | done | |
9384 | done | |
9385 | IFS=$as_save_IFS | |
9386 | ||
9387 | ;; | |
9388 | esac | |
9389 | fi | |
9390 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9391 | if test -n "$PKG_CONFIG"; then | |
9392 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9393 | $as_echo "$PKG_CONFIG" >&6; } | |
9394 | else | |
9395 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9396 | $as_echo "no" >&6; } | |
9397 | fi | |
9398 | ||
9399 | ||
9400 | fi | |
9401 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9402 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9403 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9404 | set dummy pkg-config; ac_word=$2 | |
9405 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9406 | $as_echo_n "checking for $ac_word... " >&6; } | |
9407 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9408 | $as_echo_n "(cached) " >&6 | |
9409 | else | |
9410 | case $ac_pt_PKG_CONFIG in | |
9411 | [\\/]* | ?:[\\/]*) | |
9412 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9413 | ;; | |
9414 | *) | |
9415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9416 | for as_dir in $PATH | |
9417 | do | |
9418 | IFS=$as_save_IFS | |
9419 | test -z "$as_dir" && as_dir=. | |
9420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9422 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9423 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9424 | break 2 | |
9425 | fi | |
9426 | done | |
9427 | done | |
9428 | IFS=$as_save_IFS | |
9429 | ||
9430 | ;; | |
9431 | esac | |
9432 | fi | |
9433 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9434 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9435 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9436 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9437 | else | |
9438 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9439 | $as_echo "no" >&6; } | |
9440 | fi | |
9441 | ||
9442 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9443 | PKG_CONFIG="" | |
9444 | else | |
9445 | case $cross_compiling:$ac_tool_warned in | |
9446 | yes:) | |
9447 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9448 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9449 | ac_tool_warned=yes ;; | |
9450 | esac | |
9451 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9452 | fi | |
9453 | else | |
9454 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9455 | fi | |
9456 | ||
9457 | fi | |
9458 | if test -n "$PKG_CONFIG"; then | |
9459 | _pkg_min_version=0.9.0 | |
9460 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9461 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9462 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9463 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9464 | $as_echo "yes" >&6; } | |
9465 | else | |
9466 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9467 | $as_echo "no" >&6; } | |
9468 | PKG_CONFIG="" | |
9469 | fi | |
9470 | ||
9471 | fi | |
9472 | ||
9473 | pkg_failed=no | |
a946372e AK |
9474 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9475 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9476 | |
a946372e AK |
9477 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9478 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9479 | elif test -n "$PKG_CONFIG"; then |
9480 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9481 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9482 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9483 | ac_status=$? |
9484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9485 | (exit $ac_status); }; then | |
a946372e | 9486 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9487 | else |
9488 | pkg_failed=yes | |
9489 | fi | |
9490 | else | |
9491 | pkg_failed=untried | |
9492 | fi | |
a946372e AK |
9493 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9494 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9495 | elif test -n "$PKG_CONFIG"; then |
9496 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9497 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9498 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9499 | ac_status=$? |
9500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9501 | (exit $ac_status); }; then | |
a946372e | 9502 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9503 | else |
9504 | pkg_failed=yes | |
9505 | fi | |
9506 | else | |
9507 | pkg_failed=untried | |
9508 | fi | |
9509 | ||
9510 | ||
9511 | ||
9512 | if test $pkg_failed = yes; then | |
9513 | ||
9514 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9515 | _pkg_short_errors_supported=yes | |
9516 | else | |
9517 | _pkg_short_errors_supported=no | |
9518 | fi | |
9519 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9520 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9521 | else |
a946372e | 9522 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9523 | fi |
9524 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9525 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 AK |
9526 | |
9527 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9528 | $as_echo "no" >&6; } | |
a946372e AK |
9529 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9530 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9531 | elif test $pkg_failed = untried; then |
a946372e AK |
9532 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9533 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9534 | else |
a946372e AK |
9535 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9536 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9537 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9538 | $as_echo "yes" >&6; } | |
9539 | : | |
9540 | fi | |
90c80887 AK |
9541 | PKGCONFIG_INIT=1 |
9542 | } | |
9543 | ||
9544 | ################################################################################ | |
9545 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
9546 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
9547 | ||
9548 | # Check whether --with-clvmd was given. | |
9549 | if test "${with_clvmd+set}" = set; then | |
9550 | withval=$with_clvmd; CLVMD="$withval" | |
9551 | else | |
9552 | CLVMD="none" | |
9553 | fi | |
9554 | ||
9555 | if test x$CLVMD = xyes; then | |
9556 | CLVMD=all | |
9557 | fi | |
9558 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
9559 | $as_echo "$CLVMD" >&6; } | |
9560 | ||
9561 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
9562 | CLUSTER=internal | |
9563 | fi | |
9564 | ||
9565 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
9566 | pkg_config_init | |
9567 | fi | |
9568 | ||
9569 | ||
9570 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
9571 | BUILDGULM=yes | |
9572 | fi | |
9573 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9574 | BUILDCOROSYNC=yes | |
9575 | fi | |
9576 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9577 | BUILDOPENAIS=yes | |
9578 | fi | |
9579 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9580 | BUILDCMAN=yes | |
9581 | fi | |
9582 | ||
9583 | if test x$BUILDGULM = xyes; then | |
9584 | if test x$BUILDCOROSYNC = xyes || \ | |
9585 | test x$BUILDOPENAIS = xyes; then | |
9586 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9587 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9588 | { (exit 1); exit 1; }; } | |
9589 | fi | |
a946372e | 9590 | fi |
e2997b73 | 9591 | |
a946372e AK |
9592 | soft_bailout() { |
9593 | NOTFOUND=1 | |
9594 | } | |
e2997b73 | 9595 | |
a946372e AK |
9596 | hard_bailout() { |
9597 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9598 | $as_echo "$as_me: error: bailing out" >&2;} | |
9599 | { (exit 1); exit 1; }; } | |
9600 | } | |
9601 | ||
9602 | if test x$CLVMD = xall; then | |
9603 | bailout=soft_bailout | |
9604 | BUILDGULM=yes | |
9605 | BUILDCMAN=yes | |
9606 | BUILDCOROSYNC=yes | |
9607 | BUILDOPENAIS=yes | |
e2997b73 | 9608 | else |
a946372e | 9609 | bailout=hard_bailout |
e2997b73 | 9610 | fi |
a946372e AK |
9611 | |
9612 | check_lib_no_libs() { | |
9613 | lib_no_libs_arg1=$1 | |
9614 | shift | |
9615 | lib_no_libs_arg2=$1 | |
9616 | shift | |
9617 | lib_no_libs_args=$@ | |
9618 | ||
9619 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9620 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9621 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9622 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9623 | $as_echo_n "(cached) " >&6 | |
9624 | else | |
9625 | ac_check_lib_save_LIBS=$LIBS | |
9626 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9627 | cat >conftest.$ac_ext <<_ACEOF | |
9628 | /* confdefs.h. */ | |
9629 | _ACEOF | |
9630 | cat confdefs.h >>conftest.$ac_ext | |
9631 | cat >>conftest.$ac_ext <<_ACEOF | |
9632 | /* end confdefs.h. */ | |
9633 | ||
9634 | /* Override any GCC internal prototype to avoid an error. | |
9635 | Use char because int might match the return type of a GCC | |
9636 | builtin and then its argument prototype would still apply. */ | |
9637 | #ifdef __cplusplus | |
9638 | extern "C" | |
9639 | #endif | |
9640 | char $lib_no_libs_arg2 (); | |
9641 | int | |
9642 | main () | |
9643 | { | |
9644 | return $lib_no_libs_arg2 (); | |
9645 | ; | |
9646 | return 0; | |
9647 | } | |
9648 | _ACEOF | |
9649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9650 | if { (ac_try="$ac_link" | |
9651 | case "(($ac_try" in | |
9652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9653 | *) ac_try_echo=$ac_try;; | |
9654 | esac | |
9655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9656 | $as_echo "$ac_try_echo") >&5 | |
9657 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9658 | ac_status=$? |
a946372e AK |
9659 | grep -v '^ *+' conftest.er1 >conftest.err |
9660 | rm -f conftest.er1 | |
9661 | cat conftest.err >&5 | |
e2997b73 | 9662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9663 | (exit $ac_status); } && { |
9664 | test -z "$ac_c_werror_flag" || | |
9665 | test ! -s conftest.err | |
9666 | } && test -s conftest$ac_exeext && { | |
9667 | test "$cross_compiling" = yes || | |
9668 | $as_test_x conftest$ac_exeext | |
9669 | }; then | |
9670 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9671 | else |
a946372e AK |
9672 | $as_echo "$as_me: failed program was:" >&5 |
9673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9674 | |
a946372e AK |
9675 | eval "$as_ac_Lib=no" |
9676 | fi | |
e2997b73 | 9677 | |
a946372e AK |
9678 | rm -rf conftest.dSYM |
9679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9680 | conftest$ac_exeext conftest.$ac_ext | |
9681 | LIBS=$ac_check_lib_save_LIBS | |
9682 | fi | |
9683 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9684 | $as_echo "$as_val"'` | |
9685 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9686 | $as_echo "$ac_res" >&6; } | |
9687 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9688 | $as_echo "$as_val"'` | |
9689 | if test "x$as_val" = x""yes; then | |
9690 | cat >>confdefs.h <<_ACEOF | |
9691 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9692 | _ACEOF | |
e2997b73 | 9693 | |
a946372e | 9694 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9695 | |
e2997b73 | 9696 | else |
a946372e | 9697 | $bailout |
e2997b73 | 9698 | fi |
e2997b73 | 9699 | |
a946372e AK |
9700 | LIBS=$ac_check_lib_save_LIBS |
9701 | } | |
9702 | ||
9703 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9704 | |
9705 | pkg_failed=no | |
a946372e AK |
9706 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9707 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9708 | |
a946372e AK |
9709 | if test -n "$CCS_CFLAGS"; then |
9710 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9711 | elif test -n "$PKG_CONFIG"; then |
9712 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9713 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9714 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9715 | ac_status=$? |
9716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9717 | (exit $ac_status); }; then | |
a946372e | 9718 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9719 | else |
9720 | pkg_failed=yes | |
9721 | fi | |
9722 | else | |
9723 | pkg_failed=untried | |
9724 | fi | |
a946372e AK |
9725 | if test -n "$CCS_LIBS"; then |
9726 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9727 | elif test -n "$PKG_CONFIG"; then |
9728 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9729 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9730 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9731 | ac_status=$? |
9732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9733 | (exit $ac_status); }; then | |
a946372e | 9734 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9735 | else |
9736 | pkg_failed=yes | |
9737 | fi | |
9738 | else | |
9739 | pkg_failed=untried | |
9740 | fi | |
9741 | ||
9742 | ||
9743 | ||
9744 | if test $pkg_failed = yes; then | |
9745 | ||
9746 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9747 | _pkg_short_errors_supported=yes | |
9748 | else | |
9749 | _pkg_short_errors_supported=no | |
9750 | fi | |
9751 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9752 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9753 | else |
a946372e | 9754 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9755 | fi |
9756 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9757 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 AK |
9758 | |
9759 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9760 | $as_echo "no" >&6; } | |
a946372e | 9761 | NOTFOUND=0 |
e2997b73 | 9762 | |
a946372e AK |
9763 | for ac_header in ccs.h |
9764 | do | |
9765 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9767 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9768 | $as_echo_n "checking for $ac_header... " >&6; } | |
9769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9770 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9771 | fi |
a946372e AK |
9772 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9773 | $as_echo "$as_val"'` | |
9774 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9775 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9776 | else |
a946372e AK |
9777 | # Is the header compilable? |
9778 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9779 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9780 | cat >conftest.$ac_ext <<_ACEOF | |
9781 | /* confdefs.h. */ | |
9782 | _ACEOF | |
9783 | cat confdefs.h >>conftest.$ac_ext | |
9784 | cat >>conftest.$ac_ext <<_ACEOF | |
9785 | /* end confdefs.h. */ | |
9786 | $ac_includes_default | |
9787 | #include <$ac_header> | |
9788 | _ACEOF | |
9789 | rm -f conftest.$ac_objext | |
9790 | if { (ac_try="$ac_compile" | |
9791 | case "(($ac_try" in | |
9792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9793 | *) ac_try_echo=$ac_try;; | |
9794 | esac | |
9795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9796 | $as_echo "$ac_try_echo") >&5 | |
9797 | (eval "$ac_compile") 2>conftest.er1 | |
9798 | ac_status=$? | |
9799 | grep -v '^ *+' conftest.er1 >conftest.err | |
9800 | rm -f conftest.er1 | |
9801 | cat conftest.err >&5 | |
9802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9803 | (exit $ac_status); } && { | |
9804 | test -z "$ac_c_werror_flag" || | |
9805 | test ! -s conftest.err | |
9806 | } && test -s conftest.$ac_objext; then | |
9807 | ac_header_compiler=yes | |
9808 | else | |
9809 | $as_echo "$as_me: failed program was:" >&5 | |
9810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9811 | |
a946372e | 9812 | ac_header_compiler=no |
d0191583 JM |
9813 | fi |
9814 | ||
a946372e AK |
9815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9816 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9817 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9818 | |
a946372e AK |
9819 | # Is the header present? |
9820 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9821 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9822 | cat >conftest.$ac_ext <<_ACEOF | |
9823 | /* confdefs.h. */ | |
9824 | _ACEOF | |
9825 | cat confdefs.h >>conftest.$ac_ext | |
9826 | cat >>conftest.$ac_ext <<_ACEOF | |
9827 | /* end confdefs.h. */ | |
9828 | #include <$ac_header> | |
9829 | _ACEOF | |
9830 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9831 | case "(($ac_try" in | |
9832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9833 | *) ac_try_echo=$ac_try;; | |
9834 | esac | |
9835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9836 | $as_echo "$ac_try_echo") >&5 | |
9837 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9838 | ac_status=$? | |
9839 | grep -v '^ *+' conftest.er1 >conftest.err | |
9840 | rm -f conftest.er1 | |
9841 | cat conftest.err >&5 | |
9842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9843 | (exit $ac_status); } >/dev/null && { | |
9844 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9845 | test ! -s conftest.err | |
9846 | }; then | |
9847 | ac_header_preproc=yes | |
9848 | else | |
9849 | $as_echo "$as_me: failed program was:" >&5 | |
9850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9851 | ||
9852 | ac_header_preproc=no | |
9853 | fi | |
9854 | ||
9855 | rm -f conftest.err conftest.$ac_ext | |
9856 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9857 | $as_echo "$ac_header_preproc" >&6; } | |
9858 | ||
9859 | # So? What about this header? | |
9860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9861 | yes:no: ) | |
9862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9863 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9865 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9866 | ac_header_preproc=yes | |
9867 | ;; | |
9868 | no:yes:* ) | |
9869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9870 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9872 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9874 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9876 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9878 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9880 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9881 | ||
9882 | ;; | |
9883 | esac | |
9884 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9885 | $as_echo_n "checking for $ac_header... " >&6; } | |
9886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9887 | $as_echo_n "(cached) " >&6 | |
9888 | else | |
9889 | eval "$as_ac_Header=\$ac_header_preproc" | |
9890 | fi | |
9891 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9892 | $as_echo "$as_val"'` | |
9893 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9894 | $as_echo "$ac_res" >&6; } | |
9895 | ||
9896 | fi | |
9897 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9898 | $as_echo "$as_val"'` | |
9899 | if test "x$as_val" = x""yes; then | |
9900 | cat >>confdefs.h <<_ACEOF | |
9901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9902 | _ACEOF | |
9903 | ||
9904 | else | |
9905 | $bailout | |
9906 | fi | |
9907 | ||
9908 | done | |
9909 | ||
9910 | check_lib_no_libs ccs ccs_connect | |
9911 | if test $NOTFOUND = 0; then | |
9912 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9913 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9914 | CCS_LIBS="-lccs" | |
9915 | HAVE_CCS=yes | |
9916 | fi | |
9917 | elif test $pkg_failed = untried; then | |
9918 | NOTFOUND=0 | |
9919 | ||
9920 | for ac_header in ccs.h | |
9921 | do | |
9922 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9924 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9925 | $as_echo_n "checking for $ac_header... " >&6; } | |
9926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9927 | $as_echo_n "(cached) " >&6 | |
9928 | fi | |
9929 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9930 | $as_echo "$as_val"'` | |
9931 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9932 | $as_echo "$ac_res" >&6; } | |
9933 | else | |
9934 | # Is the header compilable? | |
9935 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9936 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9937 | cat >conftest.$ac_ext <<_ACEOF | |
9938 | /* confdefs.h. */ | |
9939 | _ACEOF | |
9940 | cat confdefs.h >>conftest.$ac_ext | |
9941 | cat >>conftest.$ac_ext <<_ACEOF | |
9942 | /* end confdefs.h. */ | |
9943 | $ac_includes_default | |
9944 | #include <$ac_header> | |
9945 | _ACEOF | |
9946 | rm -f conftest.$ac_objext | |
9947 | if { (ac_try="$ac_compile" | |
9948 | case "(($ac_try" in | |
9949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9950 | *) ac_try_echo=$ac_try;; | |
9951 | esac | |
9952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9953 | $as_echo "$ac_try_echo") >&5 | |
9954 | (eval "$ac_compile") 2>conftest.er1 | |
9955 | ac_status=$? | |
9956 | grep -v '^ *+' conftest.er1 >conftest.err | |
9957 | rm -f conftest.er1 | |
9958 | cat conftest.err >&5 | |
9959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9960 | (exit $ac_status); } && { | |
9961 | test -z "$ac_c_werror_flag" || | |
9962 | test ! -s conftest.err | |
9963 | } && test -s conftest.$ac_objext; then | |
9964 | ac_header_compiler=yes | |
9965 | else | |
9966 | $as_echo "$as_me: failed program was:" >&5 | |
9967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9968 | ||
9969 | ac_header_compiler=no | |
9970 | fi | |
9971 | ||
9972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9973 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9974 | $as_echo "$ac_header_compiler" >&6; } | |
9975 | ||
9976 | # Is the header present? | |
9977 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9978 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9979 | cat >conftest.$ac_ext <<_ACEOF | |
9980 | /* confdefs.h. */ | |
9981 | _ACEOF | |
9982 | cat confdefs.h >>conftest.$ac_ext | |
9983 | cat >>conftest.$ac_ext <<_ACEOF | |
9984 | /* end confdefs.h. */ | |
9985 | #include <$ac_header> | |
9986 | _ACEOF | |
9987 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9988 | case "(($ac_try" in | |
9989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9990 | *) ac_try_echo=$ac_try;; | |
9991 | esac | |
9992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9993 | $as_echo "$ac_try_echo") >&5 | |
9994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9995 | ac_status=$? | |
9996 | grep -v '^ *+' conftest.er1 >conftest.err | |
9997 | rm -f conftest.er1 | |
9998 | cat conftest.err >&5 | |
9999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10000 | (exit $ac_status); } >/dev/null && { | |
10001 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10002 | test ! -s conftest.err | |
10003 | }; then | |
10004 | ac_header_preproc=yes | |
10005 | else | |
10006 | $as_echo "$as_me: failed program was:" >&5 | |
10007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10008 | ||
10009 | ac_header_preproc=no | |
10010 | fi | |
10011 | ||
10012 | rm -f conftest.err conftest.$ac_ext | |
10013 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10014 | $as_echo "$ac_header_preproc" >&6; } | |
10015 | ||
10016 | # So? What about this header? | |
10017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10018 | yes:no: ) | |
10019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10020 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10022 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10023 | ac_header_preproc=yes | |
10024 | ;; | |
10025 | no:yes:* ) | |
10026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10027 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10029 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10031 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10033 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10035 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10037 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10038 | ||
10039 | ;; | |
10040 | esac | |
10041 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10042 | $as_echo_n "checking for $ac_header... " >&6; } | |
10043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10044 | $as_echo_n "(cached) " >&6 | |
10045 | else | |
10046 | eval "$as_ac_Header=\$ac_header_preproc" | |
10047 | fi | |
10048 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10049 | $as_echo "$as_val"'` | |
10050 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10051 | $as_echo "$ac_res" >&6; } | |
10052 | ||
10053 | fi | |
10054 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10055 | $as_echo "$as_val"'` | |
10056 | if test "x$as_val" = x""yes; then | |
10057 | cat >>confdefs.h <<_ACEOF | |
10058 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10059 | _ACEOF | |
10060 | ||
10061 | else | |
10062 | $bailout | |
10063 | fi | |
10064 | ||
10065 | done | |
10066 | ||
10067 | check_lib_no_libs ccs ccs_connect | |
10068 | if test $NOTFOUND = 0; then | |
10069 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
10070 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
10071 | CCS_LIBS="-lccs" | |
10072 | HAVE_CCS=yes | |
10073 | fi | |
10074 | else | |
10075 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
10076 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
10077 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10078 | $as_echo "yes" >&6; } | |
10079 | HAVE_CCS=yes | |
10080 | fi | |
10081 | ||
10082 | pkg_failed=no | |
10083 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
10084 | $as_echo_n "checking for GULM... " >&6; } | |
10085 | ||
10086 | if test -n "$GULM_CFLAGS"; then | |
10087 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
10088 | elif test -n "$PKG_CONFIG"; then | |
10089 | if test -n "$PKG_CONFIG" && \ | |
10090 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10091 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10092 | ac_status=$? | |
10093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10094 | (exit $ac_status); }; then | |
10095 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
10096 | else | |
10097 | pkg_failed=yes | |
10098 | fi | |
10099 | else | |
10100 | pkg_failed=untried | |
10101 | fi | |
10102 | if test -n "$GULM_LIBS"; then | |
10103 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
10104 | elif test -n "$PKG_CONFIG"; then | |
10105 | if test -n "$PKG_CONFIG" && \ | |
10106 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10107 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10108 | ac_status=$? | |
10109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10110 | (exit $ac_status); }; then | |
10111 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
10112 | else | |
10113 | pkg_failed=yes | |
10114 | fi | |
10115 | else | |
10116 | pkg_failed=untried | |
10117 | fi | |
10118 | ||
10119 | ||
10120 | ||
10121 | if test $pkg_failed = yes; then | |
10122 | ||
10123 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10124 | _pkg_short_errors_supported=yes | |
10125 | else | |
10126 | _pkg_short_errors_supported=no | |
10127 | fi | |
10128 | if test $_pkg_short_errors_supported = yes; then | |
10129 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10130 | else | |
10131 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10132 | fi | |
10133 | # Put the nasty error message in config.log where it belongs | |
10134 | echo "$GULM_PKG_ERRORS" >&5 | |
10135 | ||
10136 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10137 | $as_echo "no" >&6; } | |
10138 | NOTFOUND=0 | |
10139 | ||
10140 | for ac_header in libgulm.h | |
10141 | do | |
10142 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10143 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10144 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10145 | $as_echo_n "checking for $ac_header... " >&6; } | |
10146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10147 | $as_echo_n "(cached) " >&6 | |
10148 | fi | |
10149 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10150 | $as_echo "$as_val"'` | |
10151 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10152 | $as_echo "$ac_res" >&6; } | |
10153 | else | |
10154 | # Is the header compilable? | |
10155 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10156 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10157 | cat >conftest.$ac_ext <<_ACEOF | |
10158 | /* confdefs.h. */ | |
10159 | _ACEOF | |
10160 | cat confdefs.h >>conftest.$ac_ext | |
10161 | cat >>conftest.$ac_ext <<_ACEOF | |
10162 | /* end confdefs.h. */ | |
10163 | $ac_includes_default | |
10164 | #include <$ac_header> | |
10165 | _ACEOF | |
10166 | rm -f conftest.$ac_objext | |
10167 | if { (ac_try="$ac_compile" | |
10168 | case "(($ac_try" in | |
10169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10170 | *) ac_try_echo=$ac_try;; | |
10171 | esac | |
10172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10173 | $as_echo "$ac_try_echo") >&5 | |
10174 | (eval "$ac_compile") 2>conftest.er1 | |
10175 | ac_status=$? | |
10176 | grep -v '^ *+' conftest.er1 >conftest.err | |
10177 | rm -f conftest.er1 | |
10178 | cat conftest.err >&5 | |
10179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10180 | (exit $ac_status); } && { | |
10181 | test -z "$ac_c_werror_flag" || | |
10182 | test ! -s conftest.err | |
10183 | } && test -s conftest.$ac_objext; then | |
10184 | ac_header_compiler=yes | |
10185 | else | |
10186 | $as_echo "$as_me: failed program was:" >&5 | |
10187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10188 | ||
10189 | ac_header_compiler=no | |
10190 | fi | |
10191 | ||
10192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10193 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10194 | $as_echo "$ac_header_compiler" >&6; } | |
10195 | ||
10196 | # Is the header present? | |
10197 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10198 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10199 | cat >conftest.$ac_ext <<_ACEOF | |
10200 | /* confdefs.h. */ | |
10201 | _ACEOF | |
10202 | cat confdefs.h >>conftest.$ac_ext | |
10203 | cat >>conftest.$ac_ext <<_ACEOF | |
10204 | /* end confdefs.h. */ | |
10205 | #include <$ac_header> | |
10206 | _ACEOF | |
10207 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10208 | case "(($ac_try" in | |
10209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10210 | *) ac_try_echo=$ac_try;; | |
10211 | esac | |
10212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10213 | $as_echo "$ac_try_echo") >&5 | |
10214 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10215 | ac_status=$? | |
10216 | grep -v '^ *+' conftest.er1 >conftest.err | |
10217 | rm -f conftest.er1 | |
10218 | cat conftest.err >&5 | |
10219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10220 | (exit $ac_status); } >/dev/null && { | |
10221 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10222 | test ! -s conftest.err | |
10223 | }; then | |
10224 | ac_header_preproc=yes | |
10225 | else | |
10226 | $as_echo "$as_me: failed program was:" >&5 | |
10227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10228 | ||
10229 | ac_header_preproc=no | |
10230 | fi | |
10231 | ||
10232 | rm -f conftest.err conftest.$ac_ext | |
10233 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10234 | $as_echo "$ac_header_preproc" >&6; } | |
10235 | ||
10236 | # So? What about this header? | |
10237 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10238 | yes:no: ) | |
10239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10240 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10242 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10243 | ac_header_preproc=yes | |
10244 | ;; | |
10245 | no:yes:* ) | |
10246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10247 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10249 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10251 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10253 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10254 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10255 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10256 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10257 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10258 | ||
10259 | ;; | |
10260 | esac | |
10261 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10262 | $as_echo_n "checking for $ac_header... " >&6; } | |
10263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10264 | $as_echo_n "(cached) " >&6 | |
10265 | else | |
10266 | eval "$as_ac_Header=\$ac_header_preproc" | |
10267 | fi | |
10268 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10269 | $as_echo "$as_val"'` | |
10270 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10271 | $as_echo "$ac_res" >&6; } | |
10272 | ||
10273 | fi | |
10274 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10275 | $as_echo "$as_val"'` | |
10276 | if test "x$as_val" = x""yes; then | |
10277 | cat >>confdefs.h <<_ACEOF | |
10278 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10279 | _ACEOF | |
10280 | ||
10281 | else | |
10282 | $bailout | |
10283 | fi | |
10284 | ||
10285 | done | |
10286 | ||
10287 | check_lib_no_libs gulm lg_core_login | |
10288 | if test $NOTFOUND = 0; then | |
10289 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10290 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10291 | GULM_LIBS="-lgulm" | |
10292 | HAVE_GULM=yes | |
10293 | fi | |
10294 | elif test $pkg_failed = untried; then | |
10295 | NOTFOUND=0 | |
10296 | ||
10297 | for ac_header in libgulm.h | |
10298 | do | |
10299 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10301 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10302 | $as_echo_n "checking for $ac_header... " >&6; } | |
10303 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10304 | $as_echo_n "(cached) " >&6 | |
10305 | fi | |
10306 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10307 | $as_echo "$as_val"'` | |
10308 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10309 | $as_echo "$ac_res" >&6; } | |
10310 | else | |
10311 | # Is the header compilable? | |
10312 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10313 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10314 | cat >conftest.$ac_ext <<_ACEOF | |
10315 | /* confdefs.h. */ | |
10316 | _ACEOF | |
10317 | cat confdefs.h >>conftest.$ac_ext | |
10318 | cat >>conftest.$ac_ext <<_ACEOF | |
10319 | /* end confdefs.h. */ | |
10320 | $ac_includes_default | |
10321 | #include <$ac_header> | |
10322 | _ACEOF | |
10323 | rm -f conftest.$ac_objext | |
10324 | if { (ac_try="$ac_compile" | |
10325 | case "(($ac_try" in | |
10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10327 | *) ac_try_echo=$ac_try;; | |
10328 | esac | |
10329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10330 | $as_echo "$ac_try_echo") >&5 | |
10331 | (eval "$ac_compile") 2>conftest.er1 | |
10332 | ac_status=$? | |
10333 | grep -v '^ *+' conftest.er1 >conftest.err | |
10334 | rm -f conftest.er1 | |
10335 | cat conftest.err >&5 | |
10336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10337 | (exit $ac_status); } && { | |
10338 | test -z "$ac_c_werror_flag" || | |
10339 | test ! -s conftest.err | |
10340 | } && test -s conftest.$ac_objext; then | |
10341 | ac_header_compiler=yes | |
10342 | else | |
10343 | $as_echo "$as_me: failed program was:" >&5 | |
10344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10345 | ||
10346 | ac_header_compiler=no | |
10347 | fi | |
10348 | ||
10349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10350 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10351 | $as_echo "$ac_header_compiler" >&6; } | |
10352 | ||
10353 | # Is the header present? | |
10354 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10355 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10356 | cat >conftest.$ac_ext <<_ACEOF | |
10357 | /* confdefs.h. */ | |
10358 | _ACEOF | |
10359 | cat confdefs.h >>conftest.$ac_ext | |
10360 | cat >>conftest.$ac_ext <<_ACEOF | |
10361 | /* end confdefs.h. */ | |
10362 | #include <$ac_header> | |
10363 | _ACEOF | |
10364 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10365 | case "(($ac_try" in | |
10366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10367 | *) ac_try_echo=$ac_try;; | |
10368 | esac | |
10369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10370 | $as_echo "$ac_try_echo") >&5 | |
10371 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10372 | ac_status=$? | |
10373 | grep -v '^ *+' conftest.er1 >conftest.err | |
10374 | rm -f conftest.er1 | |
10375 | cat conftest.err >&5 | |
10376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); } >/dev/null && { | |
10378 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10379 | test ! -s conftest.err | |
10380 | }; then | |
10381 | ac_header_preproc=yes | |
10382 | else | |
10383 | $as_echo "$as_me: failed program was:" >&5 | |
10384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10385 | ||
10386 | ac_header_preproc=no | |
10387 | fi | |
10388 | ||
10389 | rm -f conftest.err conftest.$ac_ext | |
10390 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10391 | $as_echo "$ac_header_preproc" >&6; } | |
10392 | ||
10393 | # So? What about this header? | |
10394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10395 | yes:no: ) | |
10396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10397 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10399 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10400 | ac_header_preproc=yes | |
10401 | ;; | |
10402 | no:yes:* ) | |
10403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10404 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10406 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10408 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10410 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10412 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10414 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10415 | ||
10416 | ;; | |
10417 | esac | |
10418 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10419 | $as_echo_n "checking for $ac_header... " >&6; } | |
10420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10421 | $as_echo_n "(cached) " >&6 | |
10422 | else | |
10423 | eval "$as_ac_Header=\$ac_header_preproc" | |
10424 | fi | |
10425 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10426 | $as_echo "$as_val"'` | |
10427 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10428 | $as_echo "$ac_res" >&6; } | |
10429 | ||
10430 | fi | |
10431 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10432 | $as_echo "$as_val"'` | |
10433 | if test "x$as_val" = x""yes; then | |
10434 | cat >>confdefs.h <<_ACEOF | |
10435 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10436 | _ACEOF | |
10437 | ||
10438 | else | |
10439 | $bailout | |
10440 | fi | |
10441 | ||
10442 | done | |
10443 | ||
10444 | check_lib_no_libs gulm lg_core_login | |
10445 | if test $NOTFOUND = 0; then | |
10446 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10447 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10448 | GULM_LIBS="-lgulm" | |
10449 | HAVE_GULM=yes | |
10450 | fi | |
10451 | else | |
10452 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10453 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10454 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10455 | $as_echo "yes" >&6; } | |
10456 | HAVE_GULM=yes | |
10457 | fi | |
10458 | fi | |
10459 | ||
10460 | if test x$BUILDCMAN = xyes; then | |
10461 | ||
10462 | pkg_failed=no | |
10463 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10464 | $as_echo_n "checking for CMAN... " >&6; } | |
10465 | ||
10466 | if test -n "$CMAN_CFLAGS"; then | |
10467 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10468 | elif test -n "$PKG_CONFIG"; then | |
10469 | if test -n "$PKG_CONFIG" && \ | |
10470 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10471 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10472 | ac_status=$? | |
10473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10474 | (exit $ac_status); }; then | |
10475 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10476 | else | |
10477 | pkg_failed=yes | |
10478 | fi | |
10479 | else | |
10480 | pkg_failed=untried | |
10481 | fi | |
10482 | if test -n "$CMAN_LIBS"; then | |
10483 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10484 | elif test -n "$PKG_CONFIG"; then | |
10485 | if test -n "$PKG_CONFIG" && \ | |
10486 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10487 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10488 | ac_status=$? | |
10489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10490 | (exit $ac_status); }; then | |
10491 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10492 | else | |
10493 | pkg_failed=yes | |
10494 | fi | |
10495 | else | |
10496 | pkg_failed=untried | |
10497 | fi | |
10498 | ||
10499 | ||
10500 | ||
10501 | if test $pkg_failed = yes; then | |
10502 | ||
10503 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10504 | _pkg_short_errors_supported=yes | |
10505 | else | |
10506 | _pkg_short_errors_supported=no | |
10507 | fi | |
10508 | if test $_pkg_short_errors_supported = yes; then | |
10509 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10510 | else | |
10511 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10512 | fi | |
10513 | # Put the nasty error message in config.log where it belongs | |
10514 | echo "$CMAN_PKG_ERRORS" >&5 | |
10515 | ||
10516 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10517 | $as_echo "no" >&6; } | |
10518 | NOTFOUND=0 | |
10519 | ||
10520 | for ac_header in libcman.h | |
10521 | do | |
10522 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10524 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10525 | $as_echo_n "checking for $ac_header... " >&6; } | |
10526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10527 | $as_echo_n "(cached) " >&6 | |
10528 | fi | |
10529 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10530 | $as_echo "$as_val"'` | |
10531 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10532 | $as_echo "$ac_res" >&6; } | |
10533 | else | |
10534 | # Is the header compilable? | |
10535 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10536 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10537 | cat >conftest.$ac_ext <<_ACEOF | |
10538 | /* confdefs.h. */ | |
10539 | _ACEOF | |
10540 | cat confdefs.h >>conftest.$ac_ext | |
10541 | cat >>conftest.$ac_ext <<_ACEOF | |
10542 | /* end confdefs.h. */ | |
10543 | $ac_includes_default | |
10544 | #include <$ac_header> | |
10545 | _ACEOF | |
10546 | rm -f conftest.$ac_objext | |
10547 | if { (ac_try="$ac_compile" | |
10548 | case "(($ac_try" in | |
10549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10550 | *) ac_try_echo=$ac_try;; | |
10551 | esac | |
10552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10553 | $as_echo "$ac_try_echo") >&5 | |
10554 | (eval "$ac_compile") 2>conftest.er1 | |
10555 | ac_status=$? | |
10556 | grep -v '^ *+' conftest.er1 >conftest.err | |
10557 | rm -f conftest.er1 | |
10558 | cat conftest.err >&5 | |
10559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10560 | (exit $ac_status); } && { | |
10561 | test -z "$ac_c_werror_flag" || | |
10562 | test ! -s conftest.err | |
10563 | } && test -s conftest.$ac_objext; then | |
10564 | ac_header_compiler=yes | |
10565 | else | |
10566 | $as_echo "$as_me: failed program was:" >&5 | |
10567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10568 | ||
10569 | ac_header_compiler=no | |
10570 | fi | |
10571 | ||
10572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10573 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10574 | $as_echo "$ac_header_compiler" >&6; } | |
10575 | ||
10576 | # Is the header present? | |
10577 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10578 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10579 | cat >conftest.$ac_ext <<_ACEOF | |
10580 | /* confdefs.h. */ | |
10581 | _ACEOF | |
10582 | cat confdefs.h >>conftest.$ac_ext | |
10583 | cat >>conftest.$ac_ext <<_ACEOF | |
10584 | /* end confdefs.h. */ | |
10585 | #include <$ac_header> | |
10586 | _ACEOF | |
10587 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10588 | case "(($ac_try" in | |
10589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10590 | *) ac_try_echo=$ac_try;; | |
10591 | esac | |
10592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10593 | $as_echo "$ac_try_echo") >&5 | |
10594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10595 | ac_status=$? | |
10596 | grep -v '^ *+' conftest.er1 >conftest.err | |
10597 | rm -f conftest.er1 | |
10598 | cat conftest.err >&5 | |
10599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); } >/dev/null && { | |
10601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10602 | test ! -s conftest.err | |
10603 | }; then | |
10604 | ac_header_preproc=yes | |
10605 | else | |
10606 | $as_echo "$as_me: failed program was:" >&5 | |
10607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10608 | ||
10609 | ac_header_preproc=no | |
10610 | fi | |
10611 | ||
10612 | rm -f conftest.err conftest.$ac_ext | |
10613 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10614 | $as_echo "$ac_header_preproc" >&6; } | |
10615 | ||
10616 | # So? What about this header? | |
10617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10618 | yes:no: ) | |
10619 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10620 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10621 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10622 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10623 | ac_header_preproc=yes | |
10624 | ;; | |
10625 | no:yes:* ) | |
10626 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10627 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10629 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10630 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10631 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10632 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10633 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10635 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10636 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10637 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10638 | ||
10639 | ;; | |
10640 | esac | |
10641 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10642 | $as_echo_n "checking for $ac_header... " >&6; } | |
10643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10644 | $as_echo_n "(cached) " >&6 | |
10645 | else | |
10646 | eval "$as_ac_Header=\$ac_header_preproc" | |
10647 | fi | |
10648 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10649 | $as_echo "$as_val"'` | |
10650 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10651 | $as_echo "$ac_res" >&6; } | |
10652 | ||
10653 | fi | |
10654 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10655 | $as_echo "$as_val"'` | |
10656 | if test "x$as_val" = x""yes; then | |
10657 | cat >>confdefs.h <<_ACEOF | |
10658 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10659 | _ACEOF | |
10660 | ||
10661 | else | |
10662 | $bailout | |
10663 | fi | |
10664 | ||
10665 | done | |
10666 | ||
10667 | check_lib_no_libs cman cman_init | |
10668 | if test $NOTFOUND = 0; then | |
10669 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10670 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10671 | CMAN_LIBS="-lcman" | |
10672 | HAVE_CMAN=yes | |
10673 | fi | |
10674 | elif test $pkg_failed = untried; then | |
10675 | NOTFOUND=0 | |
10676 | ||
10677 | for ac_header in libcman.h | |
10678 | do | |
10679 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10681 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10682 | $as_echo_n "checking for $ac_header... " >&6; } | |
10683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10684 | $as_echo_n "(cached) " >&6 | |
10685 | fi | |
10686 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10687 | $as_echo "$as_val"'` | |
10688 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10689 | $as_echo "$ac_res" >&6; } | |
10690 | else | |
10691 | # Is the header compilable? | |
10692 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10693 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10694 | cat >conftest.$ac_ext <<_ACEOF | |
10695 | /* confdefs.h. */ | |
10696 | _ACEOF | |
10697 | cat confdefs.h >>conftest.$ac_ext | |
10698 | cat >>conftest.$ac_ext <<_ACEOF | |
10699 | /* end confdefs.h. */ | |
10700 | $ac_includes_default | |
10701 | #include <$ac_header> | |
10702 | _ACEOF | |
10703 | rm -f conftest.$ac_objext | |
10704 | if { (ac_try="$ac_compile" | |
10705 | case "(($ac_try" in | |
10706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10707 | *) ac_try_echo=$ac_try;; | |
10708 | esac | |
10709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10710 | $as_echo "$ac_try_echo") >&5 | |
10711 | (eval "$ac_compile") 2>conftest.er1 | |
10712 | ac_status=$? | |
10713 | grep -v '^ *+' conftest.er1 >conftest.err | |
10714 | rm -f conftest.er1 | |
10715 | cat conftest.err >&5 | |
10716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10717 | (exit $ac_status); } && { | |
10718 | test -z "$ac_c_werror_flag" || | |
10719 | test ! -s conftest.err | |
10720 | } && test -s conftest.$ac_objext; then | |
10721 | ac_header_compiler=yes | |
10722 | else | |
10723 | $as_echo "$as_me: failed program was:" >&5 | |
10724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10725 | ||
10726 | ac_header_compiler=no | |
10727 | fi | |
10728 | ||
10729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10730 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10731 | $as_echo "$ac_header_compiler" >&6; } | |
10732 | ||
10733 | # Is the header present? | |
10734 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10735 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10736 | cat >conftest.$ac_ext <<_ACEOF | |
10737 | /* confdefs.h. */ | |
10738 | _ACEOF | |
10739 | cat confdefs.h >>conftest.$ac_ext | |
10740 | cat >>conftest.$ac_ext <<_ACEOF | |
10741 | /* end confdefs.h. */ | |
10742 | #include <$ac_header> | |
10743 | _ACEOF | |
10744 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10745 | case "(($ac_try" in | |
10746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10747 | *) ac_try_echo=$ac_try;; | |
10748 | esac | |
10749 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10750 | $as_echo "$ac_try_echo") >&5 | |
10751 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10752 | ac_status=$? | |
10753 | grep -v '^ *+' conftest.er1 >conftest.err | |
10754 | rm -f conftest.er1 | |
10755 | cat conftest.err >&5 | |
10756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10757 | (exit $ac_status); } >/dev/null && { | |
10758 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10759 | test ! -s conftest.err | |
10760 | }; then | |
10761 | ac_header_preproc=yes | |
10762 | else | |
10763 | $as_echo "$as_me: failed program was:" >&5 | |
10764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10765 | ||
10766 | ac_header_preproc=no | |
10767 | fi | |
10768 | ||
10769 | rm -f conftest.err conftest.$ac_ext | |
10770 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10771 | $as_echo "$ac_header_preproc" >&6; } | |
10772 | ||
10773 | # So? What about this header? | |
10774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10775 | yes:no: ) | |
10776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10777 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10780 | ac_header_preproc=yes | |
10781 | ;; | |
10782 | no:yes:* ) | |
10783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10784 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10786 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10788 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10790 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10791 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10792 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10794 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10795 | ||
10796 | ;; | |
10797 | esac | |
10798 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10799 | $as_echo_n "checking for $ac_header... " >&6; } | |
10800 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10801 | $as_echo_n "(cached) " >&6 | |
10802 | else | |
10803 | eval "$as_ac_Header=\$ac_header_preproc" | |
10804 | fi | |
10805 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10806 | $as_echo "$as_val"'` | |
10807 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10808 | $as_echo "$ac_res" >&6; } | |
10809 | ||
10810 | fi | |
10811 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10812 | $as_echo "$as_val"'` | |
10813 | if test "x$as_val" = x""yes; then | |
10814 | cat >>confdefs.h <<_ACEOF | |
10815 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10816 | _ACEOF | |
10817 | ||
10818 | else | |
10819 | $bailout | |
10820 | fi | |
10821 | ||
10822 | done | |
10823 | ||
10824 | check_lib_no_libs cman cman_init | |
10825 | if test $NOTFOUND = 0; then | |
10826 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10827 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10828 | CMAN_LIBS="-lcman" | |
10829 | HAVE_CMAN=yes | |
10830 | fi | |
10831 | else | |
10832 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10833 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10834 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10835 | $as_echo "yes" >&6; } | |
10836 | HAVE_CMAN=yes | |
10837 | fi | |
10838 | CHECKCONFDB=yes | |
10839 | CHECKDLM=yes | |
10840 | fi | |
10841 | ||
10842 | if test x$BUILDCOROSYNC = xyes || \ | |
10843 | test x$BUILDOPENAIS = xyes; then | |
10844 | ||
10845 | pkg_failed=no | |
10846 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10847 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10848 | ||
10849 | if test -n "$COROSYNC_CFLAGS"; then | |
10850 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10851 | elif test -n "$PKG_CONFIG"; then | |
10852 | if test -n "$PKG_CONFIG" && \ | |
10853 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10854 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10855 | ac_status=$? | |
10856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10857 | (exit $ac_status); }; then | |
10858 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10859 | else | |
10860 | pkg_failed=yes | |
10861 | fi | |
10862 | else | |
10863 | pkg_failed=untried | |
10864 | fi | |
10865 | if test -n "$COROSYNC_LIBS"; then | |
10866 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10867 | elif test -n "$PKG_CONFIG"; then | |
10868 | if test -n "$PKG_CONFIG" && \ | |
10869 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10870 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10871 | ac_status=$? | |
10872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10873 | (exit $ac_status); }; then | |
10874 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10875 | else | |
10876 | pkg_failed=yes | |
10877 | fi | |
10878 | else | |
10879 | pkg_failed=untried | |
10880 | fi | |
10881 | ||
10882 | ||
10883 | ||
10884 | if test $pkg_failed = yes; then | |
10885 | ||
10886 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10887 | _pkg_short_errors_supported=yes | |
10888 | else | |
10889 | _pkg_short_errors_supported=no | |
10890 | fi | |
10891 | if test $_pkg_short_errors_supported = yes; then | |
10892 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10893 | else | |
10894 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10895 | fi | |
10896 | # Put the nasty error message in config.log where it belongs | |
10897 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10898 | ||
10899 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10900 | $as_echo "no" >&6; } | |
10901 | $bailout | |
10902 | elif test $pkg_failed = untried; then | |
10903 | $bailout | |
10904 | else | |
10905 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10906 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10907 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10908 | $as_echo "yes" >&6; } | |
10909 | HAVE_COROSYNC=yes | |
10910 | fi | |
10911 | CHECKCONFDB=yes | |
10912 | fi | |
10913 | ||
10914 | if test x$BUILDCOROSYNC = xyes; then | |
10915 | ||
10916 | pkg_failed=no | |
10917 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10918 | $as_echo_n "checking for QUORUM... " >&6; } | |
10919 | ||
10920 | if test -n "$QUORUM_CFLAGS"; then | |
10921 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10922 | elif test -n "$PKG_CONFIG"; then | |
10923 | if test -n "$PKG_CONFIG" && \ | |
10924 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10925 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10926 | ac_status=$? | |
10927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); }; then | |
10929 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10930 | else | |
10931 | pkg_failed=yes | |
10932 | fi | |
10933 | else | |
10934 | pkg_failed=untried | |
10935 | fi | |
10936 | if test -n "$QUORUM_LIBS"; then | |
10937 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
10938 | elif test -n "$PKG_CONFIG"; then | |
10939 | if test -n "$PKG_CONFIG" && \ | |
10940 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10941 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10942 | ac_status=$? | |
10943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10944 | (exit $ac_status); }; then | |
10945 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
10946 | else | |
10947 | pkg_failed=yes | |
10948 | fi | |
10949 | else | |
10950 | pkg_failed=untried | |
10951 | fi | |
10952 | ||
10953 | ||
10954 | ||
10955 | if test $pkg_failed = yes; then | |
10956 | ||
10957 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10958 | _pkg_short_errors_supported=yes | |
10959 | else | |
10960 | _pkg_short_errors_supported=no | |
10961 | fi | |
10962 | if test $_pkg_short_errors_supported = yes; then | |
10963 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
10964 | else | |
10965 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
10966 | fi | |
10967 | # Put the nasty error message in config.log where it belongs | |
10968 | echo "$QUORUM_PKG_ERRORS" >&5 | |
10969 | ||
10970 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10971 | $as_echo "no" >&6; } | |
10972 | $bailout | |
10973 | elif test $pkg_failed = untried; then | |
10974 | $bailout | |
10975 | else | |
10976 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
10977 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
10978 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10979 | $as_echo "yes" >&6; } | |
10980 | HAVE_QUORUM=yes | |
10981 | fi | |
10982 | CHECKCPG=yes | |
10983 | CHECKDLM=yes | |
10984 | fi | |
10985 | ||
10986 | if test x$BUILDOPENAIS = xyes; then | |
10987 | ||
10988 | pkg_failed=no | |
10989 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
10990 | $as_echo_n "checking for SALCK... " >&6; } | |
10991 | ||
10992 | if test -n "$SALCK_CFLAGS"; then | |
10993 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
10994 | elif test -n "$PKG_CONFIG"; then | |
10995 | if test -n "$PKG_CONFIG" && \ | |
10996 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10997 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10998 | ac_status=$? | |
10999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11000 | (exit $ac_status); }; then | |
11001 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
11002 | else | |
11003 | pkg_failed=yes | |
11004 | fi | |
11005 | else | |
11006 | pkg_failed=untried | |
11007 | fi | |
11008 | if test -n "$SALCK_LIBS"; then | |
11009 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
11010 | elif test -n "$PKG_CONFIG"; then | |
11011 | if test -n "$PKG_CONFIG" && \ | |
11012 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
11013 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11014 | ac_status=$? | |
11015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 | (exit $ac_status); }; then | |
11017 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
11018 | else | |
11019 | pkg_failed=yes | |
11020 | fi | |
11021 | else | |
11022 | pkg_failed=untried | |
11023 | fi | |
11024 | ||
11025 | ||
11026 | ||
11027 | if test $pkg_failed = yes; then | |
11028 | ||
11029 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11030 | _pkg_short_errors_supported=yes | |
11031 | else | |
11032 | _pkg_short_errors_supported=no | |
11033 | fi | |
11034 | if test $_pkg_short_errors_supported = yes; then | |
11035 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
11036 | else | |
11037 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
11038 | fi | |
11039 | # Put the nasty error message in config.log where it belongs | |
11040 | echo "$SALCK_PKG_ERRORS" >&5 | |
11041 | ||
11042 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11043 | $as_echo "no" >&6; } | |
11044 | $bailout | |
11045 | elif test $pkg_failed = untried; then | |
11046 | $bailout | |
11047 | else | |
11048 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
11049 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
11050 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11051 | $as_echo "yes" >&6; } | |
11052 | HAVE_SALCK=yes | |
11053 | fi | |
11054 | CHECKCPG=yes | |
11055 | fi | |
11056 | ||
11057 | ||
11058 | ||
11059 | if test x$CHECKCONFDB = xyes; then | |
11060 | ||
11061 | pkg_failed=no | |
11062 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
11063 | $as_echo_n "checking for CONFDB... " >&6; } | |
11064 | ||
11065 | if test -n "$CONFDB_CFLAGS"; then | |
11066 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
11067 | elif test -n "$PKG_CONFIG"; then | |
11068 | if test -n "$PKG_CONFIG" && \ | |
11069 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11070 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11071 | ac_status=$? | |
11072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11073 | (exit $ac_status); }; then | |
11074 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
11075 | else | |
11076 | pkg_failed=yes | |
11077 | fi | |
11078 | else | |
11079 | pkg_failed=untried | |
11080 | fi | |
11081 | if test -n "$CONFDB_LIBS"; then | |
11082 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
11083 | elif test -n "$PKG_CONFIG"; then | |
11084 | if test -n "$PKG_CONFIG" && \ | |
11085 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11086 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11087 | ac_status=$? | |
11088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11089 | (exit $ac_status); }; then | |
11090 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
11091 | else | |
11092 | pkg_failed=yes | |
11093 | fi | |
11094 | else | |
11095 | pkg_failed=untried | |
11096 | fi | |
11097 | ||
11098 | ||
11099 | ||
11100 | if test $pkg_failed = yes; then | |
11101 | ||
11102 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11103 | _pkg_short_errors_supported=yes | |
11104 | else | |
11105 | _pkg_short_errors_supported=no | |
11106 | fi | |
11107 | if test $_pkg_short_errors_supported = yes; then | |
11108 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
11109 | else | |
11110 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
11111 | fi | |
11112 | # Put the nasty error message in config.log where it belongs | |
11113 | echo "$CONFDB_PKG_ERRORS" >&5 | |
11114 | ||
11115 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11116 | $as_echo "no" >&6; } | |
11117 | HAVE_CONFDB=no | |
11118 | elif test $pkg_failed = untried; then | |
11119 | HAVE_CONFDB=no | |
11120 | else | |
11121 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11122 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11123 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11124 | $as_echo "yes" >&6; } | |
11125 | HAVE_CONFDB=yes | |
11126 | fi | |
11127 | ||
11128 | ||
11129 | for ac_header in corosync/confdb.h | |
11130 | do | |
11131 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11133 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11134 | $as_echo_n "checking for $ac_header... " >&6; } | |
11135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11136 | $as_echo_n "(cached) " >&6 | |
11137 | fi | |
11138 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11139 | $as_echo "$as_val"'` | |
11140 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11141 | $as_echo "$ac_res" >&6; } | |
11142 | else | |
11143 | # Is the header compilable? | |
11144 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11145 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11146 | cat >conftest.$ac_ext <<_ACEOF | |
11147 | /* confdefs.h. */ | |
11148 | _ACEOF | |
11149 | cat confdefs.h >>conftest.$ac_ext | |
11150 | cat >>conftest.$ac_ext <<_ACEOF | |
11151 | /* end confdefs.h. */ | |
11152 | $ac_includes_default | |
11153 | #include <$ac_header> | |
11154 | _ACEOF | |
11155 | rm -f conftest.$ac_objext | |
11156 | if { (ac_try="$ac_compile" | |
11157 | case "(($ac_try" in | |
11158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11159 | *) ac_try_echo=$ac_try;; | |
11160 | esac | |
11161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11162 | $as_echo "$ac_try_echo") >&5 | |
11163 | (eval "$ac_compile") 2>conftest.er1 | |
11164 | ac_status=$? | |
11165 | grep -v '^ *+' conftest.er1 >conftest.err | |
11166 | rm -f conftest.er1 | |
11167 | cat conftest.err >&5 | |
11168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11169 | (exit $ac_status); } && { | |
11170 | test -z "$ac_c_werror_flag" || | |
11171 | test ! -s conftest.err | |
11172 | } && test -s conftest.$ac_objext; then | |
11173 | ac_header_compiler=yes | |
11174 | else | |
11175 | $as_echo "$as_me: failed program was:" >&5 | |
11176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11177 | ||
11178 | ac_header_compiler=no | |
11179 | fi | |
11180 | ||
11181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11182 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11183 | $as_echo "$ac_header_compiler" >&6; } | |
11184 | ||
11185 | # Is the header present? | |
11186 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11187 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11188 | cat >conftest.$ac_ext <<_ACEOF | |
11189 | /* confdefs.h. */ | |
11190 | _ACEOF | |
11191 | cat confdefs.h >>conftest.$ac_ext | |
11192 | cat >>conftest.$ac_ext <<_ACEOF | |
11193 | /* end confdefs.h. */ | |
11194 | #include <$ac_header> | |
11195 | _ACEOF | |
11196 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11197 | case "(($ac_try" in | |
11198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11199 | *) ac_try_echo=$ac_try;; | |
11200 | esac | |
11201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11202 | $as_echo "$ac_try_echo") >&5 | |
11203 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11204 | ac_status=$? | |
11205 | grep -v '^ *+' conftest.er1 >conftest.err | |
11206 | rm -f conftest.er1 | |
11207 | cat conftest.err >&5 | |
11208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11209 | (exit $ac_status); } >/dev/null && { | |
11210 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11211 | test ! -s conftest.err | |
11212 | }; then | |
11213 | ac_header_preproc=yes | |
11214 | else | |
11215 | $as_echo "$as_me: failed program was:" >&5 | |
11216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11217 | ||
11218 | ac_header_preproc=no | |
11219 | fi | |
11220 | ||
11221 | rm -f conftest.err conftest.$ac_ext | |
11222 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11223 | $as_echo "$ac_header_preproc" >&6; } | |
11224 | ||
11225 | # So? What about this header? | |
11226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11227 | yes:no: ) | |
11228 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11229 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11230 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11231 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11232 | ac_header_preproc=yes | |
11233 | ;; | |
11234 | no:yes:* ) | |
11235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11236 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11238 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11240 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11242 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11243 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11244 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11245 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11246 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11247 | ||
11248 | ;; | |
11249 | esac | |
11250 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11251 | $as_echo_n "checking for $ac_header... " >&6; } | |
11252 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11253 | $as_echo_n "(cached) " >&6 | |
11254 | else | |
11255 | eval "$as_ac_Header=\$ac_header_preproc" | |
11256 | fi | |
11257 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11258 | $as_echo "$as_val"'` | |
11259 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11260 | $as_echo "$ac_res" >&6; } | |
11261 | ||
11262 | fi | |
11263 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11264 | $as_echo "$as_val"'` | |
11265 | if test "x$as_val" = x""yes; then | |
11266 | cat >>confdefs.h <<_ACEOF | |
11267 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11268 | _ACEOF | |
11269 | HAVE_CONFDB_H=yes | |
11270 | else | |
11271 | HAVE_CONFDB_H=no | |
11272 | fi | |
11273 | ||
11274 | done | |
11275 | ||
11276 | ||
11277 | if test x$HAVE_CONFDB != xyes && \ | |
11278 | test x$HAVE_CONFDB_H = xyes; then | |
11279 | check_lib_no_libs confdb confdb_initialize | |
11280 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11281 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11282 | CONFDB_LIBS="-lconfdb" | |
11283 | HAVE_CONFDB=yes | |
11284 | fi | |
11285 | ||
11286 | if test x$BUILDCOROSYNC = xyes && \ | |
11287 | test x$HAVE_CONFDB != xyes && | |
11288 | test x$CLVMD != xall; then | |
11289 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11290 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11291 | { (exit 1); exit 1; }; } | |
11292 | fi | |
11293 | fi | |
11294 | ||
11295 | if test x$CHECKCPG = xyes; then | |
11296 | ||
11297 | pkg_failed=no | |
11298 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11299 | $as_echo_n "checking for CPG... " >&6; } | |
11300 | ||
11301 | if test -n "$CPG_CFLAGS"; then | |
11302 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11303 | elif test -n "$PKG_CONFIG"; then | |
11304 | if test -n "$PKG_CONFIG" && \ | |
11305 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11306 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11307 | ac_status=$? | |
11308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11309 | (exit $ac_status); }; then | |
11310 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11311 | else | |
11312 | pkg_failed=yes | |
11313 | fi | |
11314 | else | |
11315 | pkg_failed=untried | |
11316 | fi | |
11317 | if test -n "$CPG_LIBS"; then | |
11318 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11319 | elif test -n "$PKG_CONFIG"; then | |
11320 | if test -n "$PKG_CONFIG" && \ | |
11321 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11322 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11323 | ac_status=$? | |
11324 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11325 | (exit $ac_status); }; then | |
11326 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11327 | else | |
11328 | pkg_failed=yes | |
11329 | fi | |
11330 | else | |
11331 | pkg_failed=untried | |
11332 | fi | |
11333 | ||
11334 | ||
11335 | ||
11336 | if test $pkg_failed = yes; then | |
11337 | ||
11338 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11339 | _pkg_short_errors_supported=yes | |
11340 | else | |
11341 | _pkg_short_errors_supported=no | |
11342 | fi | |
11343 | if test $_pkg_short_errors_supported = yes; then | |
11344 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11345 | else | |
11346 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11347 | fi | |
11348 | # Put the nasty error message in config.log where it belongs | |
11349 | echo "$CPG_PKG_ERRORS" >&5 | |
11350 | ||
11351 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11352 | $as_echo "no" >&6; } | |
11353 | $bailout | |
11354 | elif test $pkg_failed = untried; then | |
11355 | $bailout | |
11356 | else | |
11357 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11358 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11359 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11360 | $as_echo "yes" >&6; } | |
11361 | HAVE_CPG=yes | |
11362 | fi | |
11363 | fi | |
11364 | ||
11365 | if test x$CHECKDLM = xyes; then | |
11366 | ||
11367 | pkg_failed=no | |
11368 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11369 | $as_echo_n "checking for DLM... " >&6; } | |
11370 | ||
11371 | if test -n "$DLM_CFLAGS"; then | |
11372 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11373 | elif test -n "$PKG_CONFIG"; then | |
11374 | if test -n "$PKG_CONFIG" && \ | |
11375 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11376 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11377 | ac_status=$? | |
11378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11379 | (exit $ac_status); }; then | |
11380 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11381 | else | |
11382 | pkg_failed=yes | |
11383 | fi | |
11384 | else | |
11385 | pkg_failed=untried | |
11386 | fi | |
11387 | if test -n "$DLM_LIBS"; then | |
11388 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11389 | elif test -n "$PKG_CONFIG"; then | |
11390 | if test -n "$PKG_CONFIG" && \ | |
11391 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11392 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11393 | ac_status=$? | |
11394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11395 | (exit $ac_status); }; then | |
11396 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11397 | else | |
11398 | pkg_failed=yes | |
11399 | fi | |
11400 | else | |
11401 | pkg_failed=untried | |
11402 | fi | |
11403 | ||
11404 | ||
11405 | ||
11406 | if test $pkg_failed = yes; then | |
11407 | ||
11408 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11409 | _pkg_short_errors_supported=yes | |
11410 | else | |
11411 | _pkg_short_errors_supported=no | |
11412 | fi | |
11413 | if test $_pkg_short_errors_supported = yes; then | |
11414 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11415 | else | |
11416 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11417 | fi | |
11418 | # Put the nasty error message in config.log where it belongs | |
11419 | echo "$DLM_PKG_ERRORS" >&5 | |
11420 | ||
11421 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11422 | $as_echo "no" >&6; } | |
11423 | NOTFOUND=0 | |
11424 | ||
11425 | for ac_header in libdlm.h | |
11426 | do | |
11427 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11429 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11430 | $as_echo_n "checking for $ac_header... " >&6; } | |
11431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11432 | $as_echo_n "(cached) " >&6 | |
11433 | fi | |
11434 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11435 | $as_echo "$as_val"'` | |
11436 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11437 | $as_echo "$ac_res" >&6; } | |
11438 | else | |
11439 | # Is the header compilable? | |
11440 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11441 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11442 | cat >conftest.$ac_ext <<_ACEOF | |
11443 | /* confdefs.h. */ | |
11444 | _ACEOF | |
11445 | cat confdefs.h >>conftest.$ac_ext | |
11446 | cat >>conftest.$ac_ext <<_ACEOF | |
11447 | /* end confdefs.h. */ | |
11448 | $ac_includes_default | |
11449 | #include <$ac_header> | |
11450 | _ACEOF | |
11451 | rm -f conftest.$ac_objext | |
11452 | if { (ac_try="$ac_compile" | |
11453 | case "(($ac_try" in | |
11454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11455 | *) ac_try_echo=$ac_try;; | |
11456 | esac | |
11457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11458 | $as_echo "$ac_try_echo") >&5 | |
11459 | (eval "$ac_compile") 2>conftest.er1 | |
11460 | ac_status=$? | |
11461 | grep -v '^ *+' conftest.er1 >conftest.err | |
11462 | rm -f conftest.er1 | |
11463 | cat conftest.err >&5 | |
11464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11465 | (exit $ac_status); } && { | |
11466 | test -z "$ac_c_werror_flag" || | |
11467 | test ! -s conftest.err | |
11468 | } && test -s conftest.$ac_objext; then | |
11469 | ac_header_compiler=yes | |
11470 | else | |
11471 | $as_echo "$as_me: failed program was:" >&5 | |
11472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11473 | ||
11474 | ac_header_compiler=no | |
11475 | fi | |
11476 | ||
11477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11478 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11479 | $as_echo "$ac_header_compiler" >&6; } | |
11480 | ||
11481 | # Is the header present? | |
11482 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11483 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11484 | cat >conftest.$ac_ext <<_ACEOF | |
11485 | /* confdefs.h. */ | |
11486 | _ACEOF | |
11487 | cat confdefs.h >>conftest.$ac_ext | |
11488 | cat >>conftest.$ac_ext <<_ACEOF | |
11489 | /* end confdefs.h. */ | |
11490 | #include <$ac_header> | |
11491 | _ACEOF | |
11492 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11493 | case "(($ac_try" in | |
11494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11495 | *) ac_try_echo=$ac_try;; | |
11496 | esac | |
11497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11498 | $as_echo "$ac_try_echo") >&5 | |
11499 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11500 | ac_status=$? | |
11501 | grep -v '^ *+' conftest.er1 >conftest.err | |
11502 | rm -f conftest.er1 | |
11503 | cat conftest.err >&5 | |
11504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11505 | (exit $ac_status); } >/dev/null && { | |
11506 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11507 | test ! -s conftest.err | |
11508 | }; then | |
11509 | ac_header_preproc=yes | |
11510 | else | |
11511 | $as_echo "$as_me: failed program was:" >&5 | |
11512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11513 | ||
11514 | ac_header_preproc=no | |
11515 | fi | |
11516 | ||
11517 | rm -f conftest.err conftest.$ac_ext | |
11518 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11519 | $as_echo "$ac_header_preproc" >&6; } | |
11520 | ||
11521 | # So? What about this header? | |
11522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11523 | yes:no: ) | |
11524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11525 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11527 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11528 | ac_header_preproc=yes | |
11529 | ;; | |
11530 | no:yes:* ) | |
11531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11532 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11534 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11536 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11538 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11540 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11542 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11543 | ||
11544 | ;; | |
11545 | esac | |
11546 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11547 | $as_echo_n "checking for $ac_header... " >&6; } | |
11548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11549 | $as_echo_n "(cached) " >&6 | |
11550 | else | |
11551 | eval "$as_ac_Header=\$ac_header_preproc" | |
11552 | fi | |
11553 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11554 | $as_echo "$as_val"'` | |
11555 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11556 | $as_echo "$ac_res" >&6; } | |
11557 | ||
11558 | fi | |
11559 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11560 | $as_echo "$as_val"'` | |
11561 | if test "x$as_val" = x""yes; then | |
11562 | cat >>confdefs.h <<_ACEOF | |
11563 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11564 | _ACEOF | |
11565 | ||
11566 | else | |
11567 | $bailout | |
11568 | fi | |
11569 | ||
11570 | done | |
11571 | ||
11572 | check_lib_no_libs dlm dlm_lock -lpthread | |
11573 | if test $NOTFOUND = 0; then | |
11574 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11575 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11576 | DLM_LIBS="-ldlm -lpthread" | |
11577 | HAVE_DLM=yes | |
11578 | fi | |
11579 | elif test $pkg_failed = untried; then | |
11580 | NOTFOUND=0 | |
11581 | ||
11582 | for ac_header in libdlm.h | |
11583 | do | |
11584 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11586 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11587 | $as_echo_n "checking for $ac_header... " >&6; } | |
11588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11589 | $as_echo_n "(cached) " >&6 | |
11590 | fi | |
11591 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11592 | $as_echo "$as_val"'` | |
11593 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11594 | $as_echo "$ac_res" >&6; } | |
11595 | else | |
11596 | # Is the header compilable? | |
11597 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11598 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11599 | cat >conftest.$ac_ext <<_ACEOF | |
11600 | /* confdefs.h. */ | |
11601 | _ACEOF | |
11602 | cat confdefs.h >>conftest.$ac_ext | |
11603 | cat >>conftest.$ac_ext <<_ACEOF | |
11604 | /* end confdefs.h. */ | |
11605 | $ac_includes_default | |
11606 | #include <$ac_header> | |
11607 | _ACEOF | |
11608 | rm -f conftest.$ac_objext | |
11609 | if { (ac_try="$ac_compile" | |
11610 | case "(($ac_try" in | |
11611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11612 | *) ac_try_echo=$ac_try;; | |
11613 | esac | |
11614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11615 | $as_echo "$ac_try_echo") >&5 | |
11616 | (eval "$ac_compile") 2>conftest.er1 | |
11617 | ac_status=$? | |
11618 | grep -v '^ *+' conftest.er1 >conftest.err | |
11619 | rm -f conftest.er1 | |
11620 | cat conftest.err >&5 | |
11621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11622 | (exit $ac_status); } && { | |
11623 | test -z "$ac_c_werror_flag" || | |
11624 | test ! -s conftest.err | |
11625 | } && test -s conftest.$ac_objext; then | |
11626 | ac_header_compiler=yes | |
11627 | else | |
11628 | $as_echo "$as_me: failed program was:" >&5 | |
11629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11630 | ||
11631 | ac_header_compiler=no | |
11632 | fi | |
11633 | ||
11634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11635 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11636 | $as_echo "$ac_header_compiler" >&6; } | |
11637 | ||
11638 | # Is the header present? | |
11639 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11640 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11641 | cat >conftest.$ac_ext <<_ACEOF | |
11642 | /* confdefs.h. */ | |
11643 | _ACEOF | |
11644 | cat confdefs.h >>conftest.$ac_ext | |
11645 | cat >>conftest.$ac_ext <<_ACEOF | |
11646 | /* end confdefs.h. */ | |
11647 | #include <$ac_header> | |
11648 | _ACEOF | |
11649 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11650 | case "(($ac_try" in | |
11651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11652 | *) ac_try_echo=$ac_try;; | |
11653 | esac | |
11654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11655 | $as_echo "$ac_try_echo") >&5 | |
11656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11657 | ac_status=$? | |
11658 | grep -v '^ *+' conftest.er1 >conftest.err | |
11659 | rm -f conftest.er1 | |
11660 | cat conftest.err >&5 | |
11661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11662 | (exit $ac_status); } >/dev/null && { | |
11663 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11664 | test ! -s conftest.err | |
11665 | }; then | |
11666 | ac_header_preproc=yes | |
11667 | else | |
11668 | $as_echo "$as_me: failed program was:" >&5 | |
11669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11670 | ||
11671 | ac_header_preproc=no | |
11672 | fi | |
11673 | ||
11674 | rm -f conftest.err conftest.$ac_ext | |
11675 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11676 | $as_echo "$ac_header_preproc" >&6; } | |
11677 | ||
11678 | # So? What about this header? | |
11679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11680 | yes:no: ) | |
11681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11682 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11684 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11685 | ac_header_preproc=yes | |
11686 | ;; | |
11687 | no:yes:* ) | |
11688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11689 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11691 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11693 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11695 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11697 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11699 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11700 | ||
11701 | ;; | |
11702 | esac | |
11703 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11704 | $as_echo_n "checking for $ac_header... " >&6; } | |
11705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11706 | $as_echo_n "(cached) " >&6 | |
11707 | else | |
11708 | eval "$as_ac_Header=\$ac_header_preproc" | |
11709 | fi | |
11710 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11711 | $as_echo "$as_val"'` | |
11712 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11713 | $as_echo "$ac_res" >&6; } | |
11714 | ||
11715 | fi | |
11716 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11717 | $as_echo "$as_val"'` | |
11718 | if test "x$as_val" = x""yes; then | |
11719 | cat >>confdefs.h <<_ACEOF | |
11720 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11721 | _ACEOF | |
11722 | ||
11723 | else | |
11724 | $bailout | |
11725 | fi | |
11726 | ||
11727 | done | |
11728 | ||
11729 | check_lib_no_libs dlm dlm_lock -lpthread | |
11730 | if test $NOTFOUND = 0; then | |
11731 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11732 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11733 | DLM_LIBS="-ldlm -lpthread" | |
11734 | HAVE_DLM=yes | |
11735 | fi | |
11736 | else | |
11737 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11738 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11739 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11740 | $as_echo "yes" >&6; } | |
11741 | HAVE_DLM=yes | |
11742 | fi | |
11743 | fi | |
11744 | ||
11745 | if test x$CLVMD = xall; then | |
8c222979 | 11746 | CLVMD=none |
a946372e AK |
11747 | if test x$HAVE_CCS = xyes && \ |
11748 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
11749 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
11750 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
11751 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
11752 | fi |
11753 | if test x$HAVE_CMAN = xyes && \ | |
11754 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
11755 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
11756 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
11757 | CLVMD="$CLVMD,cman" | |
a946372e AK |
11758 | fi |
11759 | if test x$HAVE_COROSYNC = xyes && \ | |
11760 | test x$HAVE_QUORUM = xyes && \ | |
11761 | test x$HAVE_CPG = xyes && \ | |
11762 | test x$HAVE_DLM = xyes && \ | |
11763 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
11764 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
11765 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
11766 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
11767 | fi |
11768 | if test x$HAVE_COROSYNC = xyes && \ | |
11769 | test x$HAVE_CPG = xyes && \ | |
11770 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
11771 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
11772 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
11773 | CLVMD="$CLVMD,openais" | |
11774 | fi | |
11775 | if test x$CLVMD = xnone; then | |
11776 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
11777 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 11778 | fi |
a946372e AK |
11779 | fi |
11780 | ||
11781 | ################################################################################ | |
66fd4529 AK |
11782 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11783 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11784 | # Check whether --enable-cmirrord was given. | |
11785 | if test "${enable_cmirrord+set}" = set; then | |
11786 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11787 | else | |
11788 | CMIRRORD=no | |
11789 | fi | |
11790 | ||
11791 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11792 | $as_echo "$CMIRRORD" >&6; } | |
11793 | ||
11794 | BUILD_CMIRRORD=$CMIRRORD | |
11795 | ||
11796 | ################################################################################ | |
11797 | ||
11798 | ||
11799 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11800 | ||
11801 | # Check whether --with-cmirrord-pidfile was given. | |
11802 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11803 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11804 | #define CMIRRORD_PIDFILE "$withval" | |
11805 | _ACEOF | |
11806 | ||
11807 | else | |
11808 | cat >>confdefs.h <<_ACEOF | |
11809 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11810 | _ACEOF | |
11811 | ||
a946372e AK |
11812 | fi |
11813 | ||
66fd4529 | 11814 | fi |
a946372e | 11815 | |
66fd4529 AK |
11816 | ################################################################################ |
11817 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
11818 | if test x$PKGCONFIG_INIT != x1; then |
11819 | pkg_config_init | |
11820 | fi | |
11821 | ||
11822 | pkg_failed=no | |
11823 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
11824 | $as_echo_n "checking for SACKPT... " >&6; } | |
11825 | ||
11826 | if test -n "$SACKPT_CFLAGS"; then | |
11827 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
11828 | elif test -n "$PKG_CONFIG"; then | |
11829 | if test -n "$PKG_CONFIG" && \ | |
11830 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11831 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11832 | ac_status=$? | |
11833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11834 | (exit $ac_status); }; then | |
11835 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
11836 | else | |
11837 | pkg_failed=yes | |
11838 | fi | |
11839 | else | |
11840 | pkg_failed=untried | |
11841 | fi | |
11842 | if test -n "$SACKPT_LIBS"; then | |
11843 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
11844 | elif test -n "$PKG_CONFIG"; then | |
11845 | if test -n "$PKG_CONFIG" && \ | |
11846 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11847 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11848 | ac_status=$? | |
11849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11850 | (exit $ac_status); }; then | |
11851 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
11852 | else | |
11853 | pkg_failed=yes | |
11854 | fi | |
11855 | else | |
11856 | pkg_failed=untried | |
11857 | fi | |
11858 | ||
11859 | ||
11860 | ||
11861 | if test $pkg_failed = yes; then | |
11862 | ||
11863 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11864 | _pkg_short_errors_supported=yes | |
11865 | else | |
11866 | _pkg_short_errors_supported=no | |
11867 | fi | |
11868 | if test $_pkg_short_errors_supported = yes; then | |
11869 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
11870 | else | |
11871 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
11872 | fi | |
11873 | # Put the nasty error message in config.log where it belongs | |
11874 | echo "$SACKPT_PKG_ERRORS" >&5 | |
11875 | ||
11876 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
11877 | ||
11878 | $SACKPT_PKG_ERRORS | |
11879 | ||
11880 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11881 | installed software in a non-standard prefix. | |
11882 | ||
11883 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11884 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11885 | See the pkg-config man page for more details. | |
11886 | " >&5 | |
11887 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: | |
11888 | ||
11889 | $SACKPT_PKG_ERRORS | |
11890 | ||
11891 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11892 | installed software in a non-standard prefix. | |
11893 | ||
11894 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11895 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11896 | See the pkg-config man page for more details. | |
11897 | " >&2;} | |
11898 | { (exit 1); exit 1; }; } | |
11899 | elif test $pkg_failed = untried; then | |
11900 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11901 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11902 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11903 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11904 | path to pkg-config. | |
11905 | ||
11906 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11907 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11908 | See the pkg-config man page for more details. | |
11909 | ||
11910 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11911 | See \`config.log' for more details." >&5 | |
11912 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11913 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11914 | path to pkg-config. | |
11915 | ||
11916 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11917 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11918 | See the pkg-config man page for more details. | |
11919 | ||
11920 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11921 | See \`config.log' for more details." >&2;} | |
11922 | { (exit 1); exit 1; }; }; } | |
11923 | else | |
11924 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
11925 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
11926 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11927 | $as_echo "yes" >&6; } | |
11928 | : | |
11929 | fi | |
11930 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
11931 | |
11932 | pkg_failed=no | |
11933 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11934 | $as_echo_n "checking for CPG... " >&6; } | |
11935 | ||
11936 | if test -n "$CPG_CFLAGS"; then | |
11937 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11938 | elif test -n "$PKG_CONFIG"; then | |
11939 | if test -n "$PKG_CONFIG" && \ | |
11940 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11941 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11942 | ac_status=$? | |
11943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11944 | (exit $ac_status); }; then | |
11945 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11946 | else | |
11947 | pkg_failed=yes | |
11948 | fi | |
11949 | else | |
11950 | pkg_failed=untried | |
11951 | fi | |
11952 | if test -n "$CPG_LIBS"; then | |
11953 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11954 | elif test -n "$PKG_CONFIG"; then | |
11955 | if test -n "$PKG_CONFIG" && \ | |
11956 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11957 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11958 | ac_status=$? | |
11959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11960 | (exit $ac_status); }; then | |
11961 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11962 | else | |
11963 | pkg_failed=yes | |
11964 | fi | |
11965 | else | |
11966 | pkg_failed=untried | |
11967 | fi | |
11968 | ||
11969 | ||
11970 | ||
11971 | if test $pkg_failed = yes; then | |
11972 | ||
11973 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11974 | _pkg_short_errors_supported=yes | |
11975 | else | |
11976 | _pkg_short_errors_supported=no | |
11977 | fi | |
11978 | if test $_pkg_short_errors_supported = yes; then | |
11979 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11980 | else | |
11981 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11982 | fi | |
11983 | # Put the nasty error message in config.log where it belongs | |
11984 | echo "$CPG_PKG_ERRORS" >&5 | |
11985 | ||
90c80887 AK |
11986 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
11987 | ||
11988 | $CPG_PKG_ERRORS | |
11989 | ||
11990 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11991 | installed software in a non-standard prefix. | |
11992 | ||
11993 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11994 | and CPG_LIBS to avoid the need to call pkg-config. | |
11995 | See the pkg-config man page for more details. | |
11996 | " >&5 | |
11997 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: | |
11998 | ||
11999 | $CPG_PKG_ERRORS | |
12000 | ||
12001 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12002 | installed software in a non-standard prefix. | |
12003 | ||
12004 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12005 | and CPG_LIBS to avoid the need to call pkg-config. | |
12006 | See the pkg-config man page for more details. | |
12007 | " >&2;} | |
12008 | { (exit 1); exit 1; }; } | |
a946372e | 12009 | elif test $pkg_failed = untried; then |
90c80887 AK |
12010 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12011 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12012 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
12013 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12014 | path to pkg-config. | |
12015 | ||
12016 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12017 | and CPG_LIBS to avoid the need to call pkg-config. | |
12018 | See the pkg-config man page for more details. | |
12019 | ||
12020 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12021 | See \`config.log' for more details." >&5 | |
12022 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
12023 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12024 | path to pkg-config. | |
12025 | ||
12026 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12027 | and CPG_LIBS to avoid the need to call pkg-config. | |
12028 | See the pkg-config man page for more details. | |
12029 | ||
12030 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12031 | See \`config.log' for more details." >&2;} | |
12032 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
12033 | else |
12034 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
12035 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
12036 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12037 | $as_echo "yes" >&6; } | |
12038 | : | |
12039 | fi | |
90c80887 | 12040 | fi |
a946372e AK |
12041 | fi |
12042 | ||
12043 | ################################################################################ | |
12044 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
12045 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
12046 | # Check whether --enable-debug was given. | |
12047 | if test "${enable_debug+set}" = set; then | |
12048 | enableval=$enable_debug; DEBUG=$enableval | |
12049 | else | |
12050 | DEBUG=no | |
12051 | fi | |
12052 | ||
12053 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
12054 | $as_echo "$DEBUG" >&6; } | |
12055 | ||
12056 | if test x$DEBUG = xyes; then | |
12057 | COPTIMISE_FLAG= | |
12058 | else | |
12059 | CSCOPE_CMD= | |
12060 | fi | |
12061 | ||
12062 | ################################################################################ | |
12063 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
12064 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
12065 | ||
12066 | # Check whether --with-optimisation was given. | |
12067 | if test "${with_optimisation+set}" = set; then | |
12068 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
12069 | fi | |
12070 | ||
12071 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
12072 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
12073 | ||
12074 | ################################################################################ | |
12075 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
12076 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
12077 | # Check whether --enable-profiling was given. | |
12078 | if test "${enable_profiling+set}" = set; then | |
5556819a | 12079 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 12080 | else |
5556819a | 12081 | PROFILING=no |
fddafd51 ZK |
12082 | fi |
12083 | ||
ec6a6fbe AK |
12084 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
12085 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
12086 | |
12087 | if test "x$PROFILING" = xyes; then | |
12088 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
12089 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 12090 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
12091 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12092 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12093 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 12094 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12095 | else |
12096 | case $LCOV in | |
12097 | [\\/]* | ?:[\\/]*) | |
12098 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
12099 | ;; | |
12100 | *) | |
12101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12102 | for as_dir in $PATH | |
12103 | do | |
12104 | IFS=$as_save_IFS | |
12105 | test -z "$as_dir" && as_dir=. | |
12106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12108 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12109 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12110 | break 2 |
12111 | fi | |
12112 | done | |
12113 | done | |
12114 | IFS=$as_save_IFS | |
12115 | ||
12116 | ;; | |
12117 | esac | |
12118 | fi | |
12119 | LCOV=$ac_cv_path_LCOV | |
12120 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
12121 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
12122 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 12123 | else |
ec6a6fbe AK |
12124 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12125 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12126 | fi |
12127 | ||
12128 | ||
5556819a | 12129 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 12130 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
12131 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12132 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12133 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 12134 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12135 | else |
12136 | case $GENHTML in | |
12137 | [\\/]* | ?:[\\/]*) | |
12138 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
12139 | ;; | |
12140 | *) | |
12141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12142 | for as_dir in $PATH | |
12143 | do | |
12144 | IFS=$as_save_IFS | |
12145 | test -z "$as_dir" && as_dir=. | |
12146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12148 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12149 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12150 | break 2 |
12151 | fi | |
12152 | done | |
12153 | done | |
12154 | IFS=$as_save_IFS | |
12155 | ||
12156 | ;; | |
12157 | esac | |
12158 | fi | |
12159 | GENHTML=$ac_cv_path_GENHTML | |
12160 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
12161 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
12162 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 12163 | else |
ec6a6fbe AK |
12164 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12165 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12166 | fi |
12167 | ||
12168 | ||
fd4728e1 | 12169 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
12170 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
12171 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
12172 | { (exit 1); exit 1; }; } |
12173 | fi | |
fd4728e1 ZK |
12174 | # Extract the first word of "genpng", so it can be a program name with args. |
12175 | set dummy genpng; ac_word=$2 | |
12176 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12177 | $as_echo_n "checking for $ac_word... " >&6; } | |
12178 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
12179 | $as_echo_n "(cached) " >&6 | |
12180 | else | |
12181 | case $GENPNG in | |
12182 | [\\/]* | ?:[\\/]*) | |
12183 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
12184 | ;; | |
12185 | *) | |
12186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12187 | for as_dir in $PATH | |
12188 | do | |
12189 | IFS=$as_save_IFS | |
12190 | test -z "$as_dir" && as_dir=. | |
12191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12193 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
12194 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12195 | break 2 | |
12196 | fi | |
12197 | done | |
12198 | done | |
12199 | IFS=$as_save_IFS | |
12200 | ||
12201 | ;; | |
12202 | esac | |
12203 | fi | |
12204 | GENPNG=$ac_cv_path_GENPNG | |
12205 | if test -n "$GENPNG"; then | |
12206 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
12207 | $as_echo "$GENPNG" >&6; } | |
12208 | else | |
12209 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12210 | $as_echo "no" >&6; } | |
12211 | fi | |
12212 | ||
12213 | ||
12214 | if test -n "$GENPNG"; then | |
12215 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
12216 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
12217 | if $GENPNG --help > /dev/null 2>&1 ; then | |
12218 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
12219 | $as_echo "ok" >&6; } | |
12220 | GENHTML="$GENHTML --frames" | |
12221 | else | |
12222 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
12223 | $as_echo "not supported" >&6; } | |
12224 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
12225 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
12226 | GENPNG= | |
12227 | fi | |
12228 | fi | |
5556819a | 12229 | fi |
d0191583 JM |
12230 | |
12231 | ################################################################################ | |
ec6a6fbe AK |
12232 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
12233 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
12234 | # Check whether --enable-devmapper was given. |
12235 | if test "${enable_devmapper+set}" = set; then | |
12236 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
12237 | fi |
12238 | ||
ec6a6fbe AK |
12239 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
12240 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
12241 | |
12242 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
12243 | |
12244 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 12245 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
12246 | _ACEOF |
12247 | ||
12248 | fi | |
12249 | ||
a5f46f6a AK |
12250 | ################################################################################ |
12251 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
12252 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
12253 | # Check whether --enable-udev_sync was given. | |
12254 | if test "${enable_udev_sync+set}" = set; then | |
12255 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
12256 | else | |
12257 | UDEV_SYNC=no | |
12258 | fi | |
12259 | ||
12260 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
12261 | $as_echo "$UDEV_SYNC" >&6; } | |
12262 | ||
90c80887 AK |
12263 | if test x$UDEV_SYNC = xyes; then |
12264 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
12265 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
12266 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
12267 | $as_echo_n "(cached) " >&6 | |
12268 | else | |
12269 | ac_check_lib_save_LIBS=$LIBS | |
12270 | LIBS="-ludev $LIBS" | |
12271 | cat >conftest.$ac_ext <<_ACEOF | |
12272 | /* confdefs.h. */ | |
12273 | _ACEOF | |
12274 | cat confdefs.h >>conftest.$ac_ext | |
12275 | cat >>conftest.$ac_ext <<_ACEOF | |
12276 | /* end confdefs.h. */ | |
12277 | ||
12278 | /* Override any GCC internal prototype to avoid an error. | |
12279 | Use char because int might match the return type of a GCC | |
12280 | builtin and then its argument prototype would still apply. */ | |
12281 | #ifdef __cplusplus | |
12282 | extern "C" | |
12283 | #endif | |
12284 | char udev_queue_get_udev_is_active (); | |
12285 | int | |
12286 | main () | |
12287 | { | |
12288 | return udev_queue_get_udev_is_active (); | |
12289 | ; | |
12290 | return 0; | |
12291 | } | |
12292 | _ACEOF | |
12293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12294 | if { (ac_try="$ac_link" | |
12295 | case "(($ac_try" in | |
12296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12297 | *) ac_try_echo=$ac_try;; | |
12298 | esac | |
12299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12300 | $as_echo "$ac_try_echo") >&5 | |
12301 | (eval "$ac_link") 2>conftest.er1 | |
12302 | ac_status=$? | |
12303 | grep -v '^ *+' conftest.er1 >conftest.err | |
12304 | rm -f conftest.er1 | |
12305 | cat conftest.err >&5 | |
12306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12307 | (exit $ac_status); } && { | |
12308 | test -z "$ac_c_werror_flag" || | |
12309 | test ! -s conftest.err | |
12310 | } && test -s conftest$ac_exeext && { | |
12311 | test "$cross_compiling" = yes || | |
12312 | $as_test_x conftest$ac_exeext | |
12313 | }; then | |
12314 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
12315 | else | |
12316 | $as_echo "$as_me: failed program was:" >&5 | |
12317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12318 | ||
12319 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
12320 | fi | |
12321 | ||
12322 | rm -rf conftest.dSYM | |
12323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12324 | conftest$ac_exeext conftest.$ac_ext | |
12325 | LIBS=$ac_check_lib_save_LIBS | |
12326 | fi | |
12327 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
12328 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
12329 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
5161ecb9 | 12330 | UDEV_LIBS="-ludev" |
90c80887 | 12331 | else |
5161ecb9 PR |
12332 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
12333 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
12334 | { (exit 1); exit 1; }; } | |
90c80887 AK |
12335 | fi |
12336 | ||
12337 | ||
90c80887 | 12338 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 12339 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
12340 | _ACEOF |
12341 | ||
90c80887 AK |
12342 | fi |
12343 | ||
5161ecb9 PR |
12344 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
12345 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
12346 | # Check whether --enable-udev_rules was given. | |
12347 | if test "${enable_udev_rules+set}" = set; then | |
12348 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
12349 | else | |
12350 | UDEV_RULES=$UDEV_SYNC | |
12351 | fi | |
12352 | ||
12353 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
12354 | $as_echo "$UDEV_RULES" >&6; } | |
12355 | ||
93bd259b AK |
12356 | ################################################################################ |
12357 | # Check whether --enable-compat was given. | |
12358 | if test "${enable_compat+set}" = set; then | |
12359 | enableval=$enable_compat; DM_COMPAT=$enableval | |
12360 | else | |
12361 | DM_COMPAT=no | |
12362 | fi | |
12363 | ||
12364 | ||
95eaa683 AK |
12365 | ################################################################################ |
12366 | # Check whether --enable-units-compat was given. | |
12367 | if test "${enable_units_compat+set}" = set; then | |
12368 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
12369 | else | |
12370 | UNITS_COMPAT=no | |
12371 | fi | |
12372 | ||
12373 | ||
12374 | if test x$UNITS_COMPAT = xyes; then | |
12375 | ||
12376 | cat >>confdefs.h <<\_ACEOF | |
12377 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
12378 | _ACEOF | |
12379 | ||
12380 | fi | |
12381 | ||
93bd259b AK |
12382 | ################################################################################ |
12383 | # Check whether --enable-ioctl was given. | |
12384 | if test "${enable_ioctl+set}" = set; then | |
12385 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
12386 | fi | |
12387 | ||
12388 | ||
d0191583 | 12389 | ################################################################################ |
ec6a6fbe AK |
12390 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
12391 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
12392 | # Check whether --enable-o_direct was given. |
12393 | if test "${enable_o_direct+set}" = set; then | |
12394 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 12395 | fi |
ad6254c5 | 12396 | |
ec6a6fbe AK |
12397 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
12398 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 12399 | |
d0191583 | 12400 | if test x$ODIRECT = xyes; then |
ad6254c5 | 12401 | |
d0191583 JM |
12402 | cat >>confdefs.h <<\_ACEOF |
12403 | #define O_DIRECT_SUPPORT 1 | |
12404 | _ACEOF | |
ad6254c5 | 12405 | |
d0191583 | 12406 | fi |
ad6254c5 | 12407 | |
572fefeb AK |
12408 | ################################################################################ |
12409 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
12410 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
12411 | # Check whether --enable-applib was given. | |
12412 | if test "${enable_applib+set}" = set; then | |
12413 | enableval=$enable_applib; APPLIB=$enableval | |
12414 | else | |
12415 | APPLIB=no | |
12416 | fi | |
12417 | ||
12418 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12419 | $as_echo "$APPLIB" >&6; } | |
12420 | ||
12421 | test x$APPLIB = xyes \ | |
12422 | && LVM2APP_LIB=-llvm2app \ | |
12423 | || LVM2APP_LIB= | |
12424 | ||
d0191583 | 12425 | ################################################################################ |
ec6a6fbe AK |
12426 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12427 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12428 | # Check whether --enable-cmdlib was given. |
12429 | if test "${enable_cmdlib+set}" = set; then | |
12430 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12431 | else |
d0191583 JM |
12432 | CMDLIB=no |
12433 | fi | |
8a2fc586 | 12434 | |
ec6a6fbe AK |
12435 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12436 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12437 | |
2a9a80c9 | 12438 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12439 | && LVM2CMD_LIB=-llvm2cmd \ |
12440 | || LVM2CMD_LIB= | |
12441 | ||
93bd259b AK |
12442 | ################################################################################ |
12443 | # Check whether --enable-pkgconfig was given. | |
12444 | if test "${enable_pkgconfig+set}" = set; then | |
12445 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12446 | else | |
12447 | PKGCONFIG=no | |
12448 | fi | |
12449 | ||
2a9a80c9 | 12450 | |
23b059e7 ZK |
12451 | ################################################################################ |
12452 | # Check whether --enable-write_install was given. | |
12453 | if test "${enable_write_install+set}" = set; then | |
12454 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
12455 | else | |
12456 | WRITE_INSTALL=no | |
12457 | fi | |
12458 | ||
12459 | ||
d0191583 | 12460 | ################################################################################ |
ec6a6fbe AK |
12461 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12462 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12463 | # Check whether --enable-fsadm was given. |
12464 | if test "${enable_fsadm+set}" = set; then | |
12465 | enableval=$enable_fsadm; FSADM=$enableval | |
12466 | fi | |
8a2fc586 | 12467 | |
ec6a6fbe AK |
12468 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12469 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12470 | |
d0191583 | 12471 | ################################################################################ |
ec6a6fbe AK |
12472 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12473 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12474 | # Check whether --enable-dmeventd was given. |
12475 | if test "${enable_dmeventd+set}" = set; then | |
12476 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12477 | fi | |
ad6254c5 | 12478 | |
ec6a6fbe AK |
12479 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12480 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12481 | |
93bd259b AK |
12482 | BUILD_DMEVENTD=$DMEVENTD |
12483 | ||
2a9a80c9 PR |
12484 | if test x$DMEVENTD = xyes; then |
12485 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12486 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12487 | " >&5 |
ec6a6fbe | 12488 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12489 | " >&2;} |
d0191583 | 12490 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12491 | fi |
12492 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12493 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12494 | " >&5 |
ec6a6fbe | 12495 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12496 | " >&2;} |
12497 | { (exit 1); exit 1; }; } | |
12498 | fi | |
ad6254c5 | 12499 | fi |
7a197a62 | 12500 | |
d0191583 JM |
12501 | if test x$DMEVENTD = xyes; then |
12502 | ||
12503 | cat >>confdefs.h <<\_ACEOF | |
12504 | #define DMEVENTD 1 | |
ad6254c5 AK |
12505 | _ACEOF |
12506 | ||
ad6254c5 | 12507 | fi |
93bd259b AK |
12508 | |
12509 | ################################################################################ | |
12510 | ||
ec6a6fbe AK |
12511 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12512 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12513 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12514 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12515 | else |
12516 | ac_check_lib_save_LIBS=$LIBS | |
12517 | LIBS="-lc $LIBS" | |
12518 | cat >conftest.$ac_ext <<_ACEOF | |
12519 | /* confdefs.h. */ | |
12520 | _ACEOF | |
12521 | cat confdefs.h >>conftest.$ac_ext | |
12522 | cat >>conftest.$ac_ext <<_ACEOF | |
12523 | /* end confdefs.h. */ | |
12524 | ||
12525 | /* Override any GCC internal prototype to avoid an error. | |
12526 | Use char because int might match the return type of a GCC | |
12527 | builtin and then its argument prototype would still apply. */ | |
12528 | #ifdef __cplusplus | |
12529 | extern "C" | |
12530 | #endif | |
12531 | char getline (); | |
12532 | int | |
12533 | main () | |
12534 | { | |
12535 | return getline (); | |
12536 | ; | |
12537 | return 0; | |
12538 | } | |
12539 | _ACEOF | |
12540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12541 | if { (ac_try="$ac_link" | |
12542 | case "(($ac_try" in | |
12543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12544 | *) ac_try_echo=$ac_try;; | |
12545 | esac | |
ec6a6fbe AK |
12546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12547 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12548 | (eval "$ac_link") 2>conftest.er1 |
12549 | ac_status=$? | |
12550 | grep -v '^ *+' conftest.er1 >conftest.err | |
12551 | rm -f conftest.er1 | |
12552 | cat conftest.err >&5 | |
ec6a6fbe | 12553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12554 | (exit $ac_status); } && { |
12555 | test -z "$ac_c_werror_flag" || | |
12556 | test ! -s conftest.err | |
ec6a6fbe AK |
12557 | } && test -s conftest$ac_exeext && { |
12558 | test "$cross_compiling" = yes || | |
12559 | $as_test_x conftest$ac_exeext | |
12560 | }; then | |
93bd259b AK |
12561 | ac_cv_lib_c_getline=yes |
12562 | else | |
ec6a6fbe | 12563 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12564 | sed 's/^/| /' conftest.$ac_ext >&5 |
12565 | ||
12566 | ac_cv_lib_c_getline=no | |
12567 | fi | |
12568 | ||
ec6a6fbe | 12569 | rm -rf conftest.dSYM |
93bd259b AK |
12570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12571 | conftest$ac_exeext conftest.$ac_ext | |
12572 | LIBS=$ac_check_lib_save_LIBS | |
12573 | fi | |
ec6a6fbe AK |
12574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12575 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12576 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12577 | |
12578 | cat >>confdefs.h <<\_ACEOF | |
12579 | #define HAVE_GETLINE 1 | |
12580 | _ACEOF | |
12581 | ||
12582 | fi | |
12583 | ||
12584 | ||
12585 | ################################################################################ | |
12586 | ||
ec6a6fbe AK |
12587 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12588 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12589 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12590 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12591 | else |
12592 | ac_check_lib_save_LIBS=$LIBS | |
12593 | LIBS="-lc $LIBS" | |
12594 | cat >conftest.$ac_ext <<_ACEOF | |
12595 | /* confdefs.h. */ | |
12596 | _ACEOF | |
12597 | cat confdefs.h >>conftest.$ac_ext | |
12598 | cat >>conftest.$ac_ext <<_ACEOF | |
12599 | /* end confdefs.h. */ | |
12600 | ||
12601 | /* Override any GCC internal prototype to avoid an error. | |
12602 | Use char because int might match the return type of a GCC | |
12603 | builtin and then its argument prototype would still apply. */ | |
12604 | #ifdef __cplusplus | |
12605 | extern "C" | |
12606 | #endif | |
12607 | char canonicalize_file_name (); | |
12608 | int | |
12609 | main () | |
12610 | { | |
12611 | return canonicalize_file_name (); | |
12612 | ; | |
12613 | return 0; | |
12614 | } | |
12615 | _ACEOF | |
12616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12617 | if { (ac_try="$ac_link" | |
12618 | case "(($ac_try" in | |
12619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12620 | *) ac_try_echo=$ac_try;; | |
12621 | esac | |
ec6a6fbe AK |
12622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12623 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12624 | (eval "$ac_link") 2>conftest.er1 |
12625 | ac_status=$? | |
12626 | grep -v '^ *+' conftest.er1 >conftest.err | |
12627 | rm -f conftest.er1 | |
12628 | cat conftest.err >&5 | |
ec6a6fbe | 12629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12630 | (exit $ac_status); } && { |
12631 | test -z "$ac_c_werror_flag" || | |
12632 | test ! -s conftest.err | |
ec6a6fbe AK |
12633 | } && test -s conftest$ac_exeext && { |
12634 | test "$cross_compiling" = yes || | |
12635 | $as_test_x conftest$ac_exeext | |
12636 | }; then | |
93bd259b AK |
12637 | ac_cv_lib_c_canonicalize_file_name=yes |
12638 | else | |
ec6a6fbe | 12639 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12640 | sed 's/^/| /' conftest.$ac_ext >&5 |
12641 | ||
12642 | ac_cv_lib_c_canonicalize_file_name=no | |
12643 | fi | |
12644 | ||
ec6a6fbe | 12645 | rm -rf conftest.dSYM |
93bd259b AK |
12646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12647 | conftest$ac_exeext conftest.$ac_ext | |
12648 | LIBS=$ac_check_lib_save_LIBS | |
12649 | fi | |
ec6a6fbe AK |
12650 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12651 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12652 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12653 | |
12654 | cat >>confdefs.h <<\_ACEOF | |
12655 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12656 | _ACEOF | |
12657 | ||
12658 | fi | |
12659 | ||
12660 | ||
d0191583 JM |
12661 | ################################################################################ |
12662 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12663 | then exec_prefix=""; | |
12664 | fi; | |
ad6254c5 | 12665 | |
ad6254c5 | 12666 | ################################################################################ |
ec6a6fbe AK |
12667 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12668 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12669 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12670 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12671 | else |
12672 | ac_check_lib_save_LIBS=$LIBS | |
12673 | LIBS="-ldl $LIBS" | |
12674 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12675 | /* confdefs.h. */ |
12676 | _ACEOF | |
12677 | cat confdefs.h >>conftest.$ac_ext | |
12678 | cat >>conftest.$ac_ext <<_ACEOF | |
12679 | /* end confdefs.h. */ | |
12680 | ||
7a197a62 AK |
12681 | /* Override any GCC internal prototype to avoid an error. |
12682 | Use char because int might match the return type of a GCC | |
12683 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12684 | #ifdef __cplusplus |
12685 | extern "C" | |
12686 | #endif | |
ad6254c5 AK |
12687 | char dlopen (); |
12688 | int | |
12689 | main () | |
12690 | { | |
7a197a62 | 12691 | return dlopen (); |
ad6254c5 AK |
12692 | ; |
12693 | return 0; | |
12694 | } | |
12695 | _ACEOF | |
12696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12697 | if { (ac_try="$ac_link" |
12698 | case "(($ac_try" in | |
12699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12700 | *) ac_try_echo=$ac_try;; | |
12701 | esac | |
ec6a6fbe AK |
12702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12703 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12704 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12705 | ac_status=$? |
8a2fc586 AK |
12706 | grep -v '^ *+' conftest.er1 >conftest.err |
12707 | rm -f conftest.er1 | |
12708 | cat conftest.err >&5 | |
ec6a6fbe | 12709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12710 | (exit $ac_status); } && { |
12711 | test -z "$ac_c_werror_flag" || | |
12712 | test ! -s conftest.err | |
ec6a6fbe AK |
12713 | } && test -s conftest$ac_exeext && { |
12714 | test "$cross_compiling" = yes || | |
12715 | $as_test_x conftest$ac_exeext | |
12716 | }; then | |
ad6254c5 AK |
12717 | ac_cv_lib_dl_dlopen=yes |
12718 | else | |
ec6a6fbe | 12719 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12720 | sed 's/^/| /' conftest.$ac_ext >&5 |
12721 | ||
7a197a62 | 12722 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12723 | fi |
7a197a62 | 12724 | |
ec6a6fbe | 12725 | rm -rf conftest.dSYM |
25fbec5b | 12726 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12727 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12728 | LIBS=$ac_check_lib_save_LIBS |
12729 | fi | |
ec6a6fbe AK |
12730 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12731 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12732 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 12733 | |
72b2cb61 AK |
12734 | |
12735 | cat >>confdefs.h <<\_ACEOF | |
12736 | #define HAVE_LIBDL 1 | |
12737 | _ACEOF | |
12738 | ||
19a2c6e0 ZK |
12739 | DL_LIBS="-ldl" |
12740 | HAVE_LIBDL=yes | |
ad6254c5 | 12741 | else |
19a2c6e0 ZK |
12742 | |
12743 | DL_LIBS= | |
ad6254c5 AK |
12744 | HAVE_LIBDL=no |
12745 | fi | |
12746 | ||
19a2c6e0 | 12747 | |
ad6254c5 AK |
12748 | ################################################################################ |
12749 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12750 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12751 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12752 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12753 | " >&5 |
ec6a6fbe | 12754 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12755 | " >&2;} |
12756 | { (exit 1); exit 1; }; } | |
12757 | fi | |
12758 | ||
f30875db ZK |
12759 | ################################################################################ |
12760 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
12761 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
12762 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
12763 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
12764 | $as_echo_n "(cached) " >&6 | |
12765 | else | |
12766 | ac_check_lib_save_LIBS=$LIBS | |
12767 | LIBS="-lpthread $LIBS" | |
12768 | cat >conftest.$ac_ext <<_ACEOF | |
12769 | /* confdefs.h. */ | |
12770 | _ACEOF | |
12771 | cat confdefs.h >>conftest.$ac_ext | |
12772 | cat >>conftest.$ac_ext <<_ACEOF | |
12773 | /* end confdefs.h. */ | |
12774 | ||
12775 | /* Override any GCC internal prototype to avoid an error. | |
12776 | Use char because int might match the return type of a GCC | |
12777 | builtin and then its argument prototype would still apply. */ | |
12778 | #ifdef __cplusplus | |
12779 | extern "C" | |
12780 | #endif | |
12781 | char pthread_mutex_lock (); | |
12782 | int | |
12783 | main () | |
12784 | { | |
12785 | return pthread_mutex_lock (); | |
12786 | ; | |
12787 | return 0; | |
12788 | } | |
12789 | _ACEOF | |
12790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12791 | if { (ac_try="$ac_link" | |
12792 | case "(($ac_try" in | |
12793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12794 | *) ac_try_echo=$ac_try;; | |
12795 | esac | |
12796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12797 | $as_echo "$ac_try_echo") >&5 | |
12798 | (eval "$ac_link") 2>conftest.er1 | |
12799 | ac_status=$? | |
12800 | grep -v '^ *+' conftest.er1 >conftest.err | |
12801 | rm -f conftest.er1 | |
12802 | cat conftest.err >&5 | |
12803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12804 | (exit $ac_status); } && { | |
12805 | test -z "$ac_c_werror_flag" || | |
12806 | test ! -s conftest.err | |
12807 | } && test -s conftest$ac_exeext && { | |
12808 | test "$cross_compiling" = yes || | |
12809 | $as_test_x conftest$ac_exeext | |
12810 | }; then | |
12811 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
12812 | else | |
12813 | $as_echo "$as_me: failed program was:" >&5 | |
12814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12815 | ||
12816 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
12817 | fi | |
12818 | ||
12819 | rm -rf conftest.dSYM | |
12820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12821 | conftest$ac_exeext conftest.$ac_ext | |
12822 | LIBS=$ac_check_lib_save_LIBS | |
12823 | fi | |
12824 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
12825 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
12826 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
12827 | PTHREAD_LIBS="-lpthread" | |
12828 | else | |
12829 | hard_bailout | |
12830 | fi | |
12831 | ||
12832 | fi | |
12833 | ||
d0191583 | 12834 | ################################################################################ |
ec6a6fbe AK |
12835 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12836 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12837 | # Check whether --enable-selinux was given. |
12838 | if test "${enable_selinux+set}" = set; then | |
12839 | enableval=$enable_selinux; SELINUX=$enableval | |
12840 | fi | |
12841 | ||
ec6a6fbe AK |
12842 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12843 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12844 | |
ad6254c5 AK |
12845 | ################################################################################ |
12846 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12847 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12848 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12849 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12850 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12851 | else |
12852 | ac_check_lib_save_LIBS=$LIBS | |
12853 | LIBS="-lsepol $LIBS" | |
12854 | cat >conftest.$ac_ext <<_ACEOF | |
12855 | /* confdefs.h. */ | |
12856 | _ACEOF | |
12857 | cat confdefs.h >>conftest.$ac_ext | |
12858 | cat >>conftest.$ac_ext <<_ACEOF | |
12859 | /* end confdefs.h. */ | |
12860 | ||
7a197a62 AK |
12861 | /* Override any GCC internal prototype to avoid an error. |
12862 | Use char because int might match the return type of a GCC | |
12863 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12864 | #ifdef __cplusplus |
12865 | extern "C" | |
12866 | #endif | |
8a2fc586 AK |
12867 | char sepol_check_context (); |
12868 | int | |
12869 | main () | |
12870 | { | |
7a197a62 | 12871 | return sepol_check_context (); |
8a2fc586 AK |
12872 | ; |
12873 | return 0; | |
12874 | } | |
12875 | _ACEOF | |
12876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12877 | if { (ac_try="$ac_link" |
12878 | case "(($ac_try" in | |
12879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12880 | *) ac_try_echo=$ac_try;; | |
12881 | esac | |
ec6a6fbe AK |
12882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12883 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12884 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12885 | ac_status=$? |
12886 | grep -v '^ *+' conftest.er1 >conftest.err | |
12887 | rm -f conftest.er1 | |
12888 | cat conftest.err >&5 | |
ec6a6fbe | 12889 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12890 | (exit $ac_status); } && { |
12891 | test -z "$ac_c_werror_flag" || | |
12892 | test ! -s conftest.err | |
ec6a6fbe AK |
12893 | } && test -s conftest$ac_exeext && { |
12894 | test "$cross_compiling" = yes || | |
12895 | $as_test_x conftest$ac_exeext | |
12896 | }; then | |
8a2fc586 AK |
12897 | ac_cv_lib_sepol_sepol_check_context=yes |
12898 | else | |
ec6a6fbe | 12899 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12900 | sed 's/^/| /' conftest.$ac_ext >&5 |
12901 | ||
7a197a62 | 12902 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12903 | fi |
7a197a62 | 12904 | |
ec6a6fbe | 12905 | rm -rf conftest.dSYM |
25fbec5b | 12906 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12907 | conftest$ac_exeext conftest.$ac_ext |
12908 | LIBS=$ac_check_lib_save_LIBS | |
12909 | fi | |
ec6a6fbe AK |
12910 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12911 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12912 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 12913 | |
d0191583 JM |
12914 | |
12915 | cat >>confdefs.h <<\_ACEOF | |
12916 | #define HAVE_SEPOL 1 | |
12917 | _ACEOF | |
12918 | ||
f8f6ec92 ZK |
12919 | SELINUX_LIBS="-lsepol" |
12920 | fi | |
12921 | ||
8a2fc586 | 12922 | |
ec6a6fbe AK |
12923 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12924 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12925 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12926 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12927 | else |
12928 | ac_check_lib_save_LIBS=$LIBS | |
12929 | LIBS="-lselinux $LIBS" | |
12930 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12931 | /* confdefs.h. */ |
12932 | _ACEOF | |
12933 | cat confdefs.h >>conftest.$ac_ext | |
12934 | cat >>conftest.$ac_ext <<_ACEOF | |
12935 | /* end confdefs.h. */ | |
12936 | ||
7a197a62 AK |
12937 | /* Override any GCC internal prototype to avoid an error. |
12938 | Use char because int might match the return type of a GCC | |
12939 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12940 | #ifdef __cplusplus |
12941 | extern "C" | |
12942 | #endif | |
ad6254c5 AK |
12943 | char is_selinux_enabled (); |
12944 | int | |
12945 | main () | |
12946 | { | |
7a197a62 | 12947 | return is_selinux_enabled (); |
ad6254c5 AK |
12948 | ; |
12949 | return 0; | |
12950 | } | |
12951 | _ACEOF | |
12952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12953 | if { (ac_try="$ac_link" |
12954 | case "(($ac_try" in | |
12955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12956 | *) ac_try_echo=$ac_try;; | |
12957 | esac | |
ec6a6fbe AK |
12958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12959 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12960 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12961 | ac_status=$? |
8a2fc586 AK |
12962 | grep -v '^ *+' conftest.er1 >conftest.err |
12963 | rm -f conftest.er1 | |
12964 | cat conftest.err >&5 | |
ec6a6fbe | 12965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12966 | (exit $ac_status); } && { |
12967 | test -z "$ac_c_werror_flag" || | |
12968 | test ! -s conftest.err | |
ec6a6fbe AK |
12969 | } && test -s conftest$ac_exeext && { |
12970 | test "$cross_compiling" = yes || | |
12971 | $as_test_x conftest$ac_exeext | |
12972 | }; then | |
ad6254c5 AK |
12973 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12974 | else | |
ec6a6fbe | 12975 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12976 | sed 's/^/| /' conftest.$ac_ext >&5 |
12977 | ||
7a197a62 | 12978 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12979 | fi |
7a197a62 | 12980 | |
ec6a6fbe | 12981 | rm -rf conftest.dSYM |
25fbec5b | 12982 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12983 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12984 | LIBS=$ac_check_lib_save_LIBS |
12985 | fi | |
ec6a6fbe AK |
12986 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12987 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12988 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 12989 | |
72b2cb61 | 12990 | |
f8f6ec92 ZK |
12991 | for ac_header in selinux/selinux.h |
12992 | do | |
12993 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12994 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12995 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12996 | $as_echo_n "checking for $ac_header... " >&6; } | |
12997 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 12998 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
12999 | fi |
13000 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13001 | $as_echo "$as_val"'` | |
13002 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13003 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13004 | else |
f8f6ec92 ZK |
13005 | # Is the header compilable? |
13006 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13007 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
13008 | cat >conftest.$ac_ext <<_ACEOF |
13009 | /* confdefs.h. */ | |
13010 | _ACEOF | |
13011 | cat confdefs.h >>conftest.$ac_ext | |
13012 | cat >>conftest.$ac_ext <<_ACEOF | |
13013 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
13014 | $ac_includes_default |
13015 | #include <$ac_header> | |
66e941e8 | 13016 | _ACEOF |
f8f6ec92 ZK |
13017 | rm -f conftest.$ac_objext |
13018 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
13019 | case "(($ac_try" in |
13020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13021 | *) ac_try_echo=$ac_try;; | |
13022 | esac | |
ec6a6fbe AK |
13023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13024 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 13025 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
13026 | ac_status=$? |
13027 | grep -v '^ *+' conftest.er1 >conftest.err | |
13028 | rm -f conftest.er1 | |
13029 | cat conftest.err >&5 | |
ec6a6fbe | 13030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13031 | (exit $ac_status); } && { |
13032 | test -z "$ac_c_werror_flag" || | |
13033 | test ! -s conftest.err | |
f8f6ec92 ZK |
13034 | } && test -s conftest.$ac_objext; then |
13035 | ac_header_compiler=yes | |
13036 | else | |
13037 | $as_echo "$as_me: failed program was:" >&5 | |
13038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13039 | ||
13040 | ac_header_compiler=no | |
13041 | fi | |
13042 | ||
13043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13044 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13045 | $as_echo "$ac_header_compiler" >&6; } | |
13046 | ||
13047 | # Is the header present? | |
13048 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13049 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13050 | cat >conftest.$ac_ext <<_ACEOF | |
13051 | /* confdefs.h. */ | |
13052 | _ACEOF | |
13053 | cat confdefs.h >>conftest.$ac_ext | |
13054 | cat >>conftest.$ac_ext <<_ACEOF | |
13055 | /* end confdefs.h. */ | |
13056 | #include <$ac_header> | |
13057 | _ACEOF | |
13058 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13059 | case "(($ac_try" in | |
13060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13061 | *) ac_try_echo=$ac_try;; | |
13062 | esac | |
13063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13064 | $as_echo "$ac_try_echo") >&5 | |
13065 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13066 | ac_status=$? | |
13067 | grep -v '^ *+' conftest.er1 >conftest.err | |
13068 | rm -f conftest.er1 | |
13069 | cat conftest.err >&5 | |
13070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13071 | (exit $ac_status); } >/dev/null && { | |
13072 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13073 | test ! -s conftest.err | |
ec6a6fbe | 13074 | }; then |
f8f6ec92 | 13075 | ac_header_preproc=yes |
66e941e8 | 13076 | else |
ec6a6fbe | 13077 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
13078 | sed 's/^/| /' conftest.$ac_ext >&5 |
13079 | ||
f8f6ec92 ZK |
13080 | ac_header_preproc=no |
13081 | fi | |
13082 | ||
13083 | rm -f conftest.err conftest.$ac_ext | |
13084 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13085 | $as_echo "$ac_header_preproc" >&6; } | |
13086 | ||
13087 | # So? What about this header? | |
13088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13089 | yes:no: ) | |
13090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13091 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13093 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13094 | ac_header_preproc=yes | |
13095 | ;; | |
13096 | no:yes:* ) | |
13097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13098 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13100 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13102 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13104 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13106 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13107 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13108 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 13109 | |
f8f6ec92 ZK |
13110 | ;; |
13111 | esac | |
13112 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13113 | $as_echo_n "checking for $ac_header... " >&6; } | |
13114 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13115 | $as_echo_n "(cached) " >&6 | |
13116 | else | |
13117 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 13118 | fi |
f8f6ec92 ZK |
13119 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13120 | $as_echo "$as_val"'` | |
13121 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13122 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13123 | |
66e941e8 | 13124 | fi |
f8f6ec92 ZK |
13125 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13126 | $as_echo "$as_val"'` | |
13127 | if test "x$as_val" = x""yes; then | |
13128 | cat >>confdefs.h <<_ACEOF | |
13129 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13130 | _ACEOF | |
13131 | ||
66e941e8 | 13132 | else |
f8f6ec92 | 13133 | hard_bailout |
66e941e8 | 13134 | fi |
f8f6ec92 ZK |
13135 | |
13136 | done | |
13137 | ||
13138 | ||
13139 | cat >>confdefs.h <<\_ACEOF | |
13140 | #define HAVE_SELINUX 1 | |
13141 | _ACEOF | |
13142 | ||
13143 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
13144 | HAVE_SELINUX=yes | |
13145 | else | |
13146 | ||
13147 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
13148 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
13149 | SELINUX_LIBS= | |
13150 | HAVE_SELINUX=no | |
66e941e8 JM |
13151 | fi |
13152 | ||
ad6254c5 AK |
13153 | fi |
13154 | ||
8b1a3214 AK |
13155 | ################################################################################ |
13156 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
13157 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
13158 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 13159 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 13160 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
13161 | else |
13162 | ac_check_lib_save_LIBS=$LIBS | |
13163 | LIBS="-lrt $LIBS" | |
13164 | cat >conftest.$ac_ext <<_ACEOF | |
13165 | /* confdefs.h. */ | |
13166 | _ACEOF | |
13167 | cat confdefs.h >>conftest.$ac_ext | |
13168 | cat >>conftest.$ac_ext <<_ACEOF | |
13169 | /* end confdefs.h. */ | |
13170 | ||
7a197a62 AK |
13171 | /* Override any GCC internal prototype to avoid an error. |
13172 | Use char because int might match the return type of a GCC | |
13173 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
13174 | #ifdef __cplusplus |
13175 | extern "C" | |
13176 | #endif | |
8b1a3214 AK |
13177 | char clock_gettime (); |
13178 | int | |
13179 | main () | |
13180 | { | |
7a197a62 | 13181 | return clock_gettime (); |
8b1a3214 AK |
13182 | ; |
13183 | return 0; | |
13184 | } | |
13185 | _ACEOF | |
13186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13187 | if { (ac_try="$ac_link" |
13188 | case "(($ac_try" in | |
13189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13190 | *) ac_try_echo=$ac_try;; | |
13191 | esac | |
ec6a6fbe AK |
13192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13193 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13194 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13195 | ac_status=$? |
13196 | grep -v '^ *+' conftest.er1 >conftest.err | |
13197 | rm -f conftest.er1 | |
13198 | cat conftest.err >&5 | |
ec6a6fbe | 13199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13200 | (exit $ac_status); } && { |
13201 | test -z "$ac_c_werror_flag" || | |
13202 | test ! -s conftest.err | |
ec6a6fbe AK |
13203 | } && test -s conftest$ac_exeext && { |
13204 | test "$cross_compiling" = yes || | |
13205 | $as_test_x conftest$ac_exeext | |
13206 | }; then | |
8b1a3214 AK |
13207 | ac_cv_lib_rt_clock_gettime=yes |
13208 | else | |
ec6a6fbe | 13209 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13210 | sed 's/^/| /' conftest.$ac_ext >&5 |
13211 | ||
7a197a62 | 13212 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13213 | fi |
7a197a62 | 13214 | |
ec6a6fbe | 13215 | rm -rf conftest.dSYM |
25fbec5b | 13216 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13217 | conftest$ac_exeext conftest.$ac_ext |
13218 | LIBS=$ac_check_lib_save_LIBS | |
13219 | fi | |
ec6a6fbe AK |
13220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13221 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13222 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13223 | HAVE_REALTIME=yes |
13224 | else | |
13225 | HAVE_REALTIME=no | |
13226 | fi | |
13227 | ||
8b1a3214 AK |
13228 | |
13229 | if test x$HAVE_REALTIME = xyes; then | |
13230 | ||
13231 | cat >>confdefs.h <<\_ACEOF | |
13232 | #define HAVE_REALTIME 1 | |
13233 | _ACEOF | |
13234 | ||
13235 | LIBS="-lrt $LIBS" | |
13236 | else | |
ec6a6fbe AK |
13237 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13238 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13239 | fi |
13240 | fi | |
13241 | ||
ad6254c5 AK |
13242 | ################################################################################ |
13243 | ||
13244 | for ac_header in getopt.h | |
13245 | do | |
ec6a6fbe | 13246 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13247 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13248 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13249 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13250 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13251 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13252 | fi |
ec6a6fbe AK |
13253 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13254 | $as_echo "$as_val"'` | |
13255 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13256 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13257 | else |
13258 | # Is the header compilable? | |
ec6a6fbe AK |
13259 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13260 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13261 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13262 | /* confdefs.h. */ |
13263 | _ACEOF | |
13264 | cat confdefs.h >>conftest.$ac_ext | |
13265 | cat >>conftest.$ac_ext <<_ACEOF | |
13266 | /* end confdefs.h. */ | |
13267 | $ac_includes_default | |
13268 | #include <$ac_header> | |
13269 | _ACEOF | |
13270 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13271 | if { (ac_try="$ac_compile" |
13272 | case "(($ac_try" in | |
13273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13274 | *) ac_try_echo=$ac_try;; | |
13275 | esac | |
ec6a6fbe AK |
13276 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13277 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13278 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13279 | ac_status=$? |
8a2fc586 AK |
13280 | grep -v '^ *+' conftest.er1 >conftest.err |
13281 | rm -f conftest.er1 | |
13282 | cat conftest.err >&5 | |
ec6a6fbe | 13283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13284 | (exit $ac_status); } && { |
13285 | test -z "$ac_c_werror_flag" || | |
13286 | test ! -s conftest.err | |
13287 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13288 | ac_header_compiler=yes |
13289 | else | |
ec6a6fbe | 13290 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13291 | sed 's/^/| /' conftest.$ac_ext >&5 |
13292 | ||
7a197a62 | 13293 | ac_header_compiler=no |
ad6254c5 | 13294 | fi |
7a197a62 AK |
13295 | |
13296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13297 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13298 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13299 | |
13300 | # Is the header present? | |
ec6a6fbe AK |
13301 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13302 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13303 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13304 | /* confdefs.h. */ |
13305 | _ACEOF | |
13306 | cat confdefs.h >>conftest.$ac_ext | |
13307 | cat >>conftest.$ac_ext <<_ACEOF | |
13308 | /* end confdefs.h. */ | |
13309 | #include <$ac_header> | |
13310 | _ACEOF | |
7a197a62 AK |
13311 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13312 | case "(($ac_try" in | |
13313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13314 | *) ac_try_echo=$ac_try;; | |
13315 | esac | |
ec6a6fbe AK |
13316 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13317 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13318 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13319 | ac_status=$? |
13320 | grep -v '^ *+' conftest.er1 >conftest.err | |
13321 | rm -f conftest.er1 | |
13322 | cat conftest.err >&5 | |
ec6a6fbe | 13323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13324 | (exit $ac_status); } >/dev/null && { |
13325 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13326 | test ! -s conftest.err | |
13327 | }; then | |
ad6254c5 AK |
13328 | ac_header_preproc=yes |
13329 | else | |
ec6a6fbe | 13330 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13331 | sed 's/^/| /' conftest.$ac_ext >&5 |
13332 | ||
13333 | ac_header_preproc=no | |
13334 | fi | |
7a197a62 | 13335 | |
ad6254c5 | 13336 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13337 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13338 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13339 | |
13340 | # So? What about this header? | |
8a2fc586 AK |
13341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13342 | yes:no: ) | |
ec6a6fbe AK |
13343 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13344 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13345 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13346 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13347 | ac_header_preproc=yes |
ad6254c5 | 13348 | ;; |
8a2fc586 | 13349 | no:yes:* ) |
ec6a6fbe AK |
13350 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13351 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13352 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13353 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13355 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13356 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13357 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13358 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13359 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13360 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13361 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13362 | |
ad6254c5 AK |
13363 | ;; |
13364 | esac | |
ec6a6fbe AK |
13365 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13366 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13368 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13369 | else |
8a2fc586 | 13370 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13371 | fi |
ec6a6fbe AK |
13372 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13373 | $as_echo "$as_val"'` | |
13374 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13375 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13376 | |
13377 | fi | |
ec6a6fbe AK |
13378 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13379 | $as_echo "$as_val"'` | |
13380 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13381 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13382 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13383 | _ACEOF |
72b2cb61 AK |
13384 | |
13385 | cat >>confdefs.h <<\_ACEOF | |
13386 | #define HAVE_GETOPTLONG 1 | |
13387 | _ACEOF | |
13388 | ||
ad6254c5 AK |
13389 | fi |
13390 | ||
13391 | done | |
13392 | ||
13393 | ||
13394 | ################################################################################ | |
06e459df | 13395 | if test x$READLINE != xno; then |
539f4a77 ZK |
13396 | lvm_saved_libs=$LIBS |
13397 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
13398 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13399 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13400 | $as_echo_n "(cached) " >&6 | |
13401 | else | |
13402 | ac_func_search_save_LIBS=$LIBS | |
13403 | cat >conftest.$ac_ext <<_ACEOF | |
13404 | /* confdefs.h. */ | |
13405 | _ACEOF | |
13406 | cat confdefs.h >>conftest.$ac_ext | |
13407 | cat >>conftest.$ac_ext <<_ACEOF | |
13408 | /* end confdefs.h. */ | |
bc1024f8 | 13409 | |
539f4a77 ZK |
13410 | /* Override any GCC internal prototype to avoid an error. |
13411 | Use char because int might match the return type of a GCC | |
13412 | builtin and then its argument prototype would still apply. */ | |
13413 | #ifdef __cplusplus | |
13414 | extern "C" | |
13415 | #endif | |
13416 | char tgetent (); | |
13417 | int | |
13418 | main () | |
13419 | { | |
13420 | return tgetent (); | |
13421 | ; | |
13422 | return 0; | |
13423 | } | |
13424 | _ACEOF | |
13425 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
13426 | if test -z "$ac_lib"; then | |
13427 | ac_res="none required" | |
13428 | else | |
13429 | ac_res=-l$ac_lib | |
13430 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13431 | fi | |
13432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13433 | if { (ac_try="$ac_link" | |
13434 | case "(($ac_try" in | |
13435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13436 | *) ac_try_echo=$ac_try;; | |
13437 | esac | |
13438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13439 | $as_echo "$ac_try_echo") >&5 | |
13440 | (eval "$ac_link") 2>conftest.er1 | |
13441 | ac_status=$? | |
13442 | grep -v '^ *+' conftest.er1 >conftest.err | |
13443 | rm -f conftest.er1 | |
13444 | cat conftest.err >&5 | |
13445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13446 | (exit $ac_status); } && { | |
13447 | test -z "$ac_c_werror_flag" || | |
13448 | test ! -s conftest.err | |
13449 | } && test -s conftest$ac_exeext && { | |
13450 | test "$cross_compiling" = yes || | |
13451 | $as_test_x conftest$ac_exeext | |
13452 | }; then | |
13453 | ac_cv_search_tgetent=$ac_res | |
13454 | else | |
13455 | $as_echo "$as_me: failed program was:" >&5 | |
13456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13457 | ||
13458 | ||
13459 | fi | |
13460 | ||
13461 | rm -rf conftest.dSYM | |
13462 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13463 | conftest$ac_exeext | |
13464 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13465 | break | |
13466 | fi | |
13467 | done | |
13468 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13469 | : | |
13470 | else | |
13471 | ac_cv_search_tgetent=no | |
13472 | fi | |
13473 | rm conftest.$ac_ext | |
13474 | LIBS=$ac_func_search_save_LIBS | |
13475 | fi | |
13476 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
13477 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13478 | ac_res=$ac_cv_search_tgetent | |
13479 | if test "$ac_res" != no; then | |
13480 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13481 | READLINE_LIBS=$ac_cv_search_tgetent | |
13482 | else | |
13483 | ||
13484 | if test "$READLINE" = yes; then | |
13485 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
13486 | --enable-readline option (which is enabled by default). Either disable readline | |
13487 | support with --disable-readline or download and install termcap from: | |
13488 | ftp.gnu.org/gnu/termcap | |
13489 | Note: if you are using precompiled packages you will also need the development | |
13490 | package as well (which may be called termcap-devel or something similar). | |
13491 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13492 | not found either - but you could try installing that as well." >&5 | |
13493 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
13494 | --enable-readline option (which is enabled by default). Either disable readline | |
13495 | support with --disable-readline or download and install termcap from: | |
13496 | ftp.gnu.org/gnu/termcap | |
13497 | Note: if you are using precompiled packages you will also need the development | |
13498 | package as well (which may be called termcap-devel or something similar). | |
13499 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13500 | not found either - but you could try installing that as well." >&2;} | |
13501 | { (exit 1); exit 1; }; } | |
13502 | fi | |
13503 | fi | |
13504 | ||
13505 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 13506 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 13507 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13508 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13509 | else |
13510 | ac_check_lib_save_LIBS=$LIBS | |
13511 | LIBS="-lreadline $LIBS" | |
13512 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13513 | /* confdefs.h. */ |
13514 | _ACEOF | |
13515 | cat confdefs.h >>conftest.$ac_ext | |
13516 | cat >>conftest.$ac_ext <<_ACEOF | |
13517 | /* end confdefs.h. */ | |
13518 | ||
7a197a62 AK |
13519 | /* Override any GCC internal prototype to avoid an error. |
13520 | Use char because int might match the return type of a GCC | |
13521 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13522 | #ifdef __cplusplus |
13523 | extern "C" | |
13524 | #endif | |
ad6254c5 AK |
13525 | char readline (); |
13526 | int | |
13527 | main () | |
13528 | { | |
7a197a62 | 13529 | return readline (); |
ad6254c5 AK |
13530 | ; |
13531 | return 0; | |
13532 | } | |
13533 | _ACEOF | |
13534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13535 | if { (ac_try="$ac_link" |
13536 | case "(($ac_try" in | |
13537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13538 | *) ac_try_echo=$ac_try;; | |
13539 | esac | |
ec6a6fbe AK |
13540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13541 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13542 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13543 | ac_status=$? |
8a2fc586 AK |
13544 | grep -v '^ *+' conftest.er1 >conftest.err |
13545 | rm -f conftest.er1 | |
13546 | cat conftest.err >&5 | |
ec6a6fbe | 13547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13548 | (exit $ac_status); } && { |
13549 | test -z "$ac_c_werror_flag" || | |
13550 | test ! -s conftest.err | |
ec6a6fbe AK |
13551 | } && test -s conftest$ac_exeext && { |
13552 | test "$cross_compiling" = yes || | |
13553 | $as_test_x conftest$ac_exeext | |
13554 | }; then | |
ad6254c5 AK |
13555 | ac_cv_lib_readline_readline=yes |
13556 | else | |
ec6a6fbe | 13557 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13558 | sed 's/^/| /' conftest.$ac_ext >&5 |
13559 | ||
7a197a62 | 13560 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13561 | fi |
7a197a62 | 13562 | |
ec6a6fbe | 13563 | rm -rf conftest.dSYM |
25fbec5b | 13564 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13565 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13566 | LIBS=$ac_check_lib_save_LIBS |
13567 | fi | |
ec6a6fbe AK |
13568 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13569 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13570 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
13571 | |
13572 | ||
13573 | cat >>confdefs.h <<\_ACEOF | |
13574 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
13575 | _ACEOF |
13576 | ||
539f4a77 ZK |
13577 | LIBS=$lvm_saved_libs |
13578 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
13579 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
13580 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
13581 | $as_echo_n "(cached) " >&6 | |
13582 | else | |
13583 | ac_check_lib_save_LIBS=$LIBS | |
13584 | LIBS="-lreadline $LIBS" | |
13585 | cat >conftest.$ac_ext <<_ACEOF | |
13586 | /* confdefs.h. */ | |
13587 | _ACEOF | |
13588 | cat confdefs.h >>conftest.$ac_ext | |
13589 | cat >>conftest.$ac_ext <<_ACEOF | |
13590 | /* end confdefs.h. */ | |
bc1024f8 | 13591 | |
539f4a77 ZK |
13592 | /* Override any GCC internal prototype to avoid an error. |
13593 | Use char because int might match the return type of a GCC | |
13594 | builtin and then its argument prototype would still apply. */ | |
13595 | #ifdef __cplusplus | |
13596 | extern "C" | |
13597 | #endif | |
13598 | char rl_line_buffer (); | |
13599 | int | |
13600 | main () | |
13601 | { | |
13602 | return rl_line_buffer (); | |
13603 | ; | |
13604 | return 0; | |
13605 | } | |
13606 | _ACEOF | |
13607 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13608 | if { (ac_try="$ac_link" | |
13609 | case "(($ac_try" in | |
13610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13611 | *) ac_try_echo=$ac_try;; | |
13612 | esac | |
13613 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13614 | $as_echo "$ac_try_echo") >&5 | |
13615 | (eval "$ac_link") 2>conftest.er1 | |
13616 | ac_status=$? | |
13617 | grep -v '^ *+' conftest.er1 >conftest.err | |
13618 | rm -f conftest.er1 | |
13619 | cat conftest.err >&5 | |
13620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13621 | (exit $ac_status); } && { | |
13622 | test -z "$ac_c_werror_flag" || | |
13623 | test ! -s conftest.err | |
13624 | } && test -s conftest$ac_exeext && { | |
13625 | test "$cross_compiling" = yes || | |
13626 | $as_test_x conftest$ac_exeext | |
13627 | }; then | |
13628 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 13629 | else |
539f4a77 ZK |
13630 | $as_echo "$as_me: failed program was:" >&5 |
13631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13632 | ||
13633 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
13634 | fi |
13635 | ||
539f4a77 ZK |
13636 | rm -rf conftest.dSYM |
13637 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13638 | conftest$ac_exeext conftest.$ac_ext | |
13639 | LIBS=$ac_check_lib_save_LIBS | |
13640 | fi | |
13641 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
13642 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
13643 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
13644 | READLINE_LIBS="-lreadline" | |
13645 | else | |
13646 | ||
13647 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
13648 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
13649 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
13650 | ||
13651 | fi | |
13652 | ||
13653 | else | |
13654 | ||
13655 | READLINE_LIBS= | |
13656 | if test "$READLINE" = yes; then | |
13657 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
13658 | --enable-readline option (which is enabled by default). Either disable readline |
13659 | support with --disable-readline or download and install readline from: | |
13660 | ftp.gnu.org/gnu/readline | |
13661 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13662 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 13663 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13664 | --enable-readline option (which is enabled by default). Either disable readline |
13665 | support with --disable-readline or download and install readline from: | |
13666 | ftp.gnu.org/gnu/readline | |
13667 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13668 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 13669 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
13670 | fi |
13671 | fi | |
13672 | ||
13673 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
13674 | |
13675 | for ac_func in rl_completion_matches | |
13676 | do | |
ec6a6fbe AK |
13677 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13678 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13679 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13680 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13681 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13682 | else |
13683 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13684 | /* confdefs.h. */ |
13685 | _ACEOF | |
13686 | cat confdefs.h >>conftest.$ac_ext | |
13687 | cat >>conftest.$ac_ext <<_ACEOF | |
13688 | /* end confdefs.h. */ | |
bc1024f8 | 13689 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13690 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13691 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13692 | |
ad6254c5 | 13693 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13694 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13696 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13697 | |
ad6254c5 AK |
13698 | #ifdef __STDC__ |
13699 | # include <limits.h> | |
13700 | #else | |
13701 | # include <assert.h> | |
13702 | #endif | |
8a2fc586 | 13703 | |
bc1024f8 | 13704 | #undef $ac_func |
8a2fc586 | 13705 | |
7a197a62 AK |
13706 | /* Override any GCC internal prototype to avoid an error. |
13707 | Use char because int might match the return type of a GCC | |
13708 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13709 | #ifdef __cplusplus |
13710 | extern "C" | |
ad6254c5 | 13711 | #endif |
bc1024f8 | 13712 | char $ac_func (); |
ad6254c5 AK |
13713 | /* The GNU C library defines this for functions which it implements |
13714 | to always fail with ENOSYS. Some functions are actually named | |
13715 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13716 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13717 | choke me |
ad6254c5 AK |
13718 | #endif |
13719 | ||
13720 | int | |
13721 | main () | |
13722 | { | |
bc1024f8 | 13723 | return $ac_func (); |
ad6254c5 AK |
13724 | ; |
13725 | return 0; | |
13726 | } | |
13727 | _ACEOF | |
13728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13729 | if { (ac_try="$ac_link" |
13730 | case "(($ac_try" in | |
13731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13732 | *) ac_try_echo=$ac_try;; | |
13733 | esac | |
ec6a6fbe AK |
13734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13735 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13736 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13737 | ac_status=$? |
8a2fc586 AK |
13738 | grep -v '^ *+' conftest.er1 >conftest.err |
13739 | rm -f conftest.er1 | |
13740 | cat conftest.err >&5 | |
ec6a6fbe | 13741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13742 | (exit $ac_status); } && { |
13743 | test -z "$ac_c_werror_flag" || | |
13744 | test ! -s conftest.err | |
ec6a6fbe AK |
13745 | } && test -s conftest$ac_exeext && { |
13746 | test "$cross_compiling" = yes || | |
13747 | $as_test_x conftest$ac_exeext | |
13748 | }; then | |
bc1024f8 | 13749 | eval "$as_ac_var=yes" |
ad6254c5 | 13750 | else |
ec6a6fbe | 13751 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13752 | sed 's/^/| /' conftest.$ac_ext >&5 |
13753 | ||
bc1024f8 | 13754 | eval "$as_ac_var=no" |
ad6254c5 | 13755 | fi |
7a197a62 | 13756 | |
ec6a6fbe | 13757 | rm -rf conftest.dSYM |
25fbec5b | 13758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13759 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13760 | fi |
ec6a6fbe AK |
13761 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13762 | $as_echo "$as_val"'` | |
13763 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13764 | $as_echo "$ac_res" >&6; } | |
13765 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13766 | $as_echo "$as_val"'` | |
13767 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13768 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13769 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13770 | _ACEOF |
13771 | ||
13772 | fi | |
bc1024f8 | 13773 | done |
ad6254c5 | 13774 | |
539f4a77 | 13775 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
13776 | fi |
13777 | ||
13778 | ################################################################################ | |
ec6a6fbe AK |
13779 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13780 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13781 | # Check whether --enable-nls was given. |
ad6254c5 | 13782 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13783 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13784 | else |
13785 | INTL=no | |
7a197a62 AK |
13786 | fi |
13787 | ||
ec6a6fbe AK |
13788 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13789 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13790 | |
13791 | if test x$INTL = xyes; then | |
93bd259b | 13792 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13793 | INTL_PACKAGE="lvm2" |
13794 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13795 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13796 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13797 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13798 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13799 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13800 | else |
13801 | case $MSGFMT in | |
13802 | [\\/]* | ?:[\\/]*) | |
13803 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13804 | ;; | |
13805 | *) | |
13806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13807 | for as_dir in $PATH | |
13808 | do | |
13809 | IFS=$as_save_IFS | |
13810 | test -z "$as_dir" && as_dir=. | |
13811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13813 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13814 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13815 | break 2 |
13816 | fi | |
13817 | done | |
13818 | done | |
7a197a62 | 13819 | IFS=$as_save_IFS |
ad6254c5 AK |
13820 | |
13821 | ;; | |
13822 | esac | |
13823 | fi | |
13824 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13825 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13826 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13827 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13828 | else |
ec6a6fbe AK |
13829 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13830 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13831 | fi |
13832 | ||
7a197a62 | 13833 | |
ad6254c5 | 13834 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13835 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13836 | " >&5 |
ec6a6fbe | 13837 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13838 | " >&2;} |
13839 | { (exit 1); exit 1; }; } | |
13840 | fi; | |
13841 | ||
13842 | ||
7a197a62 | 13843 | # Check whether --with-localedir was given. |
ad6254c5 | 13844 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13845 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13846 | else |
13847 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13848 | fi |
13849 | ||
ad6254c5 AK |
13850 | fi |
13851 | ||
13852 | ################################################################################ | |
13853 | ||
7a197a62 | 13854 | # Check whether --with-confdir was given. |
ad6254c5 | 13855 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13856 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13857 | else |
13858 | CONFDIR='/etc' | |
7a197a62 AK |
13859 | fi |
13860 | ||
ad6254c5 AK |
13861 | |
13862 | ||
7a197a62 | 13863 | # Check whether --with-staticdir was given. |
ad6254c5 | 13864 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13865 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13866 | else |
13867 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13868 | fi |
ad6254c5 | 13869 | |
33f732c5 | 13870 | |
7a197a62 | 13871 | |
68f2de6d AK |
13872 | # Check whether --with-usrlibdir was given. |
13873 | if test "${with_usrlibdir+set}" = set; then | |
13874 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13875 | else | |
13876 | usrlibdir='${prefix}/lib' | |
13877 | fi | |
13878 | ||
13879 | ||
13880 | ||
13881 | # Check whether --with-usrsbindir was given. | |
13882 | if test "${with_usrsbindir+set}" = set; then | |
13883 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13884 | else | |
13885 | usrsbindir='${prefix}/sbin' | |
13886 | fi | |
13887 | ||
13888 | ||
a5f46f6a AK |
13889 | ################################################################################ |
13890 | ||
13891 | # Check whether --with-udev_prefix was given. | |
13892 | if test "${with_udev_prefix+set}" = set; then | |
13893 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13894 | else | |
13895 | udev_prefix='${exec_prefix}' | |
13896 | fi | |
13897 | ||
13898 | ||
78ce7acc AK |
13899 | |
13900 | # Check whether --with-udevdir was given. | |
13901 | if test "${with_udevdir+set}" = set; then | |
13902 | withval=$with_udevdir; udevdir="$withval" | |
13903 | else | |
13904 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13905 | fi | |
13906 | ||
a5f46f6a | 13907 | |
ad6254c5 AK |
13908 | ################################################################################ |
13909 | if test x$READLINE = xyes; then | |
13910 | ||
13911 | ||
13912 | for ac_header in readline/readline.h readline/history.h | |
13913 | do | |
ec6a6fbe | 13914 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13916 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13917 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13919 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13920 | fi |
ec6a6fbe AK |
13921 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13922 | $as_echo "$as_val"'` | |
13923 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13924 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13925 | else |
13926 | # Is the header compilable? | |
ec6a6fbe AK |
13927 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13928 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13929 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13930 | /* confdefs.h. */ |
13931 | _ACEOF | |
13932 | cat confdefs.h >>conftest.$ac_ext | |
13933 | cat >>conftest.$ac_ext <<_ACEOF | |
13934 | /* end confdefs.h. */ | |
13935 | $ac_includes_default | |
13936 | #include <$ac_header> | |
13937 | _ACEOF | |
13938 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13939 | if { (ac_try="$ac_compile" |
13940 | case "(($ac_try" in | |
13941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13942 | *) ac_try_echo=$ac_try;; | |
13943 | esac | |
ec6a6fbe AK |
13944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13945 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13946 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13947 | ac_status=$? |
8a2fc586 AK |
13948 | grep -v '^ *+' conftest.er1 >conftest.err |
13949 | rm -f conftest.er1 | |
13950 | cat conftest.err >&5 | |
ec6a6fbe | 13951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13952 | (exit $ac_status); } && { |
13953 | test -z "$ac_c_werror_flag" || | |
13954 | test ! -s conftest.err | |
13955 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13956 | ac_header_compiler=yes |
13957 | else | |
ec6a6fbe | 13958 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13959 | sed 's/^/| /' conftest.$ac_ext >&5 |
13960 | ||
7a197a62 | 13961 | ac_header_compiler=no |
ad6254c5 | 13962 | fi |
7a197a62 AK |
13963 | |
13964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13965 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13966 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13967 | |
13968 | # Is the header present? | |
ec6a6fbe AK |
13969 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13970 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13971 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13972 | /* confdefs.h. */ |
13973 | _ACEOF | |
13974 | cat confdefs.h >>conftest.$ac_ext | |
13975 | cat >>conftest.$ac_ext <<_ACEOF | |
13976 | /* end confdefs.h. */ | |
13977 | #include <$ac_header> | |
13978 | _ACEOF | |
7a197a62 AK |
13979 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13980 | case "(($ac_try" in | |
13981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13982 | *) ac_try_echo=$ac_try;; | |
13983 | esac | |
ec6a6fbe AK |
13984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13985 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13986 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13987 | ac_status=$? |
13988 | grep -v '^ *+' conftest.er1 >conftest.err | |
13989 | rm -f conftest.er1 | |
13990 | cat conftest.err >&5 | |
ec6a6fbe | 13991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13992 | (exit $ac_status); } >/dev/null && { |
13993 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13994 | test ! -s conftest.err | |
13995 | }; then | |
ad6254c5 AK |
13996 | ac_header_preproc=yes |
13997 | else | |
ec6a6fbe | 13998 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13999 | sed 's/^/| /' conftest.$ac_ext >&5 |
14000 | ||
14001 | ac_header_preproc=no | |
14002 | fi | |
7a197a62 | 14003 | |
ad6254c5 | 14004 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14005 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14006 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14007 | |
14008 | # So? What about this header? | |
8a2fc586 AK |
14009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14010 | yes:no: ) | |
ec6a6fbe AK |
14011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14012 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14014 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14015 | ac_header_preproc=yes |
ad6254c5 | 14016 | ;; |
8a2fc586 | 14017 | no:yes:* ) |
ec6a6fbe AK |
14018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14019 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14021 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14023 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14025 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14027 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14029 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14030 | |
ad6254c5 AK |
14031 | ;; |
14032 | esac | |
ec6a6fbe AK |
14033 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14034 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14036 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14037 | else |
8a2fc586 | 14038 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14039 | fi |
ec6a6fbe AK |
14040 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14041 | $as_echo "$as_val"'` | |
14042 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14043 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14044 | |
14045 | fi | |
ec6a6fbe AK |
14046 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14047 | $as_echo "$as_val"'` | |
14048 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14049 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14050 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14051 | _ACEOF |
14052 | ||
14053 | else | |
ec6a6fbe AK |
14054 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14055 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14056 | { (exit 1); exit 1; }; } |
14057 | fi | |
14058 | ||
14059 | done | |
14060 | ||
14061 | fi | |
14062 | ||
5c7fc7c4 | 14063 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
14064 | |
14065 | ||
14066 | ||
14067 | ||
14068 | ||
14069 | ||
14070 | ||
14071 | ||
14072 | ||
14073 | ||
14074 | 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 | |
14075 | do | |
ec6a6fbe | 14076 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14078 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14079 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14080 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14081 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14082 | fi |
ec6a6fbe AK |
14083 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14084 | $as_echo "$as_val"'` | |
14085 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14086 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14087 | else |
14088 | # Is the header compilable? | |
ec6a6fbe AK |
14089 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14090 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14091 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14092 | /* confdefs.h. */ |
14093 | _ACEOF | |
14094 | cat confdefs.h >>conftest.$ac_ext | |
14095 | cat >>conftest.$ac_ext <<_ACEOF | |
14096 | /* end confdefs.h. */ | |
14097 | $ac_includes_default | |
14098 | #include <$ac_header> | |
14099 | _ACEOF | |
14100 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14101 | if { (ac_try="$ac_compile" |
14102 | case "(($ac_try" in | |
14103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14104 | *) ac_try_echo=$ac_try;; | |
14105 | esac | |
ec6a6fbe AK |
14106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14107 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14108 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14109 | ac_status=$? |
8a2fc586 AK |
14110 | grep -v '^ *+' conftest.er1 >conftest.err |
14111 | rm -f conftest.er1 | |
14112 | cat conftest.err >&5 | |
ec6a6fbe | 14113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14114 | (exit $ac_status); } && { |
14115 | test -z "$ac_c_werror_flag" || | |
14116 | test ! -s conftest.err | |
14117 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14118 | ac_header_compiler=yes |
14119 | else | |
ec6a6fbe | 14120 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14121 | sed 's/^/| /' conftest.$ac_ext >&5 |
14122 | ||
7a197a62 | 14123 | ac_header_compiler=no |
ad6254c5 | 14124 | fi |
7a197a62 AK |
14125 | |
14126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14127 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14128 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14129 | |
14130 | # Is the header present? | |
ec6a6fbe AK |
14131 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14132 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14133 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14134 | /* confdefs.h. */ |
14135 | _ACEOF | |
14136 | cat confdefs.h >>conftest.$ac_ext | |
14137 | cat >>conftest.$ac_ext <<_ACEOF | |
14138 | /* end confdefs.h. */ | |
14139 | #include <$ac_header> | |
14140 | _ACEOF | |
7a197a62 AK |
14141 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14142 | case "(($ac_try" in | |
14143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14144 | *) ac_try_echo=$ac_try;; | |
14145 | esac | |
ec6a6fbe AK |
14146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14147 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14148 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14149 | ac_status=$? |
14150 | grep -v '^ *+' conftest.er1 >conftest.err | |
14151 | rm -f conftest.er1 | |
14152 | cat conftest.err >&5 | |
ec6a6fbe | 14153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14154 | (exit $ac_status); } >/dev/null && { |
14155 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14156 | test ! -s conftest.err | |
14157 | }; then | |
ad6254c5 AK |
14158 | ac_header_preproc=yes |
14159 | else | |
ec6a6fbe | 14160 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14161 | sed 's/^/| /' conftest.$ac_ext >&5 |
14162 | ||
14163 | ac_header_preproc=no | |
14164 | fi | |
7a197a62 | 14165 | |
ad6254c5 | 14166 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14167 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14168 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14169 | |
14170 | # So? What about this header? | |
8a2fc586 AK |
14171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14172 | yes:no: ) | |
ec6a6fbe AK |
14173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14174 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14175 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14176 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14177 | ac_header_preproc=yes |
ad6254c5 | 14178 | ;; |
8a2fc586 | 14179 | no:yes:* ) |
ec6a6fbe AK |
14180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14181 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14183 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14185 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14187 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14189 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14191 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14192 | |
ad6254c5 AK |
14193 | ;; |
14194 | esac | |
ec6a6fbe AK |
14195 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14196 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14198 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14199 | else |
8a2fc586 | 14200 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14201 | fi |
ec6a6fbe AK |
14202 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14203 | $as_echo "$as_val"'` | |
14204 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14205 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14206 | |
14207 | fi | |
ec6a6fbe AK |
14208 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14209 | $as_echo "$as_val"'` | |
14210 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14211 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14212 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14213 | _ACEOF |
14214 | ||
14215 | else | |
ec6a6fbe AK |
14216 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14217 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14218 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14219 | fi |
14220 | ||
ad6254c5 AK |
14221 | done |
14222 | ||
14223 | ||
795ca3e5 | 14224 | |
8106cdd5 | 14225 | |
ad6254c5 AK |
14226 | |
14227 | ||
14228 | for ac_func in dup2 getmntent memmove select socket | |
14229 | do | |
ec6a6fbe AK |
14230 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14231 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14232 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14233 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14234 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14235 | else |
ad6254c5 | 14236 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14237 | /* confdefs.h. */ |
14238 | _ACEOF | |
14239 | cat confdefs.h >>conftest.$ac_ext | |
14240 | cat >>conftest.$ac_ext <<_ACEOF | |
14241 | /* end confdefs.h. */ | |
8a2fc586 AK |
14242 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14243 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14244 | #define $ac_func innocuous_$ac_func | |
14245 | ||
795ca3e5 | 14246 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
14247 | which can conflict with char $ac_func (); below. |
14248 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14249 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14250 | |
ad6254c5 AK |
14251 | #ifdef __STDC__ |
14252 | # include <limits.h> | |
14253 | #else | |
14254 | # include <assert.h> | |
14255 | #endif | |
8a2fc586 AK |
14256 | |
14257 | #undef $ac_func | |
14258 | ||
7a197a62 AK |
14259 | /* Override any GCC internal prototype to avoid an error. |
14260 | Use char because int might match the return type of a GCC | |
14261 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14262 | #ifdef __cplusplus |
14263 | extern "C" | |
ad6254c5 | 14264 | #endif |
ad6254c5 | 14265 | char $ac_func (); |
795ca3e5 AK |
14266 | /* The GNU C library defines this for functions which it implements |
14267 | to always fail with ENOSYS. Some functions are actually named | |
14268 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14269 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 14270 | choke me |
795ca3e5 AK |
14271 | #endif |
14272 | ||
ad6254c5 AK |
14273 | int |
14274 | main () | |
14275 | { | |
7a197a62 | 14276 | return $ac_func (); |
ad6254c5 AK |
14277 | ; |
14278 | return 0; | |
14279 | } | |
14280 | _ACEOF | |
14281 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14282 | if { (ac_try="$ac_link" |
14283 | case "(($ac_try" in | |
14284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14285 | *) ac_try_echo=$ac_try;; | |
14286 | esac | |
ec6a6fbe AK |
14287 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14288 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14289 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14290 | ac_status=$? |
8a2fc586 AK |
14291 | grep -v '^ *+' conftest.er1 >conftest.err |
14292 | rm -f conftest.er1 | |
14293 | cat conftest.err >&5 | |
ec6a6fbe | 14294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14295 | (exit $ac_status); } && { |
14296 | test -z "$ac_c_werror_flag" || | |
14297 | test ! -s conftest.err | |
ec6a6fbe AK |
14298 | } && test -s conftest$ac_exeext && { |
14299 | test "$cross_compiling" = yes || | |
14300 | $as_test_x conftest$ac_exeext | |
14301 | }; then | |
ad6254c5 | 14302 | eval "$as_ac_var=yes" |
795ca3e5 | 14303 | else |
ec6a6fbe | 14304 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14305 | sed 's/^/| /' conftest.$ac_ext >&5 |
14306 | ||
7a197a62 | 14307 | eval "$as_ac_var=no" |
80992638 | 14308 | fi |
7a197a62 | 14309 | |
ec6a6fbe | 14310 | rm -rf conftest.dSYM |
25fbec5b | 14311 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14312 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 14313 | fi |
ec6a6fbe AK |
14314 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14315 | $as_echo "$as_val"'` | |
14316 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14317 | $as_echo "$ac_res" >&6; } | |
14318 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14319 | $as_echo "$as_val"'` | |
14320 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14321 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14322 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 14323 | _ACEOF |
80992638 AK |
14324 | |
14325 | else | |
ec6a6fbe AK |
14326 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14327 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14328 | { (exit 1); exit 1; }; } |
8106cdd5 | 14329 | fi |
ad6254c5 | 14330 | done |
795ca3e5 | 14331 | |
25fbec5b AK |
14332 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
14333 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
14334 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
14335 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 14336 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 14337 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
14338 | else |
14339 | ac_func_search_save_LIBS=$LIBS | |
14340 | cat >conftest.$ac_ext <<_ACEOF | |
14341 | /* confdefs.h. */ | |
14342 | _ACEOF | |
14343 | cat confdefs.h >>conftest.$ac_ext | |
14344 | cat >>conftest.$ac_ext <<_ACEOF | |
14345 | /* end confdefs.h. */ | |
80992638 | 14346 | |
7a197a62 AK |
14347 | /* Override any GCC internal prototype to avoid an error. |
14348 | Use char because int might match the return type of a GCC | |
ad6254c5 | 14349 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
14350 | #ifdef __cplusplus |
14351 | extern "C" | |
14352 | #endif | |
25fbec5b | 14353 | char getmntent (); |
ad6254c5 AK |
14354 | int |
14355 | main () | |
14356 | { | |
25fbec5b | 14357 | return getmntent (); |
ad6254c5 AK |
14358 | ; |
14359 | return 0; | |
14360 | } | |
14361 | _ACEOF | |
25fbec5b AK |
14362 | for ac_lib in '' sun seq gen; do |
14363 | if test -z "$ac_lib"; then | |
14364 | ac_res="none required" | |
14365 | else | |
14366 | ac_res=-l$ac_lib | |
14367 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14368 | fi | |
14369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14370 | if { (ac_try="$ac_link" |
14371 | case "(($ac_try" in | |
14372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14373 | *) ac_try_echo=$ac_try;; | |
14374 | esac | |
ec6a6fbe AK |
14375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14376 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14377 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14378 | ac_status=$? |
8a2fc586 AK |
14379 | grep -v '^ *+' conftest.er1 >conftest.err |
14380 | rm -f conftest.er1 | |
14381 | cat conftest.err >&5 | |
ec6a6fbe | 14382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14383 | (exit $ac_status); } && { |
14384 | test -z "$ac_c_werror_flag" || | |
14385 | test ! -s conftest.err | |
ec6a6fbe AK |
14386 | } && test -s conftest$ac_exeext && { |
14387 | test "$cross_compiling" = yes || | |
14388 | $as_test_x conftest$ac_exeext | |
14389 | }; then | |
25fbec5b | 14390 | ac_cv_search_getmntent=$ac_res |
80992638 | 14391 | else |
ec6a6fbe | 14392 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14393 | sed 's/^/| /' conftest.$ac_ext >&5 |
14394 | ||
25fbec5b | 14395 | |
795ca3e5 AK |
14396 | fi |
14397 | ||
ec6a6fbe | 14398 | rm -rf conftest.dSYM |
25fbec5b AK |
14399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14400 | conftest$ac_exeext | |
14401 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14402 | break | |
795ca3e5 | 14403 | fi |
25fbec5b AK |
14404 | done |
14405 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14406 | : | |
14407 | else | |
14408 | ac_cv_search_getmntent=no | |
14409 | fi | |
14410 | rm conftest.$ac_ext | |
14411 | LIBS=$ac_func_search_save_LIBS | |
14412 | fi | |
ec6a6fbe AK |
14413 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14414 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14415 | ac_res=$ac_cv_search_getmntent |
14416 | if test "$ac_res" != no; then | |
14417 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14418 | ac_cv_func_getmntent=yes | |
14419 | ||
14420 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14421 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14422 | _ACEOF |
795ca3e5 | 14423 | |
25fbec5b AK |
14424 | else |
14425 | ac_cv_func_getmntent=no | |
795ca3e5 | 14426 | fi |
795ca3e5 AK |
14427 | |
14428 | ||
ad6254c5 AK |
14429 | # AC_FUNC_REALLOC |
14430 | ||
14431 | ||
14432 | for ac_header in sys/select.h sys/socket.h | |
14433 | do | |
ec6a6fbe | 14434 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14436 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14437 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14439 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14440 | fi |
ec6a6fbe AK |
14441 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14442 | $as_echo "$as_val"'` | |
14443 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14444 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14445 | else |
ad6254c5 | 14446 | # Is the header compilable? |
ec6a6fbe AK |
14447 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14448 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14449 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14450 | /* confdefs.h. */ |
14451 | _ACEOF | |
14452 | cat confdefs.h >>conftest.$ac_ext | |
14453 | cat >>conftest.$ac_ext <<_ACEOF | |
14454 | /* end confdefs.h. */ | |
14455 | $ac_includes_default | |
14456 | #include <$ac_header> | |
14457 | _ACEOF | |
14458 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14459 | if { (ac_try="$ac_compile" |
14460 | case "(($ac_try" in | |
14461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14462 | *) ac_try_echo=$ac_try;; | |
14463 | esac | |
ec6a6fbe AK |
14464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14465 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14466 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14467 | ac_status=$? |
8a2fc586 AK |
14468 | grep -v '^ *+' conftest.er1 >conftest.err |
14469 | rm -f conftest.er1 | |
14470 | cat conftest.err >&5 | |
ec6a6fbe | 14471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14472 | (exit $ac_status); } && { |
14473 | test -z "$ac_c_werror_flag" || | |
14474 | test ! -s conftest.err | |
14475 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14476 | ac_header_compiler=yes |
80992638 | 14477 | else |
ec6a6fbe | 14478 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14479 | sed 's/^/| /' conftest.$ac_ext >&5 |
14480 | ||
7a197a62 | 14481 | ac_header_compiler=no |
ad6254c5 | 14482 | fi |
7a197a62 AK |
14483 | |
14484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14485 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14486 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14487 | |
14488 | # Is the header present? | |
ec6a6fbe AK |
14489 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14490 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14491 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14492 | /* confdefs.h. */ |
14493 | _ACEOF | |
14494 | cat confdefs.h >>conftest.$ac_ext | |
14495 | cat >>conftest.$ac_ext <<_ACEOF | |
14496 | /* end confdefs.h. */ | |
14497 | #include <$ac_header> | |
14498 | _ACEOF | |
7a197a62 AK |
14499 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14500 | case "(($ac_try" in | |
14501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14502 | *) ac_try_echo=$ac_try;; | |
14503 | esac | |
ec6a6fbe AK |
14504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14505 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14507 | ac_status=$? |
14508 | grep -v '^ *+' conftest.er1 >conftest.err | |
14509 | rm -f conftest.er1 | |
14510 | cat conftest.err >&5 | |
ec6a6fbe | 14511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14512 | (exit $ac_status); } >/dev/null && { |
14513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14514 | test ! -s conftest.err | |
14515 | }; then | |
ad6254c5 AK |
14516 | ac_header_preproc=yes |
14517 | else | |
ec6a6fbe | 14518 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14519 | sed 's/^/| /' conftest.$ac_ext >&5 |
14520 | ||
14521 | ac_header_preproc=no | |
14522 | fi | |
7a197a62 | 14523 | |
ad6254c5 | 14524 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14525 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14526 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14527 | |
14528 | # So? What about this header? | |
8a2fc586 AK |
14529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14530 | yes:no: ) | |
ec6a6fbe AK |
14531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14532 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14534 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14535 | ac_header_preproc=yes |
ad6254c5 | 14536 | ;; |
8a2fc586 | 14537 | no:yes:* ) |
ec6a6fbe AK |
14538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14539 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14541 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14543 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14545 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14547 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14549 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14550 | |
ad6254c5 AK |
14551 | ;; |
14552 | esac | |
ec6a6fbe AK |
14553 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14554 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14556 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14557 | else |
8a2fc586 | 14558 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14559 | fi |
ec6a6fbe AK |
14560 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14561 | $as_echo "$as_val"'` | |
14562 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14563 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14564 | |
795ca3e5 | 14565 | fi |
ec6a6fbe AK |
14566 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14567 | $as_echo "$as_val"'` | |
14568 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14569 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14570 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14571 | _ACEOF |
14572 | ||
795ca3e5 AK |
14573 | fi |
14574 | ||
ad6254c5 AK |
14575 | done |
14576 | ||
ec6a6fbe AK |
14577 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14578 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14579 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14580 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14581 | else |
ad6254c5 | 14582 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14583 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14584 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14585 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14586 | /* confdefs.h. */ |
14587 | _ACEOF | |
14588 | cat confdefs.h >>conftest.$ac_ext | |
14589 | cat >>conftest.$ac_ext <<_ACEOF | |
14590 | /* end confdefs.h. */ | |
14591 | $ac_includes_default | |
25fbec5b | 14592 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14593 | # include <sys/select.h> |
14594 | #endif | |
25fbec5b | 14595 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14596 | # include <sys/socket.h> |
14597 | #endif | |
14598 | ||
14599 | int | |
14600 | main () | |
14601 | { | |
14602 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14603 | $ac_arg234, $ac_arg234, $ac_arg234, |
14604 | $ac_arg5); | |
ad6254c5 AK |
14605 | ; |
14606 | return 0; | |
14607 | } | |
14608 | _ACEOF | |
14609 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14610 | if { (ac_try="$ac_compile" |
14611 | case "(($ac_try" in | |
14612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14613 | *) ac_try_echo=$ac_try;; | |
14614 | esac | |
ec6a6fbe AK |
14615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14616 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14617 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14618 | ac_status=$? |
8a2fc586 AK |
14619 | grep -v '^ *+' conftest.er1 >conftest.err |
14620 | rm -f conftest.er1 | |
14621 | cat conftest.err >&5 | |
ec6a6fbe | 14622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14623 | (exit $ac_status); } && { |
14624 | test -z "$ac_c_werror_flag" || | |
14625 | test ! -s conftest.err | |
14626 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14627 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14628 | else | |
ec6a6fbe | 14629 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14630 | sed 's/^/| /' conftest.$ac_ext >&5 |
14631 | ||
7a197a62 | 14632 | |
ad6254c5 | 14633 | fi |
7a197a62 AK |
14634 | |
14635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14636 | done |
14637 | done | |
14638 | done | |
14639 | # Provide a safe default value. | |
14640 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14641 | ||
26e7f2e0 | 14642 | fi |
ec6a6fbe AK |
14643 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14644 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14645 | ac_save_IFS=$IFS; IFS=',' |
14646 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14647 | IFS=$ac_save_IFS | |
14648 | shift | |
14649 | ||
14650 | cat >>confdefs.h <<_ACEOF | |
14651 | #define SELECT_TYPE_ARG1 $1 | |
14652 | _ACEOF | |
14653 | ||
14654 | ||
14655 | cat >>confdefs.h <<_ACEOF | |
14656 | #define SELECT_TYPE_ARG234 ($2) | |
14657 | _ACEOF | |
14658 | ||
14659 | ||
14660 | cat >>confdefs.h <<_ACEOF | |
14661 | #define SELECT_TYPE_ARG5 ($3) | |
14662 | _ACEOF | |
14663 | ||
80992638 | 14664 | rm -f conftest* |
80992638 | 14665 | |
8106cdd5 | 14666 | fi |
ad6254c5 | 14667 | |
ad6254c5 AK |
14668 | if test x$CLUSTER != xnone; then |
14669 | ||
14670 | ||
14671 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14672 | do |
ec6a6fbe | 14673 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14674 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14675 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14676 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14678 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14679 | fi |
ec6a6fbe AK |
14680 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14681 | $as_echo "$as_val"'` | |
14682 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14683 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14684 | else |
14685 | # Is the header compilable? | |
ec6a6fbe AK |
14686 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14687 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14688 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14689 | /* confdefs.h. */ |
14690 | _ACEOF | |
14691 | cat confdefs.h >>conftest.$ac_ext | |
14692 | cat >>conftest.$ac_ext <<_ACEOF | |
14693 | /* end confdefs.h. */ | |
14694 | $ac_includes_default | |
14695 | #include <$ac_header> | |
14696 | _ACEOF | |
14697 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14698 | if { (ac_try="$ac_compile" |
14699 | case "(($ac_try" in | |
14700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14701 | *) ac_try_echo=$ac_try;; | |
14702 | esac | |
ec6a6fbe AK |
14703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14704 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14705 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14706 | ac_status=$? |
8a2fc586 AK |
14707 | grep -v '^ *+' conftest.er1 >conftest.err |
14708 | rm -f conftest.er1 | |
14709 | cat conftest.err >&5 | |
ec6a6fbe | 14710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14711 | (exit $ac_status); } && { |
14712 | test -z "$ac_c_werror_flag" || | |
14713 | test ! -s conftest.err | |
14714 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14715 | ac_header_compiler=yes |
14716 | else | |
ec6a6fbe | 14717 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14718 | sed 's/^/| /' conftest.$ac_ext >&5 |
14719 | ||
7a197a62 | 14720 | ac_header_compiler=no |
ad6254c5 | 14721 | fi |
7a197a62 AK |
14722 | |
14723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14724 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14725 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14726 | |
14727 | # Is the header present? | |
ec6a6fbe AK |
14728 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14729 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14730 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14731 | /* confdefs.h. */ |
14732 | _ACEOF | |
14733 | cat confdefs.h >>conftest.$ac_ext | |
14734 | cat >>conftest.$ac_ext <<_ACEOF | |
14735 | /* end confdefs.h. */ | |
14736 | #include <$ac_header> | |
14737 | _ACEOF | |
7a197a62 AK |
14738 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14739 | case "(($ac_try" in | |
14740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14741 | *) ac_try_echo=$ac_try;; | |
14742 | esac | |
ec6a6fbe AK |
14743 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14744 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14745 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14746 | ac_status=$? |
14747 | grep -v '^ *+' conftest.er1 >conftest.err | |
14748 | rm -f conftest.er1 | |
14749 | cat conftest.err >&5 | |
ec6a6fbe | 14750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14751 | (exit $ac_status); } >/dev/null && { |
14752 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14753 | test ! -s conftest.err | |
14754 | }; then | |
ad6254c5 AK |
14755 | ac_header_preproc=yes |
14756 | else | |
ec6a6fbe | 14757 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14758 | sed 's/^/| /' conftest.$ac_ext >&5 |
14759 | ||
14760 | ac_header_preproc=no | |
14761 | fi | |
7a197a62 | 14762 | |
ad6254c5 | 14763 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14764 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14765 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14766 | |
14767 | # So? What about this header? | |
8a2fc586 AK |
14768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14769 | yes:no: ) | |
ec6a6fbe AK |
14770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14771 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14773 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14774 | ac_header_preproc=yes |
ad6254c5 | 14775 | ;; |
8a2fc586 | 14776 | no:yes:* ) |
ec6a6fbe AK |
14777 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14778 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14779 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14780 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14782 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14784 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14786 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14788 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14789 | |
ad6254c5 AK |
14790 | ;; |
14791 | esac | |
ec6a6fbe AK |
14792 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14793 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14794 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14795 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14796 | else |
8a2fc586 | 14797 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14798 | fi |
ec6a6fbe AK |
14799 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14800 | $as_echo "$as_val"'` | |
14801 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14802 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14803 | |
14804 | fi | |
ec6a6fbe AK |
14805 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14806 | $as_echo "$as_val"'` | |
14807 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14808 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14809 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14810 | _ACEOF |
14811 | ||
80992638 | 14812 | else |
ec6a6fbe AK |
14813 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14814 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14815 | { (exit 1); exit 1; }; } |
b896caa1 | 14816 | fi |
ad6254c5 | 14817 | |
b896caa1 AK |
14818 | done |
14819 | ||
14820 | ||
ad6254c5 AK |
14821 | for ac_func in socket |
14822 | do | |
ec6a6fbe AK |
14823 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14824 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14825 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14826 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14827 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14828 | else |
ad6254c5 | 14829 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14830 | /* confdefs.h. */ |
14831 | _ACEOF | |
14832 | cat confdefs.h >>conftest.$ac_ext | |
14833 | cat >>conftest.$ac_ext <<_ACEOF | |
14834 | /* end confdefs.h. */ | |
8a2fc586 AK |
14835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14837 | #define $ac_func innocuous_$ac_func | |
14838 | ||
ad6254c5 AK |
14839 | /* System header to define __stub macros and hopefully few prototypes, |
14840 | which can conflict with char $ac_func (); below. | |
14841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14842 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14843 | |
ad6254c5 AK |
14844 | #ifdef __STDC__ |
14845 | # include <limits.h> | |
14846 | #else | |
14847 | # include <assert.h> | |
14848 | #endif | |
8a2fc586 AK |
14849 | |
14850 | #undef $ac_func | |
14851 | ||
7a197a62 AK |
14852 | /* Override any GCC internal prototype to avoid an error. |
14853 | Use char because int might match the return type of a GCC | |
14854 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14855 | #ifdef __cplusplus |
14856 | extern "C" | |
ad6254c5 | 14857 | #endif |
ad6254c5 AK |
14858 | char $ac_func (); |
14859 | /* The GNU C library defines this for functions which it implements | |
14860 | to always fail with ENOSYS. Some functions are actually named | |
14861 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14862 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14863 | choke me |
ad6254c5 AK |
14864 | #endif |
14865 | ||
14866 | int | |
14867 | main () | |
14868 | { | |
7a197a62 | 14869 | return $ac_func (); |
ad6254c5 AK |
14870 | ; |
14871 | return 0; | |
14872 | } | |
14873 | _ACEOF | |
14874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14875 | if { (ac_try="$ac_link" |
14876 | case "(($ac_try" in | |
14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14878 | *) ac_try_echo=$ac_try;; | |
14879 | esac | |
ec6a6fbe AK |
14880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14881 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14882 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14883 | ac_status=$? |
8a2fc586 AK |
14884 | grep -v '^ *+' conftest.er1 >conftest.err |
14885 | rm -f conftest.er1 | |
14886 | cat conftest.err >&5 | |
ec6a6fbe | 14887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14888 | (exit $ac_status); } && { |
14889 | test -z "$ac_c_werror_flag" || | |
14890 | test ! -s conftest.err | |
ec6a6fbe AK |
14891 | } && test -s conftest$ac_exeext && { |
14892 | test "$cross_compiling" = yes || | |
14893 | $as_test_x conftest$ac_exeext | |
14894 | }; then | |
ad6254c5 AK |
14895 | eval "$as_ac_var=yes" |
14896 | else | |
ec6a6fbe | 14897 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14898 | sed 's/^/| /' conftest.$ac_ext >&5 |
14899 | ||
7a197a62 | 14900 | eval "$as_ac_var=no" |
ad6254c5 | 14901 | fi |
7a197a62 | 14902 | |
ec6a6fbe | 14903 | rm -rf conftest.dSYM |
25fbec5b | 14904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14905 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14906 | fi |
ec6a6fbe AK |
14907 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14908 | $as_echo "$as_val"'` | |
14909 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14910 | $as_echo "$ac_res" >&6; } | |
14911 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14912 | $as_echo "$as_val"'` | |
14913 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14914 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14915 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14916 | _ACEOF |
14917 | ||
14918 | else | |
ec6a6fbe AK |
14919 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14920 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14921 | { (exit 1); exit 1; }; } |
14922 | fi | |
14923 | done | |
14924 | ||
14925 | fi | |
14926 | ||
14927 | if test x$HAVE_LIBDL = xyes; then | |
14928 | ||
14929 | for ac_header in dlfcn.h | |
14930 | do | |
ec6a6fbe | 14931 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14933 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14934 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14935 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14936 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14937 | fi |
ec6a6fbe AK |
14938 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14939 | $as_echo "$as_val"'` | |
14940 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14941 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14942 | else |
14943 | # Is the header compilable? | |
ec6a6fbe AK |
14944 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14945 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14946 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14947 | /* confdefs.h. */ |
14948 | _ACEOF | |
14949 | cat confdefs.h >>conftest.$ac_ext | |
14950 | cat >>conftest.$ac_ext <<_ACEOF | |
14951 | /* end confdefs.h. */ | |
14952 | $ac_includes_default | |
14953 | #include <$ac_header> | |
14954 | _ACEOF | |
14955 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14956 | if { (ac_try="$ac_compile" |
14957 | case "(($ac_try" in | |
14958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14959 | *) ac_try_echo=$ac_try;; | |
14960 | esac | |
ec6a6fbe AK |
14961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14962 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14963 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14964 | ac_status=$? |
8a2fc586 AK |
14965 | grep -v '^ *+' conftest.er1 >conftest.err |
14966 | rm -f conftest.er1 | |
14967 | cat conftest.err >&5 | |
ec6a6fbe | 14968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14969 | (exit $ac_status); } && { |
14970 | test -z "$ac_c_werror_flag" || | |
14971 | test ! -s conftest.err | |
14972 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14973 | ac_header_compiler=yes |
14974 | else | |
ec6a6fbe | 14975 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14976 | sed 's/^/| /' conftest.$ac_ext >&5 |
14977 | ||
7a197a62 | 14978 | ac_header_compiler=no |
ad6254c5 | 14979 | fi |
7a197a62 AK |
14980 | |
14981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14982 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14983 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14984 | |
14985 | # Is the header present? | |
ec6a6fbe AK |
14986 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14987 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14988 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14989 | /* confdefs.h. */ |
14990 | _ACEOF | |
14991 | cat confdefs.h >>conftest.$ac_ext | |
14992 | cat >>conftest.$ac_ext <<_ACEOF | |
14993 | /* end confdefs.h. */ | |
14994 | #include <$ac_header> | |
14995 | _ACEOF | |
7a197a62 AK |
14996 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14997 | case "(($ac_try" in | |
14998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14999 | *) ac_try_echo=$ac_try;; | |
15000 | esac | |
ec6a6fbe AK |
15001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15002 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15004 | ac_status=$? |
15005 | grep -v '^ *+' conftest.er1 >conftest.err | |
15006 | rm -f conftest.er1 | |
15007 | cat conftest.err >&5 | |
ec6a6fbe | 15008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15009 | (exit $ac_status); } >/dev/null && { |
15010 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15011 | test ! -s conftest.err | |
15012 | }; then | |
ad6254c5 AK |
15013 | ac_header_preproc=yes |
15014 | else | |
ec6a6fbe | 15015 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15016 | sed 's/^/| /' conftest.$ac_ext >&5 |
15017 | ||
15018 | ac_header_preproc=no | |
15019 | fi | |
7a197a62 | 15020 | |
ad6254c5 | 15021 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15022 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15023 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15024 | |
15025 | # So? What about this header? | |
8a2fc586 AK |
15026 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15027 | yes:no: ) | |
ec6a6fbe AK |
15028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15029 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15031 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15032 | ac_header_preproc=yes |
ad6254c5 | 15033 | ;; |
8a2fc586 | 15034 | no:yes:* ) |
ec6a6fbe AK |
15035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15036 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15037 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15038 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15039 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15040 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15041 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15042 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15043 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15044 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15045 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15046 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15047 | |
ad6254c5 AK |
15048 | ;; |
15049 | esac | |
ec6a6fbe AK |
15050 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15051 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15053 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15054 | else |
8a2fc586 | 15055 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 15056 | fi |
ec6a6fbe AK |
15057 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15058 | $as_echo "$as_val"'` | |
15059 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15060 | $as_echo "$ac_res" >&6; } | |
80992638 | 15061 | |
8106cdd5 | 15062 | fi |
ec6a6fbe AK |
15063 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15064 | $as_echo "$as_val"'` | |
15065 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15066 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15067 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15068 | _ACEOF |
795ca3e5 AK |
15069 | |
15070 | else | |
ec6a6fbe AK |
15071 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15072 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15073 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
15074 | fi |
15075 | ||
ad6254c5 | 15076 | done |
80992638 | 15077 | |
ad6254c5 | 15078 | fi |
80992638 | 15079 | |
ad6254c5 | 15080 | if test x$INTL = xyes; then |
83912faa | 15081 | |
ad6254c5 AK |
15082 | for ac_header in libintl.h |
15083 | do | |
ec6a6fbe | 15084 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15086 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15087 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15088 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15089 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15090 | fi |
ec6a6fbe AK |
15091 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15092 | $as_echo "$as_val"'` | |
15093 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15094 | $as_echo "$ac_res" >&6; } | |
83912faa | 15095 | else |
ad6254c5 | 15096 | # Is the header compilable? |
ec6a6fbe AK |
15097 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15098 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15099 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15100 | /* confdefs.h. */ |
15101 | _ACEOF | |
15102 | cat confdefs.h >>conftest.$ac_ext | |
15103 | cat >>conftest.$ac_ext <<_ACEOF | |
15104 | /* end confdefs.h. */ | |
15105 | $ac_includes_default | |
15106 | #include <$ac_header> | |
15107 | _ACEOF | |
15108 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15109 | if { (ac_try="$ac_compile" |
15110 | case "(($ac_try" in | |
15111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15112 | *) ac_try_echo=$ac_try;; | |
15113 | esac | |
ec6a6fbe AK |
15114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15115 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15116 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15117 | ac_status=$? |
8a2fc586 AK |
15118 | grep -v '^ *+' conftest.er1 >conftest.err |
15119 | rm -f conftest.er1 | |
15120 | cat conftest.err >&5 | |
ec6a6fbe | 15121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15122 | (exit $ac_status); } && { |
15123 | test -z "$ac_c_werror_flag" || | |
15124 | test ! -s conftest.err | |
15125 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15126 | ac_header_compiler=yes |
15127 | else | |
ec6a6fbe | 15128 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15129 | sed 's/^/| /' conftest.$ac_ext >&5 |
15130 | ||
7a197a62 | 15131 | ac_header_compiler=no |
ad6254c5 | 15132 | fi |
7a197a62 AK |
15133 | |
15134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15135 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15136 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15137 | |
15138 | # Is the header present? | |
ec6a6fbe AK |
15139 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15140 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15141 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15142 | /* confdefs.h. */ |
15143 | _ACEOF | |
15144 | cat confdefs.h >>conftest.$ac_ext | |
15145 | cat >>conftest.$ac_ext <<_ACEOF | |
15146 | /* end confdefs.h. */ | |
15147 | #include <$ac_header> | |
15148 | _ACEOF | |
7a197a62 AK |
15149 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15150 | case "(($ac_try" in | |
15151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15152 | *) ac_try_echo=$ac_try;; | |
15153 | esac | |
ec6a6fbe AK |
15154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15155 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15156 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15157 | ac_status=$? |
15158 | grep -v '^ *+' conftest.er1 >conftest.err | |
15159 | rm -f conftest.er1 | |
15160 | cat conftest.err >&5 | |
ec6a6fbe | 15161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15162 | (exit $ac_status); } >/dev/null && { |
15163 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15164 | test ! -s conftest.err | |
15165 | }; then | |
ad6254c5 AK |
15166 | ac_header_preproc=yes |
15167 | else | |
ec6a6fbe | 15168 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15169 | sed 's/^/| /' conftest.$ac_ext >&5 |
15170 | ||
15171 | ac_header_preproc=no | |
15172 | fi | |
7a197a62 | 15173 | |
ad6254c5 | 15174 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15175 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15176 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15177 | |
15178 | # So? What about this header? | |
8a2fc586 AK |
15179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15180 | yes:no: ) | |
ec6a6fbe AK |
15181 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15182 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15183 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15184 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15185 | ac_header_preproc=yes |
ad6254c5 | 15186 | ;; |
8a2fc586 | 15187 | no:yes:* ) |
ec6a6fbe AK |
15188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15189 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15191 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15193 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15195 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15196 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15197 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15198 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15199 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15200 | |
ad6254c5 AK |
15201 | ;; |
15202 | esac | |
ec6a6fbe AK |
15203 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15204 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15206 | $as_echo_n "(cached) " >&6 |
80992638 | 15207 | else |
8a2fc586 | 15208 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 15209 | fi |
ec6a6fbe AK |
15210 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15211 | $as_echo "$as_val"'` | |
15212 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15213 | $as_echo "$ac_res" >&6; } | |
83912faa | 15214 | |
69792976 | 15215 | fi |
ec6a6fbe AK |
15216 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15217 | $as_echo "$as_val"'` | |
15218 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15219 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15220 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15221 | _ACEOF |
69792976 | 15222 | |
69792976 | 15223 | else |
ec6a6fbe AK |
15224 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15225 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15226 | { (exit 1); exit 1; }; } |
80992638 AK |
15227 | fi |
15228 | ||
ad6254c5 | 15229 | done |
69792976 | 15230 | |
ad6254c5 AK |
15231 | fi |
15232 | ||
a5f46f6a AK |
15233 | if test x$UDEV_SYNC = xyes; then |
15234 | ||
15235 | ||
15236 | for ac_header in sys/ipc.h sys/sem.h | |
15237 | do | |
15238 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15239 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15240 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15241 | $as_echo_n "checking for $ac_header... " >&6; } | |
15242 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15243 | $as_echo_n "(cached) " >&6 | |
15244 | fi | |
15245 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15246 | $as_echo "$as_val"'` | |
15247 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15248 | $as_echo "$ac_res" >&6; } | |
15249 | else | |
15250 | # Is the header compilable? | |
15251 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15252 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15253 | cat >conftest.$ac_ext <<_ACEOF | |
15254 | /* confdefs.h. */ | |
15255 | _ACEOF | |
15256 | cat confdefs.h >>conftest.$ac_ext | |
15257 | cat >>conftest.$ac_ext <<_ACEOF | |
15258 | /* end confdefs.h. */ | |
15259 | $ac_includes_default | |
15260 | #include <$ac_header> | |
15261 | _ACEOF | |
15262 | rm -f conftest.$ac_objext | |
15263 | if { (ac_try="$ac_compile" | |
15264 | case "(($ac_try" in | |
15265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15266 | *) ac_try_echo=$ac_try;; | |
15267 | esac | |
15268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15269 | $as_echo "$ac_try_echo") >&5 | |
15270 | (eval "$ac_compile") 2>conftest.er1 | |
15271 | ac_status=$? | |
15272 | grep -v '^ *+' conftest.er1 >conftest.err | |
15273 | rm -f conftest.er1 | |
15274 | cat conftest.err >&5 | |
15275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15276 | (exit $ac_status); } && { | |
15277 | test -z "$ac_c_werror_flag" || | |
15278 | test ! -s conftest.err | |
15279 | } && test -s conftest.$ac_objext; then | |
15280 | ac_header_compiler=yes | |
15281 | else | |
15282 | $as_echo "$as_me: failed program was:" >&5 | |
15283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15284 | ||
15285 | ac_header_compiler=no | |
15286 | fi | |
15287 | ||
15288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15289 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15290 | $as_echo "$ac_header_compiler" >&6; } | |
15291 | ||
15292 | # Is the header present? | |
15293 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15294 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15295 | cat >conftest.$ac_ext <<_ACEOF | |
15296 | /* confdefs.h. */ | |
15297 | _ACEOF | |
15298 | cat confdefs.h >>conftest.$ac_ext | |
15299 | cat >>conftest.$ac_ext <<_ACEOF | |
15300 | /* end confdefs.h. */ | |
15301 | #include <$ac_header> | |
15302 | _ACEOF | |
15303 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15304 | case "(($ac_try" in | |
15305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15306 | *) ac_try_echo=$ac_try;; | |
15307 | esac | |
15308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15309 | $as_echo "$ac_try_echo") >&5 | |
15310 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15311 | ac_status=$? | |
15312 | grep -v '^ *+' conftest.er1 >conftest.err | |
15313 | rm -f conftest.er1 | |
15314 | cat conftest.err >&5 | |
15315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15316 | (exit $ac_status); } >/dev/null && { | |
15317 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15318 | test ! -s conftest.err | |
15319 | }; then | |
15320 | ac_header_preproc=yes | |
15321 | else | |
15322 | $as_echo "$as_me: failed program was:" >&5 | |
15323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15324 | ||
15325 | ac_header_preproc=no | |
15326 | fi | |
15327 | ||
15328 | rm -f conftest.err conftest.$ac_ext | |
15329 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15330 | $as_echo "$ac_header_preproc" >&6; } | |
15331 | ||
15332 | # So? What about this header? | |
15333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15334 | yes:no: ) | |
15335 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15336 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15337 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15338 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15339 | ac_header_preproc=yes | |
15340 | ;; | |
15341 | no:yes:* ) | |
15342 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15343 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15344 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15345 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15346 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15347 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15348 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15349 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15350 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15351 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15352 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15353 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15354 | ||
15355 | ;; | |
15356 | esac | |
15357 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15358 | $as_echo_n "checking for $ac_header... " >&6; } | |
15359 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15360 | $as_echo_n "(cached) " >&6 | |
15361 | else | |
15362 | eval "$as_ac_Header=\$ac_header_preproc" | |
15363 | fi | |
15364 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15365 | $as_echo "$as_val"'` | |
15366 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15367 | $as_echo "$ac_res" >&6; } | |
15368 | ||
15369 | fi | |
15370 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15371 | $as_echo "$as_val"'` | |
15372 | if test "x$as_val" = x""yes; then | |
15373 | cat >>confdefs.h <<_ACEOF | |
15374 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15375 | _ACEOF | |
15376 | ||
15377 | else | |
15378 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15379 | $as_echo "$as_me: error: bailing out" >&2;} | |
15380 | { (exit 1); exit 1; }; } | |
15381 | fi | |
15382 | ||
15383 | done | |
15384 | ||
15385 | fi | |
15386 | ||
a653923f AK |
15387 | ################################################################################ |
15388 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15389 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15390 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15391 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15392 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15393 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15394 | else |
15395 | case $MODPROBE_CMD in | |
15396 | [\\/]* | ?:[\\/]*) | |
15397 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15398 | ;; | |
15399 | *) | |
15400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15401 | for as_dir in $PATH | |
15402 | do | |
15403 | IFS=$as_save_IFS | |
15404 | test -z "$as_dir" && as_dir=. | |
15405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15407 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15408 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15409 | break 2 |
15410 | fi | |
15411 | done | |
15412 | done | |
7a197a62 | 15413 | IFS=$as_save_IFS |
72b2cb61 AK |
15414 | |
15415 | ;; | |
15416 | esac | |
15417 | fi | |
15418 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15419 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15420 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15421 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15422 | else |
ec6a6fbe AK |
15423 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15424 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15425 | fi |
15426 | ||
a653923f | 15427 | |
7a197a62 | 15428 | |
a653923f | 15429 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15430 | |
15431 | cat >>confdefs.h <<_ACEOF | |
15432 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15433 | _ACEOF | |
15434 | ||
a653923f AK |
15435 | fi |
15436 | ||
80992638 | 15437 | ################################################################################ |
93bd259b AK |
15438 | |
15439 | ||
15440 | if test "$BUILD_DMEVENTD" = yes; then | |
15441 | ||
15442 | # Check whether --with-dmeventd-pidfile was given. | |
15443 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15444 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15445 | #define DMEVENTD_PIDFILE "$withval" | |
15446 | _ACEOF | |
15447 | ||
15448 | else | |
15449 | cat >>confdefs.h <<_ACEOF | |
15450 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15451 | _ACEOF | |
15452 | ||
15453 | fi | |
15454 | ||
15455 | fi | |
15456 | ||
15457 | ||
15458 | ||
15459 | if test "$BUILD_DMEVENTD" = yes; then | |
15460 | dmeventd_prefix="$exec_prefix" | |
15461 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15462 | dmeventd_prefix="$prefix" | |
15463 | fi | |
15464 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15465 | dmeventd_prefix="" | |
15466 | fi | |
15467 | ||
15468 | # Check whether --with-dmeventd-path was given. | |
15469 | if test "${with_dmeventd_path+set}" = set; then | |
15470 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15471 | #define DMEVENTD_PATH "$withval" | |
15472 | _ACEOF | |
15473 | ||
15474 | else | |
15475 | cat >>confdefs.h <<_ACEOF | |
15476 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15477 | _ACEOF | |
15478 | ||
15479 | fi | |
15480 | ||
15481 | fi | |
15482 | ||
15483 | ################################################################################ | |
ec6a6fbe AK |
15484 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15485 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15486 | |
15487 | # Check whether --with-interface was given. | |
15488 | if test "${with_interface+set}" = set; then | |
15489 | withval=$with_interface; interface="$withval" | |
15490 | else | |
15491 | interface=ioctl | |
15492 | fi | |
15493 | ||
15494 | if [ "x$interface" != xioctl ]; | |
15495 | then | |
ec6a6fbe AK |
15496 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15497 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15498 | { (exit 1); exit 1; }; } |
15499 | fi | |
ec6a6fbe AK |
15500 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15501 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15502 | |
15503 | ################################################################################ | |
db8b5af9 | 15504 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15505 | |
15506 | cat >>confdefs.h <<_ACEOF | |
15507 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15508 | _ACEOF | |
15509 | ||
15510 | ||
db8b5af9 | 15511 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15512 | |
db8b5af9 | 15513 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15514 | |
db8b5af9 | 15515 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 15516 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15517 | VER=`echo "$VER" | $AWK '{print $1}'` |
15518 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15519 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15520 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15521 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15522 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15523 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15524 | |
80992638 | 15525 | ################################################################################ |
fae0c576 | 15526 | |
83912faa | 15527 | |
795ca3e5 AK |
15528 | |
15529 | ||
15530 | ||
15531 | ||
15532 | ||
15533 | ||
5a52dca9 | 15534 | |
8ef2b021 | 15535 | |
199e490e | 15536 | |
69792976 AK |
15537 | |
15538 | ||
15539 | ||
d0191583 | 15540 | |
69792976 | 15541 | |
8106cdd5 AK |
15542 | |
15543 | ||
15544 | ||
15545 | ||
15546 | ||
d68a82ec | 15547 | |
036f273a | 15548 | |
7d1552c9 | 15549 | |
8106cdd5 | 15550 | |
0a62c911 | 15551 | |
8106cdd5 | 15552 | |
4a7f3eb2 | 15553 | |
4922197a AK |
15554 | |
15555 | ||
d8ac0fbc | 15556 | |
1a9ea74d | 15557 | |
8a2fc586 AK |
15558 | |
15559 | ||
d0191583 | 15560 | |
93bd259b AK |
15561 | |
15562 | ||
15563 | ||
15564 | ||
15565 | ||
d0191583 JM |
15566 | |
15567 | ||
15568 | ||
15569 | ||
15570 | ||
8a2fc586 | 15571 | |
19a2c6e0 | 15572 | |
3ceb7608 | 15573 | |
8ce0cbda | 15574 | |
8b1a3214 | 15575 | |
ec6a6fbe AK |
15576 | |
15577 | ||
15578 | ||
15579 | ||
e2997b73 AK |
15580 | |
15581 | ||
15582 | ||
15583 | ||
15584 | ||
15585 | ||
a946372e AK |
15586 | |
15587 | ||
15588 | ||
15589 | ||
15590 | ||
15591 | ||
15592 | ||
15593 | ||
15594 | ||
15595 | ||
15596 | ||
ec6a6fbe | 15597 | |
33f732c5 | 15598 | |
66e941e8 | 15599 | |
d3c8211f | 15600 | |
7e3fe830 | 15601 | |
a5f46f6a AK |
15602 | |
15603 | ||
15604 | ||
572fefeb | 15605 | |
90c80887 AK |
15606 | |
15607 | ||
bf456146 | 15608 | |
e1b8a236 | 15609 | |
0878503f | 15610 | |
68f2de6d AK |
15611 | |
15612 | ||
80992638 | 15613 | ################################################################################ |
d3d98fdc | 15614 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile 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/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 15615 | |
ad6254c5 | 15616 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15617 | # This file is a shell script that caches the results of configure |
15618 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15619 | # scripts and configure runs, see configure's option --config-cache. |
15620 | # It is not useful on other systems. If it contains results you don't | |
15621 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15622 | # |
ad6254c5 AK |
15623 | # config.status only pays attention to the cache file if you give it |
15624 | # the --recheck option to rerun configure. | |
795ca3e5 | 15625 | # |
ad6254c5 AK |
15626 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15627 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15628 | # following values. | |
15629 | ||
15630 | _ACEOF | |
15631 | ||
795ca3e5 AK |
15632 | # The following way of writing the cache mishandles newlines in values, |
15633 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15634 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15635 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15636 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15637 | ( |
15638 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15639 | eval ac_val=\$$ac_var | |
15640 | case $ac_val in #( | |
15641 | *${as_nl}*) | |
15642 | case $ac_var in #( | |
ec6a6fbe AK |
15643 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15644 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15645 | esac |
15646 | case $ac_var in #( | |
15647 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15648 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15649 | *) $as_unset $ac_var ;; |
15650 | esac ;; | |
15651 | esac | |
15652 | done | |
15653 | ||
ad6254c5 | 15654 | (set) 2>&1 | |
7a197a62 AK |
15655 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15656 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15657 | # `set' does not quote correctly, so add quotes (double-quote |
15658 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15659 | sed -n \ | |
8a2fc586 AK |
15660 | "s/'/'\\\\''/g; |
15661 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15662 | ;; #( |
ad6254c5 AK |
15663 | *) |
15664 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15665 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15666 | ;; |
7a197a62 AK |
15667 | esac | |
15668 | sort | |
15669 | ) | | |
ad6254c5 | 15670 | sed ' |
7a197a62 | 15671 | /^ac_cv_env_/b end |
ad6254c5 | 15672 | t clear |
7a197a62 | 15673 | :clear |
ad6254c5 AK |
15674 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15675 | t end | |
7a197a62 AK |
15676 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15677 | :end' >>confcache | |
15678 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15679 | if test -w "$cache_file"; then | |
15680 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15681 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15682 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15683 | cat confcache >$cache_file |
795ca3e5 | 15684 | else |
ec6a6fbe AK |
15685 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15686 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15687 | fi |
15688 | fi | |
15689 | rm -f confcache | |
15690 | ||
795ca3e5 AK |
15691 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15692 | # Let make expand exec_prefix. | |
15693 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15694 | ||
72b2cb61 | 15695 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15696 | |
15697 | ac_libobjs= | |
15698 | ac_ltlibobjs= | |
15699 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15700 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15701 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15702 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15703 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15704 | # will be set to the directory where LIBOBJS objects are built. | |
15705 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15706 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15707 | done |
15708 | LIBOBJS=$ac_libobjs | |
80992638 | 15709 | |
ad6254c5 AK |
15710 | LTLIBOBJS=$ac_ltlibobjs |
15711 | ||
15712 | ||
15713 | ||
15714 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15715 | ac_write_fail=0 |
ad6254c5 AK |
15716 | ac_clean_files_save=$ac_clean_files |
15717 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15718 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15719 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15720 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15721 | #! $SHELL |
15722 | # Generated by $as_me. | |
795ca3e5 | 15723 | # Run this file to recreate the current configuration. |
795ca3e5 | 15724 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15725 | # configure, is in config.log if it exists. |
15726 | ||
15727 | debug=false | |
15728 | ac_cs_recheck=false | |
15729 | ac_cs_silent=false | |
15730 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15731 | _ACEOF | |
15732 | ||
ec6a6fbe | 15733 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15734 | ## --------------------- ## |
15735 | ## M4sh Initialization. ## | |
15736 | ## --------------------- ## | |
15737 | ||
25fbec5b AK |
15738 | # Be more Bourne compatible |
15739 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15740 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15741 | emulate sh | |
15742 | NULLCMD=: | |
ec6a6fbe | 15743 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15744 | # is contrary to our usage. Disable this feature. |
15745 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15746 | setopt NO_GLOB_SUBST |
15747 | else | |
25fbec5b AK |
15748 | case `(set -o) 2>/dev/null` in |
15749 | *posix*) set -o posix ;; | |
15750 | esac | |
15751 | ||
7a197a62 | 15752 | fi |
25fbec5b AK |
15753 | |
15754 | ||
7a197a62 AK |
15755 | |
15756 | ||
15757 | # PATH needs CR | |
15758 | # Avoid depending upon Character Ranges. | |
15759 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15760 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15761 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15762 | as_cr_digits='0123456789' | |
15763 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15764 | ||
ec6a6fbe AK |
15765 | as_nl=' |
15766 | ' | |
15767 | export as_nl | |
15768 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15769 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15770 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15771 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15772 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15773 | as_echo='printf %s\n' | |
15774 | as_echo_n='printf %s' | |
15775 | else | |
15776 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15777 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15778 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15779 | else |
ec6a6fbe AK |
15780 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15781 | as_echo_n_body='eval | |
15782 | arg=$1; | |
15783 | case $arg in | |
15784 | *"$as_nl"*) | |
15785 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15786 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15787 | esac; | |
15788 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15789 | ' | |
15790 | export as_echo_n_body | |
15791 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15792 | fi |
ec6a6fbe AK |
15793 | export as_echo_body |
15794 | as_echo='sh -c $as_echo_body as_echo' | |
15795 | fi | |
15796 | ||
15797 | # The user is always right. | |
15798 | if test "${PATH_SEPARATOR+set}" != set; then | |
15799 | PATH_SEPARATOR=: | |
15800 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15801 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15802 | PATH_SEPARATOR=';' | |
15803 | } | |
ad6254c5 AK |
15804 | fi |
15805 | ||
15806 | # Support unset when possible. | |
8a2fc586 | 15807 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15808 | as_unset=unset |
15809 | else | |
15810 | as_unset=false | |
15811 | fi | |
8106cdd5 | 15812 | |
ad6254c5 | 15813 | |
7a197a62 AK |
15814 | # IFS |
15815 | # We need space, tab and new line, in precisely that order. Quoting is | |
15816 | # there to prevent editors from complaining about space-tab. | |
15817 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15818 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15819 | IFS=" "" $as_nl" |
15820 | ||
15821 | # Find who we are. Look in the path if we contain no directory separator. | |
15822 | case $0 in | |
15823 | *[\\/]* ) as_myself=$0 ;; | |
15824 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15825 | for as_dir in $PATH | |
15826 | do | |
15827 | IFS=$as_save_IFS | |
15828 | test -z "$as_dir" && as_dir=. | |
15829 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15830 | done | |
15831 | IFS=$as_save_IFS | |
15832 | ||
15833 | ;; | |
15834 | esac | |
15835 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15836 | # in which case we are not to be found in the path. | |
15837 | if test "x$as_myself" = x; then | |
15838 | as_myself=$0 | |
15839 | fi | |
15840 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15841 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15842 | { (exit 1); exit 1; } |
15843 | fi | |
15844 | ||
ad6254c5 | 15845 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15846 | for as_var in ENV MAIL MAILPATH |
15847 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15848 | done | |
ad6254c5 AK |
15849 | PS1='$ ' |
15850 | PS2='> ' | |
15851 | PS4='+ ' | |
15852 | ||
15853 | # NLS nuisances. | |
ec6a6fbe AK |
15854 | LC_ALL=C |
15855 | export LC_ALL | |
15856 | LANGUAGE=C | |
15857 | export LANGUAGE | |
8106cdd5 | 15858 | |
ad6254c5 | 15859 | # Required to use basename. |
7a197a62 AK |
15860 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15861 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15862 | as_expr=expr |
15863 | else | |
15864 | as_expr=false | |
15865 | fi | |
8106cdd5 | 15866 | |
7a197a62 | 15867 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15868 | as_basename=basename |
15869 | else | |
15870 | as_basename=false | |
15871 | fi | |
15872 | ||
15873 | ||
15874 | # Name of the executable. | |
7a197a62 | 15875 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15876 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15877 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15878 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15879 | $as_echo X/"$0" | |
7a197a62 AK |
15880 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15881 | s//\1/ | |
15882 | q | |
15883 | } | |
15884 | /^X\/\(\/\/\)$/{ | |
15885 | s//\1/ | |
15886 | q | |
15887 | } | |
15888 | /^X\/\(\/\).*/{ | |
15889 | s//\1/ | |
15890 | q | |
15891 | } | |
15892 | s/.*/./; q'` | |
ad6254c5 | 15893 | |
7a197a62 AK |
15894 | # CDPATH. |
15895 | $as_unset CDPATH | |
ad6254c5 AK |
15896 | |
15897 | ||
ad6254c5 | 15898 | |
ad6254c5 AK |
15899 | as_lineno_1=$LINENO |
15900 | as_lineno_2=$LINENO | |
ad6254c5 | 15901 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15902 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15903 | |
ad6254c5 AK |
15904 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15905 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15906 | # line-number line after each line using $LINENO; the second 'sed' |
15907 | # does the real work. The second script uses 'N' to pair each | |
15908 | # line-number line with the line containing $LINENO, and appends | |
15909 | # trailing '-' during substitution so that $LINENO is not a special | |
15910 | # case at line end. | |
ad6254c5 | 15911 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15912 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15913 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15914 | sed -n ' | |
15915 | p | |
15916 | /[$]LINENO/= | |
15917 | ' <$as_myself | | |
ad6254c5 | 15918 | sed ' |
7a197a62 AK |
15919 | s/[$]LINENO.*/&-/ |
15920 | t lineno | |
15921 | b | |
15922 | :lineno | |
ad6254c5 | 15923 | N |
7a197a62 AK |
15924 | :loop |
15925 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15926 | t loop |
7a197a62 | 15927 | s/-\n.*// |
ad6254c5 | 15928 | ' >$as_me.lineno && |
7a197a62 | 15929 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15930 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15931 | { (exit 1); exit 1; }; } |
15932 | ||
15933 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15934 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15935 | # original and so on. Autoconf is especially sensitive to this). |
15936 | . "./$as_me.lineno" | |
ad6254c5 AK |
15937 | # Exit status is that of the last command. |
15938 | exit | |
15939 | } | |
15940 | ||
15941 | ||
7a197a62 AK |
15942 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15943 | as_dirname=dirname | |
15944 | else | |
15945 | as_dirname=false | |
15946 | fi | |
15947 | ||
15948 | ECHO_C= ECHO_N= ECHO_T= | |
15949 | case `echo -n x` in | |
15950 | -n*) | |
15951 | case `echo 'x\c'` in | |
15952 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15953 | *) ECHO_C='\c';; | |
15954 | esac;; | |
15955 | *) | |
15956 | ECHO_N='-n';; | |
ad6254c5 | 15957 | esac |
7a197a62 AK |
15958 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15959 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15960 | as_expr=expr |
15961 | else | |
15962 | as_expr=false | |
15963 | fi | |
80992638 | 15964 | |
ad6254c5 | 15965 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15966 | if test -d conf$$.dir; then |
15967 | rm -f conf$$.dir/conf$$.file | |
15968 | else | |
15969 | rm -f conf$$.dir | |
ec6a6fbe AK |
15970 | mkdir conf$$.dir 2>/dev/null |
15971 | fi | |
15972 | if (echo >conf$$.file) 2>/dev/null; then | |
15973 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15974 | as_ln_s='ln -s' | |
15975 | # ... but there are two gotchas: | |
15976 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15977 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15978 | # In both cases, we have to default to `cp -p'. | |
15979 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15980 | as_ln_s='cp -p' | |
15981 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15982 | as_ln_s=ln | |
15983 | else | |
ad6254c5 | 15984 | as_ln_s='cp -p' |
ec6a6fbe | 15985 | fi |
ad6254c5 AK |
15986 | else |
15987 | as_ln_s='cp -p' | |
15988 | fi | |
7a197a62 AK |
15989 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15990 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15991 | |
ad6254c5 AK |
15992 | if mkdir -p . 2>/dev/null; then |
15993 | as_mkdir_p=: | |
15994 | else | |
8a2fc586 | 15995 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
15996 | as_mkdir_p=false |
15997 | fi | |
15998 | ||
25fbec5b AK |
15999 | if test -x / >/dev/null 2>&1; then |
16000 | as_test_x='test -x' | |
7a197a62 | 16001 | else |
25fbec5b AK |
16002 | if ls -dL / >/dev/null 2>&1; then |
16003 | as_ls_L_option=L | |
16004 | else | |
16005 | as_ls_L_option= | |
16006 | fi | |
16007 | as_test_x=' | |
16008 | eval sh -c '\'' | |
16009 | if test -d "$1"; then | |
ec6a6fbe | 16010 | test -d "$1/."; |
25fbec5b AK |
16011 | else |
16012 | case $1 in | |
ec6a6fbe | 16013 | -*)set "./$1";; |
25fbec5b AK |
16014 | esac; |
16015 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
16016 | ???[sx]*):;;*)false;;esac;fi | |
16017 | '\'' sh | |
16018 | ' | |
7a197a62 | 16019 | fi |
25fbec5b | 16020 | as_executable_p=$as_test_x |
ad6254c5 AK |
16021 | |
16022 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 16023 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16024 | |
16025 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 16026 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16027 | |
16028 | ||
ad6254c5 AK |
16029 | exec 6>&1 |
16030 | ||
7a197a62 | 16031 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 16032 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
16033 | # values after options handling. |
16034 | ac_log=" | |
ad6254c5 | 16035 | This file was extended by $as_me, which was |
ec6a6fbe | 16036 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
16037 | |
16038 | CONFIG_FILES = $CONFIG_FILES | |
16039 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16040 | CONFIG_LINKS = $CONFIG_LINKS | |
16041 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16042 | $ $0 $@ | |
16043 | ||
7a197a62 AK |
16044 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16045 | " | |
16046 | ||
ad6254c5 AK |
16047 | _ACEOF |
16048 | ||
ec6a6fbe AK |
16049 | case $ac_config_files in *" |
16050 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16051 | esac | |
16052 | ||
16053 | case $ac_config_headers in *" | |
16054 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16055 | esac | |
16056 | ||
16057 | ||
16058 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 16059 | # Files that config.status was made for. |
68f2de6d AK |
16060 | config_files="$ac_config_files" |
16061 | config_headers="$ac_config_headers" | |
ad6254c5 | 16062 | |
7a197a62 | 16063 | _ACEOF |
ad6254c5 | 16064 | |
ec6a6fbe | 16065 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16066 | ac_cs_usage="\ |
16067 | \`$as_me' instantiates files from templates according to the | |
16068 | current configuration. | |
16069 | ||
ec6a6fbe | 16070 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
16071 | |
16072 | -h, --help print this help, then exit | |
25fbec5b | 16073 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
16074 | -q, --quiet, --silent |
16075 | do not print progress messages | |
ad6254c5 AK |
16076 | -d, --debug don't remove temporary files |
16077 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
16078 | --file=FILE[:TEMPLATE] |
16079 | instantiate the configuration file FILE | |
16080 | --header=FILE[:TEMPLATE] | |
16081 | instantiate the configuration header FILE | |
ad6254c5 AK |
16082 | |
16083 | Configuration files: | |
16084 | $config_files | |
16085 | ||
72b2cb61 AK |
16086 | Configuration headers: |
16087 | $config_headers | |
16088 | ||
ad6254c5 | 16089 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 16090 | |
7a197a62 | 16091 | _ACEOF |
ec6a6fbe | 16092 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16093 | ac_cs_version="\\ |
16094 | config.status | |
ec6a6fbe AK |
16095 | configured by $0, generated by GNU Autoconf 2.63, |
16096 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 16097 | |
ec6a6fbe | 16098 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
16099 | This config.status script is free software; the Free Software Foundation |
16100 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
16101 | |
16102 | ac_pwd='$ac_pwd' | |
16103 | srcdir='$srcdir' | |
16104 | INSTALL='$INSTALL' | |
fddafd51 | 16105 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
16106 | AWK='$AWK' |
16107 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
16108 | _ACEOF |
16109 | ||
ec6a6fbe AK |
16110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16111 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
16112 | ac_need_defaults=: |
16113 | while test $# != 0 | |
16114 | do | |
16115 | case $1 in | |
16116 | --*=*) | |
7a197a62 AK |
16117 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16118 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
16119 | ac_shift=: |
16120 | ;; | |
7a197a62 | 16121 | *) |
ad6254c5 AK |
16122 | ac_option=$1 |
16123 | ac_optarg=$2 | |
16124 | ac_shift=shift | |
16125 | ;; | |
ad6254c5 AK |
16126 | esac |
16127 | ||
16128 | case $ac_option in | |
16129 | # Handling of the options. | |
ad6254c5 AK |
16130 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16131 | ac_cs_recheck=: ;; | |
7a197a62 | 16132 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 16133 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 16134 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
16135 | debug=: ;; |
16136 | --file | --fil | --fi | --f ) | |
16137 | $ac_shift | |
ec6a6fbe AK |
16138 | case $ac_optarg in |
16139 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16140 | esac | |
16141 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
16142 | ac_need_defaults=false;; |
16143 | --header | --heade | --head | --hea ) | |
16144 | $ac_shift | |
ec6a6fbe AK |
16145 | case $ac_optarg in |
16146 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16147 | esac | |
16148 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 16149 | ac_need_defaults=false;; |
7a197a62 AK |
16150 | --he | --h) |
16151 | # Conflict between --help and --header | |
ec6a6fbe | 16152 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
16153 | Try \`$0 --help' for more information." >&2 |
16154 | { (exit 1); exit 1; }; };; | |
16155 | --help | --hel | -h ) | |
ec6a6fbe | 16156 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
16157 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16158 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16159 | ac_cs_silent=: ;; | |
16160 | ||
16161 | # This is an error. | |
ec6a6fbe | 16162 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 16163 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
16164 | { (exit 1); exit 1; }; } ;; |
16165 | ||
7a197a62 AK |
16166 | *) ac_config_targets="$ac_config_targets $1" |
16167 | ac_need_defaults=false ;; | |
ad6254c5 AK |
16168 | |
16169 | esac | |
16170 | shift | |
16171 | done | |
16172 | ||
16173 | ac_configure_extra_args= | |
16174 | ||
16175 | if $ac_cs_silent; then | |
16176 | exec 6>/dev/null | |
16177 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16178 | fi | |
16179 | ||
16180 | _ACEOF | |
ec6a6fbe | 16181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 16182 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
16183 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16184 | shift | |
16185 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16186 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 16187 | export CONFIG_SHELL |
ec6a6fbe | 16188 | exec "\$@" |
ad6254c5 AK |
16189 | fi |
16190 | ||
16191 | _ACEOF | |
ec6a6fbe | 16192 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16193 | exec 5>>config.log |
16194 | { | |
16195 | echo | |
16196 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16197 | ## Running $as_me. ## | |
16198 | _ASBOX | |
ec6a6fbe | 16199 | $as_echo "$ac_log" |
7a197a62 | 16200 | } >&5 |
ad6254c5 | 16201 | |
7a197a62 | 16202 | _ACEOF |
ec6a6fbe | 16203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 16204 | _ACEOF |
ad6254c5 | 16205 | |
ec6a6fbe | 16206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16207 | |
16208 | # Handling of arguments. | |
ad6254c5 AK |
16209 | for ac_config_target in $ac_config_targets |
16210 | do | |
7a197a62 AK |
16211 | case $ac_config_target in |
16212 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16213 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16214 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16215 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16216 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16217 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16218 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16219 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16220 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 16221 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
16222 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16223 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16224 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
db8b5af9 | 16225 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
16226 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16227 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16228 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16229 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16230 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16231 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 16232 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16233 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16234 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16235 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16236 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16237 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16238 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16239 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16240 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 16241 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 16242 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16243 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16244 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16245 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16246 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16247 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16248 | |
ec6a6fbe AK |
16249 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16250 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16251 | { (exit 1); exit 1; }; };; |
80992638 | 16252 | esac |
ad6254c5 AK |
16253 | done |
16254 | ||
7a197a62 | 16255 | |
ad6254c5 AK |
16256 | # If the user did not use the arguments to specify the items to instantiate, |
16257 | # then the envvar interface is used. Set only those that are not. | |
16258 | # We use the long form for the default assignment because of an extremely | |
16259 | # bizarre bug on SunOS 4.1.3. | |
16260 | if $ac_need_defaults; then | |
16261 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16262 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16263 | fi |
16264 | ||
16265 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16266 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16267 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16268 | # Hook for its removal unless debugging. |
16269 | # Note that there is a small window in which the directory will not be cleaned: | |
16270 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16271 | $debug || |
16272 | { | |
7a197a62 AK |
16273 | tmp= |
16274 | trap 'exit_status=$? | |
16275 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16276 | ' 0 | |
ad6254c5 AK |
16277 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16278 | } | |
ad6254c5 AK |
16279 | # Create a (secure) tmp directory for tmp files. |
16280 | ||
16281 | { | |
7a197a62 | 16282 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16283 | test -n "$tmp" && test -d "$tmp" |
16284 | } || | |
16285 | { | |
7a197a62 AK |
16286 | tmp=./conf$$-$RANDOM |
16287 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16288 | } || |
16289 | { | |
ec6a6fbe | 16290 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16291 | { (exit 1); exit 1; } |
16292 | } | |
16293 | ||
ec6a6fbe AK |
16294 | # Set up the scripts for CONFIG_FILES section. |
16295 | # No need to generate them if there are no CONFIG_FILES. | |
16296 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16297 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16298 | |
68f2de6d | 16299 | |
ec6a6fbe AK |
16300 | ac_cr='\r' |
16301 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16302 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16303 | ac_cs_awk_cr='\\r' | |
16304 | else | |
16305 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16306 | fi |
7a197a62 | 16307 | |
ec6a6fbe | 16308 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16309 | _ACEOF |
7a197a62 | 16310 | |
8106cdd5 | 16311 | |
ec6a6fbe AK |
16312 | { |
16313 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16314 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16315 | echo "_ACEOF" | |
16316 | } >conf$$subs.sh || | |
16317 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16318 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16319 | { (exit 1); exit 1; }; } | |
16320 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16321 | ac_delim='%!_!# ' |
16322 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16323 | . ./conf$$subs.sh || |
16324 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16325 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16326 | { (exit 1); exit 1; }; } | |
16327 | ||
16328 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16329 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16330 | break |
16331 | elif $ac_last_try; then | |
ec6a6fbe AK |
16332 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16333 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16334 | { (exit 1); exit 1; }; } |
16335 | else | |
16336 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16337 | fi | |
16338 | done | |
ec6a6fbe AK |
16339 | rm -f conf$$subs.sh |
16340 | ||
16341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16342 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16343 | _ACEOF | |
16344 | sed -n ' | |
16345 | h | |
16346 | s/^/S["/; s/!.*/"]=/ | |
16347 | p | |
16348 | g | |
16349 | s/^[^!]*!// | |
16350 | :repl | |
16351 | t repl | |
16352 | s/'"$ac_delim"'$// | |
16353 | t delim | |
16354 | :nl | |
16355 | h | |
16356 | s/\(.\{148\}\).*/\1/ | |
16357 | t more1 | |
16358 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16359 | p | |
16360 | n | |
16361 | b repl | |
16362 | :more1 | |
16363 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16364 | p | |
16365 | g | |
16366 | s/.\{148\}// | |
16367 | t nl | |
16368 | :delim | |
16369 | h | |
16370 | s/\(.\{148\}\).*/\1/ | |
16371 | t more2 | |
16372 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16373 | p | |
16374 | b | |
16375 | :more2 | |
16376 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16377 | p | |
16378 | g | |
16379 | s/.\{148\}// | |
16380 | t delim | |
16381 | ' <conf$$subs.awk | sed ' | |
16382 | /^[^""]/{ | |
16383 | N | |
16384 | s/\n// | |
16385 | } | |
16386 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16387 | rm -f conf$$subs.awk | |
16388 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16389 | _ACAWK | |
16390 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16391 | for (key in S) S_is_set[key] = 1 | |
16392 | FS = "\a" | |
7a197a62 | 16393 | |
ec6a6fbe AK |
16394 | } |
16395 | { | |
16396 | line = $ 0 | |
16397 | nfields = split(line, field, "@") | |
16398 | substed = 0 | |
16399 | len = length(field[1]) | |
16400 | for (i = 2; i < nfields; i++) { | |
16401 | key = field[i] | |
16402 | keylen = length(key) | |
16403 | if (S_is_set[key]) { | |
16404 | value = S[key] | |
16405 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16406 | len += length(value) + length(field[++i]) | |
16407 | substed = 1 | |
16408 | } else | |
16409 | len += 1 + keylen | |
16410 | } | |
16411 | ||
16412 | print line | |
16413 | } | |
fddafd51 | 16414 | |
ec6a6fbe | 16415 | _ACAWK |
1995c9ff | 16416 | _ACEOF |
ec6a6fbe AK |
16417 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16418 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16419 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16420 | else | |
16421 | cat | |
16422 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16423 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16424 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16425 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16426 | _ACEOF |
16427 | ||
7a197a62 AK |
16428 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16429 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16430 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16431 | # (actually we leave an empty line to preserve line numbers). | |
16432 | if test "x$srcdir" = x.; then | |
16433 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16434 | s/:*\$(srcdir):*/:/ | |
16435 | s/:*\${srcdir}:*/:/ | |
16436 | s/:*@srcdir@:*/:/ | |
16437 | s/^\([^=]*=[ ]*\):*/\1/ | |
16438 | s/:*$// | |
16439 | s/^[^=]*=[ ]*$// | |
16440 | }' | |
16441 | fi | |
16442 | ||
ec6a6fbe | 16443 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16444 | fi # test -n "$CONFIG_FILES" |
16445 | ||
ec6a6fbe AK |
16446 | # Set up the scripts for CONFIG_HEADERS section. |
16447 | # No need to generate them if there are no CONFIG_HEADERS. | |
16448 | # This happens for instance with `./config.status Makefile'. | |
16449 | if test -n "$CONFIG_HEADERS"; then | |
16450 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16451 | BEGIN { | |
16452 | _ACEOF | |
16453 | ||
16454 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16455 | # here-document in config.status, that substitutes the proper values into | |
16456 | # config.h.in to produce config.h. | |
16457 | ||
16458 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16459 | # handling of long lines. | |
16460 | ac_delim='%!_!# ' | |
16461 | for ac_last_try in false false :; do | |
16462 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16463 | if test -z "$ac_t"; then | |
16464 | break | |
16465 | elif $ac_last_try; then | |
16466 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16467 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16468 | { (exit 1); exit 1; }; } | |
16469 | else | |
16470 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16471 | fi | |
16472 | done | |
16473 | ||
16474 | # For the awk script, D is an array of macro values keyed by name, | |
16475 | # likewise P contains macro parameters if any. Preserve backslash | |
16476 | # newline sequences. | |
16477 | ||
16478 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16479 | sed -n ' | |
16480 | s/.\{148\}/&'"$ac_delim"'/g | |
16481 | t rset | |
16482 | :rset | |
16483 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16484 | t def | |
16485 | d | |
16486 | :def | |
16487 | s/\\$// | |
16488 | t bsnl | |
16489 | s/["\\]/\\&/g | |
16490 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16491 | D["\1"]=" \3"/p | |
16492 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16493 | d | |
16494 | :bsnl | |
16495 | s/["\\]/\\&/g | |
16496 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16497 | D["\1"]=" \3\\\\\\n"\\/p | |
16498 | t cont | |
16499 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16500 | t cont | |
16501 | d | |
16502 | :cont | |
16503 | n | |
16504 | s/.\{148\}/&'"$ac_delim"'/g | |
16505 | t clear | |
16506 | :clear | |
16507 | s/\\$// | |
16508 | t bsnlc | |
16509 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16510 | d | |
16511 | :bsnlc | |
16512 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16513 | b cont | |
16514 | ' <confdefs.h | sed ' | |
16515 | s/'"$ac_delim"'/"\\\ | |
16516 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16517 | ||
16518 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16519 | for (key in D) D_is_set[key] = 1 | |
16520 | FS = "\a" | |
16521 | } | |
16522 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16523 | line = \$ 0 | |
16524 | split(line, arg, " ") | |
16525 | if (arg[1] == "#") { | |
16526 | defundef = arg[2] | |
16527 | mac1 = arg[3] | |
16528 | } else { | |
16529 | defundef = substr(arg[1], 2) | |
16530 | mac1 = arg[2] | |
16531 | } | |
16532 | split(mac1, mac2, "(") #) | |
16533 | macro = mac2[1] | |
16534 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16535 | if (D_is_set[macro]) { | |
16536 | # Preserve the white space surrounding the "#". | |
16537 | print prefix "define", macro P[macro] D[macro] | |
16538 | next | |
16539 | } else { | |
16540 | # Replace #undef with comments. This is necessary, for example, | |
16541 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16542 | # on some systems where configure will not decide to define it. | |
16543 | if (defundef == "undef") { | |
16544 | print "/*", prefix defundef, macro, "*/" | |
16545 | next | |
16546 | } | |
16547 | } | |
16548 | } | |
16549 | { print } | |
16550 | _ACAWK | |
16551 | _ACEOF | |
16552 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16553 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16554 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16555 | { (exit 1); exit 1; }; } | |
16556 | fi # test -n "$CONFIG_HEADERS" | |
16557 | ||
7a197a62 | 16558 | |
ec6a6fbe AK |
16559 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16560 | shift | |
16561 | for ac_tag | |
7a197a62 AK |
16562 | do |
16563 | case $ac_tag in | |
16564 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16565 | esac | |
16566 | case $ac_mode$ac_tag in | |
16567 | :[FHL]*:*);; | |
ec6a6fbe AK |
16568 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16569 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16570 | { (exit 1); exit 1; }; };; |
16571 | :[FH]-) ac_tag=-:-;; | |
16572 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16573 | esac | |
16574 | ac_save_IFS=$IFS | |
16575 | IFS=: | |
16576 | set x $ac_tag | |
16577 | IFS=$ac_save_IFS | |
16578 | shift | |
16579 | ac_file=$1 | |
16580 | shift | |
16581 | ||
16582 | case $ac_mode in | |
16583 | :L) ac_source=$1;; | |
16584 | :[FH]) | |
16585 | ac_file_inputs= | |
16586 | for ac_f | |
16587 | do | |
16588 | case $ac_f in | |
16589 | -) ac_f="$tmp/stdin";; | |
16590 | *) # Look for the file first in the build tree, then in the source tree | |
16591 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16592 | # because $ac_f cannot contain `:'. | |
16593 | test -f "$ac_f" || | |
16594 | case $ac_f in | |
16595 | [\\/$]*) false;; | |
16596 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16597 | esac || | |
ec6a6fbe AK |
16598 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16599 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16600 | { (exit 1); exit 1; }; };; |
16601 | esac | |
ec6a6fbe AK |
16602 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16603 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16604 | done |
16605 | ||
16606 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16607 | # use $as_me), people would be surprised to read: | |
16608 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16609 | configure_input='Generated from '` |
16610 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16611 | `' by configure.' | |
7a197a62 AK |
16612 | if test x"$ac_file" != x-; then |
16613 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16614 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16615 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16616 | fi |
ec6a6fbe AK |
16617 | # Neutralize special characters interpreted by sed in replacement strings. |
16618 | case $configure_input in #( | |
16619 | *\&* | *\|* | *\\* ) | |
16620 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16621 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16622 | *) ac_sed_conf_input=$configure_input;; | |
16623 | esac | |
7a197a62 AK |
16624 | |
16625 | case $ac_tag in | |
ec6a6fbe AK |
16626 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16627 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16628 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16629 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16630 | esac |
16631 | ;; | |
80992638 | 16632 | esac |
8106cdd5 | 16633 | |
7a197a62 | 16634 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16635 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16636 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16637 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16638 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16639 | $as_echo X"$ac_file" | |
7a197a62 AK |
16640 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16641 | s//\1/ | |
16642 | q | |
16643 | } | |
16644 | /^X\(\/\/\)[^/].*/{ | |
16645 | s//\1/ | |
16646 | q | |
16647 | } | |
16648 | /^X\(\/\/\)$/{ | |
16649 | s//\1/ | |
16650 | q | |
16651 | } | |
16652 | /^X\(\/\).*/{ | |
16653 | s//\1/ | |
16654 | q | |
16655 | } | |
16656 | s/.*/./; q'` | |
16657 | { as_dir="$ac_dir" | |
16658 | case $as_dir in #( | |
16659 | -*) as_dir=./$as_dir;; | |
16660 | esac | |
16661 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16662 | as_dirs= |
7a197a62 AK |
16663 | while :; do |
16664 | case $as_dir in #( | |
ec6a6fbe | 16665 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16666 | *) as_qdir=$as_dir;; |
16667 | esac | |
16668 | as_dirs="'$as_qdir' $as_dirs" | |
16669 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16670 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16671 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16672 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16673 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16674 | $as_echo X"$as_dir" | |
7a197a62 AK |
16675 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16676 | s//\1/ | |
16677 | q | |
16678 | } | |
16679 | /^X\(\/\/\)[^/].*/{ | |
16680 | s//\1/ | |
16681 | q | |
16682 | } | |
16683 | /^X\(\/\/\)$/{ | |
16684 | s//\1/ | |
16685 | q | |
16686 | } | |
16687 | /^X\(\/\).*/{ | |
16688 | s//\1/ | |
16689 | q | |
16690 | } | |
16691 | s/.*/./; q'` | |
16692 | test -d "$as_dir" && break | |
ad6254c5 | 16693 | done |
7a197a62 | 16694 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16695 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16696 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16697 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16698 | ac_builddir=. |
16699 | ||
7a197a62 AK |
16700 | case "$ac_dir" in |
16701 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16702 | *) | |
ec6a6fbe | 16703 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16704 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16705 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16706 | case $ac_top_builddir_sub in |
16707 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16708 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16709 | esac ;; | |
16710 | esac | |
16711 | ac_abs_top_builddir=$ac_pwd | |
16712 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16713 | # for backward compatibility: | |
16714 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16715 | |
16716 | case $srcdir in | |
7a197a62 | 16717 | .) # We are building in place. |
ad6254c5 | 16718 | ac_srcdir=. |
7a197a62 AK |
16719 | ac_top_srcdir=$ac_top_builddir_sub |
16720 | ac_abs_top_srcdir=$ac_pwd ;; | |
16721 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16722 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16723 | ac_top_srcdir=$srcdir |
16724 | ac_abs_top_srcdir=$srcdir ;; | |
16725 | *) # Relative name. | |
16726 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16727 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16728 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16729 | esac |
7a197a62 | 16730 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16731 | |
ad6254c5 | 16732 | |
7a197a62 AK |
16733 | case $ac_mode in |
16734 | :F) | |
16735 | # | |
16736 | # CONFIG_FILE | |
16737 | # | |
ad6254c5 AK |
16738 | |
16739 | case $INSTALL in | |
16740 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16741 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16742 | esac |
fddafd51 ZK |
16743 | ac_MKDIR_P=$MKDIR_P |
16744 | case $MKDIR_P in | |
16745 | [\\/$]* | ?:[\\/]* ) ;; | |
16746 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16747 | esac | |
7a197a62 | 16748 | _ACEOF |
795ca3e5 | 16749 | |
ec6a6fbe | 16750 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16751 | # If the template does not know about datarootdir, expand it. |
16752 | # FIXME: This hack should be removed a few years after 2.60. | |
16753 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16754 | ||
ec6a6fbe AK |
16755 | ac_sed_dataroot=' |
16756 | /datarootdir/ { | |
7a197a62 AK |
16757 | p |
16758 | q | |
16759 | } | |
16760 | /@datadir@/p | |
16761 | /@docdir@/p | |
16762 | /@infodir@/p | |
16763 | /@localedir@/p | |
16764 | /@mandir@/p | |
ec6a6fbe AK |
16765 | ' |
16766 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16767 | *datarootdir*) ac_datarootdir_seen=yes;; |
16768 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16770 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16771 | _ACEOF |
ec6a6fbe | 16772 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16773 | ac_datarootdir_hack=' |
16774 | s&@datadir@&$datadir&g | |
16775 | s&@docdir@&$docdir&g | |
16776 | s&@infodir@&$infodir&g | |
16777 | s&@localedir@&$localedir&g | |
16778 | s&@mandir@&$mandir&g | |
16779 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16780 | esac | |
16781 | _ACEOF | |
16782 | ||
16783 | # Neutralize VPATH when `$srcdir' = `.'. | |
16784 | # Shell code in configure.ac might set extrasub. | |
16785 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16786 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16787 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16788 | $extrasub |
16789 | _ACEOF | |
ec6a6fbe | 16790 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16791 | :t |
16792 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16793 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16794 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16795 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16796 | s&@srcdir@&$ac_srcdir&;t t |
16797 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16798 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16799 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16800 | s&@builddir@&$ac_builddir&;t t | |
16801 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16802 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16803 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16804 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16805 | $ac_datarootdir_hack |
ec6a6fbe AK |
16806 | " |
16807 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16808 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16809 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16810 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16811 | |
16812 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16813 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16814 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16815 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16816 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16817 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16818 | which seems to be undefined. Please make sure it is defined." >&2;} |
16819 | ||
16820 | rm -f "$tmp/stdin" | |
72b2cb61 | 16821 | case $ac_file in |
ec6a6fbe AK |
16822 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16823 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16824 | esac \ | |
16825 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16826 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16827 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16828 | ;; |
16829 | :H) | |
16830 | # | |
16831 | # CONFIG_HEADER | |
16832 | # | |
72b2cb61 | 16833 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16834 | { |
16835 | $as_echo "/* $configure_input */" \ | |
16836 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16837 | } >"$tmp/config.h" \ | |
16838 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16839 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16840 | { (exit 1); exit 1; }; } | |
16841 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16842 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16843 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16844 | else |
ec6a6fbe AK |
16845 | rm -f "$ac_file" |
16846 | mv "$tmp/config.h" "$ac_file" \ | |
16847 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16848 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16849 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16850 | fi |
16851 | else | |
ec6a6fbe AK |
16852 | $as_echo "/* $configure_input */" \ |
16853 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16854 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16855 | $as_echo "$as_me: error: could not create -" >&2;} | |
16856 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16857 | fi |
7a197a62 AK |
16858 | ;; |
16859 | ||
16860 | ||
16861 | esac | |
16862 | ||
16863 | done # for ac_tag | |
795ca3e5 | 16864 | |
795ca3e5 | 16865 | |
ad6254c5 AK |
16866 | { (exit 0); exit 0; } |
16867 | _ACEOF | |
795ca3e5 | 16868 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16869 | ac_clean_files=$ac_clean_files_save |
16870 | ||
ec6a6fbe AK |
16871 | test $ac_write_fail = 0 || |
16872 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16873 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16874 | { (exit 1); exit 1; }; } | |
16875 | ||
ad6254c5 AK |
16876 | |
16877 | # configure is writing to config.log, and then calls config.status. | |
16878 | # config.status does its own redirection, appending to config.log. | |
16879 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16880 | # by configure, so config.status won't be able to write to it; its | |
16881 | # output is simply discarded. So we exec the FD to /dev/null, | |
16882 | # effectively closing config.log, so it can be properly (re)opened and | |
16883 | # appended to by config.status. When coming back to configure, we | |
16884 | # need to make the FD available again. | |
16885 | if test "$no_create" != yes; then | |
16886 | ac_cs_success=: | |
16887 | ac_config_status_args= | |
16888 | test "$silent" = yes && | |
16889 | ac_config_status_args="$ac_config_status_args --quiet" | |
16890 | exec 5>/dev/null | |
16891 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16892 | exec 5>>config.log | |
16893 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16894 | # would make configure fail if this is the last instruction. | |
16895 | $ac_cs_success || { (exit 1); exit 1; } | |
16896 | fi | |
ec6a6fbe AK |
16897 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16898 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16899 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16900 | fi | |
795ca3e5 | 16901 | |
2dc95e1c AK |
16902 | |
16903 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16904 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16905 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16906 | fi |