]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
23b059e7 | 649 | WRITE_INSTALL |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
f7f0854e | 652 | UDEV_PC |
db724a44 | 653 | UDEV_LIBS |
ec6a6fbe AK |
654 | STATIC_LINK |
655 | STATICDIR | |
656 | SNAPSHOTS | |
f7f0854e | 657 | SELINUX_PC |
e1b8a236 | 658 | SELINUX_LIBS |
539f4a77 | 659 | READLINE_LIBS |
f30875db | 660 | PTHREAD_LIBS |
ec6a6fbe AK |
661 | POOL |
662 | PKGCONFIG | |
ec6a6fbe AK |
663 | MIRRORS |
664 | LVM_RELEASE_DATE | |
665 | LVM_RELEASE | |
666 | LVM_PATCHLEVEL | |
667 | LVM_MINOR | |
668 | LVM_MAJOR | |
bf456146 | 669 | LVM_LIBAPI |
ec6a6fbe | 670 | LVM_VERSION |
ec6a6fbe AK |
671 | LVM1_FALLBACK |
672 | LVM1 | |
673 | LOCALEDIR | |
674 | LIB_SUFFIX | |
675 | LDDEPS | |
676 | JOBS | |
677 | INTL_PACKAGE | |
678 | INTL | |
ec6a6fbe AK |
679 | HAVE_REALTIME |
680 | HAVE_LIBDL | |
ec6a6fbe AK |
681 | FSADM |
682 | DM_LIB_PATCHLEVEL | |
683 | DM_LIB_VERSION | |
684 | DM_IOCTLS | |
685 | DM_DEVICE_UID | |
686 | DM_DEVICE_MODE | |
687 | DM_DEVICE_GID | |
688 | DM_COMPAT | |
689 | DMEVENTD | |
19a2c6e0 | 690 | DL_LIBS |
ec6a6fbe AK |
691 | DEVMAPPER |
692 | DEBUG | |
693 | COPTIMISE_FLAG | |
e2997b73 | 694 | CONFDIR |
ec6a6fbe AK |
695 | CMDLIB |
696 | CLVMD | |
697 | CLUSTER | |
698 | CLDWHOLEARCHIVE | |
699 | CLDNOWHOLEARCHIVE | |
700 | CLDFLAGS | |
701 | BUILD_DMEVENTD | |
66fd4529 | 702 | BUILD_CMIRRORD |
572fefeb | 703 | APPLIB |
ec6a6fbe AK |
704 | MODPROBE_CMD |
705 | MSGFMT | |
706 | LVM2CMD_LIB | |
572fefeb | 707 | LVM2APP_LIB |
fd4728e1 | 708 | GENPNG |
ec6a6fbe AK |
709 | GENHTML |
710 | LCOV | |
90c80887 AK |
711 | SACKPT_LIBS |
712 | SACKPT_CFLAGS | |
a946372e AK |
713 | DLM_LIBS |
714 | DLM_CFLAGS | |
e2997b73 AK |
715 | CPG_LIBS |
716 | CPG_CFLAGS | |
717 | CONFDB_LIBS | |
718 | CONFDB_CFLAGS | |
a946372e AK |
719 | SALCK_LIBS |
720 | SALCK_CFLAGS | |
e2997b73 AK |
721 | QUORUM_LIBS |
722 | QUORUM_CFLAGS | |
a946372e AK |
723 | COROSYNC_LIBS |
724 | COROSYNC_CFLAGS | |
725 | CMAN_LIBS | |
726 | CMAN_CFLAGS | |
727 | GULM_LIBS | |
728 | GULM_CFLAGS | |
729 | CCS_LIBS | |
730 | CCS_CFLAGS | |
731 | PKGCONFIGINIT_LIBS | |
732 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 733 | PKG_CONFIG |
ec6a6fbe AK |
734 | POW_LIB |
735 | LIBOBJS | |
736 | ALLOCA | |
737 | CSCOPE_CMD | |
738 | CFLOW_CMD | |
739 | RANLIB | |
740 | MKDIR_P | |
741 | SET_MAKE | |
742 | LN_S | |
743 | INSTALL_DATA | |
744 | INSTALL_SCRIPT | |
745 | INSTALL_PROGRAM | |
746 | EGREP | |
747 | GREP | |
748 | CPP | |
749 | OBJEXT | |
750 | EXEEXT | |
751 | ac_ct_CC | |
752 | CPPFLAGS | |
753 | LDFLAGS | |
754 | CFLAGS | |
755 | CC | |
756 | AWK | |
757 | SED | |
758 | target_os | |
759 | target_vendor | |
760 | target_cpu | |
761 | target | |
762 | host_os | |
763 | host_vendor | |
764 | host_cpu | |
765 | host | |
766 | build_os | |
767 | build_vendor | |
768 | build_cpu | |
769 | build | |
770 | target_alias | |
771 | host_alias | |
772 | build_alias | |
773 | LIBS | |
774 | ECHO_T | |
775 | ECHO_N | |
776 | ECHO_C | |
777 | DEFS | |
778 | mandir | |
779 | localedir | |
780 | libdir | |
781 | psdir | |
782 | pdfdir | |
783 | dvidir | |
784 | htmldir | |
785 | infodir | |
786 | docdir | |
787 | oldincludedir | |
788 | includedir | |
789 | localstatedir | |
790 | sharedstatedir | |
791 | sysconfdir | |
792 | datadir | |
793 | datarootdir | |
794 | libexecdir | |
795 | sbindir | |
796 | bindir | |
797 | program_transform_name | |
798 | prefix | |
799 | exec_prefix | |
800 | PACKAGE_BUGREPORT | |
801 | PACKAGE_STRING | |
802 | PACKAGE_VERSION | |
803 | PACKAGE_TARNAME | |
804 | PACKAGE_NAME | |
805 | PATH_SEPARATOR | |
806 | SHELL' | |
ad6254c5 | 807 | ac_subst_files='' |
ec6a6fbe AK |
808 | ac_user_opts=' |
809 | enable_option_checking | |
810 | enable_static_link | |
811 | with_user | |
812 | with_group | |
813 | with_device_uid | |
814 | with_device_gid | |
815 | with_device_mode | |
816 | enable_lvm1_fallback | |
817 | with_lvm1 | |
818 | with_pool | |
819 | with_cluster | |
820 | with_snapshots | |
821 | with_mirrors | |
822 | enable_readline | |
823 | enable_realtime | |
824 | with_clvmd | |
66fd4529 AK |
825 | enable_cmirrord |
826 | with_cmirrord_pidfile | |
ec6a6fbe AK |
827 | enable_debug |
828 | with_optimisation | |
829 | enable_profiling | |
830 | enable_devmapper | |
a5f46f6a AK |
831 | enable_udev_sync |
832 | enable_udev_rules | |
ec6a6fbe | 833 | enable_compat |
95eaa683 | 834 | enable_units_compat |
ec6a6fbe AK |
835 | enable_ioctl |
836 | enable_o_direct | |
572fefeb | 837 | enable_applib |
ec6a6fbe AK |
838 | enable_cmdlib |
839 | enable_pkgconfig | |
23b059e7 | 840 | enable_write_install |
ec6a6fbe AK |
841 | enable_fsadm |
842 | enable_dmeventd | |
843 | enable_selinux | |
844 | enable_nls | |
845 | with_localedir | |
846 | with_confdir | |
847 | with_staticdir | |
848 | with_usrlibdir | |
849 | with_usrsbindir | |
a5f46f6a | 850 | with_udev_prefix |
78ce7acc | 851 | with_udevdir |
ec6a6fbe AK |
852 | with_dmeventd_pidfile |
853 | with_dmeventd_path | |
854 | with_interface | |
855 | ' | |
7a197a62 AK |
856 | ac_precious_vars='build_alias |
857 | host_alias | |
858 | target_alias | |
859 | CC | |
860 | CFLAGS | |
861 | LDFLAGS | |
25fbec5b | 862 | LIBS |
7a197a62 | 863 | CPPFLAGS |
e2997b73 AK |
864 | CPP |
865 | PKG_CONFIG | |
a946372e AK |
866 | PKGCONFIGINIT_CFLAGS |
867 | PKGCONFIGINIT_LIBS | |
868 | CCS_CFLAGS | |
869 | CCS_LIBS | |
870 | GULM_CFLAGS | |
871 | GULM_LIBS | |
872 | CMAN_CFLAGS | |
873 | CMAN_LIBS | |
874 | COROSYNC_CFLAGS | |
875 | COROSYNC_LIBS | |
e2997b73 AK |
876 | QUORUM_CFLAGS |
877 | QUORUM_LIBS | |
a946372e AK |
878 | SALCK_CFLAGS |
879 | SALCK_LIBS | |
e2997b73 AK |
880 | CONFDB_CFLAGS |
881 | CONFDB_LIBS | |
882 | CPG_CFLAGS | |
a946372e AK |
883 | CPG_LIBS |
884 | DLM_CFLAGS | |
90c80887 AK |
885 | DLM_LIBS |
886 | SACKPT_CFLAGS | |
887 | SACKPT_LIBS' | |
7a197a62 | 888 | |
795ca3e5 AK |
889 | |
890 | # Initialize some variables set by options. | |
ad6254c5 AK |
891 | ac_init_help= |
892 | ac_init_version=false | |
ec6a6fbe AK |
893 | ac_unrecognized_opts= |
894 | ac_unrecognized_sep= | |
795ca3e5 AK |
895 | # The variables have the same names as the options, with |
896 | # dashes changed to underlines. | |
ad6254c5 | 897 | cache_file=/dev/null |
795ca3e5 | 898 | exec_prefix=NONE |
795ca3e5 | 899 | no_create= |
795ca3e5 AK |
900 | no_recursion= |
901 | prefix=NONE | |
902 | program_prefix=NONE | |
903 | program_suffix=NONE | |
904 | program_transform_name=s,x,x, | |
905 | silent= | |
906 | site= | |
907 | srcdir= | |
795ca3e5 AK |
908 | verbose= |
909 | x_includes=NONE | |
910 | x_libraries=NONE | |
ad6254c5 AK |
911 | |
912 | # Installation directory options. | |
913 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
914 | # and all the variables that are supposed to be based on exec_prefix | |
915 | # by default will actually change. | |
916 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 917 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
918 | bindir='${exec_prefix}/bin' |
919 | sbindir='${exec_prefix}/sbin' | |
920 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
921 | datarootdir='${prefix}/share' |
922 | datadir='${datarootdir}' | |
795ca3e5 AK |
923 | sysconfdir='${prefix}/etc' |
924 | sharedstatedir='${prefix}/com' | |
925 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
926 | includedir='${prefix}/include' |
927 | oldincludedir='/usr/include' | |
7a197a62 AK |
928 | docdir='${datarootdir}/doc/${PACKAGE}' |
929 | infodir='${datarootdir}/info' | |
930 | htmldir='${docdir}' | |
931 | dvidir='${docdir}' | |
932 | pdfdir='${docdir}' | |
933 | psdir='${docdir}' | |
934 | libdir='${exec_prefix}/lib' | |
935 | localedir='${datarootdir}/locale' | |
936 | mandir='${datarootdir}/man' | |
795ca3e5 | 937 | |
795ca3e5 | 938 | ac_prev= |
7a197a62 | 939 | ac_dashdash= |
795ca3e5 AK |
940 | for ac_option |
941 | do | |
795ca3e5 AK |
942 | # If the previous option needs an argument, assign it. |
943 | if test -n "$ac_prev"; then | |
7a197a62 | 944 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
945 | ac_prev= |
946 | continue | |
947 | fi | |
948 | ||
7a197a62 AK |
949 | case $ac_option in |
950 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
951 | *) ac_optarg=yes ;; | |
952 | esac | |
795ca3e5 AK |
953 | |
954 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
955 | ||
7a197a62 AK |
956 | case $ac_dashdash$ac_option in |
957 | --) | |
958 | ac_dashdash=yes ;; | |
795ca3e5 AK |
959 | |
960 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
961 | ac_prev=bindir ;; | |
962 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 963 | bindir=$ac_optarg ;; |
795ca3e5 AK |
964 | |
965 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 966 | ac_prev=build_alias ;; |
795ca3e5 | 967 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 968 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
969 | |
970 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
971 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
972 | ac_prev=cache_file ;; | |
973 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
974 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
975 | cache_file=$ac_optarg ;; |
976 | ||
977 | --config-cache | -C) | |
978 | cache_file=config.cache ;; | |
795ca3e5 | 979 | |
7a197a62 | 980 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 981 | ac_prev=datadir ;; |
7a197a62 | 982 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 983 | datadir=$ac_optarg ;; |
795ca3e5 | 984 | |
7a197a62 AK |
985 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
986 | | --dataroo | --dataro | --datar) | |
987 | ac_prev=datarootdir ;; | |
988 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
989 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
990 | datarootdir=$ac_optarg ;; | |
991 | ||
795ca3e5 | 992 | -disable-* | --disable-*) |
ec6a6fbe | 993 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 994 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
996 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 997 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
998 | ac_useropt_orig=$ac_useropt |
999 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1000 | case $ac_user_opts in | |
1001 | *" | |
1002 | "enable_$ac_useropt" | |
1003 | "*) ;; | |
1004 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1005 | ac_unrecognized_sep=', ';; | |
1006 | esac | |
1007 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1008 | |
1009 | -docdir | --docdir | --docdi | --doc | --do) | |
1010 | ac_prev=docdir ;; | |
1011 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1012 | docdir=$ac_optarg ;; | |
1013 | ||
1014 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1015 | ac_prev=dvidir ;; | |
1016 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1017 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1018 | |
1019 | -enable-* | --enable-*) | |
ec6a6fbe | 1020 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1021 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1022 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1023 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1024 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1025 | ac_useropt_orig=$ac_useropt |
1026 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1027 | case $ac_user_opts in | |
1028 | *" | |
1029 | "enable_$ac_useropt" | |
1030 | "*) ;; | |
1031 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1032 | ac_unrecognized_sep=', ';; | |
1033 | esac | |
1034 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1035 | |
1036 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1037 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1038 | | --exec | --exe | --ex) | |
1039 | ac_prev=exec_prefix ;; | |
1040 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1041 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1042 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1043 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1044 | |
1045 | -gas | --gas | --ga | --g) | |
1046 | # Obsolete; use --with-gas. | |
1047 | with_gas=yes ;; | |
1048 | ||
ad6254c5 AK |
1049 | -help | --help | --hel | --he | -h) |
1050 | ac_init_help=long ;; | |
1051 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1052 | ac_init_help=recursive ;; | |
1053 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1054 | ac_init_help=short ;; | |
795ca3e5 AK |
1055 | |
1056 | -host | --host | --hos | --ho) | |
ad6254c5 | 1057 | ac_prev=host_alias ;; |
795ca3e5 | 1058 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1059 | host_alias=$ac_optarg ;; |
795ca3e5 | 1060 | |
7a197a62 AK |
1061 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1062 | ac_prev=htmldir ;; | |
1063 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1064 | | --ht=*) | |
1065 | htmldir=$ac_optarg ;; | |
1066 | ||
795ca3e5 AK |
1067 | -includedir | --includedir | --includedi | --included | --include \ |
1068 | | --includ | --inclu | --incl | --inc) | |
1069 | ac_prev=includedir ;; | |
1070 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1071 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1072 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1073 | |
1074 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1075 | ac_prev=infodir ;; | |
1076 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1077 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1078 | |
1079 | -libdir | --libdir | --libdi | --libd) | |
1080 | ac_prev=libdir ;; | |
1081 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1082 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1083 | |
1084 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1085 | | --libexe | --libex | --libe) | |
1086 | ac_prev=libexecdir ;; | |
1087 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1088 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1089 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1090 | |
7a197a62 AK |
1091 | -localedir | --localedir | --localedi | --localed | --locale) |
1092 | ac_prev=localedir ;; | |
1093 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1094 | localedir=$ac_optarg ;; | |
1095 | ||
795ca3e5 | 1096 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1097 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1098 | ac_prev=localstatedir ;; |
1099 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1100 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1101 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1102 | |
1103 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1104 | ac_prev=mandir ;; | |
1105 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1106 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1107 | |
1108 | -nfp | --nfp | --nf) | |
1109 | # Obsolete; use --without-fp. | |
1110 | with_fp=no ;; | |
1111 | ||
1112 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1113 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1114 | no_create=yes ;; |
1115 | ||
1116 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1117 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1118 | no_recursion=yes ;; | |
1119 | ||
1120 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1121 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1122 | | --oldin | --oldi | --old | --ol | --o) | |
1123 | ac_prev=oldincludedir ;; | |
1124 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1125 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1126 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1127 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1128 | |
1129 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1130 | ac_prev=prefix ;; | |
1131 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1132 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1133 | |
1134 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1135 | | --program-pre | --program-pr | --program-p) | |
1136 | ac_prev=program_prefix ;; | |
1137 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1138 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1139 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1140 | |
1141 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1142 | | --program-suf | --program-su | --program-s) | |
1143 | ac_prev=program_suffix ;; | |
1144 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1145 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1146 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1147 | |
1148 | -program-transform-name | --program-transform-name \ | |
1149 | | --program-transform-nam | --program-transform-na \ | |
1150 | | --program-transform-n | --program-transform- \ | |
1151 | | --program-transform | --program-transfor \ | |
1152 | | --program-transfo | --program-transf \ | |
1153 | | --program-trans | --program-tran \ | |
1154 | | --progr-tra | --program-tr | --program-t) | |
1155 | ac_prev=program_transform_name ;; | |
1156 | -program-transform-name=* | --program-transform-name=* \ | |
1157 | | --program-transform-nam=* | --program-transform-na=* \ | |
1158 | | --program-transform-n=* | --program-transform-=* \ | |
1159 | | --program-transform=* | --program-transfor=* \ | |
1160 | | --program-transfo=* | --program-transf=* \ | |
1161 | | --program-trans=* | --program-tran=* \ | |
1162 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1163 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1164 | |
7a197a62 AK |
1165 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1166 | ac_prev=pdfdir ;; | |
1167 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1168 | pdfdir=$ac_optarg ;; | |
1169 | ||
1170 | -psdir | --psdir | --psdi | --psd | --ps) | |
1171 | ac_prev=psdir ;; | |
1172 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1173 | psdir=$ac_optarg ;; | |
1174 | ||
795ca3e5 AK |
1175 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1176 | | -silent | --silent | --silen | --sile | --sil) | |
1177 | silent=yes ;; | |
1178 | ||
1179 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1180 | ac_prev=sbindir ;; | |
1181 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1182 | | --sbi=* | --sb=*) | |
ad6254c5 | 1183 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1184 | |
1185 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1186 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1187 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1188 | | --sha | --sh) | |
1189 | ac_prev=sharedstatedir ;; | |
1190 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1191 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1192 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1193 | | --sha=* | --sh=*) | |
ad6254c5 | 1194 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1195 | |
1196 | -site | --site | --sit) | |
1197 | ac_prev=site ;; | |
1198 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1199 | site=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1202 | ac_prev=srcdir ;; | |
1203 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1204 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1205 | |
1206 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1207 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1208 | ac_prev=sysconfdir ;; | |
1209 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1210 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1211 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1212 | |
1213 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1214 | ac_prev=target_alias ;; |
795ca3e5 | 1215 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1216 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1217 | |
1218 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1219 | verbose=yes ;; | |
1220 | ||
ad6254c5 AK |
1221 | -version | --version | --versio | --versi | --vers | -V) |
1222 | ac_init_version=: ;; | |
795ca3e5 AK |
1223 | |
1224 | -with-* | --with-*) | |
ec6a6fbe | 1225 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1226 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1227 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1228 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1229 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1230 | ac_useropt_orig=$ac_useropt |
1231 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1232 | case $ac_user_opts in | |
1233 | *" | |
1234 | "with_$ac_useropt" | |
1235 | "*) ;; | |
1236 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1237 | ac_unrecognized_sep=', ';; | |
1238 | esac | |
1239 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1240 | |
1241 | -without-* | --without-*) | |
ec6a6fbe | 1242 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1243 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1244 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1245 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1246 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1247 | ac_useropt_orig=$ac_useropt |
1248 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1249 | case $ac_user_opts in | |
1250 | *" | |
1251 | "with_$ac_useropt" | |
1252 | "*) ;; | |
1253 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1254 | ac_unrecognized_sep=', ';; | |
1255 | esac | |
1256 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1257 | |
1258 | --x) | |
1259 | # Obsolete; use --with-x. | |
1260 | with_x=yes ;; | |
1261 | ||
1262 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1263 | | --x-incl | --x-inc | --x-in | --x-i) | |
1264 | ac_prev=x_includes ;; | |
1265 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1266 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1267 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1268 | |
1269 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1270 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1271 | ac_prev=x_libraries ;; | |
1272 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1273 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1274 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1275 | |
ec6a6fbe | 1276 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1277 | Try \`$0 --help' for more information." >&2 |
1278 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1279 | ;; |
1280 | ||
ad6254c5 AK |
1281 | *=*) |
1282 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1283 | # Reject names that are not valid shell variable names. | |
1284 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1285 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1286 | { (exit 1); exit 1; }; } |
7a197a62 | 1287 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1288 | export $ac_envvar ;; |
1289 | ||
795ca3e5 | 1290 | *) |
ad6254c5 | 1291 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1292 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1293 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1294 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1295 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1296 | ;; |
1297 | ||
1298 | esac | |
1299 | done | |
1300 | ||
1301 | if test -n "$ac_prev"; then | |
ad6254c5 | 1302 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1303 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1304 | { (exit 1); exit 1; }; } |
795ca3e5 | 1305 | fi |
795ca3e5 | 1306 | |
ec6a6fbe AK |
1307 | if test -n "$ac_unrecognized_opts"; then |
1308 | case $enable_option_checking in | |
1309 | no) ;; | |
1310 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1311 | { (exit 1); exit 1; }; } ;; | |
1312 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1313 | esac | |
1314 | fi | |
1315 | ||
1316 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1317 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1318 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1319 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1320 | libdir localedir mandir | |
795ca3e5 | 1321 | do |
7a197a62 | 1322 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1323 | # Remove trailing slashes. |
1324 | case $ac_val in | |
1325 | */ ) | |
1326 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1327 | eval $ac_var=\$ac_val;; | |
1328 | esac | |
1329 | # Be sure to have absolute directory names. | |
ad6254c5 | 1330 | case $ac_val in |
7a197a62 AK |
1331 | [\\/$]* | ?:[\\/]* ) continue;; |
1332 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1333 | esac |
ec6a6fbe | 1334 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1335 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1336 | done |
1337 | ||
ad6254c5 AK |
1338 | # There might be people who depend on the old broken behavior: `$host' |
1339 | # used to hold the argument of --host etc. | |
1340 | # FIXME: To remove some day. | |
1341 | build=$build_alias | |
1342 | host=$host_alias | |
1343 | target=$target_alias | |
1344 | ||
1345 | # FIXME: To remove some day. | |
1346 | if test "x$host_alias" != x; then | |
1347 | if test "x$build_alias" = x; then | |
1348 | cross_compiling=maybe | |
ec6a6fbe | 1349 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1350 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1351 | elif test "x$build_alias" != "x$host_alias"; then | |
1352 | cross_compiling=yes | |
1353 | fi | |
1354 | fi | |
8106cdd5 | 1355 | |
ad6254c5 AK |
1356 | ac_tool_prefix= |
1357 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1358 | ||
1359 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1360 | |
795ca3e5 | 1361 | |
7a197a62 AK |
1362 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1363 | ac_ls_di=`ls -di .` && | |
1364 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1365 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1366 | { (exit 1); exit 1; }; } |
1367 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1368 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1369 | { (exit 1); exit 1; }; } |
1370 | ||
1371 | ||
795ca3e5 AK |
1372 | # Find the source files, if location was not specified. |
1373 | if test -z "$srcdir"; then | |
1374 | ac_srcdir_defaulted=yes | |
7a197a62 | 1375 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1376 | ac_confdir=`$as_dirname -- "$as_myself" || |
1377 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1378 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1379 | X"$as_myself" : 'X\(//\)$' \| \ | |
1380 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1381 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | /^X\(\/\/\)[^/].*/{ | |
1387 | s//\1/ | |
1388 | q | |
1389 | } | |
1390 | /^X\(\/\/\)$/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | /^X\(\/\).*/{ | |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | s/.*/./; q'` | |
795ca3e5 | 1399 | srcdir=$ac_confdir |
7a197a62 | 1400 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1401 | srcdir=.. |
1402 | fi | |
1403 | else | |
1404 | ac_srcdir_defaulted=no | |
1405 | fi | |
7a197a62 AK |
1406 | if test ! -r "$srcdir/$ac_unique_file"; then |
1407 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1408 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1409 | { (exit 1); exit 1; }; } |
795ca3e5 | 1410 | fi |
7a197a62 AK |
1411 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1412 | ac_abs_confdir=`( | |
ec6a6fbe | 1413 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1414 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1415 | pwd)` |
1416 | # When building in place, set srcdir=. | |
1417 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1418 | srcdir=. | |
1419 | fi | |
1420 | # Remove unnecessary trailing slashes from srcdir. | |
1421 | # Double slashes in file names in object file debugging info | |
1422 | # mess up M-x gdb in Emacs. | |
1423 | case $srcdir in | |
1424 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1425 | esac | |
1426 | for ac_var in $ac_precious_vars; do | |
1427 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1428 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1429 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1430 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1431 | done | |
ad6254c5 AK |
1432 | |
1433 | # | |
1434 | # Report the --help message. | |
1435 | # | |
1436 | if test "$ac_init_help" = "long"; then | |
1437 | # Omit some internal or obsolete options to make the list less imposing. | |
1438 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1439 | cat <<_ACEOF | |
1440 | \`configure' configures this package to adapt to many kinds of systems. | |
1441 | ||
1442 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1443 | ||
1444 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1445 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1446 | ||
1447 | Defaults for the options are specified in brackets. | |
1448 | ||
1449 | Configuration: | |
1450 | -h, --help display this help and exit | |
1451 | --help=short display options specific to this package | |
1452 | --help=recursive display the short help of all the included packages | |
1453 | -V, --version display version information and exit | |
1454 | -q, --quiet, --silent do not print \`checking...' messages | |
1455 | --cache-file=FILE cache test results in FILE [disabled] | |
1456 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1457 | -n, --no-create do not create output files | |
1458 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1459 | ||
ad6254c5 AK |
1460 | Installation directories: |
1461 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1462 | [$ac_default_prefix] |
ad6254c5 | 1463 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1464 | [PREFIX] |
ad6254c5 AK |
1465 | |
1466 | By default, \`make install' will install all the files in | |
1467 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1468 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1469 | for instance \`--prefix=\$HOME'. | |
1470 | ||
1471 | For better control, use the options below. | |
1472 | ||
1473 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1474 | --bindir=DIR user executables [EPREFIX/bin] |
1475 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1476 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1477 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1478 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1479 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1480 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1481 | --includedir=DIR C header files [PREFIX/include] | |
1482 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1483 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1484 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1485 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1486 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1487 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1488 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1489 | --htmldir=DIR html documentation [DOCDIR] | |
1490 | --dvidir=DIR dvi documentation [DOCDIR] | |
1491 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1492 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1493 | _ACEOF |
1494 | ||
1495 | cat <<\_ACEOF | |
1496 | ||
1497 | System types: | |
1498 | --build=BUILD configure for building on BUILD [guessed] | |
1499 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1500 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1501 | _ACEOF | |
1502 | fi | |
1503 | ||
1504 | if test -n "$ac_init_help"; then | |
1505 | ||
1506 | cat <<\_ACEOF | |
1507 | ||
1508 | Optional Features: | |
ec6a6fbe | 1509 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1510 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1511 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1512 | --enable-static_link Use this to link the tools to their libraries |
1513 | statically. Default is dynamic linking | |
ad6254c5 AK |
1514 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1515 | device-mapper is missing from the kernel | |
1b523347 | 1516 | --disable-readline Disable readline support |
89044bc0 | 1517 | --enable-realtime Enable realtime clock support |
66fd4529 | 1518 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1519 | --enable-debug Enable debugging |
5556819a | 1520 | --enable-profiling Gather gcov profiling data |
93bd259b | 1521 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1522 | --enable-udev_sync Enable synchronisation with udev processing |
1523 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1524 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1525 | --enable-units-compat Enable output compatibility with old versions that |
1526 | that don't use KiB-style unit suffixes | |
93bd259b | 1527 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1528 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1529 | --enable-applib Build application library |
ad6254c5 | 1530 | --enable-cmdlib Build shared command library |
93bd259b | 1531 | --enable-pkgconfig Install pkgconfig support |
23b059e7 | 1532 | --enable-write_install Install user writable files |
c9274524 | 1533 | --disable-fsadm Disable fsadm |
15d91f5a | 1534 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1535 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1536 | --enable-nls Enable Native Language Support |
1537 | ||
1538 | Optional Packages: | |
1539 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1540 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1541 | --with-user=USER Set the owner of installed files [USER=] |
1542 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1543 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1544 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1545 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1546 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1547 | TYPE=internal | |
1548 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1549 | TYPE=internal | |
1550 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1551 | TYPE=internal | |
1552 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1553 | TYPE=internal | |
1554 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1555 | TYPE=internal | |
a946372e | 1556 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1557 | The following cluster manager combinations are valid: |
a946372e AK |
1558 | * cman,gulm (RHEL4 or equivalent) |
1559 | * cman (RHEL5 or equivalent) | |
1560 | * cman,corosync,openais (or selection of them) | |
1091650a | 1561 | * singlenode (localhost only) |
a946372e AK |
1562 | * all (autodetect) |
1563 | * none (disable build) | |
a266258f | 1564 | TYPE=none |
66fd4529 | 1565 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1566 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1567 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1568 | --with-confdir=DIR Configuration files in DIR [/etc] |
1569 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1570 | --with-usrlibdir=DIR |
1571 | --with-usrsbindir=DIR | |
a5f46f6a | 1572 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1573 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1574 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1575 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1576 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1577 | |
1578 | Some influential environment variables: | |
1579 | CC C compiler command | |
1580 | CFLAGS C compiler flags | |
1581 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1582 | nonstandard directory <lib dir> | |
25fbec5b | 1583 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1584 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1585 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1586 | CPP C preprocessor |
e2997b73 | 1587 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1588 | PKGCONFIGINIT_CFLAGS |
1589 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1590 | PKGCONFIGINIT_LIBS | |
1591 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1592 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1593 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1594 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1595 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1596 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1597 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1598 | COROSYNC_CFLAGS | |
1599 | C compiler flags for COROSYNC, overriding pkg-config | |
1600 | COROSYNC_LIBS | |
1601 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1602 | QUORUM_CFLAGS |
1603 | C compiler flags for QUORUM, overriding pkg-config | |
1604 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1605 | SALCK_CFLAGS |
1606 | C compiler flags for SALCK, overriding pkg-config | |
1607 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1608 | CONFDB_CFLAGS |
1609 | C compiler flags for CONFDB, overriding pkg-config | |
1610 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1611 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1612 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1613 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1614 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1615 | SACKPT_CFLAGS |
1616 | C compiler flags for SACKPT, overriding pkg-config | |
1617 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1618 | |
1619 | Use these variables to override the choices made by `configure' or to help | |
1620 | it to find libraries and programs with nonstandard names/locations. | |
1621 | ||
1622 | _ACEOF | |
7a197a62 | 1623 | ac_status=$? |
ad6254c5 AK |
1624 | fi |
1625 | ||
1626 | if test "$ac_init_help" = "recursive"; then | |
1627 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1628 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1629 | test -d "$ac_dir" || |
1630 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1631 | continue | |
ad6254c5 AK |
1632 | ac_builddir=. |
1633 | ||
7a197a62 AK |
1634 | case "$ac_dir" in |
1635 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1636 | *) | |
ec6a6fbe | 1637 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1638 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1639 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1640 | case $ac_top_builddir_sub in |
1641 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1642 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1643 | esac ;; | |
1644 | esac | |
1645 | ac_abs_top_builddir=$ac_pwd | |
1646 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1647 | # for backward compatibility: | |
1648 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1649 | |
1650 | case $srcdir in | |
7a197a62 | 1651 | .) # We are building in place. |
ad6254c5 | 1652 | ac_srcdir=. |
7a197a62 AK |
1653 | ac_top_srcdir=$ac_top_builddir_sub |
1654 | ac_abs_top_srcdir=$ac_pwd ;; | |
1655 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1656 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1657 | ac_top_srcdir=$srcdir |
1658 | ac_abs_top_srcdir=$srcdir ;; | |
1659 | *) # Relative name. | |
1660 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1661 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1662 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1663 | esac |
7a197a62 AK |
1664 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1665 | ||
1666 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1667 | # Check for guested configure. | |
1668 | if test -f "$ac_srcdir/configure.gnu"; then | |
1669 | echo && | |
1670 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1671 | elif test -f "$ac_srcdir/configure"; then | |
1672 | echo && | |
1673 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1674 | else |
ec6a6fbe | 1675 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1676 | fi || ac_status=$? |
1677 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1678 | done |
1679 | fi | |
1680 | ||
7a197a62 | 1681 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1682 | if $ac_init_version; then |
1683 | cat <<\_ACEOF | |
7a197a62 | 1684 | configure |
ec6a6fbe | 1685 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1686 | |
7a197a62 | 1687 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1688 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1689 | This configure script is free software; the Free Software Foundation |
1690 | gives unlimited permission to copy, distribute and modify it. | |
1691 | _ACEOF | |
7a197a62 | 1692 | exit |
ad6254c5 | 1693 | fi |
7a197a62 | 1694 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1695 | This file contains any messages produced by compilers while |
1696 | running configure, to aid debugging if configure makes a mistake. | |
1697 | ||
1698 | It was created by $as_me, which was | |
ec6a6fbe | 1699 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1700 | |
1701 | $ $0 $@ | |
1702 | ||
1703 | _ACEOF | |
7a197a62 | 1704 | exec 5>>config.log |
ad6254c5 AK |
1705 | { |
1706 | cat <<_ASUNAME | |
1707 | ## --------- ## | |
1708 | ## Platform. ## | |
1709 | ## --------- ## | |
1710 | ||
1711 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1712 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1713 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1714 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1715 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1716 | ||
1717 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1718 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1719 | ||
1720 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1721 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1722 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1723 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1724 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1725 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1726 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1727 | ||
1728 | _ASUNAME | |
1729 | ||
1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1731 | for as_dir in $PATH | |
1732 | do | |
1733 | IFS=$as_save_IFS | |
1734 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1735 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1736 | done |
7a197a62 | 1737 | IFS=$as_save_IFS |
ad6254c5 AK |
1738 | |
1739 | } >&5 | |
1740 | ||
1741 | cat >&5 <<_ACEOF | |
1742 | ||
1743 | ||
1744 | ## ----------- ## | |
1745 | ## Core tests. ## | |
1746 | ## ----------- ## | |
1747 | ||
1748 | _ACEOF | |
1749 | ||
1750 | ||
1751 | # Keep a trace of the command line. | |
1752 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1753 | # Strip out --silent because we don't want to record it for future runs. | |
1754 | # Also quote any args containing shell meta-characters. | |
1755 | # Make two passes to allow for proper duplicate-argument suppression. | |
1756 | ac_configure_args= | |
1757 | ac_configure_args0= | |
1758 | ac_configure_args1= | |
ad6254c5 AK |
1759 | ac_must_keep_next=false |
1760 | for ac_pass in 1 2 | |
1761 | do | |
1762 | for ac_arg | |
1763 | do | |
1764 | case $ac_arg in | |
1765 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1766 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1767 | | -silent | --silent | --silen | --sile | --sil) | |
1768 | continue ;; | |
7a197a62 | 1769 | *\'*) |
ec6a6fbe | 1770 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1771 | esac |
1772 | case $ac_pass in | |
1773 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1774 | 2) | |
1775 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1776 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1777 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1778 | else |
8a2fc586 AK |
1779 | case $ac_arg in |
1780 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1781 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1782 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1783 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1784 | case "$ac_configure_args0 " in | |
1785 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1786 | esac | |
1787 | ;; | |
1788 | -* ) ac_must_keep_next=true ;; | |
1789 | esac | |
ad6254c5 | 1790 | fi |
7a197a62 | 1791 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1792 | ;; |
1793 | esac | |
1794 | done | |
1795 | done | |
1796 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1797 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1798 | ||
1799 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1800 | # config.log. We remove comments because anyway the quotes in there | |
1801 | # would cause problems or look ugly. | |
7a197a62 AK |
1802 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1803 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1804 | trap 'exit_status=$? |
1805 | # Save into config.log some information that might help in debugging. | |
1806 | { | |
1807 | echo | |
1808 | ||
1809 | cat <<\_ASBOX | |
1810 | ## ---------------- ## | |
1811 | ## Cache variables. ## | |
1812 | ## ---------------- ## | |
1813 | _ASBOX | |
1814 | echo | |
1815 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1816 | ( |
1817 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1818 | eval ac_val=\$$ac_var | |
1819 | case $ac_val in #( | |
1820 | *${as_nl}*) | |
1821 | case $ac_var in #( | |
ec6a6fbe AK |
1822 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1823 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1824 | esac |
1825 | case $ac_var in #( | |
1826 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1827 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1828 | *) $as_unset $ac_var ;; |
1829 | esac ;; | |
1830 | esac | |
1831 | done | |
ad6254c5 | 1832 | (set) 2>&1 | |
7a197a62 AK |
1833 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1834 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1835 | sed -n \ |
7a197a62 AK |
1836 | "s/'\''/'\''\\\\'\'''\''/g; |
1837 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1838 | ;; #( | |
ad6254c5 | 1839 | *) |
7a197a62 | 1840 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1841 | ;; |
7a197a62 AK |
1842 | esac | |
1843 | sort | |
1844 | ) | |
ad6254c5 AK |
1845 | echo |
1846 | ||
1847 | cat <<\_ASBOX | |
1848 | ## ----------------- ## | |
1849 | ## Output variables. ## | |
1850 | ## ----------------- ## | |
1851 | _ASBOX | |
1852 | echo | |
1853 | for ac_var in $ac_subst_vars | |
1854 | do | |
7a197a62 AK |
1855 | eval ac_val=\$$ac_var |
1856 | case $ac_val in | |
ec6a6fbe | 1857 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1858 | esac |
ec6a6fbe | 1859 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1860 | done | sort |
1861 | echo | |
1862 | ||
1863 | if test -n "$ac_subst_files"; then | |
1864 | cat <<\_ASBOX | |
7a197a62 AK |
1865 | ## ------------------- ## |
1866 | ## File substitutions. ## | |
1867 | ## ------------------- ## | |
ad6254c5 AK |
1868 | _ASBOX |
1869 | echo | |
1870 | for ac_var in $ac_subst_files | |
1871 | do | |
7a197a62 AK |
1872 | eval ac_val=\$$ac_var |
1873 | case $ac_val in | |
ec6a6fbe | 1874 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1875 | esac |
ec6a6fbe | 1876 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1877 | done | sort |
1878 | echo | |
1879 | fi | |
1880 | ||
1881 | if test -s confdefs.h; then | |
1882 | cat <<\_ASBOX | |
1883 | ## ----------- ## | |
1884 | ## confdefs.h. ## | |
1885 | ## ----------- ## | |
1886 | _ASBOX | |
1887 | echo | |
7a197a62 | 1888 | cat confdefs.h |
ad6254c5 AK |
1889 | echo |
1890 | fi | |
1891 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1892 | $as_echo "$as_me: caught signal $ac_signal" |
1893 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1894 | } >&5 |
7a197a62 AK |
1895 | rm -f core *.core core.conftest.* && |
1896 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1897 | exit $exit_status |
7a197a62 | 1898 | ' 0 |
ad6254c5 AK |
1899 | for ac_signal in 1 2 13 15; do |
1900 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1901 | done | |
1902 | ac_signal=0 | |
1903 | ||
1904 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1905 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1906 | |
1907 | # Predefined preprocessor variables. | |
1908 | ||
1909 | cat >>confdefs.h <<_ACEOF | |
1910 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1911 | _ACEOF | |
1912 | ||
1913 | ||
1914 | cat >>confdefs.h <<_ACEOF | |
1915 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1916 | _ACEOF | |
1917 | ||
1918 | ||
1919 | cat >>confdefs.h <<_ACEOF | |
1920 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1921 | _ACEOF | |
8106cdd5 | 1922 | |
ad6254c5 AK |
1923 | |
1924 | cat >>confdefs.h <<_ACEOF | |
1925 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1926 | _ACEOF | |
1927 | ||
1928 | ||
1929 | cat >>confdefs.h <<_ACEOF | |
1930 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1931 | _ACEOF | |
1932 | ||
1933 | ||
1934 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1935 | # Prefer an explicitly selected file to automatically selected ones. |
1936 | ac_site_file1=NONE | |
1937 | ac_site_file2=NONE | |
7a197a62 | 1938 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1939 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1940 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1941 | ac_site_file1=$prefix/share/config.site |
1942 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1943 | else |
ec6a6fbe AK |
1944 | ac_site_file1=$ac_default_prefix/share/config.site |
1945 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1946 | fi |
ec6a6fbe | 1947 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1948 | do |
ec6a6fbe | 1949 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1950 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1951 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1952 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1953 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1954 | . "$ac_site_file" |
1955 | fi | |
1956 | done | |
1957 | ||
1958 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1959 | # Some versions of bash will fail to source /dev/null (special |
1960 | # files actually), so we avoid doing that. | |
1961 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1962 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1963 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1964 | case $cache_file in |
7a197a62 AK |
1965 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1966 | *) . "./$cache_file";; | |
ad6254c5 AK |
1967 | esac |
1968 | fi | |
795ca3e5 | 1969 | else |
ec6a6fbe AK |
1970 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1971 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1972 | >$cache_file |
1973 | fi | |
1974 | ||
1975 | # Check that the precious variables saved in the cache have kept the same | |
1976 | # value. | |
1977 | ac_cache_corrupted=false | |
7a197a62 | 1978 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1979 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1980 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1981 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1982 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1983 | case $ac_old_set,$ac_new_set in |
1984 | set,) | |
ec6a6fbe AK |
1985 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1986 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1987 | ac_cache_corrupted=: ;; |
1988 | ,set) | |
ec6a6fbe AK |
1989 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1990 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1991 | ac_cache_corrupted=: ;; |
1992 | ,);; | |
1993 | *) | |
1994 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1995 | # differences in whitespace do not lead to failure. |
1996 | ac_old_val_w=`echo x $ac_old_val` | |
1997 | ac_new_val_w=`echo x $ac_new_val` | |
1998 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1999 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2000 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2001 | ac_cache_corrupted=: | |
2002 | else | |
2003 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2004 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2005 | eval $ac_var=\$ac_old_val | |
2006 | fi | |
2007 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2008 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2009 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2010 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2011 | fi;; |
2012 | esac | |
2013 | # Pass precious variables to config.status. | |
2014 | if test "$ac_new_set" = set; then | |
2015 | case $ac_new_val in | |
ec6a6fbe | 2016 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2017 | *) ac_arg=$ac_var=$ac_new_val ;; |
2018 | esac | |
2019 | case " $ac_configure_args " in | |
2020 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2021 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2022 | esac | |
2023 | fi | |
2024 | done | |
2025 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2026 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2027 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2028 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2029 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2030 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2031 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2032 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2033 | fi |
2034 | ||
ad6254c5 AK |
2035 | |
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | ||
2044 | ||
2045 | ||
2046 | ||
2047 | ||
2048 | ||
2049 | ||
2050 | ||
7a197a62 AK |
2051 | ac_ext=c |
2052 | ac_cpp='$CPP $CPPFLAGS' | |
2053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2056 | |
795ca3e5 AK |
2057 | |
2058 | ||
7a197a62 | 2059 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2060 | |
2061 | ||
80992638 | 2062 | ################################################################################ |
795ca3e5 | 2063 | ac_aux_dir= |
7a197a62 AK |
2064 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2065 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2066 | ac_aux_dir=$ac_dir |
2067 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2068 | break | |
7a197a62 | 2069 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2070 | ac_aux_dir=$ac_dir |
2071 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2072 | break | |
7a197a62 | 2073 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2074 | ac_aux_dir=$ac_dir |
2075 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2076 | break | |
795ca3e5 AK |
2077 | fi |
2078 | done | |
2079 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2080 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2081 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2082 | { (exit 1); exit 1; }; } |
795ca3e5 | 2083 | fi |
7a197a62 AK |
2084 | |
2085 | # These three variables are undocumented and unsupported, | |
2086 | # and are intended to be withdrawn in a future Autoconf release. | |
2087 | # They can cause serious problems if a builder's source tree is in a directory | |
2088 | # whose full name contains unusual characters. | |
2089 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2090 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2091 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2092 | ||
8ce0cbda AK |
2093 | |
2094 | ||
ad6254c5 | 2095 | ################################################################################ |
8ce0cbda | 2096 | # Make sure we can run config.sub. |
7a197a62 | 2097 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2098 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2099 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2100 | { (exit 1); exit 1; }; } |
2101 | ||
ec6a6fbe AK |
2102 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2103 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2104 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2105 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2106 | else |
7a197a62 AK |
2107 | ac_build_alias=$build_alias |
2108 | test "x$ac_build_alias" = x && | |
2109 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2110 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2111 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2112 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2113 | { (exit 1); exit 1; }; } |
7a197a62 | 2114 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2115 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2116 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2117 | { (exit 1); exit 1; }; } |
2118 | ||
2119 | fi | |
ec6a6fbe AK |
2120 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2121 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2122 | case $ac_cv_build in |
2123 | *-*-*) ;; | |
ec6a6fbe AK |
2124 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2125 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2126 | { (exit 1); exit 1; }; };; |
2127 | esac | |
ad6254c5 | 2128 | build=$ac_cv_build |
7a197a62 AK |
2129 | ac_save_IFS=$IFS; IFS='-' |
2130 | set x $ac_cv_build | |
2131 | shift | |
2132 | build_cpu=$1 | |
2133 | build_vendor=$2 | |
2134 | shift; shift | |
2135 | # Remember, the first character of IFS is used to create $*, | |
2136 | # except with old shells: | |
2137 | build_os=$* | |
2138 | IFS=$ac_save_IFS | |
2139 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2140 | |
2141 | ||
ec6a6fbe AK |
2142 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2143 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2144 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2145 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2146 | else |
7a197a62 AK |
2147 | if test "x$host_alias" = x; then |
2148 | ac_cv_host=$ac_cv_build | |
2149 | else | |
2150 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2151 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2152 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2153 | { (exit 1); exit 1; }; } |
7a197a62 | 2154 | fi |
ad6254c5 AK |
2155 | |
2156 | fi | |
ec6a6fbe AK |
2157 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2158 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2159 | case $ac_cv_host in |
2160 | *-*-*) ;; | |
ec6a6fbe AK |
2161 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2162 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2163 | { (exit 1); exit 1; }; };; |
2164 | esac | |
ad6254c5 | 2165 | host=$ac_cv_host |
7a197a62 AK |
2166 | ac_save_IFS=$IFS; IFS='-' |
2167 | set x $ac_cv_host | |
2168 | shift | |
2169 | host_cpu=$1 | |
2170 | host_vendor=$2 | |
2171 | shift; shift | |
2172 | # Remember, the first character of IFS is used to create $*, | |
2173 | # except with old shells: | |
2174 | host_os=$* | |
2175 | IFS=$ac_save_IFS | |
2176 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2177 | |
2178 | ||
ec6a6fbe AK |
2179 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2180 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2181 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2182 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2183 | else |
7a197a62 AK |
2184 | if test "x$target_alias" = x; then |
2185 | ac_cv_target=$ac_cv_host | |
2186 | else | |
2187 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2188 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2189 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2190 | { (exit 1); exit 1; }; } |
7a197a62 | 2191 | fi |
8ce0cbda | 2192 | |
ad6254c5 | 2193 | fi |
ec6a6fbe AK |
2194 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2195 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2196 | case $ac_cv_target in |
2197 | *-*-*) ;; | |
ec6a6fbe AK |
2198 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2199 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2200 | { (exit 1); exit 1; }; };; |
2201 | esac | |
ad6254c5 | 2202 | target=$ac_cv_target |
7a197a62 AK |
2203 | ac_save_IFS=$IFS; IFS='-' |
2204 | set x $ac_cv_target | |
2205 | shift | |
2206 | target_cpu=$1 | |
2207 | target_vendor=$2 | |
2208 | shift; shift | |
2209 | # Remember, the first character of IFS is used to create $*, | |
2210 | # except with old shells: | |
2211 | target_os=$* | |
2212 | IFS=$ac_save_IFS | |
2213 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2214 | |
8ce0cbda | 2215 | |
ad6254c5 AK |
2216 | # The aliases save the names the user supplied, while $host etc. |
2217 | # will get canonicalized. | |
2218 | test -n "$target_alias" && | |
8ce0cbda AK |
2219 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2220 | NONENONEs,x,x, && | |
2221 | program_prefix=${target_alias}- | |
2222 | ||
8ce0cbda AK |
2223 | case "$host_os" in |
2224 | linux*) | |
7f54ef36 | 2225 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2226 | COPTIMISE_FLAG="-O2" |
2227 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2228 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2229 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2230 | LDDEPS="$LDDEPS .export.sym" | |
2231 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2232 | LIB_SUFFIX=so |
8ce0cbda AK |
2233 | DEVMAPPER=yes |
2234 | ODIRECT=yes | |
d0191583 | 2235 | DM_IOCTLS=yes |
8ce0cbda AK |
2236 | SELINUX=yes |
2237 | CLUSTER=internal | |
93bd259b | 2238 | FSADM=yes |
d0191583 | 2239 | ;; |
8ce0cbda AK |
2240 | darwin*) |
2241 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2242 | COPTIMISE_FLAG="-O2" | |
2243 | CLDFLAGS="$CLDFLAGS" | |
2244 | CLDWHOLEARCHIVE="-all_load" | |
2245 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2246 | LIB_SUFFIX=dylib |
a653923f | 2247 | DEVMAPPER=yes |
8ce0cbda | 2248 | ODIRECT=no |
d0191583 | 2249 | DM_IOCTLS=no |
8ce0cbda AK |
2250 | SELINUX=no |
2251 | CLUSTER=none | |
d0191583 JM |
2252 | FSADM=no |
2253 | ;; | |
8ce0cbda AK |
2254 | esac |
2255 | ||
80992638 | 2256 | ################################################################################ |
ec6a6fbe AK |
2257 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2258 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2259 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2260 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2261 | else |
2262 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2263 | for ac_i in 1 2 3 4 5 6 7; do | |
2264 | ac_script="$ac_script$as_nl$ac_script" | |
2265 | done | |
ec6a6fbe | 2266 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2267 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2268 | if test -z "$SED"; then |
5951ef33 | 2269 | ac_path_SED_found=false |
ec6a6fbe AK |
2270 | # Loop through the user's path and test for each of PROGNAME-LIST |
2271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2272 | for as_dir in $PATH |
2273 | do | |
2274 | IFS=$as_save_IFS | |
2275 | test -z "$as_dir" && as_dir=. | |
2276 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2277 | for ac_exec_ext in '' $ac_executable_extensions; do |
2278 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2279 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2280 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2281 | # Check for GNU $ac_path_SED |
2282 | case `"$ac_path_SED" --version 2>&1` in | |
2283 | *GNU*) | |
2284 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2285 | *) | |
2286 | ac_count=0 | |
ec6a6fbe | 2287 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2288 | while : |
2289 | do | |
2290 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2291 | mv "conftest.tmp" "conftest.in" | |
2292 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2293 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2294 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2295 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2296 | ac_count=`expr $ac_count + 1` | |
2297 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2298 | # Best one so far, save it but keep looking for a better one | |
2299 | ac_cv_path_SED="$ac_path_SED" | |
2300 | ac_path_SED_max=$ac_count | |
2301 | fi | |
2302 | # 10*(2^10) chars as input seems more than enough | |
2303 | test $ac_count -gt 10 && break | |
2304 | done | |
2305 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2306 | esac | |
2307 | ||
ec6a6fbe AK |
2308 | $ac_path_SED_found && break 3 |
2309 | done | |
5951ef33 AK |
2310 | done |
2311 | done | |
5951ef33 | 2312 | IFS=$as_save_IFS |
ec6a6fbe AK |
2313 | if test -z "$ac_cv_path_SED"; then |
2314 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2315 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2316 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2317 | fi |
5951ef33 AK |
2318 | else |
2319 | ac_cv_path_SED=$SED | |
2320 | fi | |
2321 | ||
2322 | fi | |
ec6a6fbe AK |
2323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2324 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2325 | SED="$ac_cv_path_SED" |
2326 | rm -f conftest.sed | |
2327 | ||
ad6254c5 | 2328 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2329 | do |
ad6254c5 | 2330 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2331 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2332 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2333 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2334 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2335 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2336 | else |
2337 | if test -n "$AWK"; then | |
2338 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2339 | else | |
ad6254c5 AK |
2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2341 | for as_dir in $PATH | |
2342 | do | |
2343 | IFS=$as_save_IFS | |
2344 | test -z "$as_dir" && as_dir=. | |
2345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2347 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2348 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2349 | break 2 |
2350 | fi | |
2351 | done | |
2352 | done | |
7a197a62 | 2353 | IFS=$as_save_IFS |
ad6254c5 | 2354 | |
795ca3e5 AK |
2355 | fi |
2356 | fi | |
ad6254c5 | 2357 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2358 | if test -n "$AWK"; then |
ec6a6fbe AK |
2359 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2360 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2361 | else |
ec6a6fbe AK |
2362 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2363 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2364 | fi |
2365 | ||
7a197a62 | 2366 | |
ad6254c5 AK |
2367 | test -n "$AWK" && break |
2368 | done | |
2369 | ||
2370 | ac_ext=c | |
2371 | ac_cpp='$CPP $CPPFLAGS' | |
2372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2375 | if test -n "$ac_tool_prefix"; then | |
2376 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2377 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2378 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2379 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2380 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2381 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2382 | else |
2383 | if test -n "$CC"; then | |
2384 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2385 | else | |
2386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2387 | for as_dir in $PATH | |
2388 | do | |
2389 | IFS=$as_save_IFS | |
2390 | test -z "$as_dir" && as_dir=. | |
2391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2393 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2394 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2395 | break 2 |
2396 | fi | |
2397 | done | |
8106cdd5 | 2398 | done |
7a197a62 | 2399 | IFS=$as_save_IFS |
8106cdd5 | 2400 | |
ad6254c5 AK |
2401 | fi |
2402 | fi | |
2403 | CC=$ac_cv_prog_CC | |
2404 | if test -n "$CC"; then | |
ec6a6fbe AK |
2405 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2406 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2407 | else |
ec6a6fbe AK |
2408 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2409 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2410 | fi |
2411 | ||
7a197a62 | 2412 | |
ad6254c5 AK |
2413 | fi |
2414 | if test -z "$ac_cv_prog_CC"; then | |
2415 | ac_ct_CC=$CC | |
2416 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2417 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2418 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2419 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2420 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2421 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2422 | else |
2423 | if test -n "$ac_ct_CC"; then | |
2424 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2425 | else | |
2426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2427 | for as_dir in $PATH | |
2428 | do | |
2429 | IFS=$as_save_IFS | |
2430 | test -z "$as_dir" && as_dir=. | |
2431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2433 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2434 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2435 | break 2 |
2436 | fi | |
2437 | done | |
2438 | done | |
7a197a62 | 2439 | IFS=$as_save_IFS |
ad6254c5 AK |
2440 | |
2441 | fi | |
2442 | fi | |
2443 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2444 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2445 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2446 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2447 | else |
ec6a6fbe AK |
2448 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2449 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2450 | fi |
2451 | ||
7a197a62 AK |
2452 | if test "x$ac_ct_CC" = x; then |
2453 | CC="" | |
2454 | else | |
2455 | case $cross_compiling:$ac_tool_warned in | |
2456 | yes:) | |
ec6a6fbe AK |
2457 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2458 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2459 | ac_tool_warned=yes ;; |
2460 | esac | |
2461 | CC=$ac_ct_CC | |
2462 | fi | |
ad6254c5 AK |
2463 | else |
2464 | CC="$ac_cv_prog_CC" | |
2465 | fi | |
2466 | ||
2467 | if test -z "$CC"; then | |
7a197a62 AK |
2468 | if test -n "$ac_tool_prefix"; then |
2469 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2470 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2471 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2472 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2473 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2474 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2475 | else |
2476 | if test -n "$CC"; then | |
2477 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2478 | else | |
ad6254c5 AK |
2479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2480 | for as_dir in $PATH | |
2481 | do | |
2482 | IFS=$as_save_IFS | |
2483 | test -z "$as_dir" && as_dir=. | |
2484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2486 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2487 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2488 | break 2 |
2489 | fi | |
2490 | done | |
2491 | done | |
7a197a62 | 2492 | IFS=$as_save_IFS |
ad6254c5 | 2493 | |
8106cdd5 AK |
2494 | fi |
2495 | fi | |
ad6254c5 | 2496 | CC=$ac_cv_prog_CC |
8106cdd5 | 2497 | if test -n "$CC"; then |
ec6a6fbe AK |
2498 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2499 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2500 | else |
ec6a6fbe AK |
2501 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2502 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2503 | fi |
2504 | ||
8106cdd5 | 2505 | |
7a197a62 | 2506 | fi |
ad6254c5 | 2507 | fi |
795ca3e5 AK |
2508 | if test -z "$CC"; then |
2509 | # Extract the first word of "cc", so it can be a program name with args. | |
2510 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2511 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2512 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2513 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2514 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2515 | else |
2516 | if test -n "$CC"; then | |
2517 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2518 | else | |
795ca3e5 | 2519 | ac_prog_rejected=no |
ad6254c5 AK |
2520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2521 | for as_dir in $PATH | |
2522 | do | |
2523 | IFS=$as_save_IFS | |
2524 | test -z "$as_dir" && as_dir=. | |
2525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2527 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2528 | ac_prog_rejected=yes | |
2529 | continue | |
2530 | fi | |
2531 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2532 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2533 | break 2 |
2534 | fi | |
2535 | done | |
2536 | done | |
7a197a62 | 2537 | IFS=$as_save_IFS |
ad6254c5 | 2538 | |
795ca3e5 AK |
2539 | if test $ac_prog_rejected = yes; then |
2540 | # We found a bogon in the path, so make sure we never use it. | |
2541 | set dummy $ac_cv_prog_CC | |
2542 | shift | |
ad6254c5 | 2543 | if test $# != 0; then |
795ca3e5 AK |
2544 | # We chose a different compiler from the bogus one. |
2545 | # However, it has the same basename, so the bogon will be chosen | |
2546 | # first if we set CC to just the basename; use the full file name. | |
2547 | shift | |
ad6254c5 | 2548 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2549 | fi |
2550 | fi | |
2551 | fi | |
2552 | fi | |
ad6254c5 | 2553 | CC=$ac_cv_prog_CC |
795ca3e5 | 2554 | if test -n "$CC"; then |
ec6a6fbe AK |
2555 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2556 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2557 | else |
ec6a6fbe AK |
2558 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2559 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2560 | fi |
2561 | ||
7a197a62 | 2562 | |
ad6254c5 AK |
2563 | fi |
2564 | if test -z "$CC"; then | |
2565 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2566 | for ac_prog in cl.exe |
ad6254c5 AK |
2567 | do |
2568 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2569 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2570 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2571 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2572 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2573 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2574 | else |
2575 | if test -n "$CC"; then | |
2576 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2577 | else | |
ad6254c5 AK |
2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2579 | for as_dir in $PATH | |
2580 | do | |
2581 | IFS=$as_save_IFS | |
2582 | test -z "$as_dir" && as_dir=. | |
2583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2585 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2586 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2587 | break 2 |
2588 | fi | |
2589 | done | |
2590 | done | |
7a197a62 | 2591 | IFS=$as_save_IFS |
ad6254c5 | 2592 | |
795ca3e5 AK |
2593 | fi |
2594 | fi | |
ad6254c5 | 2595 | CC=$ac_cv_prog_CC |
795ca3e5 | 2596 | if test -n "$CC"; then |
ec6a6fbe AK |
2597 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2598 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2599 | else |
ec6a6fbe AK |
2600 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2601 | $as_echo "no" >&6; } | |
795ca3e5 | 2602 | fi |
ad6254c5 | 2603 | |
7a197a62 | 2604 | |
ad6254c5 AK |
2605 | test -n "$CC" && break |
2606 | done | |
2607 | fi | |
2608 | if test -z "$CC"; then | |
2609 | ac_ct_CC=$CC | |
7a197a62 | 2610 | for ac_prog in cl.exe |
ad6254c5 AK |
2611 | do |
2612 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2613 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2614 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2615 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2616 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2617 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2618 | else |
2619 | if test -n "$ac_ct_CC"; then | |
2620 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2621 | else | |
2622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2623 | for as_dir in $PATH | |
2624 | do | |
2625 | IFS=$as_save_IFS | |
2626 | test -z "$as_dir" && as_dir=. | |
2627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2629 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2630 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2631 | break 2 |
795ca3e5 | 2632 | fi |
ad6254c5 AK |
2633 | done |
2634 | done | |
7a197a62 | 2635 | IFS=$as_save_IFS |
ad6254c5 AK |
2636 | |
2637 | fi | |
2638 | fi | |
2639 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2640 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2641 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2642 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2643 | else |
ec6a6fbe AK |
2644 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2645 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2646 | fi |
2647 | ||
7a197a62 | 2648 | |
ad6254c5 AK |
2649 | test -n "$ac_ct_CC" && break |
2650 | done | |
795ca3e5 | 2651 | |
7a197a62 AK |
2652 | if test "x$ac_ct_CC" = x; then |
2653 | CC="" | |
2654 | else | |
2655 | case $cross_compiling:$ac_tool_warned in | |
2656 | yes:) | |
ec6a6fbe AK |
2657 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2658 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2659 | ac_tool_warned=yes ;; |
2660 | esac | |
2661 | CC=$ac_ct_CC | |
2662 | fi | |
ad6254c5 AK |
2663 | fi |
2664 | ||
2665 | fi | |
2666 | ||
2667 | ||
ec6a6fbe AK |
2668 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2669 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2670 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2671 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2672 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2673 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2674 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2675 | |
2676 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2677 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2678 | set X $ac_compile | |
2679 | ac_compiler=$2 | |
7a197a62 AK |
2680 | { (ac_try="$ac_compiler --version >&5" |
2681 | case "(($ac_try" in | |
2682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2683 | *) ac_try_echo=$ac_try;; | |
2684 | esac | |
ec6a6fbe AK |
2685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2686 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2687 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2688 | ac_status=$? |
ec6a6fbe | 2689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2690 | (exit $ac_status); } |
7a197a62 AK |
2691 | { (ac_try="$ac_compiler -v >&5" |
2692 | case "(($ac_try" in | |
2693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2694 | *) ac_try_echo=$ac_try;; | |
2695 | esac | |
ec6a6fbe AK |
2696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2697 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2698 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2699 | ac_status=$? |
ec6a6fbe | 2700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2701 | (exit $ac_status); } |
7a197a62 AK |
2702 | { (ac_try="$ac_compiler -V >&5" |
2703 | case "(($ac_try" in | |
2704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2705 | *) ac_try_echo=$ac_try;; | |
2706 | esac | |
ec6a6fbe AK |
2707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2708 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2709 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2710 | ac_status=$? |
ec6a6fbe | 2711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2712 | (exit $ac_status); } |
2713 | ||
2714 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2715 | /* confdefs.h. */ |
2716 | _ACEOF | |
2717 | cat confdefs.h >>conftest.$ac_ext | |
2718 | cat >>conftest.$ac_ext <<_ACEOF | |
2719 | /* end confdefs.h. */ | |
2720 | ||
2721 | int | |
2722 | main () | |
2723 | { | |
2724 | ||
2725 | ; | |
2726 | return 0; | |
2727 | } | |
2728 | _ACEOF | |
2729 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2730 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2731 | # Try to create an executable without -o first, disregard a.out. |
2732 | # It will help us diagnose broken compilers, and finding out an intuition | |
2733 | # of exeext. | |
ec6a6fbe AK |
2734 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2735 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2736 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2737 | ||
2738 | # The possible output files: | |
2739 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2740 | ||
7a197a62 AK |
2741 | ac_rmfiles= |
2742 | for ac_file in $ac_files | |
2743 | do | |
2744 | case $ac_file in | |
ec6a6fbe | 2745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2746 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2747 | esac | |
2748 | done | |
2749 | rm -f $ac_rmfiles | |
2750 | ||
2751 | if { (ac_try="$ac_link_default" | |
2752 | case "(($ac_try" in | |
2753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2754 | *) ac_try_echo=$ac_try;; | |
2755 | esac | |
ec6a6fbe AK |
2756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2757 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2758 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2759 | ac_status=$? |
ec6a6fbe | 2760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2761 | (exit $ac_status); }; then |
7a197a62 AK |
2762 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2763 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2764 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2765 | # so that the user can short-circuit this test for compilers unknown to | |
2766 | # Autoconf. | |
25fbec5b | 2767 | for ac_file in $ac_files '' |
ad6254c5 AK |
2768 | do |
2769 | test -f "$ac_file" || continue | |
2770 | case $ac_file in | |
ec6a6fbe | 2771 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2772 | ;; |
ad6254c5 | 2773 | [ab].out ) |
8a2fc586 AK |
2774 | # We found the default executable, but exeext='' is most |
2775 | # certainly right. | |
2776 | break;; | |
ad6254c5 | 2777 | *.* ) |
7a197a62 AK |
2778 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2779 | then :; else | |
2780 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2781 | fi | |
2782 | # We set ac_cv_exeext here because the later test for it is not | |
2783 | # safe: cross compilers may not add the suffix if given an `-o' | |
2784 | # argument, so we may need to know it at that point already. | |
2785 | # Even if this section looks crufty: it has the advantage of | |
2786 | # actually working. | |
8a2fc586 | 2787 | break;; |
ad6254c5 | 2788 | * ) |
8a2fc586 | 2789 | break;; |
ad6254c5 AK |
2790 | esac |
2791 | done | |
7a197a62 AK |
2792 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2793 | ||
ad6254c5 | 2794 | else |
25fbec5b AK |
2795 | ac_file='' |
2796 | fi | |
2797 | ||
ec6a6fbe AK |
2798 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2799 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2800 | if test -z "$ac_file"; then |
ec6a6fbe | 2801 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
2803 | ||
ec6a6fbe AK |
2804 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2806 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2807 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2808 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2809 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2810 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2811 | fi |
2812 | ||
2813 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2814 | |
7a197a62 | 2815 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2816 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2817 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2818 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2819 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2820 | # If not cross compiling, check that we can run a simple program. | |
2821 | if test "$cross_compiling" != yes; then | |
2822 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2823 | { (case "(($ac_try" in |
2824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2825 | *) ac_try_echo=$ac_try;; | |
2826 | esac | |
ec6a6fbe AK |
2827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2828 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2829 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2830 | ac_status=$? |
ec6a6fbe | 2831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2832 | (exit $ac_status); }; }; then |
2833 | cross_compiling=no | |
795ca3e5 | 2834 | else |
ad6254c5 AK |
2835 | if test "$cross_compiling" = maybe; then |
2836 | cross_compiling=yes | |
2837 | else | |
ec6a6fbe AK |
2838 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2840 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2841 | If you meant to cross compile, use \`--host'. |
2842 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2843 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2844 | If you meant to cross compile, use \`--host'. |
2845 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2846 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2847 | fi |
795ca3e5 | 2848 | fi |
80992638 | 2849 | fi |
ec6a6fbe AK |
2850 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2851 | $as_echo "yes" >&6; } | |
ad6254c5 | 2852 | |
ec6a6fbe | 2853 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2854 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2855 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2856 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2857 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2858 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2859 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2860 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2861 | |
ec6a6fbe AK |
2862 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2863 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2864 | if { (ac_try="$ac_link" |
2865 | case "(($ac_try" in | |
2866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2867 | *) ac_try_echo=$ac_try;; | |
2868 | esac | |
ec6a6fbe AK |
2869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2870 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2871 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2872 | ac_status=$? |
ec6a6fbe | 2873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2874 | (exit $ac_status); }; then |
2875 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2876 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2877 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2878 | # `rm'. | |
2879 | for ac_file in conftest.exe conftest conftest.*; do | |
2880 | test -f "$ac_file" || continue | |
2881 | case $ac_file in | |
ec6a6fbe | 2882 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2883 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2884 | break;; |
ad6254c5 AK |
2885 | * ) break;; |
2886 | esac | |
2887 | done | |
80992638 | 2888 | else |
ec6a6fbe AK |
2889 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2890 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2891 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2892 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2893 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2894 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2895 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2896 | fi |
2897 | ||
2898 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2899 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2900 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2901 | |
2902 | rm -f conftest.$ac_ext | |
2903 | EXEEXT=$ac_cv_exeext | |
2904 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2905 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2906 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2907 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2908 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2909 | else |
ad6254c5 | 2910 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2911 | /* confdefs.h. */ |
2912 | _ACEOF | |
2913 | cat confdefs.h >>conftest.$ac_ext | |
2914 | cat >>conftest.$ac_ext <<_ACEOF | |
2915 | /* end confdefs.h. */ | |
2916 | ||
2917 | int | |
2918 | main () | |
2919 | { | |
2920 | ||
2921 | ; | |
2922 | return 0; | |
2923 | } | |
2924 | _ACEOF | |
2925 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2926 | if { (ac_try="$ac_compile" |
2927 | case "(($ac_try" in | |
2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2929 | *) ac_try_echo=$ac_try;; | |
2930 | esac | |
ec6a6fbe AK |
2931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2932 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2933 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2934 | ac_status=$? |
ec6a6fbe | 2935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2936 | (exit $ac_status); }; then |
7a197a62 AK |
2937 | for ac_file in conftest.o conftest.obj conftest.*; do |
2938 | test -f "$ac_file" || continue; | |
ad6254c5 | 2939 | case $ac_file in |
ec6a6fbe | 2940 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2941 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2942 | break;; | |
2943 | esac | |
2944 | done | |
2945 | else | |
ec6a6fbe | 2946 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2947 | sed 's/^/| /' conftest.$ac_ext >&5 |
2948 | ||
ec6a6fbe AK |
2949 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2950 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2951 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2952 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2953 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2954 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2955 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2956 | fi |
2957 | ||
2958 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2959 | fi | |
ec6a6fbe AK |
2960 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2961 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2962 | OBJEXT=$ac_cv_objext |
2963 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2964 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2965 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2966 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2967 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2968 | else |
2969 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2970 | /* confdefs.h. */ |
2971 | _ACEOF | |
2972 | cat confdefs.h >>conftest.$ac_ext | |
2973 | cat >>conftest.$ac_ext <<_ACEOF | |
2974 | /* end confdefs.h. */ | |
2975 | ||
2976 | int | |
2977 | main () | |
2978 | { | |
2979 | #ifndef __GNUC__ | |
2980 | choke me | |
2981 | #endif | |
80992638 | 2982 | |
ad6254c5 AK |
2983 | ; |
2984 | return 0; | |
2985 | } | |
2986 | _ACEOF | |
2987 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2988 | if { (ac_try="$ac_compile" |
2989 | case "(($ac_try" in | |
2990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2991 | *) ac_try_echo=$ac_try;; | |
2992 | esac | |
ec6a6fbe AK |
2993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2994 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2995 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2996 | ac_status=$? |
8a2fc586 AK |
2997 | grep -v '^ *+' conftest.er1 >conftest.err |
2998 | rm -f conftest.er1 | |
2999 | cat conftest.err >&5 | |
ec6a6fbe | 3000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3001 | (exit $ac_status); } && { |
3002 | test -z "$ac_c_werror_flag" || | |
3003 | test ! -s conftest.err | |
3004 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3005 | ac_compiler_gnu=yes |
80992638 | 3006 | else |
ec6a6fbe | 3007 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3008 | sed 's/^/| /' conftest.$ac_ext >&5 |
3009 | ||
7a197a62 | 3010 | ac_compiler_gnu=no |
8106cdd5 | 3011 | fi |
7a197a62 AK |
3012 | |
3013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3014 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3015 | |
ad6254c5 | 3016 | fi |
ec6a6fbe AK |
3017 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3018 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3019 | if test $ac_compiler_gnu = yes; then | |
3020 | GCC=yes | |
3021 | else | |
3022 | GCC= | |
3023 | fi | |
ad6254c5 AK |
3024 | ac_test_CFLAGS=${CFLAGS+set} |
3025 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3026 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3027 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3028 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3029 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3030 | else |
7a197a62 AK |
3031 | ac_save_c_werror_flag=$ac_c_werror_flag |
3032 | ac_c_werror_flag=yes | |
3033 | ac_cv_prog_cc_g=no | |
3034 | CFLAGS="-g" | |
3035 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3036 | /* confdefs.h. */ |
3037 | _ACEOF | |
3038 | cat confdefs.h >>conftest.$ac_ext | |
3039 | cat >>conftest.$ac_ext <<_ACEOF | |
3040 | /* end confdefs.h. */ | |
3041 | ||
3042 | int | |
3043 | main () | |
3044 | { | |
3045 | ||
3046 | ; | |
3047 | return 0; | |
3048 | } | |
3049 | _ACEOF | |
3050 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3051 | if { (ac_try="$ac_compile" |
3052 | case "(($ac_try" in | |
3053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3054 | *) ac_try_echo=$ac_try;; | |
3055 | esac | |
ec6a6fbe AK |
3056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3057 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3058 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3059 | ac_status=$? |
8a2fc586 AK |
3060 | grep -v '^ *+' conftest.er1 >conftest.err |
3061 | rm -f conftest.er1 | |
3062 | cat conftest.err >&5 | |
ec6a6fbe | 3063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3064 | (exit $ac_status); } && { |
3065 | test -z "$ac_c_werror_flag" || | |
3066 | test ! -s conftest.err | |
3067 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3068 | ac_cv_prog_cc_g=yes |
3069 | else | |
ec6a6fbe | 3070 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3071 | sed 's/^/| /' conftest.$ac_ext >&5 |
3072 | ||
3073 | CFLAGS="" | |
3074 | cat >conftest.$ac_ext <<_ACEOF | |
3075 | /* confdefs.h. */ | |
3076 | _ACEOF | |
3077 | cat confdefs.h >>conftest.$ac_ext | |
3078 | cat >>conftest.$ac_ext <<_ACEOF | |
3079 | /* end confdefs.h. */ | |
3080 | ||
3081 | int | |
3082 | main () | |
3083 | { | |
3084 | ||
3085 | ; | |
3086 | return 0; | |
3087 | } | |
3088 | _ACEOF | |
3089 | rm -f conftest.$ac_objext | |
3090 | if { (ac_try="$ac_compile" | |
3091 | case "(($ac_try" in | |
3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3093 | *) ac_try_echo=$ac_try;; | |
3094 | esac | |
ec6a6fbe AK |
3095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3096 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3097 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3098 | ac_status=$? |
7a197a62 AK |
3099 | grep -v '^ *+' conftest.er1 >conftest.err |
3100 | rm -f conftest.er1 | |
3101 | cat conftest.err >&5 | |
ec6a6fbe | 3102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3103 | (exit $ac_status); } && { |
3104 | test -z "$ac_c_werror_flag" || | |
3105 | test ! -s conftest.err | |
3106 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3107 | : |
3108 | else | |
ec6a6fbe | 3109 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
3111 | ||
3112 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3113 | CFLAGS="-g" | |
3114 | cat >conftest.$ac_ext <<_ACEOF | |
3115 | /* confdefs.h. */ | |
3116 | _ACEOF | |
3117 | cat confdefs.h >>conftest.$ac_ext | |
3118 | cat >>conftest.$ac_ext <<_ACEOF | |
3119 | /* end confdefs.h. */ | |
3120 | ||
3121 | int | |
3122 | main () | |
3123 | { | |
3124 | ||
3125 | ; | |
3126 | return 0; | |
3127 | } | |
3128 | _ACEOF | |
3129 | rm -f conftest.$ac_objext | |
3130 | if { (ac_try="$ac_compile" | |
3131 | case "(($ac_try" in | |
3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3133 | *) ac_try_echo=$ac_try;; | |
3134 | esac | |
ec6a6fbe AK |
3135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3136 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3137 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3138 | ac_status=$? |
7a197a62 AK |
3139 | grep -v '^ *+' conftest.er1 >conftest.err |
3140 | rm -f conftest.er1 | |
3141 | cat conftest.err >&5 | |
ec6a6fbe | 3142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3143 | (exit $ac_status); } && { |
3144 | test -z "$ac_c_werror_flag" || | |
3145 | test ! -s conftest.err | |
3146 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3147 | ac_cv_prog_cc_g=yes |
3148 | else | |
ec6a6fbe | 3149 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3151 | |
7a197a62 AK |
3152 | |
3153 | fi | |
3154 | ||
3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3156 | fi | |
3157 | ||
3158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3159 | fi |
7a197a62 AK |
3160 | |
3161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3162 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3163 | fi |
ec6a6fbe AK |
3164 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3165 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3166 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3167 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3168 | elif test $ac_cv_prog_cc_g = yes; then |
3169 | if test "$GCC" = yes; then | |
3170 | CFLAGS="-g -O2" | |
3171 | else | |
3172 | CFLAGS="-g" | |
3173 | fi | |
3174 | else | |
3175 | if test "$GCC" = yes; then | |
3176 | CFLAGS="-O2" | |
3177 | else | |
3178 | CFLAGS= | |
3179 | fi | |
3180 | fi | |
ec6a6fbe AK |
3181 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3182 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3183 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3184 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3185 | else |
7a197a62 | 3186 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3187 | ac_save_CC=$CC |
3188 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3189 | /* confdefs.h. */ |
3190 | _ACEOF | |
3191 | cat confdefs.h >>conftest.$ac_ext | |
3192 | cat >>conftest.$ac_ext <<_ACEOF | |
3193 | /* end confdefs.h. */ | |
3194 | #include <stdarg.h> | |
3195 | #include <stdio.h> | |
3196 | #include <sys/types.h> | |
3197 | #include <sys/stat.h> | |
3198 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3199 | struct buf { int x; }; | |
3200 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3201 | static char *e (p, i) | |
3202 | char **p; | |
3203 | int i; | |
3204 | { | |
3205 | return p[i]; | |
3206 | } | |
3207 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3208 | { | |
3209 | char *s; | |
3210 | va_list v; | |
3211 | va_start (v,p); | |
3212 | s = g (p, va_arg (v,int)); | |
3213 | va_end (v); | |
3214 | return s; | |
3215 | } | |
8a2fc586 AK |
3216 | |
3217 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3218 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3219 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3220 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3221 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3222 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3223 | that's true only with -std. */ |
8a2fc586 AK |
3224 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3225 | ||
7a197a62 AK |
3226 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3227 | inside strings and character constants. */ | |
3228 | #define FOO(x) 'x' | |
3229 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3230 | ||
ad6254c5 AK |
3231 | int test (int i, double x); |
3232 | struct s1 {int (*f) (int a);}; | |
3233 | struct s2 {int (*f) (double a);}; | |
3234 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3235 | int argc; | |
3236 | char **argv; | |
3237 | int | |
3238 | main () | |
3239 | { | |
3240 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3241 | ; | |
3242 | return 0; | |
3243 | } | |
3244 | _ACEOF | |
7a197a62 AK |
3245 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3246 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3247 | do |
3248 | CC="$ac_save_CC $ac_arg" | |
3249 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3250 | if { (ac_try="$ac_compile" |
3251 | case "(($ac_try" in | |
3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3253 | *) ac_try_echo=$ac_try;; | |
3254 | esac | |
ec6a6fbe AK |
3255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3256 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3257 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3258 | ac_status=$? |
8a2fc586 AK |
3259 | grep -v '^ *+' conftest.er1 >conftest.err |
3260 | rm -f conftest.er1 | |
3261 | cat conftest.err >&5 | |
ec6a6fbe | 3262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3263 | (exit $ac_status); } && { |
3264 | test -z "$ac_c_werror_flag" || | |
3265 | test ! -s conftest.err | |
3266 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3267 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3268 | else |
ec6a6fbe | 3269 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3270 | sed 's/^/| /' conftest.$ac_ext >&5 |
3271 | ||
7a197a62 | 3272 | |
ad6254c5 | 3273 | fi |
7a197a62 AK |
3274 | |
3275 | rm -f core conftest.err conftest.$ac_objext | |
3276 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3277 | done |
7a197a62 | 3278 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3279 | CC=$ac_save_CC |
3280 | ||
3281 | fi | |
7a197a62 AK |
3282 | # AC_CACHE_VAL |
3283 | case "x$ac_cv_prog_cc_c89" in | |
3284 | x) | |
ec6a6fbe AK |
3285 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3286 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3287 | xno) |
ec6a6fbe AK |
3288 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3289 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3290 | *) |
7a197a62 | 3291 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3292 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3293 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3294 | esac |
3295 | ||
ad6254c5 | 3296 | |
ad6254c5 AK |
3297 | ac_ext=c |
3298 | ac_cpp='$CPP $CPPFLAGS' | |
3299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3302 | |
d0191583 JM |
3303 | |
3304 | ||
3305 | ac_ext=c | |
3306 | ac_cpp='$CPP $CPPFLAGS' | |
3307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3310 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3311 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3312 | # On Suns, sometimes $CPP names a directory. |
3313 | if test -n "$CPP" && test -d "$CPP"; then | |
3314 | CPP= | |
3315 | fi | |
3316 | if test -z "$CPP"; then | |
3317 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3318 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3319 | else |
d0191583 JM |
3320 | # Double quotes because CPP needs to be expanded |
3321 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3322 | do | |
3323 | ac_preproc_ok=false | |
3324 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3325 | do |
d0191583 JM |
3326 | # Use a header file that comes with gcc, so configuring glibc |
3327 | # with a fresh cross-compiler works. | |
3328 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3329 | # <limits.h> exists even on freestanding compilers. | |
3330 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3331 | # not just through cpp. "Syntax error" is here to catch this case. | |
3332 | cat >conftest.$ac_ext <<_ACEOF | |
3333 | /* confdefs.h. */ | |
3334 | _ACEOF | |
3335 | cat confdefs.h >>conftest.$ac_ext | |
3336 | cat >>conftest.$ac_ext <<_ACEOF | |
3337 | /* end confdefs.h. */ | |
3338 | #ifdef __STDC__ | |
3339 | # include <limits.h> | |
3340 | #else | |
3341 | # include <assert.h> | |
3342 | #endif | |
3343 | Syntax error | |
3344 | _ACEOF | |
3345 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3346 | case "(($ac_try" in | |
3347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3348 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3349 | esac |
ec6a6fbe AK |
3350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3351 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3352 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3353 | ac_status=$? | |
3354 | grep -v '^ *+' conftest.er1 >conftest.err | |
3355 | rm -f conftest.er1 | |
3356 | cat conftest.err >&5 | |
ec6a6fbe | 3357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3358 | (exit $ac_status); } >/dev/null && { |
3359 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3360 | test ! -s conftest.err | |
3361 | }; then | |
3362 | : | |
3363 | else | |
ec6a6fbe | 3364 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3365 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3366 | |
d0191583 JM |
3367 | # Broken: fails on valid input. |
3368 | continue | |
795ca3e5 | 3369 | fi |
795ca3e5 | 3370 | |
d0191583 | 3371 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3372 | |
d0191583 JM |
3373 | # OK, works on sane cases. Now check whether nonexistent headers |
3374 | # can be detected and how. | |
3375 | cat >conftest.$ac_ext <<_ACEOF | |
3376 | /* confdefs.h. */ | |
3377 | _ACEOF | |
3378 | cat confdefs.h >>conftest.$ac_ext | |
3379 | cat >>conftest.$ac_ext <<_ACEOF | |
3380 | /* end confdefs.h. */ | |
3381 | #include <ac_nonexistent.h> | |
3382 | _ACEOF | |
3383 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3384 | case "(($ac_try" in | |
3385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3386 | *) ac_try_echo=$ac_try;; | |
3387 | esac | |
ec6a6fbe AK |
3388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3389 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3391 | ac_status=$? | |
3392 | grep -v '^ *+' conftest.er1 >conftest.err | |
3393 | rm -f conftest.er1 | |
3394 | cat conftest.err >&5 | |
ec6a6fbe | 3395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3396 | (exit $ac_status); } >/dev/null && { |
3397 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3398 | test ! -s conftest.err | |
3399 | }; then | |
3400 | # Broken: success on invalid input. | |
3401 | continue | |
3402 | else | |
ec6a6fbe | 3403 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3404 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3405 | |
d0191583 JM |
3406 | # Passes both tests. |
3407 | ac_preproc_ok=: | |
3408 | break | |
3409 | fi | |
795ca3e5 | 3410 | |
d0191583 JM |
3411 | rm -f conftest.err conftest.$ac_ext |
3412 | ||
3413 | done | |
3414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3415 | rm -f conftest.err conftest.$ac_ext | |
3416 | if $ac_preproc_ok; then | |
3417 | break | |
795ca3e5 AK |
3418 | fi |
3419 | ||
d0191583 JM |
3420 | done |
3421 | ac_cv_prog_CPP=$CPP | |
3422 | ||
3423 | fi | |
3424 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3425 | else |
d0191583 JM |
3426 | ac_cv_prog_CPP=$CPP |
3427 | fi | |
ec6a6fbe AK |
3428 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3429 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3430 | ac_preproc_ok=false |
3431 | for ac_c_preproc_warn_flag in '' yes | |
3432 | do | |
3433 | # Use a header file that comes with gcc, so configuring glibc | |
3434 | # with a fresh cross-compiler works. | |
3435 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3436 | # <limits.h> exists even on freestanding compilers. | |
3437 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3438 | # not just through cpp. "Syntax error" is here to catch this case. | |
3439 | cat >conftest.$ac_ext <<_ACEOF | |
3440 | /* confdefs.h. */ | |
ad6254c5 | 3441 | _ACEOF |
d0191583 JM |
3442 | cat confdefs.h >>conftest.$ac_ext |
3443 | cat >>conftest.$ac_ext <<_ACEOF | |
3444 | /* end confdefs.h. */ | |
3445 | #ifdef __STDC__ | |
3446 | # include <limits.h> | |
3447 | #else | |
3448 | # include <assert.h> | |
3449 | #endif | |
3450 | Syntax error | |
3451 | _ACEOF | |
3452 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3453 | case "(($ac_try" in | |
3454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3455 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3456 | esac |
ec6a6fbe AK |
3457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3458 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3459 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3460 | ac_status=$? | |
3461 | grep -v '^ *+' conftest.er1 >conftest.err | |
3462 | rm -f conftest.er1 | |
3463 | cat conftest.err >&5 | |
ec6a6fbe | 3464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3465 | (exit $ac_status); } >/dev/null && { |
3466 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3467 | test ! -s conftest.err | |
3468 | }; then | |
3469 | : | |
795ca3e5 | 3470 | else |
ec6a6fbe | 3471 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3472 | sed 's/^/| /' conftest.$ac_ext >&5 |
3473 | ||
3474 | # Broken: fails on valid input. | |
3475 | continue | |
795ca3e5 AK |
3476 | fi |
3477 | ||
d0191583 JM |
3478 | rm -f conftest.err conftest.$ac_ext |
3479 | ||
3480 | # OK, works on sane cases. Now check whether nonexistent headers | |
3481 | # can be detected and how. | |
3482 | cat >conftest.$ac_ext <<_ACEOF | |
3483 | /* confdefs.h. */ | |
3484 | _ACEOF | |
3485 | cat confdefs.h >>conftest.$ac_ext | |
3486 | cat >>conftest.$ac_ext <<_ACEOF | |
3487 | /* end confdefs.h. */ | |
3488 | #include <ac_nonexistent.h> | |
3489 | _ACEOF | |
3490 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3491 | case "(($ac_try" in | |
3492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3493 | *) ac_try_echo=$ac_try;; | |
3494 | esac | |
ec6a6fbe AK |
3495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3496 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3497 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3498 | ac_status=$? | |
3499 | grep -v '^ *+' conftest.er1 >conftest.err | |
3500 | rm -f conftest.er1 | |
3501 | cat conftest.err >&5 | |
ec6a6fbe | 3502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3503 | (exit $ac_status); } >/dev/null && { |
3504 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3505 | test ! -s conftest.err | |
3506 | }; then | |
3507 | # Broken: success on invalid input. | |
3508 | continue | |
795ca3e5 | 3509 | else |
ec6a6fbe | 3510 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3511 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3512 | |
d0191583 JM |
3513 | # Passes both tests. |
3514 | ac_preproc_ok=: | |
3515 | break | |
795ca3e5 | 3516 | fi |
d0191583 JM |
3517 | |
3518 | rm -f conftest.err conftest.$ac_ext | |
3519 | ||
3520 | done | |
3521 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3522 | rm -f conftest.err conftest.$ac_ext | |
3523 | if $ac_preproc_ok; then | |
3524 | : | |
8106cdd5 | 3525 | else |
ec6a6fbe AK |
3526 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3528 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3529 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3530 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3531 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3532 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3533 | fi |
3534 | ||
d0191583 JM |
3535 | ac_ext=c |
3536 | ac_cpp='$CPP $CPPFLAGS' | |
3537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3540 | ||
7a197a62 | 3541 | |
ec6a6fbe AK |
3542 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3543 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3544 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3545 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3546 | else |
ec6a6fbe | 3547 | if test -z "$GREP"; then |
d0191583 | 3548 | ac_path_GREP_found=false |
ec6a6fbe AK |
3549 | # Loop through the user's path and test for each of PROGNAME-LIST |
3550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3551 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3552 | do |
3553 | IFS=$as_save_IFS | |
3554 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3555 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3556 | for ac_exec_ext in '' $ac_executable_extensions; do |
3557 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3558 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3559 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3560 | # Check for GNU $ac_path_GREP |
3561 | case `"$ac_path_GREP" --version 2>&1` in | |
3562 | *GNU*) | |
3563 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3564 | *) | |
3565 | ac_count=0 | |
ec6a6fbe | 3566 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3567 | while : |
3568 | do | |
3569 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3570 | mv "conftest.tmp" "conftest.in" | |
3571 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3572 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3573 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3574 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3575 | ac_count=`expr $ac_count + 1` | |
3576 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3577 | # Best one so far, save it but keep looking for a better one | |
3578 | ac_cv_path_GREP="$ac_path_GREP" | |
3579 | ac_path_GREP_max=$ac_count | |
3580 | fi | |
3581 | # 10*(2^10) chars as input seems more than enough | |
3582 | test $ac_count -gt 10 && break | |
3583 | done | |
3584 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3585 | esac | |
3586 | ||
ec6a6fbe AK |
3587 | $ac_path_GREP_found && break 3 |
3588 | done | |
d0191583 | 3589 | done |
ad6254c5 | 3590 | done |
7a197a62 | 3591 | IFS=$as_save_IFS |
ec6a6fbe AK |
3592 | if test -z "$ac_cv_path_GREP"; then |
3593 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3594 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3595 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3596 | fi |
80992638 | 3597 | else |
d0191583 | 3598 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3599 | fi |
8106cdd5 | 3600 | |
80992638 | 3601 | fi |
ec6a6fbe AK |
3602 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3603 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3604 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3605 | |
d0191583 | 3606 | |
ec6a6fbe AK |
3607 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3608 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3609 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3610 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3611 | else |
d0191583 JM |
3612 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3613 | then ac_cv_path_EGREP="$GREP -E" | |
3614 | else | |
ec6a6fbe | 3615 | if test -z "$EGREP"; then |
d0191583 | 3616 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3617 | # Loop through the user's path and test for each of PROGNAME-LIST |
3618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3619 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3620 | do |
3621 | IFS=$as_save_IFS | |
3622 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3623 | for ac_prog in egrep; do |
ec6a6fbe AK |
3624 | for ac_exec_ext in '' $ac_executable_extensions; do |
3625 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3626 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3627 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3628 | # Check for GNU $ac_path_EGREP |
3629 | case `"$ac_path_EGREP" --version 2>&1` in | |
3630 | *GNU*) | |
3631 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3632 | *) | |
3633 | ac_count=0 | |
ec6a6fbe | 3634 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3635 | while : |
3636 | do | |
3637 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3638 | mv "conftest.tmp" "conftest.in" | |
3639 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3640 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3641 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3642 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3643 | ac_count=`expr $ac_count + 1` | |
3644 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3645 | # Best one so far, save it but keep looking for a better one | |
3646 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3647 | ac_path_EGREP_max=$ac_count | |
3648 | fi | |
3649 | # 10*(2^10) chars as input seems more than enough | |
3650 | test $ac_count -gt 10 && break | |
3651 | done | |
3652 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3653 | esac |
8a2fc586 | 3654 | |
ec6a6fbe AK |
3655 | $ac_path_EGREP_found && break 3 |
3656 | done | |
d0191583 | 3657 | done |
8a2fc586 | 3658 | done |
7a197a62 | 3659 | IFS=$as_save_IFS |
ec6a6fbe AK |
3660 | if test -z "$ac_cv_path_EGREP"; then |
3661 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3662 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3663 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3664 | fi |
d0191583 JM |
3665 | else |
3666 | ac_cv_path_EGREP=$EGREP | |
3667 | fi | |
ad6254c5 | 3668 | |
d0191583 JM |
3669 | fi |
3670 | fi | |
ec6a6fbe AK |
3671 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3672 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3673 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3674 | |
3675 | ||
d0191583 | 3676 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3677 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3678 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3679 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3680 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3681 | else |
d0191583 | 3682 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3683 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3684 | /* confdefs.h. */ |
3685 | _ACEOF | |
3686 | cat confdefs.h >>conftest.$ac_ext | |
3687 | cat >>conftest.$ac_ext <<_ACEOF | |
3688 | /* end confdefs.h. */ | |
d0191583 JM |
3689 | #include <sgtty.h> |
3690 | Autoconf TIOCGETP | |
ad6254c5 | 3691 | _ACEOF |
d0191583 JM |
3692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3693 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3694 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3695 | else |
d0191583 | 3696 | ac_cv_prog_gcc_traditional=no |
80992638 | 3697 | fi |
d0191583 | 3698 | rm -f conftest* |
ad6254c5 | 3699 | |
8106cdd5 | 3700 | |
d0191583 JM |
3701 | if test $ac_cv_prog_gcc_traditional = no; then |
3702 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3703 | /* confdefs.h. */ |
3704 | _ACEOF | |
3705 | cat confdefs.h >>conftest.$ac_ext | |
3706 | cat >>conftest.$ac_ext <<_ACEOF | |
3707 | /* end confdefs.h. */ | |
d0191583 JM |
3708 | #include <termio.h> |
3709 | Autoconf TCGETA | |
ad6254c5 | 3710 | _ACEOF |
d0191583 JM |
3711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3712 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3713 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3714 | fi |
d0191583 | 3715 | rm -f conftest* |
795ca3e5 | 3716 | |
d0191583 | 3717 | fi |
795ca3e5 | 3718 | fi |
ec6a6fbe AK |
3719 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3720 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3721 | if test $ac_cv_prog_gcc_traditional = yes; then |
3722 | CC="$CC -traditional" | |
3723 | fi | |
795ca3e5 AK |
3724 | fi |
3725 | ||
d0191583 JM |
3726 | # Find a good install program. We prefer a C program (faster), |
3727 | # so one script is as good as another. But avoid the broken or | |
3728 | # incompatible versions: | |
3729 | # SysV /etc/install, /usr/sbin/install | |
3730 | # SunOS /usr/etc/install | |
3731 | # IRIX /sbin/install | |
3732 | # AIX /bin/install | |
3733 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3734 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3735 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3736 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3737 | # OS/2's system install, which has a completely different semantic | |
3738 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3739 | # Reject install programs that cannot install multiple files. |
3740 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3741 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3742 | if test -z "$INSTALL"; then |
3743 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3744 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3745 | else |
d0191583 JM |
3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3747 | for as_dir in $PATH | |
3748 | do | |
3749 | IFS=$as_save_IFS | |
3750 | test -z "$as_dir" && as_dir=. | |
3751 | # Account for people who put trailing slashes in PATH elements. | |
3752 | case $as_dir/ in | |
3753 | ./ | .// | /cC/* | \ | |
3754 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3755 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3756 | /usr/ucb/* ) ;; | |
3757 | *) | |
3758 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3759 | # Don't use installbsd from OSF since it installs stuff as root | |
3760 | # by default. | |
3761 | for ac_prog in ginstall scoinst install; do | |
3762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3763 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3764 | if test $ac_prog = install && | |
3765 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3766 | # AIX install. It has an incompatible calling convention. | |
3767 | : | |
3768 | elif test $ac_prog = install && | |
3769 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3770 | # program-specific install script used by HP pwplus--don't use. | |
3771 | : | |
3772 | else | |
ec6a6fbe AK |
3773 | rm -rf conftest.one conftest.two conftest.dir |
3774 | echo one > conftest.one | |
3775 | echo two > conftest.two | |
3776 | mkdir conftest.dir | |
3777 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3778 | test -s conftest.one && test -s conftest.two && | |
3779 | test -s conftest.dir/conftest.one && | |
3780 | test -s conftest.dir/conftest.two | |
3781 | then | |
3782 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3783 | break 3 | |
3784 | fi | |
d0191583 JM |
3785 | fi |
3786 | fi | |
3787 | done | |
3788 | done | |
3789 | ;; | |
3790 | esac | |
ec6a6fbe | 3791 | |
d0191583 JM |
3792 | done |
3793 | IFS=$as_save_IFS | |
80992638 | 3794 | |
ec6a6fbe | 3795 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3796 | |
3797 | fi | |
3798 | if test "${ac_cv_path_install+set}" = set; then | |
3799 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3800 | else |
d0191583 JM |
3801 | # As a last resort, use the slow shell script. Don't cache a |
3802 | # value for INSTALL within a source directory, because that will | |
3803 | # break other packages using the cache if that directory is | |
3804 | # removed, or if the value is a relative name. | |
3805 | INSTALL=$ac_install_sh | |
7a197a62 | 3806 | fi |
d0191583 | 3807 | fi |
ec6a6fbe AK |
3808 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3809 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3810 | |
d0191583 JM |
3811 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3812 | # It thinks the first close brace ends the variable substitution. | |
3813 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3814 | |
d0191583 | 3815 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3816 | |
d0191583 JM |
3817 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3818 | ||
ec6a6fbe AK |
3819 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3820 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3821 | LN_S=$as_ln_s |
3822 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3823 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3824 | $as_echo "yes" >&6; } | |
d0191583 | 3825 | else |
ec6a6fbe AK |
3826 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3827 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3828 | fi |
d0191583 | 3829 | |
ec6a6fbe AK |
3830 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3831 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3832 | set x ${MAKE-make} | |
3833 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3834 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3835 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3836 | else |
d0191583 JM |
3837 | cat >conftest.make <<\_ACEOF |
3838 | SHELL = /bin/sh | |
3839 | all: | |
3840 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3841 | _ACEOF | |
3842 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3843 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3844 | *@@@%%%=?*=@@@%%%*) | |
3845 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3846 | *) | |
3847 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3848 | esac | |
3849 | rm -f conftest.make | |
ad6254c5 | 3850 | fi |
d0191583 | 3851 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3852 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3853 | $as_echo "yes" >&6; } | |
d0191583 JM |
3854 | SET_MAKE= |
3855 | else | |
ec6a6fbe AK |
3856 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3857 | $as_echo "no" >&6; } | |
d0191583 | 3858 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3859 | fi |
8106cdd5 | 3860 | |
ec6a6fbe AK |
3861 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3862 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3863 | if test -z "$MKDIR_P"; then |
3864 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3865 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3866 | else |
3867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3868 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3869 | do | |
3870 | IFS=$as_save_IFS | |
3871 | test -z "$as_dir" && as_dir=. | |
3872 | for ac_prog in mkdir gmkdir; do | |
3873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3874 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3875 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3876 | 'mkdir (GNU coreutils) '* | \ | |
3877 | 'mkdir (coreutils) '* | \ | |
3878 | 'mkdir (fileutils) '4.1*) | |
3879 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3880 | break 3;; | |
3881 | esac | |
3882 | done | |
3883 | done | |
3884 | done | |
3885 | IFS=$as_save_IFS | |
3886 | ||
3887 | fi | |
3888 | ||
3889 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3890 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3891 | else | |
3892 | # As a last resort, use the slow shell script. Don't cache a | |
3893 | # value for MKDIR_P within a source directory, because that will | |
3894 | # break other packages using the cache if that directory is | |
3895 | # removed, or if the value is a relative name. | |
3896 | test -d ./--version && rmdir ./--version | |
3897 | MKDIR_P="$ac_install_sh -d" | |
3898 | fi | |
3899 | fi | |
ec6a6fbe AK |
3900 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3901 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3902 | |
d0191583 JM |
3903 | if test -n "$ac_tool_prefix"; then |
3904 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3905 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3906 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3907 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3908 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3909 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3910 | else |
3911 | if test -n "$RANLIB"; then | |
3912 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3913 | else | |
3914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3915 | for as_dir in $PATH | |
3916 | do | |
3917 | IFS=$as_save_IFS | |
3918 | test -z "$as_dir" && as_dir=. | |
3919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3921 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3922 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3923 | break 2 |
3924 | fi | |
3925 | done | |
3926 | done | |
3927 | IFS=$as_save_IFS | |
8106cdd5 | 3928 | |
795ca3e5 | 3929 | fi |
d0191583 JM |
3930 | fi |
3931 | RANLIB=$ac_cv_prog_RANLIB | |
3932 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3933 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3934 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3935 | else |
ec6a6fbe AK |
3936 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3937 | $as_echo "no" >&6; } | |
d0191583 JM |
3938 | fi |
3939 | ||
8106cdd5 | 3940 | |
ad6254c5 | 3941 | fi |
d0191583 JM |
3942 | if test -z "$ac_cv_prog_RANLIB"; then |
3943 | ac_ct_RANLIB=$RANLIB | |
3944 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3945 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3946 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3947 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3948 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3949 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3950 | else |
d0191583 JM |
3951 | if test -n "$ac_ct_RANLIB"; then |
3952 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3953 | else | |
3954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3955 | for as_dir in $PATH | |
8106cdd5 | 3956 | do |
d0191583 JM |
3957 | IFS=$as_save_IFS |
3958 | test -z "$as_dir" && as_dir=. | |
3959 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3961 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3962 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3963 | break 2 |
3964 | fi | |
3965 | done | |
3966 | done | |
3967 | IFS=$as_save_IFS | |
3968 | ||
3969 | fi | |
3970 | fi | |
3971 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3972 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3973 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3974 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3975 | else |
ec6a6fbe AK |
3976 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3977 | $as_echo "no" >&6; } | |
d0191583 | 3978 | fi |
ad6254c5 | 3979 | |
d0191583 JM |
3980 | if test "x$ac_ct_RANLIB" = x; then |
3981 | RANLIB=":" | |
3982 | else | |
3983 | case $cross_compiling:$ac_tool_warned in | |
3984 | yes:) | |
ec6a6fbe AK |
3985 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3986 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3987 | ac_tool_warned=yes ;; |
3988 | esac | |
3989 | RANLIB=$ac_ct_RANLIB | |
3990 | fi | |
3991 | else | |
3992 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3993 | fi |
7a197a62 | 3994 | |
d0191583 JM |
3995 | # Extract the first word of "cflow", so it can be a program name with args. |
3996 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3997 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3998 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3999 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4000 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4001 | else |
4002 | case $CFLOW_CMD in | |
4003 | [\\/]* | ?:[\\/]*) | |
4004 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4005 | ;; | |
4006 | *) | |
4007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4008 | for as_dir in $PATH | |
4009 | do | |
4010 | IFS=$as_save_IFS | |
4011 | test -z "$as_dir" && as_dir=. | |
4012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4014 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4015 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4016 | break 2 |
4017 | fi | |
4018 | done | |
4019 | done | |
4020 | IFS=$as_save_IFS | |
ad6254c5 | 4021 | |
d0191583 | 4022 | ;; |
7a197a62 | 4023 | esac |
d0191583 JM |
4024 | fi |
4025 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4026 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4027 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4028 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4029 | else |
ec6a6fbe AK |
4030 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4031 | $as_echo "no" >&6; } | |
795ca3e5 | 4032 | fi |
7a197a62 | 4033 | |
ad6254c5 | 4034 | |
d0191583 JM |
4035 | # Extract the first word of "cscope", so it can be a program name with args. |
4036 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4037 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4038 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4039 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4040 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4041 | else |
4042 | case $CSCOPE_CMD in | |
4043 | [\\/]* | ?:[\\/]*) | |
4044 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4045 | ;; | |
4046 | *) | |
4047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4048 | for as_dir in $PATH | |
4049 | do | |
4050 | IFS=$as_save_IFS | |
4051 | test -z "$as_dir" && as_dir=. | |
4052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4054 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4055 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4056 | break 2 |
4057 | fi | |
795ca3e5 | 4058 | done |
d0191583 JM |
4059 | done |
4060 | IFS=$as_save_IFS | |
795ca3e5 | 4061 | |
d0191583 JM |
4062 | ;; |
4063 | esac | |
ad6254c5 | 4064 | fi |
d0191583 JM |
4065 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4066 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4067 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4068 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4069 | else |
ec6a6fbe AK |
4070 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4071 | $as_echo "no" >&6; } | |
795ca3e5 | 4072 | fi |
ad6254c5 | 4073 | |
7a197a62 | 4074 | |
ad6254c5 | 4075 | |
d0191583 JM |
4076 | ################################################################################ |
4077 | ||
4078 | ||
4079 | ||
4080 | ||
4081 | ||
4082 | ac_header_dirent=no | |
4083 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4084 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4085 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4086 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4087 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4088 | $as_echo_n "(cached) " >&6 |
d0191583 | 4089 | else |
ad6254c5 | 4090 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4091 | /* confdefs.h. */ |
4092 | _ACEOF | |
4093 | cat confdefs.h >>conftest.$ac_ext | |
4094 | cat >>conftest.$ac_ext <<_ACEOF | |
4095 | /* end confdefs.h. */ | |
d0191583 JM |
4096 | #include <sys/types.h> |
4097 | #include <$ac_hdr> | |
4098 | ||
4099 | int | |
4100 | main () | |
4101 | { | |
4102 | if ((DIR *) 0) | |
4103 | return 0; | |
4104 | ; | |
4105 | return 0; | |
4106 | } | |
ad6254c5 | 4107 | _ACEOF |
d0191583 JM |
4108 | rm -f conftest.$ac_objext |
4109 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4110 | case "(($ac_try" in |
4111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4112 | *) ac_try_echo=$ac_try;; | |
4113 | esac | |
ec6a6fbe AK |
4114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4115 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4116 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4117 | ac_status=$? |
4118 | grep -v '^ *+' conftest.er1 >conftest.err | |
4119 | rm -f conftest.er1 | |
4120 | cat conftest.err >&5 | |
ec6a6fbe | 4121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4122 | (exit $ac_status); } && { |
4123 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4124 | test ! -s conftest.err |
d0191583 JM |
4125 | } && test -s conftest.$ac_objext; then |
4126 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4127 | else |
ec6a6fbe | 4128 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4129 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4130 | |
d0191583 | 4131 | eval "$as_ac_Header=no" |
795ca3e5 | 4132 | fi |
7a197a62 | 4133 | |
d0191583 | 4134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4135 | fi |
ec6a6fbe AK |
4136 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4137 | $as_echo "$as_val"'` | |
4138 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4139 | $as_echo "$ac_res" >&6; } | |
4140 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4141 | $as_echo "$as_val"'` | |
4142 | if test "x$as_val" = x""yes; then | |
d0191583 | 4143 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4144 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4145 | _ACEOF |
795ca3e5 | 4146 | |
d0191583 JM |
4147 | ac_header_dirent=$ac_hdr; break |
4148 | fi | |
ad6254c5 | 4149 | |
d0191583 JM |
4150 | done |
4151 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4152 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4153 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4154 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4155 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4156 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4157 | else |
d0191583 JM |
4158 | ac_func_search_save_LIBS=$LIBS |
4159 | cat >conftest.$ac_ext <<_ACEOF | |
4160 | /* confdefs.h. */ | |
4161 | _ACEOF | |
4162 | cat confdefs.h >>conftest.$ac_ext | |
4163 | cat >>conftest.$ac_ext <<_ACEOF | |
4164 | /* end confdefs.h. */ | |
ad6254c5 | 4165 | |
d0191583 JM |
4166 | /* Override any GCC internal prototype to avoid an error. |
4167 | Use char because int might match the return type of a GCC | |
4168 | builtin and then its argument prototype would still apply. */ | |
4169 | #ifdef __cplusplus | |
4170 | extern "C" | |
4171 | #endif | |
4172 | char opendir (); | |
4173 | int | |
4174 | main () | |
4175 | { | |
4176 | return opendir (); | |
4177 | ; | |
4178 | return 0; | |
4179 | } | |
4180 | _ACEOF | |
4181 | for ac_lib in '' dir; do | |
4182 | if test -z "$ac_lib"; then | |
4183 | ac_res="none required" | |
4184 | else | |
4185 | ac_res=-l$ac_lib | |
4186 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4187 | fi | |
4188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4189 | if { (ac_try="$ac_link" | |
4190 | case "(($ac_try" in | |
4191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4192 | *) ac_try_echo=$ac_try;; | |
4193 | esac | |
ec6a6fbe AK |
4194 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4195 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4196 | (eval "$ac_link") 2>conftest.er1 |
4197 | ac_status=$? | |
4198 | grep -v '^ *+' conftest.er1 >conftest.err | |
4199 | rm -f conftest.er1 | |
4200 | cat conftest.err >&5 | |
ec6a6fbe | 4201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4202 | (exit $ac_status); } && { |
4203 | test -z "$ac_c_werror_flag" || | |
4204 | test ! -s conftest.err | |
ec6a6fbe AK |
4205 | } && test -s conftest$ac_exeext && { |
4206 | test "$cross_compiling" = yes || | |
4207 | $as_test_x conftest$ac_exeext | |
4208 | }; then | |
d0191583 JM |
4209 | ac_cv_search_opendir=$ac_res |
4210 | else | |
ec6a6fbe | 4211 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4212 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4213 | |
ad6254c5 | 4214 | |
795ca3e5 | 4215 | fi |
ad6254c5 | 4216 | |
ec6a6fbe | 4217 | rm -rf conftest.dSYM |
d0191583 JM |
4218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4219 | conftest$ac_exeext | |
4220 | if test "${ac_cv_search_opendir+set}" = set; then | |
4221 | break | |
7a197a62 | 4222 | fi |
d0191583 JM |
4223 | done |
4224 | if test "${ac_cv_search_opendir+set}" = set; then | |
4225 | : | |
7a197a62 | 4226 | else |
d0191583 | 4227 | ac_cv_search_opendir=no |
7a197a62 | 4228 | fi |
d0191583 JM |
4229 | rm conftest.$ac_ext |
4230 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4231 | fi |
ec6a6fbe AK |
4232 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4233 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4234 | ac_res=$ac_cv_search_opendir |
4235 | if test "$ac_res" != no; then | |
4236 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4237 | |
d0191583 | 4238 | fi |
7a197a62 | 4239 | |
7a197a62 | 4240 | else |
ec6a6fbe AK |
4241 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4242 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4243 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4244 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4245 | else |
d0191583 JM |
4246 | ac_func_search_save_LIBS=$LIBS |
4247 | cat >conftest.$ac_ext <<_ACEOF | |
4248 | /* confdefs.h. */ | |
4249 | _ACEOF | |
4250 | cat confdefs.h >>conftest.$ac_ext | |
4251 | cat >>conftest.$ac_ext <<_ACEOF | |
4252 | /* end confdefs.h. */ | |
7a197a62 | 4253 | |
d0191583 JM |
4254 | /* Override any GCC internal prototype to avoid an error. |
4255 | Use char because int might match the return type of a GCC | |
4256 | builtin and then its argument prototype would still apply. */ | |
4257 | #ifdef __cplusplus | |
4258 | extern "C" | |
4259 | #endif | |
4260 | char opendir (); | |
4261 | int | |
4262 | main () | |
4263 | { | |
4264 | return opendir (); | |
4265 | ; | |
4266 | return 0; | |
4267 | } | |
4268 | _ACEOF | |
4269 | for ac_lib in '' x; do | |
4270 | if test -z "$ac_lib"; then | |
4271 | ac_res="none required" | |
4272 | else | |
4273 | ac_res=-l$ac_lib | |
4274 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4275 | fi | |
4276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4277 | if { (ac_try="$ac_link" | |
4278 | case "(($ac_try" in | |
4279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4280 | *) ac_try_echo=$ac_try;; | |
4281 | esac | |
ec6a6fbe AK |
4282 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4283 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4284 | (eval "$ac_link") 2>conftest.er1 |
4285 | ac_status=$? | |
4286 | grep -v '^ *+' conftest.er1 >conftest.err | |
4287 | rm -f conftest.er1 | |
4288 | cat conftest.err >&5 | |
ec6a6fbe | 4289 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4290 | (exit $ac_status); } && { |
4291 | test -z "$ac_c_werror_flag" || | |
4292 | test ! -s conftest.err | |
ec6a6fbe AK |
4293 | } && test -s conftest$ac_exeext && { |
4294 | test "$cross_compiling" = yes || | |
4295 | $as_test_x conftest$ac_exeext | |
4296 | }; then | |
d0191583 JM |
4297 | ac_cv_search_opendir=$ac_res |
4298 | else | |
ec6a6fbe | 4299 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4300 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4301 | |
4302 | ||
4303 | fi | |
4304 | ||
ec6a6fbe | 4305 | rm -rf conftest.dSYM |
d0191583 JM |
4306 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4307 | conftest$ac_exeext | |
4308 | if test "${ac_cv_search_opendir+set}" = set; then | |
4309 | break | |
7a197a62 | 4310 | fi |
d0191583 JM |
4311 | done |
4312 | if test "${ac_cv_search_opendir+set}" = set; then | |
4313 | : | |
7a197a62 | 4314 | else |
d0191583 | 4315 | ac_cv_search_opendir=no |
7a197a62 | 4316 | fi |
d0191583 JM |
4317 | rm conftest.$ac_ext |
4318 | LIBS=$ac_func_search_save_LIBS | |
4319 | fi | |
ec6a6fbe AK |
4320 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4321 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4322 | ac_res=$ac_cv_search_opendir |
4323 | if test "$ac_res" != no; then | |
4324 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4325 | |
7a197a62 | 4326 | fi |
7a197a62 | 4327 | |
d0191583 | 4328 | fi |
7a197a62 | 4329 | |
ec6a6fbe AK |
4330 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4331 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4332 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4333 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4334 | else |
4335 | cat >conftest.$ac_ext <<_ACEOF | |
4336 | /* confdefs.h. */ | |
4337 | _ACEOF | |
4338 | cat confdefs.h >>conftest.$ac_ext | |
4339 | cat >>conftest.$ac_ext <<_ACEOF | |
4340 | /* end confdefs.h. */ | |
4341 | #include <stdlib.h> | |
4342 | #include <stdarg.h> | |
4343 | #include <string.h> | |
4344 | #include <float.h> | |
4345 | ||
4346 | int | |
4347 | main () | |
4348 | { | |
4349 | ||
4350 | ; | |
4351 | return 0; | |
4352 | } | |
4353 | _ACEOF | |
4354 | rm -f conftest.$ac_objext | |
4355 | if { (ac_try="$ac_compile" | |
4356 | case "(($ac_try" in | |
4357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4358 | *) ac_try_echo=$ac_try;; | |
4359 | esac | |
ec6a6fbe AK |
4360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4361 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4362 | (eval "$ac_compile") 2>conftest.er1 |
4363 | ac_status=$? | |
4364 | grep -v '^ *+' conftest.er1 >conftest.err | |
4365 | rm -f conftest.er1 | |
4366 | cat conftest.err >&5 | |
ec6a6fbe | 4367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4368 | (exit $ac_status); } && { |
4369 | test -z "$ac_c_werror_flag" || | |
4370 | test ! -s conftest.err | |
4371 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4372 | ac_cv_header_stdc=yes |
4373 | else | |
ec6a6fbe | 4374 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4375 | sed 's/^/| /' conftest.$ac_ext >&5 |
4376 | ||
4377 | ac_cv_header_stdc=no | |
4378 | fi | |
4379 | ||
4380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4381 | ||
4382 | if test $ac_cv_header_stdc = yes; then | |
4383 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4384 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4385 | /* confdefs.h. */ |
4386 | _ACEOF | |
4387 | cat confdefs.h >>conftest.$ac_ext | |
4388 | cat >>conftest.$ac_ext <<_ACEOF | |
4389 | /* end confdefs.h. */ | |
4390 | #include <string.h> | |
8106cdd5 | 4391 | |
ad6254c5 AK |
4392 | _ACEOF |
4393 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4394 | $EGREP "memchr" >/dev/null 2>&1; then | |
4395 | : | |
4396 | else | |
4397 | ac_cv_header_stdc=no | |
80992638 | 4398 | fi |
ad6254c5 | 4399 | rm -f conftest* |
795ca3e5 AK |
4400 | |
4401 | fi | |
4402 | ||
ad6254c5 AK |
4403 | if test $ac_cv_header_stdc = yes; then |
4404 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4405 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4406 | /* confdefs.h. */ |
4407 | _ACEOF | |
4408 | cat confdefs.h >>conftest.$ac_ext | |
4409 | cat >>conftest.$ac_ext <<_ACEOF | |
4410 | /* end confdefs.h. */ | |
80992638 | 4411 | #include <stdlib.h> |
ad6254c5 AK |
4412 | |
4413 | _ACEOF | |
80992638 | 4414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4415 | $EGREP "free" >/dev/null 2>&1; then |
4416 | : | |
795ca3e5 | 4417 | else |
ad6254c5 | 4418 | ac_cv_header_stdc=no |
795ca3e5 | 4419 | fi |
80992638 | 4420 | rm -f conftest* |
8106cdd5 | 4421 | |
795ca3e5 AK |
4422 | fi |
4423 | ||
ad6254c5 AK |
4424 | if test $ac_cv_header_stdc = yes; then |
4425 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4426 | if test "$cross_compiling" = yes; then | |
4427 | : | |
795ca3e5 | 4428 | else |
ad6254c5 | 4429 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4430 | /* confdefs.h. */ |
4431 | _ACEOF | |
4432 | cat confdefs.h >>conftest.$ac_ext | |
4433 | cat >>conftest.$ac_ext <<_ACEOF | |
4434 | /* end confdefs.h. */ | |
4435 | #include <ctype.h> | |
7a197a62 | 4436 | #include <stdlib.h> |
ad6254c5 AK |
4437 | #if ((' ' & 0x0FF) == 0x020) |
4438 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4439 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4440 | #else | |
4441 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4442 | (('a' <= (c) && (c) <= 'i') \ |
4443 | || ('j' <= (c) && (c) <= 'r') \ | |
4444 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4445 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4446 | #endif |
ad6254c5 AK |
4447 | |
4448 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4449 | int | |
4450 | main () | |
4451 | { | |
4452 | int i; | |
4453 | for (i = 0; i < 256; i++) | |
4454 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4455 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4456 | return 2; |
4457 | return 0; | |
ad6254c5 AK |
4458 | } |
4459 | _ACEOF | |
4460 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4461 | if { (ac_try="$ac_link" |
4462 | case "(($ac_try" in | |
4463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4464 | *) ac_try_echo=$ac_try;; | |
4465 | esac | |
ec6a6fbe AK |
4466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4467 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4468 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4469 | ac_status=$? |
ec6a6fbe | 4470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4471 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4472 | { (case "(($ac_try" in |
4473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4474 | *) ac_try_echo=$ac_try;; | |
4475 | esac | |
ec6a6fbe AK |
4476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4477 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4478 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4479 | ac_status=$? |
ec6a6fbe | 4480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4481 | (exit $ac_status); }; }; then |
4482 | : | |
795ca3e5 | 4483 | else |
ec6a6fbe AK |
4484 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4485 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4486 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4487 | |
ad6254c5 AK |
4488 | ( exit $ac_status ) |
4489 | ac_cv_header_stdc=no | |
80992638 | 4490 | fi |
ec6a6fbe | 4491 | rm -rf conftest.dSYM |
7a197a62 | 4492 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4493 | fi |
7a197a62 AK |
4494 | |
4495 | ||
ad6254c5 AK |
4496 | fi |
4497 | fi | |
ec6a6fbe AK |
4498 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4499 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4500 | if test $ac_cv_header_stdc = yes; then |
4501 | ||
4502 | cat >>confdefs.h <<\_ACEOF | |
4503 | #define STDC_HEADERS 1 | |
4504 | _ACEOF | |
795ca3e5 AK |
4505 | |
4506 | fi | |
4507 | ||
ec6a6fbe AK |
4508 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4509 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4510 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4511 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4512 | else |
ad6254c5 | 4513 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4514 | /* confdefs.h. */ |
4515 | _ACEOF | |
4516 | cat confdefs.h >>conftest.$ac_ext | |
4517 | cat >>conftest.$ac_ext <<_ACEOF | |
4518 | /* end confdefs.h. */ | |
80992638 | 4519 | #include <sys/types.h> |
ad6254c5 AK |
4520 | #include <sys/wait.h> |
4521 | #ifndef WEXITSTATUS | |
7a197a62 | 4522 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4523 | #endif |
4524 | #ifndef WIFEXITED | |
4525 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4526 | #endif | |
4527 | ||
4528 | int | |
4529 | main () | |
4530 | { | |
4531 | int s; | |
4532 | wait (&s); | |
4533 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4534 | ; | |
4535 | return 0; | |
4536 | } | |
4537 | _ACEOF | |
4538 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4539 | if { (ac_try="$ac_compile" |
4540 | case "(($ac_try" in | |
4541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4542 | *) ac_try_echo=$ac_try;; | |
4543 | esac | |
ec6a6fbe AK |
4544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4545 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4546 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4547 | ac_status=$? |
8a2fc586 AK |
4548 | grep -v '^ *+' conftest.er1 >conftest.err |
4549 | rm -f conftest.er1 | |
4550 | cat conftest.err >&5 | |
ec6a6fbe | 4551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4552 | (exit $ac_status); } && { |
4553 | test -z "$ac_c_werror_flag" || | |
4554 | test ! -s conftest.err | |
4555 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4556 | ac_cv_header_sys_wait_h=yes |
4557 | else | |
ec6a6fbe | 4558 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4559 | sed 's/^/| /' conftest.$ac_ext >&5 |
4560 | ||
7a197a62 | 4561 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4562 | fi |
7a197a62 AK |
4563 | |
4564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4565 | fi |
ec6a6fbe AK |
4566 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4567 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4568 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4569 | |
ad6254c5 AK |
4570 | cat >>confdefs.h <<\_ACEOF |
4571 | #define HAVE_SYS_WAIT_H 1 | |
4572 | _ACEOF | |
795ca3e5 AK |
4573 | |
4574 | fi | |
4575 | ||
ec6a6fbe AK |
4576 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4577 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4578 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4579 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4580 | else |
ad6254c5 | 4581 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4582 | /* confdefs.h. */ |
4583 | _ACEOF | |
4584 | cat confdefs.h >>conftest.$ac_ext | |
4585 | cat >>conftest.$ac_ext <<_ACEOF | |
4586 | /* end confdefs.h. */ | |
795ca3e5 AK |
4587 | #include <sys/types.h> |
4588 | #include <sys/time.h> | |
4589 | #include <time.h> | |
ad6254c5 AK |
4590 | |
4591 | int | |
4592 | main () | |
4593 | { | |
4594 | if ((struct tm *) 0) | |
4595 | return 0; | |
4596 | ; | |
4597 | return 0; | |
4598 | } | |
4599 | _ACEOF | |
4600 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4601 | if { (ac_try="$ac_compile" |
4602 | case "(($ac_try" in | |
4603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4604 | *) ac_try_echo=$ac_try;; | |
4605 | esac | |
ec6a6fbe AK |
4606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4607 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4608 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4609 | ac_status=$? |
8a2fc586 AK |
4610 | grep -v '^ *+' conftest.er1 >conftest.err |
4611 | rm -f conftest.er1 | |
4612 | cat conftest.err >&5 | |
ec6a6fbe | 4613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4614 | (exit $ac_status); } && { |
4615 | test -z "$ac_c_werror_flag" || | |
4616 | test ! -s conftest.err | |
4617 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4618 | ac_cv_header_time=yes |
4619 | else | |
ec6a6fbe | 4620 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4621 | sed 's/^/| /' conftest.$ac_ext >&5 |
4622 | ||
7a197a62 | 4623 | ac_cv_header_time=no |
795ca3e5 | 4624 | fi |
7a197a62 AK |
4625 | |
4626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4627 | fi |
ec6a6fbe AK |
4628 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4629 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4630 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4631 | |
4632 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4633 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4634 | _ACEOF |
b896caa1 | 4635 | |
8106cdd5 | 4636 | fi |
b896caa1 | 4637 | |
b896caa1 | 4638 | |
d0191583 JM |
4639 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4650 | inttypes.h stdint.h unistd.h | |
4651 | do | |
ec6a6fbe AK |
4652 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4653 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4654 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4655 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4656 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4657 | else |
4658 | cat >conftest.$ac_ext <<_ACEOF | |
4659 | /* confdefs.h. */ | |
4660 | _ACEOF | |
4661 | cat confdefs.h >>conftest.$ac_ext | |
4662 | cat >>conftest.$ac_ext <<_ACEOF | |
4663 | /* end confdefs.h. */ | |
4664 | $ac_includes_default | |
4665 | ||
4666 | #include <$ac_header> | |
4667 | _ACEOF | |
4668 | rm -f conftest.$ac_objext | |
4669 | if { (ac_try="$ac_compile" | |
4670 | case "(($ac_try" in | |
4671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4672 | *) ac_try_echo=$ac_try;; | |
4673 | esac | |
ec6a6fbe AK |
4674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4675 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4676 | (eval "$ac_compile") 2>conftest.er1 |
4677 | ac_status=$? | |
4678 | grep -v '^ *+' conftest.er1 >conftest.err | |
4679 | rm -f conftest.er1 | |
4680 | cat conftest.err >&5 | |
ec6a6fbe | 4681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4682 | (exit $ac_status); } && { |
4683 | test -z "$ac_c_werror_flag" || | |
4684 | test ! -s conftest.err | |
4685 | } && test -s conftest.$ac_objext; then | |
4686 | eval "$as_ac_Header=yes" | |
4687 | else | |
ec6a6fbe | 4688 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4689 | sed 's/^/| /' conftest.$ac_ext >&5 |
4690 | ||
4691 | eval "$as_ac_Header=no" | |
4692 | fi | |
4693 | ||
4694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4695 | fi | |
ec6a6fbe AK |
4696 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4697 | $as_echo "$as_val"'` | |
4698 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4699 | $as_echo "$ac_res" >&6; } | |
4700 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4701 | $as_echo "$as_val"'` | |
4702 | if test "x$as_val" = x""yes; then | |
d0191583 | 4703 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4704 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4705 | _ACEOF |
4706 | ||
4707 | fi | |
4708 | ||
4709 | done | |
4710 | ||
b896caa1 | 4711 | |
b896caa1 AK |
4712 | |
4713 | ||
795ca3e5 | 4714 | |
8106cdd5 | 4715 | |
80992638 | 4716 | |
795ca3e5 | 4717 | |
a38df97f | 4718 | |
80992638 | 4719 | |
d0191583 JM |
4720 | |
4721 | ||
4722 | ||
4723 | ||
4724 | ||
4725 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4726 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4727 | do |
ec6a6fbe | 4728 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4730 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4731 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4732 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4733 | $as_echo_n "(cached) " >&6 |
d0191583 | 4734 | fi |
ec6a6fbe AK |
4735 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4736 | $as_echo "$as_val"'` | |
4737 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4738 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4739 | else |
d0191583 | 4740 | # Is the header compilable? |
ec6a6fbe AK |
4741 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4742 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4743 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4744 | /* confdefs.h. */ |
4745 | _ACEOF | |
4746 | cat confdefs.h >>conftest.$ac_ext | |
4747 | cat >>conftest.$ac_ext <<_ACEOF | |
4748 | /* end confdefs.h. */ | |
4749 | $ac_includes_default | |
ad6254c5 AK |
4750 | #include <$ac_header> |
4751 | _ACEOF | |
4752 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4753 | if { (ac_try="$ac_compile" |
4754 | case "(($ac_try" in | |
4755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4756 | *) ac_try_echo=$ac_try;; | |
4757 | esac | |
ec6a6fbe AK |
4758 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4759 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4760 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4761 | ac_status=$? |
8a2fc586 AK |
4762 | grep -v '^ *+' conftest.er1 >conftest.err |
4763 | rm -f conftest.er1 | |
4764 | cat conftest.err >&5 | |
ec6a6fbe | 4765 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4766 | (exit $ac_status); } && { |
4767 | test -z "$ac_c_werror_flag" || | |
4768 | test ! -s conftest.err | |
4769 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4770 | ac_header_compiler=yes |
ad6254c5 | 4771 | else |
ec6a6fbe | 4772 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4773 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4774 | |
d0191583 | 4775 | ac_header_compiler=no |
ad6254c5 | 4776 | fi |
7a197a62 AK |
4777 | |
4778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4779 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4780 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4781 | |
4782 | # Is the header present? | |
ec6a6fbe AK |
4783 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4784 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4785 | cat >conftest.$ac_ext <<_ACEOF |
4786 | /* confdefs.h. */ | |
4787 | _ACEOF | |
4788 | cat confdefs.h >>conftest.$ac_ext | |
4789 | cat >>conftest.$ac_ext <<_ACEOF | |
4790 | /* end confdefs.h. */ | |
4791 | #include <$ac_header> | |
4792 | _ACEOF | |
4793 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4794 | case "(($ac_try" in | |
4795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4796 | *) ac_try_echo=$ac_try;; | |
4797 | esac | |
ec6a6fbe AK |
4798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4799 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4801 | ac_status=$? | |
4802 | grep -v '^ *+' conftest.er1 >conftest.err | |
4803 | rm -f conftest.er1 | |
4804 | cat conftest.err >&5 | |
ec6a6fbe | 4805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4806 | (exit $ac_status); } >/dev/null && { |
4807 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4808 | test ! -s conftest.err | |
4809 | }; then | |
4810 | ac_header_preproc=yes | |
4811 | else | |
ec6a6fbe | 4812 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4813 | sed 's/^/| /' conftest.$ac_ext >&5 |
4814 | ||
4815 | ac_header_preproc=no | |
4816 | fi | |
4817 | ||
4818 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4819 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4820 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4821 | |
4822 | # So? What about this header? | |
4823 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4824 | yes:no: ) | |
ec6a6fbe AK |
4825 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4826 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4827 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4828 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4829 | ac_header_preproc=yes |
4830 | ;; | |
4831 | no:yes:* ) | |
ec6a6fbe AK |
4832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4833 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4835 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4837 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4839 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4841 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4842 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4843 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4844 | |
4845 | ;; | |
4846 | esac | |
ec6a6fbe AK |
4847 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4848 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4850 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4851 | else |
4852 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4853 | fi |
ec6a6fbe AK |
4854 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4855 | $as_echo "$as_val"'` | |
4856 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4857 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4858 | |
4859 | fi | |
ec6a6fbe AK |
4860 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4861 | $as_echo "$as_val"'` | |
4862 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4863 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4864 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4865 | _ACEOF |
a38df97f | 4866 | |
d0191583 | 4867 | else |
ec6a6fbe AK |
4868 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4869 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4870 | { (exit 1); exit 1; }; } |
80992638 AK |
4871 | fi |
4872 | ||
ad6254c5 AK |
4873 | done |
4874 | ||
7d1552c9 | 4875 | |
d0191583 JM |
4876 | case "$host_os" in |
4877 | linux*) | |
7d1552c9 | 4878 | |
80992638 | 4879 | |
5a52dca9 | 4880 | |
d0191583 | 4881 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4882 | do |
ec6a6fbe | 4883 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4884 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4885 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4886 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4888 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4889 | fi |
ec6a6fbe AK |
4890 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4891 | $as_echo "$as_val"'` | |
4892 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4893 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4894 | else |
4895 | # Is the header compilable? | |
ec6a6fbe AK |
4896 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4897 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4898 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4899 | /* confdefs.h. */ |
4900 | _ACEOF | |
4901 | cat confdefs.h >>conftest.$ac_ext | |
4902 | cat >>conftest.$ac_ext <<_ACEOF | |
4903 | /* end confdefs.h. */ | |
4904 | $ac_includes_default | |
4905 | #include <$ac_header> | |
4906 | _ACEOF | |
4907 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4908 | if { (ac_try="$ac_compile" |
4909 | case "(($ac_try" in | |
4910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4911 | *) ac_try_echo=$ac_try;; | |
4912 | esac | |
ec6a6fbe AK |
4913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4914 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4915 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4916 | ac_status=$? |
8a2fc586 AK |
4917 | grep -v '^ *+' conftest.er1 >conftest.err |
4918 | rm -f conftest.er1 | |
4919 | cat conftest.err >&5 | |
ec6a6fbe | 4920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4921 | (exit $ac_status); } && { |
4922 | test -z "$ac_c_werror_flag" || | |
4923 | test ! -s conftest.err | |
4924 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4925 | ac_header_compiler=yes |
4926 | else | |
ec6a6fbe | 4927 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4928 | sed 's/^/| /' conftest.$ac_ext >&5 |
4929 | ||
4930 | ac_header_compiler=no | |
4931 | fi | |
4932 | ||
4933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4934 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4935 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4936 | |
4937 | # Is the header present? | |
ec6a6fbe AK |
4938 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4939 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4940 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4941 | /* confdefs.h. */ |
4942 | _ACEOF | |
4943 | cat confdefs.h >>conftest.$ac_ext | |
4944 | cat >>conftest.$ac_ext <<_ACEOF | |
4945 | /* end confdefs.h. */ | |
4946 | #include <$ac_header> | |
4947 | _ACEOF | |
7a197a62 AK |
4948 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4949 | case "(($ac_try" in | |
4950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4951 | *) ac_try_echo=$ac_try;; | |
4952 | esac | |
ec6a6fbe AK |
4953 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4954 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4955 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4956 | ac_status=$? |
4957 | grep -v '^ *+' conftest.er1 >conftest.err | |
4958 | rm -f conftest.er1 | |
4959 | cat conftest.err >&5 | |
ec6a6fbe | 4960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4961 | (exit $ac_status); } >/dev/null && { |
4962 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4963 | test ! -s conftest.err | |
4964 | }; then | |
ad6254c5 AK |
4965 | ac_header_preproc=yes |
4966 | else | |
ec6a6fbe | 4967 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4968 | sed 's/^/| /' conftest.$ac_ext >&5 |
4969 | ||
4970 | ac_header_preproc=no | |
4971 | fi | |
7a197a62 | 4972 | |
ad6254c5 | 4973 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4974 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4975 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4976 | |
4977 | # So? What about this header? | |
8a2fc586 AK |
4978 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4979 | yes:no: ) | |
ec6a6fbe AK |
4980 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4981 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4982 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4983 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4984 | ac_header_preproc=yes |
ad6254c5 | 4985 | ;; |
8a2fc586 | 4986 | no:yes:* ) |
ec6a6fbe AK |
4987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4988 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4990 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4992 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4994 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4996 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4998 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4999 | |
ad6254c5 AK |
5000 | ;; |
5001 | esac | |
ec6a6fbe AK |
5002 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5003 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5004 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5005 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5006 | else |
8a2fc586 | 5007 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5008 | fi |
ec6a6fbe AK |
5009 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5010 | $as_echo "$as_val"'` | |
5011 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5012 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5013 | |
5014 | fi | |
ec6a6fbe AK |
5015 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5016 | $as_echo "$as_val"'` | |
5017 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5018 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5019 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5020 | _ACEOF |
b896caa1 | 5021 | |
d8ac0fbc | 5022 | else |
ec6a6fbe AK |
5023 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5024 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5025 | { (exit 1); exit 1; }; } |
80992638 AK |
5026 | fi |
5027 | ||
ad6254c5 | 5028 | done |
d0191583 JM |
5029 | ;; |
5030 | darwin*) | |
d8ac0fbc | 5031 | |
d8ac0fbc | 5032 | |
d0191583 | 5033 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5034 | do |
ec6a6fbe | 5035 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5037 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5038 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5040 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5041 | fi |
ec6a6fbe AK |
5042 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5043 | $as_echo "$as_val"'` | |
5044 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5045 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5046 | else |
5047 | # Is the header compilable? | |
ec6a6fbe AK |
5048 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5049 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5050 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5051 | /* confdefs.h. */ |
5052 | _ACEOF | |
5053 | cat confdefs.h >>conftest.$ac_ext | |
5054 | cat >>conftest.$ac_ext <<_ACEOF | |
5055 | /* end confdefs.h. */ | |
5056 | $ac_includes_default | |
5057 | #include <$ac_header> | |
5058 | _ACEOF | |
5059 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5060 | if { (ac_try="$ac_compile" |
5061 | case "(($ac_try" in | |
5062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5063 | *) ac_try_echo=$ac_try;; | |
5064 | esac | |
ec6a6fbe AK |
5065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5066 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5067 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5068 | ac_status=$? |
8a2fc586 AK |
5069 | grep -v '^ *+' conftest.er1 >conftest.err |
5070 | rm -f conftest.er1 | |
5071 | cat conftest.err >&5 | |
ec6a6fbe | 5072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5073 | (exit $ac_status); } && { |
5074 | test -z "$ac_c_werror_flag" || | |
5075 | test ! -s conftest.err | |
5076 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5077 | ac_header_compiler=yes |
5078 | else | |
ec6a6fbe | 5079 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5080 | sed 's/^/| /' conftest.$ac_ext >&5 |
5081 | ||
7a197a62 | 5082 | ac_header_compiler=no |
ad6254c5 | 5083 | fi |
7a197a62 AK |
5084 | |
5085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5086 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5087 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5088 | |
5089 | # Is the header present? | |
ec6a6fbe AK |
5090 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5091 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5092 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5093 | /* confdefs.h. */ |
5094 | _ACEOF | |
5095 | cat confdefs.h >>conftest.$ac_ext | |
5096 | cat >>conftest.$ac_ext <<_ACEOF | |
5097 | /* end confdefs.h. */ | |
5098 | #include <$ac_header> | |
5099 | _ACEOF | |
7a197a62 AK |
5100 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5101 | case "(($ac_try" in | |
5102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5103 | *) ac_try_echo=$ac_try;; | |
5104 | esac | |
ec6a6fbe AK |
5105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5106 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5107 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5108 | ac_status=$? |
5109 | grep -v '^ *+' conftest.er1 >conftest.err | |
5110 | rm -f conftest.er1 | |
5111 | cat conftest.err >&5 | |
ec6a6fbe | 5112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5113 | (exit $ac_status); } >/dev/null && { |
5114 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5115 | test ! -s conftest.err | |
5116 | }; then | |
ad6254c5 AK |
5117 | ac_header_preproc=yes |
5118 | else | |
ec6a6fbe | 5119 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5120 | sed 's/^/| /' conftest.$ac_ext >&5 |
5121 | ||
5122 | ac_header_preproc=no | |
5123 | fi | |
7a197a62 | 5124 | |
ad6254c5 | 5125 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5126 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5127 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5128 | |
5129 | # So? What about this header? | |
8a2fc586 AK |
5130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5131 | yes:no: ) | |
ec6a6fbe AK |
5132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5133 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5135 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5136 | ac_header_preproc=yes |
ad6254c5 | 5137 | ;; |
8a2fc586 | 5138 | no:yes:* ) |
ec6a6fbe AK |
5139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5140 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5142 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5143 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5144 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5145 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5146 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5147 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5148 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5149 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5150 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5151 | |
ad6254c5 AK |
5152 | ;; |
5153 | esac | |
ec6a6fbe AK |
5154 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5155 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5157 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5158 | else |
8a2fc586 | 5159 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5160 | fi |
ec6a6fbe AK |
5161 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5162 | $as_echo "$as_val"'` | |
5163 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5164 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5165 | |
5166 | fi | |
ec6a6fbe AK |
5167 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5168 | $as_echo "$as_val"'` | |
5169 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5170 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5171 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5172 | _ACEOF |
4922197a | 5173 | |
4922197a | 5174 | else |
ec6a6fbe AK |
5175 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5176 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5177 | { (exit 1); exit 1; }; } |
80992638 AK |
5178 | fi |
5179 | ||
ad6254c5 | 5180 | done |
d0191583 JM |
5181 | ;; |
5182 | esac | |
4922197a | 5183 | |
4922197a | 5184 | |
4922197a | 5185 | |
ad6254c5 AK |
5186 | |
5187 | ||
d0191583 JM |
5188 | |
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | ||
5198 | ||
5199 | ||
5200 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5201 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5202 | sys/types.h unistd.h | |
ad6254c5 | 5203 | do |
ec6a6fbe | 5204 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5206 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5207 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5209 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5210 | fi |
ec6a6fbe AK |
5211 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5212 | $as_echo "$as_val"'` | |
5213 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5214 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5215 | else |
ad6254c5 | 5216 | # Is the header compilable? |
ec6a6fbe AK |
5217 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5218 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5219 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5220 | /* confdefs.h. */ |
5221 | _ACEOF | |
5222 | cat confdefs.h >>conftest.$ac_ext | |
5223 | cat >>conftest.$ac_ext <<_ACEOF | |
5224 | /* end confdefs.h. */ | |
5225 | $ac_includes_default | |
5226 | #include <$ac_header> | |
5227 | _ACEOF | |
5228 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5229 | if { (ac_try="$ac_compile" |
5230 | case "(($ac_try" in | |
5231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5232 | *) ac_try_echo=$ac_try;; | |
5233 | esac | |
ec6a6fbe AK |
5234 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5235 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5236 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5237 | ac_status=$? |
8a2fc586 AK |
5238 | grep -v '^ *+' conftest.er1 >conftest.err |
5239 | rm -f conftest.er1 | |
5240 | cat conftest.err >&5 | |
ec6a6fbe | 5241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5242 | (exit $ac_status); } && { |
5243 | test -z "$ac_c_werror_flag" || | |
5244 | test ! -s conftest.err | |
5245 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5246 | ac_header_compiler=yes |
5247 | else | |
ec6a6fbe | 5248 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5249 | sed 's/^/| /' conftest.$ac_ext >&5 |
5250 | ||
7a197a62 | 5251 | ac_header_compiler=no |
ad6254c5 | 5252 | fi |
7a197a62 AK |
5253 | |
5254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5255 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5256 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5257 | |
5258 | # Is the header present? | |
ec6a6fbe AK |
5259 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5260 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5261 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5262 | /* confdefs.h. */ |
5263 | _ACEOF | |
5264 | cat confdefs.h >>conftest.$ac_ext | |
5265 | cat >>conftest.$ac_ext <<_ACEOF | |
5266 | /* end confdefs.h. */ | |
5267 | #include <$ac_header> | |
5268 | _ACEOF | |
7a197a62 AK |
5269 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5270 | case "(($ac_try" in | |
5271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5272 | *) ac_try_echo=$ac_try;; | |
5273 | esac | |
ec6a6fbe AK |
5274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5275 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5276 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5277 | ac_status=$? |
5278 | grep -v '^ *+' conftest.er1 >conftest.err | |
5279 | rm -f conftest.er1 | |
5280 | cat conftest.err >&5 | |
ec6a6fbe | 5281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5282 | (exit $ac_status); } >/dev/null && { |
5283 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5284 | test ! -s conftest.err | |
5285 | }; then | |
ad6254c5 AK |
5286 | ac_header_preproc=yes |
5287 | else | |
ec6a6fbe | 5288 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5289 | sed 's/^/| /' conftest.$ac_ext >&5 |
5290 | ||
5291 | ac_header_preproc=no | |
5292 | fi | |
7a197a62 | 5293 | |
ad6254c5 | 5294 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5295 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5296 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5297 | |
5298 | # So? What about this header? | |
8a2fc586 AK |
5299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5300 | yes:no: ) | |
ec6a6fbe AK |
5301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5302 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5304 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5305 | ac_header_preproc=yes |
ad6254c5 | 5306 | ;; |
8a2fc586 | 5307 | no:yes:* ) |
ec6a6fbe AK |
5308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5309 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5311 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5313 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5315 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5317 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5318 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5319 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5320 | |
ad6254c5 AK |
5321 | ;; |
5322 | esac | |
ec6a6fbe AK |
5323 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5324 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5326 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5327 | else |
8a2fc586 | 5328 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5329 | fi |
ec6a6fbe AK |
5330 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5331 | $as_echo "$as_val"'` | |
5332 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5333 | $as_echo "$ac_res" >&6; } | |
80992638 | 5334 | |
ad6254c5 | 5335 | fi |
ec6a6fbe AK |
5336 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5337 | $as_echo "$as_val"'` | |
5338 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5339 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5340 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5341 | _ACEOF |
795ca3e5 | 5342 | |
795ca3e5 | 5343 | else |
ec6a6fbe AK |
5344 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5345 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5346 | { (exit 1); exit 1; }; } |
80992638 AK |
5347 | fi |
5348 | ||
ad6254c5 | 5349 | done |
ad6254c5 | 5350 | |
795ca3e5 | 5351 | |
d0191583 JM |
5352 | |
5353 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5354 | do |
ec6a6fbe | 5355 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5356 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5357 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5358 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5359 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5360 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5361 | fi |
ec6a6fbe AK |
5362 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5363 | $as_echo "$as_val"'` | |
5364 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5365 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5366 | else |
5367 | # Is the header compilable? | |
ec6a6fbe AK |
5368 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5369 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5370 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5371 | /* confdefs.h. */ |
5372 | _ACEOF | |
5373 | cat confdefs.h >>conftest.$ac_ext | |
5374 | cat >>conftest.$ac_ext <<_ACEOF | |
5375 | /* end confdefs.h. */ | |
5376 | $ac_includes_default | |
5377 | #include <$ac_header> | |
5378 | _ACEOF | |
5379 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5380 | if { (ac_try="$ac_compile" |
5381 | case "(($ac_try" in | |
5382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5383 | *) ac_try_echo=$ac_try;; | |
5384 | esac | |
ec6a6fbe AK |
5385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5386 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5387 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5388 | ac_status=$? |
8a2fc586 AK |
5389 | grep -v '^ *+' conftest.er1 >conftest.err |
5390 | rm -f conftest.er1 | |
5391 | cat conftest.err >&5 | |
ec6a6fbe | 5392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5393 | (exit $ac_status); } && { |
5394 | test -z "$ac_c_werror_flag" || | |
5395 | test ! -s conftest.err | |
5396 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5397 | ac_header_compiler=yes |
5398 | else | |
ec6a6fbe | 5399 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5400 | sed 's/^/| /' conftest.$ac_ext >&5 |
5401 | ||
7a197a62 | 5402 | ac_header_compiler=no |
ad6254c5 | 5403 | fi |
7a197a62 AK |
5404 | |
5405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5406 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5407 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5408 | |
5409 | # Is the header present? | |
ec6a6fbe AK |
5410 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5411 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5412 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5413 | /* confdefs.h. */ |
5414 | _ACEOF | |
5415 | cat confdefs.h >>conftest.$ac_ext | |
5416 | cat >>conftest.$ac_ext <<_ACEOF | |
5417 | /* end confdefs.h. */ | |
5418 | #include <$ac_header> | |
5419 | _ACEOF | |
7a197a62 AK |
5420 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5421 | case "(($ac_try" in | |
5422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5423 | *) ac_try_echo=$ac_try;; | |
5424 | esac | |
ec6a6fbe AK |
5425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5426 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5427 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5428 | ac_status=$? |
5429 | grep -v '^ *+' conftest.er1 >conftest.err | |
5430 | rm -f conftest.er1 | |
5431 | cat conftest.err >&5 | |
ec6a6fbe | 5432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5433 | (exit $ac_status); } >/dev/null && { |
5434 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5435 | test ! -s conftest.err | |
5436 | }; then | |
ad6254c5 AK |
5437 | ac_header_preproc=yes |
5438 | else | |
ec6a6fbe | 5439 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5440 | sed 's/^/| /' conftest.$ac_ext >&5 |
5441 | ||
5442 | ac_header_preproc=no | |
5443 | fi | |
7a197a62 | 5444 | |
ad6254c5 | 5445 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5446 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5447 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5448 | |
5449 | # So? What about this header? | |
8a2fc586 AK |
5450 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5451 | yes:no: ) | |
ec6a6fbe AK |
5452 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5453 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5454 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5455 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5456 | ac_header_preproc=yes |
ad6254c5 | 5457 | ;; |
8a2fc586 | 5458 | no:yes:* ) |
ec6a6fbe AK |
5459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5460 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5462 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5464 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5465 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5466 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5467 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5468 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5469 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5470 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5471 | |
ad6254c5 AK |
5472 | ;; |
5473 | esac | |
ec6a6fbe AK |
5474 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5475 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5476 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5477 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5478 | else |
8a2fc586 | 5479 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5480 | fi |
ec6a6fbe AK |
5481 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5482 | $as_echo "$as_val"'` | |
5483 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5484 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5485 | |
ad6254c5 | 5486 | fi |
ec6a6fbe AK |
5487 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5488 | $as_echo "$as_val"'` | |
5489 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5490 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5491 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5492 | _ACEOF |
5493 | ||
80992638 AK |
5494 | fi |
5495 | ||
ad6254c5 | 5496 | done |
d0191583 | 5497 | |
d3c8211f | 5498 | |
80992638 | 5499 | ################################################################################ |
ec6a6fbe AK |
5500 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5501 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5502 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5503 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5504 | else |
ad6254c5 | 5505 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5506 | /* confdefs.h. */ |
5507 | _ACEOF | |
5508 | cat confdefs.h >>conftest.$ac_ext | |
5509 | cat >>conftest.$ac_ext <<_ACEOF | |
5510 | /* end confdefs.h. */ | |
5511 | ||
5512 | int | |
5513 | main () | |
5514 | { | |
5515 | /* FIXME: Include the comments suggested by Paul. */ | |
5516 | #ifndef __cplusplus | |
5517 | /* Ultrix mips cc rejects this. */ | |
5518 | typedef int charset[2]; | |
25fbec5b | 5519 | const charset cs; |
ad6254c5 | 5520 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5521 | char const *const *pcpcc; |
5522 | char **ppc; | |
ad6254c5 AK |
5523 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5524 | struct point {int x, y;}; | |
5525 | static struct point const zero = {0,0}; | |
5526 | /* AIX XL C 1.02.0.0 rejects this. | |
5527 | It does not let you subtract one const X* pointer from another in | |
5528 | an arm of an if-expression whose if-part is not a constant | |
5529 | expression */ | |
5530 | const char *g = "string"; | |
25fbec5b | 5531 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5532 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5533 | ++pcpcc; |
5534 | ppc = (char**) pcpcc; | |
5535 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5536 | { /* SCO 3.2v4 cc rejects this. */ |
5537 | char *t; | |
5538 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5539 | ||
5540 | *t++ = 0; | |
7a197a62 | 5541 | if (s) return 0; |
ad6254c5 AK |
5542 | } |
5543 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5544 | int x[] = {25, 17}; | |
5545 | const int *foo = &x[0]; | |
5546 | ++foo; | |
5547 | } | |
5548 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5549 | typedef const int *iptr; | |
5550 | iptr p = 0; | |
5551 | ++p; | |
5552 | } | |
5553 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5554 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5555 | struct s { int j; const int *ap[3]; }; | |
5556 | struct s *b; b->j = 5; | |
5557 | } | |
5558 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5559 | const int foo = 10; | |
7a197a62 | 5560 | if (!foo) return 0; |
ad6254c5 | 5561 | } |
25fbec5b | 5562 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5563 | #endif |
5564 | ||
5565 | ; | |
5566 | return 0; | |
5567 | } | |
5568 | _ACEOF | |
5569 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5570 | if { (ac_try="$ac_compile" |
5571 | case "(($ac_try" in | |
5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5573 | *) ac_try_echo=$ac_try;; | |
5574 | esac | |
ec6a6fbe AK |
5575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5576 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5577 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5578 | ac_status=$? |
8a2fc586 AK |
5579 | grep -v '^ *+' conftest.er1 >conftest.err |
5580 | rm -f conftest.er1 | |
5581 | cat conftest.err >&5 | |
ec6a6fbe | 5582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5583 | (exit $ac_status); } && { |
5584 | test -z "$ac_c_werror_flag" || | |
5585 | test ! -s conftest.err | |
5586 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5587 | ac_cv_c_const=yes |
5588 | else | |
ec6a6fbe | 5589 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5590 | sed 's/^/| /' conftest.$ac_ext >&5 |
5591 | ||
7a197a62 | 5592 | ac_cv_c_const=no |
ad6254c5 | 5593 | fi |
7a197a62 AK |
5594 | |
5595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5596 | fi |
ec6a6fbe AK |
5597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5598 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5599 | if test $ac_cv_c_const = no; then |
80992638 | 5600 | |
ad6254c5 | 5601 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5602 | #define const /**/ |
ad6254c5 | 5603 | _ACEOF |
80992638 | 5604 | |
d3c8211f | 5605 | fi |
d3c8211f | 5606 | |
ec6a6fbe AK |
5607 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5608 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5609 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5610 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5611 | else |
ad6254c5 AK |
5612 | ac_cv_c_inline=no |
5613 | for ac_kw in inline __inline__ __inline; do | |
5614 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5615 | /* confdefs.h. */ |
5616 | _ACEOF | |
5617 | cat confdefs.h >>conftest.$ac_ext | |
5618 | cat >>conftest.$ac_ext <<_ACEOF | |
5619 | /* end confdefs.h. */ | |
5620 | #ifndef __cplusplus | |
5621 | typedef int foo_t; | |
5622 | static $ac_kw foo_t static_foo () {return 0; } | |
5623 | $ac_kw foo_t foo () {return 0; } | |
5624 | #endif | |
80992638 | 5625 | |
ad6254c5 AK |
5626 | _ACEOF |
5627 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5628 | if { (ac_try="$ac_compile" |
5629 | case "(($ac_try" in | |
5630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5631 | *) ac_try_echo=$ac_try;; | |
5632 | esac | |
ec6a6fbe AK |
5633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5634 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5635 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5636 | ac_status=$? |
8a2fc586 AK |
5637 | grep -v '^ *+' conftest.er1 >conftest.err |
5638 | rm -f conftest.er1 | |
5639 | cat conftest.err >&5 | |
ec6a6fbe | 5640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5641 | (exit $ac_status); } && { |
5642 | test -z "$ac_c_werror_flag" || | |
5643 | test ! -s conftest.err | |
5644 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5645 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5646 | else |
ec6a6fbe | 5647 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5648 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5649 | |
7a197a62 | 5650 | |
8ce0cbda | 5651 | fi |
7a197a62 AK |
5652 | |
5653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5654 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5655 | done |
8ce0cbda | 5656 | |
8ce0cbda | 5657 | fi |
ec6a6fbe AK |
5658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5659 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5660 | |
5661 | ||
ad6254c5 AK |
5662 | case $ac_cv_c_inline in |
5663 | inline | yes) ;; | |
8a2fc586 AK |
5664 | *) |
5665 | case $ac_cv_c_inline in | |
5666 | no) ac_val=;; | |
5667 | *) ac_val=$ac_cv_c_inline;; | |
5668 | esac | |
5669 | cat >>confdefs.h <<_ACEOF | |
5670 | #ifndef __cplusplus | |
5671 | #define inline $ac_val | |
5672 | #endif | |
c1c065a3 | 5673 | _ACEOF |
d0191583 JM |
5674 | ;; |
5675 | esac | |
5676 | ||
ec6a6fbe AK |
5677 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5678 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5679 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5680 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5681 | else |
5682 | cat >conftest.$ac_ext <<_ACEOF | |
5683 | /* confdefs.h. */ | |
5684 | _ACEOF | |
5685 | cat confdefs.h >>conftest.$ac_ext | |
5686 | cat >>conftest.$ac_ext <<_ACEOF | |
5687 | /* end confdefs.h. */ | |
5688 | $ac_includes_default | |
5689 | int | |
5690 | main () | |
5691 | { | |
5692 | static struct stat ac_aggr; | |
5693 | if (ac_aggr.st_rdev) | |
5694 | return 0; | |
5695 | ; | |
5696 | return 0; | |
5697 | } | |
5698 | _ACEOF | |
5699 | rm -f conftest.$ac_objext | |
5700 | if { (ac_try="$ac_compile" | |
5701 | case "(($ac_try" in | |
5702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5703 | *) ac_try_echo=$ac_try;; | |
5704 | esac | |
ec6a6fbe AK |
5705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5706 | $as_echo "$ac_try_echo") >&5 | |
5707 | (eval "$ac_compile") 2>conftest.er1 | |
5708 | ac_status=$? | |
5709 | grep -v '^ *+' conftest.er1 >conftest.err | |
5710 | rm -f conftest.er1 | |
5711 | cat conftest.err >&5 | |
5712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5713 | (exit $ac_status); } && { | |
5714 | test -z "$ac_c_werror_flag" || | |
5715 | test ! -s conftest.err | |
5716 | } && test -s conftest.$ac_objext; then | |
5717 | ac_cv_member_struct_stat_st_rdev=yes | |
5718 | else | |
5719 | $as_echo "$as_me: failed program was:" >&5 | |
5720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5721 | ||
5722 | cat >conftest.$ac_ext <<_ACEOF | |
5723 | /* confdefs.h. */ | |
5724 | _ACEOF | |
5725 | cat confdefs.h >>conftest.$ac_ext | |
5726 | cat >>conftest.$ac_ext <<_ACEOF | |
5727 | /* end confdefs.h. */ | |
5728 | $ac_includes_default | |
5729 | int | |
5730 | main () | |
5731 | { | |
5732 | static struct stat ac_aggr; | |
5733 | if (sizeof ac_aggr.st_rdev) | |
5734 | return 0; | |
5735 | ; | |
5736 | return 0; | |
5737 | } | |
5738 | _ACEOF | |
5739 | rm -f conftest.$ac_objext | |
5740 | if { (ac_try="$ac_compile" | |
5741 | case "(($ac_try" in | |
5742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5743 | *) ac_try_echo=$ac_try;; | |
5744 | esac | |
5745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5746 | $as_echo "$ac_try_echo") >&5 | |
5747 | (eval "$ac_compile") 2>conftest.er1 | |
5748 | ac_status=$? | |
5749 | grep -v '^ *+' conftest.er1 >conftest.err | |
5750 | rm -f conftest.er1 | |
5751 | cat conftest.err >&5 | |
5752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5753 | (exit $ac_status); } && { | |
5754 | test -z "$ac_c_werror_flag" || | |
5755 | test ! -s conftest.err | |
5756 | } && test -s conftest.$ac_objext; then | |
5757 | ac_cv_member_struct_stat_st_rdev=yes | |
5758 | else | |
5759 | $as_echo "$as_me: failed program was:" >&5 | |
5760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5761 | ||
5762 | ac_cv_member_struct_stat_st_rdev=no | |
5763 | fi | |
5764 | ||
5765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5766 | fi | |
5767 | ||
5768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5769 | fi | |
5770 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5771 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5772 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5773 | ||
5774 | cat >>confdefs.h <<_ACEOF | |
5775 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5776 | _ACEOF | |
5777 | ||
5778 | ||
5779 | fi | |
5780 | ||
5781 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5782 | $as_echo_n "checking for off_t... " >&6; } | |
5783 | if test "${ac_cv_type_off_t+set}" = set; then | |
5784 | $as_echo_n "(cached) " >&6 | |
5785 | else | |
5786 | ac_cv_type_off_t=no | |
5787 | cat >conftest.$ac_ext <<_ACEOF | |
5788 | /* confdefs.h. */ | |
5789 | _ACEOF | |
5790 | cat confdefs.h >>conftest.$ac_ext | |
5791 | cat >>conftest.$ac_ext <<_ACEOF | |
5792 | /* end confdefs.h. */ | |
5793 | $ac_includes_default | |
5794 | int | |
5795 | main () | |
5796 | { | |
5797 | if (sizeof (off_t)) | |
5798 | return 0; | |
5799 | ; | |
5800 | return 0; | |
5801 | } | |
5802 | _ACEOF | |
5803 | rm -f conftest.$ac_objext | |
5804 | if { (ac_try="$ac_compile" | |
5805 | case "(($ac_try" in | |
5806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5807 | *) ac_try_echo=$ac_try;; | |
5808 | esac | |
5809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5810 | $as_echo "$ac_try_echo") >&5 | |
5811 | (eval "$ac_compile") 2>conftest.er1 | |
5812 | ac_status=$? | |
5813 | grep -v '^ *+' conftest.er1 >conftest.err | |
5814 | rm -f conftest.er1 | |
5815 | cat conftest.err >&5 | |
5816 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5817 | (exit $ac_status); } && { | |
5818 | test -z "$ac_c_werror_flag" || | |
5819 | test ! -s conftest.err | |
5820 | } && test -s conftest.$ac_objext; then | |
5821 | cat >conftest.$ac_ext <<_ACEOF | |
5822 | /* confdefs.h. */ | |
5823 | _ACEOF | |
5824 | cat confdefs.h >>conftest.$ac_ext | |
5825 | cat >>conftest.$ac_ext <<_ACEOF | |
5826 | /* end confdefs.h. */ | |
5827 | $ac_includes_default | |
5828 | int | |
5829 | main () | |
5830 | { | |
5831 | if (sizeof ((off_t))) | |
5832 | return 0; | |
5833 | ; | |
5834 | return 0; | |
5835 | } | |
5836 | _ACEOF | |
5837 | rm -f conftest.$ac_objext | |
5838 | if { (ac_try="$ac_compile" | |
5839 | case "(($ac_try" in | |
5840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5841 | *) ac_try_echo=$ac_try;; | |
5842 | esac | |
5843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5844 | $as_echo "$ac_try_echo") >&5 | |
5845 | (eval "$ac_compile") 2>conftest.er1 | |
5846 | ac_status=$? | |
5847 | grep -v '^ *+' conftest.er1 >conftest.err | |
5848 | rm -f conftest.er1 | |
5849 | cat conftest.err >&5 | |
5850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5851 | (exit $ac_status); } && { | |
5852 | test -z "$ac_c_werror_flag" || | |
5853 | test ! -s conftest.err | |
5854 | } && test -s conftest.$ac_objext; then | |
5855 | : | |
5856 | else | |
5857 | $as_echo "$as_me: failed program was:" >&5 | |
5858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5859 | ||
5860 | ac_cv_type_off_t=yes | |
5861 | fi | |
5862 | ||
5863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5864 | else | |
5865 | $as_echo "$as_me: failed program was:" >&5 | |
5866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5867 | ||
5868 | ||
5869 | fi | |
5870 | ||
5871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5872 | fi | |
5873 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5874 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5875 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5876 | : | |
5877 | else | |
5878 | ||
5879 | cat >>confdefs.h <<_ACEOF | |
5880 | #define off_t long int | |
5881 | _ACEOF | |
5882 | ||
5883 | fi | |
5884 | ||
5885 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5886 | $as_echo_n "checking for pid_t... " >&6; } | |
5887 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5888 | $as_echo_n "(cached) " >&6 | |
5889 | else | |
5890 | ac_cv_type_pid_t=no | |
5891 | cat >conftest.$ac_ext <<_ACEOF | |
5892 | /* confdefs.h. */ | |
5893 | _ACEOF | |
5894 | cat confdefs.h >>conftest.$ac_ext | |
5895 | cat >>conftest.$ac_ext <<_ACEOF | |
5896 | /* end confdefs.h. */ | |
5897 | $ac_includes_default | |
5898 | int | |
5899 | main () | |
5900 | { | |
5901 | if (sizeof (pid_t)) | |
5902 | return 0; | |
5903 | ; | |
5904 | return 0; | |
5905 | } | |
5906 | _ACEOF | |
5907 | rm -f conftest.$ac_objext | |
5908 | if { (ac_try="$ac_compile" | |
5909 | case "(($ac_try" in | |
5910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5911 | *) ac_try_echo=$ac_try;; | |
5912 | esac | |
5913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5914 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5915 | (eval "$ac_compile") 2>conftest.er1 |
5916 | ac_status=$? | |
5917 | grep -v '^ *+' conftest.er1 >conftest.err | |
5918 | rm -f conftest.er1 | |
5919 | cat conftest.err >&5 | |
ec6a6fbe | 5920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5921 | (exit $ac_status); } && { |
5922 | test -z "$ac_c_werror_flag" || | |
5923 | test ! -s conftest.err | |
5924 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5925 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5926 | /* confdefs.h. */ |
5927 | _ACEOF | |
5928 | cat confdefs.h >>conftest.$ac_ext | |
5929 | cat >>conftest.$ac_ext <<_ACEOF | |
5930 | /* end confdefs.h. */ | |
5931 | $ac_includes_default | |
5932 | int | |
5933 | main () | |
5934 | { | |
ec6a6fbe AK |
5935 | if (sizeof ((pid_t))) |
5936 | return 0; | |
d0191583 JM |
5937 | ; |
5938 | return 0; | |
5939 | } | |
5940 | _ACEOF | |
5941 | rm -f conftest.$ac_objext | |
5942 | if { (ac_try="$ac_compile" | |
5943 | case "(($ac_try" in | |
5944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5945 | *) ac_try_echo=$ac_try;; | |
5946 | esac | |
ec6a6fbe AK |
5947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5948 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5949 | (eval "$ac_compile") 2>conftest.er1 |
5950 | ac_status=$? | |
5951 | grep -v '^ *+' conftest.er1 >conftest.err | |
5952 | rm -f conftest.er1 | |
5953 | cat conftest.err >&5 | |
ec6a6fbe | 5954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5955 | (exit $ac_status); } && { |
5956 | test -z "$ac_c_werror_flag" || | |
5957 | test ! -s conftest.err | |
5958 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5959 | : |
d0191583 | 5960 | else |
ec6a6fbe | 5961 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5962 | sed 's/^/| /' conftest.$ac_ext >&5 |
5963 | ||
ec6a6fbe | 5964 | ac_cv_type_pid_t=yes |
d0191583 JM |
5965 | fi |
5966 | ||
5967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5968 | else |
5969 | $as_echo "$as_me: failed program was:" >&5 | |
5970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5971 | ||
5972 | ||
d0191583 JM |
5973 | fi |
5974 | ||
5975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5976 | fi | |
ec6a6fbe AK |
5977 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5978 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5979 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5980 | : | |
5981 | else | |
d0191583 JM |
5982 | |
5983 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5984 | #define pid_t int |
d0191583 JM |
5985 | _ACEOF |
5986 | ||
d0191583 | 5987 | fi |
8ce0cbda | 5988 | |
ec6a6fbe AK |
5989 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5990 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5991 | if test "${ac_cv_type_signal+set}" = set; then | |
5992 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5993 | else |
b145d876 ZK |
5994 | cat >conftest.$ac_ext <<_ACEOF |
5995 | /* confdefs.h. */ | |
5996 | _ACEOF | |
5997 | cat confdefs.h >>conftest.$ac_ext | |
5998 | cat >>conftest.$ac_ext <<_ACEOF | |
5999 | /* end confdefs.h. */ | |
ec6a6fbe AK |
6000 | #include <sys/types.h> |
6001 | #include <signal.h> | |
6002 | ||
b145d876 ZK |
6003 | int |
6004 | main () | |
6005 | { | |
ec6a6fbe | 6006 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
6007 | ; |
6008 | return 0; | |
6009 | } | |
6010 | _ACEOF | |
6011 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6012 | if { (ac_try="$ac_compile" |
6013 | case "(($ac_try" in | |
6014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6015 | *) ac_try_echo=$ac_try;; | |
6016 | esac | |
ec6a6fbe AK |
6017 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6018 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6019 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6020 | ac_status=$? |
8a2fc586 AK |
6021 | grep -v '^ *+' conftest.er1 >conftest.err |
6022 | rm -f conftest.er1 | |
6023 | cat conftest.err >&5 | |
ec6a6fbe | 6024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6025 | (exit $ac_status); } && { |
6026 | test -z "$ac_c_werror_flag" || | |
6027 | test ! -s conftest.err | |
6028 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6029 | ac_cv_type_signal=int |
b145d876 | 6030 | else |
ec6a6fbe | 6031 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6032 | sed 's/^/| /' conftest.$ac_ext >&5 |
6033 | ||
ec6a6fbe | 6034 | ac_cv_type_signal=void |
ad6254c5 | 6035 | fi |
b145d876 ZK |
6036 | |
6037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6038 | fi | |
ec6a6fbe AK |
6039 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6040 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6041 | |
ad6254c5 | 6042 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6043 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6044 | _ACEOF |
199e490e | 6045 | |
b896caa1 | 6046 | |
ec6a6fbe AK |
6047 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6048 | $as_echo_n "checking for size_t... " >&6; } | |
6049 | if test "${ac_cv_type_size_t+set}" = set; then | |
6050 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6051 | else |
ec6a6fbe AK |
6052 | ac_cv_type_size_t=no |
6053 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6054 | /* confdefs.h. */ |
6055 | _ACEOF | |
6056 | cat confdefs.h >>conftest.$ac_ext | |
6057 | cat >>conftest.$ac_ext <<_ACEOF | |
6058 | /* end confdefs.h. */ | |
6059 | $ac_includes_default | |
6060 | int | |
6061 | main () | |
6062 | { | |
ec6a6fbe AK |
6063 | if (sizeof (size_t)) |
6064 | return 0; | |
ad6254c5 AK |
6065 | ; |
6066 | return 0; | |
6067 | } | |
6068 | _ACEOF | |
6069 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6070 | if { (ac_try="$ac_compile" |
6071 | case "(($ac_try" in | |
6072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6073 | *) ac_try_echo=$ac_try;; | |
6074 | esac | |
ec6a6fbe AK |
6075 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6076 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6077 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6078 | ac_status=$? |
8a2fc586 AK |
6079 | grep -v '^ *+' conftest.er1 >conftest.err |
6080 | rm -f conftest.er1 | |
6081 | cat conftest.err >&5 | |
ec6a6fbe | 6082 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6083 | (exit $ac_status); } && { |
6084 | test -z "$ac_c_werror_flag" || | |
6085 | test ! -s conftest.err | |
6086 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6087 | cat >conftest.$ac_ext <<_ACEOF |
6088 | /* confdefs.h. */ | |
6089 | _ACEOF | |
6090 | cat confdefs.h >>conftest.$ac_ext | |
6091 | cat >>conftest.$ac_ext <<_ACEOF | |
6092 | /* end confdefs.h. */ | |
ec6a6fbe | 6093 | $ac_includes_default |
d0191583 JM |
6094 | int |
6095 | main () | |
6096 | { | |
ec6a6fbe AK |
6097 | if (sizeof ((size_t))) |
6098 | return 0; | |
d0191583 JM |
6099 | ; |
6100 | return 0; | |
6101 | } | |
6102 | _ACEOF | |
6103 | rm -f conftest.$ac_objext | |
6104 | if { (ac_try="$ac_compile" | |
6105 | case "(($ac_try" in | |
6106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6107 | *) ac_try_echo=$ac_try;; | |
6108 | esac | |
ec6a6fbe AK |
6109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6110 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6111 | (eval "$ac_compile") 2>conftest.er1 |
6112 | ac_status=$? | |
6113 | grep -v '^ *+' conftest.er1 >conftest.err | |
6114 | rm -f conftest.er1 | |
6115 | cat conftest.err >&5 | |
ec6a6fbe | 6116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6117 | (exit $ac_status); } && { |
6118 | test -z "$ac_c_werror_flag" || | |
6119 | test ! -s conftest.err | |
6120 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6121 | : |
d0191583 | 6122 | else |
ec6a6fbe | 6123 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6124 | sed 's/^/| /' conftest.$ac_ext >&5 |
6125 | ||
ec6a6fbe AK |
6126 | ac_cv_type_size_t=yes |
6127 | fi | |
6128 | ||
6129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6130 | else | |
6131 | $as_echo "$as_me: failed program was:" >&5 | |
6132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6133 | ||
6134 | ||
d0191583 JM |
6135 | fi |
6136 | ||
6137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6138 | fi | |
ec6a6fbe AK |
6139 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6140 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6141 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6142 | : | |
6143 | else | |
d0191583 JM |
6144 | |
6145 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6146 | #define size_t unsigned int |
d0191583 JM |
6147 | _ACEOF |
6148 | ||
ec6a6fbe | 6149 | fi |
d0191583 | 6150 | |
ec6a6fbe AK |
6151 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6152 | $as_echo_n "checking for mode_t... " >&6; } | |
6153 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6154 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6155 | else |
ec6a6fbe AK |
6156 | ac_cv_type_mode_t=no |
6157 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6158 | /* confdefs.h. */ |
6159 | _ACEOF | |
6160 | cat confdefs.h >>conftest.$ac_ext | |
6161 | cat >>conftest.$ac_ext <<_ACEOF | |
6162 | /* end confdefs.h. */ | |
6163 | $ac_includes_default | |
6164 | int | |
6165 | main () | |
6166 | { | |
ec6a6fbe AK |
6167 | if (sizeof (mode_t)) |
6168 | return 0; | |
ad6254c5 AK |
6169 | ; |
6170 | return 0; | |
6171 | } | |
6172 | _ACEOF | |
6173 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6174 | if { (ac_try="$ac_compile" |
6175 | case "(($ac_try" in | |
6176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6177 | *) ac_try_echo=$ac_try;; | |
6178 | esac | |
ec6a6fbe AK |
6179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6180 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6181 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6182 | ac_status=$? |
8a2fc586 AK |
6183 | grep -v '^ *+' conftest.er1 >conftest.err |
6184 | rm -f conftest.er1 | |
6185 | cat conftest.err >&5 | |
ec6a6fbe | 6186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6187 | (exit $ac_status); } && { |
6188 | test -z "$ac_c_werror_flag" || | |
6189 | test ! -s conftest.err | |
6190 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6191 | cat >conftest.$ac_ext <<_ACEOF |
6192 | /* confdefs.h. */ | |
6193 | _ACEOF | |
6194 | cat confdefs.h >>conftest.$ac_ext | |
6195 | cat >>conftest.$ac_ext <<_ACEOF | |
6196 | /* end confdefs.h. */ | |
6197 | $ac_includes_default | |
6198 | int | |
6199 | main () | |
6200 | { | |
ec6a6fbe AK |
6201 | if (sizeof ((mode_t))) |
6202 | return 0; | |
ad6254c5 AK |
6203 | ; |
6204 | return 0; | |
6205 | } | |
6206 | _ACEOF | |
6207 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6208 | if { (ac_try="$ac_compile" |
6209 | case "(($ac_try" in | |
6210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6211 | *) ac_try_echo=$ac_try;; | |
6212 | esac | |
ec6a6fbe AK |
6213 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6214 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6215 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6216 | ac_status=$? |
8a2fc586 AK |
6217 | grep -v '^ *+' conftest.er1 >conftest.err |
6218 | rm -f conftest.er1 | |
6219 | cat conftest.err >&5 | |
ec6a6fbe | 6220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6221 | (exit $ac_status); } && { |
6222 | test -z "$ac_c_werror_flag" || | |
6223 | test ! -s conftest.err | |
6224 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6225 | : |
6226 | else | |
6227 | $as_echo "$as_me: failed program was:" >&5 | |
6228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6229 | ||
6230 | ac_cv_type_mode_t=yes | |
6231 | fi | |
6232 | ||
6233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6234 | else |
ec6a6fbe | 6235 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6236 | sed 's/^/| /' conftest.$ac_ext >&5 |
6237 | ||
ec6a6fbe | 6238 | |
80992638 | 6239 | fi |
7a197a62 AK |
6240 | |
6241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6242 | fi |
ec6a6fbe AK |
6243 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6244 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6245 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6246 | : |
6247 | else | |
80992638 | 6248 | |
ad6254c5 AK |
6249 | cat >>confdefs.h <<_ACEOF |
6250 | #define mode_t int | |
6251 | _ACEOF | |
6252 | ||
6253 | fi | |
6254 | ||
ec6a6fbe AK |
6255 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6256 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6257 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6258 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6259 | else |
6260 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6261 | /* confdefs.h. */ |
6262 | _ACEOF | |
6263 | cat confdefs.h >>conftest.$ac_ext | |
6264 | cat >>conftest.$ac_ext <<_ACEOF | |
6265 | /* end confdefs.h. */ | |
6266 | $ac_includes_default | |
6267 | int | |
6268 | main () | |
6269 | { | |
6270 | static struct stat ac_aggr; | |
6271 | if (ac_aggr.st_rdev) | |
6272 | return 0; | |
6273 | ; | |
6274 | return 0; | |
6275 | } | |
6276 | _ACEOF | |
6277 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6278 | if { (ac_try="$ac_compile" |
6279 | case "(($ac_try" in | |
6280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6281 | *) ac_try_echo=$ac_try;; | |
6282 | esac | |
ec6a6fbe AK |
6283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6284 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6285 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6286 | ac_status=$? |
8a2fc586 AK |
6287 | grep -v '^ *+' conftest.er1 >conftest.err |
6288 | rm -f conftest.er1 | |
6289 | cat conftest.err >&5 | |
ec6a6fbe | 6290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6291 | (exit $ac_status); } && { |
6292 | test -z "$ac_c_werror_flag" || | |
6293 | test ! -s conftest.err | |
6294 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6295 | ac_cv_member_struct_stat_st_rdev=yes |
6296 | else | |
ec6a6fbe | 6297 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6298 | sed 's/^/| /' conftest.$ac_ext >&5 |
6299 | ||
7a197a62 | 6300 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6301 | /* confdefs.h. */ |
6302 | _ACEOF | |
6303 | cat confdefs.h >>conftest.$ac_ext | |
6304 | cat >>conftest.$ac_ext <<_ACEOF | |
6305 | /* end confdefs.h. */ | |
6306 | $ac_includes_default | |
6307 | int | |
6308 | main () | |
6309 | { | |
6310 | static struct stat ac_aggr; | |
6311 | if (sizeof ac_aggr.st_rdev) | |
6312 | return 0; | |
6313 | ; | |
6314 | return 0; | |
6315 | } | |
6316 | _ACEOF | |
6317 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6318 | if { (ac_try="$ac_compile" |
6319 | case "(($ac_try" in | |
6320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6321 | *) ac_try_echo=$ac_try;; | |
6322 | esac | |
ec6a6fbe AK |
6323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6324 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6325 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6326 | ac_status=$? |
8a2fc586 AK |
6327 | grep -v '^ *+' conftest.er1 >conftest.err |
6328 | rm -f conftest.er1 | |
6329 | cat conftest.err >&5 | |
ec6a6fbe | 6330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6331 | (exit $ac_status); } && { |
6332 | test -z "$ac_c_werror_flag" || | |
6333 | test ! -s conftest.err | |
6334 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6335 | ac_cv_member_struct_stat_st_rdev=yes |
6336 | else | |
ec6a6fbe | 6337 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6338 | sed 's/^/| /' conftest.$ac_ext >&5 |
6339 | ||
7a197a62 | 6340 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6341 | fi |
7a197a62 AK |
6342 | |
6343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6344 | fi |
7a197a62 AK |
6345 | |
6346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6347 | fi |
ec6a6fbe AK |
6348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6349 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6350 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6351 | |
6352 | cat >>confdefs.h <<_ACEOF | |
6353 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6354 | _ACEOF | |
6355 | ||
6356 | ||
ad6254c5 AK |
6357 | fi |
6358 | ||
ec6a6fbe AK |
6359 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6360 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6361 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6362 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6363 | else |
6364 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6365 | /* confdefs.h. */ |
6366 | _ACEOF | |
6367 | cat confdefs.h >>conftest.$ac_ext | |
6368 | cat >>conftest.$ac_ext <<_ACEOF | |
6369 | /* end confdefs.h. */ | |
6370 | #include <sys/types.h> | |
6371 | #include <time.h> | |
6372 | ||
6373 | int | |
6374 | main () | |
6375 | { | |
25fbec5b AK |
6376 | struct tm tm; |
6377 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6378 | return !p; |
ad6254c5 AK |
6379 | ; |
6380 | return 0; | |
6381 | } | |
6382 | _ACEOF | |
6383 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6384 | if { (ac_try="$ac_compile" |
6385 | case "(($ac_try" in | |
6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6387 | *) ac_try_echo=$ac_try;; | |
6388 | esac | |
ec6a6fbe AK |
6389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6390 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6391 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6392 | ac_status=$? |
8a2fc586 AK |
6393 | grep -v '^ *+' conftest.er1 >conftest.err |
6394 | rm -f conftest.er1 | |
6395 | cat conftest.err >&5 | |
ec6a6fbe | 6396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6397 | (exit $ac_status); } && { |
6398 | test -z "$ac_c_werror_flag" || | |
6399 | test ! -s conftest.err | |
6400 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6401 | ac_cv_struct_tm=time.h |
6402 | else | |
ec6a6fbe | 6403 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 |
6405 | ||
7a197a62 | 6406 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6407 | fi |
7a197a62 AK |
6408 | |
6409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6410 | fi |
ec6a6fbe AK |
6411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6412 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6413 | if test $ac_cv_struct_tm = sys/time.h; then |
6414 | ||
6415 | cat >>confdefs.h <<\_ACEOF | |
6416 | #define TM_IN_SYS_TIME 1 | |
6417 | _ACEOF | |
6418 | ||
6419 | fi | |
809fae91 | 6420 | |
795ca3e5 | 6421 | |
80992638 | 6422 | ################################################################################ |
ad6254c5 AK |
6423 | |
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
d0191583 JM |
6437 | |
6438 | ||
6439 | ||
6440 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6441 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6442 | uname | |
ad6254c5 | 6443 | do |
ec6a6fbe AK |
6444 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6445 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6446 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6447 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6448 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6449 | else |
ad6254c5 | 6450 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6451 | /* confdefs.h. */ |
6452 | _ACEOF | |
6453 | cat confdefs.h >>conftest.$ac_ext | |
6454 | cat >>conftest.$ac_ext <<_ACEOF | |
6455 | /* end confdefs.h. */ | |
8a2fc586 AK |
6456 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6457 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6458 | #define $ac_func innocuous_$ac_func | |
6459 | ||
ad6254c5 AK |
6460 | /* System header to define __stub macros and hopefully few prototypes, |
6461 | which can conflict with char $ac_func (); below. | |
6462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6463 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6464 | |
ad6254c5 AK |
6465 | #ifdef __STDC__ |
6466 | # include <limits.h> | |
6467 | #else | |
6468 | # include <assert.h> | |
6469 | #endif | |
8a2fc586 AK |
6470 | |
6471 | #undef $ac_func | |
6472 | ||
7a197a62 AK |
6473 | /* Override any GCC internal prototype to avoid an error. |
6474 | Use char because int might match the return type of a GCC | |
6475 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6476 | #ifdef __cplusplus |
6477 | extern "C" | |
ad6254c5 | 6478 | #endif |
ad6254c5 AK |
6479 | char $ac_func (); |
6480 | /* The GNU C library defines this for functions which it implements | |
6481 | to always fail with ENOSYS. Some functions are actually named | |
6482 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6483 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6484 | choke me |
ad6254c5 AK |
6485 | #endif |
6486 | ||
6487 | int | |
6488 | main () | |
6489 | { | |
7a197a62 | 6490 | return $ac_func (); |
ad6254c5 AK |
6491 | ; |
6492 | return 0; | |
6493 | } | |
6494 | _ACEOF | |
6495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6496 | if { (ac_try="$ac_link" |
6497 | case "(($ac_try" in | |
6498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6499 | *) ac_try_echo=$ac_try;; | |
6500 | esac | |
ec6a6fbe AK |
6501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6502 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6503 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6504 | ac_status=$? |
8a2fc586 AK |
6505 | grep -v '^ *+' conftest.er1 >conftest.err |
6506 | rm -f conftest.er1 | |
6507 | cat conftest.err >&5 | |
ec6a6fbe | 6508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6509 | (exit $ac_status); } && { |
6510 | test -z "$ac_c_werror_flag" || | |
6511 | test ! -s conftest.err | |
ec6a6fbe AK |
6512 | } && test -s conftest$ac_exeext && { |
6513 | test "$cross_compiling" = yes || | |
6514 | $as_test_x conftest$ac_exeext | |
6515 | }; then | |
fc54be10 AK |
6516 | eval "$as_ac_var=yes" |
6517 | else | |
ec6a6fbe | 6518 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6519 | sed 's/^/| /' conftest.$ac_ext >&5 |
6520 | ||
6521 | eval "$as_ac_var=no" | |
6522 | fi | |
6523 | ||
ec6a6fbe | 6524 | rm -rf conftest.dSYM |
25fbec5b | 6525 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6526 | conftest$ac_exeext conftest.$ac_ext |
6527 | fi | |
ec6a6fbe AK |
6528 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6529 | $as_echo "$as_val"'` | |
6530 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6531 | $as_echo "$ac_res" >&6; } | |
6532 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6533 | $as_echo "$as_val"'` | |
6534 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6535 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6536 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6537 | _ACEOF |
6538 | ||
6539 | else | |
ec6a6fbe AK |
6540 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6541 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6542 | { (exit 1); exit 1; }; } |
6543 | fi | |
6544 | done | |
795ca3e5 | 6545 | |
a0f9708e AK |
6546 | |
6547 | for ac_func in siginterrupt | |
6548 | do | |
6549 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6550 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6551 | $as_echo_n "checking for $ac_func... " >&6; } | |
6552 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6553 | $as_echo_n "(cached) " >&6 | |
6554 | else | |
6555 | cat >conftest.$ac_ext <<_ACEOF | |
6556 | /* confdefs.h. */ | |
6557 | _ACEOF | |
6558 | cat confdefs.h >>conftest.$ac_ext | |
6559 | cat >>conftest.$ac_ext <<_ACEOF | |
6560 | /* end confdefs.h. */ | |
6561 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6563 | #define $ac_func innocuous_$ac_func | |
6564 | ||
6565 | /* System header to define __stub macros and hopefully few prototypes, | |
6566 | which can conflict with char $ac_func (); below. | |
6567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6568 | <limits.h> exists even on freestanding compilers. */ | |
6569 | ||
6570 | #ifdef __STDC__ | |
6571 | # include <limits.h> | |
6572 | #else | |
6573 | # include <assert.h> | |
6574 | #endif | |
6575 | ||
6576 | #undef $ac_func | |
6577 | ||
6578 | /* Override any GCC internal prototype to avoid an error. | |
6579 | Use char because int might match the return type of a GCC | |
6580 | builtin and then its argument prototype would still apply. */ | |
6581 | #ifdef __cplusplus | |
6582 | extern "C" | |
6583 | #endif | |
6584 | char $ac_func (); | |
6585 | /* The GNU C library defines this for functions which it implements | |
6586 | to always fail with ENOSYS. Some functions are actually named | |
6587 | something starting with __ and the normal name is an alias. */ | |
6588 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6589 | choke me | |
6590 | #endif | |
6591 | ||
6592 | int | |
6593 | main () | |
6594 | { | |
6595 | return $ac_func (); | |
6596 | ; | |
6597 | return 0; | |
6598 | } | |
6599 | _ACEOF | |
6600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6601 | if { (ac_try="$ac_link" | |
6602 | case "(($ac_try" in | |
6603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6604 | *) ac_try_echo=$ac_try;; | |
6605 | esac | |
6606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6607 | $as_echo "$ac_try_echo") >&5 | |
6608 | (eval "$ac_link") 2>conftest.er1 | |
6609 | ac_status=$? | |
6610 | grep -v '^ *+' conftest.er1 >conftest.err | |
6611 | rm -f conftest.er1 | |
6612 | cat conftest.err >&5 | |
6613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6614 | (exit $ac_status); } && { | |
6615 | test -z "$ac_c_werror_flag" || | |
6616 | test ! -s conftest.err | |
6617 | } && test -s conftest$ac_exeext && { | |
6618 | test "$cross_compiling" = yes || | |
6619 | $as_test_x conftest$ac_exeext | |
6620 | }; then | |
6621 | eval "$as_ac_var=yes" | |
6622 | else | |
6623 | $as_echo "$as_me: failed program was:" >&5 | |
6624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6625 | ||
6626 | eval "$as_ac_var=no" | |
6627 | fi | |
6628 | ||
6629 | rm -rf conftest.dSYM | |
6630 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6631 | conftest$ac_exeext conftest.$ac_ext | |
6632 | fi | |
6633 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
6634 | $as_echo "$as_val"'` | |
6635 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6636 | $as_echo "$ac_res" >&6; } | |
6637 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6638 | $as_echo "$as_val"'` | |
6639 | if test "x$as_val" = x""yes; then | |
6640 | cat >>confdefs.h <<_ACEOF | |
6641 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6642 | _ACEOF | |
6643 | ||
6644 | fi | |
6645 | done | |
6646 | ||
ad6254c5 AK |
6647 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6648 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6649 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6650 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6651 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6652 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6653 | else |
6654 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6655 | /* confdefs.h. */ |
6656 | _ACEOF | |
6657 | cat confdefs.h >>conftest.$ac_ext | |
6658 | cat >>conftest.$ac_ext <<_ACEOF | |
6659 | /* end confdefs.h. */ | |
6660 | #include <alloca.h> | |
6661 | int | |
6662 | main () | |
6663 | { | |
6664 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6665 | if (p) return 0; |
ad6254c5 AK |
6666 | ; |
6667 | return 0; | |
6668 | } | |
6669 | _ACEOF | |
6670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6671 | if { (ac_try="$ac_link" |
6672 | case "(($ac_try" in | |
6673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6674 | *) ac_try_echo=$ac_try;; | |
6675 | esac | |
ec6a6fbe AK |
6676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6677 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6678 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6679 | ac_status=$? |
8a2fc586 AK |
6680 | grep -v '^ *+' conftest.er1 >conftest.err |
6681 | rm -f conftest.er1 | |
6682 | cat conftest.err >&5 | |
ec6a6fbe | 6683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6684 | (exit $ac_status); } && { |
6685 | test -z "$ac_c_werror_flag" || | |
6686 | test ! -s conftest.err | |
ec6a6fbe AK |
6687 | } && test -s conftest$ac_exeext && { |
6688 | test "$cross_compiling" = yes || | |
6689 | $as_test_x conftest$ac_exeext | |
6690 | }; then | |
ad6254c5 AK |
6691 | ac_cv_working_alloca_h=yes |
6692 | else | |
ec6a6fbe | 6693 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6694 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6695 | |
7a197a62 | 6696 | ac_cv_working_alloca_h=no |
ad6254c5 | 6697 | fi |
7a197a62 | 6698 | |
ec6a6fbe | 6699 | rm -rf conftest.dSYM |
25fbec5b | 6700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6701 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6702 | fi |
ec6a6fbe AK |
6703 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6704 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6705 | if test $ac_cv_working_alloca_h = yes; then |
6706 | ||
6707 | cat >>confdefs.h <<\_ACEOF | |
6708 | #define HAVE_ALLOCA_H 1 | |
6709 | _ACEOF | |
6710 | ||
6711 | fi | |
6712 | ||
ec6a6fbe AK |
6713 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6714 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6715 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6716 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6717 | else |
6718 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6719 | /* confdefs.h. */ |
6720 | _ACEOF | |
6721 | cat confdefs.h >>conftest.$ac_ext | |
6722 | cat >>conftest.$ac_ext <<_ACEOF | |
6723 | /* end confdefs.h. */ | |
6724 | #ifdef __GNUC__ | |
6725 | # define alloca __builtin_alloca | |
6726 | #else | |
6727 | # ifdef _MSC_VER | |
6728 | # include <malloc.h> | |
6729 | # define alloca _alloca | |
6730 | # else | |
25fbec5b | 6731 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6732 | # include <alloca.h> |
6733 | # else | |
6734 | # ifdef _AIX | |
6735 | #pragma alloca | |
6736 | # else | |
6737 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6738 | char *alloca (); | |
6739 | # endif | |
6740 | # endif | |
6741 | # endif | |
6742 | # endif | |
6743 | #endif | |
6744 | ||
6745 | int | |
6746 | main () | |
6747 | { | |
6748 | char *p = (char *) alloca (1); | |
7a197a62 | 6749 | if (p) return 0; |
ad6254c5 AK |
6750 | ; |
6751 | return 0; | |
6752 | } | |
6753 | _ACEOF | |
6754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6755 | if { (ac_try="$ac_link" |
6756 | case "(($ac_try" in | |
6757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6758 | *) ac_try_echo=$ac_try;; | |
6759 | esac | |
ec6a6fbe AK |
6760 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6761 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6762 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6763 | ac_status=$? |
8a2fc586 AK |
6764 | grep -v '^ *+' conftest.er1 >conftest.err |
6765 | rm -f conftest.er1 | |
6766 | cat conftest.err >&5 | |
ec6a6fbe | 6767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6768 | (exit $ac_status); } && { |
6769 | test -z "$ac_c_werror_flag" || | |
6770 | test ! -s conftest.err | |
ec6a6fbe AK |
6771 | } && test -s conftest$ac_exeext && { |
6772 | test "$cross_compiling" = yes || | |
6773 | $as_test_x conftest$ac_exeext | |
6774 | }; then | |
ad6254c5 AK |
6775 | ac_cv_func_alloca_works=yes |
6776 | else | |
ec6a6fbe | 6777 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6778 | sed 's/^/| /' conftest.$ac_ext >&5 |
6779 | ||
7a197a62 | 6780 | ac_cv_func_alloca_works=no |
ad6254c5 | 6781 | fi |
7a197a62 | 6782 | |
ec6a6fbe | 6783 | rm -rf conftest.dSYM |
25fbec5b | 6784 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6785 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6786 | fi |
ec6a6fbe AK |
6787 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6788 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6789 | |
6790 | if test $ac_cv_func_alloca_works = yes; then | |
6791 | ||
6792 | cat >>confdefs.h <<\_ACEOF | |
6793 | #define HAVE_ALLOCA 1 | |
6794 | _ACEOF | |
6795 | ||
6796 | else | |
6797 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6798 | # that cause trouble. Some versions do not even contain alloca or | |
6799 | # contain a buggy version. If you still want to use their alloca, | |
6800 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6801 | ||
7a197a62 | 6802 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6803 | |
6804 | cat >>confdefs.h <<\_ACEOF | |
6805 | #define C_ALLOCA 1 | |
6806 | _ACEOF | |
6807 | ||
6808 | ||
ec6a6fbe AK |
6809 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6810 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6811 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6812 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6813 | else |
6814 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6815 | /* confdefs.h. */ |
6816 | _ACEOF | |
6817 | cat confdefs.h >>conftest.$ac_ext | |
6818 | cat >>conftest.$ac_ext <<_ACEOF | |
6819 | /* end confdefs.h. */ | |
7a197a62 | 6820 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6821 | webecray |
6822 | #else | |
6823 | wenotbecray | |
6824 | #endif | |
6825 | ||
6826 | _ACEOF | |
795ca3e5 | 6827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6828 | $EGREP "webecray" >/dev/null 2>&1; then |
6829 | ac_cv_os_cray=yes | |
6830 | else | |
6831 | ac_cv_os_cray=no | |
795ca3e5 AK |
6832 | fi |
6833 | rm -f conftest* | |
6834 | ||
795ca3e5 | 6835 | fi |
ec6a6fbe AK |
6836 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6837 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6838 | if test $ac_cv_os_cray = yes; then |
6839 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6840 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6841 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6842 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6843 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6844 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6845 | else |
6846 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6847 | /* confdefs.h. */ |
6848 | _ACEOF | |
6849 | cat confdefs.h >>conftest.$ac_ext | |
6850 | cat >>conftest.$ac_ext <<_ACEOF | |
6851 | /* end confdefs.h. */ | |
8a2fc586 AK |
6852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6854 | #define $ac_func innocuous_$ac_func | |
6855 | ||
ad6254c5 AK |
6856 | /* System header to define __stub macros and hopefully few prototypes, |
6857 | which can conflict with char $ac_func (); below. | |
6858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6859 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6860 | |
ad6254c5 AK |
6861 | #ifdef __STDC__ |
6862 | # include <limits.h> | |
6863 | #else | |
6864 | # include <assert.h> | |
6865 | #endif | |
8a2fc586 AK |
6866 | |
6867 | #undef $ac_func | |
6868 | ||
7a197a62 AK |
6869 | /* Override any GCC internal prototype to avoid an error. |
6870 | Use char because int might match the return type of a GCC | |
6871 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6872 | #ifdef __cplusplus |
6873 | extern "C" | |
ad6254c5 | 6874 | #endif |
ad6254c5 AK |
6875 | char $ac_func (); |
6876 | /* The GNU C library defines this for functions which it implements | |
6877 | to always fail with ENOSYS. Some functions are actually named | |
6878 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6879 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6880 | choke me |
ad6254c5 AK |
6881 | #endif |
6882 | ||
6883 | int | |
6884 | main () | |
6885 | { | |
7a197a62 | 6886 | return $ac_func (); |
ad6254c5 AK |
6887 | ; |
6888 | return 0; | |
6889 | } | |
6890 | _ACEOF | |
6891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6892 | if { (ac_try="$ac_link" |
6893 | case "(($ac_try" in | |
6894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6895 | *) ac_try_echo=$ac_try;; | |
6896 | esac | |
ec6a6fbe AK |
6897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6898 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6899 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6900 | ac_status=$? |
8a2fc586 AK |
6901 | grep -v '^ *+' conftest.er1 >conftest.err |
6902 | rm -f conftest.er1 | |
6903 | cat conftest.err >&5 | |
ec6a6fbe | 6904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6905 | (exit $ac_status); } && { |
6906 | test -z "$ac_c_werror_flag" || | |
6907 | test ! -s conftest.err | |
ec6a6fbe AK |
6908 | } && test -s conftest$ac_exeext && { |
6909 | test "$cross_compiling" = yes || | |
6910 | $as_test_x conftest$ac_exeext | |
6911 | }; then | |
ad6254c5 AK |
6912 | eval "$as_ac_var=yes" |
6913 | else | |
ec6a6fbe | 6914 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6915 | sed 's/^/| /' conftest.$ac_ext >&5 |
6916 | ||
7a197a62 | 6917 | eval "$as_ac_var=no" |
ad6254c5 | 6918 | fi |
7a197a62 | 6919 | |
ec6a6fbe | 6920 | rm -rf conftest.dSYM |
25fbec5b | 6921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6922 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6923 | fi |
ec6a6fbe AK |
6924 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6925 | $as_echo "$as_val"'` | |
6926 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6927 | $as_echo "$ac_res" >&6; } | |
6928 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6929 | $as_echo "$as_val"'` | |
6930 | if test "x$as_val" = x""yes; then | |
80992638 | 6931 | |
ad6254c5 AK |
6932 | cat >>confdefs.h <<_ACEOF |
6933 | #define CRAY_STACKSEG_END $ac_func | |
6934 | _ACEOF | |
6935 | ||
6936 | break | |
6937 | fi | |
6938 | ||
6939 | done | |
6940 | fi | |
6941 | ||
ec6a6fbe AK |
6942 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6943 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6944 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6945 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6946 | else |
6947 | if test "$cross_compiling" = yes; then | |
6948 | ac_cv_c_stack_direction=0 | |
6949 | else | |
6950 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6951 | /* confdefs.h. */ |
6952 | _ACEOF | |
6953 | cat confdefs.h >>conftest.$ac_ext | |
6954 | cat >>conftest.$ac_ext <<_ACEOF | |
6955 | /* end confdefs.h. */ | |
7a197a62 | 6956 | $ac_includes_default |
ad6254c5 AK |
6957 | int |
6958 | find_stack_direction () | |
6959 | { | |
6960 | static char *addr = 0; | |
6961 | auto char dummy; | |
6962 | if (addr == 0) | |
6963 | { | |
6964 | addr = &dummy; | |
6965 | return find_stack_direction (); | |
6966 | } | |
6967 | else | |
6968 | return (&dummy > addr) ? 1 : -1; | |
6969 | } | |
6970 | ||
6971 | int | |
6972 | main () | |
6973 | { | |
7a197a62 | 6974 | return find_stack_direction () < 0; |
ad6254c5 AK |
6975 | } |
6976 | _ACEOF | |
6977 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6978 | if { (ac_try="$ac_link" |
6979 | case "(($ac_try" in | |
6980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6981 | *) ac_try_echo=$ac_try;; | |
6982 | esac | |
ec6a6fbe AK |
6983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6984 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6985 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6986 | ac_status=$? |
ec6a6fbe | 6987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6989 | { (case "(($ac_try" in |
6990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6991 | *) ac_try_echo=$ac_try;; | |
6992 | esac | |
ec6a6fbe AK |
6993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6994 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6995 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6996 | ac_status=$? |
ec6a6fbe | 6997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6998 | (exit $ac_status); }; }; then |
6999 | ac_cv_c_stack_direction=1 | |
7000 | else | |
ec6a6fbe AK |
7001 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7002 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7003 | sed 's/^/| /' conftest.$ac_ext >&5 |
7004 | ||
7005 | ( exit $ac_status ) | |
7006 | ac_cv_c_stack_direction=-1 | |
7007 | fi | |
ec6a6fbe | 7008 | rm -rf conftest.dSYM |
7a197a62 | 7009 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7010 | fi |
7a197a62 AK |
7011 | |
7012 | ||
ad6254c5 | 7013 | fi |
ec6a6fbe AK |
7014 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7015 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
7016 | |
7017 | cat >>confdefs.h <<_ACEOF | |
7018 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7019 | _ACEOF | |
7020 | ||
7021 | ||
7022 | fi | |
7023 | ||
ec6a6fbe AK |
7024 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
7025 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 7026 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 7027 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7028 | else |
7029 | if test "$cross_compiling" = yes; then | |
7030 | ac_cv_func_closedir_void=yes | |
7031 | else | |
7032 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7033 | /* confdefs.h. */ |
7034 | _ACEOF | |
7035 | cat confdefs.h >>conftest.$ac_ext | |
7036 | cat >>conftest.$ac_ext <<_ACEOF | |
7037 | /* end confdefs.h. */ | |
7038 | $ac_includes_default | |
7039 | #include <$ac_header_dirent> | |
7040 | #ifndef __cplusplus | |
7041 | int closedir (); | |
7042 | #endif | |
7043 | ||
7044 | int | |
7045 | main () | |
7046 | { | |
7a197a62 | 7047 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
7048 | ; |
7049 | return 0; | |
7050 | } | |
7051 | _ACEOF | |
7052 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7053 | if { (ac_try="$ac_link" |
7054 | case "(($ac_try" in | |
7055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7056 | *) ac_try_echo=$ac_try;; | |
7057 | esac | |
ec6a6fbe AK |
7058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7059 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7060 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7061 | ac_status=$? |
ec6a6fbe | 7062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7064 | { (case "(($ac_try" in |
7065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7066 | *) ac_try_echo=$ac_try;; | |
7067 | esac | |
ec6a6fbe AK |
7068 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7069 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7070 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7071 | ac_status=$? |
ec6a6fbe | 7072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7073 | (exit $ac_status); }; }; then |
7074 | ac_cv_func_closedir_void=no | |
7075 | else | |
ec6a6fbe AK |
7076 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7077 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7078 | sed 's/^/| /' conftest.$ac_ext >&5 |
7079 | ||
7080 | ( exit $ac_status ) | |
7081 | ac_cv_func_closedir_void=yes | |
7082 | fi | |
ec6a6fbe | 7083 | rm -rf conftest.dSYM |
7a197a62 | 7084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7085 | fi |
7a197a62 AK |
7086 | |
7087 | ||
ad6254c5 | 7088 | fi |
ec6a6fbe AK |
7089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
7090 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
7091 | if test $ac_cv_func_closedir_void = yes; then |
7092 | ||
7093 | cat >>confdefs.h <<\_ACEOF | |
7094 | #define CLOSEDIR_VOID 1 | |
7095 | _ACEOF | |
7096 | ||
7097 | fi | |
7098 | ||
7099 | ||
7a197a62 | 7100 | for ac_header in vfork.h |
ad6254c5 | 7101 | do |
ec6a6fbe | 7102 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7103 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7104 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7105 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7107 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7108 | fi |
ec6a6fbe AK |
7109 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7110 | $as_echo "$as_val"'` | |
7111 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7112 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7113 | else |
7114 | # Is the header compilable? | |
ec6a6fbe AK |
7115 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7116 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7117 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7118 | /* confdefs.h. */ |
7119 | _ACEOF | |
7120 | cat confdefs.h >>conftest.$ac_ext | |
7121 | cat >>conftest.$ac_ext <<_ACEOF | |
7122 | /* end confdefs.h. */ | |
7123 | $ac_includes_default | |
7124 | #include <$ac_header> | |
7125 | _ACEOF | |
7126 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7127 | if { (ac_try="$ac_compile" |
7128 | case "(($ac_try" in | |
7129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7130 | *) ac_try_echo=$ac_try;; | |
7131 | esac | |
ec6a6fbe AK |
7132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7133 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7134 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7135 | ac_status=$? |
8a2fc586 AK |
7136 | grep -v '^ *+' conftest.er1 >conftest.err |
7137 | rm -f conftest.er1 | |
7138 | cat conftest.err >&5 | |
ec6a6fbe | 7139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7140 | (exit $ac_status); } && { |
7141 | test -z "$ac_c_werror_flag" || | |
7142 | test ! -s conftest.err | |
7143 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7144 | ac_header_compiler=yes |
7145 | else | |
ec6a6fbe | 7146 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7147 | sed 's/^/| /' conftest.$ac_ext >&5 |
7148 | ||
7a197a62 | 7149 | ac_header_compiler=no |
ad6254c5 | 7150 | fi |
7a197a62 AK |
7151 | |
7152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7153 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7154 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7155 | |
7156 | # Is the header present? | |
ec6a6fbe AK |
7157 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7158 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7159 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7160 | /* confdefs.h. */ |
7161 | _ACEOF | |
7162 | cat confdefs.h >>conftest.$ac_ext | |
7163 | cat >>conftest.$ac_ext <<_ACEOF | |
7164 | /* end confdefs.h. */ | |
7165 | #include <$ac_header> | |
7166 | _ACEOF | |
7a197a62 AK |
7167 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7168 | case "(($ac_try" in | |
7169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7170 | *) ac_try_echo=$ac_try;; | |
7171 | esac | |
ec6a6fbe AK |
7172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7173 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7174 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7175 | ac_status=$? |
7176 | grep -v '^ *+' conftest.er1 >conftest.err | |
7177 | rm -f conftest.er1 | |
7178 | cat conftest.err >&5 | |
ec6a6fbe | 7179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7180 | (exit $ac_status); } >/dev/null && { |
7181 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7182 | test ! -s conftest.err | |
7183 | }; then | |
ad6254c5 AK |
7184 | ac_header_preproc=yes |
7185 | else | |
ec6a6fbe | 7186 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7187 | sed 's/^/| /' conftest.$ac_ext >&5 |
7188 | ||
7189 | ac_header_preproc=no | |
7190 | fi | |
7a197a62 | 7191 | |
ad6254c5 | 7192 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7193 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7194 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7195 | |
7196 | # So? What about this header? | |
8a2fc586 AK |
7197 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7198 | yes:no: ) | |
ec6a6fbe AK |
7199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7200 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7202 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7203 | ac_header_preproc=yes |
ad6254c5 | 7204 | ;; |
8a2fc586 | 7205 | no:yes:* ) |
ec6a6fbe AK |
7206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7207 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7209 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7211 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7212 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7213 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7215 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7216 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7217 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7218 | |
ad6254c5 AK |
7219 | ;; |
7220 | esac | |
ec6a6fbe AK |
7221 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7222 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7224 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7225 | else |
8a2fc586 | 7226 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7227 | fi |
ec6a6fbe AK |
7228 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7229 | $as_echo "$as_val"'` | |
7230 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7231 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7232 | |
795ca3e5 | 7233 | fi |
ec6a6fbe AK |
7234 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7235 | $as_echo "$as_val"'` | |
7236 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7237 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7238 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7239 | _ACEOF |
7240 | ||
7241 | fi | |
7242 | ||
7243 | done | |
795ca3e5 | 7244 | |
ad6254c5 AK |
7245 | |
7246 | ||
7247 | for ac_func in fork vfork | |
7248 | do | |
ec6a6fbe AK |
7249 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7250 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7251 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7252 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7253 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7254 | else |
ad6254c5 | 7255 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7256 | /* confdefs.h. */ |
7257 | _ACEOF | |
7258 | cat confdefs.h >>conftest.$ac_ext | |
7259 | cat >>conftest.$ac_ext <<_ACEOF | |
7260 | /* end confdefs.h. */ | |
8a2fc586 AK |
7261 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7262 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7263 | #define $ac_func innocuous_$ac_func | |
7264 | ||
ad6254c5 AK |
7265 | /* System header to define __stub macros and hopefully few prototypes, |
7266 | which can conflict with char $ac_func (); below. | |
7267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7268 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7269 | |
ad6254c5 AK |
7270 | #ifdef __STDC__ |
7271 | # include <limits.h> | |
7272 | #else | |
7273 | # include <assert.h> | |
795ca3e5 | 7274 | #endif |
8a2fc586 AK |
7275 | |
7276 | #undef $ac_func | |
7277 | ||
7a197a62 AK |
7278 | /* Override any GCC internal prototype to avoid an error. |
7279 | Use char because int might match the return type of a GCC | |
7280 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7281 | #ifdef __cplusplus |
ad6254c5 | 7282 | extern "C" |
ad6254c5 | 7283 | #endif |
ad6254c5 AK |
7284 | char $ac_func (); |
7285 | /* The GNU C library defines this for functions which it implements | |
7286 | to always fail with ENOSYS. Some functions are actually named | |
7287 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7288 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7289 | choke me |
795ca3e5 AK |
7290 | #endif |
7291 | ||
ad6254c5 AK |
7292 | int |
7293 | main () | |
7294 | { | |
7a197a62 | 7295 | return $ac_func (); |
ad6254c5 AK |
7296 | ; |
7297 | return 0; | |
7298 | } | |
7299 | _ACEOF | |
7300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7301 | if { (ac_try="$ac_link" |
7302 | case "(($ac_try" in | |
7303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7304 | *) ac_try_echo=$ac_try;; | |
7305 | esac | |
ec6a6fbe AK |
7306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7307 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7308 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7309 | ac_status=$? |
8a2fc586 AK |
7310 | grep -v '^ *+' conftest.er1 >conftest.err |
7311 | rm -f conftest.er1 | |
7312 | cat conftest.err >&5 | |
ec6a6fbe | 7313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7314 | (exit $ac_status); } && { |
7315 | test -z "$ac_c_werror_flag" || | |
7316 | test ! -s conftest.err | |
ec6a6fbe AK |
7317 | } && test -s conftest$ac_exeext && { |
7318 | test "$cross_compiling" = yes || | |
7319 | $as_test_x conftest$ac_exeext | |
7320 | }; then | |
ad6254c5 | 7321 | eval "$as_ac_var=yes" |
795ca3e5 | 7322 | else |
ec6a6fbe | 7323 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7324 | sed 's/^/| /' conftest.$ac_ext >&5 |
7325 | ||
7a197a62 | 7326 | eval "$as_ac_var=no" |
795ca3e5 | 7327 | fi |
7a197a62 | 7328 | |
ec6a6fbe | 7329 | rm -rf conftest.dSYM |
25fbec5b | 7330 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7331 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7332 | fi |
ec6a6fbe AK |
7333 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7334 | $as_echo "$as_val"'` | |
7335 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7336 | $as_echo "$ac_res" >&6; } | |
7337 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7338 | $as_echo "$as_val"'` | |
7339 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7340 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7341 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7342 | _ACEOF |
7343 | ||
7344 | fi | |
7345 | done | |
7346 | ||
7347 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7348 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7349 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7350 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7351 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7352 | else |
7353 | if test "$cross_compiling" = yes; then | |
7354 | ac_cv_func_fork_works=cross | |
7355 | else | |
7356 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7357 | /* confdefs.h. */ |
7358 | _ACEOF | |
7359 | cat confdefs.h >>conftest.$ac_ext | |
7360 | cat >>conftest.$ac_ext <<_ACEOF | |
7361 | /* end confdefs.h. */ | |
7362 | $ac_includes_default | |
7363 | int | |
7364 | main () | |
7365 | { | |
7366 | ||
7367 | /* By Ruediger Kuhlmann. */ | |
7368 | return fork () < 0; | |
7369 | ||
7370 | ; | |
7371 | return 0; | |
7372 | } | |
ad6254c5 AK |
7373 | _ACEOF |
7374 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7375 | if { (ac_try="$ac_link" |
7376 | case "(($ac_try" in | |
7377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7378 | *) ac_try_echo=$ac_try;; | |
7379 | esac | |
ec6a6fbe AK |
7380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7381 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7382 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7383 | ac_status=$? |
ec6a6fbe | 7384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7385 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7386 | { (case "(($ac_try" in |
7387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7388 | *) ac_try_echo=$ac_try;; | |
7389 | esac | |
ec6a6fbe AK |
7390 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7391 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7392 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7393 | ac_status=$? |
ec6a6fbe | 7394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7395 | (exit $ac_status); }; }; then |
7396 | ac_cv_func_fork_works=yes | |
7397 | else | |
ec6a6fbe AK |
7398 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7399 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7400 | sed 's/^/| /' conftest.$ac_ext >&5 |
7401 | ||
7402 | ( exit $ac_status ) | |
7403 | ac_cv_func_fork_works=no | |
7404 | fi | |
ec6a6fbe | 7405 | rm -rf conftest.dSYM |
7a197a62 | 7406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7407 | fi |
7a197a62 AK |
7408 | |
7409 | ||
ad6254c5 | 7410 | fi |
ec6a6fbe AK |
7411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7412 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7413 | |
7414 | else | |
7415 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7416 | fi | |
7417 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7418 | case $host in | |
7419 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7420 | # Override, as these systems have only a dummy fork() stub | |
7421 | ac_cv_func_fork_works=no | |
7422 | ;; | |
7423 | *) | |
7424 | ac_cv_func_fork_works=yes | |
7425 | ;; | |
7426 | esac | |
ec6a6fbe AK |
7427 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7428 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7429 | fi |
7430 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7431 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7432 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7433 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7434 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7435 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7436 | else |
7437 | if test "$cross_compiling" = yes; then | |
7438 | ac_cv_func_vfork_works=cross | |
7439 | else | |
7440 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7441 | /* confdefs.h. */ |
7442 | _ACEOF | |
7443 | cat confdefs.h >>conftest.$ac_ext | |
7444 | cat >>conftest.$ac_ext <<_ACEOF | |
7445 | /* end confdefs.h. */ | |
7446 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7447 | $ac_includes_default |
ad6254c5 | 7448 | #include <sys/wait.h> |
25fbec5b | 7449 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7450 | # include <vfork.h> |
7451 | #endif | |
7452 | /* On some sparc systems, changes by the child to local and incoming | |
7453 | argument registers are propagated back to the parent. The compiler | |
7454 | is told about this with #include <vfork.h>, but some compilers | |
7455 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7456 | static variable whose address is put into a register that is | |
7457 | clobbered by the vfork. */ | |
7458 | static void | |
7459 | #ifdef __cplusplus | |
7460 | sparc_address_test (int arg) | |
7461 | # else | |
7462 | sparc_address_test (arg) int arg; | |
7463 | #endif | |
7464 | { | |
7465 | static pid_t child; | |
7466 | if (!child) { | |
7467 | child = vfork (); | |
7468 | if (child < 0) { | |
7469 | perror ("vfork"); | |
7470 | _exit(2); | |
7471 | } | |
7472 | if (!child) { | |
7473 | arg = getpid(); | |
7474 | write(-1, "", 0); | |
7475 | _exit (arg); | |
7476 | } | |
7477 | } | |
7478 | } | |
7479 | ||
7480 | int | |
7481 | main () | |
7482 | { | |
7483 | pid_t parent = getpid (); | |
7484 | pid_t child; | |
7485 | ||
7486 | sparc_address_test (0); | |
7487 | ||
7488 | child = vfork (); | |
7489 | ||
7490 | if (child == 0) { | |
7491 | /* Here is another test for sparc vfork register problems. This | |
7492 | test uses lots of local variables, at least as many local | |
7493 | variables as main has allocated so far including compiler | |
7494 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7495 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7496 | reuse the register of parent for one of the local variables, | |
7497 | since it will think that parent can't possibly be used any more | |
7498 | in this routine. Assigning to the local variable will thus | |
7499 | munge parent in the parent process. */ | |
7500 | pid_t | |
7501 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7502 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7503 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7504 | use the same hardware register for all 8 local variables. */ | |
7505 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7506 | || p != p5 || p != p6 || p != p7) | |
7507 | _exit(1); | |
7508 | ||
7509 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7510 | from child file descriptors. If the child closes a descriptor | |
7511 | before it execs or exits, this munges the parent's descriptor | |
7512 | as well. Test for this by closing stdout in the child. */ | |
7513 | _exit(close(fileno(stdout)) != 0); | |
7514 | } else { | |
7515 | int status; | |
7516 | struct stat st; | |
7517 | ||
7518 | while (wait(&status) != child) | |
7519 | ; | |
7a197a62 | 7520 | return ( |
ad6254c5 AK |
7521 | /* Was there some problem with vforking? */ |
7522 | child < 0 | |
7523 | ||
7524 | /* Did the child fail? (This shouldn't happen.) */ | |
7525 | || status | |
7526 | ||
7527 | /* Did the vfork/compiler bug occur? */ | |
7528 | || parent != getpid() | |
7529 | ||
7530 | /* Did the file descriptor bug occur? */ | |
7531 | || fstat(fileno(stdout), &st) != 0 | |
7532 | ); | |
7533 | } | |
7534 | } | |
7535 | _ACEOF | |
7536 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7537 | if { (ac_try="$ac_link" |
7538 | case "(($ac_try" in | |
7539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7540 | *) ac_try_echo=$ac_try;; | |
7541 | esac | |
ec6a6fbe AK |
7542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7543 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7544 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7545 | ac_status=$? |
ec6a6fbe | 7546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7548 | { (case "(($ac_try" in |
7549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7550 | *) ac_try_echo=$ac_try;; | |
7551 | esac | |
ec6a6fbe AK |
7552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7553 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7554 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7555 | ac_status=$? |
ec6a6fbe | 7556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7557 | (exit $ac_status); }; }; then |
7558 | ac_cv_func_vfork_works=yes | |
7559 | else | |
ec6a6fbe AK |
7560 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7561 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7562 | sed 's/^/| /' conftest.$ac_ext >&5 |
7563 | ||
7564 | ( exit $ac_status ) | |
7565 | ac_cv_func_vfork_works=no | |
7566 | fi | |
ec6a6fbe | 7567 | rm -rf conftest.dSYM |
7a197a62 | 7568 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7569 | fi |
7a197a62 AK |
7570 | |
7571 | ||
ad6254c5 | 7572 | fi |
ec6a6fbe AK |
7573 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7574 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7575 | |
7576 | fi; | |
7577 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7578 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7579 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7580 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7581 | fi |
7582 | ||
7583 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7584 | ||
7585 | cat >>confdefs.h <<\_ACEOF | |
7586 | #define HAVE_WORKING_VFORK 1 | |
7587 | _ACEOF | |
7588 | ||
7589 | else | |
7590 | ||
7591 | cat >>confdefs.h <<\_ACEOF | |
7592 | #define vfork fork | |
7593 | _ACEOF | |
7594 | ||
7595 | fi | |
7596 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7597 | ||
7598 | cat >>confdefs.h <<\_ACEOF | |
7599 | #define HAVE_WORKING_FORK 1 | |
7600 | _ACEOF | |
7601 | ||
7602 | fi | |
7603 | ||
ec6a6fbe AK |
7604 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7605 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7606 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7607 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7608 | else |
7609 | rm -f conftest.sym conftest.file | |
7610 | echo >conftest.file | |
7611 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7612 | if test "$cross_compiling" = yes; then | |
7613 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7614 | else | |
7615 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7616 | /* confdefs.h. */ |
7617 | _ACEOF | |
7618 | cat confdefs.h >>conftest.$ac_ext | |
7619 | cat >>conftest.$ac_ext <<_ACEOF | |
7620 | /* end confdefs.h. */ | |
7621 | $ac_includes_default | |
7622 | int | |
7623 | main () | |
7624 | { | |
7625 | struct stat sbuf; | |
7626 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7627 | That is better in the sense that it means we will not |
7628 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7629 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7630 | ; |
7631 | return 0; | |
7632 | } | |
7633 | _ACEOF | |
7634 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7635 | if { (ac_try="$ac_link" |
7636 | case "(($ac_try" in | |
7637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7638 | *) ac_try_echo=$ac_try;; | |
7639 | esac | |
ec6a6fbe AK |
7640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7641 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7642 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7643 | ac_status=$? |
ec6a6fbe | 7644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7646 | { (case "(($ac_try" in |
7647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7648 | *) ac_try_echo=$ac_try;; | |
7649 | esac | |
ec6a6fbe AK |
7650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7651 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7652 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7653 | ac_status=$? |
ec6a6fbe | 7654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7655 | (exit $ac_status); }; }; then |
7656 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7657 | else | |
ec6a6fbe AK |
7658 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7659 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7660 | sed 's/^/| /' conftest.$ac_ext >&5 |
7661 | ||
7662 | ( exit $ac_status ) | |
7663 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7664 | fi | |
ec6a6fbe | 7665 | rm -rf conftest.dSYM |
7a197a62 | 7666 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7667 | fi |
7a197a62 AK |
7668 | |
7669 | ||
ad6254c5 AK |
7670 | else |
7671 | # If the `ln -s' command failed, then we probably don't even | |
7672 | # have an lstat function. | |
7673 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7674 | fi | |
7675 | rm -f conftest.sym conftest.file | |
7676 | ||
7677 | fi | |
ec6a6fbe AK |
7678 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7679 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7680 | |
7681 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7682 | ||
7683 | cat >>confdefs.h <<_ACEOF | |
7684 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7685 | _ACEOF | |
7686 | ||
7687 | ||
7688 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7689 | case " $LIBOBJS " in |
8a2fc586 | 7690 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7691 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7692 | ;; | |
8a2fc586 AK |
7693 | esac |
7694 | ||
ad6254c5 AK |
7695 | fi |
7696 | ||
ec6a6fbe AK |
7697 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7698 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7699 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7700 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7701 | else |
7702 | if test "$cross_compiling" = yes; then | |
7703 | ac_cv_func_lstat_empty_string_bug=yes | |
7704 | else | |
7705 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7706 | /* confdefs.h. */ |
7707 | _ACEOF | |
7708 | cat confdefs.h >>conftest.$ac_ext | |
7709 | cat >>conftest.$ac_ext <<_ACEOF | |
7710 | /* end confdefs.h. */ | |
7711 | $ac_includes_default | |
7712 | int | |
7713 | main () | |
7714 | { | |
7715 | struct stat sbuf; | |
7a197a62 | 7716 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7717 | ; |
7718 | return 0; | |
7719 | } | |
7720 | _ACEOF | |
7721 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7722 | if { (ac_try="$ac_link" |
7723 | case "(($ac_try" in | |
7724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7725 | *) ac_try_echo=$ac_try;; | |
7726 | esac | |
ec6a6fbe AK |
7727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7728 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7729 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7730 | ac_status=$? |
ec6a6fbe | 7731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7733 | { (case "(($ac_try" in |
7734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7735 | *) ac_try_echo=$ac_try;; | |
7736 | esac | |
ec6a6fbe AK |
7737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7738 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7739 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7740 | ac_status=$? |
ec6a6fbe | 7741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7742 | (exit $ac_status); }; }; then |
7a197a62 | 7743 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7744 | else |
ec6a6fbe AK |
7745 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7746 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7747 | sed 's/^/| /' conftest.$ac_ext >&5 |
7748 | ||
7749 | ( exit $ac_status ) | |
7a197a62 | 7750 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7751 | fi |
ec6a6fbe | 7752 | rm -rf conftest.dSYM |
7a197a62 | 7753 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7754 | fi |
7a197a62 AK |
7755 | |
7756 | ||
ad6254c5 | 7757 | fi |
ec6a6fbe AK |
7758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7759 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7760 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7761 | case " $LIBOBJS " in |
8a2fc586 | 7762 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7763 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7764 | ;; | |
8a2fc586 AK |
7765 | esac |
7766 | ||
ad6254c5 AK |
7767 | |
7768 | cat >>confdefs.h <<_ACEOF | |
7769 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7770 | _ACEOF | |
7771 | ||
7772 | fi | |
7773 | ||
7774 | ||
7775 | for ac_header in stdlib.h | |
7776 | do | |
ec6a6fbe | 7777 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7779 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7780 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7781 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7782 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7783 | fi |
ec6a6fbe AK |
7784 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7785 | $as_echo "$as_val"'` | |
7786 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7787 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7788 | else |
7789 | # Is the header compilable? | |
ec6a6fbe AK |
7790 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7791 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7792 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7793 | /* confdefs.h. */ |
7794 | _ACEOF | |
7795 | cat confdefs.h >>conftest.$ac_ext | |
7796 | cat >>conftest.$ac_ext <<_ACEOF | |
7797 | /* end confdefs.h. */ | |
7798 | $ac_includes_default | |
7799 | #include <$ac_header> | |
7800 | _ACEOF | |
7801 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7802 | if { (ac_try="$ac_compile" |
7803 | case "(($ac_try" in | |
7804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7805 | *) ac_try_echo=$ac_try;; | |
7806 | esac | |
ec6a6fbe AK |
7807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7808 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7809 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7810 | ac_status=$? |
8a2fc586 AK |
7811 | grep -v '^ *+' conftest.er1 >conftest.err |
7812 | rm -f conftest.er1 | |
7813 | cat conftest.err >&5 | |
ec6a6fbe | 7814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7815 | (exit $ac_status); } && { |
7816 | test -z "$ac_c_werror_flag" || | |
7817 | test ! -s conftest.err | |
7818 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7819 | ac_header_compiler=yes |
7820 | else | |
ec6a6fbe | 7821 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7822 | sed 's/^/| /' conftest.$ac_ext >&5 |
7823 | ||
7a197a62 | 7824 | ac_header_compiler=no |
ad6254c5 | 7825 | fi |
7a197a62 AK |
7826 | |
7827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7828 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7829 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7830 | |
7831 | # Is the header present? | |
ec6a6fbe AK |
7832 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7833 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7834 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7835 | /* confdefs.h. */ |
7836 | _ACEOF | |
7837 | cat confdefs.h >>conftest.$ac_ext | |
7838 | cat >>conftest.$ac_ext <<_ACEOF | |
7839 | /* end confdefs.h. */ | |
7840 | #include <$ac_header> | |
7841 | _ACEOF | |
7a197a62 AK |
7842 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7843 | case "(($ac_try" in | |
7844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7845 | *) ac_try_echo=$ac_try;; | |
7846 | esac | |
ec6a6fbe AK |
7847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7848 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7849 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7850 | ac_status=$? |
7851 | grep -v '^ *+' conftest.er1 >conftest.err | |
7852 | rm -f conftest.er1 | |
7853 | cat conftest.err >&5 | |
ec6a6fbe | 7854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7855 | (exit $ac_status); } >/dev/null && { |
7856 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7857 | test ! -s conftest.err | |
7858 | }; then | |
ad6254c5 AK |
7859 | ac_header_preproc=yes |
7860 | else | |
ec6a6fbe | 7861 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7862 | sed 's/^/| /' conftest.$ac_ext >&5 |
7863 | ||
7864 | ac_header_preproc=no | |
7865 | fi | |
7a197a62 | 7866 | |
ad6254c5 | 7867 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7868 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7869 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7870 | |
7871 | # So? What about this header? | |
8a2fc586 AK |
7872 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7873 | yes:no: ) | |
ec6a6fbe AK |
7874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7875 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7877 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7878 | ac_header_preproc=yes |
ad6254c5 | 7879 | ;; |
8a2fc586 | 7880 | no:yes:* ) |
ec6a6fbe AK |
7881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7882 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7884 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7886 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7887 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7888 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7889 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7890 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7891 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7892 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7893 | |
ad6254c5 AK |
7894 | ;; |
7895 | esac | |
ec6a6fbe AK |
7896 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7897 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7898 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7899 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7900 | else |
8a2fc586 | 7901 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7902 | fi |
ec6a6fbe AK |
7903 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7904 | $as_echo "$as_val"'` | |
7905 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7906 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7907 | |
7908 | fi | |
ec6a6fbe AK |
7909 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7910 | $as_echo "$as_val"'` | |
7911 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7912 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7913 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7914 | _ACEOF |
7915 | ||
7916 | fi | |
7917 | ||
7918 | done | |
7919 | ||
ec6a6fbe AK |
7920 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7921 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7922 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7923 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7924 | else |
7925 | if test "$cross_compiling" = yes; then | |
7926 | ac_cv_func_malloc_0_nonnull=no | |
7927 | else | |
7928 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7929 | /* confdefs.h. */ |
7930 | _ACEOF | |
7931 | cat confdefs.h >>conftest.$ac_ext | |
7932 | cat >>conftest.$ac_ext <<_ACEOF | |
7933 | /* end confdefs.h. */ | |
25fbec5b | 7934 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7935 | # include <stdlib.h> |
7936 | #else | |
7937 | char *malloc (); | |
7938 | #endif | |
7939 | ||
7940 | int | |
7941 | main () | |
7942 | { | |
7a197a62 | 7943 | return ! malloc (0); |
ad6254c5 AK |
7944 | ; |
7945 | return 0; | |
7946 | } | |
7947 | _ACEOF | |
7948 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7949 | if { (ac_try="$ac_link" |
7950 | case "(($ac_try" in | |
7951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7952 | *) ac_try_echo=$ac_try;; | |
7953 | esac | |
ec6a6fbe AK |
7954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7955 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7956 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7957 | ac_status=$? |
ec6a6fbe | 7958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7959 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7960 | { (case "(($ac_try" in |
7961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7962 | *) ac_try_echo=$ac_try;; | |
7963 | esac | |
ec6a6fbe AK |
7964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7965 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7966 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7967 | ac_status=$? |
ec6a6fbe | 7968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7969 | (exit $ac_status); }; }; then |
7970 | ac_cv_func_malloc_0_nonnull=yes | |
7971 | else | |
ec6a6fbe AK |
7972 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7973 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7974 | sed 's/^/| /' conftest.$ac_ext >&5 |
7975 | ||
7976 | ( exit $ac_status ) | |
7977 | ac_cv_func_malloc_0_nonnull=no | |
7978 | fi | |
ec6a6fbe | 7979 | rm -rf conftest.dSYM |
7a197a62 | 7980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7981 | fi |
7a197a62 AK |
7982 | |
7983 | ||
ad6254c5 | 7984 | fi |
ec6a6fbe AK |
7985 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7986 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7987 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7988 | ||
7989 | cat >>confdefs.h <<\_ACEOF | |
7990 | #define HAVE_MALLOC 1 | |
7991 | _ACEOF | |
7992 | ||
7993 | else | |
7994 | cat >>confdefs.h <<\_ACEOF | |
7995 | #define HAVE_MALLOC 0 | |
7996 | _ACEOF | |
7997 | ||
7a197a62 | 7998 | case " $LIBOBJS " in |
8a2fc586 | 7999 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
8000 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
8001 | ;; | |
8a2fc586 AK |
8002 | esac |
8003 | ||
ad6254c5 AK |
8004 | |
8005 | cat >>confdefs.h <<\_ACEOF | |
8006 | #define malloc rpl_malloc | |
8007 | _ACEOF | |
8008 | ||
8009 | fi | |
8010 | ||
8011 | ||
8012 | ||
ec6a6fbe AK |
8013 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
8014 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 8015 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 8016 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8017 | else |
8018 | if test "$cross_compiling" = yes; then | |
8019 | ac_cv_func_memcmp_working=no | |
8020 | else | |
8021 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8022 | /* confdefs.h. */ |
8023 | _ACEOF | |
8024 | cat confdefs.h >>conftest.$ac_ext | |
8025 | cat >>conftest.$ac_ext <<_ACEOF | |
8026 | /* end confdefs.h. */ | |
8a2fc586 | 8027 | $ac_includes_default |
ad6254c5 AK |
8028 | int |
8029 | main () | |
8030 | { | |
8031 | ||
8032 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 8033 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 8034 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 8035 | return 1; |
ad6254c5 AK |
8036 | |
8037 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8038 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8039 | William Lewis provided this test program. */ | |
8040 | { | |
8041 | char foo[21]; | |
8042 | char bar[21]; | |
8043 | int i; | |
8044 | for (i = 0; i < 4; i++) | |
8045 | { | |
8a2fc586 AK |
8046 | char *a = foo + i; |
8047 | char *b = bar + i; | |
8048 | strcpy (a, "--------01111111"); | |
8049 | strcpy (b, "--------10000000"); | |
8050 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 8051 | return 1; |
ad6254c5 | 8052 | } |
7a197a62 | 8053 | return 0; |
ad6254c5 AK |
8054 | } |
8055 | ||
8056 | ; | |
8057 | return 0; | |
8058 | } | |
8059 | _ACEOF | |
8060 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8061 | if { (ac_try="$ac_link" |
8062 | case "(($ac_try" in | |
8063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8064 | *) ac_try_echo=$ac_try;; | |
8065 | esac | |
ec6a6fbe AK |
8066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8067 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8068 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8069 | ac_status=$? |
ec6a6fbe | 8070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8072 | { (case "(($ac_try" in |
8073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8074 | *) ac_try_echo=$ac_try;; | |
8075 | esac | |
ec6a6fbe AK |
8076 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8077 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8078 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8079 | ac_status=$? |
ec6a6fbe | 8080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8081 | (exit $ac_status); }; }; then |
8082 | ac_cv_func_memcmp_working=yes | |
8083 | else | |
ec6a6fbe AK |
8084 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8085 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8086 | sed 's/^/| /' conftest.$ac_ext >&5 |
8087 | ||
8088 | ( exit $ac_status ) | |
8089 | ac_cv_func_memcmp_working=no | |
8090 | fi | |
ec6a6fbe | 8091 | rm -rf conftest.dSYM |
7a197a62 | 8092 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8093 | fi |
7a197a62 AK |
8094 | |
8095 | ||
ad6254c5 | 8096 | fi |
ec6a6fbe AK |
8097 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
8098 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 8099 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 8100 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
8101 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8102 | ;; | |
8a2fc586 AK |
8103 | esac |
8104 | ||
ad6254c5 AK |
8105 | |
8106 | ||
8107 | ||
8108 | for ac_header in stdlib.h unistd.h | |
8109 | do | |
ec6a6fbe | 8110 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8112 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8113 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8114 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8115 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8116 | fi |
ec6a6fbe AK |
8117 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8118 | $as_echo "$as_val"'` | |
8119 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8120 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8121 | else |
8122 | # Is the header compilable? | |
ec6a6fbe AK |
8123 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8124 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8125 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8126 | /* confdefs.h. */ |
8127 | _ACEOF | |
8128 | cat confdefs.h >>conftest.$ac_ext | |
8129 | cat >>conftest.$ac_ext <<_ACEOF | |
8130 | /* end confdefs.h. */ | |
8131 | $ac_includes_default | |
8132 | #include <$ac_header> | |
8133 | _ACEOF | |
8134 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8135 | if { (ac_try="$ac_compile" |
8136 | case "(($ac_try" in | |
8137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8138 | *) ac_try_echo=$ac_try;; | |
8139 | esac | |
ec6a6fbe AK |
8140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8141 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8142 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8143 | ac_status=$? |
8a2fc586 AK |
8144 | grep -v '^ *+' conftest.er1 >conftest.err |
8145 | rm -f conftest.er1 | |
8146 | cat conftest.err >&5 | |
ec6a6fbe | 8147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8148 | (exit $ac_status); } && { |
8149 | test -z "$ac_c_werror_flag" || | |
8150 | test ! -s conftest.err | |
8151 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8152 | ac_header_compiler=yes |
8153 | else | |
ec6a6fbe | 8154 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8155 | sed 's/^/| /' conftest.$ac_ext >&5 |
8156 | ||
7a197a62 | 8157 | ac_header_compiler=no |
ad6254c5 | 8158 | fi |
7a197a62 AK |
8159 | |
8160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8161 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8162 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8163 | |
8164 | # Is the header present? | |
ec6a6fbe AK |
8165 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8166 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8167 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8168 | /* confdefs.h. */ |
8169 | _ACEOF | |
8170 | cat confdefs.h >>conftest.$ac_ext | |
8171 | cat >>conftest.$ac_ext <<_ACEOF | |
8172 | /* end confdefs.h. */ | |
8173 | #include <$ac_header> | |
8174 | _ACEOF | |
7a197a62 AK |
8175 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8176 | case "(($ac_try" in | |
8177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8178 | *) ac_try_echo=$ac_try;; | |
8179 | esac | |
ec6a6fbe AK |
8180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8181 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8182 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8183 | ac_status=$? |
8184 | grep -v '^ *+' conftest.er1 >conftest.err | |
8185 | rm -f conftest.er1 | |
8186 | cat conftest.err >&5 | |
ec6a6fbe | 8187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8188 | (exit $ac_status); } >/dev/null && { |
8189 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8190 | test ! -s conftest.err | |
8191 | }; then | |
ad6254c5 AK |
8192 | ac_header_preproc=yes |
8193 | else | |
ec6a6fbe | 8194 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8195 | sed 's/^/| /' conftest.$ac_ext >&5 |
8196 | ||
8197 | ac_header_preproc=no | |
8198 | fi | |
7a197a62 | 8199 | |
ad6254c5 | 8200 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8201 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8202 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8203 | |
8204 | # So? What about this header? | |
8a2fc586 AK |
8205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8206 | yes:no: ) | |
ec6a6fbe AK |
8207 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8208 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8209 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8210 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8211 | ac_header_preproc=yes |
ad6254c5 | 8212 | ;; |
8a2fc586 | 8213 | no:yes:* ) |
ec6a6fbe AK |
8214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8215 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8216 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8217 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8218 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8219 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8220 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8221 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8222 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8223 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8225 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8226 | |
ad6254c5 AK |
8227 | ;; |
8228 | esac | |
ec6a6fbe AK |
8229 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8230 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8232 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8233 | else |
8a2fc586 | 8234 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8235 | fi |
ec6a6fbe AK |
8236 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8237 | $as_echo "$as_val"'` | |
8238 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8239 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8240 | |
8241 | fi | |
ec6a6fbe AK |
8242 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8243 | $as_echo "$as_val"'` | |
8244 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8245 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8246 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8247 | _ACEOF |
8248 | ||
8249 | fi | |
8250 | ||
8251 | done | |
8252 | ||
8253 | ||
8254 | for ac_func in getpagesize | |
8255 | do | |
ec6a6fbe AK |
8256 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8257 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8258 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8259 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8260 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8261 | else |
8262 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8263 | /* confdefs.h. */ |
8264 | _ACEOF | |
8265 | cat confdefs.h >>conftest.$ac_ext | |
8266 | cat >>conftest.$ac_ext <<_ACEOF | |
8267 | /* end confdefs.h. */ | |
8a2fc586 AK |
8268 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8269 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8270 | #define $ac_func innocuous_$ac_func | |
8271 | ||
ad6254c5 AK |
8272 | /* System header to define __stub macros and hopefully few prototypes, |
8273 | which can conflict with char $ac_func (); below. | |
8274 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8275 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8276 | |
ad6254c5 AK |
8277 | #ifdef __STDC__ |
8278 | # include <limits.h> | |
8279 | #else | |
8280 | # include <assert.h> | |
8281 | #endif | |
8a2fc586 AK |
8282 | |
8283 | #undef $ac_func | |
8284 | ||
7a197a62 AK |
8285 | /* Override any GCC internal prototype to avoid an error. |
8286 | Use char because int might match the return type of a GCC | |
8287 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8288 | #ifdef __cplusplus |
8289 | extern "C" | |
ad6254c5 | 8290 | #endif |
ad6254c5 AK |
8291 | char $ac_func (); |
8292 | /* The GNU C library defines this for functions which it implements | |
8293 | to always fail with ENOSYS. Some functions are actually named | |
8294 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8295 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8296 | choke me |
ad6254c5 AK |
8297 | #endif |
8298 | ||
8299 | int | |
8300 | main () | |
8301 | { | |
7a197a62 | 8302 | return $ac_func (); |
ad6254c5 AK |
8303 | ; |
8304 | return 0; | |
8305 | } | |
8306 | _ACEOF | |
8307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8308 | if { (ac_try="$ac_link" |
8309 | case "(($ac_try" in | |
8310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8311 | *) ac_try_echo=$ac_try;; | |
8312 | esac | |
ec6a6fbe AK |
8313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8314 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8315 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8316 | ac_status=$? |
8a2fc586 AK |
8317 | grep -v '^ *+' conftest.er1 >conftest.err |
8318 | rm -f conftest.er1 | |
8319 | cat conftest.err >&5 | |
ec6a6fbe | 8320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8321 | (exit $ac_status); } && { |
8322 | test -z "$ac_c_werror_flag" || | |
8323 | test ! -s conftest.err | |
ec6a6fbe AK |
8324 | } && test -s conftest$ac_exeext && { |
8325 | test "$cross_compiling" = yes || | |
8326 | $as_test_x conftest$ac_exeext | |
8327 | }; then | |
ad6254c5 AK |
8328 | eval "$as_ac_var=yes" |
8329 | else | |
ec6a6fbe | 8330 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8331 | sed 's/^/| /' conftest.$ac_ext >&5 |
8332 | ||
7a197a62 | 8333 | eval "$as_ac_var=no" |
ad6254c5 | 8334 | fi |
7a197a62 | 8335 | |
ec6a6fbe | 8336 | rm -rf conftest.dSYM |
25fbec5b | 8337 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8338 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8339 | fi |
ec6a6fbe AK |
8340 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8341 | $as_echo "$as_val"'` | |
8342 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8343 | $as_echo "$ac_res" >&6; } | |
8344 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8345 | $as_echo "$as_val"'` | |
8346 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8347 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8348 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8349 | _ACEOF |
8350 | ||
8351 | fi | |
8352 | done | |
8353 | ||
ec6a6fbe AK |
8354 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8355 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8356 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8357 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8358 | else |
8359 | if test "$cross_compiling" = yes; then | |
8360 | ac_cv_func_mmap_fixed_mapped=no | |
8361 | else | |
8362 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8363 | /* confdefs.h. */ |
8364 | _ACEOF | |
8365 | cat confdefs.h >>conftest.$ac_ext | |
8366 | cat >>conftest.$ac_ext <<_ACEOF | |
8367 | /* end confdefs.h. */ | |
8368 | $ac_includes_default | |
8369 | /* malloc might have been renamed as rpl_malloc. */ | |
8370 | #undef malloc | |
8371 | ||
8372 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8373 | Here is a matrix of mmap possibilities: | |
8374 | mmap private not fixed | |
8375 | mmap private fixed at somewhere currently unmapped | |
8376 | mmap private fixed at somewhere already mapped | |
8377 | mmap shared not fixed | |
8378 | mmap shared fixed at somewhere currently unmapped | |
8379 | mmap shared fixed at somewhere already mapped | |
8380 | For private mappings, we should verify that changes cannot be read() | |
8381 | back from the file, nor mmap's back from the file at a different | |
8382 | address. (There have been systems where private was not correctly | |
8383 | implemented like the infamous i386 svr4.0, and systems where the | |
8384 | VM page cache was not coherent with the file system buffer cache | |
8385 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8386 | For shared mappings, we should conversely verify that changes get | |
8387 | propagated back to all the places they're supposed to be. | |
8388 | ||
8389 | Grep wants private fixed already mapped. | |
8390 | The main things grep needs to know about mmap are: | |
8391 | * does it exist and is it safe to write into the mmap'd area | |
8392 | * how to use it (BSD variants) */ | |
8393 | ||
8394 | #include <fcntl.h> | |
8395 | #include <sys/mman.h> | |
8396 | ||
25fbec5b | 8397 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8398 | char *malloc (); |
8399 | #endif | |
8400 | ||
8401 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8402 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8403 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8404 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8405 | # define HAVE_SYS_PARAM_H 1 |
8406 | # endif | |
8407 | ||
8408 | # ifdef _SC_PAGESIZE | |
8409 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8410 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8411 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8412 | # include <sys/param.h> |
8413 | # ifdef EXEC_PAGESIZE | |
8414 | # define getpagesize() EXEC_PAGESIZE | |
8415 | # else /* no EXEC_PAGESIZE */ | |
8416 | # ifdef NBPG | |
8417 | # define getpagesize() NBPG * CLSIZE | |
8418 | # ifndef CLSIZE | |
8419 | # define CLSIZE 1 | |
8420 | # endif /* no CLSIZE */ | |
8421 | # else /* no NBPG */ | |
8422 | # ifdef NBPC | |
8423 | # define getpagesize() NBPC | |
8424 | # else /* no NBPC */ | |
8425 | # ifdef PAGESIZE | |
8426 | # define getpagesize() PAGESIZE | |
8427 | # endif /* PAGESIZE */ | |
8428 | # endif /* no NBPC */ | |
8429 | # endif /* no NBPG */ | |
8430 | # endif /* no EXEC_PAGESIZE */ | |
8431 | # else /* no HAVE_SYS_PARAM_H */ | |
8432 | # define getpagesize() 8192 /* punt totally */ | |
8433 | # endif /* no HAVE_SYS_PARAM_H */ | |
8434 | # endif /* no _SC_PAGESIZE */ | |
8435 | ||
8436 | #endif /* no HAVE_GETPAGESIZE */ | |
8437 | ||
8438 | int | |
8439 | main () | |
8440 | { | |
8441 | char *data, *data2, *data3; | |
8442 | int i, pagesize; | |
8443 | int fd; | |
8444 | ||
8445 | pagesize = getpagesize (); | |
8446 | ||
8447 | /* First, make a file with some known garbage in it. */ | |
8448 | data = (char *) malloc (pagesize); | |
8449 | if (!data) | |
7a197a62 | 8450 | return 1; |
ad6254c5 AK |
8451 | for (i = 0; i < pagesize; ++i) |
8452 | *(data + i) = rand (); | |
8453 | umask (0); | |
8454 | fd = creat ("conftest.mmap", 0600); | |
8455 | if (fd < 0) | |
7a197a62 | 8456 | return 1; |
ad6254c5 | 8457 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8458 | return 1; |
ad6254c5 AK |
8459 | close (fd); |
8460 | ||
8461 | /* Next, try to mmap the file at a fixed address which already has | |
8462 | something else allocated at it. If we can, also make sure that | |
8463 | we see the same garbage. */ | |
8464 | fd = open ("conftest.mmap", O_RDWR); | |
8465 | if (fd < 0) | |
7a197a62 | 8466 | return 1; |
ad6254c5 AK |
8467 | data2 = (char *) malloc (2 * pagesize); |
8468 | if (!data2) | |
7a197a62 AK |
8469 | return 1; |
8470 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8471 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8472 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8473 | return 1; |
ad6254c5 AK |
8474 | for (i = 0; i < pagesize; ++i) |
8475 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8476 | return 1; |
ad6254c5 AK |
8477 | |
8478 | /* Finally, make sure that changes to the mapped area do not | |
8479 | percolate back to the file as seen by read(). (This is a bug on | |
8480 | some variants of i386 svr4.0.) */ | |
8481 | for (i = 0; i < pagesize; ++i) | |
8482 | *(data2 + i) = *(data2 + i) + 1; | |
8483 | data3 = (char *) malloc (pagesize); | |
8484 | if (!data3) | |
7a197a62 | 8485 | return 1; |
ad6254c5 | 8486 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8487 | return 1; |
ad6254c5 AK |
8488 | for (i = 0; i < pagesize; ++i) |
8489 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8490 | return 1; |
ad6254c5 | 8491 | close (fd); |
7a197a62 | 8492 | return 0; |
ad6254c5 AK |
8493 | } |
8494 | _ACEOF | |
8495 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8496 | if { (ac_try="$ac_link" |
8497 | case "(($ac_try" in | |
8498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8499 | *) ac_try_echo=$ac_try;; | |
8500 | esac | |
ec6a6fbe AK |
8501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8502 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8503 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8504 | ac_status=$? |
ec6a6fbe | 8505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8507 | { (case "(($ac_try" in |
8508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8509 | *) ac_try_echo=$ac_try;; | |
8510 | esac | |
ec6a6fbe AK |
8511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8512 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8513 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8514 | ac_status=$? |
ec6a6fbe | 8515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8516 | (exit $ac_status); }; }; then |
8517 | ac_cv_func_mmap_fixed_mapped=yes | |
8518 | else | |
ec6a6fbe AK |
8519 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8520 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8521 | sed 's/^/| /' conftest.$ac_ext >&5 |
8522 | ||
8523 | ( exit $ac_status ) | |
8524 | ac_cv_func_mmap_fixed_mapped=no | |
8525 | fi | |
ec6a6fbe | 8526 | rm -rf conftest.dSYM |
7a197a62 | 8527 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8528 | fi |
7a197a62 AK |
8529 | |
8530 | ||
ad6254c5 | 8531 | fi |
ec6a6fbe AK |
8532 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8533 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8534 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8535 | ||
8536 | cat >>confdefs.h <<\_ACEOF | |
8537 | #define HAVE_MMAP 1 | |
8538 | _ACEOF | |
8539 | ||
8540 | fi | |
8541 | rm -f conftest.mmap | |
8542 | ||
ec6a6fbe AK |
8543 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8544 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8545 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8546 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8547 | else |
8548 | if test "$cross_compiling" = yes; then | |
8549 | ac_cv_func_stat_empty_string_bug=yes | |
8550 | else | |
8551 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8552 | /* confdefs.h. */ |
8553 | _ACEOF | |
8554 | cat confdefs.h >>conftest.$ac_ext | |
8555 | cat >>conftest.$ac_ext <<_ACEOF | |
8556 | /* end confdefs.h. */ | |
8557 | $ac_includes_default | |
8558 | int | |
8559 | main () | |
8560 | { | |
8561 | struct stat sbuf; | |
7a197a62 | 8562 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8563 | ; |
8564 | return 0; | |
8565 | } | |
8566 | _ACEOF | |
8567 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8568 | if { (ac_try="$ac_link" |
8569 | case "(($ac_try" in | |
8570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8571 | *) ac_try_echo=$ac_try;; | |
8572 | esac | |
ec6a6fbe AK |
8573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8574 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8575 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8576 | ac_status=$? |
ec6a6fbe | 8577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8579 | { (case "(($ac_try" in |
8580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8581 | *) ac_try_echo=$ac_try;; | |
8582 | esac | |
ec6a6fbe AK |
8583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8584 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8585 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8586 | ac_status=$? |
ec6a6fbe | 8587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8588 | (exit $ac_status); }; }; then |
7a197a62 | 8589 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8590 | else |
ec6a6fbe AK |
8591 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8592 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8593 | sed 's/^/| /' conftest.$ac_ext >&5 |
8594 | ||
8595 | ( exit $ac_status ) | |
7a197a62 | 8596 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8597 | fi |
ec6a6fbe | 8598 | rm -rf conftest.dSYM |
7a197a62 | 8599 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8600 | fi |
7a197a62 AK |
8601 | |
8602 | ||
ad6254c5 | 8603 | fi |
ec6a6fbe AK |
8604 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8605 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8606 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8607 | case " $LIBOBJS " in |
8a2fc586 | 8608 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8609 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8610 | ;; | |
8a2fc586 AK |
8611 | esac |
8612 | ||
ad6254c5 AK |
8613 | |
8614 | cat >>confdefs.h <<_ACEOF | |
8615 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8616 | _ACEOF | |
8617 | ||
8618 | fi | |
8619 | ||
ec6a6fbe AK |
8620 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8621 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8622 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8623 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8624 | else |
8625 | if test "$cross_compiling" = yes; then | |
8626 | ac_cv_func_strtod=no | |
8627 | else | |
8628 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8629 | /* confdefs.h. */ |
8630 | _ACEOF | |
8631 | cat confdefs.h >>conftest.$ac_ext | |
8632 | cat >>conftest.$ac_ext <<_ACEOF | |
8633 | /* end confdefs.h. */ | |
8634 | ||
7a197a62 AK |
8635 | $ac_includes_default |
8636 | #ifndef strtod | |
ad6254c5 | 8637 | double strtod (); |
7a197a62 | 8638 | #endif |
ad6254c5 AK |
8639 | int |
8640 | main() | |
8641 | { | |
8642 | { | |
8643 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8644 | char *string = " +69"; | |
8645 | char *term; | |
8646 | double value; | |
8647 | value = strtod (string, &term); | |
8648 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8649 | return 1; |
ad6254c5 AK |
8650 | } |
8651 | ||
8652 | { | |
8653 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8654 | terminating character under some conditions. */ | |
8655 | char *string = "NaN"; | |
8656 | char *term; | |
8657 | strtod (string, &term); | |
8658 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8659 | return 1; |
ad6254c5 | 8660 | } |
7a197a62 | 8661 | return 0; |
ad6254c5 AK |
8662 | } |
8663 | ||
8664 | _ACEOF | |
8665 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8666 | if { (ac_try="$ac_link" |
8667 | case "(($ac_try" in | |
8668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8669 | *) ac_try_echo=$ac_try;; | |
8670 | esac | |
ec6a6fbe AK |
8671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8672 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8673 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8674 | ac_status=$? |
ec6a6fbe | 8675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8676 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8677 | { (case "(($ac_try" in |
8678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8679 | *) ac_try_echo=$ac_try;; | |
8680 | esac | |
ec6a6fbe AK |
8681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8682 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8683 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8684 | ac_status=$? |
ec6a6fbe | 8685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8686 | (exit $ac_status); }; }; then |
8687 | ac_cv_func_strtod=yes | |
8688 | else | |
ec6a6fbe AK |
8689 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8690 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8691 | sed 's/^/| /' conftest.$ac_ext >&5 |
8692 | ||
8693 | ( exit $ac_status ) | |
8694 | ac_cv_func_strtod=no | |
8695 | fi | |
ec6a6fbe | 8696 | rm -rf conftest.dSYM |
7a197a62 | 8697 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8698 | fi |
7a197a62 AK |
8699 | |
8700 | ||
ad6254c5 | 8701 | fi |
ec6a6fbe AK |
8702 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8703 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8704 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8705 | case " $LIBOBJS " in |
8a2fc586 | 8706 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8707 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8708 | ;; | |
8a2fc586 AK |
8709 | esac |
8710 | ||
ec6a6fbe AK |
8711 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8712 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8713 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8714 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8715 | else |
8716 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8717 | /* confdefs.h. */ |
8718 | _ACEOF | |
8719 | cat confdefs.h >>conftest.$ac_ext | |
8720 | cat >>conftest.$ac_ext <<_ACEOF | |
8721 | /* end confdefs.h. */ | |
8a2fc586 AK |
8722 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8724 | #define pow innocuous_pow | |
8725 | ||
ad6254c5 AK |
8726 | /* System header to define __stub macros and hopefully few prototypes, |
8727 | which can conflict with char pow (); below. | |
8728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8729 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8730 | |
ad6254c5 AK |
8731 | #ifdef __STDC__ |
8732 | # include <limits.h> | |
8733 | #else | |
8734 | # include <assert.h> | |
8735 | #endif | |
8a2fc586 AK |
8736 | |
8737 | #undef pow | |
8738 | ||
7a197a62 AK |
8739 | /* Override any GCC internal prototype to avoid an error. |
8740 | Use char because int might match the return type of a GCC | |
8741 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8742 | #ifdef __cplusplus |
8743 | extern "C" | |
ad6254c5 | 8744 | #endif |
ad6254c5 AK |
8745 | char pow (); |
8746 | /* The GNU C library defines this for functions which it implements | |
8747 | to always fail with ENOSYS. Some functions are actually named | |
8748 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8749 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8750 | choke me |
ad6254c5 AK |
8751 | #endif |
8752 | ||
8753 | int | |
8754 | main () | |
8755 | { | |
7a197a62 | 8756 | return pow (); |
ad6254c5 AK |
8757 | ; |
8758 | return 0; | |
8759 | } | |
8760 | _ACEOF | |
8761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8762 | if { (ac_try="$ac_link" |
8763 | case "(($ac_try" in | |
8764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8765 | *) ac_try_echo=$ac_try;; | |
8766 | esac | |
ec6a6fbe AK |
8767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8768 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8769 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8770 | ac_status=$? |
8a2fc586 AK |
8771 | grep -v '^ *+' conftest.er1 >conftest.err |
8772 | rm -f conftest.er1 | |
8773 | cat conftest.err >&5 | |
ec6a6fbe | 8774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8775 | (exit $ac_status); } && { |
8776 | test -z "$ac_c_werror_flag" || | |
8777 | test ! -s conftest.err | |
ec6a6fbe AK |
8778 | } && test -s conftest$ac_exeext && { |
8779 | test "$cross_compiling" = yes || | |
8780 | $as_test_x conftest$ac_exeext | |
8781 | }; then | |
ad6254c5 AK |
8782 | ac_cv_func_pow=yes |
8783 | else | |
ec6a6fbe | 8784 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8785 | sed 's/^/| /' conftest.$ac_ext >&5 |
8786 | ||
7a197a62 | 8787 | ac_cv_func_pow=no |
ad6254c5 | 8788 | fi |
7a197a62 | 8789 | |
ec6a6fbe | 8790 | rm -rf conftest.dSYM |
25fbec5b | 8791 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8792 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8793 | fi |
ec6a6fbe AK |
8794 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8795 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8796 | |
8797 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8798 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8799 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8800 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8801 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8802 | else |
8803 | ac_check_lib_save_LIBS=$LIBS | |
8804 | LIBS="-lm $LIBS" | |
8805 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8806 | /* confdefs.h. */ |
8807 | _ACEOF | |
8808 | cat confdefs.h >>conftest.$ac_ext | |
8809 | cat >>conftest.$ac_ext <<_ACEOF | |
8810 | /* end confdefs.h. */ | |
8811 | ||
7a197a62 AK |
8812 | /* Override any GCC internal prototype to avoid an error. |
8813 | Use char because int might match the return type of a GCC | |
8814 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8815 | #ifdef __cplusplus |
8816 | extern "C" | |
8817 | #endif | |
ad6254c5 AK |
8818 | char pow (); |
8819 | int | |
8820 | main () | |
8821 | { | |
7a197a62 | 8822 | return pow (); |
ad6254c5 AK |
8823 | ; |
8824 | return 0; | |
8825 | } | |
8826 | _ACEOF | |
8827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8828 | if { (ac_try="$ac_link" |
8829 | case "(($ac_try" in | |
8830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8831 | *) ac_try_echo=$ac_try;; | |
8832 | esac | |
ec6a6fbe AK |
8833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8834 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8835 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8836 | ac_status=$? |
8a2fc586 AK |
8837 | grep -v '^ *+' conftest.er1 >conftest.err |
8838 | rm -f conftest.er1 | |
8839 | cat conftest.err >&5 | |
ec6a6fbe | 8840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8841 | (exit $ac_status); } && { |
8842 | test -z "$ac_c_werror_flag" || | |
8843 | test ! -s conftest.err | |
ec6a6fbe AK |
8844 | } && test -s conftest$ac_exeext && { |
8845 | test "$cross_compiling" = yes || | |
8846 | $as_test_x conftest$ac_exeext | |
8847 | }; then | |
ad6254c5 AK |
8848 | ac_cv_lib_m_pow=yes |
8849 | else | |
ec6a6fbe | 8850 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8851 | sed 's/^/| /' conftest.$ac_ext >&5 |
8852 | ||
7a197a62 | 8853 | ac_cv_lib_m_pow=no |
ad6254c5 | 8854 | fi |
7a197a62 | 8855 | |
ec6a6fbe | 8856 | rm -rf conftest.dSYM |
25fbec5b | 8857 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8858 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8859 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8860 | fi |
ec6a6fbe AK |
8861 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8862 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8863 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8864 | POW_LIB=-lm |
8865 | else | |
ec6a6fbe AK |
8866 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8867 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8868 | fi |
72b2cb61 | 8869 | |
d0191583 | 8870 | fi |
72b2cb61 | 8871 | |
ad6254c5 AK |
8872 | fi |
8873 | ||
ad6254c5 | 8874 | |
d0191583 JM |
8875 | for ac_func in vprintf |
8876 | do | |
ec6a6fbe AK |
8877 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8878 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8879 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8880 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8881 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8882 | else |
d0191583 JM |
8883 | cat >conftest.$ac_ext <<_ACEOF |
8884 | /* confdefs.h. */ | |
8885 | _ACEOF | |
8886 | cat confdefs.h >>conftest.$ac_ext | |
8887 | cat >>conftest.$ac_ext <<_ACEOF | |
8888 | /* end confdefs.h. */ | |
8889 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8890 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8891 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8892 | |
d0191583 JM |
8893 | /* System header to define __stub macros and hopefully few prototypes, |
8894 | which can conflict with char $ac_func (); below. | |
8895 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8896 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8897 | |
d0191583 JM |
8898 | #ifdef __STDC__ |
8899 | # include <limits.h> | |
8900 | #else | |
8901 | # include <assert.h> | |
8902 | #endif | |
ad6254c5 | 8903 | |
d0191583 | 8904 | #undef $ac_func |
72b2cb61 | 8905 | |
d0191583 JM |
8906 | /* Override any GCC internal prototype to avoid an error. |
8907 | Use char because int might match the return type of a GCC | |
8908 | builtin and then its argument prototype would still apply. */ | |
8909 | #ifdef __cplusplus | |
8910 | extern "C" | |
8911 | #endif | |
8912 | char $ac_func (); | |
8913 | /* The GNU C library defines this for functions which it implements | |
8914 | to always fail with ENOSYS. Some functions are actually named | |
8915 | something starting with __ and the normal name is an alias. */ | |
8916 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8917 | choke me | |
8918 | #endif | |
8919 | ||
8920 | int | |
8921 | main () | |
8922 | { | |
8923 | return $ac_func (); | |
8924 | ; | |
8925 | return 0; | |
8926 | } | |
72b2cb61 | 8927 | _ACEOF |
d0191583 JM |
8928 | rm -f conftest.$ac_objext conftest$ac_exeext |
8929 | if { (ac_try="$ac_link" | |
8930 | case "(($ac_try" in | |
8931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8932 | *) ac_try_echo=$ac_try;; | |
8933 | esac | |
ec6a6fbe AK |
8934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8935 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8936 | (eval "$ac_link") 2>conftest.er1 |
8937 | ac_status=$? | |
8938 | grep -v '^ *+' conftest.er1 >conftest.err | |
8939 | rm -f conftest.er1 | |
8940 | cat conftest.err >&5 | |
ec6a6fbe | 8941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8942 | (exit $ac_status); } && { |
8943 | test -z "$ac_c_werror_flag" || | |
8944 | test ! -s conftest.err | |
ec6a6fbe AK |
8945 | } && test -s conftest$ac_exeext && { |
8946 | test "$cross_compiling" = yes || | |
8947 | $as_test_x conftest$ac_exeext | |
8948 | }; then | |
d0191583 JM |
8949 | eval "$as_ac_var=yes" |
8950 | else | |
ec6a6fbe | 8951 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8952 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8953 | |
d0191583 | 8954 | eval "$as_ac_var=no" |
ad6254c5 AK |
8955 | fi |
8956 | ||
ec6a6fbe | 8957 | rm -rf conftest.dSYM |
d0191583 JM |
8958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8959 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8960 | fi |
ec6a6fbe AK |
8961 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8962 | $as_echo "$as_val"'` | |
8963 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8964 | $as_echo "$ac_res" >&6; } | |
8965 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8966 | $as_echo "$as_val"'` | |
8967 | if test "x$as_val" = x""yes; then | |
d0191583 | 8968 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8969 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8970 | _ACEOF |
7a197a62 | 8971 | |
ec6a6fbe AK |
8972 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8973 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8974 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8975 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8976 | else |
d0191583 JM |
8977 | cat >conftest.$ac_ext <<_ACEOF |
8978 | /* confdefs.h. */ | |
8979 | _ACEOF | |
8980 | cat confdefs.h >>conftest.$ac_ext | |
8981 | cat >>conftest.$ac_ext <<_ACEOF | |
8982 | /* end confdefs.h. */ | |
8983 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8984 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8985 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8986 | |
d0191583 JM |
8987 | /* System header to define __stub macros and hopefully few prototypes, |
8988 | which can conflict with char _doprnt (); below. | |
8989 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8990 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8991 | |
d0191583 JM |
8992 | #ifdef __STDC__ |
8993 | # include <limits.h> | |
8994 | #else | |
8995 | # include <assert.h> | |
8996 | #endif | |
72b2cb61 | 8997 | |
d0191583 JM |
8998 | #undef _doprnt |
8999 | ||
9000 | /* Override any GCC internal prototype to avoid an error. | |
9001 | Use char because int might match the return type of a GCC | |
9002 | builtin and then its argument prototype would still apply. */ | |
9003 | #ifdef __cplusplus | |
9004 | extern "C" | |
9005 | #endif | |
9006 | char _doprnt (); | |
9007 | /* The GNU C library defines this for functions which it implements | |
9008 | to always fail with ENOSYS. Some functions are actually named | |
9009 | something starting with __ and the normal name is an alias. */ | |
9010 | #if defined __stub__doprnt || defined __stub____doprnt | |
9011 | choke me | |
9012 | #endif | |
9013 | ||
9014 | int | |
9015 | main () | |
9016 | { | |
9017 | return _doprnt (); | |
9018 | ; | |
9019 | return 0; | |
9020 | } | |
72b2cb61 | 9021 | _ACEOF |
d0191583 JM |
9022 | rm -f conftest.$ac_objext conftest$ac_exeext |
9023 | if { (ac_try="$ac_link" | |
9024 | case "(($ac_try" in | |
9025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9026 | *) ac_try_echo=$ac_try;; | |
9027 | esac | |
ec6a6fbe AK |
9028 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9029 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
9030 | (eval "$ac_link") 2>conftest.er1 |
9031 | ac_status=$? | |
9032 | grep -v '^ *+' conftest.er1 >conftest.err | |
9033 | rm -f conftest.er1 | |
9034 | cat conftest.err >&5 | |
ec6a6fbe | 9035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
9036 | (exit $ac_status); } && { |
9037 | test -z "$ac_c_werror_flag" || | |
9038 | test ! -s conftest.err | |
ec6a6fbe AK |
9039 | } && test -s conftest$ac_exeext && { |
9040 | test "$cross_compiling" = yes || | |
9041 | $as_test_x conftest$ac_exeext | |
9042 | }; then | |
d0191583 JM |
9043 | ac_cv_func__doprnt=yes |
9044 | else | |
ec6a6fbe | 9045 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 9046 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 9047 | |
d0191583 | 9048 | ac_cv_func__doprnt=no |
ad6254c5 AK |
9049 | fi |
9050 | ||
ec6a6fbe | 9051 | rm -rf conftest.dSYM |
d0191583 JM |
9052 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9053 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 9054 | fi |
ec6a6fbe AK |
9055 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9056 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
9057 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 9058 | |
d0191583 JM |
9059 | cat >>confdefs.h <<\_ACEOF |
9060 | #define HAVE_DOPRNT 1 | |
9061 | _ACEOF | |
ad6254c5 | 9062 | |
7a197a62 AK |
9063 | fi |
9064 | ||
d0191583 JM |
9065 | fi |
9066 | done | |
8b1a3214 | 9067 | |
ad6254c5 | 9068 | |
7a197a62 | 9069 | |
9c961554 | 9070 | ################################################################################ |
ec6a6fbe AK |
9071 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9072 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
9073 | # Check whether --enable-static_link was given. |
9074 | if test "${enable_static_link+set}" = set; then | |
9075 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9076 | else | |
9077 | STATIC_LINK=no | |
9078 | fi | |
9079 | ||
ec6a6fbe AK |
9080 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9081 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 9082 | |
d0191583 | 9083 | ################################################################################ |
ad6254c5 | 9084 | |
ad6254c5 AK |
9085 | |
9086 | ################################################################################ | |
ec6a6fbe AK |
9087 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
9088 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
9089 | |
9090 | # Check whether --with-user was given. | |
9091 | if test "${with_user+set}" = set; then | |
9092 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
9093 | fi |
9094 | ||
ec6a6fbe AK |
9095 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
9096 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 9097 | |
d0191583 | 9098 | if test x$OWNER != x; then |
23b059e7 | 9099 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
9100 | fi |
9101 | ||
9102 | ################################################################################ | |
ec6a6fbe AK |
9103 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
9104 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 9105 | |
d0191583 JM |
9106 | # Check whether --with-group was given. |
9107 | if test "${with_group+set}" = set; then | |
9108 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
9109 | fi |
9110 | ||
ec6a6fbe AK |
9111 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
9112 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
9113 | |
9114 | if test x$GROUP != x; then | |
23b059e7 | 9115 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 9116 | fi |
ad6254c5 | 9117 | |
24bbc4d7 | 9118 | ################################################################################ |
ec6a6fbe AK |
9119 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9120 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9121 | |
9122 | ||
9123 | # Check whether --with-device-uid was given. | |
9124 | if test "${with_device_uid+set}" = set; then | |
9125 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9126 | else | |
9127 | DM_DEVICE_UID="0" | |
9128 | fi | |
9129 | ||
ec6a6fbe AK |
9130 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9131 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9132 | |
9133 | ################################################################################ | |
ec6a6fbe AK |
9134 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9135 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9136 | |
9137 | ||
9138 | # Check whether --with-device-gid was given. | |
9139 | if test "${with_device_gid+set}" = set; then | |
9140 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9141 | else | |
9142 | DM_DEVICE_GID="0" | |
9143 | fi | |
9144 | ||
ec6a6fbe AK |
9145 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9146 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9147 | |
93bd259b | 9148 | ################################################################################ |
ec6a6fbe AK |
9149 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9150 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9151 | |
9152 | ||
9153 | # Check whether --with-device-mode was given. | |
9154 | if test "${with_device_mode+set}" = set; then | |
9155 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9156 | else | |
9157 | DM_DEVICE_MODE="0600" | |
9158 | fi | |
9159 | ||
ec6a6fbe AK |
9160 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9161 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9162 | |
ad6254c5 | 9163 | ################################################################################ |
ec6a6fbe AK |
9164 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9165 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9166 | # Check whether --enable-lvm1_fallback was given. |
9167 | if test "${enable_lvm1_fallback+set}" = set; then | |
9168 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9169 | else | |
9170 | LVM1_FALLBACK=no | |
7a197a62 AK |
9171 | fi |
9172 | ||
ec6a6fbe AK |
9173 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9174 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9175 | |
d0191583 | 9176 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9177 | |
9178 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9179 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9180 | _ACEOF |
9181 | ||
ad6254c5 AK |
9182 | fi |
9183 | ||
9184 | ################################################################################ | |
ec6a6fbe AK |
9185 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9186 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9187 | |
9188 | # Check whether --with-lvm1 was given. | |
9189 | if test "${with_lvm1+set}" = set; then | |
9190 | withval=$with_lvm1; LVM1="$withval" | |
9191 | else | |
9192 | LVM1="internal" | |
7a197a62 AK |
9193 | fi |
9194 | ||
ec6a6fbe AK |
9195 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9196 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9197 | |
d0191583 | 9198 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9199 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9200 | " >&5 |
ec6a6fbe | 9201 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9202 | " >&2;} |
9203 | { (exit 1); exit 1; }; } | |
9204 | fi; | |
9205 | ||
9206 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9207 | |
9208 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9209 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9210 | _ACEOF |
9211 | ||
ad6254c5 AK |
9212 | fi |
9213 | ||
9214 | ################################################################################ | |
ec6a6fbe AK |
9215 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9216 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9217 | |
9218 | # Check whether --with-pool was given. | |
9219 | if test "${with_pool+set}" = set; then | |
9220 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9221 | else |
d0191583 | 9222 | POOL="internal" |
7a197a62 AK |
9223 | fi |
9224 | ||
ec6a6fbe AK |
9225 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9226 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9227 | |
d0191583 | 9228 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9229 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9230 | " >&5 |
ec6a6fbe | 9231 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9232 | " >&2;} |
9233 | { (exit 1); exit 1; }; } | |
9234 | fi; | |
7a197a62 | 9235 | |
d0191583 JM |
9236 | if test x$POOL = xinternal; then |
9237 | ||
9238 | cat >>confdefs.h <<\_ACEOF | |
9239 | #define POOL_INTERNAL 1 | |
9240 | _ACEOF | |
9241 | ||
9242 | fi | |
ad6254c5 | 9243 | |
06f62ad1 | 9244 | ################################################################################ |
ec6a6fbe AK |
9245 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9246 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9247 | |
9248 | # Check whether --with-cluster was given. | |
9249 | if test "${with_cluster+set}" = set; then | |
9250 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9251 | fi |
9252 | ||
ec6a6fbe AK |
9253 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9254 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9255 | |
d0191583 | 9256 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9257 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9258 | " >&5 |
ec6a6fbe | 9259 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9260 | " >&2;} |
9261 | { (exit 1); exit 1; }; } | |
d0191583 | 9262 | fi; |
06f62ad1 | 9263 | |
d0191583 | 9264 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9265 | |
9266 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9267 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9268 | _ACEOF |
9269 | ||
15d91f5a | 9270 | fi |
ad6254c5 AK |
9271 | |
9272 | ################################################################################ | |
ec6a6fbe AK |
9273 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9274 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9275 | |
d0191583 JM |
9276 | # Check whether --with-snapshots was given. |
9277 | if test "${with_snapshots+set}" = set; then | |
9278 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9279 | else | |
9280 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9281 | fi |
9282 | ||
ec6a6fbe AK |
9283 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9284 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9285 | |
d0191583 | 9286 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9287 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9288 | " >&5 |
ec6a6fbe | 9289 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9290 | " >&2;} |
9291 | { (exit 1); exit 1; }; } | |
9292 | fi; | |
9293 | ||
9294 | if test x$SNAPSHOTS = xinternal; then | |
9295 | ||
9296 | cat >>confdefs.h <<\_ACEOF | |
9297 | #define SNAPSHOT_INTERNAL 1 | |
9298 | _ACEOF | |
ad6254c5 | 9299 | |
ad6254c5 | 9300 | fi |
7a197a62 | 9301 | |
d0191583 | 9302 | ################################################################################ |
ec6a6fbe AK |
9303 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9304 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9305 | |
9306 | # Check whether --with-mirrors was given. | |
9307 | if test "${with_mirrors+set}" = set; then | |
9308 | withval=$with_mirrors; MIRRORS="$withval" | |
9309 | else | |
9310 | MIRRORS="internal" | |
ad6254c5 | 9311 | fi |
ad6254c5 | 9312 | |
ec6a6fbe AK |
9313 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9314 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9315 | |
d0191583 | 9316 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9317 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9318 | " >&5 |
ec6a6fbe | 9319 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9320 | " >&2;} |
9321 | { (exit 1); exit 1; }; } | |
9322 | fi; | |
ad6254c5 | 9323 | |
d0191583 | 9324 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9325 | |
d0191583 JM |
9326 | cat >>confdefs.h <<\_ACEOF |
9327 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9328 | _ACEOF |
8a2fc586 | 9329 | |
d0191583 | 9330 | fi |
8a2fc586 | 9331 | |
d0191583 | 9332 | ################################################################################ |
ec6a6fbe AK |
9333 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9334 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9335 | # Check whether --enable-readline was given. |
9336 | if test "${enable_readline+set}" = set; then | |
9337 | enableval=$enable_readline; READLINE=$enableval | |
9338 | else | |
06e459df | 9339 | READLINE=maybe |
d0191583 | 9340 | fi |
8a2fc586 | 9341 | |
ec6a6fbe AK |
9342 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9343 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9344 | |
d0191583 | 9345 | ################################################################################ |
ec6a6fbe AK |
9346 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9347 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9348 | # Check whether --enable-realtime was given. |
9349 | if test "${enable_realtime+set}" = set; then | |
9350 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9351 | fi |
ad6254c5 | 9352 | |
ec6a6fbe AK |
9353 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9354 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9355 | |
9356 | ################################################################################ | |
90c80887 | 9357 | pkg_config_init() { |
e2997b73 AK |
9358 | |
9359 | ||
9360 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9361 | if test -n "$ac_tool_prefix"; then | |
9362 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9363 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9364 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9365 | $as_echo_n "checking for $ac_word... " >&6; } | |
9366 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9367 | $as_echo_n "(cached) " >&6 | |
9368 | else | |
9369 | case $PKG_CONFIG in | |
9370 | [\\/]* | ?:[\\/]*) | |
9371 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9372 | ;; | |
9373 | *) | |
9374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9375 | for as_dir in $PATH | |
9376 | do | |
9377 | IFS=$as_save_IFS | |
9378 | test -z "$as_dir" && as_dir=. | |
9379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9381 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9382 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9383 | break 2 | |
9384 | fi | |
9385 | done | |
9386 | done | |
9387 | IFS=$as_save_IFS | |
9388 | ||
9389 | ;; | |
9390 | esac | |
9391 | fi | |
9392 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9393 | if test -n "$PKG_CONFIG"; then | |
9394 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9395 | $as_echo "$PKG_CONFIG" >&6; } | |
9396 | else | |
9397 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9398 | $as_echo "no" >&6; } | |
9399 | fi | |
9400 | ||
9401 | ||
9402 | fi | |
9403 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9404 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9405 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9406 | set dummy pkg-config; ac_word=$2 | |
9407 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9408 | $as_echo_n "checking for $ac_word... " >&6; } | |
9409 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9410 | $as_echo_n "(cached) " >&6 | |
9411 | else | |
9412 | case $ac_pt_PKG_CONFIG in | |
9413 | [\\/]* | ?:[\\/]*) | |
9414 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9415 | ;; | |
9416 | *) | |
9417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9418 | for as_dir in $PATH | |
9419 | do | |
9420 | IFS=$as_save_IFS | |
9421 | test -z "$as_dir" && as_dir=. | |
9422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9424 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9425 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9426 | break 2 | |
9427 | fi | |
9428 | done | |
9429 | done | |
9430 | IFS=$as_save_IFS | |
9431 | ||
9432 | ;; | |
9433 | esac | |
9434 | fi | |
9435 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9436 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9437 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9438 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9439 | else | |
9440 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9441 | $as_echo "no" >&6; } | |
9442 | fi | |
9443 | ||
9444 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9445 | PKG_CONFIG="" | |
9446 | else | |
9447 | case $cross_compiling:$ac_tool_warned in | |
9448 | yes:) | |
9449 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9450 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9451 | ac_tool_warned=yes ;; | |
9452 | esac | |
9453 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9454 | fi | |
9455 | else | |
9456 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9457 | fi | |
9458 | ||
9459 | fi | |
9460 | if test -n "$PKG_CONFIG"; then | |
9461 | _pkg_min_version=0.9.0 | |
9462 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9463 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9464 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9465 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9466 | $as_echo "yes" >&6; } | |
9467 | else | |
9468 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9469 | $as_echo "no" >&6; } | |
9470 | PKG_CONFIG="" | |
9471 | fi | |
9472 | ||
9473 | fi | |
9474 | ||
9475 | pkg_failed=no | |
a946372e AK |
9476 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9477 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9478 | |
a946372e AK |
9479 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9480 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9481 | elif test -n "$PKG_CONFIG"; then |
9482 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9483 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9484 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9485 | ac_status=$? |
9486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9487 | (exit $ac_status); }; then | |
a946372e | 9488 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9489 | else |
9490 | pkg_failed=yes | |
9491 | fi | |
9492 | else | |
9493 | pkg_failed=untried | |
9494 | fi | |
a946372e AK |
9495 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9496 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9497 | elif test -n "$PKG_CONFIG"; then |
9498 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9499 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9500 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9501 | ac_status=$? |
9502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9503 | (exit $ac_status); }; then | |
a946372e | 9504 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9505 | else |
9506 | pkg_failed=yes | |
9507 | fi | |
9508 | else | |
9509 | pkg_failed=untried | |
9510 | fi | |
9511 | ||
9512 | ||
9513 | ||
9514 | if test $pkg_failed = yes; then | |
9515 | ||
9516 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9517 | _pkg_short_errors_supported=yes | |
9518 | else | |
9519 | _pkg_short_errors_supported=no | |
9520 | fi | |
9521 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9522 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9523 | else |
a946372e | 9524 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9525 | fi |
9526 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9527 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 AK |
9528 | |
9529 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9530 | $as_echo "no" >&6; } | |
a946372e AK |
9531 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9532 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9533 | elif test $pkg_failed = untried; then |
a946372e AK |
9534 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9535 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9536 | else |
a946372e AK |
9537 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9538 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9539 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9540 | $as_echo "yes" >&6; } | |
9541 | : | |
9542 | fi | |
90c80887 AK |
9543 | PKGCONFIG_INIT=1 |
9544 | } | |
9545 | ||
9546 | ################################################################################ | |
9547 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
9548 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
9549 | ||
9550 | # Check whether --with-clvmd was given. | |
9551 | if test "${with_clvmd+set}" = set; then | |
9552 | withval=$with_clvmd; CLVMD="$withval" | |
9553 | else | |
9554 | CLVMD="none" | |
9555 | fi | |
9556 | ||
9557 | if test x$CLVMD = xyes; then | |
9558 | CLVMD=all | |
9559 | fi | |
9560 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
9561 | $as_echo "$CLVMD" >&6; } | |
9562 | ||
9563 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
9564 | CLUSTER=internal | |
9565 | fi | |
9566 | ||
9567 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
9568 | pkg_config_init | |
9569 | fi | |
9570 | ||
9571 | ||
9572 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
9573 | BUILDGULM=yes | |
9574 | fi | |
9575 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9576 | BUILDCOROSYNC=yes | |
9577 | fi | |
9578 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9579 | BUILDOPENAIS=yes | |
9580 | fi | |
9581 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9582 | BUILDCMAN=yes | |
9583 | fi | |
9584 | ||
9585 | if test x$BUILDGULM = xyes; then | |
9586 | if test x$BUILDCOROSYNC = xyes || \ | |
9587 | test x$BUILDOPENAIS = xyes; then | |
9588 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9589 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9590 | { (exit 1); exit 1; }; } | |
9591 | fi | |
a946372e | 9592 | fi |
e2997b73 | 9593 | |
a946372e AK |
9594 | soft_bailout() { |
9595 | NOTFOUND=1 | |
9596 | } | |
e2997b73 | 9597 | |
a946372e AK |
9598 | hard_bailout() { |
9599 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9600 | $as_echo "$as_me: error: bailing out" >&2;} | |
9601 | { (exit 1); exit 1; }; } | |
9602 | } | |
9603 | ||
9604 | if test x$CLVMD = xall; then | |
9605 | bailout=soft_bailout | |
9606 | BUILDGULM=yes | |
9607 | BUILDCMAN=yes | |
9608 | BUILDCOROSYNC=yes | |
9609 | BUILDOPENAIS=yes | |
e2997b73 | 9610 | else |
a946372e | 9611 | bailout=hard_bailout |
e2997b73 | 9612 | fi |
a946372e AK |
9613 | |
9614 | check_lib_no_libs() { | |
9615 | lib_no_libs_arg1=$1 | |
9616 | shift | |
9617 | lib_no_libs_arg2=$1 | |
9618 | shift | |
9619 | lib_no_libs_args=$@ | |
9620 | ||
9621 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9622 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9623 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9624 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9625 | $as_echo_n "(cached) " >&6 | |
9626 | else | |
9627 | ac_check_lib_save_LIBS=$LIBS | |
9628 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9629 | cat >conftest.$ac_ext <<_ACEOF | |
9630 | /* confdefs.h. */ | |
9631 | _ACEOF | |
9632 | cat confdefs.h >>conftest.$ac_ext | |
9633 | cat >>conftest.$ac_ext <<_ACEOF | |
9634 | /* end confdefs.h. */ | |
9635 | ||
9636 | /* Override any GCC internal prototype to avoid an error. | |
9637 | Use char because int might match the return type of a GCC | |
9638 | builtin and then its argument prototype would still apply. */ | |
9639 | #ifdef __cplusplus | |
9640 | extern "C" | |
9641 | #endif | |
9642 | char $lib_no_libs_arg2 (); | |
9643 | int | |
9644 | main () | |
9645 | { | |
9646 | return $lib_no_libs_arg2 (); | |
9647 | ; | |
9648 | return 0; | |
9649 | } | |
9650 | _ACEOF | |
9651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9652 | if { (ac_try="$ac_link" | |
9653 | case "(($ac_try" in | |
9654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9655 | *) ac_try_echo=$ac_try;; | |
9656 | esac | |
9657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9658 | $as_echo "$ac_try_echo") >&5 | |
9659 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9660 | ac_status=$? |
a946372e AK |
9661 | grep -v '^ *+' conftest.er1 >conftest.err |
9662 | rm -f conftest.er1 | |
9663 | cat conftest.err >&5 | |
e2997b73 | 9664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9665 | (exit $ac_status); } && { |
9666 | test -z "$ac_c_werror_flag" || | |
9667 | test ! -s conftest.err | |
9668 | } && test -s conftest$ac_exeext && { | |
9669 | test "$cross_compiling" = yes || | |
9670 | $as_test_x conftest$ac_exeext | |
9671 | }; then | |
9672 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9673 | else |
a946372e AK |
9674 | $as_echo "$as_me: failed program was:" >&5 |
9675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9676 | |
a946372e AK |
9677 | eval "$as_ac_Lib=no" |
9678 | fi | |
e2997b73 | 9679 | |
a946372e AK |
9680 | rm -rf conftest.dSYM |
9681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9682 | conftest$ac_exeext conftest.$ac_ext | |
9683 | LIBS=$ac_check_lib_save_LIBS | |
9684 | fi | |
9685 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9686 | $as_echo "$as_val"'` | |
9687 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9688 | $as_echo "$ac_res" >&6; } | |
9689 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9690 | $as_echo "$as_val"'` | |
9691 | if test "x$as_val" = x""yes; then | |
9692 | cat >>confdefs.h <<_ACEOF | |
9693 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9694 | _ACEOF | |
e2997b73 | 9695 | |
a946372e | 9696 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9697 | |
e2997b73 | 9698 | else |
a946372e | 9699 | $bailout |
e2997b73 | 9700 | fi |
e2997b73 | 9701 | |
a946372e AK |
9702 | LIBS=$ac_check_lib_save_LIBS |
9703 | } | |
9704 | ||
9705 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9706 | |
9707 | pkg_failed=no | |
a946372e AK |
9708 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9709 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9710 | |
a946372e AK |
9711 | if test -n "$CCS_CFLAGS"; then |
9712 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9713 | elif test -n "$PKG_CONFIG"; then |
9714 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9715 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9716 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9717 | ac_status=$? |
9718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9719 | (exit $ac_status); }; then | |
a946372e | 9720 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9721 | else |
9722 | pkg_failed=yes | |
9723 | fi | |
9724 | else | |
9725 | pkg_failed=untried | |
9726 | fi | |
a946372e AK |
9727 | if test -n "$CCS_LIBS"; then |
9728 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9729 | elif test -n "$PKG_CONFIG"; then |
9730 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9731 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9732 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9733 | ac_status=$? |
9734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9735 | (exit $ac_status); }; then | |
a946372e | 9736 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9737 | else |
9738 | pkg_failed=yes | |
9739 | fi | |
9740 | else | |
9741 | pkg_failed=untried | |
9742 | fi | |
9743 | ||
9744 | ||
9745 | ||
9746 | if test $pkg_failed = yes; then | |
9747 | ||
9748 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9749 | _pkg_short_errors_supported=yes | |
9750 | else | |
9751 | _pkg_short_errors_supported=no | |
9752 | fi | |
9753 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9754 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9755 | else |
a946372e | 9756 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9757 | fi |
9758 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9759 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 AK |
9760 | |
9761 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9762 | $as_echo "no" >&6; } | |
a946372e | 9763 | NOTFOUND=0 |
e2997b73 | 9764 | |
a946372e AK |
9765 | for ac_header in ccs.h |
9766 | do | |
9767 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9768 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9769 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9770 | $as_echo_n "checking for $ac_header... " >&6; } | |
9771 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9772 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9773 | fi |
a946372e AK |
9774 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9775 | $as_echo "$as_val"'` | |
9776 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9777 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9778 | else |
a946372e AK |
9779 | # Is the header compilable? |
9780 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9781 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9782 | cat >conftest.$ac_ext <<_ACEOF | |
9783 | /* confdefs.h. */ | |
9784 | _ACEOF | |
9785 | cat confdefs.h >>conftest.$ac_ext | |
9786 | cat >>conftest.$ac_ext <<_ACEOF | |
9787 | /* end confdefs.h. */ | |
9788 | $ac_includes_default | |
9789 | #include <$ac_header> | |
9790 | _ACEOF | |
9791 | rm -f conftest.$ac_objext | |
9792 | if { (ac_try="$ac_compile" | |
9793 | case "(($ac_try" in | |
9794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9795 | *) ac_try_echo=$ac_try;; | |
9796 | esac | |
9797 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9798 | $as_echo "$ac_try_echo") >&5 | |
9799 | (eval "$ac_compile") 2>conftest.er1 | |
9800 | ac_status=$? | |
9801 | grep -v '^ *+' conftest.er1 >conftest.err | |
9802 | rm -f conftest.er1 | |
9803 | cat conftest.err >&5 | |
9804 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9805 | (exit $ac_status); } && { | |
9806 | test -z "$ac_c_werror_flag" || | |
9807 | test ! -s conftest.err | |
9808 | } && test -s conftest.$ac_objext; then | |
9809 | ac_header_compiler=yes | |
9810 | else | |
9811 | $as_echo "$as_me: failed program was:" >&5 | |
9812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9813 | |
a946372e | 9814 | ac_header_compiler=no |
d0191583 JM |
9815 | fi |
9816 | ||
a946372e AK |
9817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9818 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9819 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9820 | |
a946372e AK |
9821 | # Is the header present? |
9822 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9823 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9824 | cat >conftest.$ac_ext <<_ACEOF | |
9825 | /* confdefs.h. */ | |
9826 | _ACEOF | |
9827 | cat confdefs.h >>conftest.$ac_ext | |
9828 | cat >>conftest.$ac_ext <<_ACEOF | |
9829 | /* end confdefs.h. */ | |
9830 | #include <$ac_header> | |
9831 | _ACEOF | |
9832 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9833 | case "(($ac_try" in | |
9834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9835 | *) ac_try_echo=$ac_try;; | |
9836 | esac | |
9837 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9838 | $as_echo "$ac_try_echo") >&5 | |
9839 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9840 | ac_status=$? | |
9841 | grep -v '^ *+' conftest.er1 >conftest.err | |
9842 | rm -f conftest.er1 | |
9843 | cat conftest.err >&5 | |
9844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9845 | (exit $ac_status); } >/dev/null && { | |
9846 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9847 | test ! -s conftest.err | |
9848 | }; then | |
9849 | ac_header_preproc=yes | |
9850 | else | |
9851 | $as_echo "$as_me: failed program was:" >&5 | |
9852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9853 | ||
9854 | ac_header_preproc=no | |
9855 | fi | |
9856 | ||
9857 | rm -f conftest.err conftest.$ac_ext | |
9858 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9859 | $as_echo "$ac_header_preproc" >&6; } | |
9860 | ||
9861 | # So? What about this header? | |
9862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9863 | yes:no: ) | |
9864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9865 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9867 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9868 | ac_header_preproc=yes | |
9869 | ;; | |
9870 | no:yes:* ) | |
9871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9872 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9874 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9876 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9878 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9880 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9882 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9883 | ||
9884 | ;; | |
9885 | esac | |
9886 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9887 | $as_echo_n "checking for $ac_header... " >&6; } | |
9888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9889 | $as_echo_n "(cached) " >&6 | |
9890 | else | |
9891 | eval "$as_ac_Header=\$ac_header_preproc" | |
9892 | fi | |
9893 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9894 | $as_echo "$as_val"'` | |
9895 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9896 | $as_echo "$ac_res" >&6; } | |
9897 | ||
9898 | fi | |
9899 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9900 | $as_echo "$as_val"'` | |
9901 | if test "x$as_val" = x""yes; then | |
9902 | cat >>confdefs.h <<_ACEOF | |
9903 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9904 | _ACEOF | |
9905 | ||
9906 | else | |
9907 | $bailout | |
9908 | fi | |
9909 | ||
9910 | done | |
9911 | ||
9912 | check_lib_no_libs ccs ccs_connect | |
9913 | if test $NOTFOUND = 0; then | |
9914 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9915 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9916 | CCS_LIBS="-lccs" | |
9917 | HAVE_CCS=yes | |
9918 | fi | |
9919 | elif test $pkg_failed = untried; then | |
9920 | NOTFOUND=0 | |
9921 | ||
9922 | for ac_header in ccs.h | |
9923 | do | |
9924 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9926 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9927 | $as_echo_n "checking for $ac_header... " >&6; } | |
9928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9929 | $as_echo_n "(cached) " >&6 | |
9930 | fi | |
9931 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9932 | $as_echo "$as_val"'` | |
9933 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9934 | $as_echo "$ac_res" >&6; } | |
9935 | else | |
9936 | # Is the header compilable? | |
9937 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9938 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9939 | cat >conftest.$ac_ext <<_ACEOF | |
9940 | /* confdefs.h. */ | |
9941 | _ACEOF | |
9942 | cat confdefs.h >>conftest.$ac_ext | |
9943 | cat >>conftest.$ac_ext <<_ACEOF | |
9944 | /* end confdefs.h. */ | |
9945 | $ac_includes_default | |
9946 | #include <$ac_header> | |
9947 | _ACEOF | |
9948 | rm -f conftest.$ac_objext | |
9949 | if { (ac_try="$ac_compile" | |
9950 | case "(($ac_try" in | |
9951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9952 | *) ac_try_echo=$ac_try;; | |
9953 | esac | |
9954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9955 | $as_echo "$ac_try_echo") >&5 | |
9956 | (eval "$ac_compile") 2>conftest.er1 | |
9957 | ac_status=$? | |
9958 | grep -v '^ *+' conftest.er1 >conftest.err | |
9959 | rm -f conftest.er1 | |
9960 | cat conftest.err >&5 | |
9961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9962 | (exit $ac_status); } && { | |
9963 | test -z "$ac_c_werror_flag" || | |
9964 | test ! -s conftest.err | |
9965 | } && test -s conftest.$ac_objext; then | |
9966 | ac_header_compiler=yes | |
9967 | else | |
9968 | $as_echo "$as_me: failed program was:" >&5 | |
9969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9970 | ||
9971 | ac_header_compiler=no | |
9972 | fi | |
9973 | ||
9974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9975 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9976 | $as_echo "$ac_header_compiler" >&6; } | |
9977 | ||
9978 | # Is the header present? | |
9979 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9980 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9981 | cat >conftest.$ac_ext <<_ACEOF | |
9982 | /* confdefs.h. */ | |
9983 | _ACEOF | |
9984 | cat confdefs.h >>conftest.$ac_ext | |
9985 | cat >>conftest.$ac_ext <<_ACEOF | |
9986 | /* end confdefs.h. */ | |
9987 | #include <$ac_header> | |
9988 | _ACEOF | |
9989 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9990 | case "(($ac_try" in | |
9991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9992 | *) ac_try_echo=$ac_try;; | |
9993 | esac | |
9994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9995 | $as_echo "$ac_try_echo") >&5 | |
9996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9997 | ac_status=$? | |
9998 | grep -v '^ *+' conftest.er1 >conftest.err | |
9999 | rm -f conftest.er1 | |
10000 | cat conftest.err >&5 | |
10001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10002 | (exit $ac_status); } >/dev/null && { | |
10003 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10004 | test ! -s conftest.err | |
10005 | }; then | |
10006 | ac_header_preproc=yes | |
10007 | else | |
10008 | $as_echo "$as_me: failed program was:" >&5 | |
10009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10010 | ||
10011 | ac_header_preproc=no | |
10012 | fi | |
10013 | ||
10014 | rm -f conftest.err conftest.$ac_ext | |
10015 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10016 | $as_echo "$ac_header_preproc" >&6; } | |
10017 | ||
10018 | # So? What about this header? | |
10019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10020 | yes:no: ) | |
10021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10022 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10024 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10025 | ac_header_preproc=yes | |
10026 | ;; | |
10027 | no:yes:* ) | |
10028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10029 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10031 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10033 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10035 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10037 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10039 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10040 | ||
10041 | ;; | |
10042 | esac | |
10043 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10044 | $as_echo_n "checking for $ac_header... " >&6; } | |
10045 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10046 | $as_echo_n "(cached) " >&6 | |
10047 | else | |
10048 | eval "$as_ac_Header=\$ac_header_preproc" | |
10049 | fi | |
10050 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10051 | $as_echo "$as_val"'` | |
10052 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10053 | $as_echo "$ac_res" >&6; } | |
10054 | ||
10055 | fi | |
10056 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10057 | $as_echo "$as_val"'` | |
10058 | if test "x$as_val" = x""yes; then | |
10059 | cat >>confdefs.h <<_ACEOF | |
10060 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10061 | _ACEOF | |
10062 | ||
10063 | else | |
10064 | $bailout | |
10065 | fi | |
10066 | ||
10067 | done | |
10068 | ||
10069 | check_lib_no_libs ccs ccs_connect | |
10070 | if test $NOTFOUND = 0; then | |
10071 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
10072 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
10073 | CCS_LIBS="-lccs" | |
10074 | HAVE_CCS=yes | |
10075 | fi | |
10076 | else | |
10077 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
10078 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
10079 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10080 | $as_echo "yes" >&6; } | |
10081 | HAVE_CCS=yes | |
10082 | fi | |
10083 | ||
10084 | pkg_failed=no | |
10085 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
10086 | $as_echo_n "checking for GULM... " >&6; } | |
10087 | ||
10088 | if test -n "$GULM_CFLAGS"; then | |
10089 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
10090 | elif test -n "$PKG_CONFIG"; then | |
10091 | if test -n "$PKG_CONFIG" && \ | |
10092 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10093 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10094 | ac_status=$? | |
10095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10096 | (exit $ac_status); }; then | |
10097 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
10098 | else | |
10099 | pkg_failed=yes | |
10100 | fi | |
10101 | else | |
10102 | pkg_failed=untried | |
10103 | fi | |
10104 | if test -n "$GULM_LIBS"; then | |
10105 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
10106 | elif test -n "$PKG_CONFIG"; then | |
10107 | if test -n "$PKG_CONFIG" && \ | |
10108 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10109 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10110 | ac_status=$? | |
10111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10112 | (exit $ac_status); }; then | |
10113 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
10114 | else | |
10115 | pkg_failed=yes | |
10116 | fi | |
10117 | else | |
10118 | pkg_failed=untried | |
10119 | fi | |
10120 | ||
10121 | ||
10122 | ||
10123 | if test $pkg_failed = yes; then | |
10124 | ||
10125 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10126 | _pkg_short_errors_supported=yes | |
10127 | else | |
10128 | _pkg_short_errors_supported=no | |
10129 | fi | |
10130 | if test $_pkg_short_errors_supported = yes; then | |
10131 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10132 | else | |
10133 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10134 | fi | |
10135 | # Put the nasty error message in config.log where it belongs | |
10136 | echo "$GULM_PKG_ERRORS" >&5 | |
10137 | ||
10138 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10139 | $as_echo "no" >&6; } | |
10140 | NOTFOUND=0 | |
10141 | ||
10142 | for ac_header in libgulm.h | |
10143 | do | |
10144 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10145 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10146 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10147 | $as_echo_n "checking for $ac_header... " >&6; } | |
10148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10149 | $as_echo_n "(cached) " >&6 | |
10150 | fi | |
10151 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10152 | $as_echo "$as_val"'` | |
10153 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10154 | $as_echo "$ac_res" >&6; } | |
10155 | else | |
10156 | # Is the header compilable? | |
10157 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10158 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10159 | cat >conftest.$ac_ext <<_ACEOF | |
10160 | /* confdefs.h. */ | |
10161 | _ACEOF | |
10162 | cat confdefs.h >>conftest.$ac_ext | |
10163 | cat >>conftest.$ac_ext <<_ACEOF | |
10164 | /* end confdefs.h. */ | |
10165 | $ac_includes_default | |
10166 | #include <$ac_header> | |
10167 | _ACEOF | |
10168 | rm -f conftest.$ac_objext | |
10169 | if { (ac_try="$ac_compile" | |
10170 | case "(($ac_try" in | |
10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10172 | *) ac_try_echo=$ac_try;; | |
10173 | esac | |
10174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10175 | $as_echo "$ac_try_echo") >&5 | |
10176 | (eval "$ac_compile") 2>conftest.er1 | |
10177 | ac_status=$? | |
10178 | grep -v '^ *+' conftest.er1 >conftest.err | |
10179 | rm -f conftest.er1 | |
10180 | cat conftest.err >&5 | |
10181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10182 | (exit $ac_status); } && { | |
10183 | test -z "$ac_c_werror_flag" || | |
10184 | test ! -s conftest.err | |
10185 | } && test -s conftest.$ac_objext; then | |
10186 | ac_header_compiler=yes | |
10187 | else | |
10188 | $as_echo "$as_me: failed program was:" >&5 | |
10189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10190 | ||
10191 | ac_header_compiler=no | |
10192 | fi | |
10193 | ||
10194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10195 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10196 | $as_echo "$ac_header_compiler" >&6; } | |
10197 | ||
10198 | # Is the header present? | |
10199 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10200 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10201 | cat >conftest.$ac_ext <<_ACEOF | |
10202 | /* confdefs.h. */ | |
10203 | _ACEOF | |
10204 | cat confdefs.h >>conftest.$ac_ext | |
10205 | cat >>conftest.$ac_ext <<_ACEOF | |
10206 | /* end confdefs.h. */ | |
10207 | #include <$ac_header> | |
10208 | _ACEOF | |
10209 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10210 | case "(($ac_try" in | |
10211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10212 | *) ac_try_echo=$ac_try;; | |
10213 | esac | |
10214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10215 | $as_echo "$ac_try_echo") >&5 | |
10216 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10217 | ac_status=$? | |
10218 | grep -v '^ *+' conftest.er1 >conftest.err | |
10219 | rm -f conftest.er1 | |
10220 | cat conftest.err >&5 | |
10221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10222 | (exit $ac_status); } >/dev/null && { | |
10223 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10224 | test ! -s conftest.err | |
10225 | }; then | |
10226 | ac_header_preproc=yes | |
10227 | else | |
10228 | $as_echo "$as_me: failed program was:" >&5 | |
10229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10230 | ||
10231 | ac_header_preproc=no | |
10232 | fi | |
10233 | ||
10234 | rm -f conftest.err conftest.$ac_ext | |
10235 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10236 | $as_echo "$ac_header_preproc" >&6; } | |
10237 | ||
10238 | # So? What about this header? | |
10239 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10240 | yes:no: ) | |
10241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10242 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10243 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10244 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10245 | ac_header_preproc=yes | |
10246 | ;; | |
10247 | no:yes:* ) | |
10248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10249 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10251 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10253 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10254 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10255 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10256 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10257 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10258 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10259 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10260 | ||
10261 | ;; | |
10262 | esac | |
10263 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10264 | $as_echo_n "checking for $ac_header... " >&6; } | |
10265 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10266 | $as_echo_n "(cached) " >&6 | |
10267 | else | |
10268 | eval "$as_ac_Header=\$ac_header_preproc" | |
10269 | fi | |
10270 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10271 | $as_echo "$as_val"'` | |
10272 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10273 | $as_echo "$ac_res" >&6; } | |
10274 | ||
10275 | fi | |
10276 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10277 | $as_echo "$as_val"'` | |
10278 | if test "x$as_val" = x""yes; then | |
10279 | cat >>confdefs.h <<_ACEOF | |
10280 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10281 | _ACEOF | |
10282 | ||
10283 | else | |
10284 | $bailout | |
10285 | fi | |
10286 | ||
10287 | done | |
10288 | ||
10289 | check_lib_no_libs gulm lg_core_login | |
10290 | if test $NOTFOUND = 0; then | |
10291 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10292 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10293 | GULM_LIBS="-lgulm" | |
10294 | HAVE_GULM=yes | |
10295 | fi | |
10296 | elif test $pkg_failed = untried; then | |
10297 | NOTFOUND=0 | |
10298 | ||
10299 | for ac_header in libgulm.h | |
10300 | do | |
10301 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10303 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10304 | $as_echo_n "checking for $ac_header... " >&6; } | |
10305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10306 | $as_echo_n "(cached) " >&6 | |
10307 | fi | |
10308 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10309 | $as_echo "$as_val"'` | |
10310 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10311 | $as_echo "$ac_res" >&6; } | |
10312 | else | |
10313 | # Is the header compilable? | |
10314 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10315 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10316 | cat >conftest.$ac_ext <<_ACEOF | |
10317 | /* confdefs.h. */ | |
10318 | _ACEOF | |
10319 | cat confdefs.h >>conftest.$ac_ext | |
10320 | cat >>conftest.$ac_ext <<_ACEOF | |
10321 | /* end confdefs.h. */ | |
10322 | $ac_includes_default | |
10323 | #include <$ac_header> | |
10324 | _ACEOF | |
10325 | rm -f conftest.$ac_objext | |
10326 | if { (ac_try="$ac_compile" | |
10327 | case "(($ac_try" in | |
10328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10329 | *) ac_try_echo=$ac_try;; | |
10330 | esac | |
10331 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10332 | $as_echo "$ac_try_echo") >&5 | |
10333 | (eval "$ac_compile") 2>conftest.er1 | |
10334 | ac_status=$? | |
10335 | grep -v '^ *+' conftest.er1 >conftest.err | |
10336 | rm -f conftest.er1 | |
10337 | cat conftest.err >&5 | |
10338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10339 | (exit $ac_status); } && { | |
10340 | test -z "$ac_c_werror_flag" || | |
10341 | test ! -s conftest.err | |
10342 | } && test -s conftest.$ac_objext; then | |
10343 | ac_header_compiler=yes | |
10344 | else | |
10345 | $as_echo "$as_me: failed program was:" >&5 | |
10346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10347 | ||
10348 | ac_header_compiler=no | |
10349 | fi | |
10350 | ||
10351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10352 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10353 | $as_echo "$ac_header_compiler" >&6; } | |
10354 | ||
10355 | # Is the header present? | |
10356 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10357 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10358 | cat >conftest.$ac_ext <<_ACEOF | |
10359 | /* confdefs.h. */ | |
10360 | _ACEOF | |
10361 | cat confdefs.h >>conftest.$ac_ext | |
10362 | cat >>conftest.$ac_ext <<_ACEOF | |
10363 | /* end confdefs.h. */ | |
10364 | #include <$ac_header> | |
10365 | _ACEOF | |
10366 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10367 | case "(($ac_try" in | |
10368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10369 | *) ac_try_echo=$ac_try;; | |
10370 | esac | |
10371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10372 | $as_echo "$ac_try_echo") >&5 | |
10373 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10374 | ac_status=$? | |
10375 | grep -v '^ *+' conftest.er1 >conftest.err | |
10376 | rm -f conftest.er1 | |
10377 | cat conftest.err >&5 | |
10378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10379 | (exit $ac_status); } >/dev/null && { | |
10380 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10381 | test ! -s conftest.err | |
10382 | }; then | |
10383 | ac_header_preproc=yes | |
10384 | else | |
10385 | $as_echo "$as_me: failed program was:" >&5 | |
10386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10387 | ||
10388 | ac_header_preproc=no | |
10389 | fi | |
10390 | ||
10391 | rm -f conftest.err conftest.$ac_ext | |
10392 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10393 | $as_echo "$ac_header_preproc" >&6; } | |
10394 | ||
10395 | # So? What about this header? | |
10396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10397 | yes:no: ) | |
10398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10399 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10401 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10402 | ac_header_preproc=yes | |
10403 | ;; | |
10404 | no:yes:* ) | |
10405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10406 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10408 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10410 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10412 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10414 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10415 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10416 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10417 | ||
10418 | ;; | |
10419 | esac | |
10420 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10421 | $as_echo_n "checking for $ac_header... " >&6; } | |
10422 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10423 | $as_echo_n "(cached) " >&6 | |
10424 | else | |
10425 | eval "$as_ac_Header=\$ac_header_preproc" | |
10426 | fi | |
10427 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10428 | $as_echo "$as_val"'` | |
10429 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10430 | $as_echo "$ac_res" >&6; } | |
10431 | ||
10432 | fi | |
10433 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10434 | $as_echo "$as_val"'` | |
10435 | if test "x$as_val" = x""yes; then | |
10436 | cat >>confdefs.h <<_ACEOF | |
10437 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10438 | _ACEOF | |
10439 | ||
10440 | else | |
10441 | $bailout | |
10442 | fi | |
10443 | ||
10444 | done | |
10445 | ||
10446 | check_lib_no_libs gulm lg_core_login | |
10447 | if test $NOTFOUND = 0; then | |
10448 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10449 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10450 | GULM_LIBS="-lgulm" | |
10451 | HAVE_GULM=yes | |
10452 | fi | |
10453 | else | |
10454 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10455 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10456 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10457 | $as_echo "yes" >&6; } | |
10458 | HAVE_GULM=yes | |
10459 | fi | |
10460 | fi | |
10461 | ||
10462 | if test x$BUILDCMAN = xyes; then | |
10463 | ||
10464 | pkg_failed=no | |
10465 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10466 | $as_echo_n "checking for CMAN... " >&6; } | |
10467 | ||
10468 | if test -n "$CMAN_CFLAGS"; then | |
10469 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10470 | elif test -n "$PKG_CONFIG"; then | |
10471 | if test -n "$PKG_CONFIG" && \ | |
10472 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10473 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10474 | ac_status=$? | |
10475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10476 | (exit $ac_status); }; then | |
10477 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10478 | else | |
10479 | pkg_failed=yes | |
10480 | fi | |
10481 | else | |
10482 | pkg_failed=untried | |
10483 | fi | |
10484 | if test -n "$CMAN_LIBS"; then | |
10485 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10486 | elif test -n "$PKG_CONFIG"; then | |
10487 | if test -n "$PKG_CONFIG" && \ | |
10488 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10489 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10490 | ac_status=$? | |
10491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10492 | (exit $ac_status); }; then | |
10493 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10494 | else | |
10495 | pkg_failed=yes | |
10496 | fi | |
10497 | else | |
10498 | pkg_failed=untried | |
10499 | fi | |
10500 | ||
10501 | ||
10502 | ||
10503 | if test $pkg_failed = yes; then | |
10504 | ||
10505 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10506 | _pkg_short_errors_supported=yes | |
10507 | else | |
10508 | _pkg_short_errors_supported=no | |
10509 | fi | |
10510 | if test $_pkg_short_errors_supported = yes; then | |
10511 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10512 | else | |
10513 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10514 | fi | |
10515 | # Put the nasty error message in config.log where it belongs | |
10516 | echo "$CMAN_PKG_ERRORS" >&5 | |
10517 | ||
10518 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10519 | $as_echo "no" >&6; } | |
10520 | NOTFOUND=0 | |
10521 | ||
10522 | for ac_header in libcman.h | |
10523 | do | |
10524 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10525 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10526 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10527 | $as_echo_n "checking for $ac_header... " >&6; } | |
10528 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10529 | $as_echo_n "(cached) " >&6 | |
10530 | fi | |
10531 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10532 | $as_echo "$as_val"'` | |
10533 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10534 | $as_echo "$ac_res" >&6; } | |
10535 | else | |
10536 | # Is the header compilable? | |
10537 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10538 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10539 | cat >conftest.$ac_ext <<_ACEOF | |
10540 | /* confdefs.h. */ | |
10541 | _ACEOF | |
10542 | cat confdefs.h >>conftest.$ac_ext | |
10543 | cat >>conftest.$ac_ext <<_ACEOF | |
10544 | /* end confdefs.h. */ | |
10545 | $ac_includes_default | |
10546 | #include <$ac_header> | |
10547 | _ACEOF | |
10548 | rm -f conftest.$ac_objext | |
10549 | if { (ac_try="$ac_compile" | |
10550 | case "(($ac_try" in | |
10551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10552 | *) ac_try_echo=$ac_try;; | |
10553 | esac | |
10554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10555 | $as_echo "$ac_try_echo") >&5 | |
10556 | (eval "$ac_compile") 2>conftest.er1 | |
10557 | ac_status=$? | |
10558 | grep -v '^ *+' conftest.er1 >conftest.err | |
10559 | rm -f conftest.er1 | |
10560 | cat conftest.err >&5 | |
10561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10562 | (exit $ac_status); } && { | |
10563 | test -z "$ac_c_werror_flag" || | |
10564 | test ! -s conftest.err | |
10565 | } && test -s conftest.$ac_objext; then | |
10566 | ac_header_compiler=yes | |
10567 | else | |
10568 | $as_echo "$as_me: failed program was:" >&5 | |
10569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10570 | ||
10571 | ac_header_compiler=no | |
10572 | fi | |
10573 | ||
10574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10575 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10576 | $as_echo "$ac_header_compiler" >&6; } | |
10577 | ||
10578 | # Is the header present? | |
10579 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10580 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10581 | cat >conftest.$ac_ext <<_ACEOF | |
10582 | /* confdefs.h. */ | |
10583 | _ACEOF | |
10584 | cat confdefs.h >>conftest.$ac_ext | |
10585 | cat >>conftest.$ac_ext <<_ACEOF | |
10586 | /* end confdefs.h. */ | |
10587 | #include <$ac_header> | |
10588 | _ACEOF | |
10589 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10590 | case "(($ac_try" in | |
10591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10592 | *) ac_try_echo=$ac_try;; | |
10593 | esac | |
10594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10595 | $as_echo "$ac_try_echo") >&5 | |
10596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10597 | ac_status=$? | |
10598 | grep -v '^ *+' conftest.er1 >conftest.err | |
10599 | rm -f conftest.er1 | |
10600 | cat conftest.err >&5 | |
10601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10602 | (exit $ac_status); } >/dev/null && { | |
10603 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10604 | test ! -s conftest.err | |
10605 | }; then | |
10606 | ac_header_preproc=yes | |
10607 | else | |
10608 | $as_echo "$as_me: failed program was:" >&5 | |
10609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10610 | ||
10611 | ac_header_preproc=no | |
10612 | fi | |
10613 | ||
10614 | rm -f conftest.err conftest.$ac_ext | |
10615 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10616 | $as_echo "$ac_header_preproc" >&6; } | |
10617 | ||
10618 | # So? What about this header? | |
10619 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10620 | yes:no: ) | |
10621 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10622 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10624 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10625 | ac_header_preproc=yes | |
10626 | ;; | |
10627 | no:yes:* ) | |
10628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10629 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10630 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10631 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10632 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10633 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10635 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10636 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10637 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10638 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10639 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10640 | ||
10641 | ;; | |
10642 | esac | |
10643 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10644 | $as_echo_n "checking for $ac_header... " >&6; } | |
10645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10646 | $as_echo_n "(cached) " >&6 | |
10647 | else | |
10648 | eval "$as_ac_Header=\$ac_header_preproc" | |
10649 | fi | |
10650 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10651 | $as_echo "$as_val"'` | |
10652 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10653 | $as_echo "$ac_res" >&6; } | |
10654 | ||
10655 | fi | |
10656 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10657 | $as_echo "$as_val"'` | |
10658 | if test "x$as_val" = x""yes; then | |
10659 | cat >>confdefs.h <<_ACEOF | |
10660 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10661 | _ACEOF | |
10662 | ||
10663 | else | |
10664 | $bailout | |
10665 | fi | |
10666 | ||
10667 | done | |
10668 | ||
10669 | check_lib_no_libs cman cman_init | |
10670 | if test $NOTFOUND = 0; then | |
10671 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10672 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10673 | CMAN_LIBS="-lcman" | |
10674 | HAVE_CMAN=yes | |
10675 | fi | |
10676 | elif test $pkg_failed = untried; then | |
10677 | NOTFOUND=0 | |
10678 | ||
10679 | for ac_header in libcman.h | |
10680 | do | |
10681 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10682 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10683 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10684 | $as_echo_n "checking for $ac_header... " >&6; } | |
10685 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10686 | $as_echo_n "(cached) " >&6 | |
10687 | fi | |
10688 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10689 | $as_echo "$as_val"'` | |
10690 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10691 | $as_echo "$ac_res" >&6; } | |
10692 | else | |
10693 | # Is the header compilable? | |
10694 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10695 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10696 | cat >conftest.$ac_ext <<_ACEOF | |
10697 | /* confdefs.h. */ | |
10698 | _ACEOF | |
10699 | cat confdefs.h >>conftest.$ac_ext | |
10700 | cat >>conftest.$ac_ext <<_ACEOF | |
10701 | /* end confdefs.h. */ | |
10702 | $ac_includes_default | |
10703 | #include <$ac_header> | |
10704 | _ACEOF | |
10705 | rm -f conftest.$ac_objext | |
10706 | if { (ac_try="$ac_compile" | |
10707 | case "(($ac_try" in | |
10708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10709 | *) ac_try_echo=$ac_try;; | |
10710 | esac | |
10711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10712 | $as_echo "$ac_try_echo") >&5 | |
10713 | (eval "$ac_compile") 2>conftest.er1 | |
10714 | ac_status=$? | |
10715 | grep -v '^ *+' conftest.er1 >conftest.err | |
10716 | rm -f conftest.er1 | |
10717 | cat conftest.err >&5 | |
10718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10719 | (exit $ac_status); } && { | |
10720 | test -z "$ac_c_werror_flag" || | |
10721 | test ! -s conftest.err | |
10722 | } && test -s conftest.$ac_objext; then | |
10723 | ac_header_compiler=yes | |
10724 | else | |
10725 | $as_echo "$as_me: failed program was:" >&5 | |
10726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10727 | ||
10728 | ac_header_compiler=no | |
10729 | fi | |
10730 | ||
10731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10732 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10733 | $as_echo "$ac_header_compiler" >&6; } | |
10734 | ||
10735 | # Is the header present? | |
10736 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10737 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10738 | cat >conftest.$ac_ext <<_ACEOF | |
10739 | /* confdefs.h. */ | |
10740 | _ACEOF | |
10741 | cat confdefs.h >>conftest.$ac_ext | |
10742 | cat >>conftest.$ac_ext <<_ACEOF | |
10743 | /* end confdefs.h. */ | |
10744 | #include <$ac_header> | |
10745 | _ACEOF | |
10746 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10747 | case "(($ac_try" in | |
10748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10749 | *) ac_try_echo=$ac_try;; | |
10750 | esac | |
10751 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10752 | $as_echo "$ac_try_echo") >&5 | |
10753 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10754 | ac_status=$? | |
10755 | grep -v '^ *+' conftest.er1 >conftest.err | |
10756 | rm -f conftest.er1 | |
10757 | cat conftest.err >&5 | |
10758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10759 | (exit $ac_status); } >/dev/null && { | |
10760 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10761 | test ! -s conftest.err | |
10762 | }; then | |
10763 | ac_header_preproc=yes | |
10764 | else | |
10765 | $as_echo "$as_me: failed program was:" >&5 | |
10766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10767 | ||
10768 | ac_header_preproc=no | |
10769 | fi | |
10770 | ||
10771 | rm -f conftest.err conftest.$ac_ext | |
10772 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10773 | $as_echo "$ac_header_preproc" >&6; } | |
10774 | ||
10775 | # So? What about this header? | |
10776 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10777 | yes:no: ) | |
10778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10779 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10781 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10782 | ac_header_preproc=yes | |
10783 | ;; | |
10784 | no:yes:* ) | |
10785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10786 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10788 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10790 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10791 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10792 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10794 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10795 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10796 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10797 | ||
10798 | ;; | |
10799 | esac | |
10800 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10801 | $as_echo_n "checking for $ac_header... " >&6; } | |
10802 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10803 | $as_echo_n "(cached) " >&6 | |
10804 | else | |
10805 | eval "$as_ac_Header=\$ac_header_preproc" | |
10806 | fi | |
10807 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10808 | $as_echo "$as_val"'` | |
10809 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10810 | $as_echo "$ac_res" >&6; } | |
10811 | ||
10812 | fi | |
10813 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10814 | $as_echo "$as_val"'` | |
10815 | if test "x$as_val" = x""yes; then | |
10816 | cat >>confdefs.h <<_ACEOF | |
10817 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10818 | _ACEOF | |
10819 | ||
10820 | else | |
10821 | $bailout | |
10822 | fi | |
10823 | ||
10824 | done | |
10825 | ||
10826 | check_lib_no_libs cman cman_init | |
10827 | if test $NOTFOUND = 0; then | |
10828 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10829 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10830 | CMAN_LIBS="-lcman" | |
10831 | HAVE_CMAN=yes | |
10832 | fi | |
10833 | else | |
10834 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10835 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10836 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10837 | $as_echo "yes" >&6; } | |
10838 | HAVE_CMAN=yes | |
10839 | fi | |
10840 | CHECKCONFDB=yes | |
10841 | CHECKDLM=yes | |
10842 | fi | |
10843 | ||
10844 | if test x$BUILDCOROSYNC = xyes || \ | |
10845 | test x$BUILDOPENAIS = xyes; then | |
10846 | ||
10847 | pkg_failed=no | |
10848 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10849 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10850 | ||
10851 | if test -n "$COROSYNC_CFLAGS"; then | |
10852 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10853 | elif test -n "$PKG_CONFIG"; then | |
10854 | if test -n "$PKG_CONFIG" && \ | |
10855 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10856 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10857 | ac_status=$? | |
10858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10859 | (exit $ac_status); }; then | |
10860 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10861 | else | |
10862 | pkg_failed=yes | |
10863 | fi | |
10864 | else | |
10865 | pkg_failed=untried | |
10866 | fi | |
10867 | if test -n "$COROSYNC_LIBS"; then | |
10868 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10869 | elif test -n "$PKG_CONFIG"; then | |
10870 | if test -n "$PKG_CONFIG" && \ | |
10871 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10872 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10873 | ac_status=$? | |
10874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10875 | (exit $ac_status); }; then | |
10876 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10877 | else | |
10878 | pkg_failed=yes | |
10879 | fi | |
10880 | else | |
10881 | pkg_failed=untried | |
10882 | fi | |
10883 | ||
10884 | ||
10885 | ||
10886 | if test $pkg_failed = yes; then | |
10887 | ||
10888 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10889 | _pkg_short_errors_supported=yes | |
10890 | else | |
10891 | _pkg_short_errors_supported=no | |
10892 | fi | |
10893 | if test $_pkg_short_errors_supported = yes; then | |
10894 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10895 | else | |
10896 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10897 | fi | |
10898 | # Put the nasty error message in config.log where it belongs | |
10899 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10900 | ||
10901 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10902 | $as_echo "no" >&6; } | |
10903 | $bailout | |
10904 | elif test $pkg_failed = untried; then | |
10905 | $bailout | |
10906 | else | |
10907 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10908 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10909 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10910 | $as_echo "yes" >&6; } | |
10911 | HAVE_COROSYNC=yes | |
10912 | fi | |
10913 | CHECKCONFDB=yes | |
10914 | fi | |
10915 | ||
10916 | if test x$BUILDCOROSYNC = xyes; then | |
10917 | ||
10918 | pkg_failed=no | |
10919 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10920 | $as_echo_n "checking for QUORUM... " >&6; } | |
10921 | ||
10922 | if test -n "$QUORUM_CFLAGS"; then | |
10923 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10924 | elif test -n "$PKG_CONFIG"; then | |
10925 | if test -n "$PKG_CONFIG" && \ | |
10926 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10927 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10928 | ac_status=$? | |
10929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10930 | (exit $ac_status); }; then | |
10931 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10932 | else | |
10933 | pkg_failed=yes | |
10934 | fi | |
10935 | else | |
10936 | pkg_failed=untried | |
10937 | fi | |
10938 | if test -n "$QUORUM_LIBS"; then | |
10939 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
10940 | elif test -n "$PKG_CONFIG"; then | |
10941 | if test -n "$PKG_CONFIG" && \ | |
10942 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10943 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10944 | ac_status=$? | |
10945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10946 | (exit $ac_status); }; then | |
10947 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
10948 | else | |
10949 | pkg_failed=yes | |
10950 | fi | |
10951 | else | |
10952 | pkg_failed=untried | |
10953 | fi | |
10954 | ||
10955 | ||
10956 | ||
10957 | if test $pkg_failed = yes; then | |
10958 | ||
10959 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10960 | _pkg_short_errors_supported=yes | |
10961 | else | |
10962 | _pkg_short_errors_supported=no | |
10963 | fi | |
10964 | if test $_pkg_short_errors_supported = yes; then | |
10965 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
10966 | else | |
10967 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
10968 | fi | |
10969 | # Put the nasty error message in config.log where it belongs | |
10970 | echo "$QUORUM_PKG_ERRORS" >&5 | |
10971 | ||
10972 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10973 | $as_echo "no" >&6; } | |
10974 | $bailout | |
10975 | elif test $pkg_failed = untried; then | |
10976 | $bailout | |
10977 | else | |
10978 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
10979 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
10980 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10981 | $as_echo "yes" >&6; } | |
10982 | HAVE_QUORUM=yes | |
10983 | fi | |
10984 | CHECKCPG=yes | |
10985 | CHECKDLM=yes | |
10986 | fi | |
10987 | ||
10988 | if test x$BUILDOPENAIS = xyes; then | |
10989 | ||
10990 | pkg_failed=no | |
10991 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
10992 | $as_echo_n "checking for SALCK... " >&6; } | |
10993 | ||
10994 | if test -n "$SALCK_CFLAGS"; then | |
10995 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
10996 | elif test -n "$PKG_CONFIG"; then | |
10997 | if test -n "$PKG_CONFIG" && \ | |
10998 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10999 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11000 | ac_status=$? | |
11001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11002 | (exit $ac_status); }; then | |
11003 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
11004 | else | |
11005 | pkg_failed=yes | |
11006 | fi | |
11007 | else | |
11008 | pkg_failed=untried | |
11009 | fi | |
11010 | if test -n "$SALCK_LIBS"; then | |
11011 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
11012 | elif test -n "$PKG_CONFIG"; then | |
11013 | if test -n "$PKG_CONFIG" && \ | |
11014 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
11015 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11016 | ac_status=$? | |
11017 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11018 | (exit $ac_status); }; then | |
11019 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
11020 | else | |
11021 | pkg_failed=yes | |
11022 | fi | |
11023 | else | |
11024 | pkg_failed=untried | |
11025 | fi | |
11026 | ||
11027 | ||
11028 | ||
11029 | if test $pkg_failed = yes; then | |
11030 | ||
11031 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11032 | _pkg_short_errors_supported=yes | |
11033 | else | |
11034 | _pkg_short_errors_supported=no | |
11035 | fi | |
11036 | if test $_pkg_short_errors_supported = yes; then | |
11037 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
11038 | else | |
11039 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
11040 | fi | |
11041 | # Put the nasty error message in config.log where it belongs | |
11042 | echo "$SALCK_PKG_ERRORS" >&5 | |
11043 | ||
11044 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11045 | $as_echo "no" >&6; } | |
11046 | $bailout | |
11047 | elif test $pkg_failed = untried; then | |
11048 | $bailout | |
11049 | else | |
11050 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
11051 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
11052 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11053 | $as_echo "yes" >&6; } | |
11054 | HAVE_SALCK=yes | |
11055 | fi | |
11056 | CHECKCPG=yes | |
11057 | fi | |
11058 | ||
11059 | ||
11060 | ||
11061 | if test x$CHECKCONFDB = xyes; then | |
11062 | ||
11063 | pkg_failed=no | |
11064 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
11065 | $as_echo_n "checking for CONFDB... " >&6; } | |
11066 | ||
11067 | if test -n "$CONFDB_CFLAGS"; then | |
11068 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
11069 | elif test -n "$PKG_CONFIG"; then | |
11070 | if test -n "$PKG_CONFIG" && \ | |
11071 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11072 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11073 | ac_status=$? | |
11074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11075 | (exit $ac_status); }; then | |
11076 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
11077 | else | |
11078 | pkg_failed=yes | |
11079 | fi | |
11080 | else | |
11081 | pkg_failed=untried | |
11082 | fi | |
11083 | if test -n "$CONFDB_LIBS"; then | |
11084 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
11085 | elif test -n "$PKG_CONFIG"; then | |
11086 | if test -n "$PKG_CONFIG" && \ | |
11087 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11088 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11089 | ac_status=$? | |
11090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11091 | (exit $ac_status); }; then | |
11092 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
11093 | else | |
11094 | pkg_failed=yes | |
11095 | fi | |
11096 | else | |
11097 | pkg_failed=untried | |
11098 | fi | |
11099 | ||
11100 | ||
11101 | ||
11102 | if test $pkg_failed = yes; then | |
11103 | ||
11104 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11105 | _pkg_short_errors_supported=yes | |
11106 | else | |
11107 | _pkg_short_errors_supported=no | |
11108 | fi | |
11109 | if test $_pkg_short_errors_supported = yes; then | |
11110 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
11111 | else | |
11112 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
11113 | fi | |
11114 | # Put the nasty error message in config.log where it belongs | |
11115 | echo "$CONFDB_PKG_ERRORS" >&5 | |
11116 | ||
11117 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11118 | $as_echo "no" >&6; } | |
11119 | HAVE_CONFDB=no | |
11120 | elif test $pkg_failed = untried; then | |
11121 | HAVE_CONFDB=no | |
11122 | else | |
11123 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11124 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11125 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11126 | $as_echo "yes" >&6; } | |
11127 | HAVE_CONFDB=yes | |
11128 | fi | |
11129 | ||
11130 | ||
11131 | for ac_header in corosync/confdb.h | |
11132 | do | |
11133 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11134 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11135 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11136 | $as_echo_n "checking for $ac_header... " >&6; } | |
11137 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11138 | $as_echo_n "(cached) " >&6 | |
11139 | fi | |
11140 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11141 | $as_echo "$as_val"'` | |
11142 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11143 | $as_echo "$ac_res" >&6; } | |
11144 | else | |
11145 | # Is the header compilable? | |
11146 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11147 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11148 | cat >conftest.$ac_ext <<_ACEOF | |
11149 | /* confdefs.h. */ | |
11150 | _ACEOF | |
11151 | cat confdefs.h >>conftest.$ac_ext | |
11152 | cat >>conftest.$ac_ext <<_ACEOF | |
11153 | /* end confdefs.h. */ | |
11154 | $ac_includes_default | |
11155 | #include <$ac_header> | |
11156 | _ACEOF | |
11157 | rm -f conftest.$ac_objext | |
11158 | if { (ac_try="$ac_compile" | |
11159 | case "(($ac_try" in | |
11160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11161 | *) ac_try_echo=$ac_try;; | |
11162 | esac | |
11163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11164 | $as_echo "$ac_try_echo") >&5 | |
11165 | (eval "$ac_compile") 2>conftest.er1 | |
11166 | ac_status=$? | |
11167 | grep -v '^ *+' conftest.er1 >conftest.err | |
11168 | rm -f conftest.er1 | |
11169 | cat conftest.err >&5 | |
11170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11171 | (exit $ac_status); } && { | |
11172 | test -z "$ac_c_werror_flag" || | |
11173 | test ! -s conftest.err | |
11174 | } && test -s conftest.$ac_objext; then | |
11175 | ac_header_compiler=yes | |
11176 | else | |
11177 | $as_echo "$as_me: failed program was:" >&5 | |
11178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11179 | ||
11180 | ac_header_compiler=no | |
11181 | fi | |
11182 | ||
11183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11184 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11185 | $as_echo "$ac_header_compiler" >&6; } | |
11186 | ||
11187 | # Is the header present? | |
11188 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11189 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11190 | cat >conftest.$ac_ext <<_ACEOF | |
11191 | /* confdefs.h. */ | |
11192 | _ACEOF | |
11193 | cat confdefs.h >>conftest.$ac_ext | |
11194 | cat >>conftest.$ac_ext <<_ACEOF | |
11195 | /* end confdefs.h. */ | |
11196 | #include <$ac_header> | |
11197 | _ACEOF | |
11198 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11199 | case "(($ac_try" in | |
11200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11201 | *) ac_try_echo=$ac_try;; | |
11202 | esac | |
11203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11204 | $as_echo "$ac_try_echo") >&5 | |
11205 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11206 | ac_status=$? | |
11207 | grep -v '^ *+' conftest.er1 >conftest.err | |
11208 | rm -f conftest.er1 | |
11209 | cat conftest.err >&5 | |
11210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11211 | (exit $ac_status); } >/dev/null && { | |
11212 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11213 | test ! -s conftest.err | |
11214 | }; then | |
11215 | ac_header_preproc=yes | |
11216 | else | |
11217 | $as_echo "$as_me: failed program was:" >&5 | |
11218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11219 | ||
11220 | ac_header_preproc=no | |
11221 | fi | |
11222 | ||
11223 | rm -f conftest.err conftest.$ac_ext | |
11224 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11225 | $as_echo "$ac_header_preproc" >&6; } | |
11226 | ||
11227 | # So? What about this header? | |
11228 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11229 | yes:no: ) | |
11230 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11231 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11232 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11233 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11234 | ac_header_preproc=yes | |
11235 | ;; | |
11236 | no:yes:* ) | |
11237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11238 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11240 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11242 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11243 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11244 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11245 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11246 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11247 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11248 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11249 | ||
11250 | ;; | |
11251 | esac | |
11252 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11253 | $as_echo_n "checking for $ac_header... " >&6; } | |
11254 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11255 | $as_echo_n "(cached) " >&6 | |
11256 | else | |
11257 | eval "$as_ac_Header=\$ac_header_preproc" | |
11258 | fi | |
11259 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11260 | $as_echo "$as_val"'` | |
11261 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11262 | $as_echo "$ac_res" >&6; } | |
11263 | ||
11264 | fi | |
11265 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11266 | $as_echo "$as_val"'` | |
11267 | if test "x$as_val" = x""yes; then | |
11268 | cat >>confdefs.h <<_ACEOF | |
11269 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11270 | _ACEOF | |
11271 | HAVE_CONFDB_H=yes | |
11272 | else | |
11273 | HAVE_CONFDB_H=no | |
11274 | fi | |
11275 | ||
11276 | done | |
11277 | ||
11278 | ||
11279 | if test x$HAVE_CONFDB != xyes && \ | |
11280 | test x$HAVE_CONFDB_H = xyes; then | |
11281 | check_lib_no_libs confdb confdb_initialize | |
11282 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11283 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11284 | CONFDB_LIBS="-lconfdb" | |
11285 | HAVE_CONFDB=yes | |
11286 | fi | |
11287 | ||
11288 | if test x$BUILDCOROSYNC = xyes && \ | |
11289 | test x$HAVE_CONFDB != xyes && | |
11290 | test x$CLVMD != xall; then | |
11291 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11292 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11293 | { (exit 1); exit 1; }; } | |
11294 | fi | |
11295 | fi | |
11296 | ||
11297 | if test x$CHECKCPG = xyes; then | |
11298 | ||
11299 | pkg_failed=no | |
11300 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11301 | $as_echo_n "checking for CPG... " >&6; } | |
11302 | ||
11303 | if test -n "$CPG_CFLAGS"; then | |
11304 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11305 | elif test -n "$PKG_CONFIG"; then | |
11306 | if test -n "$PKG_CONFIG" && \ | |
11307 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11308 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11309 | ac_status=$? | |
11310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11311 | (exit $ac_status); }; then | |
11312 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11313 | else | |
11314 | pkg_failed=yes | |
11315 | fi | |
11316 | else | |
11317 | pkg_failed=untried | |
11318 | fi | |
11319 | if test -n "$CPG_LIBS"; then | |
11320 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11321 | elif test -n "$PKG_CONFIG"; then | |
11322 | if test -n "$PKG_CONFIG" && \ | |
11323 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11324 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11325 | ac_status=$? | |
11326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11327 | (exit $ac_status); }; then | |
11328 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11329 | else | |
11330 | pkg_failed=yes | |
11331 | fi | |
11332 | else | |
11333 | pkg_failed=untried | |
11334 | fi | |
11335 | ||
11336 | ||
11337 | ||
11338 | if test $pkg_failed = yes; then | |
11339 | ||
11340 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11341 | _pkg_short_errors_supported=yes | |
11342 | else | |
11343 | _pkg_short_errors_supported=no | |
11344 | fi | |
11345 | if test $_pkg_short_errors_supported = yes; then | |
11346 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11347 | else | |
11348 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11349 | fi | |
11350 | # Put the nasty error message in config.log where it belongs | |
11351 | echo "$CPG_PKG_ERRORS" >&5 | |
11352 | ||
11353 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11354 | $as_echo "no" >&6; } | |
11355 | $bailout | |
11356 | elif test $pkg_failed = untried; then | |
11357 | $bailout | |
11358 | else | |
11359 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11360 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11361 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11362 | $as_echo "yes" >&6; } | |
11363 | HAVE_CPG=yes | |
11364 | fi | |
11365 | fi | |
11366 | ||
11367 | if test x$CHECKDLM = xyes; then | |
11368 | ||
11369 | pkg_failed=no | |
11370 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11371 | $as_echo_n "checking for DLM... " >&6; } | |
11372 | ||
11373 | if test -n "$DLM_CFLAGS"; then | |
11374 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11375 | elif test -n "$PKG_CONFIG"; then | |
11376 | if test -n "$PKG_CONFIG" && \ | |
11377 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11378 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11379 | ac_status=$? | |
11380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11381 | (exit $ac_status); }; then | |
11382 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11383 | else | |
11384 | pkg_failed=yes | |
11385 | fi | |
11386 | else | |
11387 | pkg_failed=untried | |
11388 | fi | |
11389 | if test -n "$DLM_LIBS"; then | |
11390 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11391 | elif test -n "$PKG_CONFIG"; then | |
11392 | if test -n "$PKG_CONFIG" && \ | |
11393 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11394 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11395 | ac_status=$? | |
11396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11397 | (exit $ac_status); }; then | |
11398 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11399 | else | |
11400 | pkg_failed=yes | |
11401 | fi | |
11402 | else | |
11403 | pkg_failed=untried | |
11404 | fi | |
11405 | ||
11406 | ||
11407 | ||
11408 | if test $pkg_failed = yes; then | |
11409 | ||
11410 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11411 | _pkg_short_errors_supported=yes | |
11412 | else | |
11413 | _pkg_short_errors_supported=no | |
11414 | fi | |
11415 | if test $_pkg_short_errors_supported = yes; then | |
11416 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11417 | else | |
11418 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11419 | fi | |
11420 | # Put the nasty error message in config.log where it belongs | |
11421 | echo "$DLM_PKG_ERRORS" >&5 | |
11422 | ||
11423 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11424 | $as_echo "no" >&6; } | |
11425 | NOTFOUND=0 | |
11426 | ||
11427 | for ac_header in libdlm.h | |
11428 | do | |
11429 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11431 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11432 | $as_echo_n "checking for $ac_header... " >&6; } | |
11433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11434 | $as_echo_n "(cached) " >&6 | |
11435 | fi | |
11436 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11437 | $as_echo "$as_val"'` | |
11438 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11439 | $as_echo "$ac_res" >&6; } | |
11440 | else | |
11441 | # Is the header compilable? | |
11442 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11443 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11444 | cat >conftest.$ac_ext <<_ACEOF | |
11445 | /* confdefs.h. */ | |
11446 | _ACEOF | |
11447 | cat confdefs.h >>conftest.$ac_ext | |
11448 | cat >>conftest.$ac_ext <<_ACEOF | |
11449 | /* end confdefs.h. */ | |
11450 | $ac_includes_default | |
11451 | #include <$ac_header> | |
11452 | _ACEOF | |
11453 | rm -f conftest.$ac_objext | |
11454 | if { (ac_try="$ac_compile" | |
11455 | case "(($ac_try" in | |
11456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11457 | *) ac_try_echo=$ac_try;; | |
11458 | esac | |
11459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11460 | $as_echo "$ac_try_echo") >&5 | |
11461 | (eval "$ac_compile") 2>conftest.er1 | |
11462 | ac_status=$? | |
11463 | grep -v '^ *+' conftest.er1 >conftest.err | |
11464 | rm -f conftest.er1 | |
11465 | cat conftest.err >&5 | |
11466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11467 | (exit $ac_status); } && { | |
11468 | test -z "$ac_c_werror_flag" || | |
11469 | test ! -s conftest.err | |
11470 | } && test -s conftest.$ac_objext; then | |
11471 | ac_header_compiler=yes | |
11472 | else | |
11473 | $as_echo "$as_me: failed program was:" >&5 | |
11474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11475 | ||
11476 | ac_header_compiler=no | |
11477 | fi | |
11478 | ||
11479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11480 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11481 | $as_echo "$ac_header_compiler" >&6; } | |
11482 | ||
11483 | # Is the header present? | |
11484 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11485 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11486 | cat >conftest.$ac_ext <<_ACEOF | |
11487 | /* confdefs.h. */ | |
11488 | _ACEOF | |
11489 | cat confdefs.h >>conftest.$ac_ext | |
11490 | cat >>conftest.$ac_ext <<_ACEOF | |
11491 | /* end confdefs.h. */ | |
11492 | #include <$ac_header> | |
11493 | _ACEOF | |
11494 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11495 | case "(($ac_try" in | |
11496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11497 | *) ac_try_echo=$ac_try;; | |
11498 | esac | |
11499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11500 | $as_echo "$ac_try_echo") >&5 | |
11501 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11502 | ac_status=$? | |
11503 | grep -v '^ *+' conftest.er1 >conftest.err | |
11504 | rm -f conftest.er1 | |
11505 | cat conftest.err >&5 | |
11506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11507 | (exit $ac_status); } >/dev/null && { | |
11508 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11509 | test ! -s conftest.err | |
11510 | }; then | |
11511 | ac_header_preproc=yes | |
11512 | else | |
11513 | $as_echo "$as_me: failed program was:" >&5 | |
11514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11515 | ||
11516 | ac_header_preproc=no | |
11517 | fi | |
11518 | ||
11519 | rm -f conftest.err conftest.$ac_ext | |
11520 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11521 | $as_echo "$ac_header_preproc" >&6; } | |
11522 | ||
11523 | # So? What about this header? | |
11524 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11525 | yes:no: ) | |
11526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11527 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11528 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11529 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11530 | ac_header_preproc=yes | |
11531 | ;; | |
11532 | no:yes:* ) | |
11533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11534 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11536 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11538 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11540 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11542 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11543 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11544 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11545 | ||
11546 | ;; | |
11547 | esac | |
11548 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11549 | $as_echo_n "checking for $ac_header... " >&6; } | |
11550 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11551 | $as_echo_n "(cached) " >&6 | |
11552 | else | |
11553 | eval "$as_ac_Header=\$ac_header_preproc" | |
11554 | fi | |
11555 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11556 | $as_echo "$as_val"'` | |
11557 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11558 | $as_echo "$ac_res" >&6; } | |
11559 | ||
11560 | fi | |
11561 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11562 | $as_echo "$as_val"'` | |
11563 | if test "x$as_val" = x""yes; then | |
11564 | cat >>confdefs.h <<_ACEOF | |
11565 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11566 | _ACEOF | |
11567 | ||
11568 | else | |
11569 | $bailout | |
11570 | fi | |
11571 | ||
11572 | done | |
11573 | ||
11574 | check_lib_no_libs dlm dlm_lock -lpthread | |
11575 | if test $NOTFOUND = 0; then | |
11576 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11577 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11578 | DLM_LIBS="-ldlm -lpthread" | |
11579 | HAVE_DLM=yes | |
11580 | fi | |
11581 | elif test $pkg_failed = untried; then | |
11582 | NOTFOUND=0 | |
11583 | ||
11584 | for ac_header in libdlm.h | |
11585 | do | |
11586 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11588 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11589 | $as_echo_n "checking for $ac_header... " >&6; } | |
11590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11591 | $as_echo_n "(cached) " >&6 | |
11592 | fi | |
11593 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11594 | $as_echo "$as_val"'` | |
11595 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11596 | $as_echo "$ac_res" >&6; } | |
11597 | else | |
11598 | # Is the header compilable? | |
11599 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11600 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11601 | cat >conftest.$ac_ext <<_ACEOF | |
11602 | /* confdefs.h. */ | |
11603 | _ACEOF | |
11604 | cat confdefs.h >>conftest.$ac_ext | |
11605 | cat >>conftest.$ac_ext <<_ACEOF | |
11606 | /* end confdefs.h. */ | |
11607 | $ac_includes_default | |
11608 | #include <$ac_header> | |
11609 | _ACEOF | |
11610 | rm -f conftest.$ac_objext | |
11611 | if { (ac_try="$ac_compile" | |
11612 | case "(($ac_try" in | |
11613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11614 | *) ac_try_echo=$ac_try;; | |
11615 | esac | |
11616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11617 | $as_echo "$ac_try_echo") >&5 | |
11618 | (eval "$ac_compile") 2>conftest.er1 | |
11619 | ac_status=$? | |
11620 | grep -v '^ *+' conftest.er1 >conftest.err | |
11621 | rm -f conftest.er1 | |
11622 | cat conftest.err >&5 | |
11623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11624 | (exit $ac_status); } && { | |
11625 | test -z "$ac_c_werror_flag" || | |
11626 | test ! -s conftest.err | |
11627 | } && test -s conftest.$ac_objext; then | |
11628 | ac_header_compiler=yes | |
11629 | else | |
11630 | $as_echo "$as_me: failed program was:" >&5 | |
11631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11632 | ||
11633 | ac_header_compiler=no | |
11634 | fi | |
11635 | ||
11636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11637 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11638 | $as_echo "$ac_header_compiler" >&6; } | |
11639 | ||
11640 | # Is the header present? | |
11641 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11642 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11643 | cat >conftest.$ac_ext <<_ACEOF | |
11644 | /* confdefs.h. */ | |
11645 | _ACEOF | |
11646 | cat confdefs.h >>conftest.$ac_ext | |
11647 | cat >>conftest.$ac_ext <<_ACEOF | |
11648 | /* end confdefs.h. */ | |
11649 | #include <$ac_header> | |
11650 | _ACEOF | |
11651 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11652 | case "(($ac_try" in | |
11653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11654 | *) ac_try_echo=$ac_try;; | |
11655 | esac | |
11656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11657 | $as_echo "$ac_try_echo") >&5 | |
11658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11659 | ac_status=$? | |
11660 | grep -v '^ *+' conftest.er1 >conftest.err | |
11661 | rm -f conftest.er1 | |
11662 | cat conftest.err >&5 | |
11663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11664 | (exit $ac_status); } >/dev/null && { | |
11665 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11666 | test ! -s conftest.err | |
11667 | }; then | |
11668 | ac_header_preproc=yes | |
11669 | else | |
11670 | $as_echo "$as_me: failed program was:" >&5 | |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11672 | ||
11673 | ac_header_preproc=no | |
11674 | fi | |
11675 | ||
11676 | rm -f conftest.err conftest.$ac_ext | |
11677 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11678 | $as_echo "$ac_header_preproc" >&6; } | |
11679 | ||
11680 | # So? What about this header? | |
11681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11682 | yes:no: ) | |
11683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11684 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11686 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11687 | ac_header_preproc=yes | |
11688 | ;; | |
11689 | no:yes:* ) | |
11690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11691 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11693 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11695 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11697 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11699 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11701 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11702 | ||
11703 | ;; | |
11704 | esac | |
11705 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11706 | $as_echo_n "checking for $ac_header... " >&6; } | |
11707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11708 | $as_echo_n "(cached) " >&6 | |
11709 | else | |
11710 | eval "$as_ac_Header=\$ac_header_preproc" | |
11711 | fi | |
11712 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11713 | $as_echo "$as_val"'` | |
11714 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11715 | $as_echo "$ac_res" >&6; } | |
11716 | ||
11717 | fi | |
11718 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11719 | $as_echo "$as_val"'` | |
11720 | if test "x$as_val" = x""yes; then | |
11721 | cat >>confdefs.h <<_ACEOF | |
11722 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11723 | _ACEOF | |
11724 | ||
11725 | else | |
11726 | $bailout | |
11727 | fi | |
11728 | ||
11729 | done | |
11730 | ||
11731 | check_lib_no_libs dlm dlm_lock -lpthread | |
11732 | if test $NOTFOUND = 0; then | |
11733 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11734 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11735 | DLM_LIBS="-ldlm -lpthread" | |
11736 | HAVE_DLM=yes | |
11737 | fi | |
11738 | else | |
11739 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11740 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11741 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11742 | $as_echo "yes" >&6; } | |
11743 | HAVE_DLM=yes | |
11744 | fi | |
11745 | fi | |
11746 | ||
11747 | if test x$CLVMD = xall; then | |
8c222979 | 11748 | CLVMD=none |
a946372e AK |
11749 | if test x$HAVE_CCS = xyes && \ |
11750 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
11751 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
11752 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
11753 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
11754 | fi |
11755 | if test x$HAVE_CMAN = xyes && \ | |
11756 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
11757 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
11758 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
11759 | CLVMD="$CLVMD,cman" | |
a946372e AK |
11760 | fi |
11761 | if test x$HAVE_COROSYNC = xyes && \ | |
11762 | test x$HAVE_QUORUM = xyes && \ | |
11763 | test x$HAVE_CPG = xyes && \ | |
11764 | test x$HAVE_DLM = xyes && \ | |
11765 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
11766 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
11767 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
11768 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
11769 | fi |
11770 | if test x$HAVE_COROSYNC = xyes && \ | |
11771 | test x$HAVE_CPG = xyes && \ | |
11772 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
11773 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
11774 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
11775 | CLVMD="$CLVMD,openais" | |
11776 | fi | |
11777 | if test x$CLVMD = xnone; then | |
11778 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
11779 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 11780 | fi |
a946372e AK |
11781 | fi |
11782 | ||
11783 | ################################################################################ | |
66fd4529 AK |
11784 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11785 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11786 | # Check whether --enable-cmirrord was given. | |
11787 | if test "${enable_cmirrord+set}" = set; then | |
11788 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11789 | else | |
11790 | CMIRRORD=no | |
11791 | fi | |
11792 | ||
11793 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11794 | $as_echo "$CMIRRORD" >&6; } | |
11795 | ||
11796 | BUILD_CMIRRORD=$CMIRRORD | |
11797 | ||
11798 | ################################################################################ | |
11799 | ||
11800 | ||
11801 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11802 | ||
11803 | # Check whether --with-cmirrord-pidfile was given. | |
11804 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11805 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11806 | #define CMIRRORD_PIDFILE "$withval" | |
11807 | _ACEOF | |
11808 | ||
11809 | else | |
11810 | cat >>confdefs.h <<_ACEOF | |
11811 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11812 | _ACEOF | |
11813 | ||
a946372e AK |
11814 | fi |
11815 | ||
66fd4529 | 11816 | fi |
a946372e | 11817 | |
66fd4529 AK |
11818 | ################################################################################ |
11819 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
11820 | if test x$PKGCONFIG_INIT != x1; then |
11821 | pkg_config_init | |
11822 | fi | |
11823 | ||
11824 | pkg_failed=no | |
11825 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
11826 | $as_echo_n "checking for SACKPT... " >&6; } | |
11827 | ||
11828 | if test -n "$SACKPT_CFLAGS"; then | |
11829 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
11830 | elif test -n "$PKG_CONFIG"; then | |
11831 | if test -n "$PKG_CONFIG" && \ | |
11832 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11833 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11834 | ac_status=$? | |
11835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11836 | (exit $ac_status); }; then | |
11837 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
11838 | else | |
11839 | pkg_failed=yes | |
11840 | fi | |
11841 | else | |
11842 | pkg_failed=untried | |
11843 | fi | |
11844 | if test -n "$SACKPT_LIBS"; then | |
11845 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
11846 | elif test -n "$PKG_CONFIG"; then | |
11847 | if test -n "$PKG_CONFIG" && \ | |
11848 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11849 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11850 | ac_status=$? | |
11851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11852 | (exit $ac_status); }; then | |
11853 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
11854 | else | |
11855 | pkg_failed=yes | |
11856 | fi | |
11857 | else | |
11858 | pkg_failed=untried | |
11859 | fi | |
11860 | ||
11861 | ||
11862 | ||
11863 | if test $pkg_failed = yes; then | |
11864 | ||
11865 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11866 | _pkg_short_errors_supported=yes | |
11867 | else | |
11868 | _pkg_short_errors_supported=no | |
11869 | fi | |
11870 | if test $_pkg_short_errors_supported = yes; then | |
11871 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
11872 | else | |
11873 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
11874 | fi | |
11875 | # Put the nasty error message in config.log where it belongs | |
11876 | echo "$SACKPT_PKG_ERRORS" >&5 | |
11877 | ||
11878 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
11879 | ||
11880 | $SACKPT_PKG_ERRORS | |
11881 | ||
11882 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11883 | installed software in a non-standard prefix. | |
11884 | ||
11885 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11886 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11887 | See the pkg-config man page for more details. | |
11888 | " >&5 | |
11889 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: | |
11890 | ||
11891 | $SACKPT_PKG_ERRORS | |
11892 | ||
11893 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11894 | installed software in a non-standard prefix. | |
11895 | ||
11896 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11897 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11898 | See the pkg-config man page for more details. | |
11899 | " >&2;} | |
11900 | { (exit 1); exit 1; }; } | |
11901 | elif test $pkg_failed = untried; then | |
11902 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11903 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11904 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11905 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11906 | path to pkg-config. | |
11907 | ||
11908 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11909 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11910 | See the pkg-config man page for more details. | |
11911 | ||
11912 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11913 | See \`config.log' for more details." >&5 | |
11914 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11915 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11916 | path to pkg-config. | |
11917 | ||
11918 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11919 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11920 | See the pkg-config man page for more details. | |
11921 | ||
11922 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11923 | See \`config.log' for more details." >&2;} | |
11924 | { (exit 1); exit 1; }; }; } | |
11925 | else | |
11926 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
11927 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
11928 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11929 | $as_echo "yes" >&6; } | |
11930 | : | |
11931 | fi | |
11932 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
11933 | |
11934 | pkg_failed=no | |
11935 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11936 | $as_echo_n "checking for CPG... " >&6; } | |
11937 | ||
11938 | if test -n "$CPG_CFLAGS"; then | |
11939 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11940 | elif test -n "$PKG_CONFIG"; then | |
11941 | if test -n "$PKG_CONFIG" && \ | |
11942 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11943 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11944 | ac_status=$? | |
11945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11946 | (exit $ac_status); }; then | |
11947 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11948 | else | |
11949 | pkg_failed=yes | |
11950 | fi | |
11951 | else | |
11952 | pkg_failed=untried | |
11953 | fi | |
11954 | if test -n "$CPG_LIBS"; then | |
11955 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11956 | elif test -n "$PKG_CONFIG"; then | |
11957 | if test -n "$PKG_CONFIG" && \ | |
11958 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11959 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11960 | ac_status=$? | |
11961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11962 | (exit $ac_status); }; then | |
11963 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11964 | else | |
11965 | pkg_failed=yes | |
11966 | fi | |
11967 | else | |
11968 | pkg_failed=untried | |
11969 | fi | |
11970 | ||
11971 | ||
11972 | ||
11973 | if test $pkg_failed = yes; then | |
11974 | ||
11975 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11976 | _pkg_short_errors_supported=yes | |
11977 | else | |
11978 | _pkg_short_errors_supported=no | |
11979 | fi | |
11980 | if test $_pkg_short_errors_supported = yes; then | |
11981 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11982 | else | |
11983 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11984 | fi | |
11985 | # Put the nasty error message in config.log where it belongs | |
11986 | echo "$CPG_PKG_ERRORS" >&5 | |
11987 | ||
90c80887 AK |
11988 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
11989 | ||
11990 | $CPG_PKG_ERRORS | |
11991 | ||
11992 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11993 | installed software in a non-standard prefix. | |
11994 | ||
11995 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11996 | and CPG_LIBS to avoid the need to call pkg-config. | |
11997 | See the pkg-config man page for more details. | |
11998 | " >&5 | |
11999 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: | |
12000 | ||
12001 | $CPG_PKG_ERRORS | |
12002 | ||
12003 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12004 | installed software in a non-standard prefix. | |
12005 | ||
12006 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12007 | and CPG_LIBS to avoid the need to call pkg-config. | |
12008 | See the pkg-config man page for more details. | |
12009 | " >&2;} | |
12010 | { (exit 1); exit 1; }; } | |
a946372e | 12011 | elif test $pkg_failed = untried; then |
90c80887 AK |
12012 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12014 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
12015 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12016 | path to pkg-config. | |
12017 | ||
12018 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12019 | and CPG_LIBS to avoid the need to call pkg-config. | |
12020 | See the pkg-config man page for more details. | |
12021 | ||
12022 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12023 | See \`config.log' for more details." >&5 | |
12024 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
12025 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12026 | path to pkg-config. | |
12027 | ||
12028 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12029 | and CPG_LIBS to avoid the need to call pkg-config. | |
12030 | See the pkg-config man page for more details. | |
12031 | ||
12032 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12033 | See \`config.log' for more details." >&2;} | |
12034 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
12035 | else |
12036 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
12037 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
12038 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12039 | $as_echo "yes" >&6; } | |
12040 | : | |
12041 | fi | |
90c80887 | 12042 | fi |
a946372e AK |
12043 | fi |
12044 | ||
12045 | ################################################################################ | |
12046 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
12047 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
12048 | # Check whether --enable-debug was given. | |
12049 | if test "${enable_debug+set}" = set; then | |
12050 | enableval=$enable_debug; DEBUG=$enableval | |
12051 | else | |
12052 | DEBUG=no | |
12053 | fi | |
12054 | ||
12055 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
12056 | $as_echo "$DEBUG" >&6; } | |
12057 | ||
12058 | if test x$DEBUG = xyes; then | |
12059 | COPTIMISE_FLAG= | |
12060 | else | |
12061 | CSCOPE_CMD= | |
12062 | fi | |
12063 | ||
12064 | ################################################################################ | |
12065 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
12066 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
12067 | ||
12068 | # Check whether --with-optimisation was given. | |
12069 | if test "${with_optimisation+set}" = set; then | |
12070 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
12071 | fi | |
12072 | ||
12073 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
12074 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
12075 | ||
12076 | ################################################################################ | |
12077 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
12078 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
12079 | # Check whether --enable-profiling was given. | |
12080 | if test "${enable_profiling+set}" = set; then | |
5556819a | 12081 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 12082 | else |
5556819a | 12083 | PROFILING=no |
fddafd51 ZK |
12084 | fi |
12085 | ||
ec6a6fbe AK |
12086 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
12087 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
12088 | |
12089 | if test "x$PROFILING" = xyes; then | |
12090 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
12091 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 12092 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
12093 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12094 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12095 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 12096 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12097 | else |
12098 | case $LCOV in | |
12099 | [\\/]* | ?:[\\/]*) | |
12100 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
12101 | ;; | |
12102 | *) | |
12103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12104 | for as_dir in $PATH | |
12105 | do | |
12106 | IFS=$as_save_IFS | |
12107 | test -z "$as_dir" && as_dir=. | |
12108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12110 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12111 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12112 | break 2 |
12113 | fi | |
12114 | done | |
12115 | done | |
12116 | IFS=$as_save_IFS | |
12117 | ||
12118 | ;; | |
12119 | esac | |
12120 | fi | |
12121 | LCOV=$ac_cv_path_LCOV | |
12122 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
12123 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
12124 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 12125 | else |
ec6a6fbe AK |
12126 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12127 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12128 | fi |
12129 | ||
12130 | ||
5556819a | 12131 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 12132 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
12133 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12134 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12135 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 12136 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12137 | else |
12138 | case $GENHTML in | |
12139 | [\\/]* | ?:[\\/]*) | |
12140 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
12141 | ;; | |
12142 | *) | |
12143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12144 | for as_dir in $PATH | |
12145 | do | |
12146 | IFS=$as_save_IFS | |
12147 | test -z "$as_dir" && as_dir=. | |
12148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12150 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12151 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12152 | break 2 |
12153 | fi | |
12154 | done | |
12155 | done | |
12156 | IFS=$as_save_IFS | |
12157 | ||
12158 | ;; | |
12159 | esac | |
12160 | fi | |
12161 | GENHTML=$ac_cv_path_GENHTML | |
12162 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
12163 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
12164 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 12165 | else |
ec6a6fbe AK |
12166 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12167 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12168 | fi |
12169 | ||
12170 | ||
fd4728e1 | 12171 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
12172 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
12173 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
12174 | { (exit 1); exit 1; }; } |
12175 | fi | |
fd4728e1 ZK |
12176 | # Extract the first word of "genpng", so it can be a program name with args. |
12177 | set dummy genpng; ac_word=$2 | |
12178 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12179 | $as_echo_n "checking for $ac_word... " >&6; } | |
12180 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
12181 | $as_echo_n "(cached) " >&6 | |
12182 | else | |
12183 | case $GENPNG in | |
12184 | [\\/]* | ?:[\\/]*) | |
12185 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
12186 | ;; | |
12187 | *) | |
12188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12189 | for as_dir in $PATH | |
12190 | do | |
12191 | IFS=$as_save_IFS | |
12192 | test -z "$as_dir" && as_dir=. | |
12193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12195 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
12196 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12197 | break 2 | |
12198 | fi | |
12199 | done | |
12200 | done | |
12201 | IFS=$as_save_IFS | |
12202 | ||
12203 | ;; | |
12204 | esac | |
12205 | fi | |
12206 | GENPNG=$ac_cv_path_GENPNG | |
12207 | if test -n "$GENPNG"; then | |
12208 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
12209 | $as_echo "$GENPNG" >&6; } | |
12210 | else | |
12211 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12212 | $as_echo "no" >&6; } | |
12213 | fi | |
12214 | ||
12215 | ||
12216 | if test -n "$GENPNG"; then | |
12217 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
12218 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
12219 | if $GENPNG --help > /dev/null 2>&1 ; then | |
12220 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
12221 | $as_echo "ok" >&6; } | |
12222 | GENHTML="$GENHTML --frames" | |
12223 | else | |
12224 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
12225 | $as_echo "not supported" >&6; } | |
12226 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
12227 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
12228 | GENPNG= | |
12229 | fi | |
12230 | fi | |
5556819a | 12231 | fi |
d0191583 JM |
12232 | |
12233 | ################################################################################ | |
ec6a6fbe AK |
12234 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
12235 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
12236 | # Check whether --enable-devmapper was given. |
12237 | if test "${enable_devmapper+set}" = set; then | |
12238 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
12239 | fi |
12240 | ||
ec6a6fbe AK |
12241 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
12242 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
12243 | |
12244 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
12245 | |
12246 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 12247 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
12248 | _ACEOF |
12249 | ||
12250 | fi | |
12251 | ||
a5f46f6a AK |
12252 | ################################################################################ |
12253 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
12254 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
12255 | # Check whether --enable-udev_sync was given. | |
12256 | if test "${enable_udev_sync+set}" = set; then | |
12257 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
12258 | else | |
12259 | UDEV_SYNC=no | |
12260 | fi | |
12261 | ||
12262 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
12263 | $as_echo "$UDEV_SYNC" >&6; } | |
12264 | ||
90c80887 AK |
12265 | if test x$UDEV_SYNC = xyes; then |
12266 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
12267 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
12268 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
12269 | $as_echo_n "(cached) " >&6 | |
12270 | else | |
12271 | ac_check_lib_save_LIBS=$LIBS | |
12272 | LIBS="-ludev $LIBS" | |
12273 | cat >conftest.$ac_ext <<_ACEOF | |
12274 | /* confdefs.h. */ | |
12275 | _ACEOF | |
12276 | cat confdefs.h >>conftest.$ac_ext | |
12277 | cat >>conftest.$ac_ext <<_ACEOF | |
12278 | /* end confdefs.h. */ | |
12279 | ||
12280 | /* Override any GCC internal prototype to avoid an error. | |
12281 | Use char because int might match the return type of a GCC | |
12282 | builtin and then its argument prototype would still apply. */ | |
12283 | #ifdef __cplusplus | |
12284 | extern "C" | |
12285 | #endif | |
12286 | char udev_queue_get_udev_is_active (); | |
12287 | int | |
12288 | main () | |
12289 | { | |
12290 | return udev_queue_get_udev_is_active (); | |
12291 | ; | |
12292 | return 0; | |
12293 | } | |
12294 | _ACEOF | |
12295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12296 | if { (ac_try="$ac_link" | |
12297 | case "(($ac_try" in | |
12298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12299 | *) ac_try_echo=$ac_try;; | |
12300 | esac | |
12301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12302 | $as_echo "$ac_try_echo") >&5 | |
12303 | (eval "$ac_link") 2>conftest.er1 | |
12304 | ac_status=$? | |
12305 | grep -v '^ *+' conftest.er1 >conftest.err | |
12306 | rm -f conftest.er1 | |
12307 | cat conftest.err >&5 | |
12308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12309 | (exit $ac_status); } && { | |
12310 | test -z "$ac_c_werror_flag" || | |
12311 | test ! -s conftest.err | |
12312 | } && test -s conftest$ac_exeext && { | |
12313 | test "$cross_compiling" = yes || | |
12314 | $as_test_x conftest$ac_exeext | |
12315 | }; then | |
12316 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
12317 | else | |
12318 | $as_echo "$as_me: failed program was:" >&5 | |
12319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12320 | ||
12321 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
12322 | fi | |
12323 | ||
12324 | rm -rf conftest.dSYM | |
12325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12326 | conftest$ac_exeext conftest.$ac_ext | |
12327 | LIBS=$ac_check_lib_save_LIBS | |
12328 | fi | |
12329 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
12330 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
12331 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 12332 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 12333 | else |
5161ecb9 PR |
12334 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
12335 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
12336 | { (exit 1); exit 1; }; } | |
90c80887 AK |
12337 | fi |
12338 | ||
12339 | ||
90c80887 | 12340 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 12341 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
12342 | _ACEOF |
12343 | ||
90c80887 AK |
12344 | fi |
12345 | ||
5161ecb9 PR |
12346 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
12347 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
12348 | # Check whether --enable-udev_rules was given. | |
12349 | if test "${enable_udev_rules+set}" = set; then | |
12350 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
12351 | else | |
12352 | UDEV_RULES=$UDEV_SYNC | |
12353 | fi | |
12354 | ||
12355 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
12356 | $as_echo "$UDEV_RULES" >&6; } | |
12357 | ||
93bd259b AK |
12358 | ################################################################################ |
12359 | # Check whether --enable-compat was given. | |
12360 | if test "${enable_compat+set}" = set; then | |
12361 | enableval=$enable_compat; DM_COMPAT=$enableval | |
12362 | else | |
12363 | DM_COMPAT=no | |
12364 | fi | |
12365 | ||
12366 | ||
95eaa683 AK |
12367 | ################################################################################ |
12368 | # Check whether --enable-units-compat was given. | |
12369 | if test "${enable_units_compat+set}" = set; then | |
12370 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
12371 | else | |
12372 | UNITS_COMPAT=no | |
12373 | fi | |
12374 | ||
12375 | ||
12376 | if test x$UNITS_COMPAT = xyes; then | |
12377 | ||
12378 | cat >>confdefs.h <<\_ACEOF | |
12379 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
12380 | _ACEOF | |
12381 | ||
12382 | fi | |
12383 | ||
93bd259b AK |
12384 | ################################################################################ |
12385 | # Check whether --enable-ioctl was given. | |
12386 | if test "${enable_ioctl+set}" = set; then | |
12387 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
12388 | fi | |
12389 | ||
12390 | ||
d0191583 | 12391 | ################################################################################ |
ec6a6fbe AK |
12392 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
12393 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
12394 | # Check whether --enable-o_direct was given. |
12395 | if test "${enable_o_direct+set}" = set; then | |
12396 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 12397 | fi |
ad6254c5 | 12398 | |
ec6a6fbe AK |
12399 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
12400 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 12401 | |
d0191583 | 12402 | if test x$ODIRECT = xyes; then |
ad6254c5 | 12403 | |
d0191583 JM |
12404 | cat >>confdefs.h <<\_ACEOF |
12405 | #define O_DIRECT_SUPPORT 1 | |
12406 | _ACEOF | |
ad6254c5 | 12407 | |
d0191583 | 12408 | fi |
ad6254c5 | 12409 | |
572fefeb AK |
12410 | ################################################################################ |
12411 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
12412 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
12413 | # Check whether --enable-applib was given. | |
12414 | if test "${enable_applib+set}" = set; then | |
12415 | enableval=$enable_applib; APPLIB=$enableval | |
12416 | else | |
12417 | APPLIB=no | |
12418 | fi | |
12419 | ||
12420 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12421 | $as_echo "$APPLIB" >&6; } | |
12422 | ||
12423 | test x$APPLIB = xyes \ | |
12424 | && LVM2APP_LIB=-llvm2app \ | |
12425 | || LVM2APP_LIB= | |
12426 | ||
d0191583 | 12427 | ################################################################################ |
ec6a6fbe AK |
12428 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12429 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12430 | # Check whether --enable-cmdlib was given. |
12431 | if test "${enable_cmdlib+set}" = set; then | |
12432 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12433 | else |
d0191583 JM |
12434 | CMDLIB=no |
12435 | fi | |
8a2fc586 | 12436 | |
ec6a6fbe AK |
12437 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12438 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12439 | |
2a9a80c9 | 12440 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12441 | && LVM2CMD_LIB=-llvm2cmd \ |
12442 | || LVM2CMD_LIB= | |
12443 | ||
93bd259b AK |
12444 | ################################################################################ |
12445 | # Check whether --enable-pkgconfig was given. | |
12446 | if test "${enable_pkgconfig+set}" = set; then | |
12447 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12448 | else | |
12449 | PKGCONFIG=no | |
12450 | fi | |
12451 | ||
2a9a80c9 | 12452 | |
23b059e7 ZK |
12453 | ################################################################################ |
12454 | # Check whether --enable-write_install was given. | |
12455 | if test "${enable_write_install+set}" = set; then | |
12456 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
12457 | else | |
12458 | WRITE_INSTALL=no | |
12459 | fi | |
12460 | ||
12461 | ||
d0191583 | 12462 | ################################################################################ |
ec6a6fbe AK |
12463 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12464 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12465 | # Check whether --enable-fsadm was given. |
12466 | if test "${enable_fsadm+set}" = set; then | |
12467 | enableval=$enable_fsadm; FSADM=$enableval | |
12468 | fi | |
8a2fc586 | 12469 | |
ec6a6fbe AK |
12470 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12471 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12472 | |
d0191583 | 12473 | ################################################################################ |
ec6a6fbe AK |
12474 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12475 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12476 | # Check whether --enable-dmeventd was given. |
12477 | if test "${enable_dmeventd+set}" = set; then | |
12478 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12479 | fi | |
ad6254c5 | 12480 | |
ec6a6fbe AK |
12481 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12482 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12483 | |
93bd259b AK |
12484 | BUILD_DMEVENTD=$DMEVENTD |
12485 | ||
2a9a80c9 PR |
12486 | if test x$DMEVENTD = xyes; then |
12487 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12488 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12489 | " >&5 |
ec6a6fbe | 12490 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12491 | " >&2;} |
d0191583 | 12492 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12493 | fi |
12494 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12495 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12496 | " >&5 |
ec6a6fbe | 12497 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12498 | " >&2;} |
12499 | { (exit 1); exit 1; }; } | |
12500 | fi | |
ad6254c5 | 12501 | fi |
7a197a62 | 12502 | |
d0191583 JM |
12503 | if test x$DMEVENTD = xyes; then |
12504 | ||
12505 | cat >>confdefs.h <<\_ACEOF | |
12506 | #define DMEVENTD 1 | |
ad6254c5 AK |
12507 | _ACEOF |
12508 | ||
ad6254c5 | 12509 | fi |
93bd259b AK |
12510 | |
12511 | ################################################################################ | |
12512 | ||
ec6a6fbe AK |
12513 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12514 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12515 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12516 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12517 | else |
12518 | ac_check_lib_save_LIBS=$LIBS | |
12519 | LIBS="-lc $LIBS" | |
12520 | cat >conftest.$ac_ext <<_ACEOF | |
12521 | /* confdefs.h. */ | |
12522 | _ACEOF | |
12523 | cat confdefs.h >>conftest.$ac_ext | |
12524 | cat >>conftest.$ac_ext <<_ACEOF | |
12525 | /* end confdefs.h. */ | |
12526 | ||
12527 | /* Override any GCC internal prototype to avoid an error. | |
12528 | Use char because int might match the return type of a GCC | |
12529 | builtin and then its argument prototype would still apply. */ | |
12530 | #ifdef __cplusplus | |
12531 | extern "C" | |
12532 | #endif | |
12533 | char getline (); | |
12534 | int | |
12535 | main () | |
12536 | { | |
12537 | return getline (); | |
12538 | ; | |
12539 | return 0; | |
12540 | } | |
12541 | _ACEOF | |
12542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12543 | if { (ac_try="$ac_link" | |
12544 | case "(($ac_try" in | |
12545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12546 | *) ac_try_echo=$ac_try;; | |
12547 | esac | |
ec6a6fbe AK |
12548 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12549 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12550 | (eval "$ac_link") 2>conftest.er1 |
12551 | ac_status=$? | |
12552 | grep -v '^ *+' conftest.er1 >conftest.err | |
12553 | rm -f conftest.er1 | |
12554 | cat conftest.err >&5 | |
ec6a6fbe | 12555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12556 | (exit $ac_status); } && { |
12557 | test -z "$ac_c_werror_flag" || | |
12558 | test ! -s conftest.err | |
ec6a6fbe AK |
12559 | } && test -s conftest$ac_exeext && { |
12560 | test "$cross_compiling" = yes || | |
12561 | $as_test_x conftest$ac_exeext | |
12562 | }; then | |
93bd259b AK |
12563 | ac_cv_lib_c_getline=yes |
12564 | else | |
ec6a6fbe | 12565 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12566 | sed 's/^/| /' conftest.$ac_ext >&5 |
12567 | ||
12568 | ac_cv_lib_c_getline=no | |
12569 | fi | |
12570 | ||
ec6a6fbe | 12571 | rm -rf conftest.dSYM |
93bd259b AK |
12572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12573 | conftest$ac_exeext conftest.$ac_ext | |
12574 | LIBS=$ac_check_lib_save_LIBS | |
12575 | fi | |
ec6a6fbe AK |
12576 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12577 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12578 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12579 | |
12580 | cat >>confdefs.h <<\_ACEOF | |
12581 | #define HAVE_GETLINE 1 | |
12582 | _ACEOF | |
12583 | ||
12584 | fi | |
12585 | ||
12586 | ||
12587 | ################################################################################ | |
12588 | ||
ec6a6fbe AK |
12589 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12590 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12591 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12592 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12593 | else |
12594 | ac_check_lib_save_LIBS=$LIBS | |
12595 | LIBS="-lc $LIBS" | |
12596 | cat >conftest.$ac_ext <<_ACEOF | |
12597 | /* confdefs.h. */ | |
12598 | _ACEOF | |
12599 | cat confdefs.h >>conftest.$ac_ext | |
12600 | cat >>conftest.$ac_ext <<_ACEOF | |
12601 | /* end confdefs.h. */ | |
12602 | ||
12603 | /* Override any GCC internal prototype to avoid an error. | |
12604 | Use char because int might match the return type of a GCC | |
12605 | builtin and then its argument prototype would still apply. */ | |
12606 | #ifdef __cplusplus | |
12607 | extern "C" | |
12608 | #endif | |
12609 | char canonicalize_file_name (); | |
12610 | int | |
12611 | main () | |
12612 | { | |
12613 | return canonicalize_file_name (); | |
12614 | ; | |
12615 | return 0; | |
12616 | } | |
12617 | _ACEOF | |
12618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12619 | if { (ac_try="$ac_link" | |
12620 | case "(($ac_try" in | |
12621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12622 | *) ac_try_echo=$ac_try;; | |
12623 | esac | |
ec6a6fbe AK |
12624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12625 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12626 | (eval "$ac_link") 2>conftest.er1 |
12627 | ac_status=$? | |
12628 | grep -v '^ *+' conftest.er1 >conftest.err | |
12629 | rm -f conftest.er1 | |
12630 | cat conftest.err >&5 | |
ec6a6fbe | 12631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12632 | (exit $ac_status); } && { |
12633 | test -z "$ac_c_werror_flag" || | |
12634 | test ! -s conftest.err | |
ec6a6fbe AK |
12635 | } && test -s conftest$ac_exeext && { |
12636 | test "$cross_compiling" = yes || | |
12637 | $as_test_x conftest$ac_exeext | |
12638 | }; then | |
93bd259b AK |
12639 | ac_cv_lib_c_canonicalize_file_name=yes |
12640 | else | |
ec6a6fbe | 12641 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12642 | sed 's/^/| /' conftest.$ac_ext >&5 |
12643 | ||
12644 | ac_cv_lib_c_canonicalize_file_name=no | |
12645 | fi | |
12646 | ||
ec6a6fbe | 12647 | rm -rf conftest.dSYM |
93bd259b AK |
12648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12649 | conftest$ac_exeext conftest.$ac_ext | |
12650 | LIBS=$ac_check_lib_save_LIBS | |
12651 | fi | |
ec6a6fbe AK |
12652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12653 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12654 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12655 | |
12656 | cat >>confdefs.h <<\_ACEOF | |
12657 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12658 | _ACEOF | |
12659 | ||
12660 | fi | |
12661 | ||
12662 | ||
d0191583 JM |
12663 | ################################################################################ |
12664 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12665 | then exec_prefix=""; | |
12666 | fi; | |
ad6254c5 | 12667 | |
ad6254c5 | 12668 | ################################################################################ |
ec6a6fbe AK |
12669 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12670 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12671 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12672 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12673 | else |
12674 | ac_check_lib_save_LIBS=$LIBS | |
12675 | LIBS="-ldl $LIBS" | |
12676 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12677 | /* confdefs.h. */ |
12678 | _ACEOF | |
12679 | cat confdefs.h >>conftest.$ac_ext | |
12680 | cat >>conftest.$ac_ext <<_ACEOF | |
12681 | /* end confdefs.h. */ | |
12682 | ||
7a197a62 AK |
12683 | /* Override any GCC internal prototype to avoid an error. |
12684 | Use char because int might match the return type of a GCC | |
12685 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12686 | #ifdef __cplusplus |
12687 | extern "C" | |
12688 | #endif | |
ad6254c5 AK |
12689 | char dlopen (); |
12690 | int | |
12691 | main () | |
12692 | { | |
7a197a62 | 12693 | return dlopen (); |
ad6254c5 AK |
12694 | ; |
12695 | return 0; | |
12696 | } | |
12697 | _ACEOF | |
12698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12699 | if { (ac_try="$ac_link" |
12700 | case "(($ac_try" in | |
12701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12702 | *) ac_try_echo=$ac_try;; | |
12703 | esac | |
ec6a6fbe AK |
12704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12705 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12706 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12707 | ac_status=$? |
8a2fc586 AK |
12708 | grep -v '^ *+' conftest.er1 >conftest.err |
12709 | rm -f conftest.er1 | |
12710 | cat conftest.err >&5 | |
ec6a6fbe | 12711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12712 | (exit $ac_status); } && { |
12713 | test -z "$ac_c_werror_flag" || | |
12714 | test ! -s conftest.err | |
ec6a6fbe AK |
12715 | } && test -s conftest$ac_exeext && { |
12716 | test "$cross_compiling" = yes || | |
12717 | $as_test_x conftest$ac_exeext | |
12718 | }; then | |
ad6254c5 AK |
12719 | ac_cv_lib_dl_dlopen=yes |
12720 | else | |
ec6a6fbe | 12721 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12722 | sed 's/^/| /' conftest.$ac_ext >&5 |
12723 | ||
7a197a62 | 12724 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12725 | fi |
7a197a62 | 12726 | |
ec6a6fbe | 12727 | rm -rf conftest.dSYM |
25fbec5b | 12728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12729 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12730 | LIBS=$ac_check_lib_save_LIBS |
12731 | fi | |
ec6a6fbe AK |
12732 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12733 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12734 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 12735 | |
72b2cb61 AK |
12736 | |
12737 | cat >>confdefs.h <<\_ACEOF | |
12738 | #define HAVE_LIBDL 1 | |
12739 | _ACEOF | |
12740 | ||
19a2c6e0 ZK |
12741 | DL_LIBS="-ldl" |
12742 | HAVE_LIBDL=yes | |
ad6254c5 | 12743 | else |
19a2c6e0 ZK |
12744 | |
12745 | DL_LIBS= | |
ad6254c5 AK |
12746 | HAVE_LIBDL=no |
12747 | fi | |
12748 | ||
19a2c6e0 | 12749 | |
ad6254c5 AK |
12750 | ################################################################################ |
12751 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12752 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12753 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12754 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12755 | " >&5 |
ec6a6fbe | 12756 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12757 | " >&2;} |
12758 | { (exit 1); exit 1; }; } | |
12759 | fi | |
12760 | ||
f30875db ZK |
12761 | ################################################################################ |
12762 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
12763 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
12764 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
12765 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
12766 | $as_echo_n "(cached) " >&6 | |
12767 | else | |
12768 | ac_check_lib_save_LIBS=$LIBS | |
12769 | LIBS="-lpthread $LIBS" | |
12770 | cat >conftest.$ac_ext <<_ACEOF | |
12771 | /* confdefs.h. */ | |
12772 | _ACEOF | |
12773 | cat confdefs.h >>conftest.$ac_ext | |
12774 | cat >>conftest.$ac_ext <<_ACEOF | |
12775 | /* end confdefs.h. */ | |
12776 | ||
12777 | /* Override any GCC internal prototype to avoid an error. | |
12778 | Use char because int might match the return type of a GCC | |
12779 | builtin and then its argument prototype would still apply. */ | |
12780 | #ifdef __cplusplus | |
12781 | extern "C" | |
12782 | #endif | |
12783 | char pthread_mutex_lock (); | |
12784 | int | |
12785 | main () | |
12786 | { | |
12787 | return pthread_mutex_lock (); | |
12788 | ; | |
12789 | return 0; | |
12790 | } | |
12791 | _ACEOF | |
12792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12793 | if { (ac_try="$ac_link" | |
12794 | case "(($ac_try" in | |
12795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12796 | *) ac_try_echo=$ac_try;; | |
12797 | esac | |
12798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12799 | $as_echo "$ac_try_echo") >&5 | |
12800 | (eval "$ac_link") 2>conftest.er1 | |
12801 | ac_status=$? | |
12802 | grep -v '^ *+' conftest.er1 >conftest.err | |
12803 | rm -f conftest.er1 | |
12804 | cat conftest.err >&5 | |
12805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12806 | (exit $ac_status); } && { | |
12807 | test -z "$ac_c_werror_flag" || | |
12808 | test ! -s conftest.err | |
12809 | } && test -s conftest$ac_exeext && { | |
12810 | test "$cross_compiling" = yes || | |
12811 | $as_test_x conftest$ac_exeext | |
12812 | }; then | |
12813 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
12814 | else | |
12815 | $as_echo "$as_me: failed program was:" >&5 | |
12816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12817 | ||
12818 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
12819 | fi | |
12820 | ||
12821 | rm -rf conftest.dSYM | |
12822 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12823 | conftest$ac_exeext conftest.$ac_ext | |
12824 | LIBS=$ac_check_lib_save_LIBS | |
12825 | fi | |
12826 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
12827 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
12828 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
12829 | PTHREAD_LIBS="-lpthread" | |
12830 | else | |
12831 | hard_bailout | |
12832 | fi | |
12833 | ||
12834 | fi | |
12835 | ||
d0191583 | 12836 | ################################################################################ |
ec6a6fbe AK |
12837 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12838 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12839 | # Check whether --enable-selinux was given. |
12840 | if test "${enable_selinux+set}" = set; then | |
12841 | enableval=$enable_selinux; SELINUX=$enableval | |
12842 | fi | |
12843 | ||
ec6a6fbe AK |
12844 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12845 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12846 | |
ad6254c5 AK |
12847 | ################################################################################ |
12848 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12849 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12850 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12851 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12852 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12853 | else |
12854 | ac_check_lib_save_LIBS=$LIBS | |
12855 | LIBS="-lsepol $LIBS" | |
12856 | cat >conftest.$ac_ext <<_ACEOF | |
12857 | /* confdefs.h. */ | |
12858 | _ACEOF | |
12859 | cat confdefs.h >>conftest.$ac_ext | |
12860 | cat >>conftest.$ac_ext <<_ACEOF | |
12861 | /* end confdefs.h. */ | |
12862 | ||
7a197a62 AK |
12863 | /* Override any GCC internal prototype to avoid an error. |
12864 | Use char because int might match the return type of a GCC | |
12865 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12866 | #ifdef __cplusplus |
12867 | extern "C" | |
12868 | #endif | |
8a2fc586 AK |
12869 | char sepol_check_context (); |
12870 | int | |
12871 | main () | |
12872 | { | |
7a197a62 | 12873 | return sepol_check_context (); |
8a2fc586 AK |
12874 | ; |
12875 | return 0; | |
12876 | } | |
12877 | _ACEOF | |
12878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12879 | if { (ac_try="$ac_link" |
12880 | case "(($ac_try" in | |
12881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12882 | *) ac_try_echo=$ac_try;; | |
12883 | esac | |
ec6a6fbe AK |
12884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12885 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12886 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12887 | ac_status=$? |
12888 | grep -v '^ *+' conftest.er1 >conftest.err | |
12889 | rm -f conftest.er1 | |
12890 | cat conftest.err >&5 | |
ec6a6fbe | 12891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12892 | (exit $ac_status); } && { |
12893 | test -z "$ac_c_werror_flag" || | |
12894 | test ! -s conftest.err | |
ec6a6fbe AK |
12895 | } && test -s conftest$ac_exeext && { |
12896 | test "$cross_compiling" = yes || | |
12897 | $as_test_x conftest$ac_exeext | |
12898 | }; then | |
8a2fc586 AK |
12899 | ac_cv_lib_sepol_sepol_check_context=yes |
12900 | else | |
ec6a6fbe | 12901 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12902 | sed 's/^/| /' conftest.$ac_ext >&5 |
12903 | ||
7a197a62 | 12904 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12905 | fi |
7a197a62 | 12906 | |
ec6a6fbe | 12907 | rm -rf conftest.dSYM |
25fbec5b | 12908 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12909 | conftest$ac_exeext conftest.$ac_ext |
12910 | LIBS=$ac_check_lib_save_LIBS | |
12911 | fi | |
ec6a6fbe AK |
12912 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12913 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12914 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 12915 | |
d0191583 JM |
12916 | |
12917 | cat >>confdefs.h <<\_ACEOF | |
12918 | #define HAVE_SEPOL 1 | |
12919 | _ACEOF | |
12920 | ||
f8f6ec92 ZK |
12921 | SELINUX_LIBS="-lsepol" |
12922 | fi | |
12923 | ||
8a2fc586 | 12924 | |
ec6a6fbe AK |
12925 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12926 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12927 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12928 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12929 | else |
12930 | ac_check_lib_save_LIBS=$LIBS | |
12931 | LIBS="-lselinux $LIBS" | |
12932 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12933 | /* confdefs.h. */ |
12934 | _ACEOF | |
12935 | cat confdefs.h >>conftest.$ac_ext | |
12936 | cat >>conftest.$ac_ext <<_ACEOF | |
12937 | /* end confdefs.h. */ | |
12938 | ||
7a197a62 AK |
12939 | /* Override any GCC internal prototype to avoid an error. |
12940 | Use char because int might match the return type of a GCC | |
12941 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12942 | #ifdef __cplusplus |
12943 | extern "C" | |
12944 | #endif | |
ad6254c5 AK |
12945 | char is_selinux_enabled (); |
12946 | int | |
12947 | main () | |
12948 | { | |
7a197a62 | 12949 | return is_selinux_enabled (); |
ad6254c5 AK |
12950 | ; |
12951 | return 0; | |
12952 | } | |
12953 | _ACEOF | |
12954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12955 | if { (ac_try="$ac_link" |
12956 | case "(($ac_try" in | |
12957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12958 | *) ac_try_echo=$ac_try;; | |
12959 | esac | |
ec6a6fbe AK |
12960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12961 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12962 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12963 | ac_status=$? |
8a2fc586 AK |
12964 | grep -v '^ *+' conftest.er1 >conftest.err |
12965 | rm -f conftest.er1 | |
12966 | cat conftest.err >&5 | |
ec6a6fbe | 12967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12968 | (exit $ac_status); } && { |
12969 | test -z "$ac_c_werror_flag" || | |
12970 | test ! -s conftest.err | |
ec6a6fbe AK |
12971 | } && test -s conftest$ac_exeext && { |
12972 | test "$cross_compiling" = yes || | |
12973 | $as_test_x conftest$ac_exeext | |
12974 | }; then | |
ad6254c5 AK |
12975 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12976 | else | |
ec6a6fbe | 12977 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12978 | sed 's/^/| /' conftest.$ac_ext >&5 |
12979 | ||
7a197a62 | 12980 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12981 | fi |
7a197a62 | 12982 | |
ec6a6fbe | 12983 | rm -rf conftest.dSYM |
25fbec5b | 12984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12985 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12986 | LIBS=$ac_check_lib_save_LIBS |
12987 | fi | |
ec6a6fbe AK |
12988 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12989 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12990 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 12991 | |
72b2cb61 | 12992 | |
f8f6ec92 ZK |
12993 | for ac_header in selinux/selinux.h |
12994 | do | |
12995 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12997 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12998 | $as_echo_n "checking for $ac_header... " >&6; } | |
12999 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 13000 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
13001 | fi |
13002 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13003 | $as_echo "$as_val"'` | |
13004 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13005 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13006 | else |
f8f6ec92 ZK |
13007 | # Is the header compilable? |
13008 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13009 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
13010 | cat >conftest.$ac_ext <<_ACEOF |
13011 | /* confdefs.h. */ | |
13012 | _ACEOF | |
13013 | cat confdefs.h >>conftest.$ac_ext | |
13014 | cat >>conftest.$ac_ext <<_ACEOF | |
13015 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
13016 | $ac_includes_default |
13017 | #include <$ac_header> | |
66e941e8 | 13018 | _ACEOF |
f8f6ec92 ZK |
13019 | rm -f conftest.$ac_objext |
13020 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
13021 | case "(($ac_try" in |
13022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13023 | *) ac_try_echo=$ac_try;; | |
13024 | esac | |
ec6a6fbe AK |
13025 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13026 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 13027 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
13028 | ac_status=$? |
13029 | grep -v '^ *+' conftest.er1 >conftest.err | |
13030 | rm -f conftest.er1 | |
13031 | cat conftest.err >&5 | |
ec6a6fbe | 13032 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13033 | (exit $ac_status); } && { |
13034 | test -z "$ac_c_werror_flag" || | |
13035 | test ! -s conftest.err | |
f8f6ec92 ZK |
13036 | } && test -s conftest.$ac_objext; then |
13037 | ac_header_compiler=yes | |
13038 | else | |
13039 | $as_echo "$as_me: failed program was:" >&5 | |
13040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13041 | ||
13042 | ac_header_compiler=no | |
13043 | fi | |
13044 | ||
13045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13046 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13047 | $as_echo "$ac_header_compiler" >&6; } | |
13048 | ||
13049 | # Is the header present? | |
13050 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13051 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13052 | cat >conftest.$ac_ext <<_ACEOF | |
13053 | /* confdefs.h. */ | |
13054 | _ACEOF | |
13055 | cat confdefs.h >>conftest.$ac_ext | |
13056 | cat >>conftest.$ac_ext <<_ACEOF | |
13057 | /* end confdefs.h. */ | |
13058 | #include <$ac_header> | |
13059 | _ACEOF | |
13060 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13061 | case "(($ac_try" in | |
13062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13063 | *) ac_try_echo=$ac_try;; | |
13064 | esac | |
13065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13066 | $as_echo "$ac_try_echo") >&5 | |
13067 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13068 | ac_status=$? | |
13069 | grep -v '^ *+' conftest.er1 >conftest.err | |
13070 | rm -f conftest.er1 | |
13071 | cat conftest.err >&5 | |
13072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13073 | (exit $ac_status); } >/dev/null && { | |
13074 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13075 | test ! -s conftest.err | |
ec6a6fbe | 13076 | }; then |
f8f6ec92 | 13077 | ac_header_preproc=yes |
66e941e8 | 13078 | else |
ec6a6fbe | 13079 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
13080 | sed 's/^/| /' conftest.$ac_ext >&5 |
13081 | ||
f8f6ec92 ZK |
13082 | ac_header_preproc=no |
13083 | fi | |
13084 | ||
13085 | rm -f conftest.err conftest.$ac_ext | |
13086 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13087 | $as_echo "$ac_header_preproc" >&6; } | |
13088 | ||
13089 | # So? What about this header? | |
13090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13091 | yes:no: ) | |
13092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13093 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13094 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13095 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13096 | ac_header_preproc=yes | |
13097 | ;; | |
13098 | no:yes:* ) | |
13099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13100 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13102 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13104 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13106 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13107 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13108 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13109 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13110 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 13111 | |
f8f6ec92 ZK |
13112 | ;; |
13113 | esac | |
13114 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13115 | $as_echo_n "checking for $ac_header... " >&6; } | |
13116 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13117 | $as_echo_n "(cached) " >&6 | |
13118 | else | |
13119 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 13120 | fi |
f8f6ec92 ZK |
13121 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13122 | $as_echo "$as_val"'` | |
13123 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13124 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13125 | |
66e941e8 | 13126 | fi |
f8f6ec92 ZK |
13127 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13128 | $as_echo "$as_val"'` | |
13129 | if test "x$as_val" = x""yes; then | |
13130 | cat >>confdefs.h <<_ACEOF | |
13131 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13132 | _ACEOF | |
13133 | ||
66e941e8 | 13134 | else |
f8f6ec92 | 13135 | hard_bailout |
66e941e8 | 13136 | fi |
f8f6ec92 ZK |
13137 | |
13138 | done | |
13139 | ||
13140 | ||
13141 | cat >>confdefs.h <<\_ACEOF | |
13142 | #define HAVE_SELINUX 1 | |
13143 | _ACEOF | |
13144 | ||
13145 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 13146 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
13147 | HAVE_SELINUX=yes |
13148 | else | |
13149 | ||
13150 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
13151 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
13152 | SELINUX_LIBS= | |
f7f0854e | 13153 | SELINUX_PC= |
f8f6ec92 | 13154 | HAVE_SELINUX=no |
66e941e8 JM |
13155 | fi |
13156 | ||
ad6254c5 AK |
13157 | fi |
13158 | ||
8b1a3214 AK |
13159 | ################################################################################ |
13160 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
13161 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
13162 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 13163 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 13164 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
13165 | else |
13166 | ac_check_lib_save_LIBS=$LIBS | |
13167 | LIBS="-lrt $LIBS" | |
13168 | cat >conftest.$ac_ext <<_ACEOF | |
13169 | /* confdefs.h. */ | |
13170 | _ACEOF | |
13171 | cat confdefs.h >>conftest.$ac_ext | |
13172 | cat >>conftest.$ac_ext <<_ACEOF | |
13173 | /* end confdefs.h. */ | |
13174 | ||
7a197a62 AK |
13175 | /* Override any GCC internal prototype to avoid an error. |
13176 | Use char because int might match the return type of a GCC | |
13177 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
13178 | #ifdef __cplusplus |
13179 | extern "C" | |
13180 | #endif | |
8b1a3214 AK |
13181 | char clock_gettime (); |
13182 | int | |
13183 | main () | |
13184 | { | |
7a197a62 | 13185 | return clock_gettime (); |
8b1a3214 AK |
13186 | ; |
13187 | return 0; | |
13188 | } | |
13189 | _ACEOF | |
13190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13191 | if { (ac_try="$ac_link" |
13192 | case "(($ac_try" in | |
13193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13194 | *) ac_try_echo=$ac_try;; | |
13195 | esac | |
ec6a6fbe AK |
13196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13197 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13198 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13199 | ac_status=$? |
13200 | grep -v '^ *+' conftest.er1 >conftest.err | |
13201 | rm -f conftest.er1 | |
13202 | cat conftest.err >&5 | |
ec6a6fbe | 13203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13204 | (exit $ac_status); } && { |
13205 | test -z "$ac_c_werror_flag" || | |
13206 | test ! -s conftest.err | |
ec6a6fbe AK |
13207 | } && test -s conftest$ac_exeext && { |
13208 | test "$cross_compiling" = yes || | |
13209 | $as_test_x conftest$ac_exeext | |
13210 | }; then | |
8b1a3214 AK |
13211 | ac_cv_lib_rt_clock_gettime=yes |
13212 | else | |
ec6a6fbe | 13213 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13214 | sed 's/^/| /' conftest.$ac_ext >&5 |
13215 | ||
7a197a62 | 13216 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13217 | fi |
7a197a62 | 13218 | |
ec6a6fbe | 13219 | rm -rf conftest.dSYM |
25fbec5b | 13220 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13221 | conftest$ac_exeext conftest.$ac_ext |
13222 | LIBS=$ac_check_lib_save_LIBS | |
13223 | fi | |
ec6a6fbe AK |
13224 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13225 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13226 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13227 | HAVE_REALTIME=yes |
13228 | else | |
13229 | HAVE_REALTIME=no | |
13230 | fi | |
13231 | ||
8b1a3214 AK |
13232 | |
13233 | if test x$HAVE_REALTIME = xyes; then | |
13234 | ||
13235 | cat >>confdefs.h <<\_ACEOF | |
13236 | #define HAVE_REALTIME 1 | |
13237 | _ACEOF | |
13238 | ||
13239 | LIBS="-lrt $LIBS" | |
13240 | else | |
ec6a6fbe AK |
13241 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13242 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13243 | fi |
13244 | fi | |
13245 | ||
ad6254c5 AK |
13246 | ################################################################################ |
13247 | ||
13248 | for ac_header in getopt.h | |
13249 | do | |
ec6a6fbe | 13250 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13252 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13253 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13254 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13255 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13256 | fi |
ec6a6fbe AK |
13257 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13258 | $as_echo "$as_val"'` | |
13259 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13260 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13261 | else |
13262 | # Is the header compilable? | |
ec6a6fbe AK |
13263 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13264 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13265 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13266 | /* confdefs.h. */ |
13267 | _ACEOF | |
13268 | cat confdefs.h >>conftest.$ac_ext | |
13269 | cat >>conftest.$ac_ext <<_ACEOF | |
13270 | /* end confdefs.h. */ | |
13271 | $ac_includes_default | |
13272 | #include <$ac_header> | |
13273 | _ACEOF | |
13274 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13275 | if { (ac_try="$ac_compile" |
13276 | case "(($ac_try" in | |
13277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13278 | *) ac_try_echo=$ac_try;; | |
13279 | esac | |
ec6a6fbe AK |
13280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13281 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13282 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13283 | ac_status=$? |
8a2fc586 AK |
13284 | grep -v '^ *+' conftest.er1 >conftest.err |
13285 | rm -f conftest.er1 | |
13286 | cat conftest.err >&5 | |
ec6a6fbe | 13287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13288 | (exit $ac_status); } && { |
13289 | test -z "$ac_c_werror_flag" || | |
13290 | test ! -s conftest.err | |
13291 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13292 | ac_header_compiler=yes |
13293 | else | |
ec6a6fbe | 13294 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13295 | sed 's/^/| /' conftest.$ac_ext >&5 |
13296 | ||
7a197a62 | 13297 | ac_header_compiler=no |
ad6254c5 | 13298 | fi |
7a197a62 AK |
13299 | |
13300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13301 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13302 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13303 | |
13304 | # Is the header present? | |
ec6a6fbe AK |
13305 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13306 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13307 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13308 | /* confdefs.h. */ |
13309 | _ACEOF | |
13310 | cat confdefs.h >>conftest.$ac_ext | |
13311 | cat >>conftest.$ac_ext <<_ACEOF | |
13312 | /* end confdefs.h. */ | |
13313 | #include <$ac_header> | |
13314 | _ACEOF | |
7a197a62 AK |
13315 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13316 | case "(($ac_try" in | |
13317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13318 | *) ac_try_echo=$ac_try;; | |
13319 | esac | |
ec6a6fbe AK |
13320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13321 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13322 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13323 | ac_status=$? |
13324 | grep -v '^ *+' conftest.er1 >conftest.err | |
13325 | rm -f conftest.er1 | |
13326 | cat conftest.err >&5 | |
ec6a6fbe | 13327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13328 | (exit $ac_status); } >/dev/null && { |
13329 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13330 | test ! -s conftest.err | |
13331 | }; then | |
ad6254c5 AK |
13332 | ac_header_preproc=yes |
13333 | else | |
ec6a6fbe | 13334 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13335 | sed 's/^/| /' conftest.$ac_ext >&5 |
13336 | ||
13337 | ac_header_preproc=no | |
13338 | fi | |
7a197a62 | 13339 | |
ad6254c5 | 13340 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13341 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13342 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13343 | |
13344 | # So? What about this header? | |
8a2fc586 AK |
13345 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13346 | yes:no: ) | |
ec6a6fbe AK |
13347 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13348 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13349 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13350 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13351 | ac_header_preproc=yes |
ad6254c5 | 13352 | ;; |
8a2fc586 | 13353 | no:yes:* ) |
ec6a6fbe AK |
13354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13355 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13356 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13357 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13358 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13359 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13360 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13361 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13362 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13363 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13364 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13365 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13366 | |
ad6254c5 AK |
13367 | ;; |
13368 | esac | |
ec6a6fbe AK |
13369 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13370 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13371 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13372 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13373 | else |
8a2fc586 | 13374 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13375 | fi |
ec6a6fbe AK |
13376 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13377 | $as_echo "$as_val"'` | |
13378 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13379 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13380 | |
13381 | fi | |
ec6a6fbe AK |
13382 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13383 | $as_echo "$as_val"'` | |
13384 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13385 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13386 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13387 | _ACEOF |
72b2cb61 AK |
13388 | |
13389 | cat >>confdefs.h <<\_ACEOF | |
13390 | #define HAVE_GETOPTLONG 1 | |
13391 | _ACEOF | |
13392 | ||
ad6254c5 AK |
13393 | fi |
13394 | ||
13395 | done | |
13396 | ||
13397 | ||
13398 | ################################################################################ | |
06e459df | 13399 | if test x$READLINE != xno; then |
539f4a77 ZK |
13400 | lvm_saved_libs=$LIBS |
13401 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
13402 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13403 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13404 | $as_echo_n "(cached) " >&6 | |
13405 | else | |
13406 | ac_func_search_save_LIBS=$LIBS | |
13407 | cat >conftest.$ac_ext <<_ACEOF | |
13408 | /* confdefs.h. */ | |
13409 | _ACEOF | |
13410 | cat confdefs.h >>conftest.$ac_ext | |
13411 | cat >>conftest.$ac_ext <<_ACEOF | |
13412 | /* end confdefs.h. */ | |
bc1024f8 | 13413 | |
539f4a77 ZK |
13414 | /* Override any GCC internal prototype to avoid an error. |
13415 | Use char because int might match the return type of a GCC | |
13416 | builtin and then its argument prototype would still apply. */ | |
13417 | #ifdef __cplusplus | |
13418 | extern "C" | |
13419 | #endif | |
13420 | char tgetent (); | |
13421 | int | |
13422 | main () | |
13423 | { | |
13424 | return tgetent (); | |
13425 | ; | |
13426 | return 0; | |
13427 | } | |
13428 | _ACEOF | |
13429 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
13430 | if test -z "$ac_lib"; then | |
13431 | ac_res="none required" | |
13432 | else | |
13433 | ac_res=-l$ac_lib | |
13434 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13435 | fi | |
13436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13437 | if { (ac_try="$ac_link" | |
13438 | case "(($ac_try" in | |
13439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13440 | *) ac_try_echo=$ac_try;; | |
13441 | esac | |
13442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13443 | $as_echo "$ac_try_echo") >&5 | |
13444 | (eval "$ac_link") 2>conftest.er1 | |
13445 | ac_status=$? | |
13446 | grep -v '^ *+' conftest.er1 >conftest.err | |
13447 | rm -f conftest.er1 | |
13448 | cat conftest.err >&5 | |
13449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13450 | (exit $ac_status); } && { | |
13451 | test -z "$ac_c_werror_flag" || | |
13452 | test ! -s conftest.err | |
13453 | } && test -s conftest$ac_exeext && { | |
13454 | test "$cross_compiling" = yes || | |
13455 | $as_test_x conftest$ac_exeext | |
13456 | }; then | |
13457 | ac_cv_search_tgetent=$ac_res | |
13458 | else | |
13459 | $as_echo "$as_me: failed program was:" >&5 | |
13460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13461 | ||
13462 | ||
13463 | fi | |
13464 | ||
13465 | rm -rf conftest.dSYM | |
13466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13467 | conftest$ac_exeext | |
13468 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13469 | break | |
13470 | fi | |
13471 | done | |
13472 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13473 | : | |
13474 | else | |
13475 | ac_cv_search_tgetent=no | |
13476 | fi | |
13477 | rm conftest.$ac_ext | |
13478 | LIBS=$ac_func_search_save_LIBS | |
13479 | fi | |
13480 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
13481 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13482 | ac_res=$ac_cv_search_tgetent | |
13483 | if test "$ac_res" != no; then | |
13484 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13485 | READLINE_LIBS=$ac_cv_search_tgetent | |
13486 | else | |
13487 | ||
13488 | if test "$READLINE" = yes; then | |
13489 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
13490 | --enable-readline option (which is enabled by default). Either disable readline | |
13491 | support with --disable-readline or download and install termcap from: | |
13492 | ftp.gnu.org/gnu/termcap | |
13493 | Note: if you are using precompiled packages you will also need the development | |
13494 | package as well (which may be called termcap-devel or something similar). | |
13495 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13496 | not found either - but you could try installing that as well." >&5 | |
13497 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
13498 | --enable-readline option (which is enabled by default). Either disable readline | |
13499 | support with --disable-readline or download and install termcap from: | |
13500 | ftp.gnu.org/gnu/termcap | |
13501 | Note: if you are using precompiled packages you will also need the development | |
13502 | package as well (which may be called termcap-devel or something similar). | |
13503 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13504 | not found either - but you could try installing that as well." >&2;} | |
13505 | { (exit 1); exit 1; }; } | |
13506 | fi | |
13507 | fi | |
13508 | ||
13509 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 13510 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 13511 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13512 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13513 | else |
13514 | ac_check_lib_save_LIBS=$LIBS | |
13515 | LIBS="-lreadline $LIBS" | |
13516 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13517 | /* confdefs.h. */ |
13518 | _ACEOF | |
13519 | cat confdefs.h >>conftest.$ac_ext | |
13520 | cat >>conftest.$ac_ext <<_ACEOF | |
13521 | /* end confdefs.h. */ | |
13522 | ||
7a197a62 AK |
13523 | /* Override any GCC internal prototype to avoid an error. |
13524 | Use char because int might match the return type of a GCC | |
13525 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13526 | #ifdef __cplusplus |
13527 | extern "C" | |
13528 | #endif | |
ad6254c5 AK |
13529 | char readline (); |
13530 | int | |
13531 | main () | |
13532 | { | |
7a197a62 | 13533 | return readline (); |
ad6254c5 AK |
13534 | ; |
13535 | return 0; | |
13536 | } | |
13537 | _ACEOF | |
13538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13539 | if { (ac_try="$ac_link" |
13540 | case "(($ac_try" in | |
13541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13542 | *) ac_try_echo=$ac_try;; | |
13543 | esac | |
ec6a6fbe AK |
13544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13545 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13546 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13547 | ac_status=$? |
8a2fc586 AK |
13548 | grep -v '^ *+' conftest.er1 >conftest.err |
13549 | rm -f conftest.er1 | |
13550 | cat conftest.err >&5 | |
ec6a6fbe | 13551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13552 | (exit $ac_status); } && { |
13553 | test -z "$ac_c_werror_flag" || | |
13554 | test ! -s conftest.err | |
ec6a6fbe AK |
13555 | } && test -s conftest$ac_exeext && { |
13556 | test "$cross_compiling" = yes || | |
13557 | $as_test_x conftest$ac_exeext | |
13558 | }; then | |
ad6254c5 AK |
13559 | ac_cv_lib_readline_readline=yes |
13560 | else | |
ec6a6fbe | 13561 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13562 | sed 's/^/| /' conftest.$ac_ext >&5 |
13563 | ||
7a197a62 | 13564 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13565 | fi |
7a197a62 | 13566 | |
ec6a6fbe | 13567 | rm -rf conftest.dSYM |
25fbec5b | 13568 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13569 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13570 | LIBS=$ac_check_lib_save_LIBS |
13571 | fi | |
ec6a6fbe AK |
13572 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13573 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13574 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
13575 | |
13576 | ||
13577 | cat >>confdefs.h <<\_ACEOF | |
13578 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
13579 | _ACEOF |
13580 | ||
539f4a77 ZK |
13581 | LIBS=$lvm_saved_libs |
13582 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
13583 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
13584 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
13585 | $as_echo_n "(cached) " >&6 | |
13586 | else | |
13587 | ac_check_lib_save_LIBS=$LIBS | |
13588 | LIBS="-lreadline $LIBS" | |
13589 | cat >conftest.$ac_ext <<_ACEOF | |
13590 | /* confdefs.h. */ | |
13591 | _ACEOF | |
13592 | cat confdefs.h >>conftest.$ac_ext | |
13593 | cat >>conftest.$ac_ext <<_ACEOF | |
13594 | /* end confdefs.h. */ | |
bc1024f8 | 13595 | |
539f4a77 ZK |
13596 | /* Override any GCC internal prototype to avoid an error. |
13597 | Use char because int might match the return type of a GCC | |
13598 | builtin and then its argument prototype would still apply. */ | |
13599 | #ifdef __cplusplus | |
13600 | extern "C" | |
13601 | #endif | |
13602 | char rl_line_buffer (); | |
13603 | int | |
13604 | main () | |
13605 | { | |
13606 | return rl_line_buffer (); | |
13607 | ; | |
13608 | return 0; | |
13609 | } | |
13610 | _ACEOF | |
13611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13612 | if { (ac_try="$ac_link" | |
13613 | case "(($ac_try" in | |
13614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13615 | *) ac_try_echo=$ac_try;; | |
13616 | esac | |
13617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13618 | $as_echo "$ac_try_echo") >&5 | |
13619 | (eval "$ac_link") 2>conftest.er1 | |
13620 | ac_status=$? | |
13621 | grep -v '^ *+' conftest.er1 >conftest.err | |
13622 | rm -f conftest.er1 | |
13623 | cat conftest.err >&5 | |
13624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13625 | (exit $ac_status); } && { | |
13626 | test -z "$ac_c_werror_flag" || | |
13627 | test ! -s conftest.err | |
13628 | } && test -s conftest$ac_exeext && { | |
13629 | test "$cross_compiling" = yes || | |
13630 | $as_test_x conftest$ac_exeext | |
13631 | }; then | |
13632 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 13633 | else |
539f4a77 ZK |
13634 | $as_echo "$as_me: failed program was:" >&5 |
13635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13636 | ||
13637 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
13638 | fi |
13639 | ||
539f4a77 ZK |
13640 | rm -rf conftest.dSYM |
13641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13642 | conftest$ac_exeext conftest.$ac_ext | |
13643 | LIBS=$ac_check_lib_save_LIBS | |
13644 | fi | |
13645 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
13646 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
13647 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
13648 | READLINE_LIBS="-lreadline" | |
13649 | else | |
13650 | ||
13651 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
13652 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
13653 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
13654 | ||
13655 | fi | |
13656 | ||
13657 | else | |
13658 | ||
13659 | READLINE_LIBS= | |
13660 | if test "$READLINE" = yes; then | |
13661 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
13662 | --enable-readline option (which is enabled by default). Either disable readline |
13663 | support with --disable-readline or download and install readline from: | |
13664 | ftp.gnu.org/gnu/readline | |
13665 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13666 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 13667 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13668 | --enable-readline option (which is enabled by default). Either disable readline |
13669 | support with --disable-readline or download and install readline from: | |
13670 | ftp.gnu.org/gnu/readline | |
13671 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13672 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 13673 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
13674 | fi |
13675 | fi | |
13676 | ||
13677 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
13678 | |
13679 | for ac_func in rl_completion_matches | |
13680 | do | |
ec6a6fbe AK |
13681 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13682 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13683 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13684 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13685 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13686 | else |
13687 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13688 | /* confdefs.h. */ |
13689 | _ACEOF | |
13690 | cat confdefs.h >>conftest.$ac_ext | |
13691 | cat >>conftest.$ac_ext <<_ACEOF | |
13692 | /* end confdefs.h. */ | |
bc1024f8 | 13693 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13694 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13695 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13696 | |
ad6254c5 | 13697 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13698 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13700 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13701 | |
ad6254c5 AK |
13702 | #ifdef __STDC__ |
13703 | # include <limits.h> | |
13704 | #else | |
13705 | # include <assert.h> | |
13706 | #endif | |
8a2fc586 | 13707 | |
bc1024f8 | 13708 | #undef $ac_func |
8a2fc586 | 13709 | |
7a197a62 AK |
13710 | /* Override any GCC internal prototype to avoid an error. |
13711 | Use char because int might match the return type of a GCC | |
13712 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13713 | #ifdef __cplusplus |
13714 | extern "C" | |
ad6254c5 | 13715 | #endif |
bc1024f8 | 13716 | char $ac_func (); |
ad6254c5 AK |
13717 | /* The GNU C library defines this for functions which it implements |
13718 | to always fail with ENOSYS. Some functions are actually named | |
13719 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13720 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13721 | choke me |
ad6254c5 AK |
13722 | #endif |
13723 | ||
13724 | int | |
13725 | main () | |
13726 | { | |
bc1024f8 | 13727 | return $ac_func (); |
ad6254c5 AK |
13728 | ; |
13729 | return 0; | |
13730 | } | |
13731 | _ACEOF | |
13732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13733 | if { (ac_try="$ac_link" |
13734 | case "(($ac_try" in | |
13735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13736 | *) ac_try_echo=$ac_try;; | |
13737 | esac | |
ec6a6fbe AK |
13738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13739 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13740 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13741 | ac_status=$? |
8a2fc586 AK |
13742 | grep -v '^ *+' conftest.er1 >conftest.err |
13743 | rm -f conftest.er1 | |
13744 | cat conftest.err >&5 | |
ec6a6fbe | 13745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13746 | (exit $ac_status); } && { |
13747 | test -z "$ac_c_werror_flag" || | |
13748 | test ! -s conftest.err | |
ec6a6fbe AK |
13749 | } && test -s conftest$ac_exeext && { |
13750 | test "$cross_compiling" = yes || | |
13751 | $as_test_x conftest$ac_exeext | |
13752 | }; then | |
bc1024f8 | 13753 | eval "$as_ac_var=yes" |
ad6254c5 | 13754 | else |
ec6a6fbe | 13755 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13756 | sed 's/^/| /' conftest.$ac_ext >&5 |
13757 | ||
bc1024f8 | 13758 | eval "$as_ac_var=no" |
ad6254c5 | 13759 | fi |
7a197a62 | 13760 | |
ec6a6fbe | 13761 | rm -rf conftest.dSYM |
25fbec5b | 13762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13763 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13764 | fi |
ec6a6fbe AK |
13765 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13766 | $as_echo "$as_val"'` | |
13767 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13768 | $as_echo "$ac_res" >&6; } | |
13769 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13770 | $as_echo "$as_val"'` | |
13771 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13772 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13773 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13774 | _ACEOF |
13775 | ||
13776 | fi | |
bc1024f8 | 13777 | done |
ad6254c5 | 13778 | |
539f4a77 | 13779 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
13780 | fi |
13781 | ||
13782 | ################################################################################ | |
ec6a6fbe AK |
13783 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13784 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13785 | # Check whether --enable-nls was given. |
ad6254c5 | 13786 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13787 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13788 | else |
13789 | INTL=no | |
7a197a62 AK |
13790 | fi |
13791 | ||
ec6a6fbe AK |
13792 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13793 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13794 | |
13795 | if test x$INTL = xyes; then | |
93bd259b | 13796 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13797 | INTL_PACKAGE="lvm2" |
13798 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13799 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13800 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13801 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13802 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13803 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13804 | else |
13805 | case $MSGFMT in | |
13806 | [\\/]* | ?:[\\/]*) | |
13807 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13808 | ;; | |
13809 | *) | |
13810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13811 | for as_dir in $PATH | |
13812 | do | |
13813 | IFS=$as_save_IFS | |
13814 | test -z "$as_dir" && as_dir=. | |
13815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13817 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13818 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13819 | break 2 |
13820 | fi | |
13821 | done | |
13822 | done | |
7a197a62 | 13823 | IFS=$as_save_IFS |
ad6254c5 AK |
13824 | |
13825 | ;; | |
13826 | esac | |
13827 | fi | |
13828 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13829 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13830 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13831 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13832 | else |
ec6a6fbe AK |
13833 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13834 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13835 | fi |
13836 | ||
7a197a62 | 13837 | |
ad6254c5 | 13838 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13839 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13840 | " >&5 |
ec6a6fbe | 13841 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13842 | " >&2;} |
13843 | { (exit 1); exit 1; }; } | |
13844 | fi; | |
13845 | ||
13846 | ||
7a197a62 | 13847 | # Check whether --with-localedir was given. |
ad6254c5 | 13848 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13849 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13850 | else |
13851 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13852 | fi |
13853 | ||
ad6254c5 AK |
13854 | fi |
13855 | ||
13856 | ################################################################################ | |
13857 | ||
7a197a62 | 13858 | # Check whether --with-confdir was given. |
ad6254c5 | 13859 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13860 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13861 | else |
13862 | CONFDIR='/etc' | |
7a197a62 AK |
13863 | fi |
13864 | ||
ad6254c5 AK |
13865 | |
13866 | ||
7a197a62 | 13867 | # Check whether --with-staticdir was given. |
ad6254c5 | 13868 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13869 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13870 | else |
13871 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13872 | fi |
ad6254c5 | 13873 | |
33f732c5 | 13874 | |
7a197a62 | 13875 | |
68f2de6d AK |
13876 | # Check whether --with-usrlibdir was given. |
13877 | if test "${with_usrlibdir+set}" = set; then | |
13878 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13879 | else | |
13880 | usrlibdir='${prefix}/lib' | |
13881 | fi | |
13882 | ||
13883 | ||
13884 | ||
13885 | # Check whether --with-usrsbindir was given. | |
13886 | if test "${with_usrsbindir+set}" = set; then | |
13887 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13888 | else | |
13889 | usrsbindir='${prefix}/sbin' | |
13890 | fi | |
13891 | ||
13892 | ||
a5f46f6a AK |
13893 | ################################################################################ |
13894 | ||
13895 | # Check whether --with-udev_prefix was given. | |
13896 | if test "${with_udev_prefix+set}" = set; then | |
13897 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13898 | else | |
13899 | udev_prefix='${exec_prefix}' | |
13900 | fi | |
13901 | ||
13902 | ||
78ce7acc AK |
13903 | |
13904 | # Check whether --with-udevdir was given. | |
13905 | if test "${with_udevdir+set}" = set; then | |
13906 | withval=$with_udevdir; udevdir="$withval" | |
13907 | else | |
13908 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13909 | fi | |
13910 | ||
a5f46f6a | 13911 | |
ad6254c5 AK |
13912 | ################################################################################ |
13913 | if test x$READLINE = xyes; then | |
13914 | ||
13915 | ||
13916 | for ac_header in readline/readline.h readline/history.h | |
13917 | do | |
ec6a6fbe | 13918 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13919 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13920 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13921 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13923 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13924 | fi |
ec6a6fbe AK |
13925 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13926 | $as_echo "$as_val"'` | |
13927 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13928 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13929 | else |
13930 | # Is the header compilable? | |
ec6a6fbe AK |
13931 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13932 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13933 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13934 | /* confdefs.h. */ |
13935 | _ACEOF | |
13936 | cat confdefs.h >>conftest.$ac_ext | |
13937 | cat >>conftest.$ac_ext <<_ACEOF | |
13938 | /* end confdefs.h. */ | |
13939 | $ac_includes_default | |
13940 | #include <$ac_header> | |
13941 | _ACEOF | |
13942 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13943 | if { (ac_try="$ac_compile" |
13944 | case "(($ac_try" in | |
13945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13946 | *) ac_try_echo=$ac_try;; | |
13947 | esac | |
ec6a6fbe AK |
13948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13949 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13950 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13951 | ac_status=$? |
8a2fc586 AK |
13952 | grep -v '^ *+' conftest.er1 >conftest.err |
13953 | rm -f conftest.er1 | |
13954 | cat conftest.err >&5 | |
ec6a6fbe | 13955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13956 | (exit $ac_status); } && { |
13957 | test -z "$ac_c_werror_flag" || | |
13958 | test ! -s conftest.err | |
13959 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13960 | ac_header_compiler=yes |
13961 | else | |
ec6a6fbe | 13962 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13963 | sed 's/^/| /' conftest.$ac_ext >&5 |
13964 | ||
7a197a62 | 13965 | ac_header_compiler=no |
ad6254c5 | 13966 | fi |
7a197a62 AK |
13967 | |
13968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13969 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13970 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13971 | |
13972 | # Is the header present? | |
ec6a6fbe AK |
13973 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13974 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13975 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13976 | /* confdefs.h. */ |
13977 | _ACEOF | |
13978 | cat confdefs.h >>conftest.$ac_ext | |
13979 | cat >>conftest.$ac_ext <<_ACEOF | |
13980 | /* end confdefs.h. */ | |
13981 | #include <$ac_header> | |
13982 | _ACEOF | |
7a197a62 AK |
13983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13984 | case "(($ac_try" in | |
13985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13986 | *) ac_try_echo=$ac_try;; | |
13987 | esac | |
ec6a6fbe AK |
13988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13989 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13990 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13991 | ac_status=$? |
13992 | grep -v '^ *+' conftest.er1 >conftest.err | |
13993 | rm -f conftest.er1 | |
13994 | cat conftest.err >&5 | |
ec6a6fbe | 13995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13996 | (exit $ac_status); } >/dev/null && { |
13997 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13998 | test ! -s conftest.err | |
13999 | }; then | |
ad6254c5 AK |
14000 | ac_header_preproc=yes |
14001 | else | |
ec6a6fbe | 14002 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14003 | sed 's/^/| /' conftest.$ac_ext >&5 |
14004 | ||
14005 | ac_header_preproc=no | |
14006 | fi | |
7a197a62 | 14007 | |
ad6254c5 | 14008 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14009 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14010 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14011 | |
14012 | # So? What about this header? | |
8a2fc586 AK |
14013 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14014 | yes:no: ) | |
ec6a6fbe AK |
14015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14016 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14018 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14019 | ac_header_preproc=yes |
ad6254c5 | 14020 | ;; |
8a2fc586 | 14021 | no:yes:* ) |
ec6a6fbe AK |
14022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14023 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14025 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14027 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14029 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14031 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14033 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14034 | |
ad6254c5 AK |
14035 | ;; |
14036 | esac | |
ec6a6fbe AK |
14037 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14038 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14040 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14041 | else |
8a2fc586 | 14042 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14043 | fi |
ec6a6fbe AK |
14044 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14045 | $as_echo "$as_val"'` | |
14046 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14047 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14048 | |
14049 | fi | |
ec6a6fbe AK |
14050 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14051 | $as_echo "$as_val"'` | |
14052 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14053 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14054 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14055 | _ACEOF |
14056 | ||
14057 | else | |
ec6a6fbe AK |
14058 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14059 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14060 | { (exit 1); exit 1; }; } |
14061 | fi | |
14062 | ||
14063 | done | |
14064 | ||
14065 | fi | |
14066 | ||
5c7fc7c4 | 14067 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
14068 | |
14069 | ||
14070 | ||
14071 | ||
14072 | ||
14073 | ||
14074 | ||
14075 | ||
14076 | ||
14077 | ||
14078 | 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 | |
14079 | do | |
ec6a6fbe | 14080 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14082 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14083 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14085 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14086 | fi |
ec6a6fbe AK |
14087 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14088 | $as_echo "$as_val"'` | |
14089 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14090 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14091 | else |
14092 | # Is the header compilable? | |
ec6a6fbe AK |
14093 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14094 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14095 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14096 | /* confdefs.h. */ |
14097 | _ACEOF | |
14098 | cat confdefs.h >>conftest.$ac_ext | |
14099 | cat >>conftest.$ac_ext <<_ACEOF | |
14100 | /* end confdefs.h. */ | |
14101 | $ac_includes_default | |
14102 | #include <$ac_header> | |
14103 | _ACEOF | |
14104 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14105 | if { (ac_try="$ac_compile" |
14106 | case "(($ac_try" in | |
14107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14108 | *) ac_try_echo=$ac_try;; | |
14109 | esac | |
ec6a6fbe AK |
14110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14111 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14112 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14113 | ac_status=$? |
8a2fc586 AK |
14114 | grep -v '^ *+' conftest.er1 >conftest.err |
14115 | rm -f conftest.er1 | |
14116 | cat conftest.err >&5 | |
ec6a6fbe | 14117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14118 | (exit $ac_status); } && { |
14119 | test -z "$ac_c_werror_flag" || | |
14120 | test ! -s conftest.err | |
14121 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14122 | ac_header_compiler=yes |
14123 | else | |
ec6a6fbe | 14124 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14125 | sed 's/^/| /' conftest.$ac_ext >&5 |
14126 | ||
7a197a62 | 14127 | ac_header_compiler=no |
ad6254c5 | 14128 | fi |
7a197a62 AK |
14129 | |
14130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14131 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14132 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14133 | |
14134 | # Is the header present? | |
ec6a6fbe AK |
14135 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14136 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14137 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14138 | /* confdefs.h. */ |
14139 | _ACEOF | |
14140 | cat confdefs.h >>conftest.$ac_ext | |
14141 | cat >>conftest.$ac_ext <<_ACEOF | |
14142 | /* end confdefs.h. */ | |
14143 | #include <$ac_header> | |
14144 | _ACEOF | |
7a197a62 AK |
14145 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14146 | case "(($ac_try" in | |
14147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14148 | *) ac_try_echo=$ac_try;; | |
14149 | esac | |
ec6a6fbe AK |
14150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14151 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14152 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14153 | ac_status=$? |
14154 | grep -v '^ *+' conftest.er1 >conftest.err | |
14155 | rm -f conftest.er1 | |
14156 | cat conftest.err >&5 | |
ec6a6fbe | 14157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14158 | (exit $ac_status); } >/dev/null && { |
14159 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14160 | test ! -s conftest.err | |
14161 | }; then | |
ad6254c5 AK |
14162 | ac_header_preproc=yes |
14163 | else | |
ec6a6fbe | 14164 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14165 | sed 's/^/| /' conftest.$ac_ext >&5 |
14166 | ||
14167 | ac_header_preproc=no | |
14168 | fi | |
7a197a62 | 14169 | |
ad6254c5 | 14170 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14171 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14172 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14173 | |
14174 | # So? What about this header? | |
8a2fc586 AK |
14175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14176 | yes:no: ) | |
ec6a6fbe AK |
14177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14178 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14179 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14180 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14181 | ac_header_preproc=yes |
ad6254c5 | 14182 | ;; |
8a2fc586 | 14183 | no:yes:* ) |
ec6a6fbe AK |
14184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14185 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14187 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14189 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14191 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14193 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14195 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14196 | |
ad6254c5 AK |
14197 | ;; |
14198 | esac | |
ec6a6fbe AK |
14199 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14200 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14202 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14203 | else |
8a2fc586 | 14204 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14205 | fi |
ec6a6fbe AK |
14206 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14207 | $as_echo "$as_val"'` | |
14208 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14209 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14210 | |
14211 | fi | |
ec6a6fbe AK |
14212 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14213 | $as_echo "$as_val"'` | |
14214 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14215 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14216 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14217 | _ACEOF |
14218 | ||
14219 | else | |
ec6a6fbe AK |
14220 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14221 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14222 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14223 | fi |
14224 | ||
ad6254c5 AK |
14225 | done |
14226 | ||
14227 | ||
795ca3e5 | 14228 | |
8106cdd5 | 14229 | |
ad6254c5 AK |
14230 | |
14231 | ||
14232 | for ac_func in dup2 getmntent memmove select socket | |
14233 | do | |
ec6a6fbe AK |
14234 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14235 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14236 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14237 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14238 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14239 | else |
ad6254c5 | 14240 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14241 | /* confdefs.h. */ |
14242 | _ACEOF | |
14243 | cat confdefs.h >>conftest.$ac_ext | |
14244 | cat >>conftest.$ac_ext <<_ACEOF | |
14245 | /* end confdefs.h. */ | |
8a2fc586 AK |
14246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14248 | #define $ac_func innocuous_$ac_func | |
14249 | ||
795ca3e5 | 14250 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
14251 | which can conflict with char $ac_func (); below. |
14252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14253 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14254 | |
ad6254c5 AK |
14255 | #ifdef __STDC__ |
14256 | # include <limits.h> | |
14257 | #else | |
14258 | # include <assert.h> | |
14259 | #endif | |
8a2fc586 AK |
14260 | |
14261 | #undef $ac_func | |
14262 | ||
7a197a62 AK |
14263 | /* Override any GCC internal prototype to avoid an error. |
14264 | Use char because int might match the return type of a GCC | |
14265 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14266 | #ifdef __cplusplus |
14267 | extern "C" | |
ad6254c5 | 14268 | #endif |
ad6254c5 | 14269 | char $ac_func (); |
795ca3e5 AK |
14270 | /* The GNU C library defines this for functions which it implements |
14271 | to always fail with ENOSYS. Some functions are actually named | |
14272 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14273 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 14274 | choke me |
795ca3e5 AK |
14275 | #endif |
14276 | ||
ad6254c5 AK |
14277 | int |
14278 | main () | |
14279 | { | |
7a197a62 | 14280 | return $ac_func (); |
ad6254c5 AK |
14281 | ; |
14282 | return 0; | |
14283 | } | |
14284 | _ACEOF | |
14285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14286 | if { (ac_try="$ac_link" |
14287 | case "(($ac_try" in | |
14288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14289 | *) ac_try_echo=$ac_try;; | |
14290 | esac | |
ec6a6fbe AK |
14291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14292 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14293 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14294 | ac_status=$? |
8a2fc586 AK |
14295 | grep -v '^ *+' conftest.er1 >conftest.err |
14296 | rm -f conftest.er1 | |
14297 | cat conftest.err >&5 | |
ec6a6fbe | 14298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14299 | (exit $ac_status); } && { |
14300 | test -z "$ac_c_werror_flag" || | |
14301 | test ! -s conftest.err | |
ec6a6fbe AK |
14302 | } && test -s conftest$ac_exeext && { |
14303 | test "$cross_compiling" = yes || | |
14304 | $as_test_x conftest$ac_exeext | |
14305 | }; then | |
ad6254c5 | 14306 | eval "$as_ac_var=yes" |
795ca3e5 | 14307 | else |
ec6a6fbe | 14308 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14309 | sed 's/^/| /' conftest.$ac_ext >&5 |
14310 | ||
7a197a62 | 14311 | eval "$as_ac_var=no" |
80992638 | 14312 | fi |
7a197a62 | 14313 | |
ec6a6fbe | 14314 | rm -rf conftest.dSYM |
25fbec5b | 14315 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14316 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 14317 | fi |
ec6a6fbe AK |
14318 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14319 | $as_echo "$as_val"'` | |
14320 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14321 | $as_echo "$ac_res" >&6; } | |
14322 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14323 | $as_echo "$as_val"'` | |
14324 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14325 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14326 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 14327 | _ACEOF |
80992638 AK |
14328 | |
14329 | else | |
ec6a6fbe AK |
14330 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14331 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14332 | { (exit 1); exit 1; }; } |
8106cdd5 | 14333 | fi |
ad6254c5 | 14334 | done |
795ca3e5 | 14335 | |
25fbec5b AK |
14336 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
14337 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
14338 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
14339 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 14340 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 14341 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
14342 | else |
14343 | ac_func_search_save_LIBS=$LIBS | |
14344 | cat >conftest.$ac_ext <<_ACEOF | |
14345 | /* confdefs.h. */ | |
14346 | _ACEOF | |
14347 | cat confdefs.h >>conftest.$ac_ext | |
14348 | cat >>conftest.$ac_ext <<_ACEOF | |
14349 | /* end confdefs.h. */ | |
80992638 | 14350 | |
7a197a62 AK |
14351 | /* Override any GCC internal prototype to avoid an error. |
14352 | Use char because int might match the return type of a GCC | |
ad6254c5 | 14353 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
14354 | #ifdef __cplusplus |
14355 | extern "C" | |
14356 | #endif | |
25fbec5b | 14357 | char getmntent (); |
ad6254c5 AK |
14358 | int |
14359 | main () | |
14360 | { | |
25fbec5b | 14361 | return getmntent (); |
ad6254c5 AK |
14362 | ; |
14363 | return 0; | |
14364 | } | |
14365 | _ACEOF | |
25fbec5b AK |
14366 | for ac_lib in '' sun seq gen; do |
14367 | if test -z "$ac_lib"; then | |
14368 | ac_res="none required" | |
14369 | else | |
14370 | ac_res=-l$ac_lib | |
14371 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14372 | fi | |
14373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14374 | if { (ac_try="$ac_link" |
14375 | case "(($ac_try" in | |
14376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14377 | *) ac_try_echo=$ac_try;; | |
14378 | esac | |
ec6a6fbe AK |
14379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14380 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14381 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14382 | ac_status=$? |
8a2fc586 AK |
14383 | grep -v '^ *+' conftest.er1 >conftest.err |
14384 | rm -f conftest.er1 | |
14385 | cat conftest.err >&5 | |
ec6a6fbe | 14386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14387 | (exit $ac_status); } && { |
14388 | test -z "$ac_c_werror_flag" || | |
14389 | test ! -s conftest.err | |
ec6a6fbe AK |
14390 | } && test -s conftest$ac_exeext && { |
14391 | test "$cross_compiling" = yes || | |
14392 | $as_test_x conftest$ac_exeext | |
14393 | }; then | |
25fbec5b | 14394 | ac_cv_search_getmntent=$ac_res |
80992638 | 14395 | else |
ec6a6fbe | 14396 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14397 | sed 's/^/| /' conftest.$ac_ext >&5 |
14398 | ||
25fbec5b | 14399 | |
795ca3e5 AK |
14400 | fi |
14401 | ||
ec6a6fbe | 14402 | rm -rf conftest.dSYM |
25fbec5b AK |
14403 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14404 | conftest$ac_exeext | |
14405 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14406 | break | |
795ca3e5 | 14407 | fi |
25fbec5b AK |
14408 | done |
14409 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14410 | : | |
14411 | else | |
14412 | ac_cv_search_getmntent=no | |
14413 | fi | |
14414 | rm conftest.$ac_ext | |
14415 | LIBS=$ac_func_search_save_LIBS | |
14416 | fi | |
ec6a6fbe AK |
14417 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14418 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14419 | ac_res=$ac_cv_search_getmntent |
14420 | if test "$ac_res" != no; then | |
14421 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14422 | ac_cv_func_getmntent=yes | |
14423 | ||
14424 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14425 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14426 | _ACEOF |
795ca3e5 | 14427 | |
25fbec5b AK |
14428 | else |
14429 | ac_cv_func_getmntent=no | |
795ca3e5 | 14430 | fi |
795ca3e5 AK |
14431 | |
14432 | ||
ad6254c5 AK |
14433 | # AC_FUNC_REALLOC |
14434 | ||
14435 | ||
14436 | for ac_header in sys/select.h sys/socket.h | |
14437 | do | |
ec6a6fbe | 14438 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14439 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14440 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14441 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14443 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14444 | fi |
ec6a6fbe AK |
14445 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14446 | $as_echo "$as_val"'` | |
14447 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14448 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14449 | else |
ad6254c5 | 14450 | # Is the header compilable? |
ec6a6fbe AK |
14451 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14452 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14453 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14454 | /* confdefs.h. */ |
14455 | _ACEOF | |
14456 | cat confdefs.h >>conftest.$ac_ext | |
14457 | cat >>conftest.$ac_ext <<_ACEOF | |
14458 | /* end confdefs.h. */ | |
14459 | $ac_includes_default | |
14460 | #include <$ac_header> | |
14461 | _ACEOF | |
14462 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14463 | if { (ac_try="$ac_compile" |
14464 | case "(($ac_try" in | |
14465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14466 | *) ac_try_echo=$ac_try;; | |
14467 | esac | |
ec6a6fbe AK |
14468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14469 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14470 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14471 | ac_status=$? |
8a2fc586 AK |
14472 | grep -v '^ *+' conftest.er1 >conftest.err |
14473 | rm -f conftest.er1 | |
14474 | cat conftest.err >&5 | |
ec6a6fbe | 14475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14476 | (exit $ac_status); } && { |
14477 | test -z "$ac_c_werror_flag" || | |
14478 | test ! -s conftest.err | |
14479 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14480 | ac_header_compiler=yes |
80992638 | 14481 | else |
ec6a6fbe | 14482 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14483 | sed 's/^/| /' conftest.$ac_ext >&5 |
14484 | ||
7a197a62 | 14485 | ac_header_compiler=no |
ad6254c5 | 14486 | fi |
7a197a62 AK |
14487 | |
14488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14489 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14490 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14491 | |
14492 | # Is the header present? | |
ec6a6fbe AK |
14493 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14494 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14495 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14496 | /* confdefs.h. */ |
14497 | _ACEOF | |
14498 | cat confdefs.h >>conftest.$ac_ext | |
14499 | cat >>conftest.$ac_ext <<_ACEOF | |
14500 | /* end confdefs.h. */ | |
14501 | #include <$ac_header> | |
14502 | _ACEOF | |
7a197a62 AK |
14503 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14504 | case "(($ac_try" in | |
14505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14506 | *) ac_try_echo=$ac_try;; | |
14507 | esac | |
ec6a6fbe AK |
14508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14509 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14511 | ac_status=$? |
14512 | grep -v '^ *+' conftest.er1 >conftest.err | |
14513 | rm -f conftest.er1 | |
14514 | cat conftest.err >&5 | |
ec6a6fbe | 14515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14516 | (exit $ac_status); } >/dev/null && { |
14517 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14518 | test ! -s conftest.err | |
14519 | }; then | |
ad6254c5 AK |
14520 | ac_header_preproc=yes |
14521 | else | |
ec6a6fbe | 14522 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14523 | sed 's/^/| /' conftest.$ac_ext >&5 |
14524 | ||
14525 | ac_header_preproc=no | |
14526 | fi | |
7a197a62 | 14527 | |
ad6254c5 | 14528 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14529 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14530 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14531 | |
14532 | # So? What about this header? | |
8a2fc586 AK |
14533 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14534 | yes:no: ) | |
ec6a6fbe AK |
14535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14536 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14538 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14539 | ac_header_preproc=yes |
ad6254c5 | 14540 | ;; |
8a2fc586 | 14541 | no:yes:* ) |
ec6a6fbe AK |
14542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14543 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14545 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14547 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14549 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14550 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14551 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14552 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14553 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14554 | |
ad6254c5 AK |
14555 | ;; |
14556 | esac | |
ec6a6fbe AK |
14557 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14558 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14559 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14560 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14561 | else |
8a2fc586 | 14562 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14563 | fi |
ec6a6fbe AK |
14564 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14565 | $as_echo "$as_val"'` | |
14566 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14567 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14568 | |
795ca3e5 | 14569 | fi |
ec6a6fbe AK |
14570 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14571 | $as_echo "$as_val"'` | |
14572 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14573 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14574 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14575 | _ACEOF |
14576 | ||
795ca3e5 AK |
14577 | fi |
14578 | ||
ad6254c5 AK |
14579 | done |
14580 | ||
ec6a6fbe AK |
14581 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14582 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14583 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14584 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14585 | else |
ad6254c5 | 14586 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14587 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14588 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14589 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14590 | /* confdefs.h. */ |
14591 | _ACEOF | |
14592 | cat confdefs.h >>conftest.$ac_ext | |
14593 | cat >>conftest.$ac_ext <<_ACEOF | |
14594 | /* end confdefs.h. */ | |
14595 | $ac_includes_default | |
25fbec5b | 14596 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14597 | # include <sys/select.h> |
14598 | #endif | |
25fbec5b | 14599 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14600 | # include <sys/socket.h> |
14601 | #endif | |
14602 | ||
14603 | int | |
14604 | main () | |
14605 | { | |
14606 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14607 | $ac_arg234, $ac_arg234, $ac_arg234, |
14608 | $ac_arg5); | |
ad6254c5 AK |
14609 | ; |
14610 | return 0; | |
14611 | } | |
14612 | _ACEOF | |
14613 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14614 | if { (ac_try="$ac_compile" |
14615 | case "(($ac_try" in | |
14616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14617 | *) ac_try_echo=$ac_try;; | |
14618 | esac | |
ec6a6fbe AK |
14619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14620 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14621 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14622 | ac_status=$? |
8a2fc586 AK |
14623 | grep -v '^ *+' conftest.er1 >conftest.err |
14624 | rm -f conftest.er1 | |
14625 | cat conftest.err >&5 | |
ec6a6fbe | 14626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14627 | (exit $ac_status); } && { |
14628 | test -z "$ac_c_werror_flag" || | |
14629 | test ! -s conftest.err | |
14630 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14631 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14632 | else | |
ec6a6fbe | 14633 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14634 | sed 's/^/| /' conftest.$ac_ext >&5 |
14635 | ||
7a197a62 | 14636 | |
ad6254c5 | 14637 | fi |
7a197a62 AK |
14638 | |
14639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14640 | done |
14641 | done | |
14642 | done | |
14643 | # Provide a safe default value. | |
14644 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14645 | ||
26e7f2e0 | 14646 | fi |
ec6a6fbe AK |
14647 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14648 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14649 | ac_save_IFS=$IFS; IFS=',' |
14650 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14651 | IFS=$ac_save_IFS | |
14652 | shift | |
14653 | ||
14654 | cat >>confdefs.h <<_ACEOF | |
14655 | #define SELECT_TYPE_ARG1 $1 | |
14656 | _ACEOF | |
14657 | ||
14658 | ||
14659 | cat >>confdefs.h <<_ACEOF | |
14660 | #define SELECT_TYPE_ARG234 ($2) | |
14661 | _ACEOF | |
14662 | ||
14663 | ||
14664 | cat >>confdefs.h <<_ACEOF | |
14665 | #define SELECT_TYPE_ARG5 ($3) | |
14666 | _ACEOF | |
14667 | ||
80992638 | 14668 | rm -f conftest* |
80992638 | 14669 | |
8106cdd5 | 14670 | fi |
ad6254c5 | 14671 | |
ad6254c5 AK |
14672 | if test x$CLUSTER != xnone; then |
14673 | ||
14674 | ||
14675 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14676 | do |
ec6a6fbe | 14677 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14678 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14679 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14680 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14682 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14683 | fi |
ec6a6fbe AK |
14684 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14685 | $as_echo "$as_val"'` | |
14686 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14687 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14688 | else |
14689 | # Is the header compilable? | |
ec6a6fbe AK |
14690 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14691 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14692 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14693 | /* confdefs.h. */ |
14694 | _ACEOF | |
14695 | cat confdefs.h >>conftest.$ac_ext | |
14696 | cat >>conftest.$ac_ext <<_ACEOF | |
14697 | /* end confdefs.h. */ | |
14698 | $ac_includes_default | |
14699 | #include <$ac_header> | |
14700 | _ACEOF | |
14701 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14702 | if { (ac_try="$ac_compile" |
14703 | case "(($ac_try" in | |
14704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14705 | *) ac_try_echo=$ac_try;; | |
14706 | esac | |
ec6a6fbe AK |
14707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14708 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14709 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14710 | ac_status=$? |
8a2fc586 AK |
14711 | grep -v '^ *+' conftest.er1 >conftest.err |
14712 | rm -f conftest.er1 | |
14713 | cat conftest.err >&5 | |
ec6a6fbe | 14714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14715 | (exit $ac_status); } && { |
14716 | test -z "$ac_c_werror_flag" || | |
14717 | test ! -s conftest.err | |
14718 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14719 | ac_header_compiler=yes |
14720 | else | |
ec6a6fbe | 14721 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14722 | sed 's/^/| /' conftest.$ac_ext >&5 |
14723 | ||
7a197a62 | 14724 | ac_header_compiler=no |
ad6254c5 | 14725 | fi |
7a197a62 AK |
14726 | |
14727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14728 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14729 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14730 | |
14731 | # Is the header present? | |
ec6a6fbe AK |
14732 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14733 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14734 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14735 | /* confdefs.h. */ |
14736 | _ACEOF | |
14737 | cat confdefs.h >>conftest.$ac_ext | |
14738 | cat >>conftest.$ac_ext <<_ACEOF | |
14739 | /* end confdefs.h. */ | |
14740 | #include <$ac_header> | |
14741 | _ACEOF | |
7a197a62 AK |
14742 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14743 | case "(($ac_try" in | |
14744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14745 | *) ac_try_echo=$ac_try;; | |
14746 | esac | |
ec6a6fbe AK |
14747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14748 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14749 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14750 | ac_status=$? |
14751 | grep -v '^ *+' conftest.er1 >conftest.err | |
14752 | rm -f conftest.er1 | |
14753 | cat conftest.err >&5 | |
ec6a6fbe | 14754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14755 | (exit $ac_status); } >/dev/null && { |
14756 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14757 | test ! -s conftest.err | |
14758 | }; then | |
ad6254c5 AK |
14759 | ac_header_preproc=yes |
14760 | else | |
ec6a6fbe | 14761 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14762 | sed 's/^/| /' conftest.$ac_ext >&5 |
14763 | ||
14764 | ac_header_preproc=no | |
14765 | fi | |
7a197a62 | 14766 | |
ad6254c5 | 14767 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14768 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14769 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14770 | |
14771 | # So? What about this header? | |
8a2fc586 AK |
14772 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14773 | yes:no: ) | |
ec6a6fbe AK |
14774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14775 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14777 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14778 | ac_header_preproc=yes |
ad6254c5 | 14779 | ;; |
8a2fc586 | 14780 | no:yes:* ) |
ec6a6fbe AK |
14781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14782 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14784 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14786 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14788 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14790 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14791 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14792 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14793 | |
ad6254c5 AK |
14794 | ;; |
14795 | esac | |
ec6a6fbe AK |
14796 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14797 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14798 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14799 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14800 | else |
8a2fc586 | 14801 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14802 | fi |
ec6a6fbe AK |
14803 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14804 | $as_echo "$as_val"'` | |
14805 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14806 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14807 | |
14808 | fi | |
ec6a6fbe AK |
14809 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14810 | $as_echo "$as_val"'` | |
14811 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14812 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14813 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14814 | _ACEOF |
14815 | ||
80992638 | 14816 | else |
ec6a6fbe AK |
14817 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14818 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14819 | { (exit 1); exit 1; }; } |
b896caa1 | 14820 | fi |
ad6254c5 | 14821 | |
b896caa1 AK |
14822 | done |
14823 | ||
14824 | ||
ad6254c5 AK |
14825 | for ac_func in socket |
14826 | do | |
ec6a6fbe AK |
14827 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14828 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14829 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14830 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14831 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14832 | else |
ad6254c5 | 14833 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14834 | /* confdefs.h. */ |
14835 | _ACEOF | |
14836 | cat confdefs.h >>conftest.$ac_ext | |
14837 | cat >>conftest.$ac_ext <<_ACEOF | |
14838 | /* end confdefs.h. */ | |
8a2fc586 AK |
14839 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14841 | #define $ac_func innocuous_$ac_func | |
14842 | ||
ad6254c5 AK |
14843 | /* System header to define __stub macros and hopefully few prototypes, |
14844 | which can conflict with char $ac_func (); below. | |
14845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14846 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14847 | |
ad6254c5 AK |
14848 | #ifdef __STDC__ |
14849 | # include <limits.h> | |
14850 | #else | |
14851 | # include <assert.h> | |
14852 | #endif | |
8a2fc586 AK |
14853 | |
14854 | #undef $ac_func | |
14855 | ||
7a197a62 AK |
14856 | /* Override any GCC internal prototype to avoid an error. |
14857 | Use char because int might match the return type of a GCC | |
14858 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14859 | #ifdef __cplusplus |
14860 | extern "C" | |
ad6254c5 | 14861 | #endif |
ad6254c5 AK |
14862 | char $ac_func (); |
14863 | /* The GNU C library defines this for functions which it implements | |
14864 | to always fail with ENOSYS. Some functions are actually named | |
14865 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14866 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14867 | choke me |
ad6254c5 AK |
14868 | #endif |
14869 | ||
14870 | int | |
14871 | main () | |
14872 | { | |
7a197a62 | 14873 | return $ac_func (); |
ad6254c5 AK |
14874 | ; |
14875 | return 0; | |
14876 | } | |
14877 | _ACEOF | |
14878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14879 | if { (ac_try="$ac_link" |
14880 | case "(($ac_try" in | |
14881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14882 | *) ac_try_echo=$ac_try;; | |
14883 | esac | |
ec6a6fbe AK |
14884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14885 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14886 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14887 | ac_status=$? |
8a2fc586 AK |
14888 | grep -v '^ *+' conftest.er1 >conftest.err |
14889 | rm -f conftest.er1 | |
14890 | cat conftest.err >&5 | |
ec6a6fbe | 14891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14892 | (exit $ac_status); } && { |
14893 | test -z "$ac_c_werror_flag" || | |
14894 | test ! -s conftest.err | |
ec6a6fbe AK |
14895 | } && test -s conftest$ac_exeext && { |
14896 | test "$cross_compiling" = yes || | |
14897 | $as_test_x conftest$ac_exeext | |
14898 | }; then | |
ad6254c5 AK |
14899 | eval "$as_ac_var=yes" |
14900 | else | |
ec6a6fbe | 14901 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14902 | sed 's/^/| /' conftest.$ac_ext >&5 |
14903 | ||
7a197a62 | 14904 | eval "$as_ac_var=no" |
ad6254c5 | 14905 | fi |
7a197a62 | 14906 | |
ec6a6fbe | 14907 | rm -rf conftest.dSYM |
25fbec5b | 14908 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14909 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14910 | fi |
ec6a6fbe AK |
14911 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14912 | $as_echo "$as_val"'` | |
14913 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14914 | $as_echo "$ac_res" >&6; } | |
14915 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14916 | $as_echo "$as_val"'` | |
14917 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14918 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14919 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14920 | _ACEOF |
14921 | ||
14922 | else | |
ec6a6fbe AK |
14923 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14924 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14925 | { (exit 1); exit 1; }; } |
14926 | fi | |
14927 | done | |
14928 | ||
14929 | fi | |
14930 | ||
14931 | if test x$HAVE_LIBDL = xyes; then | |
14932 | ||
14933 | for ac_header in dlfcn.h | |
14934 | do | |
ec6a6fbe | 14935 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14936 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14937 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14938 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14939 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14940 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14941 | fi |
ec6a6fbe AK |
14942 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14943 | $as_echo "$as_val"'` | |
14944 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14945 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14946 | else |
14947 | # Is the header compilable? | |
ec6a6fbe AK |
14948 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14949 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14950 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14951 | /* confdefs.h. */ |
14952 | _ACEOF | |
14953 | cat confdefs.h >>conftest.$ac_ext | |
14954 | cat >>conftest.$ac_ext <<_ACEOF | |
14955 | /* end confdefs.h. */ | |
14956 | $ac_includes_default | |
14957 | #include <$ac_header> | |
14958 | _ACEOF | |
14959 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14960 | if { (ac_try="$ac_compile" |
14961 | case "(($ac_try" in | |
14962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14963 | *) ac_try_echo=$ac_try;; | |
14964 | esac | |
ec6a6fbe AK |
14965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14966 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14967 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14968 | ac_status=$? |
8a2fc586 AK |
14969 | grep -v '^ *+' conftest.er1 >conftest.err |
14970 | rm -f conftest.er1 | |
14971 | cat conftest.err >&5 | |
ec6a6fbe | 14972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14973 | (exit $ac_status); } && { |
14974 | test -z "$ac_c_werror_flag" || | |
14975 | test ! -s conftest.err | |
14976 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14977 | ac_header_compiler=yes |
14978 | else | |
ec6a6fbe | 14979 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14980 | sed 's/^/| /' conftest.$ac_ext >&5 |
14981 | ||
7a197a62 | 14982 | ac_header_compiler=no |
ad6254c5 | 14983 | fi |
7a197a62 AK |
14984 | |
14985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14986 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14987 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14988 | |
14989 | # Is the header present? | |
ec6a6fbe AK |
14990 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14991 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14992 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14993 | /* confdefs.h. */ |
14994 | _ACEOF | |
14995 | cat confdefs.h >>conftest.$ac_ext | |
14996 | cat >>conftest.$ac_ext <<_ACEOF | |
14997 | /* end confdefs.h. */ | |
14998 | #include <$ac_header> | |
14999 | _ACEOF | |
7a197a62 AK |
15000 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15001 | case "(($ac_try" in | |
15002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15003 | *) ac_try_echo=$ac_try;; | |
15004 | esac | |
ec6a6fbe AK |
15005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15006 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15007 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15008 | ac_status=$? |
15009 | grep -v '^ *+' conftest.er1 >conftest.err | |
15010 | rm -f conftest.er1 | |
15011 | cat conftest.err >&5 | |
ec6a6fbe | 15012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15013 | (exit $ac_status); } >/dev/null && { |
15014 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15015 | test ! -s conftest.err | |
15016 | }; then | |
ad6254c5 AK |
15017 | ac_header_preproc=yes |
15018 | else | |
ec6a6fbe | 15019 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15020 | sed 's/^/| /' conftest.$ac_ext >&5 |
15021 | ||
15022 | ac_header_preproc=no | |
15023 | fi | |
7a197a62 | 15024 | |
ad6254c5 | 15025 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15026 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15027 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15028 | |
15029 | # So? What about this header? | |
8a2fc586 AK |
15030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15031 | yes:no: ) | |
ec6a6fbe AK |
15032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15033 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15035 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15036 | ac_header_preproc=yes |
ad6254c5 | 15037 | ;; |
8a2fc586 | 15038 | no:yes:* ) |
ec6a6fbe AK |
15039 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15040 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15041 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15042 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15043 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15044 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15045 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15046 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15047 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15048 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15049 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15050 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15051 | |
ad6254c5 AK |
15052 | ;; |
15053 | esac | |
ec6a6fbe AK |
15054 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15055 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15056 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15057 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15058 | else |
8a2fc586 | 15059 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 15060 | fi |
ec6a6fbe AK |
15061 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15062 | $as_echo "$as_val"'` | |
15063 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15064 | $as_echo "$ac_res" >&6; } | |
80992638 | 15065 | |
8106cdd5 | 15066 | fi |
ec6a6fbe AK |
15067 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15068 | $as_echo "$as_val"'` | |
15069 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15070 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15071 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15072 | _ACEOF |
795ca3e5 AK |
15073 | |
15074 | else | |
ec6a6fbe AK |
15075 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15076 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15077 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
15078 | fi |
15079 | ||
ad6254c5 | 15080 | done |
80992638 | 15081 | |
ad6254c5 | 15082 | fi |
80992638 | 15083 | |
ad6254c5 | 15084 | if test x$INTL = xyes; then |
83912faa | 15085 | |
ad6254c5 AK |
15086 | for ac_header in libintl.h |
15087 | do | |
ec6a6fbe | 15088 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15089 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15090 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15091 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15092 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15093 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15094 | fi |
ec6a6fbe AK |
15095 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15096 | $as_echo "$as_val"'` | |
15097 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15098 | $as_echo "$ac_res" >&6; } | |
83912faa | 15099 | else |
ad6254c5 | 15100 | # Is the header compilable? |
ec6a6fbe AK |
15101 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15102 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15103 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15104 | /* confdefs.h. */ |
15105 | _ACEOF | |
15106 | cat confdefs.h >>conftest.$ac_ext | |
15107 | cat >>conftest.$ac_ext <<_ACEOF | |
15108 | /* end confdefs.h. */ | |
15109 | $ac_includes_default | |
15110 | #include <$ac_header> | |
15111 | _ACEOF | |
15112 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15113 | if { (ac_try="$ac_compile" |
15114 | case "(($ac_try" in | |
15115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15116 | *) ac_try_echo=$ac_try;; | |
15117 | esac | |
ec6a6fbe AK |
15118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15119 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15120 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15121 | ac_status=$? |
8a2fc586 AK |
15122 | grep -v '^ *+' conftest.er1 >conftest.err |
15123 | rm -f conftest.er1 | |
15124 | cat conftest.err >&5 | |
ec6a6fbe | 15125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15126 | (exit $ac_status); } && { |
15127 | test -z "$ac_c_werror_flag" || | |
15128 | test ! -s conftest.err | |
15129 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15130 | ac_header_compiler=yes |
15131 | else | |
ec6a6fbe | 15132 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15133 | sed 's/^/| /' conftest.$ac_ext >&5 |
15134 | ||
7a197a62 | 15135 | ac_header_compiler=no |
ad6254c5 | 15136 | fi |
7a197a62 AK |
15137 | |
15138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15139 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15140 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15141 | |
15142 | # Is the header present? | |
ec6a6fbe AK |
15143 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15144 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15145 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15146 | /* confdefs.h. */ |
15147 | _ACEOF | |
15148 | cat confdefs.h >>conftest.$ac_ext | |
15149 | cat >>conftest.$ac_ext <<_ACEOF | |
15150 | /* end confdefs.h. */ | |
15151 | #include <$ac_header> | |
15152 | _ACEOF | |
7a197a62 AK |
15153 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15154 | case "(($ac_try" in | |
15155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15156 | *) ac_try_echo=$ac_try;; | |
15157 | esac | |
ec6a6fbe AK |
15158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15159 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15160 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15161 | ac_status=$? |
15162 | grep -v '^ *+' conftest.er1 >conftest.err | |
15163 | rm -f conftest.er1 | |
15164 | cat conftest.err >&5 | |
ec6a6fbe | 15165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15166 | (exit $ac_status); } >/dev/null && { |
15167 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15168 | test ! -s conftest.err | |
15169 | }; then | |
ad6254c5 AK |
15170 | ac_header_preproc=yes |
15171 | else | |
ec6a6fbe | 15172 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15173 | sed 's/^/| /' conftest.$ac_ext >&5 |
15174 | ||
15175 | ac_header_preproc=no | |
15176 | fi | |
7a197a62 | 15177 | |
ad6254c5 | 15178 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15179 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15180 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15181 | |
15182 | # So? What about this header? | |
8a2fc586 AK |
15183 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15184 | yes:no: ) | |
ec6a6fbe AK |
15185 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15186 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15187 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15188 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15189 | ac_header_preproc=yes |
ad6254c5 | 15190 | ;; |
8a2fc586 | 15191 | no:yes:* ) |
ec6a6fbe AK |
15192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15193 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15195 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15196 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15197 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15198 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15199 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15200 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15201 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15203 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15204 | |
ad6254c5 AK |
15205 | ;; |
15206 | esac | |
ec6a6fbe AK |
15207 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15208 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15210 | $as_echo_n "(cached) " >&6 |
80992638 | 15211 | else |
8a2fc586 | 15212 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 15213 | fi |
ec6a6fbe AK |
15214 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15215 | $as_echo "$as_val"'` | |
15216 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15217 | $as_echo "$ac_res" >&6; } | |
83912faa | 15218 | |
69792976 | 15219 | fi |
ec6a6fbe AK |
15220 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15221 | $as_echo "$as_val"'` | |
15222 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15223 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15224 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15225 | _ACEOF |
69792976 | 15226 | |
69792976 | 15227 | else |
ec6a6fbe AK |
15228 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15229 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15230 | { (exit 1); exit 1; }; } |
80992638 AK |
15231 | fi |
15232 | ||
ad6254c5 | 15233 | done |
69792976 | 15234 | |
ad6254c5 AK |
15235 | fi |
15236 | ||
a5f46f6a AK |
15237 | if test x$UDEV_SYNC = xyes; then |
15238 | ||
15239 | ||
15240 | for ac_header in sys/ipc.h sys/sem.h | |
15241 | do | |
15242 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15244 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15245 | $as_echo_n "checking for $ac_header... " >&6; } | |
15246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15247 | $as_echo_n "(cached) " >&6 | |
15248 | fi | |
15249 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15250 | $as_echo "$as_val"'` | |
15251 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15252 | $as_echo "$ac_res" >&6; } | |
15253 | else | |
15254 | # Is the header compilable? | |
15255 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15256 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15257 | cat >conftest.$ac_ext <<_ACEOF | |
15258 | /* confdefs.h. */ | |
15259 | _ACEOF | |
15260 | cat confdefs.h >>conftest.$ac_ext | |
15261 | cat >>conftest.$ac_ext <<_ACEOF | |
15262 | /* end confdefs.h. */ | |
15263 | $ac_includes_default | |
15264 | #include <$ac_header> | |
15265 | _ACEOF | |
15266 | rm -f conftest.$ac_objext | |
15267 | if { (ac_try="$ac_compile" | |
15268 | case "(($ac_try" in | |
15269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15270 | *) ac_try_echo=$ac_try;; | |
15271 | esac | |
15272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15273 | $as_echo "$ac_try_echo") >&5 | |
15274 | (eval "$ac_compile") 2>conftest.er1 | |
15275 | ac_status=$? | |
15276 | grep -v '^ *+' conftest.er1 >conftest.err | |
15277 | rm -f conftest.er1 | |
15278 | cat conftest.err >&5 | |
15279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); } && { | |
15281 | test -z "$ac_c_werror_flag" || | |
15282 | test ! -s conftest.err | |
15283 | } && test -s conftest.$ac_objext; then | |
15284 | ac_header_compiler=yes | |
15285 | else | |
15286 | $as_echo "$as_me: failed program was:" >&5 | |
15287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15288 | ||
15289 | ac_header_compiler=no | |
15290 | fi | |
15291 | ||
15292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15293 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15294 | $as_echo "$ac_header_compiler" >&6; } | |
15295 | ||
15296 | # Is the header present? | |
15297 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15298 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15299 | cat >conftest.$ac_ext <<_ACEOF | |
15300 | /* confdefs.h. */ | |
15301 | _ACEOF | |
15302 | cat confdefs.h >>conftest.$ac_ext | |
15303 | cat >>conftest.$ac_ext <<_ACEOF | |
15304 | /* end confdefs.h. */ | |
15305 | #include <$ac_header> | |
15306 | _ACEOF | |
15307 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15308 | case "(($ac_try" in | |
15309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15310 | *) ac_try_echo=$ac_try;; | |
15311 | esac | |
15312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15313 | $as_echo "$ac_try_echo") >&5 | |
15314 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15315 | ac_status=$? | |
15316 | grep -v '^ *+' conftest.er1 >conftest.err | |
15317 | rm -f conftest.er1 | |
15318 | cat conftest.err >&5 | |
15319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15320 | (exit $ac_status); } >/dev/null && { | |
15321 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15322 | test ! -s conftest.err | |
15323 | }; then | |
15324 | ac_header_preproc=yes | |
15325 | else | |
15326 | $as_echo "$as_me: failed program was:" >&5 | |
15327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15328 | ||
15329 | ac_header_preproc=no | |
15330 | fi | |
15331 | ||
15332 | rm -f conftest.err conftest.$ac_ext | |
15333 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15334 | $as_echo "$ac_header_preproc" >&6; } | |
15335 | ||
15336 | # So? What about this header? | |
15337 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15338 | yes:no: ) | |
15339 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15340 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15341 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15342 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15343 | ac_header_preproc=yes | |
15344 | ;; | |
15345 | no:yes:* ) | |
15346 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15347 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15348 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15349 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15350 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15351 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15352 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15353 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15355 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15356 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15357 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15358 | ||
15359 | ;; | |
15360 | esac | |
15361 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15362 | $as_echo_n "checking for $ac_header... " >&6; } | |
15363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15364 | $as_echo_n "(cached) " >&6 | |
15365 | else | |
15366 | eval "$as_ac_Header=\$ac_header_preproc" | |
15367 | fi | |
15368 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15369 | $as_echo "$as_val"'` | |
15370 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15371 | $as_echo "$ac_res" >&6; } | |
15372 | ||
15373 | fi | |
15374 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15375 | $as_echo "$as_val"'` | |
15376 | if test "x$as_val" = x""yes; then | |
15377 | cat >>confdefs.h <<_ACEOF | |
15378 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15379 | _ACEOF | |
15380 | ||
15381 | else | |
15382 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15383 | $as_echo "$as_me: error: bailing out" >&2;} | |
15384 | { (exit 1); exit 1; }; } | |
15385 | fi | |
15386 | ||
15387 | done | |
15388 | ||
15389 | fi | |
15390 | ||
a653923f AK |
15391 | ################################################################################ |
15392 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15393 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15394 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15395 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15396 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15397 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15398 | else |
15399 | case $MODPROBE_CMD in | |
15400 | [\\/]* | ?:[\\/]*) | |
15401 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15402 | ;; | |
15403 | *) | |
15404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15405 | for as_dir in $PATH | |
15406 | do | |
15407 | IFS=$as_save_IFS | |
15408 | test -z "$as_dir" && as_dir=. | |
15409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15411 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15412 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15413 | break 2 |
15414 | fi | |
15415 | done | |
15416 | done | |
7a197a62 | 15417 | IFS=$as_save_IFS |
72b2cb61 AK |
15418 | |
15419 | ;; | |
15420 | esac | |
15421 | fi | |
15422 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15423 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15424 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15425 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15426 | else |
ec6a6fbe AK |
15427 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15428 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15429 | fi |
15430 | ||
a653923f | 15431 | |
7a197a62 | 15432 | |
a653923f | 15433 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15434 | |
15435 | cat >>confdefs.h <<_ACEOF | |
15436 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15437 | _ACEOF | |
15438 | ||
a653923f AK |
15439 | fi |
15440 | ||
80992638 | 15441 | ################################################################################ |
93bd259b AK |
15442 | |
15443 | ||
15444 | if test "$BUILD_DMEVENTD" = yes; then | |
15445 | ||
15446 | # Check whether --with-dmeventd-pidfile was given. | |
15447 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15448 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15449 | #define DMEVENTD_PIDFILE "$withval" | |
15450 | _ACEOF | |
15451 | ||
15452 | else | |
15453 | cat >>confdefs.h <<_ACEOF | |
15454 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15455 | _ACEOF | |
15456 | ||
15457 | fi | |
15458 | ||
15459 | fi | |
15460 | ||
15461 | ||
15462 | ||
15463 | if test "$BUILD_DMEVENTD" = yes; then | |
15464 | dmeventd_prefix="$exec_prefix" | |
15465 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15466 | dmeventd_prefix="$prefix" | |
15467 | fi | |
15468 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15469 | dmeventd_prefix="" | |
15470 | fi | |
15471 | ||
15472 | # Check whether --with-dmeventd-path was given. | |
15473 | if test "${with_dmeventd_path+set}" = set; then | |
15474 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15475 | #define DMEVENTD_PATH "$withval" | |
15476 | _ACEOF | |
15477 | ||
15478 | else | |
15479 | cat >>confdefs.h <<_ACEOF | |
15480 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15481 | _ACEOF | |
15482 | ||
15483 | fi | |
15484 | ||
15485 | fi | |
15486 | ||
15487 | ################################################################################ | |
ec6a6fbe AK |
15488 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15489 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15490 | |
15491 | # Check whether --with-interface was given. | |
15492 | if test "${with_interface+set}" = set; then | |
15493 | withval=$with_interface; interface="$withval" | |
15494 | else | |
15495 | interface=ioctl | |
15496 | fi | |
15497 | ||
15498 | if [ "x$interface" != xioctl ]; | |
15499 | then | |
ec6a6fbe AK |
15500 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15501 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15502 | { (exit 1); exit 1; }; } |
15503 | fi | |
ec6a6fbe AK |
15504 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15505 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15506 | |
15507 | ################################################################################ | |
db8b5af9 | 15508 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15509 | |
15510 | cat >>confdefs.h <<_ACEOF | |
15511 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15512 | _ACEOF | |
15513 | ||
15514 | ||
db8b5af9 | 15515 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15516 | |
db8b5af9 | 15517 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15518 | |
db8b5af9 | 15519 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 15520 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15521 | VER=`echo "$VER" | $AWK '{print $1}'` |
15522 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15523 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15524 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15525 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15526 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15527 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15528 | |
80992638 | 15529 | ################################################################################ |
fae0c576 | 15530 | |
83912faa | 15531 | |
795ca3e5 AK |
15532 | |
15533 | ||
15534 | ||
15535 | ||
15536 | ||
15537 | ||
5a52dca9 | 15538 | |
8ef2b021 | 15539 | |
199e490e | 15540 | |
69792976 AK |
15541 | |
15542 | ||
15543 | ||
d0191583 | 15544 | |
69792976 | 15545 | |
8106cdd5 AK |
15546 | |
15547 | ||
15548 | ||
15549 | ||
15550 | ||
d68a82ec | 15551 | |
036f273a | 15552 | |
7d1552c9 | 15553 | |
8106cdd5 | 15554 | |
0a62c911 | 15555 | |
8106cdd5 | 15556 | |
4a7f3eb2 | 15557 | |
4922197a AK |
15558 | |
15559 | ||
d8ac0fbc | 15560 | |
1a9ea74d | 15561 | |
8a2fc586 AK |
15562 | |
15563 | ||
d0191583 | 15564 | |
93bd259b AK |
15565 | |
15566 | ||
15567 | ||
15568 | ||
15569 | ||
d0191583 JM |
15570 | |
15571 | ||
15572 | ||
15573 | ||
15574 | ||
8a2fc586 | 15575 | |
19a2c6e0 | 15576 | |
f7f0854e ZK |
15577 | |
15578 | ||
3ceb7608 | 15579 | |
8ce0cbda | 15580 | |
8b1a3214 | 15581 | |
ec6a6fbe AK |
15582 | |
15583 | ||
15584 | ||
15585 | ||
e2997b73 AK |
15586 | |
15587 | ||
15588 | ||
15589 | ||
15590 | ||
15591 | ||
a946372e AK |
15592 | |
15593 | ||
15594 | ||
15595 | ||
15596 | ||
15597 | ||
15598 | ||
15599 | ||
15600 | ||
15601 | ||
15602 | ||
ec6a6fbe | 15603 | |
33f732c5 | 15604 | |
66e941e8 | 15605 | |
d3c8211f | 15606 | |
7e3fe830 | 15607 | |
a5f46f6a AK |
15608 | |
15609 | ||
15610 | ||
572fefeb | 15611 | |
90c80887 AK |
15612 | |
15613 | ||
bf456146 | 15614 | |
e1b8a236 | 15615 | |
0878503f | 15616 | |
68f2de6d AK |
15617 | |
15618 | ||
80992638 | 15619 | ################################################################################ |
d3d98fdc | 15620 | 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 | 15621 | |
ad6254c5 | 15622 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15623 | # This file is a shell script that caches the results of configure |
15624 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15625 | # scripts and configure runs, see configure's option --config-cache. |
15626 | # It is not useful on other systems. If it contains results you don't | |
15627 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15628 | # |
ad6254c5 AK |
15629 | # config.status only pays attention to the cache file if you give it |
15630 | # the --recheck option to rerun configure. | |
795ca3e5 | 15631 | # |
ad6254c5 AK |
15632 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15633 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15634 | # following values. | |
15635 | ||
15636 | _ACEOF | |
15637 | ||
795ca3e5 AK |
15638 | # The following way of writing the cache mishandles newlines in values, |
15639 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15640 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15641 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15642 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15643 | ( |
15644 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15645 | eval ac_val=\$$ac_var | |
15646 | case $ac_val in #( | |
15647 | *${as_nl}*) | |
15648 | case $ac_var in #( | |
ec6a6fbe AK |
15649 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15650 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15651 | esac |
15652 | case $ac_var in #( | |
15653 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15654 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15655 | *) $as_unset $ac_var ;; |
15656 | esac ;; | |
15657 | esac | |
15658 | done | |
15659 | ||
ad6254c5 | 15660 | (set) 2>&1 | |
7a197a62 AK |
15661 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15662 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15663 | # `set' does not quote correctly, so add quotes (double-quote |
15664 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15665 | sed -n \ | |
8a2fc586 AK |
15666 | "s/'/'\\\\''/g; |
15667 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15668 | ;; #( |
ad6254c5 AK |
15669 | *) |
15670 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15671 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15672 | ;; |
7a197a62 AK |
15673 | esac | |
15674 | sort | |
15675 | ) | | |
ad6254c5 | 15676 | sed ' |
7a197a62 | 15677 | /^ac_cv_env_/b end |
ad6254c5 | 15678 | t clear |
7a197a62 | 15679 | :clear |
ad6254c5 AK |
15680 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15681 | t end | |
7a197a62 AK |
15682 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15683 | :end' >>confcache | |
15684 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15685 | if test -w "$cache_file"; then | |
15686 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15687 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15688 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15689 | cat confcache >$cache_file |
795ca3e5 | 15690 | else |
ec6a6fbe AK |
15691 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15692 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15693 | fi |
15694 | fi | |
15695 | rm -f confcache | |
15696 | ||
795ca3e5 AK |
15697 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15698 | # Let make expand exec_prefix. | |
15699 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15700 | ||
72b2cb61 | 15701 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15702 | |
15703 | ac_libobjs= | |
15704 | ac_ltlibobjs= | |
15705 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15706 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15707 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15708 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15709 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15710 | # will be set to the directory where LIBOBJS objects are built. | |
15711 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15712 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15713 | done |
15714 | LIBOBJS=$ac_libobjs | |
80992638 | 15715 | |
ad6254c5 AK |
15716 | LTLIBOBJS=$ac_ltlibobjs |
15717 | ||
15718 | ||
15719 | ||
15720 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15721 | ac_write_fail=0 |
ad6254c5 AK |
15722 | ac_clean_files_save=$ac_clean_files |
15723 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15724 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15725 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15726 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15727 | #! $SHELL |
15728 | # Generated by $as_me. | |
795ca3e5 | 15729 | # Run this file to recreate the current configuration. |
795ca3e5 | 15730 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15731 | # configure, is in config.log if it exists. |
15732 | ||
15733 | debug=false | |
15734 | ac_cs_recheck=false | |
15735 | ac_cs_silent=false | |
15736 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15737 | _ACEOF | |
15738 | ||
ec6a6fbe | 15739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15740 | ## --------------------- ## |
15741 | ## M4sh Initialization. ## | |
15742 | ## --------------------- ## | |
15743 | ||
25fbec5b AK |
15744 | # Be more Bourne compatible |
15745 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15746 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15747 | emulate sh | |
15748 | NULLCMD=: | |
ec6a6fbe | 15749 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15750 | # is contrary to our usage. Disable this feature. |
15751 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15752 | setopt NO_GLOB_SUBST |
15753 | else | |
25fbec5b AK |
15754 | case `(set -o) 2>/dev/null` in |
15755 | *posix*) set -o posix ;; | |
15756 | esac | |
15757 | ||
7a197a62 | 15758 | fi |
25fbec5b AK |
15759 | |
15760 | ||
7a197a62 AK |
15761 | |
15762 | ||
15763 | # PATH needs CR | |
15764 | # Avoid depending upon Character Ranges. | |
15765 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15766 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15767 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15768 | as_cr_digits='0123456789' | |
15769 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15770 | ||
ec6a6fbe AK |
15771 | as_nl=' |
15772 | ' | |
15773 | export as_nl | |
15774 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15775 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15776 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15777 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15778 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15779 | as_echo='printf %s\n' | |
15780 | as_echo_n='printf %s' | |
15781 | else | |
15782 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15783 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15784 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15785 | else |
ec6a6fbe AK |
15786 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15787 | as_echo_n_body='eval | |
15788 | arg=$1; | |
15789 | case $arg in | |
15790 | *"$as_nl"*) | |
15791 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15792 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15793 | esac; | |
15794 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15795 | ' | |
15796 | export as_echo_n_body | |
15797 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15798 | fi |
ec6a6fbe AK |
15799 | export as_echo_body |
15800 | as_echo='sh -c $as_echo_body as_echo' | |
15801 | fi | |
15802 | ||
15803 | # The user is always right. | |
15804 | if test "${PATH_SEPARATOR+set}" != set; then | |
15805 | PATH_SEPARATOR=: | |
15806 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15807 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15808 | PATH_SEPARATOR=';' | |
15809 | } | |
ad6254c5 AK |
15810 | fi |
15811 | ||
15812 | # Support unset when possible. | |
8a2fc586 | 15813 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15814 | as_unset=unset |
15815 | else | |
15816 | as_unset=false | |
15817 | fi | |
8106cdd5 | 15818 | |
ad6254c5 | 15819 | |
7a197a62 AK |
15820 | # IFS |
15821 | # We need space, tab and new line, in precisely that order. Quoting is | |
15822 | # there to prevent editors from complaining about space-tab. | |
15823 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15824 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15825 | IFS=" "" $as_nl" |
15826 | ||
15827 | # Find who we are. Look in the path if we contain no directory separator. | |
15828 | case $0 in | |
15829 | *[\\/]* ) as_myself=$0 ;; | |
15830 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15831 | for as_dir in $PATH | |
15832 | do | |
15833 | IFS=$as_save_IFS | |
15834 | test -z "$as_dir" && as_dir=. | |
15835 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15836 | done | |
15837 | IFS=$as_save_IFS | |
15838 | ||
15839 | ;; | |
15840 | esac | |
15841 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15842 | # in which case we are not to be found in the path. | |
15843 | if test "x$as_myself" = x; then | |
15844 | as_myself=$0 | |
15845 | fi | |
15846 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15847 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15848 | { (exit 1); exit 1; } |
15849 | fi | |
15850 | ||
ad6254c5 | 15851 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15852 | for as_var in ENV MAIL MAILPATH |
15853 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15854 | done | |
ad6254c5 AK |
15855 | PS1='$ ' |
15856 | PS2='> ' | |
15857 | PS4='+ ' | |
15858 | ||
15859 | # NLS nuisances. | |
ec6a6fbe AK |
15860 | LC_ALL=C |
15861 | export LC_ALL | |
15862 | LANGUAGE=C | |
15863 | export LANGUAGE | |
8106cdd5 | 15864 | |
ad6254c5 | 15865 | # Required to use basename. |
7a197a62 AK |
15866 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15867 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15868 | as_expr=expr |
15869 | else | |
15870 | as_expr=false | |
15871 | fi | |
8106cdd5 | 15872 | |
7a197a62 | 15873 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15874 | as_basename=basename |
15875 | else | |
15876 | as_basename=false | |
15877 | fi | |
15878 | ||
15879 | ||
15880 | # Name of the executable. | |
7a197a62 | 15881 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15882 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15883 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15884 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15885 | $as_echo X/"$0" | |
7a197a62 AK |
15886 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15887 | s//\1/ | |
15888 | q | |
15889 | } | |
15890 | /^X\/\(\/\/\)$/{ | |
15891 | s//\1/ | |
15892 | q | |
15893 | } | |
15894 | /^X\/\(\/\).*/{ | |
15895 | s//\1/ | |
15896 | q | |
15897 | } | |
15898 | s/.*/./; q'` | |
ad6254c5 | 15899 | |
7a197a62 AK |
15900 | # CDPATH. |
15901 | $as_unset CDPATH | |
ad6254c5 AK |
15902 | |
15903 | ||
ad6254c5 | 15904 | |
ad6254c5 AK |
15905 | as_lineno_1=$LINENO |
15906 | as_lineno_2=$LINENO | |
ad6254c5 | 15907 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15908 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15909 | |
ad6254c5 AK |
15910 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15911 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15912 | # line-number line after each line using $LINENO; the second 'sed' |
15913 | # does the real work. The second script uses 'N' to pair each | |
15914 | # line-number line with the line containing $LINENO, and appends | |
15915 | # trailing '-' during substitution so that $LINENO is not a special | |
15916 | # case at line end. | |
ad6254c5 | 15917 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15918 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15919 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15920 | sed -n ' | |
15921 | p | |
15922 | /[$]LINENO/= | |
15923 | ' <$as_myself | | |
ad6254c5 | 15924 | sed ' |
7a197a62 AK |
15925 | s/[$]LINENO.*/&-/ |
15926 | t lineno | |
15927 | b | |
15928 | :lineno | |
ad6254c5 | 15929 | N |
7a197a62 AK |
15930 | :loop |
15931 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15932 | t loop |
7a197a62 | 15933 | s/-\n.*// |
ad6254c5 | 15934 | ' >$as_me.lineno && |
7a197a62 | 15935 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15936 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15937 | { (exit 1); exit 1; }; } |
15938 | ||
15939 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15940 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15941 | # original and so on. Autoconf is especially sensitive to this). |
15942 | . "./$as_me.lineno" | |
ad6254c5 AK |
15943 | # Exit status is that of the last command. |
15944 | exit | |
15945 | } | |
15946 | ||
15947 | ||
7a197a62 AK |
15948 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15949 | as_dirname=dirname | |
15950 | else | |
15951 | as_dirname=false | |
15952 | fi | |
15953 | ||
15954 | ECHO_C= ECHO_N= ECHO_T= | |
15955 | case `echo -n x` in | |
15956 | -n*) | |
15957 | case `echo 'x\c'` in | |
15958 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15959 | *) ECHO_C='\c';; | |
15960 | esac;; | |
15961 | *) | |
15962 | ECHO_N='-n';; | |
ad6254c5 | 15963 | esac |
7a197a62 AK |
15964 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15965 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15966 | as_expr=expr |
15967 | else | |
15968 | as_expr=false | |
15969 | fi | |
80992638 | 15970 | |
ad6254c5 | 15971 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15972 | if test -d conf$$.dir; then |
15973 | rm -f conf$$.dir/conf$$.file | |
15974 | else | |
15975 | rm -f conf$$.dir | |
ec6a6fbe AK |
15976 | mkdir conf$$.dir 2>/dev/null |
15977 | fi | |
15978 | if (echo >conf$$.file) 2>/dev/null; then | |
15979 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15980 | as_ln_s='ln -s' | |
15981 | # ... but there are two gotchas: | |
15982 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15983 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15984 | # In both cases, we have to default to `cp -p'. | |
15985 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15986 | as_ln_s='cp -p' | |
15987 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15988 | as_ln_s=ln | |
15989 | else | |
ad6254c5 | 15990 | as_ln_s='cp -p' |
ec6a6fbe | 15991 | fi |
ad6254c5 AK |
15992 | else |
15993 | as_ln_s='cp -p' | |
15994 | fi | |
7a197a62 AK |
15995 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15996 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15997 | |
ad6254c5 AK |
15998 | if mkdir -p . 2>/dev/null; then |
15999 | as_mkdir_p=: | |
16000 | else | |
8a2fc586 | 16001 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
16002 | as_mkdir_p=false |
16003 | fi | |
16004 | ||
25fbec5b AK |
16005 | if test -x / >/dev/null 2>&1; then |
16006 | as_test_x='test -x' | |
7a197a62 | 16007 | else |
25fbec5b AK |
16008 | if ls -dL / >/dev/null 2>&1; then |
16009 | as_ls_L_option=L | |
16010 | else | |
16011 | as_ls_L_option= | |
16012 | fi | |
16013 | as_test_x=' | |
16014 | eval sh -c '\'' | |
16015 | if test -d "$1"; then | |
ec6a6fbe | 16016 | test -d "$1/."; |
25fbec5b AK |
16017 | else |
16018 | case $1 in | |
ec6a6fbe | 16019 | -*)set "./$1";; |
25fbec5b AK |
16020 | esac; |
16021 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
16022 | ???[sx]*):;;*)false;;esac;fi | |
16023 | '\'' sh | |
16024 | ' | |
7a197a62 | 16025 | fi |
25fbec5b | 16026 | as_executable_p=$as_test_x |
ad6254c5 AK |
16027 | |
16028 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 16029 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16030 | |
16031 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 16032 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16033 | |
16034 | ||
ad6254c5 AK |
16035 | exec 6>&1 |
16036 | ||
7a197a62 | 16037 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 16038 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
16039 | # values after options handling. |
16040 | ac_log=" | |
ad6254c5 | 16041 | This file was extended by $as_me, which was |
ec6a6fbe | 16042 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
16043 | |
16044 | CONFIG_FILES = $CONFIG_FILES | |
16045 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16046 | CONFIG_LINKS = $CONFIG_LINKS | |
16047 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16048 | $ $0 $@ | |
16049 | ||
7a197a62 AK |
16050 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16051 | " | |
16052 | ||
ad6254c5 AK |
16053 | _ACEOF |
16054 | ||
ec6a6fbe AK |
16055 | case $ac_config_files in *" |
16056 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16057 | esac | |
16058 | ||
16059 | case $ac_config_headers in *" | |
16060 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16061 | esac | |
16062 | ||
16063 | ||
16064 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 16065 | # Files that config.status was made for. |
68f2de6d AK |
16066 | config_files="$ac_config_files" |
16067 | config_headers="$ac_config_headers" | |
ad6254c5 | 16068 | |
7a197a62 | 16069 | _ACEOF |
ad6254c5 | 16070 | |
ec6a6fbe | 16071 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16072 | ac_cs_usage="\ |
16073 | \`$as_me' instantiates files from templates according to the | |
16074 | current configuration. | |
16075 | ||
ec6a6fbe | 16076 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
16077 | |
16078 | -h, --help print this help, then exit | |
25fbec5b | 16079 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
16080 | -q, --quiet, --silent |
16081 | do not print progress messages | |
ad6254c5 AK |
16082 | -d, --debug don't remove temporary files |
16083 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
16084 | --file=FILE[:TEMPLATE] |
16085 | instantiate the configuration file FILE | |
16086 | --header=FILE[:TEMPLATE] | |
16087 | instantiate the configuration header FILE | |
ad6254c5 AK |
16088 | |
16089 | Configuration files: | |
16090 | $config_files | |
16091 | ||
72b2cb61 AK |
16092 | Configuration headers: |
16093 | $config_headers | |
16094 | ||
ad6254c5 | 16095 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 16096 | |
7a197a62 | 16097 | _ACEOF |
ec6a6fbe | 16098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16099 | ac_cs_version="\\ |
16100 | config.status | |
ec6a6fbe AK |
16101 | configured by $0, generated by GNU Autoconf 2.63, |
16102 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 16103 | |
ec6a6fbe | 16104 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
16105 | This config.status script is free software; the Free Software Foundation |
16106 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
16107 | |
16108 | ac_pwd='$ac_pwd' | |
16109 | srcdir='$srcdir' | |
16110 | INSTALL='$INSTALL' | |
fddafd51 | 16111 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
16112 | AWK='$AWK' |
16113 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
16114 | _ACEOF |
16115 | ||
ec6a6fbe AK |
16116 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16117 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
16118 | ac_need_defaults=: |
16119 | while test $# != 0 | |
16120 | do | |
16121 | case $1 in | |
16122 | --*=*) | |
7a197a62 AK |
16123 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16124 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
16125 | ac_shift=: |
16126 | ;; | |
7a197a62 | 16127 | *) |
ad6254c5 AK |
16128 | ac_option=$1 |
16129 | ac_optarg=$2 | |
16130 | ac_shift=shift | |
16131 | ;; | |
ad6254c5 AK |
16132 | esac |
16133 | ||
16134 | case $ac_option in | |
16135 | # Handling of the options. | |
ad6254c5 AK |
16136 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16137 | ac_cs_recheck=: ;; | |
7a197a62 | 16138 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 16139 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 16140 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
16141 | debug=: ;; |
16142 | --file | --fil | --fi | --f ) | |
16143 | $ac_shift | |
ec6a6fbe AK |
16144 | case $ac_optarg in |
16145 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16146 | esac | |
16147 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
16148 | ac_need_defaults=false;; |
16149 | --header | --heade | --head | --hea ) | |
16150 | $ac_shift | |
ec6a6fbe AK |
16151 | case $ac_optarg in |
16152 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16153 | esac | |
16154 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 16155 | ac_need_defaults=false;; |
7a197a62 AK |
16156 | --he | --h) |
16157 | # Conflict between --help and --header | |
ec6a6fbe | 16158 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
16159 | Try \`$0 --help' for more information." >&2 |
16160 | { (exit 1); exit 1; }; };; | |
16161 | --help | --hel | -h ) | |
ec6a6fbe | 16162 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
16163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16164 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16165 | ac_cs_silent=: ;; | |
16166 | ||
16167 | # This is an error. | |
ec6a6fbe | 16168 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 16169 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
16170 | { (exit 1); exit 1; }; } ;; |
16171 | ||
7a197a62 AK |
16172 | *) ac_config_targets="$ac_config_targets $1" |
16173 | ac_need_defaults=false ;; | |
ad6254c5 AK |
16174 | |
16175 | esac | |
16176 | shift | |
16177 | done | |
16178 | ||
16179 | ac_configure_extra_args= | |
16180 | ||
16181 | if $ac_cs_silent; then | |
16182 | exec 6>/dev/null | |
16183 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16184 | fi | |
16185 | ||
16186 | _ACEOF | |
ec6a6fbe | 16187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 16188 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
16189 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16190 | shift | |
16191 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16192 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 16193 | export CONFIG_SHELL |
ec6a6fbe | 16194 | exec "\$@" |
ad6254c5 AK |
16195 | fi |
16196 | ||
16197 | _ACEOF | |
ec6a6fbe | 16198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16199 | exec 5>>config.log |
16200 | { | |
16201 | echo | |
16202 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16203 | ## Running $as_me. ## | |
16204 | _ASBOX | |
ec6a6fbe | 16205 | $as_echo "$ac_log" |
7a197a62 | 16206 | } >&5 |
ad6254c5 | 16207 | |
7a197a62 | 16208 | _ACEOF |
ec6a6fbe | 16209 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 16210 | _ACEOF |
ad6254c5 | 16211 | |
ec6a6fbe | 16212 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16213 | |
16214 | # Handling of arguments. | |
ad6254c5 AK |
16215 | for ac_config_target in $ac_config_targets |
16216 | do | |
7a197a62 AK |
16217 | case $ac_config_target in |
16218 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16219 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16220 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16221 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16222 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16223 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16224 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16225 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16226 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 16227 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
16228 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16229 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16230 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
db8b5af9 | 16231 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
16232 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16233 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16234 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16235 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16236 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16237 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 16238 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16239 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16240 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16241 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16242 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16243 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16244 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16245 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16246 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 16247 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 16248 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16249 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16250 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16251 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16252 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16253 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16254 | |
ec6a6fbe AK |
16255 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16256 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16257 | { (exit 1); exit 1; }; };; |
80992638 | 16258 | esac |
ad6254c5 AK |
16259 | done |
16260 | ||
7a197a62 | 16261 | |
ad6254c5 AK |
16262 | # If the user did not use the arguments to specify the items to instantiate, |
16263 | # then the envvar interface is used. Set only those that are not. | |
16264 | # We use the long form for the default assignment because of an extremely | |
16265 | # bizarre bug on SunOS 4.1.3. | |
16266 | if $ac_need_defaults; then | |
16267 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16268 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16269 | fi |
16270 | ||
16271 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16272 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16273 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16274 | # Hook for its removal unless debugging. |
16275 | # Note that there is a small window in which the directory will not be cleaned: | |
16276 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16277 | $debug || |
16278 | { | |
7a197a62 AK |
16279 | tmp= |
16280 | trap 'exit_status=$? | |
16281 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16282 | ' 0 | |
ad6254c5 AK |
16283 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16284 | } | |
ad6254c5 AK |
16285 | # Create a (secure) tmp directory for tmp files. |
16286 | ||
16287 | { | |
7a197a62 | 16288 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16289 | test -n "$tmp" && test -d "$tmp" |
16290 | } || | |
16291 | { | |
7a197a62 AK |
16292 | tmp=./conf$$-$RANDOM |
16293 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16294 | } || |
16295 | { | |
ec6a6fbe | 16296 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16297 | { (exit 1); exit 1; } |
16298 | } | |
16299 | ||
ec6a6fbe AK |
16300 | # Set up the scripts for CONFIG_FILES section. |
16301 | # No need to generate them if there are no CONFIG_FILES. | |
16302 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16303 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16304 | |
68f2de6d | 16305 | |
ec6a6fbe AK |
16306 | ac_cr='\r' |
16307 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16308 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16309 | ac_cs_awk_cr='\\r' | |
16310 | else | |
16311 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16312 | fi |
7a197a62 | 16313 | |
ec6a6fbe | 16314 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16315 | _ACEOF |
7a197a62 | 16316 | |
8106cdd5 | 16317 | |
ec6a6fbe AK |
16318 | { |
16319 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16320 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16321 | echo "_ACEOF" | |
16322 | } >conf$$subs.sh || | |
16323 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16324 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16325 | { (exit 1); exit 1; }; } | |
16326 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16327 | ac_delim='%!_!# ' |
16328 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16329 | . ./conf$$subs.sh || |
16330 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16331 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16332 | { (exit 1); exit 1; }; } | |
16333 | ||
16334 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16335 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16336 | break |
16337 | elif $ac_last_try; then | |
ec6a6fbe AK |
16338 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16339 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16340 | { (exit 1); exit 1; }; } |
16341 | else | |
16342 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16343 | fi | |
16344 | done | |
ec6a6fbe AK |
16345 | rm -f conf$$subs.sh |
16346 | ||
16347 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16348 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16349 | _ACEOF | |
16350 | sed -n ' | |
16351 | h | |
16352 | s/^/S["/; s/!.*/"]=/ | |
16353 | p | |
16354 | g | |
16355 | s/^[^!]*!// | |
16356 | :repl | |
16357 | t repl | |
16358 | s/'"$ac_delim"'$// | |
16359 | t delim | |
16360 | :nl | |
16361 | h | |
16362 | s/\(.\{148\}\).*/\1/ | |
16363 | t more1 | |
16364 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16365 | p | |
16366 | n | |
16367 | b repl | |
16368 | :more1 | |
16369 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16370 | p | |
16371 | g | |
16372 | s/.\{148\}// | |
16373 | t nl | |
16374 | :delim | |
16375 | h | |
16376 | s/\(.\{148\}\).*/\1/ | |
16377 | t more2 | |
16378 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16379 | p | |
16380 | b | |
16381 | :more2 | |
16382 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16383 | p | |
16384 | g | |
16385 | s/.\{148\}// | |
16386 | t delim | |
16387 | ' <conf$$subs.awk | sed ' | |
16388 | /^[^""]/{ | |
16389 | N | |
16390 | s/\n// | |
16391 | } | |
16392 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16393 | rm -f conf$$subs.awk | |
16394 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16395 | _ACAWK | |
16396 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16397 | for (key in S) S_is_set[key] = 1 | |
16398 | FS = "\a" | |
7a197a62 | 16399 | |
ec6a6fbe AK |
16400 | } |
16401 | { | |
16402 | line = $ 0 | |
16403 | nfields = split(line, field, "@") | |
16404 | substed = 0 | |
16405 | len = length(field[1]) | |
16406 | for (i = 2; i < nfields; i++) { | |
16407 | key = field[i] | |
16408 | keylen = length(key) | |
16409 | if (S_is_set[key]) { | |
16410 | value = S[key] | |
16411 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16412 | len += length(value) + length(field[++i]) | |
16413 | substed = 1 | |
16414 | } else | |
16415 | len += 1 + keylen | |
16416 | } | |
16417 | ||
16418 | print line | |
16419 | } | |
fddafd51 | 16420 | |
ec6a6fbe | 16421 | _ACAWK |
1995c9ff | 16422 | _ACEOF |
ec6a6fbe AK |
16423 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16424 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16425 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16426 | else | |
16427 | cat | |
16428 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16429 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16430 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16431 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16432 | _ACEOF |
16433 | ||
7a197a62 AK |
16434 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16435 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16436 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16437 | # (actually we leave an empty line to preserve line numbers). | |
16438 | if test "x$srcdir" = x.; then | |
16439 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16440 | s/:*\$(srcdir):*/:/ | |
16441 | s/:*\${srcdir}:*/:/ | |
16442 | s/:*@srcdir@:*/:/ | |
16443 | s/^\([^=]*=[ ]*\):*/\1/ | |
16444 | s/:*$// | |
16445 | s/^[^=]*=[ ]*$// | |
16446 | }' | |
16447 | fi | |
16448 | ||
ec6a6fbe | 16449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16450 | fi # test -n "$CONFIG_FILES" |
16451 | ||
ec6a6fbe AK |
16452 | # Set up the scripts for CONFIG_HEADERS section. |
16453 | # No need to generate them if there are no CONFIG_HEADERS. | |
16454 | # This happens for instance with `./config.status Makefile'. | |
16455 | if test -n "$CONFIG_HEADERS"; then | |
16456 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16457 | BEGIN { | |
16458 | _ACEOF | |
16459 | ||
16460 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16461 | # here-document in config.status, that substitutes the proper values into | |
16462 | # config.h.in to produce config.h. | |
16463 | ||
16464 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16465 | # handling of long lines. | |
16466 | ac_delim='%!_!# ' | |
16467 | for ac_last_try in false false :; do | |
16468 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16469 | if test -z "$ac_t"; then | |
16470 | break | |
16471 | elif $ac_last_try; then | |
16472 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16473 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16474 | { (exit 1); exit 1; }; } | |
16475 | else | |
16476 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16477 | fi | |
16478 | done | |
16479 | ||
16480 | # For the awk script, D is an array of macro values keyed by name, | |
16481 | # likewise P contains macro parameters if any. Preserve backslash | |
16482 | # newline sequences. | |
16483 | ||
16484 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16485 | sed -n ' | |
16486 | s/.\{148\}/&'"$ac_delim"'/g | |
16487 | t rset | |
16488 | :rset | |
16489 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16490 | t def | |
16491 | d | |
16492 | :def | |
16493 | s/\\$// | |
16494 | t bsnl | |
16495 | s/["\\]/\\&/g | |
16496 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16497 | D["\1"]=" \3"/p | |
16498 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16499 | d | |
16500 | :bsnl | |
16501 | s/["\\]/\\&/g | |
16502 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16503 | D["\1"]=" \3\\\\\\n"\\/p | |
16504 | t cont | |
16505 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16506 | t cont | |
16507 | d | |
16508 | :cont | |
16509 | n | |
16510 | s/.\{148\}/&'"$ac_delim"'/g | |
16511 | t clear | |
16512 | :clear | |
16513 | s/\\$// | |
16514 | t bsnlc | |
16515 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16516 | d | |
16517 | :bsnlc | |
16518 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16519 | b cont | |
16520 | ' <confdefs.h | sed ' | |
16521 | s/'"$ac_delim"'/"\\\ | |
16522 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16523 | ||
16524 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16525 | for (key in D) D_is_set[key] = 1 | |
16526 | FS = "\a" | |
16527 | } | |
16528 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16529 | line = \$ 0 | |
16530 | split(line, arg, " ") | |
16531 | if (arg[1] == "#") { | |
16532 | defundef = arg[2] | |
16533 | mac1 = arg[3] | |
16534 | } else { | |
16535 | defundef = substr(arg[1], 2) | |
16536 | mac1 = arg[2] | |
16537 | } | |
16538 | split(mac1, mac2, "(") #) | |
16539 | macro = mac2[1] | |
16540 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16541 | if (D_is_set[macro]) { | |
16542 | # Preserve the white space surrounding the "#". | |
16543 | print prefix "define", macro P[macro] D[macro] | |
16544 | next | |
16545 | } else { | |
16546 | # Replace #undef with comments. This is necessary, for example, | |
16547 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16548 | # on some systems where configure will not decide to define it. | |
16549 | if (defundef == "undef") { | |
16550 | print "/*", prefix defundef, macro, "*/" | |
16551 | next | |
16552 | } | |
16553 | } | |
16554 | } | |
16555 | { print } | |
16556 | _ACAWK | |
16557 | _ACEOF | |
16558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16559 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16560 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16561 | { (exit 1); exit 1; }; } | |
16562 | fi # test -n "$CONFIG_HEADERS" | |
16563 | ||
7a197a62 | 16564 | |
ec6a6fbe AK |
16565 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16566 | shift | |
16567 | for ac_tag | |
7a197a62 AK |
16568 | do |
16569 | case $ac_tag in | |
16570 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16571 | esac | |
16572 | case $ac_mode$ac_tag in | |
16573 | :[FHL]*:*);; | |
ec6a6fbe AK |
16574 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16575 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16576 | { (exit 1); exit 1; }; };; |
16577 | :[FH]-) ac_tag=-:-;; | |
16578 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16579 | esac | |
16580 | ac_save_IFS=$IFS | |
16581 | IFS=: | |
16582 | set x $ac_tag | |
16583 | IFS=$ac_save_IFS | |
16584 | shift | |
16585 | ac_file=$1 | |
16586 | shift | |
16587 | ||
16588 | case $ac_mode in | |
16589 | :L) ac_source=$1;; | |
16590 | :[FH]) | |
16591 | ac_file_inputs= | |
16592 | for ac_f | |
16593 | do | |
16594 | case $ac_f in | |
16595 | -) ac_f="$tmp/stdin";; | |
16596 | *) # Look for the file first in the build tree, then in the source tree | |
16597 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16598 | # because $ac_f cannot contain `:'. | |
16599 | test -f "$ac_f" || | |
16600 | case $ac_f in | |
16601 | [\\/$]*) false;; | |
16602 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16603 | esac || | |
ec6a6fbe AK |
16604 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16605 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16606 | { (exit 1); exit 1; }; };; |
16607 | esac | |
ec6a6fbe AK |
16608 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16609 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16610 | done |
16611 | ||
16612 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16613 | # use $as_me), people would be surprised to read: | |
16614 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16615 | configure_input='Generated from '` |
16616 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16617 | `' by configure.' | |
7a197a62 AK |
16618 | if test x"$ac_file" != x-; then |
16619 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16620 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16621 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16622 | fi |
ec6a6fbe AK |
16623 | # Neutralize special characters interpreted by sed in replacement strings. |
16624 | case $configure_input in #( | |
16625 | *\&* | *\|* | *\\* ) | |
16626 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16627 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16628 | *) ac_sed_conf_input=$configure_input;; | |
16629 | esac | |
7a197a62 AK |
16630 | |
16631 | case $ac_tag in | |
ec6a6fbe AK |
16632 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16633 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16634 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16635 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16636 | esac |
16637 | ;; | |
80992638 | 16638 | esac |
8106cdd5 | 16639 | |
7a197a62 | 16640 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16641 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16642 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16643 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16644 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16645 | $as_echo X"$ac_file" | |
7a197a62 AK |
16646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16647 | s//\1/ | |
16648 | q | |
16649 | } | |
16650 | /^X\(\/\/\)[^/].*/{ | |
16651 | s//\1/ | |
16652 | q | |
16653 | } | |
16654 | /^X\(\/\/\)$/{ | |
16655 | s//\1/ | |
16656 | q | |
16657 | } | |
16658 | /^X\(\/\).*/{ | |
16659 | s//\1/ | |
16660 | q | |
16661 | } | |
16662 | s/.*/./; q'` | |
16663 | { as_dir="$ac_dir" | |
16664 | case $as_dir in #( | |
16665 | -*) as_dir=./$as_dir;; | |
16666 | esac | |
16667 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16668 | as_dirs= |
7a197a62 AK |
16669 | while :; do |
16670 | case $as_dir in #( | |
ec6a6fbe | 16671 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16672 | *) as_qdir=$as_dir;; |
16673 | esac | |
16674 | as_dirs="'$as_qdir' $as_dirs" | |
16675 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16676 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16677 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16678 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16679 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16680 | $as_echo X"$as_dir" | |
7a197a62 AK |
16681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16682 | s//\1/ | |
16683 | q | |
16684 | } | |
16685 | /^X\(\/\/\)[^/].*/{ | |
16686 | s//\1/ | |
16687 | q | |
16688 | } | |
16689 | /^X\(\/\/\)$/{ | |
16690 | s//\1/ | |
16691 | q | |
16692 | } | |
16693 | /^X\(\/\).*/{ | |
16694 | s//\1/ | |
16695 | q | |
16696 | } | |
16697 | s/.*/./; q'` | |
16698 | test -d "$as_dir" && break | |
ad6254c5 | 16699 | done |
7a197a62 | 16700 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16701 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16702 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16703 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16704 | ac_builddir=. |
16705 | ||
7a197a62 AK |
16706 | case "$ac_dir" in |
16707 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16708 | *) | |
ec6a6fbe | 16709 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16710 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16711 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16712 | case $ac_top_builddir_sub in |
16713 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16714 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16715 | esac ;; | |
16716 | esac | |
16717 | ac_abs_top_builddir=$ac_pwd | |
16718 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16719 | # for backward compatibility: | |
16720 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16721 | |
16722 | case $srcdir in | |
7a197a62 | 16723 | .) # We are building in place. |
ad6254c5 | 16724 | ac_srcdir=. |
7a197a62 AK |
16725 | ac_top_srcdir=$ac_top_builddir_sub |
16726 | ac_abs_top_srcdir=$ac_pwd ;; | |
16727 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16728 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16729 | ac_top_srcdir=$srcdir |
16730 | ac_abs_top_srcdir=$srcdir ;; | |
16731 | *) # Relative name. | |
16732 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16733 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16734 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16735 | esac |
7a197a62 | 16736 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16737 | |
ad6254c5 | 16738 | |
7a197a62 AK |
16739 | case $ac_mode in |
16740 | :F) | |
16741 | # | |
16742 | # CONFIG_FILE | |
16743 | # | |
ad6254c5 AK |
16744 | |
16745 | case $INSTALL in | |
16746 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16747 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16748 | esac |
fddafd51 ZK |
16749 | ac_MKDIR_P=$MKDIR_P |
16750 | case $MKDIR_P in | |
16751 | [\\/$]* | ?:[\\/]* ) ;; | |
16752 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16753 | esac | |
7a197a62 | 16754 | _ACEOF |
795ca3e5 | 16755 | |
ec6a6fbe | 16756 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16757 | # If the template does not know about datarootdir, expand it. |
16758 | # FIXME: This hack should be removed a few years after 2.60. | |
16759 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16760 | ||
ec6a6fbe AK |
16761 | ac_sed_dataroot=' |
16762 | /datarootdir/ { | |
7a197a62 AK |
16763 | p |
16764 | q | |
16765 | } | |
16766 | /@datadir@/p | |
16767 | /@docdir@/p | |
16768 | /@infodir@/p | |
16769 | /@localedir@/p | |
16770 | /@mandir@/p | |
ec6a6fbe AK |
16771 | ' |
16772 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16773 | *datarootdir*) ac_datarootdir_seen=yes;; |
16774 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16775 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16776 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16777 | _ACEOF |
ec6a6fbe | 16778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16779 | ac_datarootdir_hack=' |
16780 | s&@datadir@&$datadir&g | |
16781 | s&@docdir@&$docdir&g | |
16782 | s&@infodir@&$infodir&g | |
16783 | s&@localedir@&$localedir&g | |
16784 | s&@mandir@&$mandir&g | |
16785 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16786 | esac | |
16787 | _ACEOF | |
16788 | ||
16789 | # Neutralize VPATH when `$srcdir' = `.'. | |
16790 | # Shell code in configure.ac might set extrasub. | |
16791 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16792 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16793 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16794 | $extrasub |
16795 | _ACEOF | |
ec6a6fbe | 16796 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16797 | :t |
16798 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16799 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16800 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16801 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16802 | s&@srcdir@&$ac_srcdir&;t t |
16803 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16804 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16805 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16806 | s&@builddir@&$ac_builddir&;t t | |
16807 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16808 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16809 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16810 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16811 | $ac_datarootdir_hack |
ec6a6fbe AK |
16812 | " |
16813 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16814 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16815 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16816 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16817 | |
16818 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16819 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16820 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16821 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16822 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16823 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16824 | which seems to be undefined. Please make sure it is defined." >&2;} |
16825 | ||
16826 | rm -f "$tmp/stdin" | |
72b2cb61 | 16827 | case $ac_file in |
ec6a6fbe AK |
16828 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16829 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16830 | esac \ | |
16831 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16832 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16833 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16834 | ;; |
16835 | :H) | |
16836 | # | |
16837 | # CONFIG_HEADER | |
16838 | # | |
72b2cb61 | 16839 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16840 | { |
16841 | $as_echo "/* $configure_input */" \ | |
16842 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16843 | } >"$tmp/config.h" \ | |
16844 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16845 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16846 | { (exit 1); exit 1; }; } | |
16847 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16848 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16849 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16850 | else |
ec6a6fbe AK |
16851 | rm -f "$ac_file" |
16852 | mv "$tmp/config.h" "$ac_file" \ | |
16853 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16854 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16855 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16856 | fi |
16857 | else | |
ec6a6fbe AK |
16858 | $as_echo "/* $configure_input */" \ |
16859 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16860 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16861 | $as_echo "$as_me: error: could not create -" >&2;} | |
16862 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16863 | fi |
7a197a62 AK |
16864 | ;; |
16865 | ||
16866 | ||
16867 | esac | |
16868 | ||
16869 | done # for ac_tag | |
795ca3e5 | 16870 | |
795ca3e5 | 16871 | |
ad6254c5 AK |
16872 | { (exit 0); exit 0; } |
16873 | _ACEOF | |
795ca3e5 | 16874 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16875 | ac_clean_files=$ac_clean_files_save |
16876 | ||
ec6a6fbe AK |
16877 | test $ac_write_fail = 0 || |
16878 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16879 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16880 | { (exit 1); exit 1; }; } | |
16881 | ||
ad6254c5 AK |
16882 | |
16883 | # configure is writing to config.log, and then calls config.status. | |
16884 | # config.status does its own redirection, appending to config.log. | |
16885 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16886 | # by configure, so config.status won't be able to write to it; its | |
16887 | # output is simply discarded. So we exec the FD to /dev/null, | |
16888 | # effectively closing config.log, so it can be properly (re)opened and | |
16889 | # appended to by config.status. When coming back to configure, we | |
16890 | # need to make the FD available again. | |
16891 | if test "$no_create" != yes; then | |
16892 | ac_cs_success=: | |
16893 | ac_config_status_args= | |
16894 | test "$silent" = yes && | |
16895 | ac_config_status_args="$ac_config_status_args --quiet" | |
16896 | exec 5>/dev/null | |
16897 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16898 | exec 5>>config.log | |
16899 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16900 | # would make configure fail if this is the last instruction. | |
16901 | $ac_cs_success || { (exit 1); exit 1; } | |
16902 | fi | |
ec6a6fbe AK |
16903 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16904 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16905 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16906 | fi | |
795ca3e5 | 16907 | |
2dc95e1c AK |
16908 | |
16909 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16910 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16911 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16912 | fi |