]>
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 | |
0878503f | 649 | UDEV_SYNC |
a5f46f6a | 650 | UDEV_RULES |
db724a44 | 651 | UDEV_LIBS |
ec6a6fbe AK |
652 | STATIC_LINK |
653 | STATICDIR | |
654 | SNAPSHOTS | |
e1b8a236 | 655 | SELINUX_LIBS |
539f4a77 | 656 | READLINE_LIBS |
f30875db | 657 | PTHREAD_LIBS |
ec6a6fbe AK |
658 | POOL |
659 | PKGCONFIG | |
660 | OWNER | |
661 | MIRRORS | |
662 | LVM_RELEASE_DATE | |
663 | LVM_RELEASE | |
664 | LVM_PATCHLEVEL | |
665 | LVM_MINOR | |
666 | LVM_MAJOR | |
bf456146 | 667 | LVM_LIBAPI |
ec6a6fbe | 668 | LVM_VERSION |
ec6a6fbe AK |
669 | LVM1_FALLBACK |
670 | LVM1 | |
671 | LOCALEDIR | |
672 | LIB_SUFFIX | |
673 | LDDEPS | |
674 | JOBS | |
675 | INTL_PACKAGE | |
676 | INTL | |
ec6a6fbe AK |
677 | HAVE_REALTIME |
678 | HAVE_LIBDL | |
679 | GROUP | |
680 | FSADM | |
681 | DM_LIB_PATCHLEVEL | |
682 | DM_LIB_VERSION | |
683 | DM_IOCTLS | |
684 | DM_DEVICE_UID | |
685 | DM_DEVICE_MODE | |
686 | DM_DEVICE_GID | |
687 | DM_COMPAT | |
688 | DMEVENTD | |
19a2c6e0 | 689 | DL_LIBS |
ec6a6fbe AK |
690 | DEVMAPPER |
691 | DEBUG | |
692 | COPTIMISE_FLAG | |
e2997b73 | 693 | CONFDIR |
ec6a6fbe AK |
694 | CMDLIB |
695 | CLVMD | |
696 | CLUSTER | |
697 | CLDWHOLEARCHIVE | |
698 | CLDNOWHOLEARCHIVE | |
699 | CLDFLAGS | |
700 | BUILD_DMEVENTD | |
66fd4529 | 701 | BUILD_CMIRRORD |
572fefeb | 702 | APPLIB |
ec6a6fbe AK |
703 | MODPROBE_CMD |
704 | MSGFMT | |
705 | LVM2CMD_LIB | |
572fefeb | 706 | LVM2APP_LIB |
fd4728e1 | 707 | GENPNG |
ec6a6fbe AK |
708 | GENHTML |
709 | LCOV | |
90c80887 AK |
710 | SACKPT_LIBS |
711 | SACKPT_CFLAGS | |
a946372e AK |
712 | DLM_LIBS |
713 | DLM_CFLAGS | |
e2997b73 AK |
714 | CPG_LIBS |
715 | CPG_CFLAGS | |
716 | CONFDB_LIBS | |
717 | CONFDB_CFLAGS | |
a946372e AK |
718 | SALCK_LIBS |
719 | SALCK_CFLAGS | |
e2997b73 AK |
720 | QUORUM_LIBS |
721 | QUORUM_CFLAGS | |
a946372e AK |
722 | COROSYNC_LIBS |
723 | COROSYNC_CFLAGS | |
724 | CMAN_LIBS | |
725 | CMAN_CFLAGS | |
726 | GULM_LIBS | |
727 | GULM_CFLAGS | |
728 | CCS_LIBS | |
729 | CCS_CFLAGS | |
730 | PKGCONFIGINIT_LIBS | |
731 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 732 | PKG_CONFIG |
ec6a6fbe AK |
733 | POW_LIB |
734 | LIBOBJS | |
735 | ALLOCA | |
736 | CSCOPE_CMD | |
737 | CFLOW_CMD | |
738 | RANLIB | |
739 | MKDIR_P | |
740 | SET_MAKE | |
741 | LN_S | |
742 | INSTALL_DATA | |
743 | INSTALL_SCRIPT | |
744 | INSTALL_PROGRAM | |
745 | EGREP | |
746 | GREP | |
747 | CPP | |
748 | OBJEXT | |
749 | EXEEXT | |
750 | ac_ct_CC | |
751 | CPPFLAGS | |
752 | LDFLAGS | |
753 | CFLAGS | |
754 | CC | |
755 | AWK | |
756 | SED | |
757 | target_os | |
758 | target_vendor | |
759 | target_cpu | |
760 | target | |
761 | host_os | |
762 | host_vendor | |
763 | host_cpu | |
764 | host | |
765 | build_os | |
766 | build_vendor | |
767 | build_cpu | |
768 | build | |
769 | target_alias | |
770 | host_alias | |
771 | build_alias | |
772 | LIBS | |
773 | ECHO_T | |
774 | ECHO_N | |
775 | ECHO_C | |
776 | DEFS | |
777 | mandir | |
778 | localedir | |
779 | libdir | |
780 | psdir | |
781 | pdfdir | |
782 | dvidir | |
783 | htmldir | |
784 | infodir | |
785 | docdir | |
786 | oldincludedir | |
787 | includedir | |
788 | localstatedir | |
789 | sharedstatedir | |
790 | sysconfdir | |
791 | datadir | |
792 | datarootdir | |
793 | libexecdir | |
794 | sbindir | |
795 | bindir | |
796 | program_transform_name | |
797 | prefix | |
798 | exec_prefix | |
799 | PACKAGE_BUGREPORT | |
800 | PACKAGE_STRING | |
801 | PACKAGE_VERSION | |
802 | PACKAGE_TARNAME | |
803 | PACKAGE_NAME | |
804 | PATH_SEPARATOR | |
805 | SHELL' | |
ad6254c5 | 806 | ac_subst_files='' |
ec6a6fbe AK |
807 | ac_user_opts=' |
808 | enable_option_checking | |
809 | enable_static_link | |
810 | with_user | |
811 | with_group | |
812 | with_device_uid | |
813 | with_device_gid | |
814 | with_device_mode | |
815 | enable_lvm1_fallback | |
816 | with_lvm1 | |
817 | with_pool | |
818 | with_cluster | |
819 | with_snapshots | |
820 | with_mirrors | |
821 | enable_readline | |
822 | enable_realtime | |
823 | with_clvmd | |
66fd4529 AK |
824 | enable_cmirrord |
825 | with_cmirrord_pidfile | |
ec6a6fbe AK |
826 | enable_debug |
827 | with_optimisation | |
828 | enable_profiling | |
829 | enable_devmapper | |
a5f46f6a AK |
830 | enable_udev_sync |
831 | enable_udev_rules | |
ec6a6fbe | 832 | enable_compat |
95eaa683 | 833 | enable_units_compat |
ec6a6fbe AK |
834 | enable_ioctl |
835 | enable_o_direct | |
572fefeb | 836 | enable_applib |
ec6a6fbe AK |
837 | enable_cmdlib |
838 | enable_pkgconfig | |
839 | enable_fsadm | |
840 | enable_dmeventd | |
841 | enable_selinux | |
842 | enable_nls | |
843 | with_localedir | |
844 | with_confdir | |
845 | with_staticdir | |
846 | with_usrlibdir | |
847 | with_usrsbindir | |
a5f46f6a | 848 | with_udev_prefix |
78ce7acc | 849 | with_udevdir |
ec6a6fbe AK |
850 | with_dmeventd_pidfile |
851 | with_dmeventd_path | |
852 | with_interface | |
853 | ' | |
7a197a62 AK |
854 | ac_precious_vars='build_alias |
855 | host_alias | |
856 | target_alias | |
857 | CC | |
858 | CFLAGS | |
859 | LDFLAGS | |
25fbec5b | 860 | LIBS |
7a197a62 | 861 | CPPFLAGS |
e2997b73 AK |
862 | CPP |
863 | PKG_CONFIG | |
a946372e AK |
864 | PKGCONFIGINIT_CFLAGS |
865 | PKGCONFIGINIT_LIBS | |
866 | CCS_CFLAGS | |
867 | CCS_LIBS | |
868 | GULM_CFLAGS | |
869 | GULM_LIBS | |
870 | CMAN_CFLAGS | |
871 | CMAN_LIBS | |
872 | COROSYNC_CFLAGS | |
873 | COROSYNC_LIBS | |
e2997b73 AK |
874 | QUORUM_CFLAGS |
875 | QUORUM_LIBS | |
a946372e AK |
876 | SALCK_CFLAGS |
877 | SALCK_LIBS | |
e2997b73 AK |
878 | CONFDB_CFLAGS |
879 | CONFDB_LIBS | |
880 | CPG_CFLAGS | |
a946372e AK |
881 | CPG_LIBS |
882 | DLM_CFLAGS | |
90c80887 AK |
883 | DLM_LIBS |
884 | SACKPT_CFLAGS | |
885 | SACKPT_LIBS' | |
7a197a62 | 886 | |
795ca3e5 AK |
887 | |
888 | # Initialize some variables set by options. | |
ad6254c5 AK |
889 | ac_init_help= |
890 | ac_init_version=false | |
ec6a6fbe AK |
891 | ac_unrecognized_opts= |
892 | ac_unrecognized_sep= | |
795ca3e5 AK |
893 | # The variables have the same names as the options, with |
894 | # dashes changed to underlines. | |
ad6254c5 | 895 | cache_file=/dev/null |
795ca3e5 | 896 | exec_prefix=NONE |
795ca3e5 | 897 | no_create= |
795ca3e5 AK |
898 | no_recursion= |
899 | prefix=NONE | |
900 | program_prefix=NONE | |
901 | program_suffix=NONE | |
902 | program_transform_name=s,x,x, | |
903 | silent= | |
904 | site= | |
905 | srcdir= | |
795ca3e5 AK |
906 | verbose= |
907 | x_includes=NONE | |
908 | x_libraries=NONE | |
ad6254c5 AK |
909 | |
910 | # Installation directory options. | |
911 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
912 | # and all the variables that are supposed to be based on exec_prefix | |
913 | # by default will actually change. | |
914 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 915 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
916 | bindir='${exec_prefix}/bin' |
917 | sbindir='${exec_prefix}/sbin' | |
918 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
919 | datarootdir='${prefix}/share' |
920 | datadir='${datarootdir}' | |
795ca3e5 AK |
921 | sysconfdir='${prefix}/etc' |
922 | sharedstatedir='${prefix}/com' | |
923 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
924 | includedir='${prefix}/include' |
925 | oldincludedir='/usr/include' | |
7a197a62 AK |
926 | docdir='${datarootdir}/doc/${PACKAGE}' |
927 | infodir='${datarootdir}/info' | |
928 | htmldir='${docdir}' | |
929 | dvidir='${docdir}' | |
930 | pdfdir='${docdir}' | |
931 | psdir='${docdir}' | |
932 | libdir='${exec_prefix}/lib' | |
933 | localedir='${datarootdir}/locale' | |
934 | mandir='${datarootdir}/man' | |
795ca3e5 | 935 | |
795ca3e5 | 936 | ac_prev= |
7a197a62 | 937 | ac_dashdash= |
795ca3e5 AK |
938 | for ac_option |
939 | do | |
795ca3e5 AK |
940 | # If the previous option needs an argument, assign it. |
941 | if test -n "$ac_prev"; then | |
7a197a62 | 942 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
943 | ac_prev= |
944 | continue | |
945 | fi | |
946 | ||
7a197a62 AK |
947 | case $ac_option in |
948 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
949 | *) ac_optarg=yes ;; | |
950 | esac | |
795ca3e5 AK |
951 | |
952 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
953 | ||
7a197a62 AK |
954 | case $ac_dashdash$ac_option in |
955 | --) | |
956 | ac_dashdash=yes ;; | |
795ca3e5 AK |
957 | |
958 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
959 | ac_prev=bindir ;; | |
960 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 961 | bindir=$ac_optarg ;; |
795ca3e5 AK |
962 | |
963 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 964 | ac_prev=build_alias ;; |
795ca3e5 | 965 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 966 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
967 | |
968 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
969 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
970 | ac_prev=cache_file ;; | |
971 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
972 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
973 | cache_file=$ac_optarg ;; |
974 | ||
975 | --config-cache | -C) | |
976 | cache_file=config.cache ;; | |
795ca3e5 | 977 | |
7a197a62 | 978 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 979 | ac_prev=datadir ;; |
7a197a62 | 980 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 981 | datadir=$ac_optarg ;; |
795ca3e5 | 982 | |
7a197a62 AK |
983 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
984 | | --dataroo | --dataro | --datar) | |
985 | ac_prev=datarootdir ;; | |
986 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
987 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
988 | datarootdir=$ac_optarg ;; | |
989 | ||
795ca3e5 | 990 | -disable-* | --disable-*) |
ec6a6fbe | 991 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 992 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
994 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 995 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
996 | ac_useropt_orig=$ac_useropt |
997 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
998 | case $ac_user_opts in | |
999 | *" | |
1000 | "enable_$ac_useropt" | |
1001 | "*) ;; | |
1002 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1003 | ac_unrecognized_sep=', ';; | |
1004 | esac | |
1005 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1006 | |
1007 | -docdir | --docdir | --docdi | --doc | --do) | |
1008 | ac_prev=docdir ;; | |
1009 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1010 | docdir=$ac_optarg ;; | |
1011 | ||
1012 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1013 | ac_prev=dvidir ;; | |
1014 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1015 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1016 | |
1017 | -enable-* | --enable-*) | |
ec6a6fbe | 1018 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1019 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1021 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1022 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1023 | ac_useropt_orig=$ac_useropt |
1024 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1025 | case $ac_user_opts in | |
1026 | *" | |
1027 | "enable_$ac_useropt" | |
1028 | "*) ;; | |
1029 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1030 | ac_unrecognized_sep=', ';; | |
1031 | esac | |
1032 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1033 | |
1034 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1035 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1036 | | --exec | --exe | --ex) | |
1037 | ac_prev=exec_prefix ;; | |
1038 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1039 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1040 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1041 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1042 | |
1043 | -gas | --gas | --ga | --g) | |
1044 | # Obsolete; use --with-gas. | |
1045 | with_gas=yes ;; | |
1046 | ||
ad6254c5 AK |
1047 | -help | --help | --hel | --he | -h) |
1048 | ac_init_help=long ;; | |
1049 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1050 | ac_init_help=recursive ;; | |
1051 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1052 | ac_init_help=short ;; | |
795ca3e5 AK |
1053 | |
1054 | -host | --host | --hos | --ho) | |
ad6254c5 | 1055 | ac_prev=host_alias ;; |
795ca3e5 | 1056 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1057 | host_alias=$ac_optarg ;; |
795ca3e5 | 1058 | |
7a197a62 AK |
1059 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1060 | ac_prev=htmldir ;; | |
1061 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1062 | | --ht=*) | |
1063 | htmldir=$ac_optarg ;; | |
1064 | ||
795ca3e5 AK |
1065 | -includedir | --includedir | --includedi | --included | --include \ |
1066 | | --includ | --inclu | --incl | --inc) | |
1067 | ac_prev=includedir ;; | |
1068 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1069 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1070 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1071 | |
1072 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1073 | ac_prev=infodir ;; | |
1074 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1075 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1076 | |
1077 | -libdir | --libdir | --libdi | --libd) | |
1078 | ac_prev=libdir ;; | |
1079 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1080 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1081 | |
1082 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1083 | | --libexe | --libex | --libe) | |
1084 | ac_prev=libexecdir ;; | |
1085 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1086 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1087 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1088 | |
7a197a62 AK |
1089 | -localedir | --localedir | --localedi | --localed | --locale) |
1090 | ac_prev=localedir ;; | |
1091 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1092 | localedir=$ac_optarg ;; | |
1093 | ||
795ca3e5 | 1094 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1095 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1096 | ac_prev=localstatedir ;; |
1097 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1098 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1099 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1100 | |
1101 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1102 | ac_prev=mandir ;; | |
1103 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1104 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1105 | |
1106 | -nfp | --nfp | --nf) | |
1107 | # Obsolete; use --without-fp. | |
1108 | with_fp=no ;; | |
1109 | ||
1110 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1111 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1112 | no_create=yes ;; |
1113 | ||
1114 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1115 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1116 | no_recursion=yes ;; | |
1117 | ||
1118 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1119 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1120 | | --oldin | --oldi | --old | --ol | --o) | |
1121 | ac_prev=oldincludedir ;; | |
1122 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1123 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1124 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1125 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1126 | |
1127 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1128 | ac_prev=prefix ;; | |
1129 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1130 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1131 | |
1132 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1133 | | --program-pre | --program-pr | --program-p) | |
1134 | ac_prev=program_prefix ;; | |
1135 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1136 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1137 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1138 | |
1139 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1140 | | --program-suf | --program-su | --program-s) | |
1141 | ac_prev=program_suffix ;; | |
1142 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1143 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1144 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1145 | |
1146 | -program-transform-name | --program-transform-name \ | |
1147 | | --program-transform-nam | --program-transform-na \ | |
1148 | | --program-transform-n | --program-transform- \ | |
1149 | | --program-transform | --program-transfor \ | |
1150 | | --program-transfo | --program-transf \ | |
1151 | | --program-trans | --program-tran \ | |
1152 | | --progr-tra | --program-tr | --program-t) | |
1153 | ac_prev=program_transform_name ;; | |
1154 | -program-transform-name=* | --program-transform-name=* \ | |
1155 | | --program-transform-nam=* | --program-transform-na=* \ | |
1156 | | --program-transform-n=* | --program-transform-=* \ | |
1157 | | --program-transform=* | --program-transfor=* \ | |
1158 | | --program-transfo=* | --program-transf=* \ | |
1159 | | --program-trans=* | --program-tran=* \ | |
1160 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1161 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1162 | |
7a197a62 AK |
1163 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1164 | ac_prev=pdfdir ;; | |
1165 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1166 | pdfdir=$ac_optarg ;; | |
1167 | ||
1168 | -psdir | --psdir | --psdi | --psd | --ps) | |
1169 | ac_prev=psdir ;; | |
1170 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1171 | psdir=$ac_optarg ;; | |
1172 | ||
795ca3e5 AK |
1173 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1174 | | -silent | --silent | --silen | --sile | --sil) | |
1175 | silent=yes ;; | |
1176 | ||
1177 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1178 | ac_prev=sbindir ;; | |
1179 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1180 | | --sbi=* | --sb=*) | |
ad6254c5 | 1181 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1182 | |
1183 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1184 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1185 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1186 | | --sha | --sh) | |
1187 | ac_prev=sharedstatedir ;; | |
1188 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1189 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1190 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1191 | | --sha=* | --sh=*) | |
ad6254c5 | 1192 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1193 | |
1194 | -site | --site | --sit) | |
1195 | ac_prev=site ;; | |
1196 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1197 | site=$ac_optarg ;; |
795ca3e5 AK |
1198 | |
1199 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1200 | ac_prev=srcdir ;; | |
1201 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1202 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1203 | |
1204 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1205 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1206 | ac_prev=sysconfdir ;; | |
1207 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1208 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1209 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1210 | |
1211 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1212 | ac_prev=target_alias ;; |
795ca3e5 | 1213 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1214 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1215 | |
1216 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1217 | verbose=yes ;; | |
1218 | ||
ad6254c5 AK |
1219 | -version | --version | --versio | --versi | --vers | -V) |
1220 | ac_init_version=: ;; | |
795ca3e5 AK |
1221 | |
1222 | -with-* | --with-*) | |
ec6a6fbe | 1223 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1224 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1225 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1226 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1227 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1228 | ac_useropt_orig=$ac_useropt |
1229 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1230 | case $ac_user_opts in | |
1231 | *" | |
1232 | "with_$ac_useropt" | |
1233 | "*) ;; | |
1234 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1235 | ac_unrecognized_sep=', ';; | |
1236 | esac | |
1237 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1238 | |
1239 | -without-* | --without-*) | |
ec6a6fbe | 1240 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1241 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1242 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1243 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1244 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1245 | ac_useropt_orig=$ac_useropt |
1246 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1247 | case $ac_user_opts in | |
1248 | *" | |
1249 | "with_$ac_useropt" | |
1250 | "*) ;; | |
1251 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1252 | ac_unrecognized_sep=', ';; | |
1253 | esac | |
1254 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1255 | |
1256 | --x) | |
1257 | # Obsolete; use --with-x. | |
1258 | with_x=yes ;; | |
1259 | ||
1260 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1261 | | --x-incl | --x-inc | --x-in | --x-i) | |
1262 | ac_prev=x_includes ;; | |
1263 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1264 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1265 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1266 | |
1267 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1268 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1269 | ac_prev=x_libraries ;; | |
1270 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1271 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1272 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1273 | |
ec6a6fbe | 1274 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1275 | Try \`$0 --help' for more information." >&2 |
1276 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1277 | ;; |
1278 | ||
ad6254c5 AK |
1279 | *=*) |
1280 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1281 | # Reject names that are not valid shell variable names. | |
1282 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1283 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1284 | { (exit 1); exit 1; }; } |
7a197a62 | 1285 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1286 | export $ac_envvar ;; |
1287 | ||
795ca3e5 | 1288 | *) |
ad6254c5 | 1289 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1290 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1291 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1292 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1293 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1294 | ;; |
1295 | ||
1296 | esac | |
1297 | done | |
1298 | ||
1299 | if test -n "$ac_prev"; then | |
ad6254c5 | 1300 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1301 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1302 | { (exit 1); exit 1; }; } |
795ca3e5 | 1303 | fi |
795ca3e5 | 1304 | |
ec6a6fbe AK |
1305 | if test -n "$ac_unrecognized_opts"; then |
1306 | case $enable_option_checking in | |
1307 | no) ;; | |
1308 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1309 | { (exit 1); exit 1; }; } ;; | |
1310 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1311 | esac | |
1312 | fi | |
1313 | ||
1314 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1315 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1316 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1317 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1318 | libdir localedir mandir | |
795ca3e5 | 1319 | do |
7a197a62 | 1320 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1321 | # Remove trailing slashes. |
1322 | case $ac_val in | |
1323 | */ ) | |
1324 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1325 | eval $ac_var=\$ac_val;; | |
1326 | esac | |
1327 | # Be sure to have absolute directory names. | |
ad6254c5 | 1328 | case $ac_val in |
7a197a62 AK |
1329 | [\\/$]* | ?:[\\/]* ) continue;; |
1330 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1331 | esac |
ec6a6fbe | 1332 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1333 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1334 | done |
1335 | ||
ad6254c5 AK |
1336 | # There might be people who depend on the old broken behavior: `$host' |
1337 | # used to hold the argument of --host etc. | |
1338 | # FIXME: To remove some day. | |
1339 | build=$build_alias | |
1340 | host=$host_alias | |
1341 | target=$target_alias | |
1342 | ||
1343 | # FIXME: To remove some day. | |
1344 | if test "x$host_alias" != x; then | |
1345 | if test "x$build_alias" = x; then | |
1346 | cross_compiling=maybe | |
ec6a6fbe | 1347 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1348 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1349 | elif test "x$build_alias" != "x$host_alias"; then | |
1350 | cross_compiling=yes | |
1351 | fi | |
1352 | fi | |
8106cdd5 | 1353 | |
ad6254c5 AK |
1354 | ac_tool_prefix= |
1355 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1356 | ||
1357 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1358 | |
795ca3e5 | 1359 | |
7a197a62 AK |
1360 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1361 | ac_ls_di=`ls -di .` && | |
1362 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1363 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1364 | { (exit 1); exit 1; }; } |
1365 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1366 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1367 | { (exit 1); exit 1; }; } |
1368 | ||
1369 | ||
795ca3e5 AK |
1370 | # Find the source files, if location was not specified. |
1371 | if test -z "$srcdir"; then | |
1372 | ac_srcdir_defaulted=yes | |
7a197a62 | 1373 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1374 | ac_confdir=`$as_dirname -- "$as_myself" || |
1375 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1376 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1377 | X"$as_myself" : 'X\(//\)$' \| \ | |
1378 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1379 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)[^/].*/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\/\)$/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | /^X\(\/\).*/{ | |
1393 | s//\1/ | |
1394 | q | |
1395 | } | |
1396 | s/.*/./; q'` | |
795ca3e5 | 1397 | srcdir=$ac_confdir |
7a197a62 | 1398 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1399 | srcdir=.. |
1400 | fi | |
1401 | else | |
1402 | ac_srcdir_defaulted=no | |
1403 | fi | |
7a197a62 AK |
1404 | if test ! -r "$srcdir/$ac_unique_file"; then |
1405 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1406 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1407 | { (exit 1); exit 1; }; } |
795ca3e5 | 1408 | fi |
7a197a62 AK |
1409 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1410 | ac_abs_confdir=`( | |
ec6a6fbe | 1411 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1412 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1413 | pwd)` |
1414 | # When building in place, set srcdir=. | |
1415 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1416 | srcdir=. | |
1417 | fi | |
1418 | # Remove unnecessary trailing slashes from srcdir. | |
1419 | # Double slashes in file names in object file debugging info | |
1420 | # mess up M-x gdb in Emacs. | |
1421 | case $srcdir in | |
1422 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1423 | esac | |
1424 | for ac_var in $ac_precious_vars; do | |
1425 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1426 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1427 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1428 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1429 | done | |
ad6254c5 AK |
1430 | |
1431 | # | |
1432 | # Report the --help message. | |
1433 | # | |
1434 | if test "$ac_init_help" = "long"; then | |
1435 | # Omit some internal or obsolete options to make the list less imposing. | |
1436 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1437 | cat <<_ACEOF | |
1438 | \`configure' configures this package to adapt to many kinds of systems. | |
1439 | ||
1440 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1441 | ||
1442 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1443 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1444 | ||
1445 | Defaults for the options are specified in brackets. | |
1446 | ||
1447 | Configuration: | |
1448 | -h, --help display this help and exit | |
1449 | --help=short display options specific to this package | |
1450 | --help=recursive display the short help of all the included packages | |
1451 | -V, --version display version information and exit | |
1452 | -q, --quiet, --silent do not print \`checking...' messages | |
1453 | --cache-file=FILE cache test results in FILE [disabled] | |
1454 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1455 | -n, --no-create do not create output files | |
1456 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1457 | ||
ad6254c5 AK |
1458 | Installation directories: |
1459 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1460 | [$ac_default_prefix] |
ad6254c5 | 1461 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1462 | [PREFIX] |
ad6254c5 AK |
1463 | |
1464 | By default, \`make install' will install all the files in | |
1465 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1466 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1467 | for instance \`--prefix=\$HOME'. | |
1468 | ||
1469 | For better control, use the options below. | |
1470 | ||
1471 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1472 | --bindir=DIR user executables [EPREFIX/bin] |
1473 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1474 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1475 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1476 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1477 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1478 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1479 | --includedir=DIR C header files [PREFIX/include] | |
1480 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1481 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1482 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1483 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1484 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1485 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1486 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1487 | --htmldir=DIR html documentation [DOCDIR] | |
1488 | --dvidir=DIR dvi documentation [DOCDIR] | |
1489 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1490 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1491 | _ACEOF |
1492 | ||
1493 | cat <<\_ACEOF | |
1494 | ||
1495 | System types: | |
1496 | --build=BUILD configure for building on BUILD [guessed] | |
1497 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1498 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1499 | _ACEOF | |
1500 | fi | |
1501 | ||
1502 | if test -n "$ac_init_help"; then | |
1503 | ||
1504 | cat <<\_ACEOF | |
1505 | ||
1506 | Optional Features: | |
ec6a6fbe | 1507 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1508 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1509 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1510 | --enable-static_link Use this to link the tools to their libraries |
1511 | statically. Default is dynamic linking | |
ad6254c5 AK |
1512 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1513 | device-mapper is missing from the kernel | |
1b523347 | 1514 | --disable-readline Disable readline support |
89044bc0 | 1515 | --enable-realtime Enable realtime clock support |
66fd4529 | 1516 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1517 | --enable-debug Enable debugging |
5556819a | 1518 | --enable-profiling Gather gcov profiling data |
93bd259b | 1519 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1520 | --enable-udev_sync Enable synchronisation with udev processing |
1521 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1522 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1523 | --enable-units-compat Enable output compatibility with old versions that |
1524 | that don't use KiB-style unit suffixes | |
93bd259b | 1525 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1526 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1527 | --enable-applib Build application library |
ad6254c5 | 1528 | --enable-cmdlib Build shared command library |
93bd259b | 1529 | --enable-pkgconfig Install pkgconfig support |
c9274524 | 1530 | --disable-fsadm Disable fsadm |
15d91f5a | 1531 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1532 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1533 | --enable-nls Enable Native Language Support |
1534 | ||
1535 | Optional Packages: | |
1536 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1537 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1538 | --with-user=USER Set the owner of installed files [USER=] |
1539 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1540 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1541 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1542 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1543 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1544 | TYPE=internal | |
1545 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1546 | TYPE=internal | |
1547 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1548 | TYPE=internal | |
1549 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1550 | TYPE=internal | |
1551 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1552 | TYPE=internal | |
a946372e | 1553 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1554 | The following cluster manager combinations are valid: |
a946372e AK |
1555 | * cman,gulm (RHEL4 or equivalent) |
1556 | * cman (RHEL5 or equivalent) | |
1557 | * cman,corosync,openais (or selection of them) | |
1091650a | 1558 | * singlenode (localhost only) |
a946372e AK |
1559 | * all (autodetect) |
1560 | * none (disable build) | |
a266258f | 1561 | TYPE=none |
66fd4529 | 1562 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1563 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1564 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1565 | --with-confdir=DIR Configuration files in DIR [/etc] |
1566 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1567 | --with-usrlibdir=DIR |
1568 | --with-usrsbindir=DIR | |
a5f46f6a | 1569 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1570 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1571 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1572 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1573 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1574 | |
1575 | Some influential environment variables: | |
1576 | CC C compiler command | |
1577 | CFLAGS C compiler flags | |
1578 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1579 | nonstandard directory <lib dir> | |
25fbec5b | 1580 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1581 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1582 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1583 | CPP C preprocessor |
e2997b73 | 1584 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1585 | PKGCONFIGINIT_CFLAGS |
1586 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1587 | PKGCONFIGINIT_LIBS | |
1588 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1589 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1590 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1591 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1592 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1593 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1594 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1595 | COROSYNC_CFLAGS | |
1596 | C compiler flags for COROSYNC, overriding pkg-config | |
1597 | COROSYNC_LIBS | |
1598 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1599 | QUORUM_CFLAGS |
1600 | C compiler flags for QUORUM, overriding pkg-config | |
1601 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1602 | SALCK_CFLAGS |
1603 | C compiler flags for SALCK, overriding pkg-config | |
1604 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1605 | CONFDB_CFLAGS |
1606 | C compiler flags for CONFDB, overriding pkg-config | |
1607 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1608 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1609 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1610 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1611 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1612 | SACKPT_CFLAGS |
1613 | C compiler flags for SACKPT, overriding pkg-config | |
1614 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1615 | |
1616 | Use these variables to override the choices made by `configure' or to help | |
1617 | it to find libraries and programs with nonstandard names/locations. | |
1618 | ||
1619 | _ACEOF | |
7a197a62 | 1620 | ac_status=$? |
ad6254c5 AK |
1621 | fi |
1622 | ||
1623 | if test "$ac_init_help" = "recursive"; then | |
1624 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1625 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1626 | test -d "$ac_dir" || |
1627 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1628 | continue | |
ad6254c5 AK |
1629 | ac_builddir=. |
1630 | ||
7a197a62 AK |
1631 | case "$ac_dir" in |
1632 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1633 | *) | |
ec6a6fbe | 1634 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1635 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1636 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1637 | case $ac_top_builddir_sub in |
1638 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1639 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1640 | esac ;; | |
1641 | esac | |
1642 | ac_abs_top_builddir=$ac_pwd | |
1643 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1644 | # for backward compatibility: | |
1645 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1646 | |
1647 | case $srcdir in | |
7a197a62 | 1648 | .) # We are building in place. |
ad6254c5 | 1649 | ac_srcdir=. |
7a197a62 AK |
1650 | ac_top_srcdir=$ac_top_builddir_sub |
1651 | ac_abs_top_srcdir=$ac_pwd ;; | |
1652 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1653 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1654 | ac_top_srcdir=$srcdir |
1655 | ac_abs_top_srcdir=$srcdir ;; | |
1656 | *) # Relative name. | |
1657 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1658 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1659 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1660 | esac |
7a197a62 AK |
1661 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1662 | ||
1663 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1664 | # Check for guested configure. | |
1665 | if test -f "$ac_srcdir/configure.gnu"; then | |
1666 | echo && | |
1667 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1668 | elif test -f "$ac_srcdir/configure"; then | |
1669 | echo && | |
1670 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1671 | else |
ec6a6fbe | 1672 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1673 | fi || ac_status=$? |
1674 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1675 | done |
1676 | fi | |
1677 | ||
7a197a62 | 1678 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1679 | if $ac_init_version; then |
1680 | cat <<\_ACEOF | |
7a197a62 | 1681 | configure |
ec6a6fbe | 1682 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1683 | |
7a197a62 | 1684 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1685 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1686 | This configure script is free software; the Free Software Foundation |
1687 | gives unlimited permission to copy, distribute and modify it. | |
1688 | _ACEOF | |
7a197a62 | 1689 | exit |
ad6254c5 | 1690 | fi |
7a197a62 | 1691 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1692 | This file contains any messages produced by compilers while |
1693 | running configure, to aid debugging if configure makes a mistake. | |
1694 | ||
1695 | It was created by $as_me, which was | |
ec6a6fbe | 1696 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1697 | |
1698 | $ $0 $@ | |
1699 | ||
1700 | _ACEOF | |
7a197a62 | 1701 | exec 5>>config.log |
ad6254c5 AK |
1702 | { |
1703 | cat <<_ASUNAME | |
1704 | ## --------- ## | |
1705 | ## Platform. ## | |
1706 | ## --------- ## | |
1707 | ||
1708 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1709 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1710 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1711 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1712 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1713 | ||
1714 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1715 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1716 | ||
1717 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1718 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1719 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1720 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1721 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1722 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1723 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1724 | ||
1725 | _ASUNAME | |
1726 | ||
1727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1728 | for as_dir in $PATH | |
1729 | do | |
1730 | IFS=$as_save_IFS | |
1731 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1732 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1733 | done |
7a197a62 | 1734 | IFS=$as_save_IFS |
ad6254c5 AK |
1735 | |
1736 | } >&5 | |
1737 | ||
1738 | cat >&5 <<_ACEOF | |
1739 | ||
1740 | ||
1741 | ## ----------- ## | |
1742 | ## Core tests. ## | |
1743 | ## ----------- ## | |
1744 | ||
1745 | _ACEOF | |
1746 | ||
1747 | ||
1748 | # Keep a trace of the command line. | |
1749 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1750 | # Strip out --silent because we don't want to record it for future runs. | |
1751 | # Also quote any args containing shell meta-characters. | |
1752 | # Make two passes to allow for proper duplicate-argument suppression. | |
1753 | ac_configure_args= | |
1754 | ac_configure_args0= | |
1755 | ac_configure_args1= | |
ad6254c5 AK |
1756 | ac_must_keep_next=false |
1757 | for ac_pass in 1 2 | |
1758 | do | |
1759 | for ac_arg | |
1760 | do | |
1761 | case $ac_arg in | |
1762 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1763 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1764 | | -silent | --silent | --silen | --sile | --sil) | |
1765 | continue ;; | |
7a197a62 | 1766 | *\'*) |
ec6a6fbe | 1767 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1768 | esac |
1769 | case $ac_pass in | |
1770 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1771 | 2) | |
1772 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1773 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1774 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1775 | else |
8a2fc586 AK |
1776 | case $ac_arg in |
1777 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1778 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1779 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1780 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1781 | case "$ac_configure_args0 " in | |
1782 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1783 | esac | |
1784 | ;; | |
1785 | -* ) ac_must_keep_next=true ;; | |
1786 | esac | |
ad6254c5 | 1787 | fi |
7a197a62 | 1788 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1789 | ;; |
1790 | esac | |
1791 | done | |
1792 | done | |
1793 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1794 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1795 | ||
1796 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1797 | # config.log. We remove comments because anyway the quotes in there | |
1798 | # would cause problems or look ugly. | |
7a197a62 AK |
1799 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1800 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1801 | trap 'exit_status=$? |
1802 | # Save into config.log some information that might help in debugging. | |
1803 | { | |
1804 | echo | |
1805 | ||
1806 | cat <<\_ASBOX | |
1807 | ## ---------------- ## | |
1808 | ## Cache variables. ## | |
1809 | ## ---------------- ## | |
1810 | _ASBOX | |
1811 | echo | |
1812 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1813 | ( |
1814 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1815 | eval ac_val=\$$ac_var | |
1816 | case $ac_val in #( | |
1817 | *${as_nl}*) | |
1818 | case $ac_var in #( | |
ec6a6fbe AK |
1819 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1820 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1821 | esac |
1822 | case $ac_var in #( | |
1823 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1824 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1825 | *) $as_unset $ac_var ;; |
1826 | esac ;; | |
1827 | esac | |
1828 | done | |
ad6254c5 | 1829 | (set) 2>&1 | |
7a197a62 AK |
1830 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1831 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1832 | sed -n \ |
7a197a62 AK |
1833 | "s/'\''/'\''\\\\'\'''\''/g; |
1834 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1835 | ;; #( | |
ad6254c5 | 1836 | *) |
7a197a62 | 1837 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1838 | ;; |
7a197a62 AK |
1839 | esac | |
1840 | sort | |
1841 | ) | |
ad6254c5 AK |
1842 | echo |
1843 | ||
1844 | cat <<\_ASBOX | |
1845 | ## ----------------- ## | |
1846 | ## Output variables. ## | |
1847 | ## ----------------- ## | |
1848 | _ASBOX | |
1849 | echo | |
1850 | for ac_var in $ac_subst_vars | |
1851 | do | |
7a197a62 AK |
1852 | eval ac_val=\$$ac_var |
1853 | case $ac_val in | |
ec6a6fbe | 1854 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1855 | esac |
ec6a6fbe | 1856 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1857 | done | sort |
1858 | echo | |
1859 | ||
1860 | if test -n "$ac_subst_files"; then | |
1861 | cat <<\_ASBOX | |
7a197a62 AK |
1862 | ## ------------------- ## |
1863 | ## File substitutions. ## | |
1864 | ## ------------------- ## | |
ad6254c5 AK |
1865 | _ASBOX |
1866 | echo | |
1867 | for ac_var in $ac_subst_files | |
1868 | do | |
7a197a62 AK |
1869 | eval ac_val=\$$ac_var |
1870 | case $ac_val in | |
ec6a6fbe | 1871 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1872 | esac |
ec6a6fbe | 1873 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1874 | done | sort |
1875 | echo | |
1876 | fi | |
1877 | ||
1878 | if test -s confdefs.h; then | |
1879 | cat <<\_ASBOX | |
1880 | ## ----------- ## | |
1881 | ## confdefs.h. ## | |
1882 | ## ----------- ## | |
1883 | _ASBOX | |
1884 | echo | |
7a197a62 | 1885 | cat confdefs.h |
ad6254c5 AK |
1886 | echo |
1887 | fi | |
1888 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1889 | $as_echo "$as_me: caught signal $ac_signal" |
1890 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1891 | } >&5 |
7a197a62 AK |
1892 | rm -f core *.core core.conftest.* && |
1893 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1894 | exit $exit_status |
7a197a62 | 1895 | ' 0 |
ad6254c5 AK |
1896 | for ac_signal in 1 2 13 15; do |
1897 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1898 | done | |
1899 | ac_signal=0 | |
1900 | ||
1901 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1902 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1903 | |
1904 | # Predefined preprocessor variables. | |
1905 | ||
1906 | cat >>confdefs.h <<_ACEOF | |
1907 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1908 | _ACEOF | |
1909 | ||
1910 | ||
1911 | cat >>confdefs.h <<_ACEOF | |
1912 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1913 | _ACEOF | |
1914 | ||
1915 | ||
1916 | cat >>confdefs.h <<_ACEOF | |
1917 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1918 | _ACEOF | |
8106cdd5 | 1919 | |
ad6254c5 AK |
1920 | |
1921 | cat >>confdefs.h <<_ACEOF | |
1922 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1923 | _ACEOF | |
1924 | ||
1925 | ||
1926 | cat >>confdefs.h <<_ACEOF | |
1927 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1928 | _ACEOF | |
1929 | ||
1930 | ||
1931 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1932 | # Prefer an explicitly selected file to automatically selected ones. |
1933 | ac_site_file1=NONE | |
1934 | ac_site_file2=NONE | |
7a197a62 | 1935 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1936 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1937 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1938 | ac_site_file1=$prefix/share/config.site |
1939 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1940 | else |
ec6a6fbe AK |
1941 | ac_site_file1=$ac_default_prefix/share/config.site |
1942 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1943 | fi |
ec6a6fbe | 1944 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1945 | do |
ec6a6fbe | 1946 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1947 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1948 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1949 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1950 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1951 | . "$ac_site_file" |
1952 | fi | |
1953 | done | |
1954 | ||
1955 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1956 | # Some versions of bash will fail to source /dev/null (special |
1957 | # files actually), so we avoid doing that. | |
1958 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1959 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1960 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1961 | case $cache_file in |
7a197a62 AK |
1962 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1963 | *) . "./$cache_file";; | |
ad6254c5 AK |
1964 | esac |
1965 | fi | |
795ca3e5 | 1966 | else |
ec6a6fbe AK |
1967 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1968 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1969 | >$cache_file |
1970 | fi | |
1971 | ||
1972 | # Check that the precious variables saved in the cache have kept the same | |
1973 | # value. | |
1974 | ac_cache_corrupted=false | |
7a197a62 | 1975 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1976 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1977 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1978 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1979 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1980 | case $ac_old_set,$ac_new_set in |
1981 | set,) | |
ec6a6fbe AK |
1982 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1983 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1984 | ac_cache_corrupted=: ;; |
1985 | ,set) | |
ec6a6fbe AK |
1986 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1987 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1988 | ac_cache_corrupted=: ;; |
1989 | ,);; | |
1990 | *) | |
1991 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1992 | # differences in whitespace do not lead to failure. |
1993 | ac_old_val_w=`echo x $ac_old_val` | |
1994 | ac_new_val_w=`echo x $ac_new_val` | |
1995 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1996 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1997 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1998 | ac_cache_corrupted=: | |
1999 | else | |
2000 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2001 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2002 | eval $ac_var=\$ac_old_val | |
2003 | fi | |
2004 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2005 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2006 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2007 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2008 | fi;; |
2009 | esac | |
2010 | # Pass precious variables to config.status. | |
2011 | if test "$ac_new_set" = set; then | |
2012 | case $ac_new_val in | |
ec6a6fbe | 2013 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2014 | *) ac_arg=$ac_var=$ac_new_val ;; |
2015 | esac | |
2016 | case " $ac_configure_args " in | |
2017 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2018 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2019 | esac | |
2020 | fi | |
2021 | done | |
2022 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2023 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2024 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2025 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2026 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2027 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2028 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2029 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2030 | fi |
2031 | ||
ad6254c5 AK |
2032 | |
2033 | ||
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | ||
2044 | ||
2045 | ||
2046 | ||
2047 | ||
7a197a62 AK |
2048 | ac_ext=c |
2049 | ac_cpp='$CPP $CPPFLAGS' | |
2050 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2051 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2052 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2053 | |
795ca3e5 AK |
2054 | |
2055 | ||
7a197a62 | 2056 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2057 | |
2058 | ||
80992638 | 2059 | ################################################################################ |
795ca3e5 | 2060 | ac_aux_dir= |
7a197a62 AK |
2061 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2062 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2063 | ac_aux_dir=$ac_dir |
2064 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2065 | break | |
7a197a62 | 2066 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2067 | ac_aux_dir=$ac_dir |
2068 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2069 | break | |
7a197a62 | 2070 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2071 | ac_aux_dir=$ac_dir |
2072 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2073 | break | |
795ca3e5 AK |
2074 | fi |
2075 | done | |
2076 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2077 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2078 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2079 | { (exit 1); exit 1; }; } |
795ca3e5 | 2080 | fi |
7a197a62 AK |
2081 | |
2082 | # These three variables are undocumented and unsupported, | |
2083 | # and are intended to be withdrawn in a future Autoconf release. | |
2084 | # They can cause serious problems if a builder's source tree is in a directory | |
2085 | # whose full name contains unusual characters. | |
2086 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2087 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2088 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2089 | ||
8ce0cbda AK |
2090 | |
2091 | ||
ad6254c5 | 2092 | ################################################################################ |
8ce0cbda | 2093 | # Make sure we can run config.sub. |
7a197a62 | 2094 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2095 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2096 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2097 | { (exit 1); exit 1; }; } |
2098 | ||
ec6a6fbe AK |
2099 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2100 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2101 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2102 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2103 | else |
7a197a62 AK |
2104 | ac_build_alias=$build_alias |
2105 | test "x$ac_build_alias" = x && | |
2106 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2107 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2108 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2109 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2110 | { (exit 1); exit 1; }; } |
7a197a62 | 2111 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2112 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2113 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2114 | { (exit 1); exit 1; }; } |
2115 | ||
2116 | fi | |
ec6a6fbe AK |
2117 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2118 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2119 | case $ac_cv_build in |
2120 | *-*-*) ;; | |
ec6a6fbe AK |
2121 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2122 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2123 | { (exit 1); exit 1; }; };; |
2124 | esac | |
ad6254c5 | 2125 | build=$ac_cv_build |
7a197a62 AK |
2126 | ac_save_IFS=$IFS; IFS='-' |
2127 | set x $ac_cv_build | |
2128 | shift | |
2129 | build_cpu=$1 | |
2130 | build_vendor=$2 | |
2131 | shift; shift | |
2132 | # Remember, the first character of IFS is used to create $*, | |
2133 | # except with old shells: | |
2134 | build_os=$* | |
2135 | IFS=$ac_save_IFS | |
2136 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2137 | |
2138 | ||
ec6a6fbe AK |
2139 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2140 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2141 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2142 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2143 | else |
7a197a62 AK |
2144 | if test "x$host_alias" = x; then |
2145 | ac_cv_host=$ac_cv_build | |
2146 | else | |
2147 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2148 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2149 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2150 | { (exit 1); exit 1; }; } |
7a197a62 | 2151 | fi |
ad6254c5 AK |
2152 | |
2153 | fi | |
ec6a6fbe AK |
2154 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2155 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2156 | case $ac_cv_host in |
2157 | *-*-*) ;; | |
ec6a6fbe AK |
2158 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2159 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2160 | { (exit 1); exit 1; }; };; |
2161 | esac | |
ad6254c5 | 2162 | host=$ac_cv_host |
7a197a62 AK |
2163 | ac_save_IFS=$IFS; IFS='-' |
2164 | set x $ac_cv_host | |
2165 | shift | |
2166 | host_cpu=$1 | |
2167 | host_vendor=$2 | |
2168 | shift; shift | |
2169 | # Remember, the first character of IFS is used to create $*, | |
2170 | # except with old shells: | |
2171 | host_os=$* | |
2172 | IFS=$ac_save_IFS | |
2173 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2174 | |
2175 | ||
ec6a6fbe AK |
2176 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2177 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2178 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2179 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2180 | else |
7a197a62 AK |
2181 | if test "x$target_alias" = x; then |
2182 | ac_cv_target=$ac_cv_host | |
2183 | else | |
2184 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2185 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2186 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2187 | { (exit 1); exit 1; }; } |
7a197a62 | 2188 | fi |
8ce0cbda | 2189 | |
ad6254c5 | 2190 | fi |
ec6a6fbe AK |
2191 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2192 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2193 | case $ac_cv_target in |
2194 | *-*-*) ;; | |
ec6a6fbe AK |
2195 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2196 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2197 | { (exit 1); exit 1; }; };; |
2198 | esac | |
ad6254c5 | 2199 | target=$ac_cv_target |
7a197a62 AK |
2200 | ac_save_IFS=$IFS; IFS='-' |
2201 | set x $ac_cv_target | |
2202 | shift | |
2203 | target_cpu=$1 | |
2204 | target_vendor=$2 | |
2205 | shift; shift | |
2206 | # Remember, the first character of IFS is used to create $*, | |
2207 | # except with old shells: | |
2208 | target_os=$* | |
2209 | IFS=$ac_save_IFS | |
2210 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2211 | |
8ce0cbda | 2212 | |
ad6254c5 AK |
2213 | # The aliases save the names the user supplied, while $host etc. |
2214 | # will get canonicalized. | |
2215 | test -n "$target_alias" && | |
8ce0cbda AK |
2216 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2217 | NONENONEs,x,x, && | |
2218 | program_prefix=${target_alias}- | |
2219 | ||
8ce0cbda AK |
2220 | case "$host_os" in |
2221 | linux*) | |
7f54ef36 | 2222 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2223 | COPTIMISE_FLAG="-O2" |
2224 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2225 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2226 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2227 | LDDEPS="$LDDEPS .export.sym" | |
2228 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2229 | LIB_SUFFIX=so |
8ce0cbda AK |
2230 | DEVMAPPER=yes |
2231 | ODIRECT=yes | |
d0191583 | 2232 | DM_IOCTLS=yes |
8ce0cbda AK |
2233 | SELINUX=yes |
2234 | CLUSTER=internal | |
93bd259b | 2235 | FSADM=yes |
d0191583 | 2236 | ;; |
8ce0cbda AK |
2237 | darwin*) |
2238 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2239 | COPTIMISE_FLAG="-O2" | |
2240 | CLDFLAGS="$CLDFLAGS" | |
2241 | CLDWHOLEARCHIVE="-all_load" | |
2242 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2243 | LIB_SUFFIX=dylib |
a653923f | 2244 | DEVMAPPER=yes |
8ce0cbda | 2245 | ODIRECT=no |
d0191583 | 2246 | DM_IOCTLS=no |
8ce0cbda AK |
2247 | SELINUX=no |
2248 | CLUSTER=none | |
d0191583 JM |
2249 | FSADM=no |
2250 | ;; | |
8ce0cbda AK |
2251 | esac |
2252 | ||
80992638 | 2253 | ################################################################################ |
ec6a6fbe AK |
2254 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2255 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2256 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2257 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2258 | else |
2259 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2260 | for ac_i in 1 2 3 4 5 6 7; do | |
2261 | ac_script="$ac_script$as_nl$ac_script" | |
2262 | done | |
ec6a6fbe | 2263 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2264 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2265 | if test -z "$SED"; then |
5951ef33 | 2266 | ac_path_SED_found=false |
ec6a6fbe AK |
2267 | # Loop through the user's path and test for each of PROGNAME-LIST |
2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2269 | for as_dir in $PATH |
2270 | do | |
2271 | IFS=$as_save_IFS | |
2272 | test -z "$as_dir" && as_dir=. | |
2273 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2274 | for ac_exec_ext in '' $ac_executable_extensions; do |
2275 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2276 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2277 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2278 | # Check for GNU $ac_path_SED |
2279 | case `"$ac_path_SED" --version 2>&1` in | |
2280 | *GNU*) | |
2281 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2282 | *) | |
2283 | ac_count=0 | |
ec6a6fbe | 2284 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2285 | while : |
2286 | do | |
2287 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2288 | mv "conftest.tmp" "conftest.in" | |
2289 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2290 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2291 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2292 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2293 | ac_count=`expr $ac_count + 1` | |
2294 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2295 | # Best one so far, save it but keep looking for a better one | |
2296 | ac_cv_path_SED="$ac_path_SED" | |
2297 | ac_path_SED_max=$ac_count | |
2298 | fi | |
2299 | # 10*(2^10) chars as input seems more than enough | |
2300 | test $ac_count -gt 10 && break | |
2301 | done | |
2302 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2303 | esac | |
2304 | ||
ec6a6fbe AK |
2305 | $ac_path_SED_found && break 3 |
2306 | done | |
5951ef33 AK |
2307 | done |
2308 | done | |
5951ef33 | 2309 | IFS=$as_save_IFS |
ec6a6fbe AK |
2310 | if test -z "$ac_cv_path_SED"; then |
2311 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2312 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2313 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2314 | fi |
5951ef33 AK |
2315 | else |
2316 | ac_cv_path_SED=$SED | |
2317 | fi | |
2318 | ||
2319 | fi | |
ec6a6fbe AK |
2320 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2321 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2322 | SED="$ac_cv_path_SED" |
2323 | rm -f conftest.sed | |
2324 | ||
ad6254c5 | 2325 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2326 | do |
ad6254c5 | 2327 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2328 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2329 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2330 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2331 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2332 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2333 | else |
2334 | if test -n "$AWK"; then | |
2335 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2336 | else | |
ad6254c5 AK |
2337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2338 | for as_dir in $PATH | |
2339 | do | |
2340 | IFS=$as_save_IFS | |
2341 | test -z "$as_dir" && as_dir=. | |
2342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2344 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2345 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2346 | break 2 |
2347 | fi | |
2348 | done | |
2349 | done | |
7a197a62 | 2350 | IFS=$as_save_IFS |
ad6254c5 | 2351 | |
795ca3e5 AK |
2352 | fi |
2353 | fi | |
ad6254c5 | 2354 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2355 | if test -n "$AWK"; then |
ec6a6fbe AK |
2356 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2357 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2358 | else |
ec6a6fbe AK |
2359 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2360 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2361 | fi |
2362 | ||
7a197a62 | 2363 | |
ad6254c5 AK |
2364 | test -n "$AWK" && break |
2365 | done | |
2366 | ||
2367 | ac_ext=c | |
2368 | ac_cpp='$CPP $CPPFLAGS' | |
2369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2372 | if test -n "$ac_tool_prefix"; then | |
2373 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2374 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2375 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2376 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2377 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2378 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2379 | else |
2380 | if test -n "$CC"; then | |
2381 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2382 | else | |
2383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2384 | for as_dir in $PATH | |
2385 | do | |
2386 | IFS=$as_save_IFS | |
2387 | test -z "$as_dir" && as_dir=. | |
2388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2390 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2391 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2392 | break 2 |
2393 | fi | |
2394 | done | |
8106cdd5 | 2395 | done |
7a197a62 | 2396 | IFS=$as_save_IFS |
8106cdd5 | 2397 | |
ad6254c5 AK |
2398 | fi |
2399 | fi | |
2400 | CC=$ac_cv_prog_CC | |
2401 | if test -n "$CC"; then | |
ec6a6fbe AK |
2402 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2403 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2404 | else |
ec6a6fbe AK |
2405 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2406 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2407 | fi |
2408 | ||
7a197a62 | 2409 | |
ad6254c5 AK |
2410 | fi |
2411 | if test -z "$ac_cv_prog_CC"; then | |
2412 | ac_ct_CC=$CC | |
2413 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2414 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2415 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2416 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2417 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2418 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2419 | else |
2420 | if test -n "$ac_ct_CC"; then | |
2421 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2422 | else | |
2423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2424 | for as_dir in $PATH | |
2425 | do | |
2426 | IFS=$as_save_IFS | |
2427 | test -z "$as_dir" && as_dir=. | |
2428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2430 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2431 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2432 | break 2 |
2433 | fi | |
2434 | done | |
2435 | done | |
7a197a62 | 2436 | IFS=$as_save_IFS |
ad6254c5 AK |
2437 | |
2438 | fi | |
2439 | fi | |
2440 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2441 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2442 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2443 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2444 | else |
ec6a6fbe AK |
2445 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2446 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2447 | fi |
2448 | ||
7a197a62 AK |
2449 | if test "x$ac_ct_CC" = x; then |
2450 | CC="" | |
2451 | else | |
2452 | case $cross_compiling:$ac_tool_warned in | |
2453 | yes:) | |
ec6a6fbe AK |
2454 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2455 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2456 | ac_tool_warned=yes ;; |
2457 | esac | |
2458 | CC=$ac_ct_CC | |
2459 | fi | |
ad6254c5 AK |
2460 | else |
2461 | CC="$ac_cv_prog_CC" | |
2462 | fi | |
2463 | ||
2464 | if test -z "$CC"; then | |
7a197a62 AK |
2465 | if test -n "$ac_tool_prefix"; then |
2466 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2467 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2468 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2469 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2470 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2471 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2472 | else |
2473 | if test -n "$CC"; then | |
2474 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2475 | else | |
ad6254c5 AK |
2476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2477 | for as_dir in $PATH | |
2478 | do | |
2479 | IFS=$as_save_IFS | |
2480 | test -z "$as_dir" && as_dir=. | |
2481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2483 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2484 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2485 | break 2 |
2486 | fi | |
2487 | done | |
2488 | done | |
7a197a62 | 2489 | IFS=$as_save_IFS |
ad6254c5 | 2490 | |
8106cdd5 AK |
2491 | fi |
2492 | fi | |
ad6254c5 | 2493 | CC=$ac_cv_prog_CC |
8106cdd5 | 2494 | if test -n "$CC"; then |
ec6a6fbe AK |
2495 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2496 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2497 | else |
ec6a6fbe AK |
2498 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2499 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2500 | fi |
2501 | ||
8106cdd5 | 2502 | |
7a197a62 | 2503 | fi |
ad6254c5 | 2504 | fi |
795ca3e5 AK |
2505 | if test -z "$CC"; then |
2506 | # Extract the first word of "cc", so it can be a program name with args. | |
2507 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2508 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2509 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2510 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2511 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2512 | else |
2513 | if test -n "$CC"; then | |
2514 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2515 | else | |
795ca3e5 | 2516 | ac_prog_rejected=no |
ad6254c5 AK |
2517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2518 | for as_dir in $PATH | |
2519 | do | |
2520 | IFS=$as_save_IFS | |
2521 | test -z "$as_dir" && as_dir=. | |
2522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2524 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2525 | ac_prog_rejected=yes | |
2526 | continue | |
2527 | fi | |
2528 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2529 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2530 | break 2 |
2531 | fi | |
2532 | done | |
2533 | done | |
7a197a62 | 2534 | IFS=$as_save_IFS |
ad6254c5 | 2535 | |
795ca3e5 AK |
2536 | if test $ac_prog_rejected = yes; then |
2537 | # We found a bogon in the path, so make sure we never use it. | |
2538 | set dummy $ac_cv_prog_CC | |
2539 | shift | |
ad6254c5 | 2540 | if test $# != 0; then |
795ca3e5 AK |
2541 | # We chose a different compiler from the bogus one. |
2542 | # However, it has the same basename, so the bogon will be chosen | |
2543 | # first if we set CC to just the basename; use the full file name. | |
2544 | shift | |
ad6254c5 | 2545 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2546 | fi |
2547 | fi | |
2548 | fi | |
2549 | fi | |
ad6254c5 | 2550 | CC=$ac_cv_prog_CC |
795ca3e5 | 2551 | if test -n "$CC"; then |
ec6a6fbe AK |
2552 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2553 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2554 | else |
ec6a6fbe AK |
2555 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2556 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2557 | fi |
2558 | ||
7a197a62 | 2559 | |
ad6254c5 AK |
2560 | fi |
2561 | if test -z "$CC"; then | |
2562 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2563 | for ac_prog in cl.exe |
ad6254c5 AK |
2564 | do |
2565 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2566 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2567 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2568 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2569 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2570 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2571 | else |
2572 | if test -n "$CC"; then | |
2573 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2574 | else | |
ad6254c5 AK |
2575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2576 | for as_dir in $PATH | |
2577 | do | |
2578 | IFS=$as_save_IFS | |
2579 | test -z "$as_dir" && as_dir=. | |
2580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2582 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2583 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2584 | break 2 |
2585 | fi | |
2586 | done | |
2587 | done | |
7a197a62 | 2588 | IFS=$as_save_IFS |
ad6254c5 | 2589 | |
795ca3e5 AK |
2590 | fi |
2591 | fi | |
ad6254c5 | 2592 | CC=$ac_cv_prog_CC |
795ca3e5 | 2593 | if test -n "$CC"; then |
ec6a6fbe AK |
2594 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2595 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2596 | else |
ec6a6fbe AK |
2597 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2598 | $as_echo "no" >&6; } | |
795ca3e5 | 2599 | fi |
ad6254c5 | 2600 | |
7a197a62 | 2601 | |
ad6254c5 AK |
2602 | test -n "$CC" && break |
2603 | done | |
2604 | fi | |
2605 | if test -z "$CC"; then | |
2606 | ac_ct_CC=$CC | |
7a197a62 | 2607 | for ac_prog in cl.exe |
ad6254c5 AK |
2608 | do |
2609 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2610 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2611 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2612 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2613 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2614 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2615 | else |
2616 | if test -n "$ac_ct_CC"; then | |
2617 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2618 | else | |
2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2620 | for as_dir in $PATH | |
2621 | do | |
2622 | IFS=$as_save_IFS | |
2623 | test -z "$as_dir" && as_dir=. | |
2624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2626 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2627 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2628 | break 2 |
795ca3e5 | 2629 | fi |
ad6254c5 AK |
2630 | done |
2631 | done | |
7a197a62 | 2632 | IFS=$as_save_IFS |
ad6254c5 AK |
2633 | |
2634 | fi | |
2635 | fi | |
2636 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2637 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2638 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2639 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2640 | else |
ec6a6fbe AK |
2641 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2642 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2643 | fi |
2644 | ||
7a197a62 | 2645 | |
ad6254c5 AK |
2646 | test -n "$ac_ct_CC" && break |
2647 | done | |
795ca3e5 | 2648 | |
7a197a62 AK |
2649 | if test "x$ac_ct_CC" = x; then |
2650 | CC="" | |
2651 | else | |
2652 | case $cross_compiling:$ac_tool_warned in | |
2653 | yes:) | |
ec6a6fbe AK |
2654 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2655 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2656 | ac_tool_warned=yes ;; |
2657 | esac | |
2658 | CC=$ac_ct_CC | |
2659 | fi | |
ad6254c5 AK |
2660 | fi |
2661 | ||
2662 | fi | |
2663 | ||
2664 | ||
ec6a6fbe AK |
2665 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2667 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2668 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2669 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2670 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2671 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2672 | |
2673 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2674 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2675 | set X $ac_compile | |
2676 | ac_compiler=$2 | |
7a197a62 AK |
2677 | { (ac_try="$ac_compiler --version >&5" |
2678 | case "(($ac_try" in | |
2679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2680 | *) ac_try_echo=$ac_try;; | |
2681 | esac | |
ec6a6fbe AK |
2682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2683 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2684 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2685 | ac_status=$? |
ec6a6fbe | 2686 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2687 | (exit $ac_status); } |
7a197a62 AK |
2688 | { (ac_try="$ac_compiler -v >&5" |
2689 | case "(($ac_try" in | |
2690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2691 | *) ac_try_echo=$ac_try;; | |
2692 | esac | |
ec6a6fbe AK |
2693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2694 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2695 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2696 | ac_status=$? |
ec6a6fbe | 2697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2698 | (exit $ac_status); } |
7a197a62 AK |
2699 | { (ac_try="$ac_compiler -V >&5" |
2700 | case "(($ac_try" in | |
2701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2702 | *) ac_try_echo=$ac_try;; | |
2703 | esac | |
ec6a6fbe AK |
2704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2705 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2706 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2707 | ac_status=$? |
ec6a6fbe | 2708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2709 | (exit $ac_status); } |
2710 | ||
2711 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2712 | /* confdefs.h. */ |
2713 | _ACEOF | |
2714 | cat confdefs.h >>conftest.$ac_ext | |
2715 | cat >>conftest.$ac_ext <<_ACEOF | |
2716 | /* end confdefs.h. */ | |
2717 | ||
2718 | int | |
2719 | main () | |
2720 | { | |
2721 | ||
2722 | ; | |
2723 | return 0; | |
2724 | } | |
2725 | _ACEOF | |
2726 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2727 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2728 | # Try to create an executable without -o first, disregard a.out. |
2729 | # It will help us diagnose broken compilers, and finding out an intuition | |
2730 | # of exeext. | |
ec6a6fbe AK |
2731 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2732 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2733 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2734 | ||
2735 | # The possible output files: | |
2736 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2737 | ||
7a197a62 AK |
2738 | ac_rmfiles= |
2739 | for ac_file in $ac_files | |
2740 | do | |
2741 | case $ac_file in | |
ec6a6fbe | 2742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2743 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2744 | esac | |
2745 | done | |
2746 | rm -f $ac_rmfiles | |
2747 | ||
2748 | if { (ac_try="$ac_link_default" | |
2749 | case "(($ac_try" in | |
2750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2751 | *) ac_try_echo=$ac_try;; | |
2752 | esac | |
ec6a6fbe AK |
2753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2754 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2755 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2756 | ac_status=$? |
ec6a6fbe | 2757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2758 | (exit $ac_status); }; then |
7a197a62 AK |
2759 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2760 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2761 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2762 | # so that the user can short-circuit this test for compilers unknown to | |
2763 | # Autoconf. | |
25fbec5b | 2764 | for ac_file in $ac_files '' |
ad6254c5 AK |
2765 | do |
2766 | test -f "$ac_file" || continue | |
2767 | case $ac_file in | |
ec6a6fbe | 2768 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2769 | ;; |
ad6254c5 | 2770 | [ab].out ) |
8a2fc586 AK |
2771 | # We found the default executable, but exeext='' is most |
2772 | # certainly right. | |
2773 | break;; | |
ad6254c5 | 2774 | *.* ) |
7a197a62 AK |
2775 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2776 | then :; else | |
2777 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2778 | fi | |
2779 | # We set ac_cv_exeext here because the later test for it is not | |
2780 | # safe: cross compilers may not add the suffix if given an `-o' | |
2781 | # argument, so we may need to know it at that point already. | |
2782 | # Even if this section looks crufty: it has the advantage of | |
2783 | # actually working. | |
8a2fc586 | 2784 | break;; |
ad6254c5 | 2785 | * ) |
8a2fc586 | 2786 | break;; |
ad6254c5 AK |
2787 | esac |
2788 | done | |
7a197a62 AK |
2789 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2790 | ||
ad6254c5 | 2791 | else |
25fbec5b AK |
2792 | ac_file='' |
2793 | fi | |
2794 | ||
ec6a6fbe AK |
2795 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2796 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2797 | if test -z "$ac_file"; then |
ec6a6fbe | 2798 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2799 | sed 's/^/| /' conftest.$ac_ext >&5 |
2800 | ||
ec6a6fbe AK |
2801 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2802 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2803 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2804 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2805 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2806 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2807 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2808 | fi |
2809 | ||
2810 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2811 | |
7a197a62 | 2812 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2813 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2814 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2815 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2816 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2817 | # If not cross compiling, check that we can run a simple program. | |
2818 | if test "$cross_compiling" != yes; then | |
2819 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2820 | { (case "(($ac_try" in |
2821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2822 | *) ac_try_echo=$ac_try;; | |
2823 | esac | |
ec6a6fbe AK |
2824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2825 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2826 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2827 | ac_status=$? |
ec6a6fbe | 2828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2829 | (exit $ac_status); }; }; then |
2830 | cross_compiling=no | |
795ca3e5 | 2831 | else |
ad6254c5 AK |
2832 | if test "$cross_compiling" = maybe; then |
2833 | cross_compiling=yes | |
2834 | else | |
ec6a6fbe AK |
2835 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2836 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2837 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2838 | If you meant to cross compile, use \`--host'. |
2839 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2840 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2841 | If you meant to cross compile, use \`--host'. |
2842 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2843 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2844 | fi |
795ca3e5 | 2845 | fi |
80992638 | 2846 | fi |
ec6a6fbe AK |
2847 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2848 | $as_echo "yes" >&6; } | |
ad6254c5 | 2849 | |
ec6a6fbe | 2850 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2851 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2852 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2853 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2854 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2855 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2856 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2857 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2858 | |
ec6a6fbe AK |
2859 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2860 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2861 | if { (ac_try="$ac_link" |
2862 | case "(($ac_try" in | |
2863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2864 | *) ac_try_echo=$ac_try;; | |
2865 | esac | |
ec6a6fbe AK |
2866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2867 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2868 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2869 | ac_status=$? |
ec6a6fbe | 2870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2871 | (exit $ac_status); }; then |
2872 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2873 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2874 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2875 | # `rm'. | |
2876 | for ac_file in conftest.exe conftest conftest.*; do | |
2877 | test -f "$ac_file" || continue | |
2878 | case $ac_file in | |
ec6a6fbe | 2879 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2880 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2881 | break;; |
ad6254c5 AK |
2882 | * ) break;; |
2883 | esac | |
2884 | done | |
80992638 | 2885 | else |
ec6a6fbe AK |
2886 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2887 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2888 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2889 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2890 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2891 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2892 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2893 | fi |
2894 | ||
2895 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2896 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2897 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2898 | |
2899 | rm -f conftest.$ac_ext | |
2900 | EXEEXT=$ac_cv_exeext | |
2901 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2902 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2903 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2904 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2905 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2906 | else |
ad6254c5 | 2907 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2908 | /* confdefs.h. */ |
2909 | _ACEOF | |
2910 | cat confdefs.h >>conftest.$ac_ext | |
2911 | cat >>conftest.$ac_ext <<_ACEOF | |
2912 | /* end confdefs.h. */ | |
2913 | ||
2914 | int | |
2915 | main () | |
2916 | { | |
2917 | ||
2918 | ; | |
2919 | return 0; | |
2920 | } | |
2921 | _ACEOF | |
2922 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2923 | if { (ac_try="$ac_compile" |
2924 | case "(($ac_try" in | |
2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2926 | *) ac_try_echo=$ac_try;; | |
2927 | esac | |
ec6a6fbe AK |
2928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2929 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2930 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2931 | ac_status=$? |
ec6a6fbe | 2932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2933 | (exit $ac_status); }; then |
7a197a62 AK |
2934 | for ac_file in conftest.o conftest.obj conftest.*; do |
2935 | test -f "$ac_file" || continue; | |
ad6254c5 | 2936 | case $ac_file in |
ec6a6fbe | 2937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2938 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2939 | break;; | |
2940 | esac | |
2941 | done | |
2942 | else | |
ec6a6fbe | 2943 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2944 | sed 's/^/| /' conftest.$ac_ext >&5 |
2945 | ||
ec6a6fbe AK |
2946 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2947 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2948 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2949 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2950 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2951 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2952 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2953 | fi |
2954 | ||
2955 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2956 | fi | |
ec6a6fbe AK |
2957 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2958 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2959 | OBJEXT=$ac_cv_objext |
2960 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2961 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2962 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2963 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2964 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2965 | else |
2966 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2967 | /* confdefs.h. */ |
2968 | _ACEOF | |
2969 | cat confdefs.h >>conftest.$ac_ext | |
2970 | cat >>conftest.$ac_ext <<_ACEOF | |
2971 | /* end confdefs.h. */ | |
2972 | ||
2973 | int | |
2974 | main () | |
2975 | { | |
2976 | #ifndef __GNUC__ | |
2977 | choke me | |
2978 | #endif | |
80992638 | 2979 | |
ad6254c5 AK |
2980 | ; |
2981 | return 0; | |
2982 | } | |
2983 | _ACEOF | |
2984 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2985 | if { (ac_try="$ac_compile" |
2986 | case "(($ac_try" in | |
2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2988 | *) ac_try_echo=$ac_try;; | |
2989 | esac | |
ec6a6fbe AK |
2990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2991 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2992 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2993 | ac_status=$? |
8a2fc586 AK |
2994 | grep -v '^ *+' conftest.er1 >conftest.err |
2995 | rm -f conftest.er1 | |
2996 | cat conftest.err >&5 | |
ec6a6fbe | 2997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2998 | (exit $ac_status); } && { |
2999 | test -z "$ac_c_werror_flag" || | |
3000 | test ! -s conftest.err | |
3001 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3002 | ac_compiler_gnu=yes |
80992638 | 3003 | else |
ec6a6fbe | 3004 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3005 | sed 's/^/| /' conftest.$ac_ext >&5 |
3006 | ||
7a197a62 | 3007 | ac_compiler_gnu=no |
8106cdd5 | 3008 | fi |
7a197a62 AK |
3009 | |
3010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3011 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3012 | |
ad6254c5 | 3013 | fi |
ec6a6fbe AK |
3014 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3015 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3016 | if test $ac_compiler_gnu = yes; then | |
3017 | GCC=yes | |
3018 | else | |
3019 | GCC= | |
3020 | fi | |
ad6254c5 AK |
3021 | ac_test_CFLAGS=${CFLAGS+set} |
3022 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3023 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3024 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3025 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3026 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3027 | else |
7a197a62 AK |
3028 | ac_save_c_werror_flag=$ac_c_werror_flag |
3029 | ac_c_werror_flag=yes | |
3030 | ac_cv_prog_cc_g=no | |
3031 | CFLAGS="-g" | |
3032 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3033 | /* confdefs.h. */ |
3034 | _ACEOF | |
3035 | cat confdefs.h >>conftest.$ac_ext | |
3036 | cat >>conftest.$ac_ext <<_ACEOF | |
3037 | /* end confdefs.h. */ | |
3038 | ||
3039 | int | |
3040 | main () | |
3041 | { | |
3042 | ||
3043 | ; | |
3044 | return 0; | |
3045 | } | |
3046 | _ACEOF | |
3047 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3048 | if { (ac_try="$ac_compile" |
3049 | case "(($ac_try" in | |
3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3051 | *) ac_try_echo=$ac_try;; | |
3052 | esac | |
ec6a6fbe AK |
3053 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3054 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3055 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3056 | ac_status=$? |
8a2fc586 AK |
3057 | grep -v '^ *+' conftest.er1 >conftest.err |
3058 | rm -f conftest.er1 | |
3059 | cat conftest.err >&5 | |
ec6a6fbe | 3060 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3061 | (exit $ac_status); } && { |
3062 | test -z "$ac_c_werror_flag" || | |
3063 | test ! -s conftest.err | |
3064 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3065 | ac_cv_prog_cc_g=yes |
3066 | else | |
ec6a6fbe | 3067 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3068 | sed 's/^/| /' conftest.$ac_ext >&5 |
3069 | ||
3070 | CFLAGS="" | |
3071 | cat >conftest.$ac_ext <<_ACEOF | |
3072 | /* confdefs.h. */ | |
3073 | _ACEOF | |
3074 | cat confdefs.h >>conftest.$ac_ext | |
3075 | cat >>conftest.$ac_ext <<_ACEOF | |
3076 | /* end confdefs.h. */ | |
3077 | ||
3078 | int | |
3079 | main () | |
3080 | { | |
3081 | ||
3082 | ; | |
3083 | return 0; | |
3084 | } | |
3085 | _ACEOF | |
3086 | rm -f conftest.$ac_objext | |
3087 | if { (ac_try="$ac_compile" | |
3088 | case "(($ac_try" in | |
3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3090 | *) ac_try_echo=$ac_try;; | |
3091 | esac | |
ec6a6fbe AK |
3092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3093 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3094 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3095 | ac_status=$? |
7a197a62 AK |
3096 | grep -v '^ *+' conftest.er1 >conftest.err |
3097 | rm -f conftest.er1 | |
3098 | cat conftest.err >&5 | |
ec6a6fbe | 3099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3100 | (exit $ac_status); } && { |
3101 | test -z "$ac_c_werror_flag" || | |
3102 | test ! -s conftest.err | |
3103 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3104 | : |
3105 | else | |
ec6a6fbe | 3106 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
3108 | ||
3109 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3110 | CFLAGS="-g" | |
3111 | cat >conftest.$ac_ext <<_ACEOF | |
3112 | /* confdefs.h. */ | |
3113 | _ACEOF | |
3114 | cat confdefs.h >>conftest.$ac_ext | |
3115 | cat >>conftest.$ac_ext <<_ACEOF | |
3116 | /* end confdefs.h. */ | |
3117 | ||
3118 | int | |
3119 | main () | |
3120 | { | |
3121 | ||
3122 | ; | |
3123 | return 0; | |
3124 | } | |
3125 | _ACEOF | |
3126 | rm -f conftest.$ac_objext | |
3127 | if { (ac_try="$ac_compile" | |
3128 | case "(($ac_try" in | |
3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3130 | *) ac_try_echo=$ac_try;; | |
3131 | esac | |
ec6a6fbe AK |
3132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3133 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3134 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3135 | ac_status=$? |
7a197a62 AK |
3136 | grep -v '^ *+' conftest.er1 >conftest.err |
3137 | rm -f conftest.er1 | |
3138 | cat conftest.err >&5 | |
ec6a6fbe | 3139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3140 | (exit $ac_status); } && { |
3141 | test -z "$ac_c_werror_flag" || | |
3142 | test ! -s conftest.err | |
3143 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3144 | ac_cv_prog_cc_g=yes |
3145 | else | |
ec6a6fbe | 3146 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3147 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3148 | |
7a197a62 AK |
3149 | |
3150 | fi | |
3151 | ||
3152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3153 | fi | |
3154 | ||
3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3156 | fi |
7a197a62 AK |
3157 | |
3158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3159 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3160 | fi |
ec6a6fbe AK |
3161 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3162 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3163 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3164 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3165 | elif test $ac_cv_prog_cc_g = yes; then |
3166 | if test "$GCC" = yes; then | |
3167 | CFLAGS="-g -O2" | |
3168 | else | |
3169 | CFLAGS="-g" | |
3170 | fi | |
3171 | else | |
3172 | if test "$GCC" = yes; then | |
3173 | CFLAGS="-O2" | |
3174 | else | |
3175 | CFLAGS= | |
3176 | fi | |
3177 | fi | |
ec6a6fbe AK |
3178 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3179 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3180 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3181 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3182 | else |
7a197a62 | 3183 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3184 | ac_save_CC=$CC |
3185 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3186 | /* confdefs.h. */ |
3187 | _ACEOF | |
3188 | cat confdefs.h >>conftest.$ac_ext | |
3189 | cat >>conftest.$ac_ext <<_ACEOF | |
3190 | /* end confdefs.h. */ | |
3191 | #include <stdarg.h> | |
3192 | #include <stdio.h> | |
3193 | #include <sys/types.h> | |
3194 | #include <sys/stat.h> | |
3195 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3196 | struct buf { int x; }; | |
3197 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3198 | static char *e (p, i) | |
3199 | char **p; | |
3200 | int i; | |
3201 | { | |
3202 | return p[i]; | |
3203 | } | |
3204 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3205 | { | |
3206 | char *s; | |
3207 | va_list v; | |
3208 | va_start (v,p); | |
3209 | s = g (p, va_arg (v,int)); | |
3210 | va_end (v); | |
3211 | return s; | |
3212 | } | |
8a2fc586 AK |
3213 | |
3214 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3215 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3216 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3217 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3218 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3219 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3220 | that's true only with -std. */ |
8a2fc586 AK |
3221 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3222 | ||
7a197a62 AK |
3223 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3224 | inside strings and character constants. */ | |
3225 | #define FOO(x) 'x' | |
3226 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3227 | ||
ad6254c5 AK |
3228 | int test (int i, double x); |
3229 | struct s1 {int (*f) (int a);}; | |
3230 | struct s2 {int (*f) (double a);}; | |
3231 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3232 | int argc; | |
3233 | char **argv; | |
3234 | int | |
3235 | main () | |
3236 | { | |
3237 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3238 | ; | |
3239 | return 0; | |
3240 | } | |
3241 | _ACEOF | |
7a197a62 AK |
3242 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3243 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3244 | do |
3245 | CC="$ac_save_CC $ac_arg" | |
3246 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3247 | if { (ac_try="$ac_compile" |
3248 | case "(($ac_try" in | |
3249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3250 | *) ac_try_echo=$ac_try;; | |
3251 | esac | |
ec6a6fbe AK |
3252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3253 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3254 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3255 | ac_status=$? |
8a2fc586 AK |
3256 | grep -v '^ *+' conftest.er1 >conftest.err |
3257 | rm -f conftest.er1 | |
3258 | cat conftest.err >&5 | |
ec6a6fbe | 3259 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3260 | (exit $ac_status); } && { |
3261 | test -z "$ac_c_werror_flag" || | |
3262 | test ! -s conftest.err | |
3263 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3264 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3265 | else |
ec6a6fbe | 3266 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3267 | sed 's/^/| /' conftest.$ac_ext >&5 |
3268 | ||
7a197a62 | 3269 | |
ad6254c5 | 3270 | fi |
7a197a62 AK |
3271 | |
3272 | rm -f core conftest.err conftest.$ac_objext | |
3273 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3274 | done |
7a197a62 | 3275 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3276 | CC=$ac_save_CC |
3277 | ||
3278 | fi | |
7a197a62 AK |
3279 | # AC_CACHE_VAL |
3280 | case "x$ac_cv_prog_cc_c89" in | |
3281 | x) | |
ec6a6fbe AK |
3282 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3283 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3284 | xno) |
ec6a6fbe AK |
3285 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3286 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3287 | *) |
7a197a62 | 3288 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3289 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3290 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3291 | esac |
3292 | ||
ad6254c5 | 3293 | |
ad6254c5 AK |
3294 | ac_ext=c |
3295 | ac_cpp='$CPP $CPPFLAGS' | |
3296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3299 | |
d0191583 JM |
3300 | |
3301 | ||
3302 | ac_ext=c | |
3303 | ac_cpp='$CPP $CPPFLAGS' | |
3304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3307 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3308 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3309 | # On Suns, sometimes $CPP names a directory. |
3310 | if test -n "$CPP" && test -d "$CPP"; then | |
3311 | CPP= | |
3312 | fi | |
3313 | if test -z "$CPP"; then | |
3314 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3315 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3316 | else |
d0191583 JM |
3317 | # Double quotes because CPP needs to be expanded |
3318 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3319 | do | |
3320 | ac_preproc_ok=false | |
3321 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3322 | do |
d0191583 JM |
3323 | # Use a header file that comes with gcc, so configuring glibc |
3324 | # with a fresh cross-compiler works. | |
3325 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3326 | # <limits.h> exists even on freestanding compilers. | |
3327 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3328 | # not just through cpp. "Syntax error" is here to catch this case. | |
3329 | cat >conftest.$ac_ext <<_ACEOF | |
3330 | /* confdefs.h. */ | |
3331 | _ACEOF | |
3332 | cat confdefs.h >>conftest.$ac_ext | |
3333 | cat >>conftest.$ac_ext <<_ACEOF | |
3334 | /* end confdefs.h. */ | |
3335 | #ifdef __STDC__ | |
3336 | # include <limits.h> | |
3337 | #else | |
3338 | # include <assert.h> | |
3339 | #endif | |
3340 | Syntax error | |
3341 | _ACEOF | |
3342 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3343 | case "(($ac_try" in | |
3344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3345 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3346 | esac |
ec6a6fbe AK |
3347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3348 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3349 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3350 | ac_status=$? | |
3351 | grep -v '^ *+' conftest.er1 >conftest.err | |
3352 | rm -f conftest.er1 | |
3353 | cat conftest.err >&5 | |
ec6a6fbe | 3354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3355 | (exit $ac_status); } >/dev/null && { |
3356 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3357 | test ! -s conftest.err | |
3358 | }; then | |
3359 | : | |
3360 | else | |
ec6a6fbe | 3361 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3362 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3363 | |
d0191583 JM |
3364 | # Broken: fails on valid input. |
3365 | continue | |
795ca3e5 | 3366 | fi |
795ca3e5 | 3367 | |
d0191583 | 3368 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3369 | |
d0191583 JM |
3370 | # OK, works on sane cases. Now check whether nonexistent headers |
3371 | # can be detected and how. | |
3372 | cat >conftest.$ac_ext <<_ACEOF | |
3373 | /* confdefs.h. */ | |
3374 | _ACEOF | |
3375 | cat confdefs.h >>conftest.$ac_ext | |
3376 | cat >>conftest.$ac_ext <<_ACEOF | |
3377 | /* end confdefs.h. */ | |
3378 | #include <ac_nonexistent.h> | |
3379 | _ACEOF | |
3380 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3381 | case "(($ac_try" in | |
3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3383 | *) ac_try_echo=$ac_try;; | |
3384 | esac | |
ec6a6fbe AK |
3385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3386 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3387 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3388 | ac_status=$? | |
3389 | grep -v '^ *+' conftest.er1 >conftest.err | |
3390 | rm -f conftest.er1 | |
3391 | cat conftest.err >&5 | |
ec6a6fbe | 3392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3393 | (exit $ac_status); } >/dev/null && { |
3394 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3395 | test ! -s conftest.err | |
3396 | }; then | |
3397 | # Broken: success on invalid input. | |
3398 | continue | |
3399 | else | |
ec6a6fbe | 3400 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3401 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3402 | |
d0191583 JM |
3403 | # Passes both tests. |
3404 | ac_preproc_ok=: | |
3405 | break | |
3406 | fi | |
795ca3e5 | 3407 | |
d0191583 JM |
3408 | rm -f conftest.err conftest.$ac_ext |
3409 | ||
3410 | done | |
3411 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3412 | rm -f conftest.err conftest.$ac_ext | |
3413 | if $ac_preproc_ok; then | |
3414 | break | |
795ca3e5 AK |
3415 | fi |
3416 | ||
d0191583 JM |
3417 | done |
3418 | ac_cv_prog_CPP=$CPP | |
3419 | ||
3420 | fi | |
3421 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3422 | else |
d0191583 JM |
3423 | ac_cv_prog_CPP=$CPP |
3424 | fi | |
ec6a6fbe AK |
3425 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3426 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3427 | ac_preproc_ok=false |
3428 | for ac_c_preproc_warn_flag in '' yes | |
3429 | do | |
3430 | # Use a header file that comes with gcc, so configuring glibc | |
3431 | # with a fresh cross-compiler works. | |
3432 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3433 | # <limits.h> exists even on freestanding compilers. | |
3434 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3435 | # not just through cpp. "Syntax error" is here to catch this case. | |
3436 | cat >conftest.$ac_ext <<_ACEOF | |
3437 | /* confdefs.h. */ | |
ad6254c5 | 3438 | _ACEOF |
d0191583 JM |
3439 | cat confdefs.h >>conftest.$ac_ext |
3440 | cat >>conftest.$ac_ext <<_ACEOF | |
3441 | /* end confdefs.h. */ | |
3442 | #ifdef __STDC__ | |
3443 | # include <limits.h> | |
3444 | #else | |
3445 | # include <assert.h> | |
3446 | #endif | |
3447 | Syntax error | |
3448 | _ACEOF | |
3449 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3450 | case "(($ac_try" in | |
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3452 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3453 | esac |
ec6a6fbe AK |
3454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3455 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3456 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3457 | ac_status=$? | |
3458 | grep -v '^ *+' conftest.er1 >conftest.err | |
3459 | rm -f conftest.er1 | |
3460 | cat conftest.err >&5 | |
ec6a6fbe | 3461 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3462 | (exit $ac_status); } >/dev/null && { |
3463 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3464 | test ! -s conftest.err | |
3465 | }; then | |
3466 | : | |
795ca3e5 | 3467 | else |
ec6a6fbe | 3468 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3469 | sed 's/^/| /' conftest.$ac_ext >&5 |
3470 | ||
3471 | # Broken: fails on valid input. | |
3472 | continue | |
795ca3e5 AK |
3473 | fi |
3474 | ||
d0191583 JM |
3475 | rm -f conftest.err conftest.$ac_ext |
3476 | ||
3477 | # OK, works on sane cases. Now check whether nonexistent headers | |
3478 | # can be detected and how. | |
3479 | cat >conftest.$ac_ext <<_ACEOF | |
3480 | /* confdefs.h. */ | |
3481 | _ACEOF | |
3482 | cat confdefs.h >>conftest.$ac_ext | |
3483 | cat >>conftest.$ac_ext <<_ACEOF | |
3484 | /* end confdefs.h. */ | |
3485 | #include <ac_nonexistent.h> | |
3486 | _ACEOF | |
3487 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3488 | case "(($ac_try" in | |
3489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3490 | *) ac_try_echo=$ac_try;; | |
3491 | esac | |
ec6a6fbe AK |
3492 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3493 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3494 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3495 | ac_status=$? | |
3496 | grep -v '^ *+' conftest.er1 >conftest.err | |
3497 | rm -f conftest.er1 | |
3498 | cat conftest.err >&5 | |
ec6a6fbe | 3499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3500 | (exit $ac_status); } >/dev/null && { |
3501 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3502 | test ! -s conftest.err | |
3503 | }; then | |
3504 | # Broken: success on invalid input. | |
3505 | continue | |
795ca3e5 | 3506 | else |
ec6a6fbe | 3507 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3508 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3509 | |
d0191583 JM |
3510 | # Passes both tests. |
3511 | ac_preproc_ok=: | |
3512 | break | |
795ca3e5 | 3513 | fi |
d0191583 JM |
3514 | |
3515 | rm -f conftest.err conftest.$ac_ext | |
3516 | ||
3517 | done | |
3518 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3519 | rm -f conftest.err conftest.$ac_ext | |
3520 | if $ac_preproc_ok; then | |
3521 | : | |
8106cdd5 | 3522 | else |
ec6a6fbe AK |
3523 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3525 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3526 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3527 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3528 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3529 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3530 | fi |
3531 | ||
d0191583 JM |
3532 | ac_ext=c |
3533 | ac_cpp='$CPP $CPPFLAGS' | |
3534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3537 | ||
7a197a62 | 3538 | |
ec6a6fbe AK |
3539 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3540 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3541 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3542 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3543 | else |
ec6a6fbe | 3544 | if test -z "$GREP"; then |
d0191583 | 3545 | ac_path_GREP_found=false |
ec6a6fbe AK |
3546 | # Loop through the user's path and test for each of PROGNAME-LIST |
3547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3548 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3549 | do |
3550 | IFS=$as_save_IFS | |
3551 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3552 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3553 | for ac_exec_ext in '' $ac_executable_extensions; do |
3554 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3555 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3556 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3557 | # Check for GNU $ac_path_GREP |
3558 | case `"$ac_path_GREP" --version 2>&1` in | |
3559 | *GNU*) | |
3560 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3561 | *) | |
3562 | ac_count=0 | |
ec6a6fbe | 3563 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3564 | while : |
3565 | do | |
3566 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3567 | mv "conftest.tmp" "conftest.in" | |
3568 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3569 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3570 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3571 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3572 | ac_count=`expr $ac_count + 1` | |
3573 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3574 | # Best one so far, save it but keep looking for a better one | |
3575 | ac_cv_path_GREP="$ac_path_GREP" | |
3576 | ac_path_GREP_max=$ac_count | |
3577 | fi | |
3578 | # 10*(2^10) chars as input seems more than enough | |
3579 | test $ac_count -gt 10 && break | |
3580 | done | |
3581 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3582 | esac | |
3583 | ||
ec6a6fbe AK |
3584 | $ac_path_GREP_found && break 3 |
3585 | done | |
d0191583 | 3586 | done |
ad6254c5 | 3587 | done |
7a197a62 | 3588 | IFS=$as_save_IFS |
ec6a6fbe AK |
3589 | if test -z "$ac_cv_path_GREP"; then |
3590 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3591 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3592 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3593 | fi |
80992638 | 3594 | else |
d0191583 | 3595 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3596 | fi |
8106cdd5 | 3597 | |
80992638 | 3598 | fi |
ec6a6fbe AK |
3599 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3600 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3601 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3602 | |
d0191583 | 3603 | |
ec6a6fbe AK |
3604 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3605 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3606 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3607 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3608 | else |
d0191583 JM |
3609 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3610 | then ac_cv_path_EGREP="$GREP -E" | |
3611 | else | |
ec6a6fbe | 3612 | if test -z "$EGREP"; then |
d0191583 | 3613 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3614 | # Loop through the user's path and test for each of PROGNAME-LIST |
3615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3616 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3617 | do |
3618 | IFS=$as_save_IFS | |
3619 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3620 | for ac_prog in egrep; do |
ec6a6fbe AK |
3621 | for ac_exec_ext in '' $ac_executable_extensions; do |
3622 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3623 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3624 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3625 | # Check for GNU $ac_path_EGREP |
3626 | case `"$ac_path_EGREP" --version 2>&1` in | |
3627 | *GNU*) | |
3628 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3629 | *) | |
3630 | ac_count=0 | |
ec6a6fbe | 3631 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3632 | while : |
3633 | do | |
3634 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3635 | mv "conftest.tmp" "conftest.in" | |
3636 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3637 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3638 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3639 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3640 | ac_count=`expr $ac_count + 1` | |
3641 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3642 | # Best one so far, save it but keep looking for a better one | |
3643 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3644 | ac_path_EGREP_max=$ac_count | |
3645 | fi | |
3646 | # 10*(2^10) chars as input seems more than enough | |
3647 | test $ac_count -gt 10 && break | |
3648 | done | |
3649 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3650 | esac |
8a2fc586 | 3651 | |
ec6a6fbe AK |
3652 | $ac_path_EGREP_found && break 3 |
3653 | done | |
d0191583 | 3654 | done |
8a2fc586 | 3655 | done |
7a197a62 | 3656 | IFS=$as_save_IFS |
ec6a6fbe AK |
3657 | if test -z "$ac_cv_path_EGREP"; then |
3658 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3659 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3660 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3661 | fi |
d0191583 JM |
3662 | else |
3663 | ac_cv_path_EGREP=$EGREP | |
3664 | fi | |
ad6254c5 | 3665 | |
d0191583 JM |
3666 | fi |
3667 | fi | |
ec6a6fbe AK |
3668 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3669 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3670 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3671 | |
3672 | ||
d0191583 | 3673 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3674 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3675 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3676 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3677 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3678 | else |
d0191583 | 3679 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3680 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3681 | /* confdefs.h. */ |
3682 | _ACEOF | |
3683 | cat confdefs.h >>conftest.$ac_ext | |
3684 | cat >>conftest.$ac_ext <<_ACEOF | |
3685 | /* end confdefs.h. */ | |
d0191583 JM |
3686 | #include <sgtty.h> |
3687 | Autoconf TIOCGETP | |
ad6254c5 | 3688 | _ACEOF |
d0191583 JM |
3689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3690 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3691 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3692 | else |
d0191583 | 3693 | ac_cv_prog_gcc_traditional=no |
80992638 | 3694 | fi |
d0191583 | 3695 | rm -f conftest* |
ad6254c5 | 3696 | |
8106cdd5 | 3697 | |
d0191583 JM |
3698 | if test $ac_cv_prog_gcc_traditional = no; then |
3699 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3700 | /* confdefs.h. */ |
3701 | _ACEOF | |
3702 | cat confdefs.h >>conftest.$ac_ext | |
3703 | cat >>conftest.$ac_ext <<_ACEOF | |
3704 | /* end confdefs.h. */ | |
d0191583 JM |
3705 | #include <termio.h> |
3706 | Autoconf TCGETA | |
ad6254c5 | 3707 | _ACEOF |
d0191583 JM |
3708 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3709 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3710 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3711 | fi |
d0191583 | 3712 | rm -f conftest* |
795ca3e5 | 3713 | |
d0191583 | 3714 | fi |
795ca3e5 | 3715 | fi |
ec6a6fbe AK |
3716 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3717 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3718 | if test $ac_cv_prog_gcc_traditional = yes; then |
3719 | CC="$CC -traditional" | |
3720 | fi | |
795ca3e5 AK |
3721 | fi |
3722 | ||
d0191583 JM |
3723 | # Find a good install program. We prefer a C program (faster), |
3724 | # so one script is as good as another. But avoid the broken or | |
3725 | # incompatible versions: | |
3726 | # SysV /etc/install, /usr/sbin/install | |
3727 | # SunOS /usr/etc/install | |
3728 | # IRIX /sbin/install | |
3729 | # AIX /bin/install | |
3730 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3731 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3732 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3733 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3734 | # OS/2's system install, which has a completely different semantic | |
3735 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3736 | # Reject install programs that cannot install multiple files. |
3737 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3738 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3739 | if test -z "$INSTALL"; then |
3740 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3741 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3742 | else |
d0191583 JM |
3743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3744 | for as_dir in $PATH | |
3745 | do | |
3746 | IFS=$as_save_IFS | |
3747 | test -z "$as_dir" && as_dir=. | |
3748 | # Account for people who put trailing slashes in PATH elements. | |
3749 | case $as_dir/ in | |
3750 | ./ | .// | /cC/* | \ | |
3751 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3752 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3753 | /usr/ucb/* ) ;; | |
3754 | *) | |
3755 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3756 | # Don't use installbsd from OSF since it installs stuff as root | |
3757 | # by default. | |
3758 | for ac_prog in ginstall scoinst install; do | |
3759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3760 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3761 | if test $ac_prog = install && | |
3762 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3763 | # AIX install. It has an incompatible calling convention. | |
3764 | : | |
3765 | elif test $ac_prog = install && | |
3766 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3767 | # program-specific install script used by HP pwplus--don't use. | |
3768 | : | |
3769 | else | |
ec6a6fbe AK |
3770 | rm -rf conftest.one conftest.two conftest.dir |
3771 | echo one > conftest.one | |
3772 | echo two > conftest.two | |
3773 | mkdir conftest.dir | |
3774 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3775 | test -s conftest.one && test -s conftest.two && | |
3776 | test -s conftest.dir/conftest.one && | |
3777 | test -s conftest.dir/conftest.two | |
3778 | then | |
3779 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3780 | break 3 | |
3781 | fi | |
d0191583 JM |
3782 | fi |
3783 | fi | |
3784 | done | |
3785 | done | |
3786 | ;; | |
3787 | esac | |
ec6a6fbe | 3788 | |
d0191583 JM |
3789 | done |
3790 | IFS=$as_save_IFS | |
80992638 | 3791 | |
ec6a6fbe | 3792 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3793 | |
3794 | fi | |
3795 | if test "${ac_cv_path_install+set}" = set; then | |
3796 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3797 | else |
d0191583 JM |
3798 | # As a last resort, use the slow shell script. Don't cache a |
3799 | # value for INSTALL within a source directory, because that will | |
3800 | # break other packages using the cache if that directory is | |
3801 | # removed, or if the value is a relative name. | |
3802 | INSTALL=$ac_install_sh | |
7a197a62 | 3803 | fi |
d0191583 | 3804 | fi |
ec6a6fbe AK |
3805 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3806 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3807 | |
d0191583 JM |
3808 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3809 | # It thinks the first close brace ends the variable substitution. | |
3810 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3811 | |
d0191583 | 3812 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3813 | |
d0191583 JM |
3814 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3815 | ||
ec6a6fbe AK |
3816 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3817 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3818 | LN_S=$as_ln_s |
3819 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3820 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3821 | $as_echo "yes" >&6; } | |
d0191583 | 3822 | else |
ec6a6fbe AK |
3823 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3824 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3825 | fi |
d0191583 | 3826 | |
ec6a6fbe AK |
3827 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3828 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3829 | set x ${MAKE-make} | |
3830 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3831 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3832 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3833 | else |
d0191583 JM |
3834 | cat >conftest.make <<\_ACEOF |
3835 | SHELL = /bin/sh | |
3836 | all: | |
3837 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3838 | _ACEOF | |
3839 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3840 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3841 | *@@@%%%=?*=@@@%%%*) | |
3842 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3843 | *) | |
3844 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3845 | esac | |
3846 | rm -f conftest.make | |
ad6254c5 | 3847 | fi |
d0191583 | 3848 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3849 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3850 | $as_echo "yes" >&6; } | |
d0191583 JM |
3851 | SET_MAKE= |
3852 | else | |
ec6a6fbe AK |
3853 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3854 | $as_echo "no" >&6; } | |
d0191583 | 3855 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3856 | fi |
8106cdd5 | 3857 | |
ec6a6fbe AK |
3858 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3859 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3860 | if test -z "$MKDIR_P"; then |
3861 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3862 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3863 | else |
3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3865 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3866 | do | |
3867 | IFS=$as_save_IFS | |
3868 | test -z "$as_dir" && as_dir=. | |
3869 | for ac_prog in mkdir gmkdir; do | |
3870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3871 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3872 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3873 | 'mkdir (GNU coreutils) '* | \ | |
3874 | 'mkdir (coreutils) '* | \ | |
3875 | 'mkdir (fileutils) '4.1*) | |
3876 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3877 | break 3;; | |
3878 | esac | |
3879 | done | |
3880 | done | |
3881 | done | |
3882 | IFS=$as_save_IFS | |
3883 | ||
3884 | fi | |
3885 | ||
3886 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3887 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3888 | else | |
3889 | # As a last resort, use the slow shell script. Don't cache a | |
3890 | # value for MKDIR_P within a source directory, because that will | |
3891 | # break other packages using the cache if that directory is | |
3892 | # removed, or if the value is a relative name. | |
3893 | test -d ./--version && rmdir ./--version | |
3894 | MKDIR_P="$ac_install_sh -d" | |
3895 | fi | |
3896 | fi | |
ec6a6fbe AK |
3897 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3898 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3899 | |
d0191583 JM |
3900 | if test -n "$ac_tool_prefix"; then |
3901 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3902 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3903 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3904 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3905 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3906 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3907 | else |
3908 | if test -n "$RANLIB"; then | |
3909 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3910 | else | |
3911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3912 | for as_dir in $PATH | |
3913 | do | |
3914 | IFS=$as_save_IFS | |
3915 | test -z "$as_dir" && as_dir=. | |
3916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3918 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3919 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3920 | break 2 |
3921 | fi | |
3922 | done | |
3923 | done | |
3924 | IFS=$as_save_IFS | |
8106cdd5 | 3925 | |
795ca3e5 | 3926 | fi |
d0191583 JM |
3927 | fi |
3928 | RANLIB=$ac_cv_prog_RANLIB | |
3929 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3930 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3931 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3932 | else |
ec6a6fbe AK |
3933 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3934 | $as_echo "no" >&6; } | |
d0191583 JM |
3935 | fi |
3936 | ||
8106cdd5 | 3937 | |
ad6254c5 | 3938 | fi |
d0191583 JM |
3939 | if test -z "$ac_cv_prog_RANLIB"; then |
3940 | ac_ct_RANLIB=$RANLIB | |
3941 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3942 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3943 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3944 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3945 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3946 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3947 | else |
d0191583 JM |
3948 | if test -n "$ac_ct_RANLIB"; then |
3949 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3950 | else | |
3951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3952 | for as_dir in $PATH | |
8106cdd5 | 3953 | do |
d0191583 JM |
3954 | IFS=$as_save_IFS |
3955 | test -z "$as_dir" && as_dir=. | |
3956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3958 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3959 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3960 | break 2 |
3961 | fi | |
3962 | done | |
3963 | done | |
3964 | IFS=$as_save_IFS | |
3965 | ||
3966 | fi | |
3967 | fi | |
3968 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3969 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3970 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3971 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3972 | else |
ec6a6fbe AK |
3973 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3974 | $as_echo "no" >&6; } | |
d0191583 | 3975 | fi |
ad6254c5 | 3976 | |
d0191583 JM |
3977 | if test "x$ac_ct_RANLIB" = x; then |
3978 | RANLIB=":" | |
3979 | else | |
3980 | case $cross_compiling:$ac_tool_warned in | |
3981 | yes:) | |
ec6a6fbe AK |
3982 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3983 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3984 | ac_tool_warned=yes ;; |
3985 | esac | |
3986 | RANLIB=$ac_ct_RANLIB | |
3987 | fi | |
3988 | else | |
3989 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3990 | fi |
7a197a62 | 3991 | |
d0191583 JM |
3992 | # Extract the first word of "cflow", so it can be a program name with args. |
3993 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3994 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3995 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3996 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3997 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3998 | else |
3999 | case $CFLOW_CMD in | |
4000 | [\\/]* | ?:[\\/]*) | |
4001 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4002 | ;; | |
4003 | *) | |
4004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4005 | for as_dir in $PATH | |
4006 | do | |
4007 | IFS=$as_save_IFS | |
4008 | test -z "$as_dir" && as_dir=. | |
4009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4011 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4012 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4013 | break 2 |
4014 | fi | |
4015 | done | |
4016 | done | |
4017 | IFS=$as_save_IFS | |
ad6254c5 | 4018 | |
d0191583 | 4019 | ;; |
7a197a62 | 4020 | esac |
d0191583 JM |
4021 | fi |
4022 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4023 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4024 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4025 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4026 | else |
ec6a6fbe AK |
4027 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4028 | $as_echo "no" >&6; } | |
795ca3e5 | 4029 | fi |
7a197a62 | 4030 | |
ad6254c5 | 4031 | |
d0191583 JM |
4032 | # Extract the first word of "cscope", so it can be a program name with args. |
4033 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4034 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4035 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4036 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4037 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4038 | else |
4039 | case $CSCOPE_CMD in | |
4040 | [\\/]* | ?:[\\/]*) | |
4041 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4042 | ;; | |
4043 | *) | |
4044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4045 | for as_dir in $PATH | |
4046 | do | |
4047 | IFS=$as_save_IFS | |
4048 | test -z "$as_dir" && as_dir=. | |
4049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4051 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4052 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4053 | break 2 |
4054 | fi | |
795ca3e5 | 4055 | done |
d0191583 JM |
4056 | done |
4057 | IFS=$as_save_IFS | |
795ca3e5 | 4058 | |
d0191583 JM |
4059 | ;; |
4060 | esac | |
ad6254c5 | 4061 | fi |
d0191583 JM |
4062 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4063 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4064 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4065 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4066 | else |
ec6a6fbe AK |
4067 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4068 | $as_echo "no" >&6; } | |
795ca3e5 | 4069 | fi |
ad6254c5 | 4070 | |
7a197a62 | 4071 | |
ad6254c5 | 4072 | |
d0191583 JM |
4073 | ################################################################################ |
4074 | ||
4075 | ||
4076 | ||
4077 | ||
4078 | ||
4079 | ac_header_dirent=no | |
4080 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4081 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4082 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4083 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4085 | $as_echo_n "(cached) " >&6 |
d0191583 | 4086 | else |
ad6254c5 | 4087 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4088 | /* confdefs.h. */ |
4089 | _ACEOF | |
4090 | cat confdefs.h >>conftest.$ac_ext | |
4091 | cat >>conftest.$ac_ext <<_ACEOF | |
4092 | /* end confdefs.h. */ | |
d0191583 JM |
4093 | #include <sys/types.h> |
4094 | #include <$ac_hdr> | |
4095 | ||
4096 | int | |
4097 | main () | |
4098 | { | |
4099 | if ((DIR *) 0) | |
4100 | return 0; | |
4101 | ; | |
4102 | return 0; | |
4103 | } | |
ad6254c5 | 4104 | _ACEOF |
d0191583 JM |
4105 | rm -f conftest.$ac_objext |
4106 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4107 | case "(($ac_try" in |
4108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4109 | *) ac_try_echo=$ac_try;; | |
4110 | esac | |
ec6a6fbe AK |
4111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4112 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4113 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4114 | ac_status=$? |
4115 | grep -v '^ *+' conftest.er1 >conftest.err | |
4116 | rm -f conftest.er1 | |
4117 | cat conftest.err >&5 | |
ec6a6fbe | 4118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4119 | (exit $ac_status); } && { |
4120 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4121 | test ! -s conftest.err |
d0191583 JM |
4122 | } && test -s conftest.$ac_objext; then |
4123 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4124 | else |
ec6a6fbe | 4125 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4126 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4127 | |
d0191583 | 4128 | eval "$as_ac_Header=no" |
795ca3e5 | 4129 | fi |
7a197a62 | 4130 | |
d0191583 | 4131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4132 | fi |
ec6a6fbe AK |
4133 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4134 | $as_echo "$as_val"'` | |
4135 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4136 | $as_echo "$ac_res" >&6; } | |
4137 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4138 | $as_echo "$as_val"'` | |
4139 | if test "x$as_val" = x""yes; then | |
d0191583 | 4140 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4141 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4142 | _ACEOF |
795ca3e5 | 4143 | |
d0191583 JM |
4144 | ac_header_dirent=$ac_hdr; break |
4145 | fi | |
ad6254c5 | 4146 | |
d0191583 JM |
4147 | done |
4148 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4149 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4150 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4151 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4152 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4153 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4154 | else |
d0191583 JM |
4155 | ac_func_search_save_LIBS=$LIBS |
4156 | cat >conftest.$ac_ext <<_ACEOF | |
4157 | /* confdefs.h. */ | |
4158 | _ACEOF | |
4159 | cat confdefs.h >>conftest.$ac_ext | |
4160 | cat >>conftest.$ac_ext <<_ACEOF | |
4161 | /* end confdefs.h. */ | |
ad6254c5 | 4162 | |
d0191583 JM |
4163 | /* Override any GCC internal prototype to avoid an error. |
4164 | Use char because int might match the return type of a GCC | |
4165 | builtin and then its argument prototype would still apply. */ | |
4166 | #ifdef __cplusplus | |
4167 | extern "C" | |
4168 | #endif | |
4169 | char opendir (); | |
4170 | int | |
4171 | main () | |
4172 | { | |
4173 | return opendir (); | |
4174 | ; | |
4175 | return 0; | |
4176 | } | |
4177 | _ACEOF | |
4178 | for ac_lib in '' dir; do | |
4179 | if test -z "$ac_lib"; then | |
4180 | ac_res="none required" | |
4181 | else | |
4182 | ac_res=-l$ac_lib | |
4183 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4184 | fi | |
4185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4186 | if { (ac_try="$ac_link" | |
4187 | case "(($ac_try" in | |
4188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4189 | *) ac_try_echo=$ac_try;; | |
4190 | esac | |
ec6a6fbe AK |
4191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4192 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4193 | (eval "$ac_link") 2>conftest.er1 |
4194 | ac_status=$? | |
4195 | grep -v '^ *+' conftest.er1 >conftest.err | |
4196 | rm -f conftest.er1 | |
4197 | cat conftest.err >&5 | |
ec6a6fbe | 4198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4199 | (exit $ac_status); } && { |
4200 | test -z "$ac_c_werror_flag" || | |
4201 | test ! -s conftest.err | |
ec6a6fbe AK |
4202 | } && test -s conftest$ac_exeext && { |
4203 | test "$cross_compiling" = yes || | |
4204 | $as_test_x conftest$ac_exeext | |
4205 | }; then | |
d0191583 JM |
4206 | ac_cv_search_opendir=$ac_res |
4207 | else | |
ec6a6fbe | 4208 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4210 | |
ad6254c5 | 4211 | |
795ca3e5 | 4212 | fi |
ad6254c5 | 4213 | |
ec6a6fbe | 4214 | rm -rf conftest.dSYM |
d0191583 JM |
4215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4216 | conftest$ac_exeext | |
4217 | if test "${ac_cv_search_opendir+set}" = set; then | |
4218 | break | |
7a197a62 | 4219 | fi |
d0191583 JM |
4220 | done |
4221 | if test "${ac_cv_search_opendir+set}" = set; then | |
4222 | : | |
7a197a62 | 4223 | else |
d0191583 | 4224 | ac_cv_search_opendir=no |
7a197a62 | 4225 | fi |
d0191583 JM |
4226 | rm conftest.$ac_ext |
4227 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4228 | fi |
ec6a6fbe AK |
4229 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4230 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4231 | ac_res=$ac_cv_search_opendir |
4232 | if test "$ac_res" != no; then | |
4233 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4234 | |
d0191583 | 4235 | fi |
7a197a62 | 4236 | |
7a197a62 | 4237 | else |
ec6a6fbe AK |
4238 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4239 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4240 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4241 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4242 | else |
d0191583 JM |
4243 | ac_func_search_save_LIBS=$LIBS |
4244 | cat >conftest.$ac_ext <<_ACEOF | |
4245 | /* confdefs.h. */ | |
4246 | _ACEOF | |
4247 | cat confdefs.h >>conftest.$ac_ext | |
4248 | cat >>conftest.$ac_ext <<_ACEOF | |
4249 | /* end confdefs.h. */ | |
7a197a62 | 4250 | |
d0191583 JM |
4251 | /* Override any GCC internal prototype to avoid an error. |
4252 | Use char because int might match the return type of a GCC | |
4253 | builtin and then its argument prototype would still apply. */ | |
4254 | #ifdef __cplusplus | |
4255 | extern "C" | |
4256 | #endif | |
4257 | char opendir (); | |
4258 | int | |
4259 | main () | |
4260 | { | |
4261 | return opendir (); | |
4262 | ; | |
4263 | return 0; | |
4264 | } | |
4265 | _ACEOF | |
4266 | for ac_lib in '' x; do | |
4267 | if test -z "$ac_lib"; then | |
4268 | ac_res="none required" | |
4269 | else | |
4270 | ac_res=-l$ac_lib | |
4271 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4272 | fi | |
4273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4274 | if { (ac_try="$ac_link" | |
4275 | case "(($ac_try" in | |
4276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4277 | *) ac_try_echo=$ac_try;; | |
4278 | esac | |
ec6a6fbe AK |
4279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4280 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4281 | (eval "$ac_link") 2>conftest.er1 |
4282 | ac_status=$? | |
4283 | grep -v '^ *+' conftest.er1 >conftest.err | |
4284 | rm -f conftest.er1 | |
4285 | cat conftest.err >&5 | |
ec6a6fbe | 4286 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4287 | (exit $ac_status); } && { |
4288 | test -z "$ac_c_werror_flag" || | |
4289 | test ! -s conftest.err | |
ec6a6fbe AK |
4290 | } && test -s conftest$ac_exeext && { |
4291 | test "$cross_compiling" = yes || | |
4292 | $as_test_x conftest$ac_exeext | |
4293 | }; then | |
d0191583 JM |
4294 | ac_cv_search_opendir=$ac_res |
4295 | else | |
ec6a6fbe | 4296 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4297 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4298 | |
4299 | ||
4300 | fi | |
4301 | ||
ec6a6fbe | 4302 | rm -rf conftest.dSYM |
d0191583 JM |
4303 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4304 | conftest$ac_exeext | |
4305 | if test "${ac_cv_search_opendir+set}" = set; then | |
4306 | break | |
7a197a62 | 4307 | fi |
d0191583 JM |
4308 | done |
4309 | if test "${ac_cv_search_opendir+set}" = set; then | |
4310 | : | |
7a197a62 | 4311 | else |
d0191583 | 4312 | ac_cv_search_opendir=no |
7a197a62 | 4313 | fi |
d0191583 JM |
4314 | rm conftest.$ac_ext |
4315 | LIBS=$ac_func_search_save_LIBS | |
4316 | fi | |
ec6a6fbe AK |
4317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4318 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4319 | ac_res=$ac_cv_search_opendir |
4320 | if test "$ac_res" != no; then | |
4321 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4322 | |
7a197a62 | 4323 | fi |
7a197a62 | 4324 | |
d0191583 | 4325 | fi |
7a197a62 | 4326 | |
ec6a6fbe AK |
4327 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4328 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4329 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4330 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4331 | else |
4332 | cat >conftest.$ac_ext <<_ACEOF | |
4333 | /* confdefs.h. */ | |
4334 | _ACEOF | |
4335 | cat confdefs.h >>conftest.$ac_ext | |
4336 | cat >>conftest.$ac_ext <<_ACEOF | |
4337 | /* end confdefs.h. */ | |
4338 | #include <stdlib.h> | |
4339 | #include <stdarg.h> | |
4340 | #include <string.h> | |
4341 | #include <float.h> | |
4342 | ||
4343 | int | |
4344 | main () | |
4345 | { | |
4346 | ||
4347 | ; | |
4348 | return 0; | |
4349 | } | |
4350 | _ACEOF | |
4351 | rm -f conftest.$ac_objext | |
4352 | if { (ac_try="$ac_compile" | |
4353 | case "(($ac_try" in | |
4354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4355 | *) ac_try_echo=$ac_try;; | |
4356 | esac | |
ec6a6fbe AK |
4357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4358 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4359 | (eval "$ac_compile") 2>conftest.er1 |
4360 | ac_status=$? | |
4361 | grep -v '^ *+' conftest.er1 >conftest.err | |
4362 | rm -f conftest.er1 | |
4363 | cat conftest.err >&5 | |
ec6a6fbe | 4364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4365 | (exit $ac_status); } && { |
4366 | test -z "$ac_c_werror_flag" || | |
4367 | test ! -s conftest.err | |
4368 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4369 | ac_cv_header_stdc=yes |
4370 | else | |
ec6a6fbe | 4371 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4372 | sed 's/^/| /' conftest.$ac_ext >&5 |
4373 | ||
4374 | ac_cv_header_stdc=no | |
4375 | fi | |
4376 | ||
4377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4378 | ||
4379 | if test $ac_cv_header_stdc = yes; then | |
4380 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4381 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4382 | /* confdefs.h. */ |
4383 | _ACEOF | |
4384 | cat confdefs.h >>conftest.$ac_ext | |
4385 | cat >>conftest.$ac_ext <<_ACEOF | |
4386 | /* end confdefs.h. */ | |
4387 | #include <string.h> | |
8106cdd5 | 4388 | |
ad6254c5 AK |
4389 | _ACEOF |
4390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4391 | $EGREP "memchr" >/dev/null 2>&1; then | |
4392 | : | |
4393 | else | |
4394 | ac_cv_header_stdc=no | |
80992638 | 4395 | fi |
ad6254c5 | 4396 | rm -f conftest* |
795ca3e5 AK |
4397 | |
4398 | fi | |
4399 | ||
ad6254c5 AK |
4400 | if test $ac_cv_header_stdc = yes; then |
4401 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4402 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4403 | /* confdefs.h. */ |
4404 | _ACEOF | |
4405 | cat confdefs.h >>conftest.$ac_ext | |
4406 | cat >>conftest.$ac_ext <<_ACEOF | |
4407 | /* end confdefs.h. */ | |
80992638 | 4408 | #include <stdlib.h> |
ad6254c5 AK |
4409 | |
4410 | _ACEOF | |
80992638 | 4411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4412 | $EGREP "free" >/dev/null 2>&1; then |
4413 | : | |
795ca3e5 | 4414 | else |
ad6254c5 | 4415 | ac_cv_header_stdc=no |
795ca3e5 | 4416 | fi |
80992638 | 4417 | rm -f conftest* |
8106cdd5 | 4418 | |
795ca3e5 AK |
4419 | fi |
4420 | ||
ad6254c5 AK |
4421 | if test $ac_cv_header_stdc = yes; then |
4422 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4423 | if test "$cross_compiling" = yes; then | |
4424 | : | |
795ca3e5 | 4425 | else |
ad6254c5 | 4426 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4427 | /* confdefs.h. */ |
4428 | _ACEOF | |
4429 | cat confdefs.h >>conftest.$ac_ext | |
4430 | cat >>conftest.$ac_ext <<_ACEOF | |
4431 | /* end confdefs.h. */ | |
4432 | #include <ctype.h> | |
7a197a62 | 4433 | #include <stdlib.h> |
ad6254c5 AK |
4434 | #if ((' ' & 0x0FF) == 0x020) |
4435 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4436 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4437 | #else | |
4438 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4439 | (('a' <= (c) && (c) <= 'i') \ |
4440 | || ('j' <= (c) && (c) <= 'r') \ | |
4441 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4442 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4443 | #endif |
ad6254c5 AK |
4444 | |
4445 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4446 | int | |
4447 | main () | |
4448 | { | |
4449 | int i; | |
4450 | for (i = 0; i < 256; i++) | |
4451 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4452 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4453 | return 2; |
4454 | return 0; | |
ad6254c5 AK |
4455 | } |
4456 | _ACEOF | |
4457 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4458 | if { (ac_try="$ac_link" |
4459 | case "(($ac_try" in | |
4460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4461 | *) ac_try_echo=$ac_try;; | |
4462 | esac | |
ec6a6fbe AK |
4463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4464 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4465 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4466 | ac_status=$? |
ec6a6fbe | 4467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4469 | { (case "(($ac_try" in |
4470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4471 | *) ac_try_echo=$ac_try;; | |
4472 | esac | |
ec6a6fbe AK |
4473 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4474 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4475 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4476 | ac_status=$? |
ec6a6fbe | 4477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4478 | (exit $ac_status); }; }; then |
4479 | : | |
795ca3e5 | 4480 | else |
ec6a6fbe AK |
4481 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4482 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4483 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4484 | |
ad6254c5 AK |
4485 | ( exit $ac_status ) |
4486 | ac_cv_header_stdc=no | |
80992638 | 4487 | fi |
ec6a6fbe | 4488 | rm -rf conftest.dSYM |
7a197a62 | 4489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4490 | fi |
7a197a62 AK |
4491 | |
4492 | ||
ad6254c5 AK |
4493 | fi |
4494 | fi | |
ec6a6fbe AK |
4495 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4496 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4497 | if test $ac_cv_header_stdc = yes; then |
4498 | ||
4499 | cat >>confdefs.h <<\_ACEOF | |
4500 | #define STDC_HEADERS 1 | |
4501 | _ACEOF | |
795ca3e5 AK |
4502 | |
4503 | fi | |
4504 | ||
ec6a6fbe AK |
4505 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4506 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4507 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4508 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4509 | else |
ad6254c5 | 4510 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4511 | /* confdefs.h. */ |
4512 | _ACEOF | |
4513 | cat confdefs.h >>conftest.$ac_ext | |
4514 | cat >>conftest.$ac_ext <<_ACEOF | |
4515 | /* end confdefs.h. */ | |
80992638 | 4516 | #include <sys/types.h> |
ad6254c5 AK |
4517 | #include <sys/wait.h> |
4518 | #ifndef WEXITSTATUS | |
7a197a62 | 4519 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4520 | #endif |
4521 | #ifndef WIFEXITED | |
4522 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4523 | #endif | |
4524 | ||
4525 | int | |
4526 | main () | |
4527 | { | |
4528 | int s; | |
4529 | wait (&s); | |
4530 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4531 | ; | |
4532 | return 0; | |
4533 | } | |
4534 | _ACEOF | |
4535 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4536 | if { (ac_try="$ac_compile" |
4537 | case "(($ac_try" in | |
4538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4539 | *) ac_try_echo=$ac_try;; | |
4540 | esac | |
ec6a6fbe AK |
4541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4542 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4543 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4544 | ac_status=$? |
8a2fc586 AK |
4545 | grep -v '^ *+' conftest.er1 >conftest.err |
4546 | rm -f conftest.er1 | |
4547 | cat conftest.err >&5 | |
ec6a6fbe | 4548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4549 | (exit $ac_status); } && { |
4550 | test -z "$ac_c_werror_flag" || | |
4551 | test ! -s conftest.err | |
4552 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4553 | ac_cv_header_sys_wait_h=yes |
4554 | else | |
ec6a6fbe | 4555 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4556 | sed 's/^/| /' conftest.$ac_ext >&5 |
4557 | ||
7a197a62 | 4558 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4559 | fi |
7a197a62 AK |
4560 | |
4561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4562 | fi |
ec6a6fbe AK |
4563 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4564 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4565 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4566 | |
ad6254c5 AK |
4567 | cat >>confdefs.h <<\_ACEOF |
4568 | #define HAVE_SYS_WAIT_H 1 | |
4569 | _ACEOF | |
795ca3e5 AK |
4570 | |
4571 | fi | |
4572 | ||
ec6a6fbe AK |
4573 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4574 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4575 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4576 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4577 | else |
ad6254c5 | 4578 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4579 | /* confdefs.h. */ |
4580 | _ACEOF | |
4581 | cat confdefs.h >>conftest.$ac_ext | |
4582 | cat >>conftest.$ac_ext <<_ACEOF | |
4583 | /* end confdefs.h. */ | |
795ca3e5 AK |
4584 | #include <sys/types.h> |
4585 | #include <sys/time.h> | |
4586 | #include <time.h> | |
ad6254c5 AK |
4587 | |
4588 | int | |
4589 | main () | |
4590 | { | |
4591 | if ((struct tm *) 0) | |
4592 | return 0; | |
4593 | ; | |
4594 | return 0; | |
4595 | } | |
4596 | _ACEOF | |
4597 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4598 | if { (ac_try="$ac_compile" |
4599 | case "(($ac_try" in | |
4600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4601 | *) ac_try_echo=$ac_try;; | |
4602 | esac | |
ec6a6fbe AK |
4603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4604 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4605 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4606 | ac_status=$? |
8a2fc586 AK |
4607 | grep -v '^ *+' conftest.er1 >conftest.err |
4608 | rm -f conftest.er1 | |
4609 | cat conftest.err >&5 | |
ec6a6fbe | 4610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4611 | (exit $ac_status); } && { |
4612 | test -z "$ac_c_werror_flag" || | |
4613 | test ! -s conftest.err | |
4614 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4615 | ac_cv_header_time=yes |
4616 | else | |
ec6a6fbe | 4617 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4618 | sed 's/^/| /' conftest.$ac_ext >&5 |
4619 | ||
7a197a62 | 4620 | ac_cv_header_time=no |
795ca3e5 | 4621 | fi |
7a197a62 AK |
4622 | |
4623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4624 | fi |
ec6a6fbe AK |
4625 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4626 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4627 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4628 | |
4629 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4630 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4631 | _ACEOF |
b896caa1 | 4632 | |
8106cdd5 | 4633 | fi |
b896caa1 | 4634 | |
b896caa1 | 4635 | |
d0191583 JM |
4636 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
4646 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4647 | inttypes.h stdint.h unistd.h | |
4648 | do | |
ec6a6fbe AK |
4649 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4650 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4651 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4652 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4653 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4654 | else |
4655 | cat >conftest.$ac_ext <<_ACEOF | |
4656 | /* confdefs.h. */ | |
4657 | _ACEOF | |
4658 | cat confdefs.h >>conftest.$ac_ext | |
4659 | cat >>conftest.$ac_ext <<_ACEOF | |
4660 | /* end confdefs.h. */ | |
4661 | $ac_includes_default | |
4662 | ||
4663 | #include <$ac_header> | |
4664 | _ACEOF | |
4665 | rm -f conftest.$ac_objext | |
4666 | if { (ac_try="$ac_compile" | |
4667 | case "(($ac_try" in | |
4668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4669 | *) ac_try_echo=$ac_try;; | |
4670 | esac | |
ec6a6fbe AK |
4671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4672 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4673 | (eval "$ac_compile") 2>conftest.er1 |
4674 | ac_status=$? | |
4675 | grep -v '^ *+' conftest.er1 >conftest.err | |
4676 | rm -f conftest.er1 | |
4677 | cat conftest.err >&5 | |
ec6a6fbe | 4678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4679 | (exit $ac_status); } && { |
4680 | test -z "$ac_c_werror_flag" || | |
4681 | test ! -s conftest.err | |
4682 | } && test -s conftest.$ac_objext; then | |
4683 | eval "$as_ac_Header=yes" | |
4684 | else | |
ec6a6fbe | 4685 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4686 | sed 's/^/| /' conftest.$ac_ext >&5 |
4687 | ||
4688 | eval "$as_ac_Header=no" | |
4689 | fi | |
4690 | ||
4691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4692 | fi | |
ec6a6fbe AK |
4693 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4694 | $as_echo "$as_val"'` | |
4695 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4696 | $as_echo "$ac_res" >&6; } | |
4697 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4698 | $as_echo "$as_val"'` | |
4699 | if test "x$as_val" = x""yes; then | |
d0191583 | 4700 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4701 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4702 | _ACEOF |
4703 | ||
4704 | fi | |
4705 | ||
4706 | done | |
4707 | ||
b896caa1 | 4708 | |
b896caa1 AK |
4709 | |
4710 | ||
795ca3e5 | 4711 | |
8106cdd5 | 4712 | |
80992638 | 4713 | |
795ca3e5 | 4714 | |
a38df97f | 4715 | |
80992638 | 4716 | |
d0191583 JM |
4717 | |
4718 | ||
4719 | ||
4720 | ||
4721 | ||
4722 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4723 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4724 | do |
ec6a6fbe | 4725 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4726 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4727 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4728 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4730 | $as_echo_n "(cached) " >&6 |
d0191583 | 4731 | fi |
ec6a6fbe AK |
4732 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4733 | $as_echo "$as_val"'` | |
4734 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4735 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4736 | else |
d0191583 | 4737 | # Is the header compilable? |
ec6a6fbe AK |
4738 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4739 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4740 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4741 | /* confdefs.h. */ |
4742 | _ACEOF | |
4743 | cat confdefs.h >>conftest.$ac_ext | |
4744 | cat >>conftest.$ac_ext <<_ACEOF | |
4745 | /* end confdefs.h. */ | |
4746 | $ac_includes_default | |
ad6254c5 AK |
4747 | #include <$ac_header> |
4748 | _ACEOF | |
4749 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4750 | if { (ac_try="$ac_compile" |
4751 | case "(($ac_try" in | |
4752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4753 | *) ac_try_echo=$ac_try;; | |
4754 | esac | |
ec6a6fbe AK |
4755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4756 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4757 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4758 | ac_status=$? |
8a2fc586 AK |
4759 | grep -v '^ *+' conftest.er1 >conftest.err |
4760 | rm -f conftest.er1 | |
4761 | cat conftest.err >&5 | |
ec6a6fbe | 4762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4763 | (exit $ac_status); } && { |
4764 | test -z "$ac_c_werror_flag" || | |
4765 | test ! -s conftest.err | |
4766 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4767 | ac_header_compiler=yes |
ad6254c5 | 4768 | else |
ec6a6fbe | 4769 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4770 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4771 | |
d0191583 | 4772 | ac_header_compiler=no |
ad6254c5 | 4773 | fi |
7a197a62 AK |
4774 | |
4775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4776 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4777 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4778 | |
4779 | # Is the header present? | |
ec6a6fbe AK |
4780 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4781 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4782 | cat >conftest.$ac_ext <<_ACEOF |
4783 | /* confdefs.h. */ | |
4784 | _ACEOF | |
4785 | cat confdefs.h >>conftest.$ac_ext | |
4786 | cat >>conftest.$ac_ext <<_ACEOF | |
4787 | /* end confdefs.h. */ | |
4788 | #include <$ac_header> | |
4789 | _ACEOF | |
4790 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4791 | case "(($ac_try" in | |
4792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4793 | *) ac_try_echo=$ac_try;; | |
4794 | esac | |
ec6a6fbe AK |
4795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4796 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4797 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4798 | ac_status=$? | |
4799 | grep -v '^ *+' conftest.er1 >conftest.err | |
4800 | rm -f conftest.er1 | |
4801 | cat conftest.err >&5 | |
ec6a6fbe | 4802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4803 | (exit $ac_status); } >/dev/null && { |
4804 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4805 | test ! -s conftest.err | |
4806 | }; then | |
4807 | ac_header_preproc=yes | |
4808 | else | |
ec6a6fbe | 4809 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4810 | sed 's/^/| /' conftest.$ac_ext >&5 |
4811 | ||
4812 | ac_header_preproc=no | |
4813 | fi | |
4814 | ||
4815 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4816 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4817 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4818 | |
4819 | # So? What about this header? | |
4820 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4821 | yes:no: ) | |
ec6a6fbe AK |
4822 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4823 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4824 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4825 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4826 | ac_header_preproc=yes |
4827 | ;; | |
4828 | no:yes:* ) | |
ec6a6fbe AK |
4829 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4830 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4831 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4832 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4833 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4834 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4835 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4836 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4837 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4838 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4839 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4840 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4841 | |
4842 | ;; | |
4843 | esac | |
ec6a6fbe AK |
4844 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4845 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4846 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4847 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4848 | else |
4849 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4850 | fi |
ec6a6fbe AK |
4851 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4852 | $as_echo "$as_val"'` | |
4853 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4854 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4855 | |
4856 | fi | |
ec6a6fbe AK |
4857 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4858 | $as_echo "$as_val"'` | |
4859 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4860 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4861 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4862 | _ACEOF |
a38df97f | 4863 | |
d0191583 | 4864 | else |
ec6a6fbe AK |
4865 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4866 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4867 | { (exit 1); exit 1; }; } |
80992638 AK |
4868 | fi |
4869 | ||
ad6254c5 AK |
4870 | done |
4871 | ||
7d1552c9 | 4872 | |
d0191583 JM |
4873 | case "$host_os" in |
4874 | linux*) | |
7d1552c9 | 4875 | |
80992638 | 4876 | |
5a52dca9 | 4877 | |
d0191583 | 4878 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4879 | do |
ec6a6fbe | 4880 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4882 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4883 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4884 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4885 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4886 | fi |
ec6a6fbe AK |
4887 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4888 | $as_echo "$as_val"'` | |
4889 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4890 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4891 | else |
4892 | # Is the header compilable? | |
ec6a6fbe AK |
4893 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4894 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4895 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4896 | /* confdefs.h. */ |
4897 | _ACEOF | |
4898 | cat confdefs.h >>conftest.$ac_ext | |
4899 | cat >>conftest.$ac_ext <<_ACEOF | |
4900 | /* end confdefs.h. */ | |
4901 | $ac_includes_default | |
4902 | #include <$ac_header> | |
4903 | _ACEOF | |
4904 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4905 | if { (ac_try="$ac_compile" |
4906 | case "(($ac_try" in | |
4907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4908 | *) ac_try_echo=$ac_try;; | |
4909 | esac | |
ec6a6fbe AK |
4910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4911 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4912 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4913 | ac_status=$? |
8a2fc586 AK |
4914 | grep -v '^ *+' conftest.er1 >conftest.err |
4915 | rm -f conftest.er1 | |
4916 | cat conftest.err >&5 | |
ec6a6fbe | 4917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4918 | (exit $ac_status); } && { |
4919 | test -z "$ac_c_werror_flag" || | |
4920 | test ! -s conftest.err | |
4921 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4922 | ac_header_compiler=yes |
4923 | else | |
ec6a6fbe | 4924 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4925 | sed 's/^/| /' conftest.$ac_ext >&5 |
4926 | ||
4927 | ac_header_compiler=no | |
4928 | fi | |
4929 | ||
4930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4931 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4932 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4933 | |
4934 | # Is the header present? | |
ec6a6fbe AK |
4935 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4936 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4937 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4938 | /* confdefs.h. */ |
4939 | _ACEOF | |
4940 | cat confdefs.h >>conftest.$ac_ext | |
4941 | cat >>conftest.$ac_ext <<_ACEOF | |
4942 | /* end confdefs.h. */ | |
4943 | #include <$ac_header> | |
4944 | _ACEOF | |
7a197a62 AK |
4945 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4946 | case "(($ac_try" in | |
4947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4948 | *) ac_try_echo=$ac_try;; | |
4949 | esac | |
ec6a6fbe AK |
4950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4951 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4953 | ac_status=$? |
4954 | grep -v '^ *+' conftest.er1 >conftest.err | |
4955 | rm -f conftest.er1 | |
4956 | cat conftest.err >&5 | |
ec6a6fbe | 4957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4958 | (exit $ac_status); } >/dev/null && { |
4959 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4960 | test ! -s conftest.err | |
4961 | }; then | |
ad6254c5 AK |
4962 | ac_header_preproc=yes |
4963 | else | |
ec6a6fbe | 4964 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
4966 | ||
4967 | ac_header_preproc=no | |
4968 | fi | |
7a197a62 | 4969 | |
ad6254c5 | 4970 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4971 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4972 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4973 | |
4974 | # So? What about this header? | |
8a2fc586 AK |
4975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4976 | yes:no: ) | |
ec6a6fbe AK |
4977 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4978 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4979 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4980 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4981 | ac_header_preproc=yes |
ad6254c5 | 4982 | ;; |
8a2fc586 | 4983 | no:yes:* ) |
ec6a6fbe AK |
4984 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4985 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4986 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4987 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4988 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4989 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4990 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4991 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4992 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4993 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4994 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4995 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4996 | |
ad6254c5 AK |
4997 | ;; |
4998 | esac | |
ec6a6fbe AK |
4999 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5000 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5002 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5003 | else |
8a2fc586 | 5004 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5005 | fi |
ec6a6fbe AK |
5006 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5007 | $as_echo "$as_val"'` | |
5008 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5009 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5010 | |
5011 | fi | |
ec6a6fbe AK |
5012 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5013 | $as_echo "$as_val"'` | |
5014 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5015 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5016 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5017 | _ACEOF |
b896caa1 | 5018 | |
d8ac0fbc | 5019 | else |
ec6a6fbe AK |
5020 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5021 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5022 | { (exit 1); exit 1; }; } |
80992638 AK |
5023 | fi |
5024 | ||
ad6254c5 | 5025 | done |
d0191583 JM |
5026 | ;; |
5027 | darwin*) | |
d8ac0fbc | 5028 | |
d8ac0fbc | 5029 | |
d0191583 | 5030 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5031 | do |
ec6a6fbe | 5032 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5034 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5035 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5037 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5038 | fi |
ec6a6fbe AK |
5039 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5040 | $as_echo "$as_val"'` | |
5041 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5042 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5043 | else |
5044 | # Is the header compilable? | |
ec6a6fbe AK |
5045 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5046 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5047 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5048 | /* confdefs.h. */ |
5049 | _ACEOF | |
5050 | cat confdefs.h >>conftest.$ac_ext | |
5051 | cat >>conftest.$ac_ext <<_ACEOF | |
5052 | /* end confdefs.h. */ | |
5053 | $ac_includes_default | |
5054 | #include <$ac_header> | |
5055 | _ACEOF | |
5056 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5057 | if { (ac_try="$ac_compile" |
5058 | case "(($ac_try" in | |
5059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5060 | *) ac_try_echo=$ac_try;; | |
5061 | esac | |
ec6a6fbe AK |
5062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5063 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5064 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5065 | ac_status=$? |
8a2fc586 AK |
5066 | grep -v '^ *+' conftest.er1 >conftest.err |
5067 | rm -f conftest.er1 | |
5068 | cat conftest.err >&5 | |
ec6a6fbe | 5069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5070 | (exit $ac_status); } && { |
5071 | test -z "$ac_c_werror_flag" || | |
5072 | test ! -s conftest.err | |
5073 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5074 | ac_header_compiler=yes |
5075 | else | |
ec6a6fbe | 5076 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5077 | sed 's/^/| /' conftest.$ac_ext >&5 |
5078 | ||
7a197a62 | 5079 | ac_header_compiler=no |
ad6254c5 | 5080 | fi |
7a197a62 AK |
5081 | |
5082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5083 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5084 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5085 | |
5086 | # Is the header present? | |
ec6a6fbe AK |
5087 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5088 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5089 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5090 | /* confdefs.h. */ |
5091 | _ACEOF | |
5092 | cat confdefs.h >>conftest.$ac_ext | |
5093 | cat >>conftest.$ac_ext <<_ACEOF | |
5094 | /* end confdefs.h. */ | |
5095 | #include <$ac_header> | |
5096 | _ACEOF | |
7a197a62 AK |
5097 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5098 | case "(($ac_try" in | |
5099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5100 | *) ac_try_echo=$ac_try;; | |
5101 | esac | |
ec6a6fbe AK |
5102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5103 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5104 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5105 | ac_status=$? |
5106 | grep -v '^ *+' conftest.er1 >conftest.err | |
5107 | rm -f conftest.er1 | |
5108 | cat conftest.err >&5 | |
ec6a6fbe | 5109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5110 | (exit $ac_status); } >/dev/null && { |
5111 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5112 | test ! -s conftest.err | |
5113 | }; then | |
ad6254c5 AK |
5114 | ac_header_preproc=yes |
5115 | else | |
ec6a6fbe | 5116 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5117 | sed 's/^/| /' conftest.$ac_ext >&5 |
5118 | ||
5119 | ac_header_preproc=no | |
5120 | fi | |
7a197a62 | 5121 | |
ad6254c5 | 5122 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5123 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5124 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5125 | |
5126 | # So? What about this header? | |
8a2fc586 AK |
5127 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5128 | yes:no: ) | |
ec6a6fbe AK |
5129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5130 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5132 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5133 | ac_header_preproc=yes |
ad6254c5 | 5134 | ;; |
8a2fc586 | 5135 | no:yes:* ) |
ec6a6fbe AK |
5136 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5137 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5138 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5139 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5140 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5141 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5142 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5143 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5145 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5146 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5147 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5148 | |
ad6254c5 AK |
5149 | ;; |
5150 | esac | |
ec6a6fbe AK |
5151 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5152 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5153 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5154 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5155 | else |
8a2fc586 | 5156 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5157 | fi |
ec6a6fbe AK |
5158 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5159 | $as_echo "$as_val"'` | |
5160 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5161 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5162 | |
5163 | fi | |
ec6a6fbe AK |
5164 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5165 | $as_echo "$as_val"'` | |
5166 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5167 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5168 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5169 | _ACEOF |
4922197a | 5170 | |
4922197a | 5171 | else |
ec6a6fbe AK |
5172 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5173 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5174 | { (exit 1); exit 1; }; } |
80992638 AK |
5175 | fi |
5176 | ||
ad6254c5 | 5177 | done |
d0191583 JM |
5178 | ;; |
5179 | esac | |
4922197a | 5180 | |
4922197a | 5181 | |
4922197a | 5182 | |
ad6254c5 AK |
5183 | |
5184 | ||
d0191583 JM |
5185 | |
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5198 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5199 | sys/types.h unistd.h | |
ad6254c5 | 5200 | do |
ec6a6fbe | 5201 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5203 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5204 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5206 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5207 | fi |
ec6a6fbe AK |
5208 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5209 | $as_echo "$as_val"'` | |
5210 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5211 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5212 | else |
ad6254c5 | 5213 | # Is the header compilable? |
ec6a6fbe AK |
5214 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5215 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5216 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5217 | /* confdefs.h. */ |
5218 | _ACEOF | |
5219 | cat confdefs.h >>conftest.$ac_ext | |
5220 | cat >>conftest.$ac_ext <<_ACEOF | |
5221 | /* end confdefs.h. */ | |
5222 | $ac_includes_default | |
5223 | #include <$ac_header> | |
5224 | _ACEOF | |
5225 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5226 | if { (ac_try="$ac_compile" |
5227 | case "(($ac_try" in | |
5228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5229 | *) ac_try_echo=$ac_try;; | |
5230 | esac | |
ec6a6fbe AK |
5231 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5232 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5233 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5234 | ac_status=$? |
8a2fc586 AK |
5235 | grep -v '^ *+' conftest.er1 >conftest.err |
5236 | rm -f conftest.er1 | |
5237 | cat conftest.err >&5 | |
ec6a6fbe | 5238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5239 | (exit $ac_status); } && { |
5240 | test -z "$ac_c_werror_flag" || | |
5241 | test ! -s conftest.err | |
5242 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5243 | ac_header_compiler=yes |
5244 | else | |
ec6a6fbe | 5245 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5246 | sed 's/^/| /' conftest.$ac_ext >&5 |
5247 | ||
7a197a62 | 5248 | ac_header_compiler=no |
ad6254c5 | 5249 | fi |
7a197a62 AK |
5250 | |
5251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5252 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5253 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5254 | |
5255 | # Is the header present? | |
ec6a6fbe AK |
5256 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5257 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5258 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5259 | /* confdefs.h. */ |
5260 | _ACEOF | |
5261 | cat confdefs.h >>conftest.$ac_ext | |
5262 | cat >>conftest.$ac_ext <<_ACEOF | |
5263 | /* end confdefs.h. */ | |
5264 | #include <$ac_header> | |
5265 | _ACEOF | |
7a197a62 AK |
5266 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5267 | case "(($ac_try" in | |
5268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5269 | *) ac_try_echo=$ac_try;; | |
5270 | esac | |
ec6a6fbe AK |
5271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5272 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5273 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5274 | ac_status=$? |
5275 | grep -v '^ *+' conftest.er1 >conftest.err | |
5276 | rm -f conftest.er1 | |
5277 | cat conftest.err >&5 | |
ec6a6fbe | 5278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5279 | (exit $ac_status); } >/dev/null && { |
5280 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5281 | test ! -s conftest.err | |
5282 | }; then | |
ad6254c5 AK |
5283 | ac_header_preproc=yes |
5284 | else | |
ec6a6fbe | 5285 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5286 | sed 's/^/| /' conftest.$ac_ext >&5 |
5287 | ||
5288 | ac_header_preproc=no | |
5289 | fi | |
7a197a62 | 5290 | |
ad6254c5 | 5291 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5292 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5293 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5294 | |
5295 | # So? What about this header? | |
8a2fc586 AK |
5296 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5297 | yes:no: ) | |
ec6a6fbe AK |
5298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5299 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5301 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5302 | ac_header_preproc=yes |
ad6254c5 | 5303 | ;; |
8a2fc586 | 5304 | no:yes:* ) |
ec6a6fbe AK |
5305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5306 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5308 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5310 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5312 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5314 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5315 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5316 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5317 | |
ad6254c5 AK |
5318 | ;; |
5319 | esac | |
ec6a6fbe AK |
5320 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5321 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5323 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5324 | else |
8a2fc586 | 5325 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5326 | fi |
ec6a6fbe AK |
5327 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5328 | $as_echo "$as_val"'` | |
5329 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5330 | $as_echo "$ac_res" >&6; } | |
80992638 | 5331 | |
ad6254c5 | 5332 | fi |
ec6a6fbe AK |
5333 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5334 | $as_echo "$as_val"'` | |
5335 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5336 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5337 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5338 | _ACEOF |
795ca3e5 | 5339 | |
795ca3e5 | 5340 | else |
ec6a6fbe AK |
5341 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5342 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5343 | { (exit 1); exit 1; }; } |
80992638 AK |
5344 | fi |
5345 | ||
ad6254c5 | 5346 | done |
ad6254c5 | 5347 | |
795ca3e5 | 5348 | |
d0191583 JM |
5349 | |
5350 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5351 | do |
ec6a6fbe | 5352 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5354 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5355 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5356 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5357 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5358 | fi |
ec6a6fbe AK |
5359 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5360 | $as_echo "$as_val"'` | |
5361 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5362 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5363 | else |
5364 | # Is the header compilable? | |
ec6a6fbe AK |
5365 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5366 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5367 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5368 | /* confdefs.h. */ |
5369 | _ACEOF | |
5370 | cat confdefs.h >>conftest.$ac_ext | |
5371 | cat >>conftest.$ac_ext <<_ACEOF | |
5372 | /* end confdefs.h. */ | |
5373 | $ac_includes_default | |
5374 | #include <$ac_header> | |
5375 | _ACEOF | |
5376 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5377 | if { (ac_try="$ac_compile" |
5378 | case "(($ac_try" in | |
5379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5380 | *) ac_try_echo=$ac_try;; | |
5381 | esac | |
ec6a6fbe AK |
5382 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5383 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5384 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5385 | ac_status=$? |
8a2fc586 AK |
5386 | grep -v '^ *+' conftest.er1 >conftest.err |
5387 | rm -f conftest.er1 | |
5388 | cat conftest.err >&5 | |
ec6a6fbe | 5389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5390 | (exit $ac_status); } && { |
5391 | test -z "$ac_c_werror_flag" || | |
5392 | test ! -s conftest.err | |
5393 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5394 | ac_header_compiler=yes |
5395 | else | |
ec6a6fbe | 5396 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5397 | sed 's/^/| /' conftest.$ac_ext >&5 |
5398 | ||
7a197a62 | 5399 | ac_header_compiler=no |
ad6254c5 | 5400 | fi |
7a197a62 AK |
5401 | |
5402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5403 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5404 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5405 | |
5406 | # Is the header present? | |
ec6a6fbe AK |
5407 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5408 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5409 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5410 | /* confdefs.h. */ |
5411 | _ACEOF | |
5412 | cat confdefs.h >>conftest.$ac_ext | |
5413 | cat >>conftest.$ac_ext <<_ACEOF | |
5414 | /* end confdefs.h. */ | |
5415 | #include <$ac_header> | |
5416 | _ACEOF | |
7a197a62 AK |
5417 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5418 | case "(($ac_try" in | |
5419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5420 | *) ac_try_echo=$ac_try;; | |
5421 | esac | |
ec6a6fbe AK |
5422 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5423 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5424 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5425 | ac_status=$? |
5426 | grep -v '^ *+' conftest.er1 >conftest.err | |
5427 | rm -f conftest.er1 | |
5428 | cat conftest.err >&5 | |
ec6a6fbe | 5429 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5430 | (exit $ac_status); } >/dev/null && { |
5431 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5432 | test ! -s conftest.err | |
5433 | }; then | |
ad6254c5 AK |
5434 | ac_header_preproc=yes |
5435 | else | |
ec6a6fbe | 5436 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5437 | sed 's/^/| /' conftest.$ac_ext >&5 |
5438 | ||
5439 | ac_header_preproc=no | |
5440 | fi | |
7a197a62 | 5441 | |
ad6254c5 | 5442 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5443 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5444 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5445 | |
5446 | # So? What about this header? | |
8a2fc586 AK |
5447 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5448 | yes:no: ) | |
ec6a6fbe AK |
5449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5450 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5452 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5453 | ac_header_preproc=yes |
ad6254c5 | 5454 | ;; |
8a2fc586 | 5455 | no:yes:* ) |
ec6a6fbe AK |
5456 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5457 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5458 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5459 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5460 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5461 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5462 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5463 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5464 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5465 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5466 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5467 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5468 | |
ad6254c5 AK |
5469 | ;; |
5470 | esac | |
ec6a6fbe AK |
5471 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5472 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5474 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5475 | else |
8a2fc586 | 5476 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5477 | fi |
ec6a6fbe AK |
5478 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5479 | $as_echo "$as_val"'` | |
5480 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5481 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5482 | |
ad6254c5 | 5483 | fi |
ec6a6fbe AK |
5484 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5485 | $as_echo "$as_val"'` | |
5486 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5487 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5488 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5489 | _ACEOF |
5490 | ||
80992638 AK |
5491 | fi |
5492 | ||
ad6254c5 | 5493 | done |
d0191583 | 5494 | |
d3c8211f | 5495 | |
80992638 | 5496 | ################################################################################ |
ec6a6fbe AK |
5497 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5498 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5499 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5500 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5501 | else |
ad6254c5 | 5502 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5503 | /* confdefs.h. */ |
5504 | _ACEOF | |
5505 | cat confdefs.h >>conftest.$ac_ext | |
5506 | cat >>conftest.$ac_ext <<_ACEOF | |
5507 | /* end confdefs.h. */ | |
5508 | ||
5509 | int | |
5510 | main () | |
5511 | { | |
5512 | /* FIXME: Include the comments suggested by Paul. */ | |
5513 | #ifndef __cplusplus | |
5514 | /* Ultrix mips cc rejects this. */ | |
5515 | typedef int charset[2]; | |
25fbec5b | 5516 | const charset cs; |
ad6254c5 | 5517 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5518 | char const *const *pcpcc; |
5519 | char **ppc; | |
ad6254c5 AK |
5520 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5521 | struct point {int x, y;}; | |
5522 | static struct point const zero = {0,0}; | |
5523 | /* AIX XL C 1.02.0.0 rejects this. | |
5524 | It does not let you subtract one const X* pointer from another in | |
5525 | an arm of an if-expression whose if-part is not a constant | |
5526 | expression */ | |
5527 | const char *g = "string"; | |
25fbec5b | 5528 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5529 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5530 | ++pcpcc; |
5531 | ppc = (char**) pcpcc; | |
5532 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5533 | { /* SCO 3.2v4 cc rejects this. */ |
5534 | char *t; | |
5535 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5536 | ||
5537 | *t++ = 0; | |
7a197a62 | 5538 | if (s) return 0; |
ad6254c5 AK |
5539 | } |
5540 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5541 | int x[] = {25, 17}; | |
5542 | const int *foo = &x[0]; | |
5543 | ++foo; | |
5544 | } | |
5545 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5546 | typedef const int *iptr; | |
5547 | iptr p = 0; | |
5548 | ++p; | |
5549 | } | |
5550 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5551 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5552 | struct s { int j; const int *ap[3]; }; | |
5553 | struct s *b; b->j = 5; | |
5554 | } | |
5555 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5556 | const int foo = 10; | |
7a197a62 | 5557 | if (!foo) return 0; |
ad6254c5 | 5558 | } |
25fbec5b | 5559 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5560 | #endif |
5561 | ||
5562 | ; | |
5563 | return 0; | |
5564 | } | |
5565 | _ACEOF | |
5566 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5567 | if { (ac_try="$ac_compile" |
5568 | case "(($ac_try" in | |
5569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5570 | *) ac_try_echo=$ac_try;; | |
5571 | esac | |
ec6a6fbe AK |
5572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5573 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5574 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5575 | ac_status=$? |
8a2fc586 AK |
5576 | grep -v '^ *+' conftest.er1 >conftest.err |
5577 | rm -f conftest.er1 | |
5578 | cat conftest.err >&5 | |
ec6a6fbe | 5579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5580 | (exit $ac_status); } && { |
5581 | test -z "$ac_c_werror_flag" || | |
5582 | test ! -s conftest.err | |
5583 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5584 | ac_cv_c_const=yes |
5585 | else | |
ec6a6fbe | 5586 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5587 | sed 's/^/| /' conftest.$ac_ext >&5 |
5588 | ||
7a197a62 | 5589 | ac_cv_c_const=no |
ad6254c5 | 5590 | fi |
7a197a62 AK |
5591 | |
5592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5593 | fi |
ec6a6fbe AK |
5594 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5595 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5596 | if test $ac_cv_c_const = no; then |
80992638 | 5597 | |
ad6254c5 | 5598 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5599 | #define const /**/ |
ad6254c5 | 5600 | _ACEOF |
80992638 | 5601 | |
d3c8211f | 5602 | fi |
d3c8211f | 5603 | |
ec6a6fbe AK |
5604 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5605 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5606 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5607 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5608 | else |
ad6254c5 AK |
5609 | ac_cv_c_inline=no |
5610 | for ac_kw in inline __inline__ __inline; do | |
5611 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5612 | /* confdefs.h. */ |
5613 | _ACEOF | |
5614 | cat confdefs.h >>conftest.$ac_ext | |
5615 | cat >>conftest.$ac_ext <<_ACEOF | |
5616 | /* end confdefs.h. */ | |
5617 | #ifndef __cplusplus | |
5618 | typedef int foo_t; | |
5619 | static $ac_kw foo_t static_foo () {return 0; } | |
5620 | $ac_kw foo_t foo () {return 0; } | |
5621 | #endif | |
80992638 | 5622 | |
ad6254c5 AK |
5623 | _ACEOF |
5624 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5625 | if { (ac_try="$ac_compile" |
5626 | case "(($ac_try" in | |
5627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5628 | *) ac_try_echo=$ac_try;; | |
5629 | esac | |
ec6a6fbe AK |
5630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5631 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5632 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5633 | ac_status=$? |
8a2fc586 AK |
5634 | grep -v '^ *+' conftest.er1 >conftest.err |
5635 | rm -f conftest.er1 | |
5636 | cat conftest.err >&5 | |
ec6a6fbe | 5637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5638 | (exit $ac_status); } && { |
5639 | test -z "$ac_c_werror_flag" || | |
5640 | test ! -s conftest.err | |
5641 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5642 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5643 | else |
ec6a6fbe | 5644 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5645 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5646 | |
7a197a62 | 5647 | |
8ce0cbda | 5648 | fi |
7a197a62 AK |
5649 | |
5650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5651 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5652 | done |
8ce0cbda | 5653 | |
8ce0cbda | 5654 | fi |
ec6a6fbe AK |
5655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5656 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5657 | |
5658 | ||
ad6254c5 AK |
5659 | case $ac_cv_c_inline in |
5660 | inline | yes) ;; | |
8a2fc586 AK |
5661 | *) |
5662 | case $ac_cv_c_inline in | |
5663 | no) ac_val=;; | |
5664 | *) ac_val=$ac_cv_c_inline;; | |
5665 | esac | |
5666 | cat >>confdefs.h <<_ACEOF | |
5667 | #ifndef __cplusplus | |
5668 | #define inline $ac_val | |
5669 | #endif | |
c1c065a3 | 5670 | _ACEOF |
d0191583 JM |
5671 | ;; |
5672 | esac | |
5673 | ||
ec6a6fbe AK |
5674 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5675 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5676 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5677 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5678 | else |
5679 | cat >conftest.$ac_ext <<_ACEOF | |
5680 | /* confdefs.h. */ | |
5681 | _ACEOF | |
5682 | cat confdefs.h >>conftest.$ac_ext | |
5683 | cat >>conftest.$ac_ext <<_ACEOF | |
5684 | /* end confdefs.h. */ | |
5685 | $ac_includes_default | |
5686 | int | |
5687 | main () | |
5688 | { | |
5689 | static struct stat ac_aggr; | |
5690 | if (ac_aggr.st_rdev) | |
5691 | return 0; | |
5692 | ; | |
5693 | return 0; | |
5694 | } | |
5695 | _ACEOF | |
5696 | rm -f conftest.$ac_objext | |
5697 | if { (ac_try="$ac_compile" | |
5698 | case "(($ac_try" in | |
5699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5700 | *) ac_try_echo=$ac_try;; | |
5701 | esac | |
ec6a6fbe AK |
5702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5703 | $as_echo "$ac_try_echo") >&5 | |
5704 | (eval "$ac_compile") 2>conftest.er1 | |
5705 | ac_status=$? | |
5706 | grep -v '^ *+' conftest.er1 >conftest.err | |
5707 | rm -f conftest.er1 | |
5708 | cat conftest.err >&5 | |
5709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5710 | (exit $ac_status); } && { | |
5711 | test -z "$ac_c_werror_flag" || | |
5712 | test ! -s conftest.err | |
5713 | } && test -s conftest.$ac_objext; then | |
5714 | ac_cv_member_struct_stat_st_rdev=yes | |
5715 | else | |
5716 | $as_echo "$as_me: failed program was:" >&5 | |
5717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5718 | ||
5719 | cat >conftest.$ac_ext <<_ACEOF | |
5720 | /* confdefs.h. */ | |
5721 | _ACEOF | |
5722 | cat confdefs.h >>conftest.$ac_ext | |
5723 | cat >>conftest.$ac_ext <<_ACEOF | |
5724 | /* end confdefs.h. */ | |
5725 | $ac_includes_default | |
5726 | int | |
5727 | main () | |
5728 | { | |
5729 | static struct stat ac_aggr; | |
5730 | if (sizeof ac_aggr.st_rdev) | |
5731 | return 0; | |
5732 | ; | |
5733 | return 0; | |
5734 | } | |
5735 | _ACEOF | |
5736 | rm -f conftest.$ac_objext | |
5737 | if { (ac_try="$ac_compile" | |
5738 | case "(($ac_try" in | |
5739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5740 | *) ac_try_echo=$ac_try;; | |
5741 | esac | |
5742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5743 | $as_echo "$ac_try_echo") >&5 | |
5744 | (eval "$ac_compile") 2>conftest.er1 | |
5745 | ac_status=$? | |
5746 | grep -v '^ *+' conftest.er1 >conftest.err | |
5747 | rm -f conftest.er1 | |
5748 | cat conftest.err >&5 | |
5749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5750 | (exit $ac_status); } && { | |
5751 | test -z "$ac_c_werror_flag" || | |
5752 | test ! -s conftest.err | |
5753 | } && test -s conftest.$ac_objext; then | |
5754 | ac_cv_member_struct_stat_st_rdev=yes | |
5755 | else | |
5756 | $as_echo "$as_me: failed program was:" >&5 | |
5757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5758 | ||
5759 | ac_cv_member_struct_stat_st_rdev=no | |
5760 | fi | |
5761 | ||
5762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5763 | fi | |
5764 | ||
5765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5766 | fi | |
5767 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5768 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5769 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5770 | ||
5771 | cat >>confdefs.h <<_ACEOF | |
5772 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5773 | _ACEOF | |
5774 | ||
5775 | ||
5776 | fi | |
5777 | ||
5778 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5779 | $as_echo_n "checking for off_t... " >&6; } | |
5780 | if test "${ac_cv_type_off_t+set}" = set; then | |
5781 | $as_echo_n "(cached) " >&6 | |
5782 | else | |
5783 | ac_cv_type_off_t=no | |
5784 | cat >conftest.$ac_ext <<_ACEOF | |
5785 | /* confdefs.h. */ | |
5786 | _ACEOF | |
5787 | cat confdefs.h >>conftest.$ac_ext | |
5788 | cat >>conftest.$ac_ext <<_ACEOF | |
5789 | /* end confdefs.h. */ | |
5790 | $ac_includes_default | |
5791 | int | |
5792 | main () | |
5793 | { | |
5794 | if (sizeof (off_t)) | |
5795 | return 0; | |
5796 | ; | |
5797 | return 0; | |
5798 | } | |
5799 | _ACEOF | |
5800 | rm -f conftest.$ac_objext | |
5801 | if { (ac_try="$ac_compile" | |
5802 | case "(($ac_try" in | |
5803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5804 | *) ac_try_echo=$ac_try;; | |
5805 | esac | |
5806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5807 | $as_echo "$ac_try_echo") >&5 | |
5808 | (eval "$ac_compile") 2>conftest.er1 | |
5809 | ac_status=$? | |
5810 | grep -v '^ *+' conftest.er1 >conftest.err | |
5811 | rm -f conftest.er1 | |
5812 | cat conftest.err >&5 | |
5813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5814 | (exit $ac_status); } && { | |
5815 | test -z "$ac_c_werror_flag" || | |
5816 | test ! -s conftest.err | |
5817 | } && test -s conftest.$ac_objext; then | |
5818 | cat >conftest.$ac_ext <<_ACEOF | |
5819 | /* confdefs.h. */ | |
5820 | _ACEOF | |
5821 | cat confdefs.h >>conftest.$ac_ext | |
5822 | cat >>conftest.$ac_ext <<_ACEOF | |
5823 | /* end confdefs.h. */ | |
5824 | $ac_includes_default | |
5825 | int | |
5826 | main () | |
5827 | { | |
5828 | if (sizeof ((off_t))) | |
5829 | return 0; | |
5830 | ; | |
5831 | return 0; | |
5832 | } | |
5833 | _ACEOF | |
5834 | rm -f conftest.$ac_objext | |
5835 | if { (ac_try="$ac_compile" | |
5836 | case "(($ac_try" in | |
5837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5838 | *) ac_try_echo=$ac_try;; | |
5839 | esac | |
5840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5841 | $as_echo "$ac_try_echo") >&5 | |
5842 | (eval "$ac_compile") 2>conftest.er1 | |
5843 | ac_status=$? | |
5844 | grep -v '^ *+' conftest.er1 >conftest.err | |
5845 | rm -f conftest.er1 | |
5846 | cat conftest.err >&5 | |
5847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5848 | (exit $ac_status); } && { | |
5849 | test -z "$ac_c_werror_flag" || | |
5850 | test ! -s conftest.err | |
5851 | } && test -s conftest.$ac_objext; then | |
5852 | : | |
5853 | else | |
5854 | $as_echo "$as_me: failed program was:" >&5 | |
5855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5856 | ||
5857 | ac_cv_type_off_t=yes | |
5858 | fi | |
5859 | ||
5860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5861 | else | |
5862 | $as_echo "$as_me: failed program was:" >&5 | |
5863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5864 | ||
5865 | ||
5866 | fi | |
5867 | ||
5868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5869 | fi | |
5870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5871 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5872 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5873 | : | |
5874 | else | |
5875 | ||
5876 | cat >>confdefs.h <<_ACEOF | |
5877 | #define off_t long int | |
5878 | _ACEOF | |
5879 | ||
5880 | fi | |
5881 | ||
5882 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5883 | $as_echo_n "checking for pid_t... " >&6; } | |
5884 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5885 | $as_echo_n "(cached) " >&6 | |
5886 | else | |
5887 | ac_cv_type_pid_t=no | |
5888 | cat >conftest.$ac_ext <<_ACEOF | |
5889 | /* confdefs.h. */ | |
5890 | _ACEOF | |
5891 | cat confdefs.h >>conftest.$ac_ext | |
5892 | cat >>conftest.$ac_ext <<_ACEOF | |
5893 | /* end confdefs.h. */ | |
5894 | $ac_includes_default | |
5895 | int | |
5896 | main () | |
5897 | { | |
5898 | if (sizeof (pid_t)) | |
5899 | return 0; | |
5900 | ; | |
5901 | return 0; | |
5902 | } | |
5903 | _ACEOF | |
5904 | rm -f conftest.$ac_objext | |
5905 | if { (ac_try="$ac_compile" | |
5906 | case "(($ac_try" in | |
5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5908 | *) ac_try_echo=$ac_try;; | |
5909 | esac | |
5910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5911 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5912 | (eval "$ac_compile") 2>conftest.er1 |
5913 | ac_status=$? | |
5914 | grep -v '^ *+' conftest.er1 >conftest.err | |
5915 | rm -f conftest.er1 | |
5916 | cat conftest.err >&5 | |
ec6a6fbe | 5917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5918 | (exit $ac_status); } && { |
5919 | test -z "$ac_c_werror_flag" || | |
5920 | test ! -s conftest.err | |
5921 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5922 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5923 | /* confdefs.h. */ |
5924 | _ACEOF | |
5925 | cat confdefs.h >>conftest.$ac_ext | |
5926 | cat >>conftest.$ac_ext <<_ACEOF | |
5927 | /* end confdefs.h. */ | |
5928 | $ac_includes_default | |
5929 | int | |
5930 | main () | |
5931 | { | |
ec6a6fbe AK |
5932 | if (sizeof ((pid_t))) |
5933 | return 0; | |
d0191583 JM |
5934 | ; |
5935 | return 0; | |
5936 | } | |
5937 | _ACEOF | |
5938 | rm -f conftest.$ac_objext | |
5939 | if { (ac_try="$ac_compile" | |
5940 | case "(($ac_try" in | |
5941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5942 | *) ac_try_echo=$ac_try;; | |
5943 | esac | |
ec6a6fbe AK |
5944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5945 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5946 | (eval "$ac_compile") 2>conftest.er1 |
5947 | ac_status=$? | |
5948 | grep -v '^ *+' conftest.er1 >conftest.err | |
5949 | rm -f conftest.er1 | |
5950 | cat conftest.err >&5 | |
ec6a6fbe | 5951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5952 | (exit $ac_status); } && { |
5953 | test -z "$ac_c_werror_flag" || | |
5954 | test ! -s conftest.err | |
5955 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5956 | : |
d0191583 | 5957 | else |
ec6a6fbe | 5958 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5959 | sed 's/^/| /' conftest.$ac_ext >&5 |
5960 | ||
ec6a6fbe | 5961 | ac_cv_type_pid_t=yes |
d0191583 JM |
5962 | fi |
5963 | ||
5964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5965 | else |
5966 | $as_echo "$as_me: failed program was:" >&5 | |
5967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5968 | ||
5969 | ||
d0191583 JM |
5970 | fi |
5971 | ||
5972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5973 | fi | |
ec6a6fbe AK |
5974 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5975 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5976 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5977 | : | |
5978 | else | |
d0191583 JM |
5979 | |
5980 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5981 | #define pid_t int |
d0191583 JM |
5982 | _ACEOF |
5983 | ||
d0191583 | 5984 | fi |
8ce0cbda | 5985 | |
ec6a6fbe AK |
5986 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5987 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5988 | if test "${ac_cv_type_signal+set}" = set; then | |
5989 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5990 | else |
b145d876 ZK |
5991 | cat >conftest.$ac_ext <<_ACEOF |
5992 | /* confdefs.h. */ | |
5993 | _ACEOF | |
5994 | cat confdefs.h >>conftest.$ac_ext | |
5995 | cat >>conftest.$ac_ext <<_ACEOF | |
5996 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5997 | #include <sys/types.h> |
5998 | #include <signal.h> | |
5999 | ||
b145d876 ZK |
6000 | int |
6001 | main () | |
6002 | { | |
ec6a6fbe | 6003 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
6004 | ; |
6005 | return 0; | |
6006 | } | |
6007 | _ACEOF | |
6008 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6009 | if { (ac_try="$ac_compile" |
6010 | case "(($ac_try" in | |
6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6012 | *) ac_try_echo=$ac_try;; | |
6013 | esac | |
ec6a6fbe AK |
6014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6015 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6016 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6017 | ac_status=$? |
8a2fc586 AK |
6018 | grep -v '^ *+' conftest.er1 >conftest.err |
6019 | rm -f conftest.er1 | |
6020 | cat conftest.err >&5 | |
ec6a6fbe | 6021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6022 | (exit $ac_status); } && { |
6023 | test -z "$ac_c_werror_flag" || | |
6024 | test ! -s conftest.err | |
6025 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6026 | ac_cv_type_signal=int |
b145d876 | 6027 | else |
ec6a6fbe | 6028 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6029 | sed 's/^/| /' conftest.$ac_ext >&5 |
6030 | ||
ec6a6fbe | 6031 | ac_cv_type_signal=void |
ad6254c5 | 6032 | fi |
b145d876 ZK |
6033 | |
6034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6035 | fi | |
ec6a6fbe AK |
6036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6037 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6038 | |
ad6254c5 | 6039 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6040 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6041 | _ACEOF |
199e490e | 6042 | |
b896caa1 | 6043 | |
ec6a6fbe AK |
6044 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6045 | $as_echo_n "checking for size_t... " >&6; } | |
6046 | if test "${ac_cv_type_size_t+set}" = set; then | |
6047 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6048 | else |
ec6a6fbe AK |
6049 | ac_cv_type_size_t=no |
6050 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6051 | /* confdefs.h. */ |
6052 | _ACEOF | |
6053 | cat confdefs.h >>conftest.$ac_ext | |
6054 | cat >>conftest.$ac_ext <<_ACEOF | |
6055 | /* end confdefs.h. */ | |
6056 | $ac_includes_default | |
6057 | int | |
6058 | main () | |
6059 | { | |
ec6a6fbe AK |
6060 | if (sizeof (size_t)) |
6061 | return 0; | |
ad6254c5 AK |
6062 | ; |
6063 | return 0; | |
6064 | } | |
6065 | _ACEOF | |
6066 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6067 | if { (ac_try="$ac_compile" |
6068 | case "(($ac_try" in | |
6069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6070 | *) ac_try_echo=$ac_try;; | |
6071 | esac | |
ec6a6fbe AK |
6072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6073 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6074 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6075 | ac_status=$? |
8a2fc586 AK |
6076 | grep -v '^ *+' conftest.er1 >conftest.err |
6077 | rm -f conftest.er1 | |
6078 | cat conftest.err >&5 | |
ec6a6fbe | 6079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6080 | (exit $ac_status); } && { |
6081 | test -z "$ac_c_werror_flag" || | |
6082 | test ! -s conftest.err | |
6083 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6084 | cat >conftest.$ac_ext <<_ACEOF |
6085 | /* confdefs.h. */ | |
6086 | _ACEOF | |
6087 | cat confdefs.h >>conftest.$ac_ext | |
6088 | cat >>conftest.$ac_ext <<_ACEOF | |
6089 | /* end confdefs.h. */ | |
ec6a6fbe | 6090 | $ac_includes_default |
d0191583 JM |
6091 | int |
6092 | main () | |
6093 | { | |
ec6a6fbe AK |
6094 | if (sizeof ((size_t))) |
6095 | return 0; | |
d0191583 JM |
6096 | ; |
6097 | return 0; | |
6098 | } | |
6099 | _ACEOF | |
6100 | rm -f conftest.$ac_objext | |
6101 | if { (ac_try="$ac_compile" | |
6102 | case "(($ac_try" in | |
6103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6104 | *) ac_try_echo=$ac_try;; | |
6105 | esac | |
ec6a6fbe AK |
6106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6107 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6108 | (eval "$ac_compile") 2>conftest.er1 |
6109 | ac_status=$? | |
6110 | grep -v '^ *+' conftest.er1 >conftest.err | |
6111 | rm -f conftest.er1 | |
6112 | cat conftest.err >&5 | |
ec6a6fbe | 6113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6114 | (exit $ac_status); } && { |
6115 | test -z "$ac_c_werror_flag" || | |
6116 | test ! -s conftest.err | |
6117 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6118 | : |
d0191583 | 6119 | else |
ec6a6fbe | 6120 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6121 | sed 's/^/| /' conftest.$ac_ext >&5 |
6122 | ||
ec6a6fbe AK |
6123 | ac_cv_type_size_t=yes |
6124 | fi | |
6125 | ||
6126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6127 | else | |
6128 | $as_echo "$as_me: failed program was:" >&5 | |
6129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6130 | ||
6131 | ||
d0191583 JM |
6132 | fi |
6133 | ||
6134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6135 | fi | |
ec6a6fbe AK |
6136 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6137 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6138 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6139 | : | |
6140 | else | |
d0191583 JM |
6141 | |
6142 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6143 | #define size_t unsigned int |
d0191583 JM |
6144 | _ACEOF |
6145 | ||
ec6a6fbe | 6146 | fi |
d0191583 | 6147 | |
ec6a6fbe AK |
6148 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6149 | $as_echo_n "checking for mode_t... " >&6; } | |
6150 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6151 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6152 | else |
ec6a6fbe AK |
6153 | ac_cv_type_mode_t=no |
6154 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6155 | /* confdefs.h. */ |
6156 | _ACEOF | |
6157 | cat confdefs.h >>conftest.$ac_ext | |
6158 | cat >>conftest.$ac_ext <<_ACEOF | |
6159 | /* end confdefs.h. */ | |
6160 | $ac_includes_default | |
6161 | int | |
6162 | main () | |
6163 | { | |
ec6a6fbe AK |
6164 | if (sizeof (mode_t)) |
6165 | return 0; | |
ad6254c5 AK |
6166 | ; |
6167 | return 0; | |
6168 | } | |
6169 | _ACEOF | |
6170 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6171 | if { (ac_try="$ac_compile" |
6172 | case "(($ac_try" in | |
6173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6174 | *) ac_try_echo=$ac_try;; | |
6175 | esac | |
ec6a6fbe AK |
6176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6177 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6178 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6179 | ac_status=$? |
8a2fc586 AK |
6180 | grep -v '^ *+' conftest.er1 >conftest.err |
6181 | rm -f conftest.er1 | |
6182 | cat conftest.err >&5 | |
ec6a6fbe | 6183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6184 | (exit $ac_status); } && { |
6185 | test -z "$ac_c_werror_flag" || | |
6186 | test ! -s conftest.err | |
6187 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6188 | cat >conftest.$ac_ext <<_ACEOF |
6189 | /* confdefs.h. */ | |
6190 | _ACEOF | |
6191 | cat confdefs.h >>conftest.$ac_ext | |
6192 | cat >>conftest.$ac_ext <<_ACEOF | |
6193 | /* end confdefs.h. */ | |
6194 | $ac_includes_default | |
6195 | int | |
6196 | main () | |
6197 | { | |
ec6a6fbe AK |
6198 | if (sizeof ((mode_t))) |
6199 | return 0; | |
ad6254c5 AK |
6200 | ; |
6201 | return 0; | |
6202 | } | |
6203 | _ACEOF | |
6204 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6205 | if { (ac_try="$ac_compile" |
6206 | case "(($ac_try" in | |
6207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6208 | *) ac_try_echo=$ac_try;; | |
6209 | esac | |
ec6a6fbe AK |
6210 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6211 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6212 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6213 | ac_status=$? |
8a2fc586 AK |
6214 | grep -v '^ *+' conftest.er1 >conftest.err |
6215 | rm -f conftest.er1 | |
6216 | cat conftest.err >&5 | |
ec6a6fbe | 6217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6218 | (exit $ac_status); } && { |
6219 | test -z "$ac_c_werror_flag" || | |
6220 | test ! -s conftest.err | |
6221 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6222 | : |
6223 | else | |
6224 | $as_echo "$as_me: failed program was:" >&5 | |
6225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6226 | ||
6227 | ac_cv_type_mode_t=yes | |
6228 | fi | |
6229 | ||
6230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6231 | else |
ec6a6fbe | 6232 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6233 | sed 's/^/| /' conftest.$ac_ext >&5 |
6234 | ||
ec6a6fbe | 6235 | |
80992638 | 6236 | fi |
7a197a62 AK |
6237 | |
6238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6239 | fi |
ec6a6fbe AK |
6240 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6241 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6242 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6243 | : |
6244 | else | |
80992638 | 6245 | |
ad6254c5 AK |
6246 | cat >>confdefs.h <<_ACEOF |
6247 | #define mode_t int | |
6248 | _ACEOF | |
6249 | ||
6250 | fi | |
6251 | ||
ec6a6fbe AK |
6252 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6253 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6254 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6255 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6256 | else |
6257 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6258 | /* confdefs.h. */ |
6259 | _ACEOF | |
6260 | cat confdefs.h >>conftest.$ac_ext | |
6261 | cat >>conftest.$ac_ext <<_ACEOF | |
6262 | /* end confdefs.h. */ | |
6263 | $ac_includes_default | |
6264 | int | |
6265 | main () | |
6266 | { | |
6267 | static struct stat ac_aggr; | |
6268 | if (ac_aggr.st_rdev) | |
6269 | return 0; | |
6270 | ; | |
6271 | return 0; | |
6272 | } | |
6273 | _ACEOF | |
6274 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6275 | if { (ac_try="$ac_compile" |
6276 | case "(($ac_try" in | |
6277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6278 | *) ac_try_echo=$ac_try;; | |
6279 | esac | |
ec6a6fbe AK |
6280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6281 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6282 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6283 | ac_status=$? |
8a2fc586 AK |
6284 | grep -v '^ *+' conftest.er1 >conftest.err |
6285 | rm -f conftest.er1 | |
6286 | cat conftest.err >&5 | |
ec6a6fbe | 6287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6288 | (exit $ac_status); } && { |
6289 | test -z "$ac_c_werror_flag" || | |
6290 | test ! -s conftest.err | |
6291 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6292 | ac_cv_member_struct_stat_st_rdev=yes |
6293 | else | |
ec6a6fbe | 6294 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6295 | sed 's/^/| /' conftest.$ac_ext >&5 |
6296 | ||
7a197a62 | 6297 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6298 | /* confdefs.h. */ |
6299 | _ACEOF | |
6300 | cat confdefs.h >>conftest.$ac_ext | |
6301 | cat >>conftest.$ac_ext <<_ACEOF | |
6302 | /* end confdefs.h. */ | |
6303 | $ac_includes_default | |
6304 | int | |
6305 | main () | |
6306 | { | |
6307 | static struct stat ac_aggr; | |
6308 | if (sizeof ac_aggr.st_rdev) | |
6309 | return 0; | |
6310 | ; | |
6311 | return 0; | |
6312 | } | |
6313 | _ACEOF | |
6314 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6315 | if { (ac_try="$ac_compile" |
6316 | case "(($ac_try" in | |
6317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6318 | *) ac_try_echo=$ac_try;; | |
6319 | esac | |
ec6a6fbe AK |
6320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6321 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6322 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6323 | ac_status=$? |
8a2fc586 AK |
6324 | grep -v '^ *+' conftest.er1 >conftest.err |
6325 | rm -f conftest.er1 | |
6326 | cat conftest.err >&5 | |
ec6a6fbe | 6327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6328 | (exit $ac_status); } && { |
6329 | test -z "$ac_c_werror_flag" || | |
6330 | test ! -s conftest.err | |
6331 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6332 | ac_cv_member_struct_stat_st_rdev=yes |
6333 | else | |
ec6a6fbe | 6334 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6335 | sed 's/^/| /' conftest.$ac_ext >&5 |
6336 | ||
7a197a62 | 6337 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6338 | fi |
7a197a62 AK |
6339 | |
6340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6341 | fi |
7a197a62 AK |
6342 | |
6343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6344 | fi |
ec6a6fbe AK |
6345 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6346 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6347 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6348 | |
6349 | cat >>confdefs.h <<_ACEOF | |
6350 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6351 | _ACEOF | |
6352 | ||
6353 | ||
ad6254c5 AK |
6354 | fi |
6355 | ||
ec6a6fbe AK |
6356 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6357 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6358 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6359 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6360 | else |
6361 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6362 | /* confdefs.h. */ |
6363 | _ACEOF | |
6364 | cat confdefs.h >>conftest.$ac_ext | |
6365 | cat >>conftest.$ac_ext <<_ACEOF | |
6366 | /* end confdefs.h. */ | |
6367 | #include <sys/types.h> | |
6368 | #include <time.h> | |
6369 | ||
6370 | int | |
6371 | main () | |
6372 | { | |
25fbec5b AK |
6373 | struct tm tm; |
6374 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6375 | return !p; |
ad6254c5 AK |
6376 | ; |
6377 | return 0; | |
6378 | } | |
6379 | _ACEOF | |
6380 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6381 | if { (ac_try="$ac_compile" |
6382 | case "(($ac_try" in | |
6383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6384 | *) ac_try_echo=$ac_try;; | |
6385 | esac | |
ec6a6fbe AK |
6386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6387 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6388 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6389 | ac_status=$? |
8a2fc586 AK |
6390 | grep -v '^ *+' conftest.er1 >conftest.err |
6391 | rm -f conftest.er1 | |
6392 | cat conftest.err >&5 | |
ec6a6fbe | 6393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6394 | (exit $ac_status); } && { |
6395 | test -z "$ac_c_werror_flag" || | |
6396 | test ! -s conftest.err | |
6397 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6398 | ac_cv_struct_tm=time.h |
6399 | else | |
ec6a6fbe | 6400 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6401 | sed 's/^/| /' conftest.$ac_ext >&5 |
6402 | ||
7a197a62 | 6403 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6404 | fi |
7a197a62 AK |
6405 | |
6406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6407 | fi |
ec6a6fbe AK |
6408 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6409 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6410 | if test $ac_cv_struct_tm = sys/time.h; then |
6411 | ||
6412 | cat >>confdefs.h <<\_ACEOF | |
6413 | #define TM_IN_SYS_TIME 1 | |
6414 | _ACEOF | |
6415 | ||
6416 | fi | |
809fae91 | 6417 | |
795ca3e5 | 6418 | |
80992638 | 6419 | ################################################################################ |
ad6254c5 AK |
6420 | |
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
d0191583 JM |
6434 | |
6435 | ||
6436 | ||
6437 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6438 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6439 | uname | |
ad6254c5 | 6440 | do |
ec6a6fbe AK |
6441 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6442 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6443 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6444 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6445 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6446 | else |
ad6254c5 | 6447 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6448 | /* confdefs.h. */ |
6449 | _ACEOF | |
6450 | cat confdefs.h >>conftest.$ac_ext | |
6451 | cat >>conftest.$ac_ext <<_ACEOF | |
6452 | /* end confdefs.h. */ | |
8a2fc586 AK |
6453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6455 | #define $ac_func innocuous_$ac_func | |
6456 | ||
ad6254c5 AK |
6457 | /* System header to define __stub macros and hopefully few prototypes, |
6458 | which can conflict with char $ac_func (); below. | |
6459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6460 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6461 | |
ad6254c5 AK |
6462 | #ifdef __STDC__ |
6463 | # include <limits.h> | |
6464 | #else | |
6465 | # include <assert.h> | |
6466 | #endif | |
8a2fc586 AK |
6467 | |
6468 | #undef $ac_func | |
6469 | ||
7a197a62 AK |
6470 | /* Override any GCC internal prototype to avoid an error. |
6471 | Use char because int might match the return type of a GCC | |
6472 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6473 | #ifdef __cplusplus |
6474 | extern "C" | |
ad6254c5 | 6475 | #endif |
ad6254c5 AK |
6476 | char $ac_func (); |
6477 | /* The GNU C library defines this for functions which it implements | |
6478 | to always fail with ENOSYS. Some functions are actually named | |
6479 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6480 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6481 | choke me |
ad6254c5 AK |
6482 | #endif |
6483 | ||
6484 | int | |
6485 | main () | |
6486 | { | |
7a197a62 | 6487 | return $ac_func (); |
ad6254c5 AK |
6488 | ; |
6489 | return 0; | |
6490 | } | |
6491 | _ACEOF | |
6492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6493 | if { (ac_try="$ac_link" |
6494 | case "(($ac_try" in | |
6495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6496 | *) ac_try_echo=$ac_try;; | |
6497 | esac | |
ec6a6fbe AK |
6498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6499 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6500 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6501 | ac_status=$? |
8a2fc586 AK |
6502 | grep -v '^ *+' conftest.er1 >conftest.err |
6503 | rm -f conftest.er1 | |
6504 | cat conftest.err >&5 | |
ec6a6fbe | 6505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6506 | (exit $ac_status); } && { |
6507 | test -z "$ac_c_werror_flag" || | |
6508 | test ! -s conftest.err | |
ec6a6fbe AK |
6509 | } && test -s conftest$ac_exeext && { |
6510 | test "$cross_compiling" = yes || | |
6511 | $as_test_x conftest$ac_exeext | |
6512 | }; then | |
fc54be10 AK |
6513 | eval "$as_ac_var=yes" |
6514 | else | |
ec6a6fbe | 6515 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6516 | sed 's/^/| /' conftest.$ac_ext >&5 |
6517 | ||
6518 | eval "$as_ac_var=no" | |
6519 | fi | |
6520 | ||
ec6a6fbe | 6521 | rm -rf conftest.dSYM |
25fbec5b | 6522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6523 | conftest$ac_exeext conftest.$ac_ext |
6524 | fi | |
ec6a6fbe AK |
6525 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6526 | $as_echo "$as_val"'` | |
6527 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6528 | $as_echo "$ac_res" >&6; } | |
6529 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6530 | $as_echo "$as_val"'` | |
6531 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6532 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6533 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6534 | _ACEOF |
6535 | ||
6536 | else | |
ec6a6fbe AK |
6537 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6538 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6539 | { (exit 1); exit 1; }; } |
6540 | fi | |
6541 | done | |
795ca3e5 | 6542 | |
a0f9708e AK |
6543 | |
6544 | for ac_func in siginterrupt | |
6545 | do | |
6546 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6547 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6548 | $as_echo_n "checking for $ac_func... " >&6; } | |
6549 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6550 | $as_echo_n "(cached) " >&6 | |
6551 | else | |
6552 | cat >conftest.$ac_ext <<_ACEOF | |
6553 | /* confdefs.h. */ | |
6554 | _ACEOF | |
6555 | cat confdefs.h >>conftest.$ac_ext | |
6556 | cat >>conftest.$ac_ext <<_ACEOF | |
6557 | /* end confdefs.h. */ | |
6558 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6560 | #define $ac_func innocuous_$ac_func | |
6561 | ||
6562 | /* System header to define __stub macros and hopefully few prototypes, | |
6563 | which can conflict with char $ac_func (); below. | |
6564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6565 | <limits.h> exists even on freestanding compilers. */ | |
6566 | ||
6567 | #ifdef __STDC__ | |
6568 | # include <limits.h> | |
6569 | #else | |
6570 | # include <assert.h> | |
6571 | #endif | |
6572 | ||
6573 | #undef $ac_func | |
6574 | ||
6575 | /* Override any GCC internal prototype to avoid an error. | |
6576 | Use char because int might match the return type of a GCC | |
6577 | builtin and then its argument prototype would still apply. */ | |
6578 | #ifdef __cplusplus | |
6579 | extern "C" | |
6580 | #endif | |
6581 | char $ac_func (); | |
6582 | /* The GNU C library defines this for functions which it implements | |
6583 | to always fail with ENOSYS. Some functions are actually named | |
6584 | something starting with __ and the normal name is an alias. */ | |
6585 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6586 | choke me | |
6587 | #endif | |
6588 | ||
6589 | int | |
6590 | main () | |
6591 | { | |
6592 | return $ac_func (); | |
6593 | ; | |
6594 | return 0; | |
6595 | } | |
6596 | _ACEOF | |
6597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6598 | if { (ac_try="$ac_link" | |
6599 | case "(($ac_try" in | |
6600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6601 | *) ac_try_echo=$ac_try;; | |
6602 | esac | |
6603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6604 | $as_echo "$ac_try_echo") >&5 | |
6605 | (eval "$ac_link") 2>conftest.er1 | |
6606 | ac_status=$? | |
6607 | grep -v '^ *+' conftest.er1 >conftest.err | |
6608 | rm -f conftest.er1 | |
6609 | cat conftest.err >&5 | |
6610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6611 | (exit $ac_status); } && { | |
6612 | test -z "$ac_c_werror_flag" || | |
6613 | test ! -s conftest.err | |
6614 | } && test -s conftest$ac_exeext && { | |
6615 | test "$cross_compiling" = yes || | |
6616 | $as_test_x conftest$ac_exeext | |
6617 | }; then | |
6618 | eval "$as_ac_var=yes" | |
6619 | else | |
6620 | $as_echo "$as_me: failed program was:" >&5 | |
6621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6622 | ||
6623 | eval "$as_ac_var=no" | |
6624 | fi | |
6625 | ||
6626 | rm -rf conftest.dSYM | |
6627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6628 | conftest$ac_exeext conftest.$ac_ext | |
6629 | fi | |
6630 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
6631 | $as_echo "$as_val"'` | |
6632 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6633 | $as_echo "$ac_res" >&6; } | |
6634 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6635 | $as_echo "$as_val"'` | |
6636 | if test "x$as_val" = x""yes; then | |
6637 | cat >>confdefs.h <<_ACEOF | |
6638 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6639 | _ACEOF | |
6640 | ||
6641 | fi | |
6642 | done | |
6643 | ||
ad6254c5 AK |
6644 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6645 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6646 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6647 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6648 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6649 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6650 | else |
6651 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6652 | /* confdefs.h. */ |
6653 | _ACEOF | |
6654 | cat confdefs.h >>conftest.$ac_ext | |
6655 | cat >>conftest.$ac_ext <<_ACEOF | |
6656 | /* end confdefs.h. */ | |
6657 | #include <alloca.h> | |
6658 | int | |
6659 | main () | |
6660 | { | |
6661 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6662 | if (p) return 0; |
ad6254c5 AK |
6663 | ; |
6664 | return 0; | |
6665 | } | |
6666 | _ACEOF | |
6667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6668 | if { (ac_try="$ac_link" |
6669 | case "(($ac_try" in | |
6670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6671 | *) ac_try_echo=$ac_try;; | |
6672 | esac | |
ec6a6fbe AK |
6673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6674 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6675 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6676 | ac_status=$? |
8a2fc586 AK |
6677 | grep -v '^ *+' conftest.er1 >conftest.err |
6678 | rm -f conftest.er1 | |
6679 | cat conftest.err >&5 | |
ec6a6fbe | 6680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6681 | (exit $ac_status); } && { |
6682 | test -z "$ac_c_werror_flag" || | |
6683 | test ! -s conftest.err | |
ec6a6fbe AK |
6684 | } && test -s conftest$ac_exeext && { |
6685 | test "$cross_compiling" = yes || | |
6686 | $as_test_x conftest$ac_exeext | |
6687 | }; then | |
ad6254c5 AK |
6688 | ac_cv_working_alloca_h=yes |
6689 | else | |
ec6a6fbe | 6690 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6691 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6692 | |
7a197a62 | 6693 | ac_cv_working_alloca_h=no |
ad6254c5 | 6694 | fi |
7a197a62 | 6695 | |
ec6a6fbe | 6696 | rm -rf conftest.dSYM |
25fbec5b | 6697 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6698 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6699 | fi |
ec6a6fbe AK |
6700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6701 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6702 | if test $ac_cv_working_alloca_h = yes; then |
6703 | ||
6704 | cat >>confdefs.h <<\_ACEOF | |
6705 | #define HAVE_ALLOCA_H 1 | |
6706 | _ACEOF | |
6707 | ||
6708 | fi | |
6709 | ||
ec6a6fbe AK |
6710 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6711 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6712 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6713 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6714 | else |
6715 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6716 | /* confdefs.h. */ |
6717 | _ACEOF | |
6718 | cat confdefs.h >>conftest.$ac_ext | |
6719 | cat >>conftest.$ac_ext <<_ACEOF | |
6720 | /* end confdefs.h. */ | |
6721 | #ifdef __GNUC__ | |
6722 | # define alloca __builtin_alloca | |
6723 | #else | |
6724 | # ifdef _MSC_VER | |
6725 | # include <malloc.h> | |
6726 | # define alloca _alloca | |
6727 | # else | |
25fbec5b | 6728 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6729 | # include <alloca.h> |
6730 | # else | |
6731 | # ifdef _AIX | |
6732 | #pragma alloca | |
6733 | # else | |
6734 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6735 | char *alloca (); | |
6736 | # endif | |
6737 | # endif | |
6738 | # endif | |
6739 | # endif | |
6740 | #endif | |
6741 | ||
6742 | int | |
6743 | main () | |
6744 | { | |
6745 | char *p = (char *) alloca (1); | |
7a197a62 | 6746 | if (p) return 0; |
ad6254c5 AK |
6747 | ; |
6748 | return 0; | |
6749 | } | |
6750 | _ACEOF | |
6751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6752 | if { (ac_try="$ac_link" |
6753 | case "(($ac_try" in | |
6754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6755 | *) ac_try_echo=$ac_try;; | |
6756 | esac | |
ec6a6fbe AK |
6757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6758 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6759 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6760 | ac_status=$? |
8a2fc586 AK |
6761 | grep -v '^ *+' conftest.er1 >conftest.err |
6762 | rm -f conftest.er1 | |
6763 | cat conftest.err >&5 | |
ec6a6fbe | 6764 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6765 | (exit $ac_status); } && { |
6766 | test -z "$ac_c_werror_flag" || | |
6767 | test ! -s conftest.err | |
ec6a6fbe AK |
6768 | } && test -s conftest$ac_exeext && { |
6769 | test "$cross_compiling" = yes || | |
6770 | $as_test_x conftest$ac_exeext | |
6771 | }; then | |
ad6254c5 AK |
6772 | ac_cv_func_alloca_works=yes |
6773 | else | |
ec6a6fbe | 6774 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6775 | sed 's/^/| /' conftest.$ac_ext >&5 |
6776 | ||
7a197a62 | 6777 | ac_cv_func_alloca_works=no |
ad6254c5 | 6778 | fi |
7a197a62 | 6779 | |
ec6a6fbe | 6780 | rm -rf conftest.dSYM |
25fbec5b | 6781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6782 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6783 | fi |
ec6a6fbe AK |
6784 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6785 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6786 | |
6787 | if test $ac_cv_func_alloca_works = yes; then | |
6788 | ||
6789 | cat >>confdefs.h <<\_ACEOF | |
6790 | #define HAVE_ALLOCA 1 | |
6791 | _ACEOF | |
6792 | ||
6793 | else | |
6794 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6795 | # that cause trouble. Some versions do not even contain alloca or | |
6796 | # contain a buggy version. If you still want to use their alloca, | |
6797 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6798 | ||
7a197a62 | 6799 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6800 | |
6801 | cat >>confdefs.h <<\_ACEOF | |
6802 | #define C_ALLOCA 1 | |
6803 | _ACEOF | |
6804 | ||
6805 | ||
ec6a6fbe AK |
6806 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6807 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6808 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6809 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6810 | else |
6811 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6812 | /* confdefs.h. */ |
6813 | _ACEOF | |
6814 | cat confdefs.h >>conftest.$ac_ext | |
6815 | cat >>conftest.$ac_ext <<_ACEOF | |
6816 | /* end confdefs.h. */ | |
7a197a62 | 6817 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6818 | webecray |
6819 | #else | |
6820 | wenotbecray | |
6821 | #endif | |
6822 | ||
6823 | _ACEOF | |
795ca3e5 | 6824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6825 | $EGREP "webecray" >/dev/null 2>&1; then |
6826 | ac_cv_os_cray=yes | |
6827 | else | |
6828 | ac_cv_os_cray=no | |
795ca3e5 AK |
6829 | fi |
6830 | rm -f conftest* | |
6831 | ||
795ca3e5 | 6832 | fi |
ec6a6fbe AK |
6833 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6834 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6835 | if test $ac_cv_os_cray = yes; then |
6836 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6837 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6838 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6839 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6840 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6841 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6842 | else |
6843 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6844 | /* confdefs.h. */ |
6845 | _ACEOF | |
6846 | cat confdefs.h >>conftest.$ac_ext | |
6847 | cat >>conftest.$ac_ext <<_ACEOF | |
6848 | /* end confdefs.h. */ | |
8a2fc586 AK |
6849 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6850 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6851 | #define $ac_func innocuous_$ac_func | |
6852 | ||
ad6254c5 AK |
6853 | /* System header to define __stub macros and hopefully few prototypes, |
6854 | which can conflict with char $ac_func (); below. | |
6855 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6856 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6857 | |
ad6254c5 AK |
6858 | #ifdef __STDC__ |
6859 | # include <limits.h> | |
6860 | #else | |
6861 | # include <assert.h> | |
6862 | #endif | |
8a2fc586 AK |
6863 | |
6864 | #undef $ac_func | |
6865 | ||
7a197a62 AK |
6866 | /* Override any GCC internal prototype to avoid an error. |
6867 | Use char because int might match the return type of a GCC | |
6868 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6869 | #ifdef __cplusplus |
6870 | extern "C" | |
ad6254c5 | 6871 | #endif |
ad6254c5 AK |
6872 | char $ac_func (); |
6873 | /* The GNU C library defines this for functions which it implements | |
6874 | to always fail with ENOSYS. Some functions are actually named | |
6875 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6876 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6877 | choke me |
ad6254c5 AK |
6878 | #endif |
6879 | ||
6880 | int | |
6881 | main () | |
6882 | { | |
7a197a62 | 6883 | return $ac_func (); |
ad6254c5 AK |
6884 | ; |
6885 | return 0; | |
6886 | } | |
6887 | _ACEOF | |
6888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6889 | if { (ac_try="$ac_link" |
6890 | case "(($ac_try" in | |
6891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6892 | *) ac_try_echo=$ac_try;; | |
6893 | esac | |
ec6a6fbe AK |
6894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6895 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6896 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6897 | ac_status=$? |
8a2fc586 AK |
6898 | grep -v '^ *+' conftest.er1 >conftest.err |
6899 | rm -f conftest.er1 | |
6900 | cat conftest.err >&5 | |
ec6a6fbe | 6901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6902 | (exit $ac_status); } && { |
6903 | test -z "$ac_c_werror_flag" || | |
6904 | test ! -s conftest.err | |
ec6a6fbe AK |
6905 | } && test -s conftest$ac_exeext && { |
6906 | test "$cross_compiling" = yes || | |
6907 | $as_test_x conftest$ac_exeext | |
6908 | }; then | |
ad6254c5 AK |
6909 | eval "$as_ac_var=yes" |
6910 | else | |
ec6a6fbe | 6911 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6912 | sed 's/^/| /' conftest.$ac_ext >&5 |
6913 | ||
7a197a62 | 6914 | eval "$as_ac_var=no" |
ad6254c5 | 6915 | fi |
7a197a62 | 6916 | |
ec6a6fbe | 6917 | rm -rf conftest.dSYM |
25fbec5b | 6918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6919 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6920 | fi |
ec6a6fbe AK |
6921 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6922 | $as_echo "$as_val"'` | |
6923 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6924 | $as_echo "$ac_res" >&6; } | |
6925 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6926 | $as_echo "$as_val"'` | |
6927 | if test "x$as_val" = x""yes; then | |
80992638 | 6928 | |
ad6254c5 AK |
6929 | cat >>confdefs.h <<_ACEOF |
6930 | #define CRAY_STACKSEG_END $ac_func | |
6931 | _ACEOF | |
6932 | ||
6933 | break | |
6934 | fi | |
6935 | ||
6936 | done | |
6937 | fi | |
6938 | ||
ec6a6fbe AK |
6939 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6940 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6941 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6942 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6943 | else |
6944 | if test "$cross_compiling" = yes; then | |
6945 | ac_cv_c_stack_direction=0 | |
6946 | else | |
6947 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6948 | /* confdefs.h. */ |
6949 | _ACEOF | |
6950 | cat confdefs.h >>conftest.$ac_ext | |
6951 | cat >>conftest.$ac_ext <<_ACEOF | |
6952 | /* end confdefs.h. */ | |
7a197a62 | 6953 | $ac_includes_default |
ad6254c5 AK |
6954 | int |
6955 | find_stack_direction () | |
6956 | { | |
6957 | static char *addr = 0; | |
6958 | auto char dummy; | |
6959 | if (addr == 0) | |
6960 | { | |
6961 | addr = &dummy; | |
6962 | return find_stack_direction (); | |
6963 | } | |
6964 | else | |
6965 | return (&dummy > addr) ? 1 : -1; | |
6966 | } | |
6967 | ||
6968 | int | |
6969 | main () | |
6970 | { | |
7a197a62 | 6971 | return find_stack_direction () < 0; |
ad6254c5 AK |
6972 | } |
6973 | _ACEOF | |
6974 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6975 | if { (ac_try="$ac_link" |
6976 | case "(($ac_try" in | |
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6978 | *) ac_try_echo=$ac_try;; | |
6979 | esac | |
ec6a6fbe AK |
6980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6981 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6982 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6983 | ac_status=$? |
ec6a6fbe | 6984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6986 | { (case "(($ac_try" in |
6987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6988 | *) ac_try_echo=$ac_try;; | |
6989 | esac | |
ec6a6fbe AK |
6990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6991 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6992 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6993 | ac_status=$? |
ec6a6fbe | 6994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6995 | (exit $ac_status); }; }; then |
6996 | ac_cv_c_stack_direction=1 | |
6997 | else | |
ec6a6fbe AK |
6998 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6999 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7000 | sed 's/^/| /' conftest.$ac_ext >&5 |
7001 | ||
7002 | ( exit $ac_status ) | |
7003 | ac_cv_c_stack_direction=-1 | |
7004 | fi | |
ec6a6fbe | 7005 | rm -rf conftest.dSYM |
7a197a62 | 7006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7007 | fi |
7a197a62 AK |
7008 | |
7009 | ||
ad6254c5 | 7010 | fi |
ec6a6fbe AK |
7011 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7012 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
7013 | |
7014 | cat >>confdefs.h <<_ACEOF | |
7015 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7016 | _ACEOF | |
7017 | ||
7018 | ||
7019 | fi | |
7020 | ||
ec6a6fbe AK |
7021 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
7022 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 7023 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 7024 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7025 | else |
7026 | if test "$cross_compiling" = yes; then | |
7027 | ac_cv_func_closedir_void=yes | |
7028 | else | |
7029 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7030 | /* confdefs.h. */ |
7031 | _ACEOF | |
7032 | cat confdefs.h >>conftest.$ac_ext | |
7033 | cat >>conftest.$ac_ext <<_ACEOF | |
7034 | /* end confdefs.h. */ | |
7035 | $ac_includes_default | |
7036 | #include <$ac_header_dirent> | |
7037 | #ifndef __cplusplus | |
7038 | int closedir (); | |
7039 | #endif | |
7040 | ||
7041 | int | |
7042 | main () | |
7043 | { | |
7a197a62 | 7044 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
7045 | ; |
7046 | return 0; | |
7047 | } | |
7048 | _ACEOF | |
7049 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7050 | if { (ac_try="$ac_link" |
7051 | case "(($ac_try" in | |
7052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7053 | *) ac_try_echo=$ac_try;; | |
7054 | esac | |
ec6a6fbe AK |
7055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7056 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7057 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7058 | ac_status=$? |
ec6a6fbe | 7059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7061 | { (case "(($ac_try" in |
7062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7063 | *) ac_try_echo=$ac_try;; | |
7064 | esac | |
ec6a6fbe AK |
7065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7066 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7067 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7068 | ac_status=$? |
ec6a6fbe | 7069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7070 | (exit $ac_status); }; }; then |
7071 | ac_cv_func_closedir_void=no | |
7072 | else | |
ec6a6fbe AK |
7073 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7074 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7075 | sed 's/^/| /' conftest.$ac_ext >&5 |
7076 | ||
7077 | ( exit $ac_status ) | |
7078 | ac_cv_func_closedir_void=yes | |
7079 | fi | |
ec6a6fbe | 7080 | rm -rf conftest.dSYM |
7a197a62 | 7081 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7082 | fi |
7a197a62 AK |
7083 | |
7084 | ||
ad6254c5 | 7085 | fi |
ec6a6fbe AK |
7086 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
7087 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
7088 | if test $ac_cv_func_closedir_void = yes; then |
7089 | ||
7090 | cat >>confdefs.h <<\_ACEOF | |
7091 | #define CLOSEDIR_VOID 1 | |
7092 | _ACEOF | |
7093 | ||
7094 | fi | |
7095 | ||
7096 | ||
7a197a62 | 7097 | for ac_header in vfork.h |
ad6254c5 | 7098 | do |
ec6a6fbe | 7099 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7100 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7101 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7102 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7103 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7104 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7105 | fi |
ec6a6fbe AK |
7106 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7107 | $as_echo "$as_val"'` | |
7108 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7109 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7110 | else |
7111 | # Is the header compilable? | |
ec6a6fbe AK |
7112 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7113 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7114 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7115 | /* confdefs.h. */ |
7116 | _ACEOF | |
7117 | cat confdefs.h >>conftest.$ac_ext | |
7118 | cat >>conftest.$ac_ext <<_ACEOF | |
7119 | /* end confdefs.h. */ | |
7120 | $ac_includes_default | |
7121 | #include <$ac_header> | |
7122 | _ACEOF | |
7123 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7124 | if { (ac_try="$ac_compile" |
7125 | case "(($ac_try" in | |
7126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7127 | *) ac_try_echo=$ac_try;; | |
7128 | esac | |
ec6a6fbe AK |
7129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7130 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7131 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7132 | ac_status=$? |
8a2fc586 AK |
7133 | grep -v '^ *+' conftest.er1 >conftest.err |
7134 | rm -f conftest.er1 | |
7135 | cat conftest.err >&5 | |
ec6a6fbe | 7136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7137 | (exit $ac_status); } && { |
7138 | test -z "$ac_c_werror_flag" || | |
7139 | test ! -s conftest.err | |
7140 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7141 | ac_header_compiler=yes |
7142 | else | |
ec6a6fbe | 7143 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7144 | sed 's/^/| /' conftest.$ac_ext >&5 |
7145 | ||
7a197a62 | 7146 | ac_header_compiler=no |
ad6254c5 | 7147 | fi |
7a197a62 AK |
7148 | |
7149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7150 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7151 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7152 | |
7153 | # Is the header present? | |
ec6a6fbe AK |
7154 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7155 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7156 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7157 | /* confdefs.h. */ |
7158 | _ACEOF | |
7159 | cat confdefs.h >>conftest.$ac_ext | |
7160 | cat >>conftest.$ac_ext <<_ACEOF | |
7161 | /* end confdefs.h. */ | |
7162 | #include <$ac_header> | |
7163 | _ACEOF | |
7a197a62 AK |
7164 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7165 | case "(($ac_try" in | |
7166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7167 | *) ac_try_echo=$ac_try;; | |
7168 | esac | |
ec6a6fbe AK |
7169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7170 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7171 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7172 | ac_status=$? |
7173 | grep -v '^ *+' conftest.er1 >conftest.err | |
7174 | rm -f conftest.er1 | |
7175 | cat conftest.err >&5 | |
ec6a6fbe | 7176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7177 | (exit $ac_status); } >/dev/null && { |
7178 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7179 | test ! -s conftest.err | |
7180 | }; then | |
ad6254c5 AK |
7181 | ac_header_preproc=yes |
7182 | else | |
ec6a6fbe | 7183 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7184 | sed 's/^/| /' conftest.$ac_ext >&5 |
7185 | ||
7186 | ac_header_preproc=no | |
7187 | fi | |
7a197a62 | 7188 | |
ad6254c5 | 7189 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7190 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7191 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7192 | |
7193 | # So? What about this header? | |
8a2fc586 AK |
7194 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7195 | yes:no: ) | |
ec6a6fbe AK |
7196 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7197 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7198 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7199 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7200 | ac_header_preproc=yes |
ad6254c5 | 7201 | ;; |
8a2fc586 | 7202 | no:yes:* ) |
ec6a6fbe AK |
7203 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7204 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7205 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7206 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7207 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7208 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7209 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7210 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7211 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7212 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7214 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7215 | |
ad6254c5 AK |
7216 | ;; |
7217 | esac | |
ec6a6fbe AK |
7218 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7219 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7221 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7222 | else |
8a2fc586 | 7223 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7224 | fi |
ec6a6fbe AK |
7225 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7226 | $as_echo "$as_val"'` | |
7227 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7228 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7229 | |
795ca3e5 | 7230 | fi |
ec6a6fbe AK |
7231 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7232 | $as_echo "$as_val"'` | |
7233 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7234 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7235 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7236 | _ACEOF |
7237 | ||
7238 | fi | |
7239 | ||
7240 | done | |
795ca3e5 | 7241 | |
ad6254c5 AK |
7242 | |
7243 | ||
7244 | for ac_func in fork vfork | |
7245 | do | |
ec6a6fbe AK |
7246 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7247 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7248 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7249 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7250 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7251 | else |
ad6254c5 | 7252 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7253 | /* confdefs.h. */ |
7254 | _ACEOF | |
7255 | cat confdefs.h >>conftest.$ac_ext | |
7256 | cat >>conftest.$ac_ext <<_ACEOF | |
7257 | /* end confdefs.h. */ | |
8a2fc586 AK |
7258 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7259 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7260 | #define $ac_func innocuous_$ac_func | |
7261 | ||
ad6254c5 AK |
7262 | /* System header to define __stub macros and hopefully few prototypes, |
7263 | which can conflict with char $ac_func (); below. | |
7264 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7265 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7266 | |
ad6254c5 AK |
7267 | #ifdef __STDC__ |
7268 | # include <limits.h> | |
7269 | #else | |
7270 | # include <assert.h> | |
795ca3e5 | 7271 | #endif |
8a2fc586 AK |
7272 | |
7273 | #undef $ac_func | |
7274 | ||
7a197a62 AK |
7275 | /* Override any GCC internal prototype to avoid an error. |
7276 | Use char because int might match the return type of a GCC | |
7277 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7278 | #ifdef __cplusplus |
ad6254c5 | 7279 | extern "C" |
ad6254c5 | 7280 | #endif |
ad6254c5 AK |
7281 | char $ac_func (); |
7282 | /* The GNU C library defines this for functions which it implements | |
7283 | to always fail with ENOSYS. Some functions are actually named | |
7284 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7285 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7286 | choke me |
795ca3e5 AK |
7287 | #endif |
7288 | ||
ad6254c5 AK |
7289 | int |
7290 | main () | |
7291 | { | |
7a197a62 | 7292 | return $ac_func (); |
ad6254c5 AK |
7293 | ; |
7294 | return 0; | |
7295 | } | |
7296 | _ACEOF | |
7297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7298 | if { (ac_try="$ac_link" |
7299 | case "(($ac_try" in | |
7300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7301 | *) ac_try_echo=$ac_try;; | |
7302 | esac | |
ec6a6fbe AK |
7303 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7304 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7305 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7306 | ac_status=$? |
8a2fc586 AK |
7307 | grep -v '^ *+' conftest.er1 >conftest.err |
7308 | rm -f conftest.er1 | |
7309 | cat conftest.err >&5 | |
ec6a6fbe | 7310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7311 | (exit $ac_status); } && { |
7312 | test -z "$ac_c_werror_flag" || | |
7313 | test ! -s conftest.err | |
ec6a6fbe AK |
7314 | } && test -s conftest$ac_exeext && { |
7315 | test "$cross_compiling" = yes || | |
7316 | $as_test_x conftest$ac_exeext | |
7317 | }; then | |
ad6254c5 | 7318 | eval "$as_ac_var=yes" |
795ca3e5 | 7319 | else |
ec6a6fbe | 7320 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7321 | sed 's/^/| /' conftest.$ac_ext >&5 |
7322 | ||
7a197a62 | 7323 | eval "$as_ac_var=no" |
795ca3e5 | 7324 | fi |
7a197a62 | 7325 | |
ec6a6fbe | 7326 | rm -rf conftest.dSYM |
25fbec5b | 7327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7328 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7329 | fi |
ec6a6fbe AK |
7330 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7331 | $as_echo "$as_val"'` | |
7332 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7333 | $as_echo "$ac_res" >&6; } | |
7334 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7335 | $as_echo "$as_val"'` | |
7336 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7337 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7338 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7339 | _ACEOF |
7340 | ||
7341 | fi | |
7342 | done | |
7343 | ||
7344 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7345 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7346 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7347 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7348 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7349 | else |
7350 | if test "$cross_compiling" = yes; then | |
7351 | ac_cv_func_fork_works=cross | |
7352 | else | |
7353 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7354 | /* confdefs.h. */ |
7355 | _ACEOF | |
7356 | cat confdefs.h >>conftest.$ac_ext | |
7357 | cat >>conftest.$ac_ext <<_ACEOF | |
7358 | /* end confdefs.h. */ | |
7359 | $ac_includes_default | |
7360 | int | |
7361 | main () | |
7362 | { | |
7363 | ||
7364 | /* By Ruediger Kuhlmann. */ | |
7365 | return fork () < 0; | |
7366 | ||
7367 | ; | |
7368 | return 0; | |
7369 | } | |
ad6254c5 AK |
7370 | _ACEOF |
7371 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7372 | if { (ac_try="$ac_link" |
7373 | case "(($ac_try" in | |
7374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7375 | *) ac_try_echo=$ac_try;; | |
7376 | esac | |
ec6a6fbe AK |
7377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7378 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7379 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7380 | ac_status=$? |
ec6a6fbe | 7381 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7383 | { (case "(($ac_try" in |
7384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7385 | *) ac_try_echo=$ac_try;; | |
7386 | esac | |
ec6a6fbe AK |
7387 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7388 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7389 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7390 | ac_status=$? |
ec6a6fbe | 7391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7392 | (exit $ac_status); }; }; then |
7393 | ac_cv_func_fork_works=yes | |
7394 | else | |
ec6a6fbe AK |
7395 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7396 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7397 | sed 's/^/| /' conftest.$ac_ext >&5 |
7398 | ||
7399 | ( exit $ac_status ) | |
7400 | ac_cv_func_fork_works=no | |
7401 | fi | |
ec6a6fbe | 7402 | rm -rf conftest.dSYM |
7a197a62 | 7403 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7404 | fi |
7a197a62 AK |
7405 | |
7406 | ||
ad6254c5 | 7407 | fi |
ec6a6fbe AK |
7408 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7409 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7410 | |
7411 | else | |
7412 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7413 | fi | |
7414 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7415 | case $host in | |
7416 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7417 | # Override, as these systems have only a dummy fork() stub | |
7418 | ac_cv_func_fork_works=no | |
7419 | ;; | |
7420 | *) | |
7421 | ac_cv_func_fork_works=yes | |
7422 | ;; | |
7423 | esac | |
ec6a6fbe AK |
7424 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7425 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7426 | fi |
7427 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7428 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7429 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7430 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7431 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7432 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7433 | else |
7434 | if test "$cross_compiling" = yes; then | |
7435 | ac_cv_func_vfork_works=cross | |
7436 | else | |
7437 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7438 | /* confdefs.h. */ |
7439 | _ACEOF | |
7440 | cat confdefs.h >>conftest.$ac_ext | |
7441 | cat >>conftest.$ac_ext <<_ACEOF | |
7442 | /* end confdefs.h. */ | |
7443 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7444 | $ac_includes_default |
ad6254c5 | 7445 | #include <sys/wait.h> |
25fbec5b | 7446 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7447 | # include <vfork.h> |
7448 | #endif | |
7449 | /* On some sparc systems, changes by the child to local and incoming | |
7450 | argument registers are propagated back to the parent. The compiler | |
7451 | is told about this with #include <vfork.h>, but some compilers | |
7452 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7453 | static variable whose address is put into a register that is | |
7454 | clobbered by the vfork. */ | |
7455 | static void | |
7456 | #ifdef __cplusplus | |
7457 | sparc_address_test (int arg) | |
7458 | # else | |
7459 | sparc_address_test (arg) int arg; | |
7460 | #endif | |
7461 | { | |
7462 | static pid_t child; | |
7463 | if (!child) { | |
7464 | child = vfork (); | |
7465 | if (child < 0) { | |
7466 | perror ("vfork"); | |
7467 | _exit(2); | |
7468 | } | |
7469 | if (!child) { | |
7470 | arg = getpid(); | |
7471 | write(-1, "", 0); | |
7472 | _exit (arg); | |
7473 | } | |
7474 | } | |
7475 | } | |
7476 | ||
7477 | int | |
7478 | main () | |
7479 | { | |
7480 | pid_t parent = getpid (); | |
7481 | pid_t child; | |
7482 | ||
7483 | sparc_address_test (0); | |
7484 | ||
7485 | child = vfork (); | |
7486 | ||
7487 | if (child == 0) { | |
7488 | /* Here is another test for sparc vfork register problems. This | |
7489 | test uses lots of local variables, at least as many local | |
7490 | variables as main has allocated so far including compiler | |
7491 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7492 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7493 | reuse the register of parent for one of the local variables, | |
7494 | since it will think that parent can't possibly be used any more | |
7495 | in this routine. Assigning to the local variable will thus | |
7496 | munge parent in the parent process. */ | |
7497 | pid_t | |
7498 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7499 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7500 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7501 | use the same hardware register for all 8 local variables. */ | |
7502 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7503 | || p != p5 || p != p6 || p != p7) | |
7504 | _exit(1); | |
7505 | ||
7506 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7507 | from child file descriptors. If the child closes a descriptor | |
7508 | before it execs or exits, this munges the parent's descriptor | |
7509 | as well. Test for this by closing stdout in the child. */ | |
7510 | _exit(close(fileno(stdout)) != 0); | |
7511 | } else { | |
7512 | int status; | |
7513 | struct stat st; | |
7514 | ||
7515 | while (wait(&status) != child) | |
7516 | ; | |
7a197a62 | 7517 | return ( |
ad6254c5 AK |
7518 | /* Was there some problem with vforking? */ |
7519 | child < 0 | |
7520 | ||
7521 | /* Did the child fail? (This shouldn't happen.) */ | |
7522 | || status | |
7523 | ||
7524 | /* Did the vfork/compiler bug occur? */ | |
7525 | || parent != getpid() | |
7526 | ||
7527 | /* Did the file descriptor bug occur? */ | |
7528 | || fstat(fileno(stdout), &st) != 0 | |
7529 | ); | |
7530 | } | |
7531 | } | |
7532 | _ACEOF | |
7533 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7534 | if { (ac_try="$ac_link" |
7535 | case "(($ac_try" in | |
7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7537 | *) ac_try_echo=$ac_try;; | |
7538 | esac | |
ec6a6fbe AK |
7539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7540 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7541 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7542 | ac_status=$? |
ec6a6fbe | 7543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7544 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7545 | { (case "(($ac_try" in |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
ec6a6fbe AK |
7549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7550 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7551 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7552 | ac_status=$? |
ec6a6fbe | 7553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7554 | (exit $ac_status); }; }; then |
7555 | ac_cv_func_vfork_works=yes | |
7556 | else | |
ec6a6fbe AK |
7557 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7558 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7559 | sed 's/^/| /' conftest.$ac_ext >&5 |
7560 | ||
7561 | ( exit $ac_status ) | |
7562 | ac_cv_func_vfork_works=no | |
7563 | fi | |
ec6a6fbe | 7564 | rm -rf conftest.dSYM |
7a197a62 | 7565 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7566 | fi |
7a197a62 AK |
7567 | |
7568 | ||
ad6254c5 | 7569 | fi |
ec6a6fbe AK |
7570 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7571 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7572 | |
7573 | fi; | |
7574 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7575 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7576 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7577 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7578 | fi |
7579 | ||
7580 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7581 | ||
7582 | cat >>confdefs.h <<\_ACEOF | |
7583 | #define HAVE_WORKING_VFORK 1 | |
7584 | _ACEOF | |
7585 | ||
7586 | else | |
7587 | ||
7588 | cat >>confdefs.h <<\_ACEOF | |
7589 | #define vfork fork | |
7590 | _ACEOF | |
7591 | ||
7592 | fi | |
7593 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7594 | ||
7595 | cat >>confdefs.h <<\_ACEOF | |
7596 | #define HAVE_WORKING_FORK 1 | |
7597 | _ACEOF | |
7598 | ||
7599 | fi | |
7600 | ||
ec6a6fbe AK |
7601 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7602 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7603 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7604 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7605 | else |
7606 | rm -f conftest.sym conftest.file | |
7607 | echo >conftest.file | |
7608 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7609 | if test "$cross_compiling" = yes; then | |
7610 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7611 | else | |
7612 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7613 | /* confdefs.h. */ |
7614 | _ACEOF | |
7615 | cat confdefs.h >>conftest.$ac_ext | |
7616 | cat >>conftest.$ac_ext <<_ACEOF | |
7617 | /* end confdefs.h. */ | |
7618 | $ac_includes_default | |
7619 | int | |
7620 | main () | |
7621 | { | |
7622 | struct stat sbuf; | |
7623 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7624 | That is better in the sense that it means we will not |
7625 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7626 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7627 | ; |
7628 | return 0; | |
7629 | } | |
7630 | _ACEOF | |
7631 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7632 | if { (ac_try="$ac_link" |
7633 | case "(($ac_try" in | |
7634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7635 | *) ac_try_echo=$ac_try;; | |
7636 | esac | |
ec6a6fbe AK |
7637 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7638 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7639 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7640 | ac_status=$? |
ec6a6fbe | 7641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7643 | { (case "(($ac_try" in |
7644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7645 | *) ac_try_echo=$ac_try;; | |
7646 | esac | |
ec6a6fbe AK |
7647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7648 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7649 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7650 | ac_status=$? |
ec6a6fbe | 7651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7652 | (exit $ac_status); }; }; then |
7653 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7654 | else | |
ec6a6fbe AK |
7655 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7656 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7657 | sed 's/^/| /' conftest.$ac_ext >&5 |
7658 | ||
7659 | ( exit $ac_status ) | |
7660 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7661 | fi | |
ec6a6fbe | 7662 | rm -rf conftest.dSYM |
7a197a62 | 7663 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7664 | fi |
7a197a62 AK |
7665 | |
7666 | ||
ad6254c5 AK |
7667 | else |
7668 | # If the `ln -s' command failed, then we probably don't even | |
7669 | # have an lstat function. | |
7670 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7671 | fi | |
7672 | rm -f conftest.sym conftest.file | |
7673 | ||
7674 | fi | |
ec6a6fbe AK |
7675 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7676 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7677 | |
7678 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7679 | ||
7680 | cat >>confdefs.h <<_ACEOF | |
7681 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7682 | _ACEOF | |
7683 | ||
7684 | ||
7685 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7686 | case " $LIBOBJS " in |
8a2fc586 | 7687 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7688 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7689 | ;; | |
8a2fc586 AK |
7690 | esac |
7691 | ||
ad6254c5 AK |
7692 | fi |
7693 | ||
ec6a6fbe AK |
7694 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7695 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7696 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7697 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7698 | else |
7699 | if test "$cross_compiling" = yes; then | |
7700 | ac_cv_func_lstat_empty_string_bug=yes | |
7701 | else | |
7702 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7703 | /* confdefs.h. */ |
7704 | _ACEOF | |
7705 | cat confdefs.h >>conftest.$ac_ext | |
7706 | cat >>conftest.$ac_ext <<_ACEOF | |
7707 | /* end confdefs.h. */ | |
7708 | $ac_includes_default | |
7709 | int | |
7710 | main () | |
7711 | { | |
7712 | struct stat sbuf; | |
7a197a62 | 7713 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7714 | ; |
7715 | return 0; | |
7716 | } | |
7717 | _ACEOF | |
7718 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7719 | if { (ac_try="$ac_link" |
7720 | case "(($ac_try" in | |
7721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7722 | *) ac_try_echo=$ac_try;; | |
7723 | esac | |
ec6a6fbe AK |
7724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7725 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7726 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7727 | ac_status=$? |
ec6a6fbe | 7728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7730 | { (case "(($ac_try" in |
7731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7732 | *) ac_try_echo=$ac_try;; | |
7733 | esac | |
ec6a6fbe AK |
7734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7735 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7736 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7737 | ac_status=$? |
ec6a6fbe | 7738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7739 | (exit $ac_status); }; }; then |
7a197a62 | 7740 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7741 | else |
ec6a6fbe AK |
7742 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7743 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7744 | sed 's/^/| /' conftest.$ac_ext >&5 |
7745 | ||
7746 | ( exit $ac_status ) | |
7a197a62 | 7747 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7748 | fi |
ec6a6fbe | 7749 | rm -rf conftest.dSYM |
7a197a62 | 7750 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7751 | fi |
7a197a62 AK |
7752 | |
7753 | ||
ad6254c5 | 7754 | fi |
ec6a6fbe AK |
7755 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7756 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7757 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7758 | case " $LIBOBJS " in |
8a2fc586 | 7759 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7760 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7761 | ;; | |
8a2fc586 AK |
7762 | esac |
7763 | ||
ad6254c5 AK |
7764 | |
7765 | cat >>confdefs.h <<_ACEOF | |
7766 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7767 | _ACEOF | |
7768 | ||
7769 | fi | |
7770 | ||
7771 | ||
7772 | for ac_header in stdlib.h | |
7773 | do | |
ec6a6fbe | 7774 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7775 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7776 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7777 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7779 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7780 | fi |
ec6a6fbe AK |
7781 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7782 | $as_echo "$as_val"'` | |
7783 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7784 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7785 | else |
7786 | # Is the header compilable? | |
ec6a6fbe AK |
7787 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7788 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7789 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7790 | /* confdefs.h. */ |
7791 | _ACEOF | |
7792 | cat confdefs.h >>conftest.$ac_ext | |
7793 | cat >>conftest.$ac_ext <<_ACEOF | |
7794 | /* end confdefs.h. */ | |
7795 | $ac_includes_default | |
7796 | #include <$ac_header> | |
7797 | _ACEOF | |
7798 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7799 | if { (ac_try="$ac_compile" |
7800 | case "(($ac_try" in | |
7801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7802 | *) ac_try_echo=$ac_try;; | |
7803 | esac | |
ec6a6fbe AK |
7804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7805 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7806 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7807 | ac_status=$? |
8a2fc586 AK |
7808 | grep -v '^ *+' conftest.er1 >conftest.err |
7809 | rm -f conftest.er1 | |
7810 | cat conftest.err >&5 | |
ec6a6fbe | 7811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7812 | (exit $ac_status); } && { |
7813 | test -z "$ac_c_werror_flag" || | |
7814 | test ! -s conftest.err | |
7815 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7816 | ac_header_compiler=yes |
7817 | else | |
ec6a6fbe | 7818 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7819 | sed 's/^/| /' conftest.$ac_ext >&5 |
7820 | ||
7a197a62 | 7821 | ac_header_compiler=no |
ad6254c5 | 7822 | fi |
7a197a62 AK |
7823 | |
7824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7825 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7826 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7827 | |
7828 | # Is the header present? | |
ec6a6fbe AK |
7829 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7830 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7831 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7832 | /* confdefs.h. */ |
7833 | _ACEOF | |
7834 | cat confdefs.h >>conftest.$ac_ext | |
7835 | cat >>conftest.$ac_ext <<_ACEOF | |
7836 | /* end confdefs.h. */ | |
7837 | #include <$ac_header> | |
7838 | _ACEOF | |
7a197a62 AK |
7839 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7840 | case "(($ac_try" in | |
7841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7842 | *) ac_try_echo=$ac_try;; | |
7843 | esac | |
ec6a6fbe AK |
7844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7845 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7846 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7847 | ac_status=$? |
7848 | grep -v '^ *+' conftest.er1 >conftest.err | |
7849 | rm -f conftest.er1 | |
7850 | cat conftest.err >&5 | |
ec6a6fbe | 7851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7852 | (exit $ac_status); } >/dev/null && { |
7853 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7854 | test ! -s conftest.err | |
7855 | }; then | |
ad6254c5 AK |
7856 | ac_header_preproc=yes |
7857 | else | |
ec6a6fbe | 7858 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7859 | sed 's/^/| /' conftest.$ac_ext >&5 |
7860 | ||
7861 | ac_header_preproc=no | |
7862 | fi | |
7a197a62 | 7863 | |
ad6254c5 | 7864 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7865 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7866 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7867 | |
7868 | # So? What about this header? | |
8a2fc586 AK |
7869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7870 | yes:no: ) | |
ec6a6fbe AK |
7871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7872 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7874 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7875 | ac_header_preproc=yes |
ad6254c5 | 7876 | ;; |
8a2fc586 | 7877 | no:yes:* ) |
ec6a6fbe AK |
7878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7879 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7881 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7883 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7885 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7887 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7889 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7890 | |
ad6254c5 AK |
7891 | ;; |
7892 | esac | |
ec6a6fbe AK |
7893 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7894 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7895 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7896 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7897 | else |
8a2fc586 | 7898 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7899 | fi |
ec6a6fbe AK |
7900 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7901 | $as_echo "$as_val"'` | |
7902 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7903 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7904 | |
7905 | fi | |
ec6a6fbe AK |
7906 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7907 | $as_echo "$as_val"'` | |
7908 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7909 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7910 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7911 | _ACEOF |
7912 | ||
7913 | fi | |
7914 | ||
7915 | done | |
7916 | ||
ec6a6fbe AK |
7917 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7918 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7919 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7920 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7921 | else |
7922 | if test "$cross_compiling" = yes; then | |
7923 | ac_cv_func_malloc_0_nonnull=no | |
7924 | else | |
7925 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7926 | /* confdefs.h. */ |
7927 | _ACEOF | |
7928 | cat confdefs.h >>conftest.$ac_ext | |
7929 | cat >>conftest.$ac_ext <<_ACEOF | |
7930 | /* end confdefs.h. */ | |
25fbec5b | 7931 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7932 | # include <stdlib.h> |
7933 | #else | |
7934 | char *malloc (); | |
7935 | #endif | |
7936 | ||
7937 | int | |
7938 | main () | |
7939 | { | |
7a197a62 | 7940 | return ! malloc (0); |
ad6254c5 AK |
7941 | ; |
7942 | return 0; | |
7943 | } | |
7944 | _ACEOF | |
7945 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7946 | if { (ac_try="$ac_link" |
7947 | case "(($ac_try" in | |
7948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7949 | *) ac_try_echo=$ac_try;; | |
7950 | esac | |
ec6a6fbe AK |
7951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7952 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7953 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7954 | ac_status=$? |
ec6a6fbe | 7955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7957 | { (case "(($ac_try" in |
7958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7959 | *) ac_try_echo=$ac_try;; | |
7960 | esac | |
ec6a6fbe AK |
7961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7962 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7963 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7964 | ac_status=$? |
ec6a6fbe | 7965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7966 | (exit $ac_status); }; }; then |
7967 | ac_cv_func_malloc_0_nonnull=yes | |
7968 | else | |
ec6a6fbe AK |
7969 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7970 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7971 | sed 's/^/| /' conftest.$ac_ext >&5 |
7972 | ||
7973 | ( exit $ac_status ) | |
7974 | ac_cv_func_malloc_0_nonnull=no | |
7975 | fi | |
ec6a6fbe | 7976 | rm -rf conftest.dSYM |
7a197a62 | 7977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7978 | fi |
7a197a62 AK |
7979 | |
7980 | ||
ad6254c5 | 7981 | fi |
ec6a6fbe AK |
7982 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7983 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7984 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7985 | ||
7986 | cat >>confdefs.h <<\_ACEOF | |
7987 | #define HAVE_MALLOC 1 | |
7988 | _ACEOF | |
7989 | ||
7990 | else | |
7991 | cat >>confdefs.h <<\_ACEOF | |
7992 | #define HAVE_MALLOC 0 | |
7993 | _ACEOF | |
7994 | ||
7a197a62 | 7995 | case " $LIBOBJS " in |
8a2fc586 | 7996 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7997 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7998 | ;; | |
8a2fc586 AK |
7999 | esac |
8000 | ||
ad6254c5 AK |
8001 | |
8002 | cat >>confdefs.h <<\_ACEOF | |
8003 | #define malloc rpl_malloc | |
8004 | _ACEOF | |
8005 | ||
8006 | fi | |
8007 | ||
8008 | ||
8009 | ||
ec6a6fbe AK |
8010 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
8011 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 8012 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 8013 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8014 | else |
8015 | if test "$cross_compiling" = yes; then | |
8016 | ac_cv_func_memcmp_working=no | |
8017 | else | |
8018 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8019 | /* confdefs.h. */ |
8020 | _ACEOF | |
8021 | cat confdefs.h >>conftest.$ac_ext | |
8022 | cat >>conftest.$ac_ext <<_ACEOF | |
8023 | /* end confdefs.h. */ | |
8a2fc586 | 8024 | $ac_includes_default |
ad6254c5 AK |
8025 | int |
8026 | main () | |
8027 | { | |
8028 | ||
8029 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 8030 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 8031 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 8032 | return 1; |
ad6254c5 AK |
8033 | |
8034 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8035 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8036 | William Lewis provided this test program. */ | |
8037 | { | |
8038 | char foo[21]; | |
8039 | char bar[21]; | |
8040 | int i; | |
8041 | for (i = 0; i < 4; i++) | |
8042 | { | |
8a2fc586 AK |
8043 | char *a = foo + i; |
8044 | char *b = bar + i; | |
8045 | strcpy (a, "--------01111111"); | |
8046 | strcpy (b, "--------10000000"); | |
8047 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 8048 | return 1; |
ad6254c5 | 8049 | } |
7a197a62 | 8050 | return 0; |
ad6254c5 AK |
8051 | } |
8052 | ||
8053 | ; | |
8054 | return 0; | |
8055 | } | |
8056 | _ACEOF | |
8057 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8058 | if { (ac_try="$ac_link" |
8059 | case "(($ac_try" in | |
8060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8061 | *) ac_try_echo=$ac_try;; | |
8062 | esac | |
ec6a6fbe AK |
8063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8064 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8065 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8066 | ac_status=$? |
ec6a6fbe | 8067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8069 | { (case "(($ac_try" in |
8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8071 | *) ac_try_echo=$ac_try;; | |
8072 | esac | |
ec6a6fbe AK |
8073 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8074 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8075 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8076 | ac_status=$? |
ec6a6fbe | 8077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8078 | (exit $ac_status); }; }; then |
8079 | ac_cv_func_memcmp_working=yes | |
8080 | else | |
ec6a6fbe AK |
8081 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8082 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8083 | sed 's/^/| /' conftest.$ac_ext >&5 |
8084 | ||
8085 | ( exit $ac_status ) | |
8086 | ac_cv_func_memcmp_working=no | |
8087 | fi | |
ec6a6fbe | 8088 | rm -rf conftest.dSYM |
7a197a62 | 8089 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8090 | fi |
7a197a62 AK |
8091 | |
8092 | ||
ad6254c5 | 8093 | fi |
ec6a6fbe AK |
8094 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
8095 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 8096 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 8097 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
8098 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8099 | ;; | |
8a2fc586 AK |
8100 | esac |
8101 | ||
ad6254c5 AK |
8102 | |
8103 | ||
8104 | ||
8105 | for ac_header in stdlib.h unistd.h | |
8106 | do | |
ec6a6fbe | 8107 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8108 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8109 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8110 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8112 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8113 | fi |
ec6a6fbe AK |
8114 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8115 | $as_echo "$as_val"'` | |
8116 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8117 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8118 | else |
8119 | # Is the header compilable? | |
ec6a6fbe AK |
8120 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8121 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8122 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8123 | /* confdefs.h. */ |
8124 | _ACEOF | |
8125 | cat confdefs.h >>conftest.$ac_ext | |
8126 | cat >>conftest.$ac_ext <<_ACEOF | |
8127 | /* end confdefs.h. */ | |
8128 | $ac_includes_default | |
8129 | #include <$ac_header> | |
8130 | _ACEOF | |
8131 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8132 | if { (ac_try="$ac_compile" |
8133 | case "(($ac_try" in | |
8134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8135 | *) ac_try_echo=$ac_try;; | |
8136 | esac | |
ec6a6fbe AK |
8137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8138 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8139 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8140 | ac_status=$? |
8a2fc586 AK |
8141 | grep -v '^ *+' conftest.er1 >conftest.err |
8142 | rm -f conftest.er1 | |
8143 | cat conftest.err >&5 | |
ec6a6fbe | 8144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8145 | (exit $ac_status); } && { |
8146 | test -z "$ac_c_werror_flag" || | |
8147 | test ! -s conftest.err | |
8148 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8149 | ac_header_compiler=yes |
8150 | else | |
ec6a6fbe | 8151 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8152 | sed 's/^/| /' conftest.$ac_ext >&5 |
8153 | ||
7a197a62 | 8154 | ac_header_compiler=no |
ad6254c5 | 8155 | fi |
7a197a62 AK |
8156 | |
8157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8158 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8159 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8160 | |
8161 | # Is the header present? | |
ec6a6fbe AK |
8162 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8163 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8164 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8165 | /* confdefs.h. */ |
8166 | _ACEOF | |
8167 | cat confdefs.h >>conftest.$ac_ext | |
8168 | cat >>conftest.$ac_ext <<_ACEOF | |
8169 | /* end confdefs.h. */ | |
8170 | #include <$ac_header> | |
8171 | _ACEOF | |
7a197a62 AK |
8172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8173 | case "(($ac_try" in | |
8174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8175 | *) ac_try_echo=$ac_try;; | |
8176 | esac | |
ec6a6fbe AK |
8177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8178 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8179 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8180 | ac_status=$? |
8181 | grep -v '^ *+' conftest.er1 >conftest.err | |
8182 | rm -f conftest.er1 | |
8183 | cat conftest.err >&5 | |
ec6a6fbe | 8184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8185 | (exit $ac_status); } >/dev/null && { |
8186 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8187 | test ! -s conftest.err | |
8188 | }; then | |
ad6254c5 AK |
8189 | ac_header_preproc=yes |
8190 | else | |
ec6a6fbe | 8191 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
8193 | ||
8194 | ac_header_preproc=no | |
8195 | fi | |
7a197a62 | 8196 | |
ad6254c5 | 8197 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8198 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8199 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8200 | |
8201 | # So? What about this header? | |
8a2fc586 AK |
8202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8203 | yes:no: ) | |
ec6a6fbe AK |
8204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8205 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8207 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8208 | ac_header_preproc=yes |
ad6254c5 | 8209 | ;; |
8a2fc586 | 8210 | no:yes:* ) |
ec6a6fbe AK |
8211 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8212 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8214 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8215 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8216 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8218 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8219 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8220 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8221 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8222 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8223 | |
ad6254c5 AK |
8224 | ;; |
8225 | esac | |
ec6a6fbe AK |
8226 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8227 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8228 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8229 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8230 | else |
8a2fc586 | 8231 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8232 | fi |
ec6a6fbe AK |
8233 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8234 | $as_echo "$as_val"'` | |
8235 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8236 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8237 | |
8238 | fi | |
ec6a6fbe AK |
8239 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8240 | $as_echo "$as_val"'` | |
8241 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8242 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8243 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8244 | _ACEOF |
8245 | ||
8246 | fi | |
8247 | ||
8248 | done | |
8249 | ||
8250 | ||
8251 | for ac_func in getpagesize | |
8252 | do | |
ec6a6fbe AK |
8253 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8254 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8255 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8256 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8257 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8258 | else |
8259 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8260 | /* confdefs.h. */ |
8261 | _ACEOF | |
8262 | cat confdefs.h >>conftest.$ac_ext | |
8263 | cat >>conftest.$ac_ext <<_ACEOF | |
8264 | /* end confdefs.h. */ | |
8a2fc586 AK |
8265 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8266 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8267 | #define $ac_func innocuous_$ac_func | |
8268 | ||
ad6254c5 AK |
8269 | /* System header to define __stub macros and hopefully few prototypes, |
8270 | which can conflict with char $ac_func (); below. | |
8271 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8272 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8273 | |
ad6254c5 AK |
8274 | #ifdef __STDC__ |
8275 | # include <limits.h> | |
8276 | #else | |
8277 | # include <assert.h> | |
8278 | #endif | |
8a2fc586 AK |
8279 | |
8280 | #undef $ac_func | |
8281 | ||
7a197a62 AK |
8282 | /* Override any GCC internal prototype to avoid an error. |
8283 | Use char because int might match the return type of a GCC | |
8284 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8285 | #ifdef __cplusplus |
8286 | extern "C" | |
ad6254c5 | 8287 | #endif |
ad6254c5 AK |
8288 | char $ac_func (); |
8289 | /* The GNU C library defines this for functions which it implements | |
8290 | to always fail with ENOSYS. Some functions are actually named | |
8291 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8292 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8293 | choke me |
ad6254c5 AK |
8294 | #endif |
8295 | ||
8296 | int | |
8297 | main () | |
8298 | { | |
7a197a62 | 8299 | return $ac_func (); |
ad6254c5 AK |
8300 | ; |
8301 | return 0; | |
8302 | } | |
8303 | _ACEOF | |
8304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8305 | if { (ac_try="$ac_link" |
8306 | case "(($ac_try" in | |
8307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8308 | *) ac_try_echo=$ac_try;; | |
8309 | esac | |
ec6a6fbe AK |
8310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8311 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8312 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8313 | ac_status=$? |
8a2fc586 AK |
8314 | grep -v '^ *+' conftest.er1 >conftest.err |
8315 | rm -f conftest.er1 | |
8316 | cat conftest.err >&5 | |
ec6a6fbe | 8317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8318 | (exit $ac_status); } && { |
8319 | test -z "$ac_c_werror_flag" || | |
8320 | test ! -s conftest.err | |
ec6a6fbe AK |
8321 | } && test -s conftest$ac_exeext && { |
8322 | test "$cross_compiling" = yes || | |
8323 | $as_test_x conftest$ac_exeext | |
8324 | }; then | |
ad6254c5 AK |
8325 | eval "$as_ac_var=yes" |
8326 | else | |
ec6a6fbe | 8327 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8328 | sed 's/^/| /' conftest.$ac_ext >&5 |
8329 | ||
7a197a62 | 8330 | eval "$as_ac_var=no" |
ad6254c5 | 8331 | fi |
7a197a62 | 8332 | |
ec6a6fbe | 8333 | rm -rf conftest.dSYM |
25fbec5b | 8334 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8335 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8336 | fi |
ec6a6fbe AK |
8337 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8338 | $as_echo "$as_val"'` | |
8339 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8340 | $as_echo "$ac_res" >&6; } | |
8341 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8342 | $as_echo "$as_val"'` | |
8343 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8344 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8345 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8346 | _ACEOF |
8347 | ||
8348 | fi | |
8349 | done | |
8350 | ||
ec6a6fbe AK |
8351 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8352 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8353 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8354 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8355 | else |
8356 | if test "$cross_compiling" = yes; then | |
8357 | ac_cv_func_mmap_fixed_mapped=no | |
8358 | else | |
8359 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8360 | /* confdefs.h. */ |
8361 | _ACEOF | |
8362 | cat confdefs.h >>conftest.$ac_ext | |
8363 | cat >>conftest.$ac_ext <<_ACEOF | |
8364 | /* end confdefs.h. */ | |
8365 | $ac_includes_default | |
8366 | /* malloc might have been renamed as rpl_malloc. */ | |
8367 | #undef malloc | |
8368 | ||
8369 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8370 | Here is a matrix of mmap possibilities: | |
8371 | mmap private not fixed | |
8372 | mmap private fixed at somewhere currently unmapped | |
8373 | mmap private fixed at somewhere already mapped | |
8374 | mmap shared not fixed | |
8375 | mmap shared fixed at somewhere currently unmapped | |
8376 | mmap shared fixed at somewhere already mapped | |
8377 | For private mappings, we should verify that changes cannot be read() | |
8378 | back from the file, nor mmap's back from the file at a different | |
8379 | address. (There have been systems where private was not correctly | |
8380 | implemented like the infamous i386 svr4.0, and systems where the | |
8381 | VM page cache was not coherent with the file system buffer cache | |
8382 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8383 | For shared mappings, we should conversely verify that changes get | |
8384 | propagated back to all the places they're supposed to be. | |
8385 | ||
8386 | Grep wants private fixed already mapped. | |
8387 | The main things grep needs to know about mmap are: | |
8388 | * does it exist and is it safe to write into the mmap'd area | |
8389 | * how to use it (BSD variants) */ | |
8390 | ||
8391 | #include <fcntl.h> | |
8392 | #include <sys/mman.h> | |
8393 | ||
25fbec5b | 8394 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8395 | char *malloc (); |
8396 | #endif | |
8397 | ||
8398 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8399 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8400 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8401 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8402 | # define HAVE_SYS_PARAM_H 1 |
8403 | # endif | |
8404 | ||
8405 | # ifdef _SC_PAGESIZE | |
8406 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8407 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8408 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8409 | # include <sys/param.h> |
8410 | # ifdef EXEC_PAGESIZE | |
8411 | # define getpagesize() EXEC_PAGESIZE | |
8412 | # else /* no EXEC_PAGESIZE */ | |
8413 | # ifdef NBPG | |
8414 | # define getpagesize() NBPG * CLSIZE | |
8415 | # ifndef CLSIZE | |
8416 | # define CLSIZE 1 | |
8417 | # endif /* no CLSIZE */ | |
8418 | # else /* no NBPG */ | |
8419 | # ifdef NBPC | |
8420 | # define getpagesize() NBPC | |
8421 | # else /* no NBPC */ | |
8422 | # ifdef PAGESIZE | |
8423 | # define getpagesize() PAGESIZE | |
8424 | # endif /* PAGESIZE */ | |
8425 | # endif /* no NBPC */ | |
8426 | # endif /* no NBPG */ | |
8427 | # endif /* no EXEC_PAGESIZE */ | |
8428 | # else /* no HAVE_SYS_PARAM_H */ | |
8429 | # define getpagesize() 8192 /* punt totally */ | |
8430 | # endif /* no HAVE_SYS_PARAM_H */ | |
8431 | # endif /* no _SC_PAGESIZE */ | |
8432 | ||
8433 | #endif /* no HAVE_GETPAGESIZE */ | |
8434 | ||
8435 | int | |
8436 | main () | |
8437 | { | |
8438 | char *data, *data2, *data3; | |
8439 | int i, pagesize; | |
8440 | int fd; | |
8441 | ||
8442 | pagesize = getpagesize (); | |
8443 | ||
8444 | /* First, make a file with some known garbage in it. */ | |
8445 | data = (char *) malloc (pagesize); | |
8446 | if (!data) | |
7a197a62 | 8447 | return 1; |
ad6254c5 AK |
8448 | for (i = 0; i < pagesize; ++i) |
8449 | *(data + i) = rand (); | |
8450 | umask (0); | |
8451 | fd = creat ("conftest.mmap", 0600); | |
8452 | if (fd < 0) | |
7a197a62 | 8453 | return 1; |
ad6254c5 | 8454 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8455 | return 1; |
ad6254c5 AK |
8456 | close (fd); |
8457 | ||
8458 | /* Next, try to mmap the file at a fixed address which already has | |
8459 | something else allocated at it. If we can, also make sure that | |
8460 | we see the same garbage. */ | |
8461 | fd = open ("conftest.mmap", O_RDWR); | |
8462 | if (fd < 0) | |
7a197a62 | 8463 | return 1; |
ad6254c5 AK |
8464 | data2 = (char *) malloc (2 * pagesize); |
8465 | if (!data2) | |
7a197a62 AK |
8466 | return 1; |
8467 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8468 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8469 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8470 | return 1; |
ad6254c5 AK |
8471 | for (i = 0; i < pagesize; ++i) |
8472 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8473 | return 1; |
ad6254c5 AK |
8474 | |
8475 | /* Finally, make sure that changes to the mapped area do not | |
8476 | percolate back to the file as seen by read(). (This is a bug on | |
8477 | some variants of i386 svr4.0.) */ | |
8478 | for (i = 0; i < pagesize; ++i) | |
8479 | *(data2 + i) = *(data2 + i) + 1; | |
8480 | data3 = (char *) malloc (pagesize); | |
8481 | if (!data3) | |
7a197a62 | 8482 | return 1; |
ad6254c5 | 8483 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8484 | return 1; |
ad6254c5 AK |
8485 | for (i = 0; i < pagesize; ++i) |
8486 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8487 | return 1; |
ad6254c5 | 8488 | close (fd); |
7a197a62 | 8489 | return 0; |
ad6254c5 AK |
8490 | } |
8491 | _ACEOF | |
8492 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8493 | if { (ac_try="$ac_link" |
8494 | case "(($ac_try" in | |
8495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8496 | *) ac_try_echo=$ac_try;; | |
8497 | esac | |
ec6a6fbe AK |
8498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8499 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8500 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8501 | ac_status=$? |
ec6a6fbe | 8502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8504 | { (case "(($ac_try" in |
8505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8506 | *) ac_try_echo=$ac_try;; | |
8507 | esac | |
ec6a6fbe AK |
8508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8509 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8510 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8511 | ac_status=$? |
ec6a6fbe | 8512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8513 | (exit $ac_status); }; }; then |
8514 | ac_cv_func_mmap_fixed_mapped=yes | |
8515 | else | |
ec6a6fbe AK |
8516 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8517 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8518 | sed 's/^/| /' conftest.$ac_ext >&5 |
8519 | ||
8520 | ( exit $ac_status ) | |
8521 | ac_cv_func_mmap_fixed_mapped=no | |
8522 | fi | |
ec6a6fbe | 8523 | rm -rf conftest.dSYM |
7a197a62 | 8524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8525 | fi |
7a197a62 AK |
8526 | |
8527 | ||
ad6254c5 | 8528 | fi |
ec6a6fbe AK |
8529 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8530 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8531 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8532 | ||
8533 | cat >>confdefs.h <<\_ACEOF | |
8534 | #define HAVE_MMAP 1 | |
8535 | _ACEOF | |
8536 | ||
8537 | fi | |
8538 | rm -f conftest.mmap | |
8539 | ||
ec6a6fbe AK |
8540 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8541 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8542 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8543 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8544 | else |
8545 | if test "$cross_compiling" = yes; then | |
8546 | ac_cv_func_stat_empty_string_bug=yes | |
8547 | else | |
8548 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8549 | /* confdefs.h. */ |
8550 | _ACEOF | |
8551 | cat confdefs.h >>conftest.$ac_ext | |
8552 | cat >>conftest.$ac_ext <<_ACEOF | |
8553 | /* end confdefs.h. */ | |
8554 | $ac_includes_default | |
8555 | int | |
8556 | main () | |
8557 | { | |
8558 | struct stat sbuf; | |
7a197a62 | 8559 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8560 | ; |
8561 | return 0; | |
8562 | } | |
8563 | _ACEOF | |
8564 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8565 | if { (ac_try="$ac_link" |
8566 | case "(($ac_try" in | |
8567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8568 | *) ac_try_echo=$ac_try;; | |
8569 | esac | |
ec6a6fbe AK |
8570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8571 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8572 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8573 | ac_status=$? |
ec6a6fbe | 8574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8575 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8576 | { (case "(($ac_try" in |
8577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8578 | *) ac_try_echo=$ac_try;; | |
8579 | esac | |
ec6a6fbe AK |
8580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8581 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8582 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8583 | ac_status=$? |
ec6a6fbe | 8584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8585 | (exit $ac_status); }; }; then |
7a197a62 | 8586 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8587 | else |
ec6a6fbe AK |
8588 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8589 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8590 | sed 's/^/| /' conftest.$ac_ext >&5 |
8591 | ||
8592 | ( exit $ac_status ) | |
7a197a62 | 8593 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8594 | fi |
ec6a6fbe | 8595 | rm -rf conftest.dSYM |
7a197a62 | 8596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8597 | fi |
7a197a62 AK |
8598 | |
8599 | ||
ad6254c5 | 8600 | fi |
ec6a6fbe AK |
8601 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8602 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8603 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8604 | case " $LIBOBJS " in |
8a2fc586 | 8605 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8606 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8607 | ;; | |
8a2fc586 AK |
8608 | esac |
8609 | ||
ad6254c5 AK |
8610 | |
8611 | cat >>confdefs.h <<_ACEOF | |
8612 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8613 | _ACEOF | |
8614 | ||
8615 | fi | |
8616 | ||
ec6a6fbe AK |
8617 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8618 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8619 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8620 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8621 | else |
8622 | if test "$cross_compiling" = yes; then | |
8623 | ac_cv_func_strtod=no | |
8624 | else | |
8625 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8626 | /* confdefs.h. */ |
8627 | _ACEOF | |
8628 | cat confdefs.h >>conftest.$ac_ext | |
8629 | cat >>conftest.$ac_ext <<_ACEOF | |
8630 | /* end confdefs.h. */ | |
8631 | ||
7a197a62 AK |
8632 | $ac_includes_default |
8633 | #ifndef strtod | |
ad6254c5 | 8634 | double strtod (); |
7a197a62 | 8635 | #endif |
ad6254c5 AK |
8636 | int |
8637 | main() | |
8638 | { | |
8639 | { | |
8640 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8641 | char *string = " +69"; | |
8642 | char *term; | |
8643 | double value; | |
8644 | value = strtod (string, &term); | |
8645 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8646 | return 1; |
ad6254c5 AK |
8647 | } |
8648 | ||
8649 | { | |
8650 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8651 | terminating character under some conditions. */ | |
8652 | char *string = "NaN"; | |
8653 | char *term; | |
8654 | strtod (string, &term); | |
8655 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8656 | return 1; |
ad6254c5 | 8657 | } |
7a197a62 | 8658 | return 0; |
ad6254c5 AK |
8659 | } |
8660 | ||
8661 | _ACEOF | |
8662 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8663 | if { (ac_try="$ac_link" |
8664 | case "(($ac_try" in | |
8665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8666 | *) ac_try_echo=$ac_try;; | |
8667 | esac | |
ec6a6fbe AK |
8668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8669 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8670 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8671 | ac_status=$? |
ec6a6fbe | 8672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8674 | { (case "(($ac_try" in |
8675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8676 | *) ac_try_echo=$ac_try;; | |
8677 | esac | |
ec6a6fbe AK |
8678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8679 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8680 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8681 | ac_status=$? |
ec6a6fbe | 8682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8683 | (exit $ac_status); }; }; then |
8684 | ac_cv_func_strtod=yes | |
8685 | else | |
ec6a6fbe AK |
8686 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8687 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8688 | sed 's/^/| /' conftest.$ac_ext >&5 |
8689 | ||
8690 | ( exit $ac_status ) | |
8691 | ac_cv_func_strtod=no | |
8692 | fi | |
ec6a6fbe | 8693 | rm -rf conftest.dSYM |
7a197a62 | 8694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8695 | fi |
7a197a62 AK |
8696 | |
8697 | ||
ad6254c5 | 8698 | fi |
ec6a6fbe AK |
8699 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8700 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8701 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8702 | case " $LIBOBJS " in |
8a2fc586 | 8703 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8704 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8705 | ;; | |
8a2fc586 AK |
8706 | esac |
8707 | ||
ec6a6fbe AK |
8708 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8709 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8710 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8711 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8712 | else |
8713 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8714 | /* confdefs.h. */ |
8715 | _ACEOF | |
8716 | cat confdefs.h >>conftest.$ac_ext | |
8717 | cat >>conftest.$ac_ext <<_ACEOF | |
8718 | /* end confdefs.h. */ | |
8a2fc586 AK |
8719 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8721 | #define pow innocuous_pow | |
8722 | ||
ad6254c5 AK |
8723 | /* System header to define __stub macros and hopefully few prototypes, |
8724 | which can conflict with char pow (); below. | |
8725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8726 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8727 | |
ad6254c5 AK |
8728 | #ifdef __STDC__ |
8729 | # include <limits.h> | |
8730 | #else | |
8731 | # include <assert.h> | |
8732 | #endif | |
8a2fc586 AK |
8733 | |
8734 | #undef pow | |
8735 | ||
7a197a62 AK |
8736 | /* Override any GCC internal prototype to avoid an error. |
8737 | Use char because int might match the return type of a GCC | |
8738 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8739 | #ifdef __cplusplus |
8740 | extern "C" | |
ad6254c5 | 8741 | #endif |
ad6254c5 AK |
8742 | char pow (); |
8743 | /* The GNU C library defines this for functions which it implements | |
8744 | to always fail with ENOSYS. Some functions are actually named | |
8745 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8746 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8747 | choke me |
ad6254c5 AK |
8748 | #endif |
8749 | ||
8750 | int | |
8751 | main () | |
8752 | { | |
7a197a62 | 8753 | return pow (); |
ad6254c5 AK |
8754 | ; |
8755 | return 0; | |
8756 | } | |
8757 | _ACEOF | |
8758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8759 | if { (ac_try="$ac_link" |
8760 | case "(($ac_try" in | |
8761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8762 | *) ac_try_echo=$ac_try;; | |
8763 | esac | |
ec6a6fbe AK |
8764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8765 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8766 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8767 | ac_status=$? |
8a2fc586 AK |
8768 | grep -v '^ *+' conftest.er1 >conftest.err |
8769 | rm -f conftest.er1 | |
8770 | cat conftest.err >&5 | |
ec6a6fbe | 8771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8772 | (exit $ac_status); } && { |
8773 | test -z "$ac_c_werror_flag" || | |
8774 | test ! -s conftest.err | |
ec6a6fbe AK |
8775 | } && test -s conftest$ac_exeext && { |
8776 | test "$cross_compiling" = yes || | |
8777 | $as_test_x conftest$ac_exeext | |
8778 | }; then | |
ad6254c5 AK |
8779 | ac_cv_func_pow=yes |
8780 | else | |
ec6a6fbe | 8781 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8782 | sed 's/^/| /' conftest.$ac_ext >&5 |
8783 | ||
7a197a62 | 8784 | ac_cv_func_pow=no |
ad6254c5 | 8785 | fi |
7a197a62 | 8786 | |
ec6a6fbe | 8787 | rm -rf conftest.dSYM |
25fbec5b | 8788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8789 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8790 | fi |
ec6a6fbe AK |
8791 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8792 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8793 | |
8794 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8795 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8796 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8797 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8798 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8799 | else |
8800 | ac_check_lib_save_LIBS=$LIBS | |
8801 | LIBS="-lm $LIBS" | |
8802 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8803 | /* confdefs.h. */ |
8804 | _ACEOF | |
8805 | cat confdefs.h >>conftest.$ac_ext | |
8806 | cat >>conftest.$ac_ext <<_ACEOF | |
8807 | /* end confdefs.h. */ | |
8808 | ||
7a197a62 AK |
8809 | /* Override any GCC internal prototype to avoid an error. |
8810 | Use char because int might match the return type of a GCC | |
8811 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8812 | #ifdef __cplusplus |
8813 | extern "C" | |
8814 | #endif | |
ad6254c5 AK |
8815 | char pow (); |
8816 | int | |
8817 | main () | |
8818 | { | |
7a197a62 | 8819 | return pow (); |
ad6254c5 AK |
8820 | ; |
8821 | return 0; | |
8822 | } | |
8823 | _ACEOF | |
8824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8825 | if { (ac_try="$ac_link" |
8826 | case "(($ac_try" in | |
8827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8828 | *) ac_try_echo=$ac_try;; | |
8829 | esac | |
ec6a6fbe AK |
8830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8831 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8832 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8833 | ac_status=$? |
8a2fc586 AK |
8834 | grep -v '^ *+' conftest.er1 >conftest.err |
8835 | rm -f conftest.er1 | |
8836 | cat conftest.err >&5 | |
ec6a6fbe | 8837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8838 | (exit $ac_status); } && { |
8839 | test -z "$ac_c_werror_flag" || | |
8840 | test ! -s conftest.err | |
ec6a6fbe AK |
8841 | } && test -s conftest$ac_exeext && { |
8842 | test "$cross_compiling" = yes || | |
8843 | $as_test_x conftest$ac_exeext | |
8844 | }; then | |
ad6254c5 AK |
8845 | ac_cv_lib_m_pow=yes |
8846 | else | |
ec6a6fbe | 8847 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8848 | sed 's/^/| /' conftest.$ac_ext >&5 |
8849 | ||
7a197a62 | 8850 | ac_cv_lib_m_pow=no |
ad6254c5 | 8851 | fi |
7a197a62 | 8852 | |
ec6a6fbe | 8853 | rm -rf conftest.dSYM |
25fbec5b | 8854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8855 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8856 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8857 | fi |
ec6a6fbe AK |
8858 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8859 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8860 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8861 | POW_LIB=-lm |
8862 | else | |
ec6a6fbe AK |
8863 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8864 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8865 | fi |
72b2cb61 | 8866 | |
d0191583 | 8867 | fi |
72b2cb61 | 8868 | |
ad6254c5 AK |
8869 | fi |
8870 | ||
ad6254c5 | 8871 | |
d0191583 JM |
8872 | for ac_func in vprintf |
8873 | do | |
ec6a6fbe AK |
8874 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8875 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8876 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8877 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8878 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8879 | else |
d0191583 JM |
8880 | cat >conftest.$ac_ext <<_ACEOF |
8881 | /* confdefs.h. */ | |
8882 | _ACEOF | |
8883 | cat confdefs.h >>conftest.$ac_ext | |
8884 | cat >>conftest.$ac_ext <<_ACEOF | |
8885 | /* end confdefs.h. */ | |
8886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8888 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8889 | |
d0191583 JM |
8890 | /* System header to define __stub macros and hopefully few prototypes, |
8891 | which can conflict with char $ac_func (); below. | |
8892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8893 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8894 | |
d0191583 JM |
8895 | #ifdef __STDC__ |
8896 | # include <limits.h> | |
8897 | #else | |
8898 | # include <assert.h> | |
8899 | #endif | |
ad6254c5 | 8900 | |
d0191583 | 8901 | #undef $ac_func |
72b2cb61 | 8902 | |
d0191583 JM |
8903 | /* Override any GCC internal prototype to avoid an error. |
8904 | Use char because int might match the return type of a GCC | |
8905 | builtin and then its argument prototype would still apply. */ | |
8906 | #ifdef __cplusplus | |
8907 | extern "C" | |
8908 | #endif | |
8909 | char $ac_func (); | |
8910 | /* The GNU C library defines this for functions which it implements | |
8911 | to always fail with ENOSYS. Some functions are actually named | |
8912 | something starting with __ and the normal name is an alias. */ | |
8913 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8914 | choke me | |
8915 | #endif | |
8916 | ||
8917 | int | |
8918 | main () | |
8919 | { | |
8920 | return $ac_func (); | |
8921 | ; | |
8922 | return 0; | |
8923 | } | |
72b2cb61 | 8924 | _ACEOF |
d0191583 JM |
8925 | rm -f conftest.$ac_objext conftest$ac_exeext |
8926 | if { (ac_try="$ac_link" | |
8927 | case "(($ac_try" in | |
8928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8929 | *) ac_try_echo=$ac_try;; | |
8930 | esac | |
ec6a6fbe AK |
8931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8932 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8933 | (eval "$ac_link") 2>conftest.er1 |
8934 | ac_status=$? | |
8935 | grep -v '^ *+' conftest.er1 >conftest.err | |
8936 | rm -f conftest.er1 | |
8937 | cat conftest.err >&5 | |
ec6a6fbe | 8938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8939 | (exit $ac_status); } && { |
8940 | test -z "$ac_c_werror_flag" || | |
8941 | test ! -s conftest.err | |
ec6a6fbe AK |
8942 | } && test -s conftest$ac_exeext && { |
8943 | test "$cross_compiling" = yes || | |
8944 | $as_test_x conftest$ac_exeext | |
8945 | }; then | |
d0191583 JM |
8946 | eval "$as_ac_var=yes" |
8947 | else | |
ec6a6fbe | 8948 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8949 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8950 | |
d0191583 | 8951 | eval "$as_ac_var=no" |
ad6254c5 AK |
8952 | fi |
8953 | ||
ec6a6fbe | 8954 | rm -rf conftest.dSYM |
d0191583 JM |
8955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8956 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8957 | fi |
ec6a6fbe AK |
8958 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8959 | $as_echo "$as_val"'` | |
8960 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8961 | $as_echo "$ac_res" >&6; } | |
8962 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8963 | $as_echo "$as_val"'` | |
8964 | if test "x$as_val" = x""yes; then | |
d0191583 | 8965 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8966 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8967 | _ACEOF |
7a197a62 | 8968 | |
ec6a6fbe AK |
8969 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8970 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8971 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8972 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8973 | else |
d0191583 JM |
8974 | cat >conftest.$ac_ext <<_ACEOF |
8975 | /* confdefs.h. */ | |
8976 | _ACEOF | |
8977 | cat confdefs.h >>conftest.$ac_ext | |
8978 | cat >>conftest.$ac_ext <<_ACEOF | |
8979 | /* end confdefs.h. */ | |
8980 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8981 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8982 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8983 | |
d0191583 JM |
8984 | /* System header to define __stub macros and hopefully few prototypes, |
8985 | which can conflict with char _doprnt (); below. | |
8986 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8987 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8988 | |
d0191583 JM |
8989 | #ifdef __STDC__ |
8990 | # include <limits.h> | |
8991 | #else | |
8992 | # include <assert.h> | |
8993 | #endif | |
72b2cb61 | 8994 | |
d0191583 JM |
8995 | #undef _doprnt |
8996 | ||
8997 | /* Override any GCC internal prototype to avoid an error. | |
8998 | Use char because int might match the return type of a GCC | |
8999 | builtin and then its argument prototype would still apply. */ | |
9000 | #ifdef __cplusplus | |
9001 | extern "C" | |
9002 | #endif | |
9003 | char _doprnt (); | |
9004 | /* The GNU C library defines this for functions which it implements | |
9005 | to always fail with ENOSYS. Some functions are actually named | |
9006 | something starting with __ and the normal name is an alias. */ | |
9007 | #if defined __stub__doprnt || defined __stub____doprnt | |
9008 | choke me | |
9009 | #endif | |
9010 | ||
9011 | int | |
9012 | main () | |
9013 | { | |
9014 | return _doprnt (); | |
9015 | ; | |
9016 | return 0; | |
9017 | } | |
72b2cb61 | 9018 | _ACEOF |
d0191583 JM |
9019 | rm -f conftest.$ac_objext conftest$ac_exeext |
9020 | if { (ac_try="$ac_link" | |
9021 | case "(($ac_try" in | |
9022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9023 | *) ac_try_echo=$ac_try;; | |
9024 | esac | |
ec6a6fbe AK |
9025 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9026 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
9027 | (eval "$ac_link") 2>conftest.er1 |
9028 | ac_status=$? | |
9029 | grep -v '^ *+' conftest.er1 >conftest.err | |
9030 | rm -f conftest.er1 | |
9031 | cat conftest.err >&5 | |
ec6a6fbe | 9032 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
9033 | (exit $ac_status); } && { |
9034 | test -z "$ac_c_werror_flag" || | |
9035 | test ! -s conftest.err | |
ec6a6fbe AK |
9036 | } && test -s conftest$ac_exeext && { |
9037 | test "$cross_compiling" = yes || | |
9038 | $as_test_x conftest$ac_exeext | |
9039 | }; then | |
d0191583 JM |
9040 | ac_cv_func__doprnt=yes |
9041 | else | |
ec6a6fbe | 9042 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 9043 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 9044 | |
d0191583 | 9045 | ac_cv_func__doprnt=no |
ad6254c5 AK |
9046 | fi |
9047 | ||
ec6a6fbe | 9048 | rm -rf conftest.dSYM |
d0191583 JM |
9049 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9050 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 9051 | fi |
ec6a6fbe AK |
9052 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9053 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
9054 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 9055 | |
d0191583 JM |
9056 | cat >>confdefs.h <<\_ACEOF |
9057 | #define HAVE_DOPRNT 1 | |
9058 | _ACEOF | |
ad6254c5 | 9059 | |
7a197a62 AK |
9060 | fi |
9061 | ||
d0191583 JM |
9062 | fi |
9063 | done | |
8b1a3214 | 9064 | |
ad6254c5 | 9065 | |
7a197a62 | 9066 | |
9c961554 | 9067 | ################################################################################ |
ec6a6fbe AK |
9068 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9069 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
9070 | # Check whether --enable-static_link was given. |
9071 | if test "${enable_static_link+set}" = set; then | |
9072 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9073 | else | |
9074 | STATIC_LINK=no | |
9075 | fi | |
9076 | ||
ec6a6fbe AK |
9077 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9078 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 9079 | |
d0191583 | 9080 | ################################################################################ |
ad6254c5 | 9081 | |
ad6254c5 AK |
9082 | |
9083 | ################################################################################ | |
ec6a6fbe AK |
9084 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
9085 | $as_echo_n "checking file owner... " >&6; } | |
39dabc84 | 9086 | OWNER="" |
d0191583 JM |
9087 | |
9088 | ||
9089 | # Check whether --with-user was given. | |
9090 | if test "${with_user+set}" = set; then | |
9091 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
9092 | fi |
9093 | ||
ec6a6fbe AK |
9094 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
9095 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 9096 | |
d0191583 JM |
9097 | if test x$OWNER != x; then |
9098 | OWNER="-o $OWNER" | |
ad6254c5 AK |
9099 | fi |
9100 | ||
9101 | ################################################################################ | |
ec6a6fbe AK |
9102 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
9103 | $as_echo_n "checking group owner... " >&6; } | |
39dabc84 | 9104 | GROUP="" |
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 | |
9115 | GROUP="-g $GROUP" | |
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 | |
5161ecb9 | 12332 | 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 | |
d0191583 | 12453 | ################################################################################ |
ec6a6fbe AK |
12454 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12455 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12456 | # Check whether --enable-fsadm was given. |
12457 | if test "${enable_fsadm+set}" = set; then | |
12458 | enableval=$enable_fsadm; FSADM=$enableval | |
12459 | fi | |
8a2fc586 | 12460 | |
ec6a6fbe AK |
12461 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12462 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12463 | |
d0191583 | 12464 | ################################################################################ |
ec6a6fbe AK |
12465 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12466 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12467 | # Check whether --enable-dmeventd was given. |
12468 | if test "${enable_dmeventd+set}" = set; then | |
12469 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12470 | fi | |
ad6254c5 | 12471 | |
ec6a6fbe AK |
12472 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12473 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12474 | |
93bd259b AK |
12475 | BUILD_DMEVENTD=$DMEVENTD |
12476 | ||
2a9a80c9 PR |
12477 | if test x$DMEVENTD = xyes; then |
12478 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12479 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12480 | " >&5 |
ec6a6fbe | 12481 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12482 | " >&2;} |
d0191583 | 12483 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12484 | fi |
12485 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12486 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12487 | " >&5 |
ec6a6fbe | 12488 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12489 | " >&2;} |
12490 | { (exit 1); exit 1; }; } | |
12491 | fi | |
ad6254c5 | 12492 | fi |
7a197a62 | 12493 | |
d0191583 JM |
12494 | if test x$DMEVENTD = xyes; then |
12495 | ||
12496 | cat >>confdefs.h <<\_ACEOF | |
12497 | #define DMEVENTD 1 | |
ad6254c5 AK |
12498 | _ACEOF |
12499 | ||
ad6254c5 | 12500 | fi |
93bd259b AK |
12501 | |
12502 | ################################################################################ | |
12503 | ||
ec6a6fbe AK |
12504 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12505 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12506 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12507 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12508 | else |
12509 | ac_check_lib_save_LIBS=$LIBS | |
12510 | LIBS="-lc $LIBS" | |
12511 | cat >conftest.$ac_ext <<_ACEOF | |
12512 | /* confdefs.h. */ | |
12513 | _ACEOF | |
12514 | cat confdefs.h >>conftest.$ac_ext | |
12515 | cat >>conftest.$ac_ext <<_ACEOF | |
12516 | /* end confdefs.h. */ | |
12517 | ||
12518 | /* Override any GCC internal prototype to avoid an error. | |
12519 | Use char because int might match the return type of a GCC | |
12520 | builtin and then its argument prototype would still apply. */ | |
12521 | #ifdef __cplusplus | |
12522 | extern "C" | |
12523 | #endif | |
12524 | char getline (); | |
12525 | int | |
12526 | main () | |
12527 | { | |
12528 | return getline (); | |
12529 | ; | |
12530 | return 0; | |
12531 | } | |
12532 | _ACEOF | |
12533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12534 | if { (ac_try="$ac_link" | |
12535 | case "(($ac_try" in | |
12536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12537 | *) ac_try_echo=$ac_try;; | |
12538 | esac | |
ec6a6fbe AK |
12539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12540 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12541 | (eval "$ac_link") 2>conftest.er1 |
12542 | ac_status=$? | |
12543 | grep -v '^ *+' conftest.er1 >conftest.err | |
12544 | rm -f conftest.er1 | |
12545 | cat conftest.err >&5 | |
ec6a6fbe | 12546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12547 | (exit $ac_status); } && { |
12548 | test -z "$ac_c_werror_flag" || | |
12549 | test ! -s conftest.err | |
ec6a6fbe AK |
12550 | } && test -s conftest$ac_exeext && { |
12551 | test "$cross_compiling" = yes || | |
12552 | $as_test_x conftest$ac_exeext | |
12553 | }; then | |
93bd259b AK |
12554 | ac_cv_lib_c_getline=yes |
12555 | else | |
ec6a6fbe | 12556 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12557 | sed 's/^/| /' conftest.$ac_ext >&5 |
12558 | ||
12559 | ac_cv_lib_c_getline=no | |
12560 | fi | |
12561 | ||
ec6a6fbe | 12562 | rm -rf conftest.dSYM |
93bd259b AK |
12563 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12564 | conftest$ac_exeext conftest.$ac_ext | |
12565 | LIBS=$ac_check_lib_save_LIBS | |
12566 | fi | |
ec6a6fbe AK |
12567 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12568 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12569 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12570 | |
12571 | cat >>confdefs.h <<\_ACEOF | |
12572 | #define HAVE_GETLINE 1 | |
12573 | _ACEOF | |
12574 | ||
12575 | fi | |
12576 | ||
12577 | ||
12578 | ################################################################################ | |
12579 | ||
ec6a6fbe AK |
12580 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12581 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12582 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12583 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12584 | else |
12585 | ac_check_lib_save_LIBS=$LIBS | |
12586 | LIBS="-lc $LIBS" | |
12587 | cat >conftest.$ac_ext <<_ACEOF | |
12588 | /* confdefs.h. */ | |
12589 | _ACEOF | |
12590 | cat confdefs.h >>conftest.$ac_ext | |
12591 | cat >>conftest.$ac_ext <<_ACEOF | |
12592 | /* end confdefs.h. */ | |
12593 | ||
12594 | /* Override any GCC internal prototype to avoid an error. | |
12595 | Use char because int might match the return type of a GCC | |
12596 | builtin and then its argument prototype would still apply. */ | |
12597 | #ifdef __cplusplus | |
12598 | extern "C" | |
12599 | #endif | |
12600 | char canonicalize_file_name (); | |
12601 | int | |
12602 | main () | |
12603 | { | |
12604 | return canonicalize_file_name (); | |
12605 | ; | |
12606 | return 0; | |
12607 | } | |
12608 | _ACEOF | |
12609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12610 | if { (ac_try="$ac_link" | |
12611 | case "(($ac_try" in | |
12612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12613 | *) ac_try_echo=$ac_try;; | |
12614 | esac | |
ec6a6fbe AK |
12615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12616 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12617 | (eval "$ac_link") 2>conftest.er1 |
12618 | ac_status=$? | |
12619 | grep -v '^ *+' conftest.er1 >conftest.err | |
12620 | rm -f conftest.er1 | |
12621 | cat conftest.err >&5 | |
ec6a6fbe | 12622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12623 | (exit $ac_status); } && { |
12624 | test -z "$ac_c_werror_flag" || | |
12625 | test ! -s conftest.err | |
ec6a6fbe AK |
12626 | } && test -s conftest$ac_exeext && { |
12627 | test "$cross_compiling" = yes || | |
12628 | $as_test_x conftest$ac_exeext | |
12629 | }; then | |
93bd259b AK |
12630 | ac_cv_lib_c_canonicalize_file_name=yes |
12631 | else | |
ec6a6fbe | 12632 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12633 | sed 's/^/| /' conftest.$ac_ext >&5 |
12634 | ||
12635 | ac_cv_lib_c_canonicalize_file_name=no | |
12636 | fi | |
12637 | ||
ec6a6fbe | 12638 | rm -rf conftest.dSYM |
93bd259b AK |
12639 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12640 | conftest$ac_exeext conftest.$ac_ext | |
12641 | LIBS=$ac_check_lib_save_LIBS | |
12642 | fi | |
ec6a6fbe AK |
12643 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12644 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12645 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12646 | |
12647 | cat >>confdefs.h <<\_ACEOF | |
12648 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12649 | _ACEOF | |
12650 | ||
12651 | fi | |
12652 | ||
12653 | ||
d0191583 JM |
12654 | ################################################################################ |
12655 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12656 | then exec_prefix=""; | |
12657 | fi; | |
ad6254c5 | 12658 | |
ad6254c5 | 12659 | ################################################################################ |
ec6a6fbe AK |
12660 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12661 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12662 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12663 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12664 | else |
12665 | ac_check_lib_save_LIBS=$LIBS | |
12666 | LIBS="-ldl $LIBS" | |
12667 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12668 | /* confdefs.h. */ |
12669 | _ACEOF | |
12670 | cat confdefs.h >>conftest.$ac_ext | |
12671 | cat >>conftest.$ac_ext <<_ACEOF | |
12672 | /* end confdefs.h. */ | |
12673 | ||
7a197a62 AK |
12674 | /* Override any GCC internal prototype to avoid an error. |
12675 | Use char because int might match the return type of a GCC | |
12676 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12677 | #ifdef __cplusplus |
12678 | extern "C" | |
12679 | #endif | |
ad6254c5 AK |
12680 | char dlopen (); |
12681 | int | |
12682 | main () | |
12683 | { | |
7a197a62 | 12684 | return dlopen (); |
ad6254c5 AK |
12685 | ; |
12686 | return 0; | |
12687 | } | |
12688 | _ACEOF | |
12689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12690 | if { (ac_try="$ac_link" |
12691 | case "(($ac_try" in | |
12692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12693 | *) ac_try_echo=$ac_try;; | |
12694 | esac | |
ec6a6fbe AK |
12695 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12696 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12697 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12698 | ac_status=$? |
8a2fc586 AK |
12699 | grep -v '^ *+' conftest.er1 >conftest.err |
12700 | rm -f conftest.er1 | |
12701 | cat conftest.err >&5 | |
ec6a6fbe | 12702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12703 | (exit $ac_status); } && { |
12704 | test -z "$ac_c_werror_flag" || | |
12705 | test ! -s conftest.err | |
ec6a6fbe AK |
12706 | } && test -s conftest$ac_exeext && { |
12707 | test "$cross_compiling" = yes || | |
12708 | $as_test_x conftest$ac_exeext | |
12709 | }; then | |
ad6254c5 AK |
12710 | ac_cv_lib_dl_dlopen=yes |
12711 | else | |
ec6a6fbe | 12712 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12713 | sed 's/^/| /' conftest.$ac_ext >&5 |
12714 | ||
7a197a62 | 12715 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12716 | fi |
7a197a62 | 12717 | |
ec6a6fbe | 12718 | rm -rf conftest.dSYM |
25fbec5b | 12719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12720 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12721 | LIBS=$ac_check_lib_save_LIBS |
12722 | fi | |
ec6a6fbe AK |
12723 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12724 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12725 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 12726 | |
72b2cb61 AK |
12727 | |
12728 | cat >>confdefs.h <<\_ACEOF | |
12729 | #define HAVE_LIBDL 1 | |
12730 | _ACEOF | |
12731 | ||
19a2c6e0 ZK |
12732 | DL_LIBS="-ldl" |
12733 | HAVE_LIBDL=yes | |
ad6254c5 | 12734 | else |
19a2c6e0 ZK |
12735 | |
12736 | DL_LIBS= | |
ad6254c5 AK |
12737 | HAVE_LIBDL=no |
12738 | fi | |
12739 | ||
19a2c6e0 | 12740 | |
ad6254c5 AK |
12741 | ################################################################################ |
12742 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12743 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12744 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12745 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12746 | " >&5 |
ec6a6fbe | 12747 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12748 | " >&2;} |
12749 | { (exit 1); exit 1; }; } | |
12750 | fi | |
12751 | ||
f30875db ZK |
12752 | ################################################################################ |
12753 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
12754 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
12755 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
12756 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
12757 | $as_echo_n "(cached) " >&6 | |
12758 | else | |
12759 | ac_check_lib_save_LIBS=$LIBS | |
12760 | LIBS="-lpthread $LIBS" | |
12761 | cat >conftest.$ac_ext <<_ACEOF | |
12762 | /* confdefs.h. */ | |
12763 | _ACEOF | |
12764 | cat confdefs.h >>conftest.$ac_ext | |
12765 | cat >>conftest.$ac_ext <<_ACEOF | |
12766 | /* end confdefs.h. */ | |
12767 | ||
12768 | /* Override any GCC internal prototype to avoid an error. | |
12769 | Use char because int might match the return type of a GCC | |
12770 | builtin and then its argument prototype would still apply. */ | |
12771 | #ifdef __cplusplus | |
12772 | extern "C" | |
12773 | #endif | |
12774 | char pthread_mutex_lock (); | |
12775 | int | |
12776 | main () | |
12777 | { | |
12778 | return pthread_mutex_lock (); | |
12779 | ; | |
12780 | return 0; | |
12781 | } | |
12782 | _ACEOF | |
12783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12784 | if { (ac_try="$ac_link" | |
12785 | case "(($ac_try" in | |
12786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12787 | *) ac_try_echo=$ac_try;; | |
12788 | esac | |
12789 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12790 | $as_echo "$ac_try_echo") >&5 | |
12791 | (eval "$ac_link") 2>conftest.er1 | |
12792 | ac_status=$? | |
12793 | grep -v '^ *+' conftest.er1 >conftest.err | |
12794 | rm -f conftest.er1 | |
12795 | cat conftest.err >&5 | |
12796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12797 | (exit $ac_status); } && { | |
12798 | test -z "$ac_c_werror_flag" || | |
12799 | test ! -s conftest.err | |
12800 | } && test -s conftest$ac_exeext && { | |
12801 | test "$cross_compiling" = yes || | |
12802 | $as_test_x conftest$ac_exeext | |
12803 | }; then | |
12804 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
12805 | else | |
12806 | $as_echo "$as_me: failed program was:" >&5 | |
12807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12808 | ||
12809 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
12810 | fi | |
12811 | ||
12812 | rm -rf conftest.dSYM | |
12813 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12814 | conftest$ac_exeext conftest.$ac_ext | |
12815 | LIBS=$ac_check_lib_save_LIBS | |
12816 | fi | |
12817 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
12818 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
12819 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
12820 | PTHREAD_LIBS="-lpthread" | |
12821 | else | |
12822 | hard_bailout | |
12823 | fi | |
12824 | ||
12825 | fi | |
12826 | ||
d0191583 | 12827 | ################################################################################ |
ec6a6fbe AK |
12828 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12829 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12830 | # Check whether --enable-selinux was given. |
12831 | if test "${enable_selinux+set}" = set; then | |
12832 | enableval=$enable_selinux; SELINUX=$enableval | |
12833 | fi | |
12834 | ||
ec6a6fbe AK |
12835 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12836 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12837 | |
ad6254c5 AK |
12838 | ################################################################################ |
12839 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12840 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12841 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12842 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12843 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12844 | else |
12845 | ac_check_lib_save_LIBS=$LIBS | |
12846 | LIBS="-lsepol $LIBS" | |
12847 | cat >conftest.$ac_ext <<_ACEOF | |
12848 | /* confdefs.h. */ | |
12849 | _ACEOF | |
12850 | cat confdefs.h >>conftest.$ac_ext | |
12851 | cat >>conftest.$ac_ext <<_ACEOF | |
12852 | /* end confdefs.h. */ | |
12853 | ||
7a197a62 AK |
12854 | /* Override any GCC internal prototype to avoid an error. |
12855 | Use char because int might match the return type of a GCC | |
12856 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12857 | #ifdef __cplusplus |
12858 | extern "C" | |
12859 | #endif | |
8a2fc586 AK |
12860 | char sepol_check_context (); |
12861 | int | |
12862 | main () | |
12863 | { | |
7a197a62 | 12864 | return sepol_check_context (); |
8a2fc586 AK |
12865 | ; |
12866 | return 0; | |
12867 | } | |
12868 | _ACEOF | |
12869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12870 | if { (ac_try="$ac_link" |
12871 | case "(($ac_try" in | |
12872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12873 | *) ac_try_echo=$ac_try;; | |
12874 | esac | |
ec6a6fbe AK |
12875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12876 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12877 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12878 | ac_status=$? |
12879 | grep -v '^ *+' conftest.er1 >conftest.err | |
12880 | rm -f conftest.er1 | |
12881 | cat conftest.err >&5 | |
ec6a6fbe | 12882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12883 | (exit $ac_status); } && { |
12884 | test -z "$ac_c_werror_flag" || | |
12885 | test ! -s conftest.err | |
ec6a6fbe AK |
12886 | } && test -s conftest$ac_exeext && { |
12887 | test "$cross_compiling" = yes || | |
12888 | $as_test_x conftest$ac_exeext | |
12889 | }; then | |
8a2fc586 AK |
12890 | ac_cv_lib_sepol_sepol_check_context=yes |
12891 | else | |
ec6a6fbe | 12892 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12893 | sed 's/^/| /' conftest.$ac_ext >&5 |
12894 | ||
7a197a62 | 12895 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12896 | fi |
7a197a62 | 12897 | |
ec6a6fbe | 12898 | rm -rf conftest.dSYM |
25fbec5b | 12899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12900 | conftest$ac_exeext conftest.$ac_ext |
12901 | LIBS=$ac_check_lib_save_LIBS | |
12902 | fi | |
ec6a6fbe AK |
12903 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12904 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12905 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 12906 | |
d0191583 JM |
12907 | |
12908 | cat >>confdefs.h <<\_ACEOF | |
12909 | #define HAVE_SEPOL 1 | |
12910 | _ACEOF | |
12911 | ||
f8f6ec92 ZK |
12912 | SELINUX_LIBS="-lsepol" |
12913 | fi | |
12914 | ||
8a2fc586 | 12915 | |
ec6a6fbe AK |
12916 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12917 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12918 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12919 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12920 | else |
12921 | ac_check_lib_save_LIBS=$LIBS | |
12922 | LIBS="-lselinux $LIBS" | |
12923 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12924 | /* confdefs.h. */ |
12925 | _ACEOF | |
12926 | cat confdefs.h >>conftest.$ac_ext | |
12927 | cat >>conftest.$ac_ext <<_ACEOF | |
12928 | /* end confdefs.h. */ | |
12929 | ||
7a197a62 AK |
12930 | /* Override any GCC internal prototype to avoid an error. |
12931 | Use char because int might match the return type of a GCC | |
12932 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12933 | #ifdef __cplusplus |
12934 | extern "C" | |
12935 | #endif | |
ad6254c5 AK |
12936 | char is_selinux_enabled (); |
12937 | int | |
12938 | main () | |
12939 | { | |
7a197a62 | 12940 | return is_selinux_enabled (); |
ad6254c5 AK |
12941 | ; |
12942 | return 0; | |
12943 | } | |
12944 | _ACEOF | |
12945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12946 | if { (ac_try="$ac_link" |
12947 | case "(($ac_try" in | |
12948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12949 | *) ac_try_echo=$ac_try;; | |
12950 | esac | |
ec6a6fbe AK |
12951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12952 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12953 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12954 | ac_status=$? |
8a2fc586 AK |
12955 | grep -v '^ *+' conftest.er1 >conftest.err |
12956 | rm -f conftest.er1 | |
12957 | cat conftest.err >&5 | |
ec6a6fbe | 12958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12959 | (exit $ac_status); } && { |
12960 | test -z "$ac_c_werror_flag" || | |
12961 | test ! -s conftest.err | |
ec6a6fbe AK |
12962 | } && test -s conftest$ac_exeext && { |
12963 | test "$cross_compiling" = yes || | |
12964 | $as_test_x conftest$ac_exeext | |
12965 | }; then | |
ad6254c5 AK |
12966 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12967 | else | |
ec6a6fbe | 12968 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12969 | sed 's/^/| /' conftest.$ac_ext >&5 |
12970 | ||
7a197a62 | 12971 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12972 | fi |
7a197a62 | 12973 | |
ec6a6fbe | 12974 | rm -rf conftest.dSYM |
25fbec5b | 12975 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12976 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12977 | LIBS=$ac_check_lib_save_LIBS |
12978 | fi | |
ec6a6fbe AK |
12979 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12980 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12981 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 12982 | |
72b2cb61 | 12983 | |
f8f6ec92 ZK |
12984 | for ac_header in selinux/selinux.h |
12985 | do | |
12986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12988 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12989 | $as_echo_n "checking for $ac_header... " >&6; } | |
12990 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 12991 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
12992 | fi |
12993 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12994 | $as_echo "$as_val"'` | |
12995 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12996 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 12997 | else |
f8f6ec92 ZK |
12998 | # Is the header compilable? |
12999 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13000 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
13001 | cat >conftest.$ac_ext <<_ACEOF |
13002 | /* confdefs.h. */ | |
13003 | _ACEOF | |
13004 | cat confdefs.h >>conftest.$ac_ext | |
13005 | cat >>conftest.$ac_ext <<_ACEOF | |
13006 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
13007 | $ac_includes_default |
13008 | #include <$ac_header> | |
66e941e8 | 13009 | _ACEOF |
f8f6ec92 ZK |
13010 | rm -f conftest.$ac_objext |
13011 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
13012 | case "(($ac_try" in |
13013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13014 | *) ac_try_echo=$ac_try;; | |
13015 | esac | |
ec6a6fbe AK |
13016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13017 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 13018 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
13019 | ac_status=$? |
13020 | grep -v '^ *+' conftest.er1 >conftest.err | |
13021 | rm -f conftest.er1 | |
13022 | cat conftest.err >&5 | |
ec6a6fbe | 13023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13024 | (exit $ac_status); } && { |
13025 | test -z "$ac_c_werror_flag" || | |
13026 | test ! -s conftest.err | |
f8f6ec92 ZK |
13027 | } && test -s conftest.$ac_objext; then |
13028 | ac_header_compiler=yes | |
13029 | else | |
13030 | $as_echo "$as_me: failed program was:" >&5 | |
13031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13032 | ||
13033 | ac_header_compiler=no | |
13034 | fi | |
13035 | ||
13036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13037 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13038 | $as_echo "$ac_header_compiler" >&6; } | |
13039 | ||
13040 | # Is the header present? | |
13041 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13042 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13043 | cat >conftest.$ac_ext <<_ACEOF | |
13044 | /* confdefs.h. */ | |
13045 | _ACEOF | |
13046 | cat confdefs.h >>conftest.$ac_ext | |
13047 | cat >>conftest.$ac_ext <<_ACEOF | |
13048 | /* end confdefs.h. */ | |
13049 | #include <$ac_header> | |
13050 | _ACEOF | |
13051 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13052 | case "(($ac_try" in | |
13053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13054 | *) ac_try_echo=$ac_try;; | |
13055 | esac | |
13056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13057 | $as_echo "$ac_try_echo") >&5 | |
13058 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13059 | ac_status=$? | |
13060 | grep -v '^ *+' conftest.er1 >conftest.err | |
13061 | rm -f conftest.er1 | |
13062 | cat conftest.err >&5 | |
13063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13064 | (exit $ac_status); } >/dev/null && { | |
13065 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13066 | test ! -s conftest.err | |
ec6a6fbe | 13067 | }; then |
f8f6ec92 | 13068 | ac_header_preproc=yes |
66e941e8 | 13069 | else |
ec6a6fbe | 13070 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
13071 | sed 's/^/| /' conftest.$ac_ext >&5 |
13072 | ||
f8f6ec92 ZK |
13073 | ac_header_preproc=no |
13074 | fi | |
13075 | ||
13076 | rm -f conftest.err conftest.$ac_ext | |
13077 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13078 | $as_echo "$ac_header_preproc" >&6; } | |
13079 | ||
13080 | # So? What about this header? | |
13081 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13082 | yes:no: ) | |
13083 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13084 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13085 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13086 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13087 | ac_header_preproc=yes | |
13088 | ;; | |
13089 | no:yes:* ) | |
13090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13091 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13093 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13094 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13095 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13097 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13099 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13100 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13101 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 13102 | |
f8f6ec92 ZK |
13103 | ;; |
13104 | esac | |
13105 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13106 | $as_echo_n "checking for $ac_header... " >&6; } | |
13107 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13108 | $as_echo_n "(cached) " >&6 | |
13109 | else | |
13110 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 13111 | fi |
f8f6ec92 ZK |
13112 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13113 | $as_echo "$as_val"'` | |
13114 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13115 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13116 | |
66e941e8 | 13117 | fi |
f8f6ec92 ZK |
13118 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13119 | $as_echo "$as_val"'` | |
13120 | if test "x$as_val" = x""yes; then | |
13121 | cat >>confdefs.h <<_ACEOF | |
13122 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13123 | _ACEOF | |
13124 | ||
66e941e8 | 13125 | else |
f8f6ec92 | 13126 | hard_bailout |
66e941e8 | 13127 | fi |
f8f6ec92 ZK |
13128 | |
13129 | done | |
13130 | ||
13131 | ||
13132 | cat >>confdefs.h <<\_ACEOF | |
13133 | #define HAVE_SELINUX 1 | |
13134 | _ACEOF | |
13135 | ||
13136 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
13137 | HAVE_SELINUX=yes | |
13138 | else | |
13139 | ||
13140 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
13141 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
13142 | SELINUX_LIBS= | |
13143 | HAVE_SELINUX=no | |
66e941e8 JM |
13144 | fi |
13145 | ||
ad6254c5 AK |
13146 | fi |
13147 | ||
8b1a3214 AK |
13148 | ################################################################################ |
13149 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
13150 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
13151 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 13152 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 13153 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
13154 | else |
13155 | ac_check_lib_save_LIBS=$LIBS | |
13156 | LIBS="-lrt $LIBS" | |
13157 | cat >conftest.$ac_ext <<_ACEOF | |
13158 | /* confdefs.h. */ | |
13159 | _ACEOF | |
13160 | cat confdefs.h >>conftest.$ac_ext | |
13161 | cat >>conftest.$ac_ext <<_ACEOF | |
13162 | /* end confdefs.h. */ | |
13163 | ||
7a197a62 AK |
13164 | /* Override any GCC internal prototype to avoid an error. |
13165 | Use char because int might match the return type of a GCC | |
13166 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
13167 | #ifdef __cplusplus |
13168 | extern "C" | |
13169 | #endif | |
8b1a3214 AK |
13170 | char clock_gettime (); |
13171 | int | |
13172 | main () | |
13173 | { | |
7a197a62 | 13174 | return clock_gettime (); |
8b1a3214 AK |
13175 | ; |
13176 | return 0; | |
13177 | } | |
13178 | _ACEOF | |
13179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13180 | if { (ac_try="$ac_link" |
13181 | case "(($ac_try" in | |
13182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13183 | *) ac_try_echo=$ac_try;; | |
13184 | esac | |
ec6a6fbe AK |
13185 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13186 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13187 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13188 | ac_status=$? |
13189 | grep -v '^ *+' conftest.er1 >conftest.err | |
13190 | rm -f conftest.er1 | |
13191 | cat conftest.err >&5 | |
ec6a6fbe | 13192 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13193 | (exit $ac_status); } && { |
13194 | test -z "$ac_c_werror_flag" || | |
13195 | test ! -s conftest.err | |
ec6a6fbe AK |
13196 | } && test -s conftest$ac_exeext && { |
13197 | test "$cross_compiling" = yes || | |
13198 | $as_test_x conftest$ac_exeext | |
13199 | }; then | |
8b1a3214 AK |
13200 | ac_cv_lib_rt_clock_gettime=yes |
13201 | else | |
ec6a6fbe | 13202 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13203 | sed 's/^/| /' conftest.$ac_ext >&5 |
13204 | ||
7a197a62 | 13205 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13206 | fi |
7a197a62 | 13207 | |
ec6a6fbe | 13208 | rm -rf conftest.dSYM |
25fbec5b | 13209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13210 | conftest$ac_exeext conftest.$ac_ext |
13211 | LIBS=$ac_check_lib_save_LIBS | |
13212 | fi | |
ec6a6fbe AK |
13213 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13214 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13215 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13216 | HAVE_REALTIME=yes |
13217 | else | |
13218 | HAVE_REALTIME=no | |
13219 | fi | |
13220 | ||
8b1a3214 AK |
13221 | |
13222 | if test x$HAVE_REALTIME = xyes; then | |
13223 | ||
13224 | cat >>confdefs.h <<\_ACEOF | |
13225 | #define HAVE_REALTIME 1 | |
13226 | _ACEOF | |
13227 | ||
13228 | LIBS="-lrt $LIBS" | |
13229 | else | |
ec6a6fbe AK |
13230 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13231 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13232 | fi |
13233 | fi | |
13234 | ||
ad6254c5 AK |
13235 | ################################################################################ |
13236 | ||
13237 | for ac_header in getopt.h | |
13238 | do | |
ec6a6fbe | 13239 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13240 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13241 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13242 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13244 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13245 | fi |
ec6a6fbe AK |
13246 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13247 | $as_echo "$as_val"'` | |
13248 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13249 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13250 | else |
13251 | # Is the header compilable? | |
ec6a6fbe AK |
13252 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13253 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13254 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13255 | /* confdefs.h. */ |
13256 | _ACEOF | |
13257 | cat confdefs.h >>conftest.$ac_ext | |
13258 | cat >>conftest.$ac_ext <<_ACEOF | |
13259 | /* end confdefs.h. */ | |
13260 | $ac_includes_default | |
13261 | #include <$ac_header> | |
13262 | _ACEOF | |
13263 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13264 | if { (ac_try="$ac_compile" |
13265 | case "(($ac_try" in | |
13266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13267 | *) ac_try_echo=$ac_try;; | |
13268 | esac | |
ec6a6fbe AK |
13269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13270 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13271 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13272 | ac_status=$? |
8a2fc586 AK |
13273 | grep -v '^ *+' conftest.er1 >conftest.err |
13274 | rm -f conftest.er1 | |
13275 | cat conftest.err >&5 | |
ec6a6fbe | 13276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13277 | (exit $ac_status); } && { |
13278 | test -z "$ac_c_werror_flag" || | |
13279 | test ! -s conftest.err | |
13280 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13281 | ac_header_compiler=yes |
13282 | else | |
ec6a6fbe | 13283 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13284 | sed 's/^/| /' conftest.$ac_ext >&5 |
13285 | ||
7a197a62 | 13286 | ac_header_compiler=no |
ad6254c5 | 13287 | fi |
7a197a62 AK |
13288 | |
13289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13290 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13291 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13292 | |
13293 | # Is the header present? | |
ec6a6fbe AK |
13294 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13295 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13296 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13297 | /* confdefs.h. */ |
13298 | _ACEOF | |
13299 | cat confdefs.h >>conftest.$ac_ext | |
13300 | cat >>conftest.$ac_ext <<_ACEOF | |
13301 | /* end confdefs.h. */ | |
13302 | #include <$ac_header> | |
13303 | _ACEOF | |
7a197a62 AK |
13304 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13305 | case "(($ac_try" in | |
13306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13307 | *) ac_try_echo=$ac_try;; | |
13308 | esac | |
ec6a6fbe AK |
13309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13310 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13311 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13312 | ac_status=$? |
13313 | grep -v '^ *+' conftest.er1 >conftest.err | |
13314 | rm -f conftest.er1 | |
13315 | cat conftest.err >&5 | |
ec6a6fbe | 13316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13317 | (exit $ac_status); } >/dev/null && { |
13318 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13319 | test ! -s conftest.err | |
13320 | }; then | |
ad6254c5 AK |
13321 | ac_header_preproc=yes |
13322 | else | |
ec6a6fbe | 13323 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13324 | sed 's/^/| /' conftest.$ac_ext >&5 |
13325 | ||
13326 | ac_header_preproc=no | |
13327 | fi | |
7a197a62 | 13328 | |
ad6254c5 | 13329 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13330 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13331 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13332 | |
13333 | # So? What about this header? | |
8a2fc586 AK |
13334 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13335 | yes:no: ) | |
ec6a6fbe AK |
13336 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13337 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13338 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13339 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13340 | ac_header_preproc=yes |
ad6254c5 | 13341 | ;; |
8a2fc586 | 13342 | no:yes:* ) |
ec6a6fbe AK |
13343 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13344 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13345 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13346 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13347 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13348 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13349 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13350 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13351 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13352 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13353 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13354 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13355 | |
ad6254c5 AK |
13356 | ;; |
13357 | esac | |
ec6a6fbe AK |
13358 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13359 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13360 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13361 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13362 | else |
8a2fc586 | 13363 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13364 | fi |
ec6a6fbe AK |
13365 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13366 | $as_echo "$as_val"'` | |
13367 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13368 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13369 | |
13370 | fi | |
ec6a6fbe AK |
13371 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13372 | $as_echo "$as_val"'` | |
13373 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13374 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13375 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13376 | _ACEOF |
72b2cb61 AK |
13377 | |
13378 | cat >>confdefs.h <<\_ACEOF | |
13379 | #define HAVE_GETOPTLONG 1 | |
13380 | _ACEOF | |
13381 | ||
ad6254c5 AK |
13382 | fi |
13383 | ||
13384 | done | |
13385 | ||
13386 | ||
13387 | ################################################################################ | |
06e459df | 13388 | if test x$READLINE != xno; then |
539f4a77 ZK |
13389 | lvm_saved_libs=$LIBS |
13390 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
13391 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13392 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13393 | $as_echo_n "(cached) " >&6 | |
13394 | else | |
13395 | ac_func_search_save_LIBS=$LIBS | |
13396 | cat >conftest.$ac_ext <<_ACEOF | |
13397 | /* confdefs.h. */ | |
13398 | _ACEOF | |
13399 | cat confdefs.h >>conftest.$ac_ext | |
13400 | cat >>conftest.$ac_ext <<_ACEOF | |
13401 | /* end confdefs.h. */ | |
bc1024f8 | 13402 | |
539f4a77 ZK |
13403 | /* Override any GCC internal prototype to avoid an error. |
13404 | Use char because int might match the return type of a GCC | |
13405 | builtin and then its argument prototype would still apply. */ | |
13406 | #ifdef __cplusplus | |
13407 | extern "C" | |
13408 | #endif | |
13409 | char tgetent (); | |
13410 | int | |
13411 | main () | |
13412 | { | |
13413 | return tgetent (); | |
13414 | ; | |
13415 | return 0; | |
13416 | } | |
13417 | _ACEOF | |
13418 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
13419 | if test -z "$ac_lib"; then | |
13420 | ac_res="none required" | |
13421 | else | |
13422 | ac_res=-l$ac_lib | |
13423 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13424 | fi | |
13425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13426 | if { (ac_try="$ac_link" | |
13427 | case "(($ac_try" in | |
13428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13429 | *) ac_try_echo=$ac_try;; | |
13430 | esac | |
13431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13432 | $as_echo "$ac_try_echo") >&5 | |
13433 | (eval "$ac_link") 2>conftest.er1 | |
13434 | ac_status=$? | |
13435 | grep -v '^ *+' conftest.er1 >conftest.err | |
13436 | rm -f conftest.er1 | |
13437 | cat conftest.err >&5 | |
13438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13439 | (exit $ac_status); } && { | |
13440 | test -z "$ac_c_werror_flag" || | |
13441 | test ! -s conftest.err | |
13442 | } && test -s conftest$ac_exeext && { | |
13443 | test "$cross_compiling" = yes || | |
13444 | $as_test_x conftest$ac_exeext | |
13445 | }; then | |
13446 | ac_cv_search_tgetent=$ac_res | |
13447 | else | |
13448 | $as_echo "$as_me: failed program was:" >&5 | |
13449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13450 | ||
13451 | ||
13452 | fi | |
13453 | ||
13454 | rm -rf conftest.dSYM | |
13455 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13456 | conftest$ac_exeext | |
13457 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13458 | break | |
13459 | fi | |
13460 | done | |
13461 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13462 | : | |
13463 | else | |
13464 | ac_cv_search_tgetent=no | |
13465 | fi | |
13466 | rm conftest.$ac_ext | |
13467 | LIBS=$ac_func_search_save_LIBS | |
13468 | fi | |
13469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
13470 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13471 | ac_res=$ac_cv_search_tgetent | |
13472 | if test "$ac_res" != no; then | |
13473 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13474 | READLINE_LIBS=$ac_cv_search_tgetent | |
13475 | else | |
13476 | ||
13477 | if test "$READLINE" = yes; then | |
13478 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
13479 | --enable-readline option (which is enabled by default). Either disable readline | |
13480 | support with --disable-readline or download and install termcap from: | |
13481 | ftp.gnu.org/gnu/termcap | |
13482 | Note: if you are using precompiled packages you will also need the development | |
13483 | package as well (which may be called termcap-devel or something similar). | |
13484 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13485 | not found either - but you could try installing that as well." >&5 | |
13486 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
13487 | --enable-readline option (which is enabled by default). Either disable readline | |
13488 | support with --disable-readline or download and install termcap from: | |
13489 | ftp.gnu.org/gnu/termcap | |
13490 | Note: if you are using precompiled packages you will also need the development | |
13491 | package as well (which may be called termcap-devel or something similar). | |
13492 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13493 | not found either - but you could try installing that as well." >&2;} | |
13494 | { (exit 1); exit 1; }; } | |
13495 | fi | |
13496 | fi | |
13497 | ||
13498 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 13499 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 13500 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13501 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13502 | else |
13503 | ac_check_lib_save_LIBS=$LIBS | |
13504 | LIBS="-lreadline $LIBS" | |
13505 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13506 | /* confdefs.h. */ |
13507 | _ACEOF | |
13508 | cat confdefs.h >>conftest.$ac_ext | |
13509 | cat >>conftest.$ac_ext <<_ACEOF | |
13510 | /* end confdefs.h. */ | |
13511 | ||
7a197a62 AK |
13512 | /* Override any GCC internal prototype to avoid an error. |
13513 | Use char because int might match the return type of a GCC | |
13514 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13515 | #ifdef __cplusplus |
13516 | extern "C" | |
13517 | #endif | |
ad6254c5 AK |
13518 | char readline (); |
13519 | int | |
13520 | main () | |
13521 | { | |
7a197a62 | 13522 | return readline (); |
ad6254c5 AK |
13523 | ; |
13524 | return 0; | |
13525 | } | |
13526 | _ACEOF | |
13527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13528 | if { (ac_try="$ac_link" |
13529 | case "(($ac_try" in | |
13530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13531 | *) ac_try_echo=$ac_try;; | |
13532 | esac | |
ec6a6fbe AK |
13533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13534 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13535 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13536 | ac_status=$? |
8a2fc586 AK |
13537 | grep -v '^ *+' conftest.er1 >conftest.err |
13538 | rm -f conftest.er1 | |
13539 | cat conftest.err >&5 | |
ec6a6fbe | 13540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13541 | (exit $ac_status); } && { |
13542 | test -z "$ac_c_werror_flag" || | |
13543 | test ! -s conftest.err | |
ec6a6fbe AK |
13544 | } && test -s conftest$ac_exeext && { |
13545 | test "$cross_compiling" = yes || | |
13546 | $as_test_x conftest$ac_exeext | |
13547 | }; then | |
ad6254c5 AK |
13548 | ac_cv_lib_readline_readline=yes |
13549 | else | |
ec6a6fbe | 13550 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13551 | sed 's/^/| /' conftest.$ac_ext >&5 |
13552 | ||
7a197a62 | 13553 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13554 | fi |
7a197a62 | 13555 | |
ec6a6fbe | 13556 | rm -rf conftest.dSYM |
25fbec5b | 13557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13558 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13559 | LIBS=$ac_check_lib_save_LIBS |
13560 | fi | |
ec6a6fbe AK |
13561 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13562 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13563 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
13564 | |
13565 | ||
13566 | cat >>confdefs.h <<\_ACEOF | |
13567 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
13568 | _ACEOF |
13569 | ||
539f4a77 ZK |
13570 | LIBS=$lvm_saved_libs |
13571 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
13572 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
13573 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
13574 | $as_echo_n "(cached) " >&6 | |
13575 | else | |
13576 | ac_check_lib_save_LIBS=$LIBS | |
13577 | LIBS="-lreadline $LIBS" | |
13578 | cat >conftest.$ac_ext <<_ACEOF | |
13579 | /* confdefs.h. */ | |
13580 | _ACEOF | |
13581 | cat confdefs.h >>conftest.$ac_ext | |
13582 | cat >>conftest.$ac_ext <<_ACEOF | |
13583 | /* end confdefs.h. */ | |
bc1024f8 | 13584 | |
539f4a77 ZK |
13585 | /* Override any GCC internal prototype to avoid an error. |
13586 | Use char because int might match the return type of a GCC | |
13587 | builtin and then its argument prototype would still apply. */ | |
13588 | #ifdef __cplusplus | |
13589 | extern "C" | |
13590 | #endif | |
13591 | char rl_line_buffer (); | |
13592 | int | |
13593 | main () | |
13594 | { | |
13595 | return rl_line_buffer (); | |
13596 | ; | |
13597 | return 0; | |
13598 | } | |
13599 | _ACEOF | |
13600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13601 | if { (ac_try="$ac_link" | |
13602 | case "(($ac_try" in | |
13603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13604 | *) ac_try_echo=$ac_try;; | |
13605 | esac | |
13606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13607 | $as_echo "$ac_try_echo") >&5 | |
13608 | (eval "$ac_link") 2>conftest.er1 | |
13609 | ac_status=$? | |
13610 | grep -v '^ *+' conftest.er1 >conftest.err | |
13611 | rm -f conftest.er1 | |
13612 | cat conftest.err >&5 | |
13613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13614 | (exit $ac_status); } && { | |
13615 | test -z "$ac_c_werror_flag" || | |
13616 | test ! -s conftest.err | |
13617 | } && test -s conftest$ac_exeext && { | |
13618 | test "$cross_compiling" = yes || | |
13619 | $as_test_x conftest$ac_exeext | |
13620 | }; then | |
13621 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 13622 | else |
539f4a77 ZK |
13623 | $as_echo "$as_me: failed program was:" >&5 |
13624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13625 | ||
13626 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
13627 | fi |
13628 | ||
539f4a77 ZK |
13629 | rm -rf conftest.dSYM |
13630 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13631 | conftest$ac_exeext conftest.$ac_ext | |
13632 | LIBS=$ac_check_lib_save_LIBS | |
13633 | fi | |
13634 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
13635 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
13636 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
13637 | READLINE_LIBS="-lreadline" | |
13638 | else | |
13639 | ||
13640 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
13641 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
13642 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
13643 | ||
13644 | fi | |
13645 | ||
13646 | else | |
13647 | ||
13648 | READLINE_LIBS= | |
13649 | if test "$READLINE" = yes; then | |
13650 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
13651 | --enable-readline option (which is enabled by default). Either disable readline |
13652 | support with --disable-readline or download and install readline from: | |
13653 | ftp.gnu.org/gnu/readline | |
13654 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13655 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 13656 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13657 | --enable-readline option (which is enabled by default). Either disable readline |
13658 | support with --disable-readline or download and install readline from: | |
13659 | ftp.gnu.org/gnu/readline | |
13660 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13661 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 13662 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
13663 | fi |
13664 | fi | |
13665 | ||
13666 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
13667 | |
13668 | for ac_func in rl_completion_matches | |
13669 | do | |
ec6a6fbe AK |
13670 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13671 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13672 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13673 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13674 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13675 | else |
13676 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13677 | /* confdefs.h. */ |
13678 | _ACEOF | |
13679 | cat confdefs.h >>conftest.$ac_ext | |
13680 | cat >>conftest.$ac_ext <<_ACEOF | |
13681 | /* end confdefs.h. */ | |
bc1024f8 | 13682 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13683 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13684 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13685 | |
ad6254c5 | 13686 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13687 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13689 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13690 | |
ad6254c5 AK |
13691 | #ifdef __STDC__ |
13692 | # include <limits.h> | |
13693 | #else | |
13694 | # include <assert.h> | |
13695 | #endif | |
8a2fc586 | 13696 | |
bc1024f8 | 13697 | #undef $ac_func |
8a2fc586 | 13698 | |
7a197a62 AK |
13699 | /* Override any GCC internal prototype to avoid an error. |
13700 | Use char because int might match the return type of a GCC | |
13701 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13702 | #ifdef __cplusplus |
13703 | extern "C" | |
ad6254c5 | 13704 | #endif |
bc1024f8 | 13705 | char $ac_func (); |
ad6254c5 AK |
13706 | /* The GNU C library defines this for functions which it implements |
13707 | to always fail with ENOSYS. Some functions are actually named | |
13708 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13709 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13710 | choke me |
ad6254c5 AK |
13711 | #endif |
13712 | ||
13713 | int | |
13714 | main () | |
13715 | { | |
bc1024f8 | 13716 | return $ac_func (); |
ad6254c5 AK |
13717 | ; |
13718 | return 0; | |
13719 | } | |
13720 | _ACEOF | |
13721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13722 | if { (ac_try="$ac_link" |
13723 | case "(($ac_try" in | |
13724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13725 | *) ac_try_echo=$ac_try;; | |
13726 | esac | |
ec6a6fbe AK |
13727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13728 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13729 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13730 | ac_status=$? |
8a2fc586 AK |
13731 | grep -v '^ *+' conftest.er1 >conftest.err |
13732 | rm -f conftest.er1 | |
13733 | cat conftest.err >&5 | |
ec6a6fbe | 13734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13735 | (exit $ac_status); } && { |
13736 | test -z "$ac_c_werror_flag" || | |
13737 | test ! -s conftest.err | |
ec6a6fbe AK |
13738 | } && test -s conftest$ac_exeext && { |
13739 | test "$cross_compiling" = yes || | |
13740 | $as_test_x conftest$ac_exeext | |
13741 | }; then | |
bc1024f8 | 13742 | eval "$as_ac_var=yes" |
ad6254c5 | 13743 | else |
ec6a6fbe | 13744 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13745 | sed 's/^/| /' conftest.$ac_ext >&5 |
13746 | ||
bc1024f8 | 13747 | eval "$as_ac_var=no" |
ad6254c5 | 13748 | fi |
7a197a62 | 13749 | |
ec6a6fbe | 13750 | rm -rf conftest.dSYM |
25fbec5b | 13751 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13752 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13753 | fi |
ec6a6fbe AK |
13754 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13755 | $as_echo "$as_val"'` | |
13756 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13757 | $as_echo "$ac_res" >&6; } | |
13758 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13759 | $as_echo "$as_val"'` | |
13760 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13761 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13762 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13763 | _ACEOF |
13764 | ||
13765 | fi | |
bc1024f8 | 13766 | done |
ad6254c5 | 13767 | |
539f4a77 | 13768 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
13769 | fi |
13770 | ||
13771 | ################################################################################ | |
ec6a6fbe AK |
13772 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13773 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13774 | # Check whether --enable-nls was given. |
ad6254c5 | 13775 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13776 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13777 | else |
13778 | INTL=no | |
7a197a62 AK |
13779 | fi |
13780 | ||
ec6a6fbe AK |
13781 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13782 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13783 | |
13784 | if test x$INTL = xyes; then | |
93bd259b | 13785 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13786 | INTL_PACKAGE="lvm2" |
13787 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13788 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13789 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13790 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13791 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13792 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13793 | else |
13794 | case $MSGFMT in | |
13795 | [\\/]* | ?:[\\/]*) | |
13796 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13797 | ;; | |
13798 | *) | |
13799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13800 | for as_dir in $PATH | |
13801 | do | |
13802 | IFS=$as_save_IFS | |
13803 | test -z "$as_dir" && as_dir=. | |
13804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13806 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13807 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13808 | break 2 |
13809 | fi | |
13810 | done | |
13811 | done | |
7a197a62 | 13812 | IFS=$as_save_IFS |
ad6254c5 AK |
13813 | |
13814 | ;; | |
13815 | esac | |
13816 | fi | |
13817 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13818 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13819 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13820 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13821 | else |
ec6a6fbe AK |
13822 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13823 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13824 | fi |
13825 | ||
7a197a62 | 13826 | |
ad6254c5 | 13827 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13828 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13829 | " >&5 |
ec6a6fbe | 13830 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13831 | " >&2;} |
13832 | { (exit 1); exit 1; }; } | |
13833 | fi; | |
13834 | ||
13835 | ||
7a197a62 | 13836 | # Check whether --with-localedir was given. |
ad6254c5 | 13837 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13838 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13839 | else |
13840 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13841 | fi |
13842 | ||
ad6254c5 AK |
13843 | fi |
13844 | ||
13845 | ################################################################################ | |
13846 | ||
7a197a62 | 13847 | # Check whether --with-confdir was given. |
ad6254c5 | 13848 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13849 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13850 | else |
13851 | CONFDIR='/etc' | |
7a197a62 AK |
13852 | fi |
13853 | ||
ad6254c5 AK |
13854 | |
13855 | ||
7a197a62 | 13856 | # Check whether --with-staticdir was given. |
ad6254c5 | 13857 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13858 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13859 | else |
13860 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13861 | fi |
ad6254c5 | 13862 | |
33f732c5 | 13863 | |
7a197a62 | 13864 | |
68f2de6d AK |
13865 | # Check whether --with-usrlibdir was given. |
13866 | if test "${with_usrlibdir+set}" = set; then | |
13867 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13868 | else | |
13869 | usrlibdir='${prefix}/lib' | |
13870 | fi | |
13871 | ||
13872 | ||
13873 | ||
13874 | # Check whether --with-usrsbindir was given. | |
13875 | if test "${with_usrsbindir+set}" = set; then | |
13876 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13877 | else | |
13878 | usrsbindir='${prefix}/sbin' | |
13879 | fi | |
13880 | ||
13881 | ||
a5f46f6a AK |
13882 | ################################################################################ |
13883 | ||
13884 | # Check whether --with-udev_prefix was given. | |
13885 | if test "${with_udev_prefix+set}" = set; then | |
13886 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13887 | else | |
13888 | udev_prefix='${exec_prefix}' | |
13889 | fi | |
13890 | ||
13891 | ||
78ce7acc AK |
13892 | |
13893 | # Check whether --with-udevdir was given. | |
13894 | if test "${with_udevdir+set}" = set; then | |
13895 | withval=$with_udevdir; udevdir="$withval" | |
13896 | else | |
13897 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13898 | fi | |
13899 | ||
a5f46f6a | 13900 | |
ad6254c5 AK |
13901 | ################################################################################ |
13902 | if test x$READLINE = xyes; then | |
13903 | ||
13904 | ||
13905 | for ac_header in readline/readline.h readline/history.h | |
13906 | do | |
ec6a6fbe | 13907 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13909 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13910 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13911 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13912 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13913 | fi |
ec6a6fbe AK |
13914 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13915 | $as_echo "$as_val"'` | |
13916 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13917 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13918 | else |
13919 | # Is the header compilable? | |
ec6a6fbe AK |
13920 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13921 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13922 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13923 | /* confdefs.h. */ |
13924 | _ACEOF | |
13925 | cat confdefs.h >>conftest.$ac_ext | |
13926 | cat >>conftest.$ac_ext <<_ACEOF | |
13927 | /* end confdefs.h. */ | |
13928 | $ac_includes_default | |
13929 | #include <$ac_header> | |
13930 | _ACEOF | |
13931 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13932 | if { (ac_try="$ac_compile" |
13933 | case "(($ac_try" in | |
13934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13935 | *) ac_try_echo=$ac_try;; | |
13936 | esac | |
ec6a6fbe AK |
13937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13938 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13939 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13940 | ac_status=$? |
8a2fc586 AK |
13941 | grep -v '^ *+' conftest.er1 >conftest.err |
13942 | rm -f conftest.er1 | |
13943 | cat conftest.err >&5 | |
ec6a6fbe | 13944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13945 | (exit $ac_status); } && { |
13946 | test -z "$ac_c_werror_flag" || | |
13947 | test ! -s conftest.err | |
13948 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13949 | ac_header_compiler=yes |
13950 | else | |
ec6a6fbe | 13951 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13952 | sed 's/^/| /' conftest.$ac_ext >&5 |
13953 | ||
7a197a62 | 13954 | ac_header_compiler=no |
ad6254c5 | 13955 | fi |
7a197a62 AK |
13956 | |
13957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13958 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13959 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13960 | |
13961 | # Is the header present? | |
ec6a6fbe AK |
13962 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13963 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13964 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13965 | /* confdefs.h. */ |
13966 | _ACEOF | |
13967 | cat confdefs.h >>conftest.$ac_ext | |
13968 | cat >>conftest.$ac_ext <<_ACEOF | |
13969 | /* end confdefs.h. */ | |
13970 | #include <$ac_header> | |
13971 | _ACEOF | |
7a197a62 AK |
13972 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13973 | case "(($ac_try" in | |
13974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13975 | *) ac_try_echo=$ac_try;; | |
13976 | esac | |
ec6a6fbe AK |
13977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13978 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13979 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13980 | ac_status=$? |
13981 | grep -v '^ *+' conftest.er1 >conftest.err | |
13982 | rm -f conftest.er1 | |
13983 | cat conftest.err >&5 | |
ec6a6fbe | 13984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13985 | (exit $ac_status); } >/dev/null && { |
13986 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13987 | test ! -s conftest.err | |
13988 | }; then | |
ad6254c5 AK |
13989 | ac_header_preproc=yes |
13990 | else | |
ec6a6fbe | 13991 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13992 | sed 's/^/| /' conftest.$ac_ext >&5 |
13993 | ||
13994 | ac_header_preproc=no | |
13995 | fi | |
7a197a62 | 13996 | |
ad6254c5 | 13997 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13998 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13999 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14000 | |
14001 | # So? What about this header? | |
8a2fc586 AK |
14002 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14003 | yes:no: ) | |
ec6a6fbe AK |
14004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14005 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14007 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14008 | ac_header_preproc=yes |
ad6254c5 | 14009 | ;; |
8a2fc586 | 14010 | no:yes:* ) |
ec6a6fbe AK |
14011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14012 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14014 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14016 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14018 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14020 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14022 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14023 | |
ad6254c5 AK |
14024 | ;; |
14025 | esac | |
ec6a6fbe AK |
14026 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14027 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14028 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14029 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14030 | else |
8a2fc586 | 14031 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14032 | fi |
ec6a6fbe AK |
14033 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14034 | $as_echo "$as_val"'` | |
14035 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14036 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14037 | |
14038 | fi | |
ec6a6fbe AK |
14039 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14040 | $as_echo "$as_val"'` | |
14041 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14042 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14043 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14044 | _ACEOF |
14045 | ||
14046 | else | |
ec6a6fbe AK |
14047 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14048 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14049 | { (exit 1); exit 1; }; } |
14050 | fi | |
14051 | ||
14052 | done | |
14053 | ||
14054 | fi | |
14055 | ||
5c7fc7c4 | 14056 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
14057 | |
14058 | ||
14059 | ||
14060 | ||
14061 | ||
14062 | ||
14063 | ||
14064 | ||
14065 | ||
14066 | ||
14067 | 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 | |
14068 | do | |
ec6a6fbe | 14069 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14071 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14072 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14074 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14075 | fi |
ec6a6fbe AK |
14076 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14077 | $as_echo "$as_val"'` | |
14078 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14079 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14080 | else |
14081 | # Is the header compilable? | |
ec6a6fbe AK |
14082 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14083 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14084 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14085 | /* confdefs.h. */ |
14086 | _ACEOF | |
14087 | cat confdefs.h >>conftest.$ac_ext | |
14088 | cat >>conftest.$ac_ext <<_ACEOF | |
14089 | /* end confdefs.h. */ | |
14090 | $ac_includes_default | |
14091 | #include <$ac_header> | |
14092 | _ACEOF | |
14093 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14094 | if { (ac_try="$ac_compile" |
14095 | case "(($ac_try" in | |
14096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14097 | *) ac_try_echo=$ac_try;; | |
14098 | esac | |
ec6a6fbe AK |
14099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14100 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14101 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14102 | ac_status=$? |
8a2fc586 AK |
14103 | grep -v '^ *+' conftest.er1 >conftest.err |
14104 | rm -f conftest.er1 | |
14105 | cat conftest.err >&5 | |
ec6a6fbe | 14106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14107 | (exit $ac_status); } && { |
14108 | test -z "$ac_c_werror_flag" || | |
14109 | test ! -s conftest.err | |
14110 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14111 | ac_header_compiler=yes |
14112 | else | |
ec6a6fbe | 14113 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14114 | sed 's/^/| /' conftest.$ac_ext >&5 |
14115 | ||
7a197a62 | 14116 | ac_header_compiler=no |
ad6254c5 | 14117 | fi |
7a197a62 AK |
14118 | |
14119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14120 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14121 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14122 | |
14123 | # Is the header present? | |
ec6a6fbe AK |
14124 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14125 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14126 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14127 | /* confdefs.h. */ |
14128 | _ACEOF | |
14129 | cat confdefs.h >>conftest.$ac_ext | |
14130 | cat >>conftest.$ac_ext <<_ACEOF | |
14131 | /* end confdefs.h. */ | |
14132 | #include <$ac_header> | |
14133 | _ACEOF | |
7a197a62 AK |
14134 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14135 | case "(($ac_try" in | |
14136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14137 | *) ac_try_echo=$ac_try;; | |
14138 | esac | |
ec6a6fbe AK |
14139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14140 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14141 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14142 | ac_status=$? |
14143 | grep -v '^ *+' conftest.er1 >conftest.err | |
14144 | rm -f conftest.er1 | |
14145 | cat conftest.err >&5 | |
ec6a6fbe | 14146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14147 | (exit $ac_status); } >/dev/null && { |
14148 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14149 | test ! -s conftest.err | |
14150 | }; then | |
ad6254c5 AK |
14151 | ac_header_preproc=yes |
14152 | else | |
ec6a6fbe | 14153 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14154 | sed 's/^/| /' conftest.$ac_ext >&5 |
14155 | ||
14156 | ac_header_preproc=no | |
14157 | fi | |
7a197a62 | 14158 | |
ad6254c5 | 14159 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14160 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14161 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14162 | |
14163 | # So? What about this header? | |
8a2fc586 AK |
14164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14165 | yes:no: ) | |
ec6a6fbe AK |
14166 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14167 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14168 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14169 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14170 | ac_header_preproc=yes |
ad6254c5 | 14171 | ;; |
8a2fc586 | 14172 | no:yes:* ) |
ec6a6fbe AK |
14173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14174 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14175 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14176 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14178 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14179 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14180 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14181 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14182 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14183 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14184 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14185 | |
ad6254c5 AK |
14186 | ;; |
14187 | esac | |
ec6a6fbe AK |
14188 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14189 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14191 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14192 | else |
8a2fc586 | 14193 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14194 | fi |
ec6a6fbe AK |
14195 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14196 | $as_echo "$as_val"'` | |
14197 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14198 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14199 | |
14200 | fi | |
ec6a6fbe AK |
14201 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14202 | $as_echo "$as_val"'` | |
14203 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14204 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14205 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14206 | _ACEOF |
14207 | ||
14208 | else | |
ec6a6fbe AK |
14209 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14210 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14211 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14212 | fi |
14213 | ||
ad6254c5 AK |
14214 | done |
14215 | ||
14216 | ||
795ca3e5 | 14217 | |
8106cdd5 | 14218 | |
ad6254c5 AK |
14219 | |
14220 | ||
14221 | for ac_func in dup2 getmntent memmove select socket | |
14222 | do | |
ec6a6fbe AK |
14223 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14224 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14225 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14226 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14227 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14228 | else |
ad6254c5 | 14229 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14230 | /* confdefs.h. */ |
14231 | _ACEOF | |
14232 | cat confdefs.h >>conftest.$ac_ext | |
14233 | cat >>conftest.$ac_ext <<_ACEOF | |
14234 | /* end confdefs.h. */ | |
8a2fc586 AK |
14235 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14237 | #define $ac_func innocuous_$ac_func | |
14238 | ||
795ca3e5 | 14239 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
14240 | which can conflict with char $ac_func (); below. |
14241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14242 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14243 | |
ad6254c5 AK |
14244 | #ifdef __STDC__ |
14245 | # include <limits.h> | |
14246 | #else | |
14247 | # include <assert.h> | |
14248 | #endif | |
8a2fc586 AK |
14249 | |
14250 | #undef $ac_func | |
14251 | ||
7a197a62 AK |
14252 | /* Override any GCC internal prototype to avoid an error. |
14253 | Use char because int might match the return type of a GCC | |
14254 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14255 | #ifdef __cplusplus |
14256 | extern "C" | |
ad6254c5 | 14257 | #endif |
ad6254c5 | 14258 | char $ac_func (); |
795ca3e5 AK |
14259 | /* The GNU C library defines this for functions which it implements |
14260 | to always fail with ENOSYS. Some functions are actually named | |
14261 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14262 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 14263 | choke me |
795ca3e5 AK |
14264 | #endif |
14265 | ||
ad6254c5 AK |
14266 | int |
14267 | main () | |
14268 | { | |
7a197a62 | 14269 | return $ac_func (); |
ad6254c5 AK |
14270 | ; |
14271 | return 0; | |
14272 | } | |
14273 | _ACEOF | |
14274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14275 | if { (ac_try="$ac_link" |
14276 | case "(($ac_try" in | |
14277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14278 | *) ac_try_echo=$ac_try;; | |
14279 | esac | |
ec6a6fbe AK |
14280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14281 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14282 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14283 | ac_status=$? |
8a2fc586 AK |
14284 | grep -v '^ *+' conftest.er1 >conftest.err |
14285 | rm -f conftest.er1 | |
14286 | cat conftest.err >&5 | |
ec6a6fbe | 14287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14288 | (exit $ac_status); } && { |
14289 | test -z "$ac_c_werror_flag" || | |
14290 | test ! -s conftest.err | |
ec6a6fbe AK |
14291 | } && test -s conftest$ac_exeext && { |
14292 | test "$cross_compiling" = yes || | |
14293 | $as_test_x conftest$ac_exeext | |
14294 | }; then | |
ad6254c5 | 14295 | eval "$as_ac_var=yes" |
795ca3e5 | 14296 | else |
ec6a6fbe | 14297 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14298 | sed 's/^/| /' conftest.$ac_ext >&5 |
14299 | ||
7a197a62 | 14300 | eval "$as_ac_var=no" |
80992638 | 14301 | fi |
7a197a62 | 14302 | |
ec6a6fbe | 14303 | rm -rf conftest.dSYM |
25fbec5b | 14304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14305 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 14306 | fi |
ec6a6fbe AK |
14307 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14308 | $as_echo "$as_val"'` | |
14309 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14310 | $as_echo "$ac_res" >&6; } | |
14311 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14312 | $as_echo "$as_val"'` | |
14313 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14314 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14315 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 14316 | _ACEOF |
80992638 AK |
14317 | |
14318 | else | |
ec6a6fbe AK |
14319 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14320 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14321 | { (exit 1); exit 1; }; } |
8106cdd5 | 14322 | fi |
ad6254c5 | 14323 | done |
795ca3e5 | 14324 | |
25fbec5b AK |
14325 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
14326 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
14327 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
14328 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 14329 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 14330 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
14331 | else |
14332 | ac_func_search_save_LIBS=$LIBS | |
14333 | cat >conftest.$ac_ext <<_ACEOF | |
14334 | /* confdefs.h. */ | |
14335 | _ACEOF | |
14336 | cat confdefs.h >>conftest.$ac_ext | |
14337 | cat >>conftest.$ac_ext <<_ACEOF | |
14338 | /* end confdefs.h. */ | |
80992638 | 14339 | |
7a197a62 AK |
14340 | /* Override any GCC internal prototype to avoid an error. |
14341 | Use char because int might match the return type of a GCC | |
ad6254c5 | 14342 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
14343 | #ifdef __cplusplus |
14344 | extern "C" | |
14345 | #endif | |
25fbec5b | 14346 | char getmntent (); |
ad6254c5 AK |
14347 | int |
14348 | main () | |
14349 | { | |
25fbec5b | 14350 | return getmntent (); |
ad6254c5 AK |
14351 | ; |
14352 | return 0; | |
14353 | } | |
14354 | _ACEOF | |
25fbec5b AK |
14355 | for ac_lib in '' sun seq gen; do |
14356 | if test -z "$ac_lib"; then | |
14357 | ac_res="none required" | |
14358 | else | |
14359 | ac_res=-l$ac_lib | |
14360 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14361 | fi | |
14362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14363 | if { (ac_try="$ac_link" |
14364 | case "(($ac_try" in | |
14365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14366 | *) ac_try_echo=$ac_try;; | |
14367 | esac | |
ec6a6fbe AK |
14368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14369 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14370 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14371 | ac_status=$? |
8a2fc586 AK |
14372 | grep -v '^ *+' conftest.er1 >conftest.err |
14373 | rm -f conftest.er1 | |
14374 | cat conftest.err >&5 | |
ec6a6fbe | 14375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14376 | (exit $ac_status); } && { |
14377 | test -z "$ac_c_werror_flag" || | |
14378 | test ! -s conftest.err | |
ec6a6fbe AK |
14379 | } && test -s conftest$ac_exeext && { |
14380 | test "$cross_compiling" = yes || | |
14381 | $as_test_x conftest$ac_exeext | |
14382 | }; then | |
25fbec5b | 14383 | ac_cv_search_getmntent=$ac_res |
80992638 | 14384 | else |
ec6a6fbe | 14385 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14386 | sed 's/^/| /' conftest.$ac_ext >&5 |
14387 | ||
25fbec5b | 14388 | |
795ca3e5 AK |
14389 | fi |
14390 | ||
ec6a6fbe | 14391 | rm -rf conftest.dSYM |
25fbec5b AK |
14392 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14393 | conftest$ac_exeext | |
14394 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14395 | break | |
795ca3e5 | 14396 | fi |
25fbec5b AK |
14397 | done |
14398 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14399 | : | |
14400 | else | |
14401 | ac_cv_search_getmntent=no | |
14402 | fi | |
14403 | rm conftest.$ac_ext | |
14404 | LIBS=$ac_func_search_save_LIBS | |
14405 | fi | |
ec6a6fbe AK |
14406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14407 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14408 | ac_res=$ac_cv_search_getmntent |
14409 | if test "$ac_res" != no; then | |
14410 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14411 | ac_cv_func_getmntent=yes | |
14412 | ||
14413 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14414 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14415 | _ACEOF |
795ca3e5 | 14416 | |
25fbec5b AK |
14417 | else |
14418 | ac_cv_func_getmntent=no | |
795ca3e5 | 14419 | fi |
795ca3e5 AK |
14420 | |
14421 | ||
ad6254c5 AK |
14422 | # AC_FUNC_REALLOC |
14423 | ||
14424 | ||
14425 | for ac_header in sys/select.h sys/socket.h | |
14426 | do | |
ec6a6fbe | 14427 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14429 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14430 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14432 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14433 | fi |
ec6a6fbe AK |
14434 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14435 | $as_echo "$as_val"'` | |
14436 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14437 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14438 | else |
ad6254c5 | 14439 | # Is the header compilable? |
ec6a6fbe AK |
14440 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14441 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14442 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14443 | /* confdefs.h. */ |
14444 | _ACEOF | |
14445 | cat confdefs.h >>conftest.$ac_ext | |
14446 | cat >>conftest.$ac_ext <<_ACEOF | |
14447 | /* end confdefs.h. */ | |
14448 | $ac_includes_default | |
14449 | #include <$ac_header> | |
14450 | _ACEOF | |
14451 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14452 | if { (ac_try="$ac_compile" |
14453 | case "(($ac_try" in | |
14454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14455 | *) ac_try_echo=$ac_try;; | |
14456 | esac | |
ec6a6fbe AK |
14457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14458 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14459 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14460 | ac_status=$? |
8a2fc586 AK |
14461 | grep -v '^ *+' conftest.er1 >conftest.err |
14462 | rm -f conftest.er1 | |
14463 | cat conftest.err >&5 | |
ec6a6fbe | 14464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14465 | (exit $ac_status); } && { |
14466 | test -z "$ac_c_werror_flag" || | |
14467 | test ! -s conftest.err | |
14468 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14469 | ac_header_compiler=yes |
80992638 | 14470 | else |
ec6a6fbe | 14471 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14472 | sed 's/^/| /' conftest.$ac_ext >&5 |
14473 | ||
7a197a62 | 14474 | ac_header_compiler=no |
ad6254c5 | 14475 | fi |
7a197a62 AK |
14476 | |
14477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14478 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14479 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14480 | |
14481 | # Is the header present? | |
ec6a6fbe AK |
14482 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14483 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14484 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14485 | /* confdefs.h. */ |
14486 | _ACEOF | |
14487 | cat confdefs.h >>conftest.$ac_ext | |
14488 | cat >>conftest.$ac_ext <<_ACEOF | |
14489 | /* end confdefs.h. */ | |
14490 | #include <$ac_header> | |
14491 | _ACEOF | |
7a197a62 AK |
14492 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14493 | case "(($ac_try" in | |
14494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14495 | *) ac_try_echo=$ac_try;; | |
14496 | esac | |
ec6a6fbe AK |
14497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14498 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14499 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14500 | ac_status=$? |
14501 | grep -v '^ *+' conftest.er1 >conftest.err | |
14502 | rm -f conftest.er1 | |
14503 | cat conftest.err >&5 | |
ec6a6fbe | 14504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14505 | (exit $ac_status); } >/dev/null && { |
14506 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14507 | test ! -s conftest.err | |
14508 | }; then | |
ad6254c5 AK |
14509 | ac_header_preproc=yes |
14510 | else | |
ec6a6fbe | 14511 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14512 | sed 's/^/| /' conftest.$ac_ext >&5 |
14513 | ||
14514 | ac_header_preproc=no | |
14515 | fi | |
7a197a62 | 14516 | |
ad6254c5 | 14517 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14518 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14519 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14520 | |
14521 | # So? What about this header? | |
8a2fc586 AK |
14522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14523 | yes:no: ) | |
ec6a6fbe AK |
14524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14525 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14527 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14528 | ac_header_preproc=yes |
ad6254c5 | 14529 | ;; |
8a2fc586 | 14530 | no:yes:* ) |
ec6a6fbe AK |
14531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14532 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14534 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14536 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14538 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14540 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14542 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14543 | |
ad6254c5 AK |
14544 | ;; |
14545 | esac | |
ec6a6fbe AK |
14546 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14547 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14549 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14550 | else |
8a2fc586 | 14551 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14552 | fi |
ec6a6fbe AK |
14553 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14554 | $as_echo "$as_val"'` | |
14555 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14556 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14557 | |
795ca3e5 | 14558 | fi |
ec6a6fbe AK |
14559 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14560 | $as_echo "$as_val"'` | |
14561 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14562 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14563 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14564 | _ACEOF |
14565 | ||
795ca3e5 AK |
14566 | fi |
14567 | ||
ad6254c5 AK |
14568 | done |
14569 | ||
ec6a6fbe AK |
14570 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14571 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14572 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14573 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14574 | else |
ad6254c5 | 14575 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14576 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14577 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14578 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14579 | /* confdefs.h. */ |
14580 | _ACEOF | |
14581 | cat confdefs.h >>conftest.$ac_ext | |
14582 | cat >>conftest.$ac_ext <<_ACEOF | |
14583 | /* end confdefs.h. */ | |
14584 | $ac_includes_default | |
25fbec5b | 14585 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14586 | # include <sys/select.h> |
14587 | #endif | |
25fbec5b | 14588 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14589 | # include <sys/socket.h> |
14590 | #endif | |
14591 | ||
14592 | int | |
14593 | main () | |
14594 | { | |
14595 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14596 | $ac_arg234, $ac_arg234, $ac_arg234, |
14597 | $ac_arg5); | |
ad6254c5 AK |
14598 | ; |
14599 | return 0; | |
14600 | } | |
14601 | _ACEOF | |
14602 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14603 | if { (ac_try="$ac_compile" |
14604 | case "(($ac_try" in | |
14605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14606 | *) ac_try_echo=$ac_try;; | |
14607 | esac | |
ec6a6fbe AK |
14608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14609 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14610 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14611 | ac_status=$? |
8a2fc586 AK |
14612 | grep -v '^ *+' conftest.er1 >conftest.err |
14613 | rm -f conftest.er1 | |
14614 | cat conftest.err >&5 | |
ec6a6fbe | 14615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14616 | (exit $ac_status); } && { |
14617 | test -z "$ac_c_werror_flag" || | |
14618 | test ! -s conftest.err | |
14619 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14620 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14621 | else | |
ec6a6fbe | 14622 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14623 | sed 's/^/| /' conftest.$ac_ext >&5 |
14624 | ||
7a197a62 | 14625 | |
ad6254c5 | 14626 | fi |
7a197a62 AK |
14627 | |
14628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14629 | done |
14630 | done | |
14631 | done | |
14632 | # Provide a safe default value. | |
14633 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14634 | ||
26e7f2e0 | 14635 | fi |
ec6a6fbe AK |
14636 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14637 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14638 | ac_save_IFS=$IFS; IFS=',' |
14639 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14640 | IFS=$ac_save_IFS | |
14641 | shift | |
14642 | ||
14643 | cat >>confdefs.h <<_ACEOF | |
14644 | #define SELECT_TYPE_ARG1 $1 | |
14645 | _ACEOF | |
14646 | ||
14647 | ||
14648 | cat >>confdefs.h <<_ACEOF | |
14649 | #define SELECT_TYPE_ARG234 ($2) | |
14650 | _ACEOF | |
14651 | ||
14652 | ||
14653 | cat >>confdefs.h <<_ACEOF | |
14654 | #define SELECT_TYPE_ARG5 ($3) | |
14655 | _ACEOF | |
14656 | ||
80992638 | 14657 | rm -f conftest* |
80992638 | 14658 | |
8106cdd5 | 14659 | fi |
ad6254c5 | 14660 | |
ad6254c5 AK |
14661 | if test x$CLUSTER != xnone; then |
14662 | ||
14663 | ||
14664 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14665 | do |
ec6a6fbe | 14666 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14668 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14669 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14671 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14672 | fi |
ec6a6fbe AK |
14673 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14674 | $as_echo "$as_val"'` | |
14675 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14676 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14677 | else |
14678 | # Is the header compilable? | |
ec6a6fbe AK |
14679 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14680 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14681 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14682 | /* confdefs.h. */ |
14683 | _ACEOF | |
14684 | cat confdefs.h >>conftest.$ac_ext | |
14685 | cat >>conftest.$ac_ext <<_ACEOF | |
14686 | /* end confdefs.h. */ | |
14687 | $ac_includes_default | |
14688 | #include <$ac_header> | |
14689 | _ACEOF | |
14690 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14691 | if { (ac_try="$ac_compile" |
14692 | case "(($ac_try" in | |
14693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14694 | *) ac_try_echo=$ac_try;; | |
14695 | esac | |
ec6a6fbe AK |
14696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14697 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14698 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14699 | ac_status=$? |
8a2fc586 AK |
14700 | grep -v '^ *+' conftest.er1 >conftest.err |
14701 | rm -f conftest.er1 | |
14702 | cat conftest.err >&5 | |
ec6a6fbe | 14703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14704 | (exit $ac_status); } && { |
14705 | test -z "$ac_c_werror_flag" || | |
14706 | test ! -s conftest.err | |
14707 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14708 | ac_header_compiler=yes |
14709 | else | |
ec6a6fbe | 14710 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14711 | sed 's/^/| /' conftest.$ac_ext >&5 |
14712 | ||
7a197a62 | 14713 | ac_header_compiler=no |
ad6254c5 | 14714 | fi |
7a197a62 AK |
14715 | |
14716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14717 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14718 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14719 | |
14720 | # Is the header present? | |
ec6a6fbe AK |
14721 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14722 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14723 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14724 | /* confdefs.h. */ |
14725 | _ACEOF | |
14726 | cat confdefs.h >>conftest.$ac_ext | |
14727 | cat >>conftest.$ac_ext <<_ACEOF | |
14728 | /* end confdefs.h. */ | |
14729 | #include <$ac_header> | |
14730 | _ACEOF | |
7a197a62 AK |
14731 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14732 | case "(($ac_try" in | |
14733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14734 | *) ac_try_echo=$ac_try;; | |
14735 | esac | |
ec6a6fbe AK |
14736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14737 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14739 | ac_status=$? |
14740 | grep -v '^ *+' conftest.er1 >conftest.err | |
14741 | rm -f conftest.er1 | |
14742 | cat conftest.err >&5 | |
ec6a6fbe | 14743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14744 | (exit $ac_status); } >/dev/null && { |
14745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14746 | test ! -s conftest.err | |
14747 | }; then | |
ad6254c5 AK |
14748 | ac_header_preproc=yes |
14749 | else | |
ec6a6fbe | 14750 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14751 | sed 's/^/| /' conftest.$ac_ext >&5 |
14752 | ||
14753 | ac_header_preproc=no | |
14754 | fi | |
7a197a62 | 14755 | |
ad6254c5 | 14756 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14757 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14758 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14759 | |
14760 | # So? What about this header? | |
8a2fc586 AK |
14761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14762 | yes:no: ) | |
ec6a6fbe AK |
14763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14764 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14766 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14767 | ac_header_preproc=yes |
ad6254c5 | 14768 | ;; |
8a2fc586 | 14769 | no:yes:* ) |
ec6a6fbe AK |
14770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14771 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14773 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14775 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14777 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14781 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14782 | |
ad6254c5 AK |
14783 | ;; |
14784 | esac | |
ec6a6fbe AK |
14785 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14786 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14788 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14789 | else |
8a2fc586 | 14790 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14791 | fi |
ec6a6fbe AK |
14792 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14793 | $as_echo "$as_val"'` | |
14794 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14795 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14796 | |
14797 | fi | |
ec6a6fbe AK |
14798 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14799 | $as_echo "$as_val"'` | |
14800 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14801 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14802 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14803 | _ACEOF |
14804 | ||
80992638 | 14805 | else |
ec6a6fbe AK |
14806 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14807 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14808 | { (exit 1); exit 1; }; } |
b896caa1 | 14809 | fi |
ad6254c5 | 14810 | |
b896caa1 AK |
14811 | done |
14812 | ||
14813 | ||
ad6254c5 AK |
14814 | for ac_func in socket |
14815 | do | |
ec6a6fbe AK |
14816 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14817 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14818 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14819 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14820 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14821 | else |
ad6254c5 | 14822 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14823 | /* confdefs.h. */ |
14824 | _ACEOF | |
14825 | cat confdefs.h >>conftest.$ac_ext | |
14826 | cat >>conftest.$ac_ext <<_ACEOF | |
14827 | /* end confdefs.h. */ | |
8a2fc586 AK |
14828 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14829 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14830 | #define $ac_func innocuous_$ac_func | |
14831 | ||
ad6254c5 AK |
14832 | /* System header to define __stub macros and hopefully few prototypes, |
14833 | which can conflict with char $ac_func (); below. | |
14834 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14835 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14836 | |
ad6254c5 AK |
14837 | #ifdef __STDC__ |
14838 | # include <limits.h> | |
14839 | #else | |
14840 | # include <assert.h> | |
14841 | #endif | |
8a2fc586 AK |
14842 | |
14843 | #undef $ac_func | |
14844 | ||
7a197a62 AK |
14845 | /* Override any GCC internal prototype to avoid an error. |
14846 | Use char because int might match the return type of a GCC | |
14847 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14848 | #ifdef __cplusplus |
14849 | extern "C" | |
ad6254c5 | 14850 | #endif |
ad6254c5 AK |
14851 | char $ac_func (); |
14852 | /* The GNU C library defines this for functions which it implements | |
14853 | to always fail with ENOSYS. Some functions are actually named | |
14854 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14855 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14856 | choke me |
ad6254c5 AK |
14857 | #endif |
14858 | ||
14859 | int | |
14860 | main () | |
14861 | { | |
7a197a62 | 14862 | return $ac_func (); |
ad6254c5 AK |
14863 | ; |
14864 | return 0; | |
14865 | } | |
14866 | _ACEOF | |
14867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14868 | if { (ac_try="$ac_link" |
14869 | case "(($ac_try" in | |
14870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14871 | *) ac_try_echo=$ac_try;; | |
14872 | esac | |
ec6a6fbe AK |
14873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14874 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14875 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14876 | ac_status=$? |
8a2fc586 AK |
14877 | grep -v '^ *+' conftest.er1 >conftest.err |
14878 | rm -f conftest.er1 | |
14879 | cat conftest.err >&5 | |
ec6a6fbe | 14880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14881 | (exit $ac_status); } && { |
14882 | test -z "$ac_c_werror_flag" || | |
14883 | test ! -s conftest.err | |
ec6a6fbe AK |
14884 | } && test -s conftest$ac_exeext && { |
14885 | test "$cross_compiling" = yes || | |
14886 | $as_test_x conftest$ac_exeext | |
14887 | }; then | |
ad6254c5 AK |
14888 | eval "$as_ac_var=yes" |
14889 | else | |
ec6a6fbe | 14890 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14891 | sed 's/^/| /' conftest.$ac_ext >&5 |
14892 | ||
7a197a62 | 14893 | eval "$as_ac_var=no" |
ad6254c5 | 14894 | fi |
7a197a62 | 14895 | |
ec6a6fbe | 14896 | rm -rf conftest.dSYM |
25fbec5b | 14897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14898 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14899 | fi |
ec6a6fbe AK |
14900 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14901 | $as_echo "$as_val"'` | |
14902 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14903 | $as_echo "$ac_res" >&6; } | |
14904 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14905 | $as_echo "$as_val"'` | |
14906 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14907 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14908 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14909 | _ACEOF |
14910 | ||
14911 | else | |
ec6a6fbe AK |
14912 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14913 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14914 | { (exit 1); exit 1; }; } |
14915 | fi | |
14916 | done | |
14917 | ||
14918 | fi | |
14919 | ||
14920 | if test x$HAVE_LIBDL = xyes; then | |
14921 | ||
14922 | for ac_header in dlfcn.h | |
14923 | do | |
ec6a6fbe | 14924 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14926 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14927 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14929 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14930 | fi |
ec6a6fbe AK |
14931 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14932 | $as_echo "$as_val"'` | |
14933 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14934 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14935 | else |
14936 | # Is the header compilable? | |
ec6a6fbe AK |
14937 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14938 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14939 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14940 | /* confdefs.h. */ |
14941 | _ACEOF | |
14942 | cat confdefs.h >>conftest.$ac_ext | |
14943 | cat >>conftest.$ac_ext <<_ACEOF | |
14944 | /* end confdefs.h. */ | |
14945 | $ac_includes_default | |
14946 | #include <$ac_header> | |
14947 | _ACEOF | |
14948 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14949 | if { (ac_try="$ac_compile" |
14950 | case "(($ac_try" in | |
14951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14952 | *) ac_try_echo=$ac_try;; | |
14953 | esac | |
ec6a6fbe AK |
14954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14955 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14956 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14957 | ac_status=$? |
8a2fc586 AK |
14958 | grep -v '^ *+' conftest.er1 >conftest.err |
14959 | rm -f conftest.er1 | |
14960 | cat conftest.err >&5 | |
ec6a6fbe | 14961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14962 | (exit $ac_status); } && { |
14963 | test -z "$ac_c_werror_flag" || | |
14964 | test ! -s conftest.err | |
14965 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14966 | ac_header_compiler=yes |
14967 | else | |
ec6a6fbe | 14968 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14969 | sed 's/^/| /' conftest.$ac_ext >&5 |
14970 | ||
7a197a62 | 14971 | ac_header_compiler=no |
ad6254c5 | 14972 | fi |
7a197a62 AK |
14973 | |
14974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14975 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14976 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14977 | |
14978 | # Is the header present? | |
ec6a6fbe AK |
14979 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14980 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14981 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14982 | /* confdefs.h. */ |
14983 | _ACEOF | |
14984 | cat confdefs.h >>conftest.$ac_ext | |
14985 | cat >>conftest.$ac_ext <<_ACEOF | |
14986 | /* end confdefs.h. */ | |
14987 | #include <$ac_header> | |
14988 | _ACEOF | |
7a197a62 AK |
14989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14990 | case "(($ac_try" in | |
14991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14992 | *) ac_try_echo=$ac_try;; | |
14993 | esac | |
ec6a6fbe AK |
14994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14995 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14997 | ac_status=$? |
14998 | grep -v '^ *+' conftest.er1 >conftest.err | |
14999 | rm -f conftest.er1 | |
15000 | cat conftest.err >&5 | |
ec6a6fbe | 15001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15002 | (exit $ac_status); } >/dev/null && { |
15003 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15004 | test ! -s conftest.err | |
15005 | }; then | |
ad6254c5 AK |
15006 | ac_header_preproc=yes |
15007 | else | |
ec6a6fbe | 15008 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15009 | sed 's/^/| /' conftest.$ac_ext >&5 |
15010 | ||
15011 | ac_header_preproc=no | |
15012 | fi | |
7a197a62 | 15013 | |
ad6254c5 | 15014 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15015 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15016 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15017 | |
15018 | # So? What about this header? | |
8a2fc586 AK |
15019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15020 | yes:no: ) | |
ec6a6fbe AK |
15021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15022 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15024 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15025 | ac_header_preproc=yes |
ad6254c5 | 15026 | ;; |
8a2fc586 | 15027 | no:yes:* ) |
ec6a6fbe AK |
15028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15029 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15031 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15033 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15035 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15037 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15039 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15040 | |
ad6254c5 AK |
15041 | ;; |
15042 | esac | |
ec6a6fbe AK |
15043 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15044 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15045 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15046 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15047 | else |
8a2fc586 | 15048 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 15049 | fi |
ec6a6fbe AK |
15050 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15051 | $as_echo "$as_val"'` | |
15052 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15053 | $as_echo "$ac_res" >&6; } | |
80992638 | 15054 | |
8106cdd5 | 15055 | fi |
ec6a6fbe AK |
15056 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15057 | $as_echo "$as_val"'` | |
15058 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15059 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15060 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15061 | _ACEOF |
795ca3e5 AK |
15062 | |
15063 | else | |
ec6a6fbe AK |
15064 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15065 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15066 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
15067 | fi |
15068 | ||
ad6254c5 | 15069 | done |
80992638 | 15070 | |
ad6254c5 | 15071 | fi |
80992638 | 15072 | |
ad6254c5 | 15073 | if test x$INTL = xyes; then |
83912faa | 15074 | |
ad6254c5 AK |
15075 | for ac_header in libintl.h |
15076 | do | |
ec6a6fbe | 15077 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15079 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15080 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15082 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15083 | fi |
ec6a6fbe AK |
15084 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15085 | $as_echo "$as_val"'` | |
15086 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15087 | $as_echo "$ac_res" >&6; } | |
83912faa | 15088 | else |
ad6254c5 | 15089 | # Is the header compilable? |
ec6a6fbe AK |
15090 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15091 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15092 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15093 | /* confdefs.h. */ |
15094 | _ACEOF | |
15095 | cat confdefs.h >>conftest.$ac_ext | |
15096 | cat >>conftest.$ac_ext <<_ACEOF | |
15097 | /* end confdefs.h. */ | |
15098 | $ac_includes_default | |
15099 | #include <$ac_header> | |
15100 | _ACEOF | |
15101 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15102 | if { (ac_try="$ac_compile" |
15103 | case "(($ac_try" in | |
15104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15105 | *) ac_try_echo=$ac_try;; | |
15106 | esac | |
ec6a6fbe AK |
15107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15108 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15109 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15110 | ac_status=$? |
8a2fc586 AK |
15111 | grep -v '^ *+' conftest.er1 >conftest.err |
15112 | rm -f conftest.er1 | |
15113 | cat conftest.err >&5 | |
ec6a6fbe | 15114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15115 | (exit $ac_status); } && { |
15116 | test -z "$ac_c_werror_flag" || | |
15117 | test ! -s conftest.err | |
15118 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15119 | ac_header_compiler=yes |
15120 | else | |
ec6a6fbe | 15121 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15122 | sed 's/^/| /' conftest.$ac_ext >&5 |
15123 | ||
7a197a62 | 15124 | ac_header_compiler=no |
ad6254c5 | 15125 | fi |
7a197a62 AK |
15126 | |
15127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15128 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15129 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15130 | |
15131 | # Is the header present? | |
ec6a6fbe AK |
15132 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15133 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15134 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15135 | /* confdefs.h. */ |
15136 | _ACEOF | |
15137 | cat confdefs.h >>conftest.$ac_ext | |
15138 | cat >>conftest.$ac_ext <<_ACEOF | |
15139 | /* end confdefs.h. */ | |
15140 | #include <$ac_header> | |
15141 | _ACEOF | |
7a197a62 AK |
15142 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15143 | case "(($ac_try" in | |
15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15145 | *) ac_try_echo=$ac_try;; | |
15146 | esac | |
ec6a6fbe AK |
15147 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15148 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15149 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15150 | ac_status=$? |
15151 | grep -v '^ *+' conftest.er1 >conftest.err | |
15152 | rm -f conftest.er1 | |
15153 | cat conftest.err >&5 | |
ec6a6fbe | 15154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15155 | (exit $ac_status); } >/dev/null && { |
15156 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15157 | test ! -s conftest.err | |
15158 | }; then | |
ad6254c5 AK |
15159 | ac_header_preproc=yes |
15160 | else | |
ec6a6fbe | 15161 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15162 | sed 's/^/| /' conftest.$ac_ext >&5 |
15163 | ||
15164 | ac_header_preproc=no | |
15165 | fi | |
7a197a62 | 15166 | |
ad6254c5 | 15167 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15168 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15169 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15170 | |
15171 | # So? What about this header? | |
8a2fc586 AK |
15172 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15173 | yes:no: ) | |
ec6a6fbe AK |
15174 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15175 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15177 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15178 | ac_header_preproc=yes |
ad6254c5 | 15179 | ;; |
8a2fc586 | 15180 | no:yes:* ) |
ec6a6fbe AK |
15181 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15182 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15183 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15184 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15185 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15186 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15187 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15188 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15190 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15192 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15193 | |
ad6254c5 AK |
15194 | ;; |
15195 | esac | |
ec6a6fbe AK |
15196 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15197 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15199 | $as_echo_n "(cached) " >&6 |
80992638 | 15200 | else |
8a2fc586 | 15201 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 15202 | fi |
ec6a6fbe AK |
15203 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15204 | $as_echo "$as_val"'` | |
15205 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15206 | $as_echo "$ac_res" >&6; } | |
83912faa | 15207 | |
69792976 | 15208 | fi |
ec6a6fbe AK |
15209 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15210 | $as_echo "$as_val"'` | |
15211 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15212 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15213 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15214 | _ACEOF |
69792976 | 15215 | |
69792976 | 15216 | else |
ec6a6fbe AK |
15217 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15218 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15219 | { (exit 1); exit 1; }; } |
80992638 AK |
15220 | fi |
15221 | ||
ad6254c5 | 15222 | done |
69792976 | 15223 | |
ad6254c5 AK |
15224 | fi |
15225 | ||
a5f46f6a AK |
15226 | if test x$UDEV_SYNC = xyes; then |
15227 | ||
15228 | ||
15229 | for ac_header in sys/ipc.h sys/sem.h | |
15230 | do | |
15231 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15232 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15233 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15234 | $as_echo_n "checking for $ac_header... " >&6; } | |
15235 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15236 | $as_echo_n "(cached) " >&6 | |
15237 | fi | |
15238 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15239 | $as_echo "$as_val"'` | |
15240 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15241 | $as_echo "$ac_res" >&6; } | |
15242 | else | |
15243 | # Is the header compilable? | |
15244 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15245 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15246 | cat >conftest.$ac_ext <<_ACEOF | |
15247 | /* confdefs.h. */ | |
15248 | _ACEOF | |
15249 | cat confdefs.h >>conftest.$ac_ext | |
15250 | cat >>conftest.$ac_ext <<_ACEOF | |
15251 | /* end confdefs.h. */ | |
15252 | $ac_includes_default | |
15253 | #include <$ac_header> | |
15254 | _ACEOF | |
15255 | rm -f conftest.$ac_objext | |
15256 | if { (ac_try="$ac_compile" | |
15257 | case "(($ac_try" in | |
15258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15259 | *) ac_try_echo=$ac_try;; | |
15260 | esac | |
15261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15262 | $as_echo "$ac_try_echo") >&5 | |
15263 | (eval "$ac_compile") 2>conftest.er1 | |
15264 | ac_status=$? | |
15265 | grep -v '^ *+' conftest.er1 >conftest.err | |
15266 | rm -f conftest.er1 | |
15267 | cat conftest.err >&5 | |
15268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15269 | (exit $ac_status); } && { | |
15270 | test -z "$ac_c_werror_flag" || | |
15271 | test ! -s conftest.err | |
15272 | } && test -s conftest.$ac_objext; then | |
15273 | ac_header_compiler=yes | |
15274 | else | |
15275 | $as_echo "$as_me: failed program was:" >&5 | |
15276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15277 | ||
15278 | ac_header_compiler=no | |
15279 | fi | |
15280 | ||
15281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15282 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15283 | $as_echo "$ac_header_compiler" >&6; } | |
15284 | ||
15285 | # Is the header present? | |
15286 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15287 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15288 | cat >conftest.$ac_ext <<_ACEOF | |
15289 | /* confdefs.h. */ | |
15290 | _ACEOF | |
15291 | cat confdefs.h >>conftest.$ac_ext | |
15292 | cat >>conftest.$ac_ext <<_ACEOF | |
15293 | /* end confdefs.h. */ | |
15294 | #include <$ac_header> | |
15295 | _ACEOF | |
15296 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15297 | case "(($ac_try" in | |
15298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15299 | *) ac_try_echo=$ac_try;; | |
15300 | esac | |
15301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15302 | $as_echo "$ac_try_echo") >&5 | |
15303 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15304 | ac_status=$? | |
15305 | grep -v '^ *+' conftest.er1 >conftest.err | |
15306 | rm -f conftest.er1 | |
15307 | cat conftest.err >&5 | |
15308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15309 | (exit $ac_status); } >/dev/null && { | |
15310 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15311 | test ! -s conftest.err | |
15312 | }; then | |
15313 | ac_header_preproc=yes | |
15314 | else | |
15315 | $as_echo "$as_me: failed program was:" >&5 | |
15316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15317 | ||
15318 | ac_header_preproc=no | |
15319 | fi | |
15320 | ||
15321 | rm -f conftest.err conftest.$ac_ext | |
15322 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15323 | $as_echo "$ac_header_preproc" >&6; } | |
15324 | ||
15325 | # So? What about this header? | |
15326 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15327 | yes:no: ) | |
15328 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15329 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15330 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15331 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15332 | ac_header_preproc=yes | |
15333 | ;; | |
15334 | no:yes:* ) | |
15335 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15336 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15337 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15338 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15339 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15340 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15341 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15342 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15343 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15344 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15345 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15346 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15347 | ||
15348 | ;; | |
15349 | esac | |
15350 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15351 | $as_echo_n "checking for $ac_header... " >&6; } | |
15352 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15353 | $as_echo_n "(cached) " >&6 | |
15354 | else | |
15355 | eval "$as_ac_Header=\$ac_header_preproc" | |
15356 | fi | |
15357 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15358 | $as_echo "$as_val"'` | |
15359 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15360 | $as_echo "$ac_res" >&6; } | |
15361 | ||
15362 | fi | |
15363 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15364 | $as_echo "$as_val"'` | |
15365 | if test "x$as_val" = x""yes; then | |
15366 | cat >>confdefs.h <<_ACEOF | |
15367 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15368 | _ACEOF | |
15369 | ||
15370 | else | |
15371 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15372 | $as_echo "$as_me: error: bailing out" >&2;} | |
15373 | { (exit 1); exit 1; }; } | |
15374 | fi | |
15375 | ||
15376 | done | |
15377 | ||
15378 | fi | |
15379 | ||
a653923f AK |
15380 | ################################################################################ |
15381 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15382 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15383 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15384 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15385 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15386 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15387 | else |
15388 | case $MODPROBE_CMD in | |
15389 | [\\/]* | ?:[\\/]*) | |
15390 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15391 | ;; | |
15392 | *) | |
15393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15394 | for as_dir in $PATH | |
15395 | do | |
15396 | IFS=$as_save_IFS | |
15397 | test -z "$as_dir" && as_dir=. | |
15398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15400 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15401 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15402 | break 2 |
15403 | fi | |
15404 | done | |
15405 | done | |
7a197a62 | 15406 | IFS=$as_save_IFS |
72b2cb61 AK |
15407 | |
15408 | ;; | |
15409 | esac | |
15410 | fi | |
15411 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15412 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15413 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15414 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15415 | else |
ec6a6fbe AK |
15416 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15417 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15418 | fi |
15419 | ||
a653923f | 15420 | |
7a197a62 | 15421 | |
a653923f | 15422 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15423 | |
15424 | cat >>confdefs.h <<_ACEOF | |
15425 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15426 | _ACEOF | |
15427 | ||
a653923f AK |
15428 | fi |
15429 | ||
80992638 | 15430 | ################################################################################ |
93bd259b AK |
15431 | |
15432 | ||
15433 | if test "$BUILD_DMEVENTD" = yes; then | |
15434 | ||
15435 | # Check whether --with-dmeventd-pidfile was given. | |
15436 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15437 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15438 | #define DMEVENTD_PIDFILE "$withval" | |
15439 | _ACEOF | |
15440 | ||
15441 | else | |
15442 | cat >>confdefs.h <<_ACEOF | |
15443 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15444 | _ACEOF | |
15445 | ||
15446 | fi | |
15447 | ||
15448 | fi | |
15449 | ||
15450 | ||
15451 | ||
15452 | if test "$BUILD_DMEVENTD" = yes; then | |
15453 | dmeventd_prefix="$exec_prefix" | |
15454 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15455 | dmeventd_prefix="$prefix" | |
15456 | fi | |
15457 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15458 | dmeventd_prefix="" | |
15459 | fi | |
15460 | ||
15461 | # Check whether --with-dmeventd-path was given. | |
15462 | if test "${with_dmeventd_path+set}" = set; then | |
15463 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15464 | #define DMEVENTD_PATH "$withval" | |
15465 | _ACEOF | |
15466 | ||
15467 | else | |
15468 | cat >>confdefs.h <<_ACEOF | |
15469 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15470 | _ACEOF | |
15471 | ||
15472 | fi | |
15473 | ||
15474 | fi | |
15475 | ||
15476 | ################################################################################ | |
ec6a6fbe AK |
15477 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15478 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15479 | |
15480 | # Check whether --with-interface was given. | |
15481 | if test "${with_interface+set}" = set; then | |
15482 | withval=$with_interface; interface="$withval" | |
15483 | else | |
15484 | interface=ioctl | |
15485 | fi | |
15486 | ||
15487 | if [ "x$interface" != xioctl ]; | |
15488 | then | |
ec6a6fbe AK |
15489 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15490 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15491 | { (exit 1); exit 1; }; } |
15492 | fi | |
ec6a6fbe AK |
15493 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15494 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15495 | |
15496 | ################################################################################ | |
db8b5af9 | 15497 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15498 | |
15499 | cat >>confdefs.h <<_ACEOF | |
15500 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15501 | _ACEOF | |
15502 | ||
15503 | ||
db8b5af9 | 15504 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15505 | |
db8b5af9 | 15506 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15507 | |
db8b5af9 | 15508 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 15509 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15510 | VER=`echo "$VER" | $AWK '{print $1}'` |
15511 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15512 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15513 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15514 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15515 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15516 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15517 | |
80992638 | 15518 | ################################################################################ |
fae0c576 | 15519 | |
83912faa | 15520 | |
795ca3e5 AK |
15521 | |
15522 | ||
15523 | ||
15524 | ||
15525 | ||
15526 | ||
5a52dca9 | 15527 | |
8ef2b021 | 15528 | |
199e490e | 15529 | |
69792976 AK |
15530 | |
15531 | ||
15532 | ||
d0191583 | 15533 | |
69792976 | 15534 | |
8106cdd5 AK |
15535 | |
15536 | ||
15537 | ||
15538 | ||
15539 | ||
d68a82ec | 15540 | |
036f273a | 15541 | |
7d1552c9 | 15542 | |
8106cdd5 | 15543 | |
0a62c911 | 15544 | |
8106cdd5 | 15545 | |
4a7f3eb2 | 15546 | |
4922197a AK |
15547 | |
15548 | ||
d8ac0fbc | 15549 | |
1a9ea74d | 15550 | |
8a2fc586 AK |
15551 | |
15552 | ||
d0191583 | 15553 | |
93bd259b AK |
15554 | |
15555 | ||
15556 | ||
15557 | ||
15558 | ||
d0191583 JM |
15559 | |
15560 | ||
15561 | ||
15562 | ||
15563 | ||
8a2fc586 | 15564 | |
19a2c6e0 | 15565 | |
db724a44 | 15566 | |
8ce0cbda | 15567 | |
8b1a3214 | 15568 | |
ec6a6fbe AK |
15569 | |
15570 | ||
15571 | ||
15572 | ||
e2997b73 AK |
15573 | |
15574 | ||
15575 | ||
15576 | ||
15577 | ||
15578 | ||
a946372e AK |
15579 | |
15580 | ||
15581 | ||
15582 | ||
15583 | ||
15584 | ||
15585 | ||
15586 | ||
15587 | ||
15588 | ||
15589 | ||
ec6a6fbe | 15590 | |
33f732c5 | 15591 | |
66e941e8 | 15592 | |
d3c8211f | 15593 | |
7e3fe830 | 15594 | |
a5f46f6a AK |
15595 | |
15596 | ||
15597 | ||
572fefeb | 15598 | |
90c80887 AK |
15599 | |
15600 | ||
bf456146 | 15601 | |
e1b8a236 | 15602 | |
0878503f | 15603 | |
68f2de6d AK |
15604 | |
15605 | ||
80992638 | 15606 | ################################################################################ |
d3d98fdc | 15607 | 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 | 15608 | |
ad6254c5 | 15609 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15610 | # This file is a shell script that caches the results of configure |
15611 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15612 | # scripts and configure runs, see configure's option --config-cache. |
15613 | # It is not useful on other systems. If it contains results you don't | |
15614 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15615 | # |
ad6254c5 AK |
15616 | # config.status only pays attention to the cache file if you give it |
15617 | # the --recheck option to rerun configure. | |
795ca3e5 | 15618 | # |
ad6254c5 AK |
15619 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15620 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15621 | # following values. | |
15622 | ||
15623 | _ACEOF | |
15624 | ||
795ca3e5 AK |
15625 | # The following way of writing the cache mishandles newlines in values, |
15626 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15627 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15628 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15629 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15630 | ( |
15631 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15632 | eval ac_val=\$$ac_var | |
15633 | case $ac_val in #( | |
15634 | *${as_nl}*) | |
15635 | case $ac_var in #( | |
ec6a6fbe AK |
15636 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15637 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15638 | esac |
15639 | case $ac_var in #( | |
15640 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15641 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15642 | *) $as_unset $ac_var ;; |
15643 | esac ;; | |
15644 | esac | |
15645 | done | |
15646 | ||
ad6254c5 | 15647 | (set) 2>&1 | |
7a197a62 AK |
15648 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15649 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15650 | # `set' does not quote correctly, so add quotes (double-quote |
15651 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15652 | sed -n \ | |
8a2fc586 AK |
15653 | "s/'/'\\\\''/g; |
15654 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15655 | ;; #( |
ad6254c5 AK |
15656 | *) |
15657 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15658 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15659 | ;; |
7a197a62 AK |
15660 | esac | |
15661 | sort | |
15662 | ) | | |
ad6254c5 | 15663 | sed ' |
7a197a62 | 15664 | /^ac_cv_env_/b end |
ad6254c5 | 15665 | t clear |
7a197a62 | 15666 | :clear |
ad6254c5 AK |
15667 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15668 | t end | |
7a197a62 AK |
15669 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15670 | :end' >>confcache | |
15671 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15672 | if test -w "$cache_file"; then | |
15673 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15674 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15675 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15676 | cat confcache >$cache_file |
795ca3e5 | 15677 | else |
ec6a6fbe AK |
15678 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15679 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15680 | fi |
15681 | fi | |
15682 | rm -f confcache | |
15683 | ||
795ca3e5 AK |
15684 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15685 | # Let make expand exec_prefix. | |
15686 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15687 | ||
72b2cb61 | 15688 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15689 | |
15690 | ac_libobjs= | |
15691 | ac_ltlibobjs= | |
15692 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15693 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15694 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15695 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15696 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15697 | # will be set to the directory where LIBOBJS objects are built. | |
15698 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15699 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15700 | done |
15701 | LIBOBJS=$ac_libobjs | |
80992638 | 15702 | |
ad6254c5 AK |
15703 | LTLIBOBJS=$ac_ltlibobjs |
15704 | ||
15705 | ||
15706 | ||
15707 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15708 | ac_write_fail=0 |
ad6254c5 AK |
15709 | ac_clean_files_save=$ac_clean_files |
15710 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15711 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15712 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15713 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15714 | #! $SHELL |
15715 | # Generated by $as_me. | |
795ca3e5 | 15716 | # Run this file to recreate the current configuration. |
795ca3e5 | 15717 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15718 | # configure, is in config.log if it exists. |
15719 | ||
15720 | debug=false | |
15721 | ac_cs_recheck=false | |
15722 | ac_cs_silent=false | |
15723 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15724 | _ACEOF | |
15725 | ||
ec6a6fbe | 15726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15727 | ## --------------------- ## |
15728 | ## M4sh Initialization. ## | |
15729 | ## --------------------- ## | |
15730 | ||
25fbec5b AK |
15731 | # Be more Bourne compatible |
15732 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15733 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15734 | emulate sh | |
15735 | NULLCMD=: | |
ec6a6fbe | 15736 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15737 | # is contrary to our usage. Disable this feature. |
15738 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15739 | setopt NO_GLOB_SUBST |
15740 | else | |
25fbec5b AK |
15741 | case `(set -o) 2>/dev/null` in |
15742 | *posix*) set -o posix ;; | |
15743 | esac | |
15744 | ||
7a197a62 | 15745 | fi |
25fbec5b AK |
15746 | |
15747 | ||
7a197a62 AK |
15748 | |
15749 | ||
15750 | # PATH needs CR | |
15751 | # Avoid depending upon Character Ranges. | |
15752 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15753 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15754 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15755 | as_cr_digits='0123456789' | |
15756 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15757 | ||
ec6a6fbe AK |
15758 | as_nl=' |
15759 | ' | |
15760 | export as_nl | |
15761 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15762 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15763 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15764 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15765 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15766 | as_echo='printf %s\n' | |
15767 | as_echo_n='printf %s' | |
15768 | else | |
15769 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15770 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15771 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15772 | else |
ec6a6fbe AK |
15773 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15774 | as_echo_n_body='eval | |
15775 | arg=$1; | |
15776 | case $arg in | |
15777 | *"$as_nl"*) | |
15778 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15779 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15780 | esac; | |
15781 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15782 | ' | |
15783 | export as_echo_n_body | |
15784 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15785 | fi |
ec6a6fbe AK |
15786 | export as_echo_body |
15787 | as_echo='sh -c $as_echo_body as_echo' | |
15788 | fi | |
15789 | ||
15790 | # The user is always right. | |
15791 | if test "${PATH_SEPARATOR+set}" != set; then | |
15792 | PATH_SEPARATOR=: | |
15793 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15794 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15795 | PATH_SEPARATOR=';' | |
15796 | } | |
ad6254c5 AK |
15797 | fi |
15798 | ||
15799 | # Support unset when possible. | |
8a2fc586 | 15800 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15801 | as_unset=unset |
15802 | else | |
15803 | as_unset=false | |
15804 | fi | |
8106cdd5 | 15805 | |
ad6254c5 | 15806 | |
7a197a62 AK |
15807 | # IFS |
15808 | # We need space, tab and new line, in precisely that order. Quoting is | |
15809 | # there to prevent editors from complaining about space-tab. | |
15810 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15811 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15812 | IFS=" "" $as_nl" |
15813 | ||
15814 | # Find who we are. Look in the path if we contain no directory separator. | |
15815 | case $0 in | |
15816 | *[\\/]* ) as_myself=$0 ;; | |
15817 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15818 | for as_dir in $PATH | |
15819 | do | |
15820 | IFS=$as_save_IFS | |
15821 | test -z "$as_dir" && as_dir=. | |
15822 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15823 | done | |
15824 | IFS=$as_save_IFS | |
15825 | ||
15826 | ;; | |
15827 | esac | |
15828 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15829 | # in which case we are not to be found in the path. | |
15830 | if test "x$as_myself" = x; then | |
15831 | as_myself=$0 | |
15832 | fi | |
15833 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15834 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15835 | { (exit 1); exit 1; } |
15836 | fi | |
15837 | ||
ad6254c5 | 15838 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15839 | for as_var in ENV MAIL MAILPATH |
15840 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15841 | done | |
ad6254c5 AK |
15842 | PS1='$ ' |
15843 | PS2='> ' | |
15844 | PS4='+ ' | |
15845 | ||
15846 | # NLS nuisances. | |
ec6a6fbe AK |
15847 | LC_ALL=C |
15848 | export LC_ALL | |
15849 | LANGUAGE=C | |
15850 | export LANGUAGE | |
8106cdd5 | 15851 | |
ad6254c5 | 15852 | # Required to use basename. |
7a197a62 AK |
15853 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15854 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15855 | as_expr=expr |
15856 | else | |
15857 | as_expr=false | |
15858 | fi | |
8106cdd5 | 15859 | |
7a197a62 | 15860 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15861 | as_basename=basename |
15862 | else | |
15863 | as_basename=false | |
15864 | fi | |
15865 | ||
15866 | ||
15867 | # Name of the executable. | |
7a197a62 | 15868 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15869 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15870 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15871 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15872 | $as_echo X/"$0" | |
7a197a62 AK |
15873 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15874 | s//\1/ | |
15875 | q | |
15876 | } | |
15877 | /^X\/\(\/\/\)$/{ | |
15878 | s//\1/ | |
15879 | q | |
15880 | } | |
15881 | /^X\/\(\/\).*/{ | |
15882 | s//\1/ | |
15883 | q | |
15884 | } | |
15885 | s/.*/./; q'` | |
ad6254c5 | 15886 | |
7a197a62 AK |
15887 | # CDPATH. |
15888 | $as_unset CDPATH | |
ad6254c5 AK |
15889 | |
15890 | ||
ad6254c5 | 15891 | |
ad6254c5 AK |
15892 | as_lineno_1=$LINENO |
15893 | as_lineno_2=$LINENO | |
ad6254c5 | 15894 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15895 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15896 | |
ad6254c5 AK |
15897 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15898 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15899 | # line-number line after each line using $LINENO; the second 'sed' |
15900 | # does the real work. The second script uses 'N' to pair each | |
15901 | # line-number line with the line containing $LINENO, and appends | |
15902 | # trailing '-' during substitution so that $LINENO is not a special | |
15903 | # case at line end. | |
ad6254c5 | 15904 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15905 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15906 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15907 | sed -n ' | |
15908 | p | |
15909 | /[$]LINENO/= | |
15910 | ' <$as_myself | | |
ad6254c5 | 15911 | sed ' |
7a197a62 AK |
15912 | s/[$]LINENO.*/&-/ |
15913 | t lineno | |
15914 | b | |
15915 | :lineno | |
ad6254c5 | 15916 | N |
7a197a62 AK |
15917 | :loop |
15918 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15919 | t loop |
7a197a62 | 15920 | s/-\n.*// |
ad6254c5 | 15921 | ' >$as_me.lineno && |
7a197a62 | 15922 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15923 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15924 | { (exit 1); exit 1; }; } |
15925 | ||
15926 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15927 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15928 | # original and so on. Autoconf is especially sensitive to this). |
15929 | . "./$as_me.lineno" | |
ad6254c5 AK |
15930 | # Exit status is that of the last command. |
15931 | exit | |
15932 | } | |
15933 | ||
15934 | ||
7a197a62 AK |
15935 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15936 | as_dirname=dirname | |
15937 | else | |
15938 | as_dirname=false | |
15939 | fi | |
15940 | ||
15941 | ECHO_C= ECHO_N= ECHO_T= | |
15942 | case `echo -n x` in | |
15943 | -n*) | |
15944 | case `echo 'x\c'` in | |
15945 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15946 | *) ECHO_C='\c';; | |
15947 | esac;; | |
15948 | *) | |
15949 | ECHO_N='-n';; | |
ad6254c5 | 15950 | esac |
7a197a62 AK |
15951 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15952 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15953 | as_expr=expr |
15954 | else | |
15955 | as_expr=false | |
15956 | fi | |
80992638 | 15957 | |
ad6254c5 | 15958 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15959 | if test -d conf$$.dir; then |
15960 | rm -f conf$$.dir/conf$$.file | |
15961 | else | |
15962 | rm -f conf$$.dir | |
ec6a6fbe AK |
15963 | mkdir conf$$.dir 2>/dev/null |
15964 | fi | |
15965 | if (echo >conf$$.file) 2>/dev/null; then | |
15966 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15967 | as_ln_s='ln -s' | |
15968 | # ... but there are two gotchas: | |
15969 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15970 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15971 | # In both cases, we have to default to `cp -p'. | |
15972 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15973 | as_ln_s='cp -p' | |
15974 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15975 | as_ln_s=ln | |
15976 | else | |
ad6254c5 | 15977 | as_ln_s='cp -p' |
ec6a6fbe | 15978 | fi |
ad6254c5 AK |
15979 | else |
15980 | as_ln_s='cp -p' | |
15981 | fi | |
7a197a62 AK |
15982 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15983 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15984 | |
ad6254c5 AK |
15985 | if mkdir -p . 2>/dev/null; then |
15986 | as_mkdir_p=: | |
15987 | else | |
8a2fc586 | 15988 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
15989 | as_mkdir_p=false |
15990 | fi | |
15991 | ||
25fbec5b AK |
15992 | if test -x / >/dev/null 2>&1; then |
15993 | as_test_x='test -x' | |
7a197a62 | 15994 | else |
25fbec5b AK |
15995 | if ls -dL / >/dev/null 2>&1; then |
15996 | as_ls_L_option=L | |
15997 | else | |
15998 | as_ls_L_option= | |
15999 | fi | |
16000 | as_test_x=' | |
16001 | eval sh -c '\'' | |
16002 | if test -d "$1"; then | |
ec6a6fbe | 16003 | test -d "$1/."; |
25fbec5b AK |
16004 | else |
16005 | case $1 in | |
ec6a6fbe | 16006 | -*)set "./$1";; |
25fbec5b AK |
16007 | esac; |
16008 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
16009 | ???[sx]*):;;*)false;;esac;fi | |
16010 | '\'' sh | |
16011 | ' | |
7a197a62 | 16012 | fi |
25fbec5b | 16013 | as_executable_p=$as_test_x |
ad6254c5 AK |
16014 | |
16015 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 16016 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16017 | |
16018 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 16019 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16020 | |
16021 | ||
ad6254c5 AK |
16022 | exec 6>&1 |
16023 | ||
7a197a62 | 16024 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 16025 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
16026 | # values after options handling. |
16027 | ac_log=" | |
ad6254c5 | 16028 | This file was extended by $as_me, which was |
ec6a6fbe | 16029 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
16030 | |
16031 | CONFIG_FILES = $CONFIG_FILES | |
16032 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16033 | CONFIG_LINKS = $CONFIG_LINKS | |
16034 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16035 | $ $0 $@ | |
16036 | ||
7a197a62 AK |
16037 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16038 | " | |
16039 | ||
ad6254c5 AK |
16040 | _ACEOF |
16041 | ||
ec6a6fbe AK |
16042 | case $ac_config_files in *" |
16043 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16044 | esac | |
16045 | ||
16046 | case $ac_config_headers in *" | |
16047 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16048 | esac | |
16049 | ||
16050 | ||
16051 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 16052 | # Files that config.status was made for. |
68f2de6d AK |
16053 | config_files="$ac_config_files" |
16054 | config_headers="$ac_config_headers" | |
ad6254c5 | 16055 | |
7a197a62 | 16056 | _ACEOF |
ad6254c5 | 16057 | |
ec6a6fbe | 16058 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16059 | ac_cs_usage="\ |
16060 | \`$as_me' instantiates files from templates according to the | |
16061 | current configuration. | |
16062 | ||
ec6a6fbe | 16063 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
16064 | |
16065 | -h, --help print this help, then exit | |
25fbec5b | 16066 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
16067 | -q, --quiet, --silent |
16068 | do not print progress messages | |
ad6254c5 AK |
16069 | -d, --debug don't remove temporary files |
16070 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
16071 | --file=FILE[:TEMPLATE] |
16072 | instantiate the configuration file FILE | |
16073 | --header=FILE[:TEMPLATE] | |
16074 | instantiate the configuration header FILE | |
ad6254c5 AK |
16075 | |
16076 | Configuration files: | |
16077 | $config_files | |
16078 | ||
72b2cb61 AK |
16079 | Configuration headers: |
16080 | $config_headers | |
16081 | ||
ad6254c5 | 16082 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 16083 | |
7a197a62 | 16084 | _ACEOF |
ec6a6fbe | 16085 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16086 | ac_cs_version="\\ |
16087 | config.status | |
ec6a6fbe AK |
16088 | configured by $0, generated by GNU Autoconf 2.63, |
16089 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 16090 | |
ec6a6fbe | 16091 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
16092 | This config.status script is free software; the Free Software Foundation |
16093 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
16094 | |
16095 | ac_pwd='$ac_pwd' | |
16096 | srcdir='$srcdir' | |
16097 | INSTALL='$INSTALL' | |
fddafd51 | 16098 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
16099 | AWK='$AWK' |
16100 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
16101 | _ACEOF |
16102 | ||
ec6a6fbe AK |
16103 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16104 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
16105 | ac_need_defaults=: |
16106 | while test $# != 0 | |
16107 | do | |
16108 | case $1 in | |
16109 | --*=*) | |
7a197a62 AK |
16110 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16111 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
16112 | ac_shift=: |
16113 | ;; | |
7a197a62 | 16114 | *) |
ad6254c5 AK |
16115 | ac_option=$1 |
16116 | ac_optarg=$2 | |
16117 | ac_shift=shift | |
16118 | ;; | |
ad6254c5 AK |
16119 | esac |
16120 | ||
16121 | case $ac_option in | |
16122 | # Handling of the options. | |
ad6254c5 AK |
16123 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16124 | ac_cs_recheck=: ;; | |
7a197a62 | 16125 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 16126 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 16127 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
16128 | debug=: ;; |
16129 | --file | --fil | --fi | --f ) | |
16130 | $ac_shift | |
ec6a6fbe AK |
16131 | case $ac_optarg in |
16132 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16133 | esac | |
16134 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
16135 | ac_need_defaults=false;; |
16136 | --header | --heade | --head | --hea ) | |
16137 | $ac_shift | |
ec6a6fbe AK |
16138 | case $ac_optarg in |
16139 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16140 | esac | |
16141 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 16142 | ac_need_defaults=false;; |
7a197a62 AK |
16143 | --he | --h) |
16144 | # Conflict between --help and --header | |
ec6a6fbe | 16145 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
16146 | Try \`$0 --help' for more information." >&2 |
16147 | { (exit 1); exit 1; }; };; | |
16148 | --help | --hel | -h ) | |
ec6a6fbe | 16149 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
16150 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16151 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16152 | ac_cs_silent=: ;; | |
16153 | ||
16154 | # This is an error. | |
ec6a6fbe | 16155 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 16156 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
16157 | { (exit 1); exit 1; }; } ;; |
16158 | ||
7a197a62 AK |
16159 | *) ac_config_targets="$ac_config_targets $1" |
16160 | ac_need_defaults=false ;; | |
ad6254c5 AK |
16161 | |
16162 | esac | |
16163 | shift | |
16164 | done | |
16165 | ||
16166 | ac_configure_extra_args= | |
16167 | ||
16168 | if $ac_cs_silent; then | |
16169 | exec 6>/dev/null | |
16170 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16171 | fi | |
16172 | ||
16173 | _ACEOF | |
ec6a6fbe | 16174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 16175 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
16176 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16177 | shift | |
16178 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16179 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 16180 | export CONFIG_SHELL |
ec6a6fbe | 16181 | exec "\$@" |
ad6254c5 AK |
16182 | fi |
16183 | ||
16184 | _ACEOF | |
ec6a6fbe | 16185 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16186 | exec 5>>config.log |
16187 | { | |
16188 | echo | |
16189 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16190 | ## Running $as_me. ## | |
16191 | _ASBOX | |
ec6a6fbe | 16192 | $as_echo "$ac_log" |
7a197a62 | 16193 | } >&5 |
ad6254c5 | 16194 | |
7a197a62 | 16195 | _ACEOF |
ec6a6fbe | 16196 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 16197 | _ACEOF |
ad6254c5 | 16198 | |
ec6a6fbe | 16199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16200 | |
16201 | # Handling of arguments. | |
ad6254c5 AK |
16202 | for ac_config_target in $ac_config_targets |
16203 | do | |
7a197a62 AK |
16204 | case $ac_config_target in |
16205 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16206 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16207 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16208 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16209 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16210 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16211 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16212 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16213 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 16214 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
16215 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16216 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16217 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
db8b5af9 | 16218 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
16219 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16220 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16221 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16222 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16223 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16224 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 16225 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16226 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16227 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16228 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16229 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16230 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16231 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16232 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16233 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 16234 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 16235 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16236 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16237 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16238 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16239 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16240 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16241 | |
ec6a6fbe AK |
16242 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16243 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16244 | { (exit 1); exit 1; }; };; |
80992638 | 16245 | esac |
ad6254c5 AK |
16246 | done |
16247 | ||
7a197a62 | 16248 | |
ad6254c5 AK |
16249 | # If the user did not use the arguments to specify the items to instantiate, |
16250 | # then the envvar interface is used. Set only those that are not. | |
16251 | # We use the long form for the default assignment because of an extremely | |
16252 | # bizarre bug on SunOS 4.1.3. | |
16253 | if $ac_need_defaults; then | |
16254 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16255 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16256 | fi |
16257 | ||
16258 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16259 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16260 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16261 | # Hook for its removal unless debugging. |
16262 | # Note that there is a small window in which the directory will not be cleaned: | |
16263 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16264 | $debug || |
16265 | { | |
7a197a62 AK |
16266 | tmp= |
16267 | trap 'exit_status=$? | |
16268 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16269 | ' 0 | |
ad6254c5 AK |
16270 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16271 | } | |
ad6254c5 AK |
16272 | # Create a (secure) tmp directory for tmp files. |
16273 | ||
16274 | { | |
7a197a62 | 16275 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16276 | test -n "$tmp" && test -d "$tmp" |
16277 | } || | |
16278 | { | |
7a197a62 AK |
16279 | tmp=./conf$$-$RANDOM |
16280 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16281 | } || |
16282 | { | |
ec6a6fbe | 16283 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16284 | { (exit 1); exit 1; } |
16285 | } | |
16286 | ||
ec6a6fbe AK |
16287 | # Set up the scripts for CONFIG_FILES section. |
16288 | # No need to generate them if there are no CONFIG_FILES. | |
16289 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16290 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16291 | |
68f2de6d | 16292 | |
ec6a6fbe AK |
16293 | ac_cr='\r' |
16294 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16295 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16296 | ac_cs_awk_cr='\\r' | |
16297 | else | |
16298 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16299 | fi |
7a197a62 | 16300 | |
ec6a6fbe | 16301 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16302 | _ACEOF |
7a197a62 | 16303 | |
8106cdd5 | 16304 | |
ec6a6fbe AK |
16305 | { |
16306 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16307 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16308 | echo "_ACEOF" | |
16309 | } >conf$$subs.sh || | |
16310 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16311 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16312 | { (exit 1); exit 1; }; } | |
16313 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16314 | ac_delim='%!_!# ' |
16315 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16316 | . ./conf$$subs.sh || |
16317 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16318 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16319 | { (exit 1); exit 1; }; } | |
16320 | ||
16321 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16322 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16323 | break |
16324 | elif $ac_last_try; then | |
ec6a6fbe AK |
16325 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16326 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16327 | { (exit 1); exit 1; }; } |
16328 | else | |
16329 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16330 | fi | |
16331 | done | |
ec6a6fbe AK |
16332 | rm -f conf$$subs.sh |
16333 | ||
16334 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16335 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16336 | _ACEOF | |
16337 | sed -n ' | |
16338 | h | |
16339 | s/^/S["/; s/!.*/"]=/ | |
16340 | p | |
16341 | g | |
16342 | s/^[^!]*!// | |
16343 | :repl | |
16344 | t repl | |
16345 | s/'"$ac_delim"'$// | |
16346 | t delim | |
16347 | :nl | |
16348 | h | |
16349 | s/\(.\{148\}\).*/\1/ | |
16350 | t more1 | |
16351 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16352 | p | |
16353 | n | |
16354 | b repl | |
16355 | :more1 | |
16356 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16357 | p | |
16358 | g | |
16359 | s/.\{148\}// | |
16360 | t nl | |
16361 | :delim | |
16362 | h | |
16363 | s/\(.\{148\}\).*/\1/ | |
16364 | t more2 | |
16365 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16366 | p | |
16367 | b | |
16368 | :more2 | |
16369 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16370 | p | |
16371 | g | |
16372 | s/.\{148\}// | |
16373 | t delim | |
16374 | ' <conf$$subs.awk | sed ' | |
16375 | /^[^""]/{ | |
16376 | N | |
16377 | s/\n// | |
16378 | } | |
16379 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16380 | rm -f conf$$subs.awk | |
16381 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16382 | _ACAWK | |
16383 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16384 | for (key in S) S_is_set[key] = 1 | |
16385 | FS = "\a" | |
7a197a62 | 16386 | |
ec6a6fbe AK |
16387 | } |
16388 | { | |
16389 | line = $ 0 | |
16390 | nfields = split(line, field, "@") | |
16391 | substed = 0 | |
16392 | len = length(field[1]) | |
16393 | for (i = 2; i < nfields; i++) { | |
16394 | key = field[i] | |
16395 | keylen = length(key) | |
16396 | if (S_is_set[key]) { | |
16397 | value = S[key] | |
16398 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16399 | len += length(value) + length(field[++i]) | |
16400 | substed = 1 | |
16401 | } else | |
16402 | len += 1 + keylen | |
16403 | } | |
16404 | ||
16405 | print line | |
16406 | } | |
fddafd51 | 16407 | |
ec6a6fbe | 16408 | _ACAWK |
1995c9ff | 16409 | _ACEOF |
ec6a6fbe AK |
16410 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16411 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16412 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16413 | else | |
16414 | cat | |
16415 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16416 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16417 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16418 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16419 | _ACEOF |
16420 | ||
7a197a62 AK |
16421 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16422 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16423 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16424 | # (actually we leave an empty line to preserve line numbers). | |
16425 | if test "x$srcdir" = x.; then | |
16426 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16427 | s/:*\$(srcdir):*/:/ | |
16428 | s/:*\${srcdir}:*/:/ | |
16429 | s/:*@srcdir@:*/:/ | |
16430 | s/^\([^=]*=[ ]*\):*/\1/ | |
16431 | s/:*$// | |
16432 | s/^[^=]*=[ ]*$// | |
16433 | }' | |
16434 | fi | |
16435 | ||
ec6a6fbe | 16436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16437 | fi # test -n "$CONFIG_FILES" |
16438 | ||
ec6a6fbe AK |
16439 | # Set up the scripts for CONFIG_HEADERS section. |
16440 | # No need to generate them if there are no CONFIG_HEADERS. | |
16441 | # This happens for instance with `./config.status Makefile'. | |
16442 | if test -n "$CONFIG_HEADERS"; then | |
16443 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16444 | BEGIN { | |
16445 | _ACEOF | |
16446 | ||
16447 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16448 | # here-document in config.status, that substitutes the proper values into | |
16449 | # config.h.in to produce config.h. | |
16450 | ||
16451 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16452 | # handling of long lines. | |
16453 | ac_delim='%!_!# ' | |
16454 | for ac_last_try in false false :; do | |
16455 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16456 | if test -z "$ac_t"; then | |
16457 | break | |
16458 | elif $ac_last_try; then | |
16459 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16460 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16461 | { (exit 1); exit 1; }; } | |
16462 | else | |
16463 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16464 | fi | |
16465 | done | |
16466 | ||
16467 | # For the awk script, D is an array of macro values keyed by name, | |
16468 | # likewise P contains macro parameters if any. Preserve backslash | |
16469 | # newline sequences. | |
16470 | ||
16471 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16472 | sed -n ' | |
16473 | s/.\{148\}/&'"$ac_delim"'/g | |
16474 | t rset | |
16475 | :rset | |
16476 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16477 | t def | |
16478 | d | |
16479 | :def | |
16480 | s/\\$// | |
16481 | t bsnl | |
16482 | s/["\\]/\\&/g | |
16483 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16484 | D["\1"]=" \3"/p | |
16485 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16486 | d | |
16487 | :bsnl | |
16488 | s/["\\]/\\&/g | |
16489 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16490 | D["\1"]=" \3\\\\\\n"\\/p | |
16491 | t cont | |
16492 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16493 | t cont | |
16494 | d | |
16495 | :cont | |
16496 | n | |
16497 | s/.\{148\}/&'"$ac_delim"'/g | |
16498 | t clear | |
16499 | :clear | |
16500 | s/\\$// | |
16501 | t bsnlc | |
16502 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16503 | d | |
16504 | :bsnlc | |
16505 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16506 | b cont | |
16507 | ' <confdefs.h | sed ' | |
16508 | s/'"$ac_delim"'/"\\\ | |
16509 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16510 | ||
16511 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16512 | for (key in D) D_is_set[key] = 1 | |
16513 | FS = "\a" | |
16514 | } | |
16515 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16516 | line = \$ 0 | |
16517 | split(line, arg, " ") | |
16518 | if (arg[1] == "#") { | |
16519 | defundef = arg[2] | |
16520 | mac1 = arg[3] | |
16521 | } else { | |
16522 | defundef = substr(arg[1], 2) | |
16523 | mac1 = arg[2] | |
16524 | } | |
16525 | split(mac1, mac2, "(") #) | |
16526 | macro = mac2[1] | |
16527 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16528 | if (D_is_set[macro]) { | |
16529 | # Preserve the white space surrounding the "#". | |
16530 | print prefix "define", macro P[macro] D[macro] | |
16531 | next | |
16532 | } else { | |
16533 | # Replace #undef with comments. This is necessary, for example, | |
16534 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16535 | # on some systems where configure will not decide to define it. | |
16536 | if (defundef == "undef") { | |
16537 | print "/*", prefix defundef, macro, "*/" | |
16538 | next | |
16539 | } | |
16540 | } | |
16541 | } | |
16542 | { print } | |
16543 | _ACAWK | |
16544 | _ACEOF | |
16545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16546 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16547 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16548 | { (exit 1); exit 1; }; } | |
16549 | fi # test -n "$CONFIG_HEADERS" | |
16550 | ||
7a197a62 | 16551 | |
ec6a6fbe AK |
16552 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16553 | shift | |
16554 | for ac_tag | |
7a197a62 AK |
16555 | do |
16556 | case $ac_tag in | |
16557 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16558 | esac | |
16559 | case $ac_mode$ac_tag in | |
16560 | :[FHL]*:*);; | |
ec6a6fbe AK |
16561 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16562 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16563 | { (exit 1); exit 1; }; };; |
16564 | :[FH]-) ac_tag=-:-;; | |
16565 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16566 | esac | |
16567 | ac_save_IFS=$IFS | |
16568 | IFS=: | |
16569 | set x $ac_tag | |
16570 | IFS=$ac_save_IFS | |
16571 | shift | |
16572 | ac_file=$1 | |
16573 | shift | |
16574 | ||
16575 | case $ac_mode in | |
16576 | :L) ac_source=$1;; | |
16577 | :[FH]) | |
16578 | ac_file_inputs= | |
16579 | for ac_f | |
16580 | do | |
16581 | case $ac_f in | |
16582 | -) ac_f="$tmp/stdin";; | |
16583 | *) # Look for the file first in the build tree, then in the source tree | |
16584 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16585 | # because $ac_f cannot contain `:'. | |
16586 | test -f "$ac_f" || | |
16587 | case $ac_f in | |
16588 | [\\/$]*) false;; | |
16589 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16590 | esac || | |
ec6a6fbe AK |
16591 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16592 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16593 | { (exit 1); exit 1; }; };; |
16594 | esac | |
ec6a6fbe AK |
16595 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16596 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16597 | done |
16598 | ||
16599 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16600 | # use $as_me), people would be surprised to read: | |
16601 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16602 | configure_input='Generated from '` |
16603 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16604 | `' by configure.' | |
7a197a62 AK |
16605 | if test x"$ac_file" != x-; then |
16606 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16607 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16608 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16609 | fi |
ec6a6fbe AK |
16610 | # Neutralize special characters interpreted by sed in replacement strings. |
16611 | case $configure_input in #( | |
16612 | *\&* | *\|* | *\\* ) | |
16613 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16614 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16615 | *) ac_sed_conf_input=$configure_input;; | |
16616 | esac | |
7a197a62 AK |
16617 | |
16618 | case $ac_tag in | |
ec6a6fbe AK |
16619 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16620 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16621 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16622 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16623 | esac |
16624 | ;; | |
80992638 | 16625 | esac |
8106cdd5 | 16626 | |
7a197a62 | 16627 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16628 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16629 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16630 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16631 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16632 | $as_echo X"$ac_file" | |
7a197a62 AK |
16633 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16634 | s//\1/ | |
16635 | q | |
16636 | } | |
16637 | /^X\(\/\/\)[^/].*/{ | |
16638 | s//\1/ | |
16639 | q | |
16640 | } | |
16641 | /^X\(\/\/\)$/{ | |
16642 | s//\1/ | |
16643 | q | |
16644 | } | |
16645 | /^X\(\/\).*/{ | |
16646 | s//\1/ | |
16647 | q | |
16648 | } | |
16649 | s/.*/./; q'` | |
16650 | { as_dir="$ac_dir" | |
16651 | case $as_dir in #( | |
16652 | -*) as_dir=./$as_dir;; | |
16653 | esac | |
16654 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16655 | as_dirs= |
7a197a62 AK |
16656 | while :; do |
16657 | case $as_dir in #( | |
ec6a6fbe | 16658 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16659 | *) as_qdir=$as_dir;; |
16660 | esac | |
16661 | as_dirs="'$as_qdir' $as_dirs" | |
16662 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16663 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16664 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16665 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16666 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16667 | $as_echo X"$as_dir" | |
7a197a62 AK |
16668 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16669 | s//\1/ | |
16670 | q | |
16671 | } | |
16672 | /^X\(\/\/\)[^/].*/{ | |
16673 | s//\1/ | |
16674 | q | |
16675 | } | |
16676 | /^X\(\/\/\)$/{ | |
16677 | s//\1/ | |
16678 | q | |
16679 | } | |
16680 | /^X\(\/\).*/{ | |
16681 | s//\1/ | |
16682 | q | |
16683 | } | |
16684 | s/.*/./; q'` | |
16685 | test -d "$as_dir" && break | |
ad6254c5 | 16686 | done |
7a197a62 | 16687 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16688 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16689 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16690 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16691 | ac_builddir=. |
16692 | ||
7a197a62 AK |
16693 | case "$ac_dir" in |
16694 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16695 | *) | |
ec6a6fbe | 16696 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16697 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16698 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16699 | case $ac_top_builddir_sub in |
16700 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16701 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16702 | esac ;; | |
16703 | esac | |
16704 | ac_abs_top_builddir=$ac_pwd | |
16705 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16706 | # for backward compatibility: | |
16707 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16708 | |
16709 | case $srcdir in | |
7a197a62 | 16710 | .) # We are building in place. |
ad6254c5 | 16711 | ac_srcdir=. |
7a197a62 AK |
16712 | ac_top_srcdir=$ac_top_builddir_sub |
16713 | ac_abs_top_srcdir=$ac_pwd ;; | |
16714 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16715 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16716 | ac_top_srcdir=$srcdir |
16717 | ac_abs_top_srcdir=$srcdir ;; | |
16718 | *) # Relative name. | |
16719 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16720 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16721 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16722 | esac |
7a197a62 | 16723 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16724 | |
ad6254c5 | 16725 | |
7a197a62 AK |
16726 | case $ac_mode in |
16727 | :F) | |
16728 | # | |
16729 | # CONFIG_FILE | |
16730 | # | |
ad6254c5 AK |
16731 | |
16732 | case $INSTALL in | |
16733 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16734 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16735 | esac |
fddafd51 ZK |
16736 | ac_MKDIR_P=$MKDIR_P |
16737 | case $MKDIR_P in | |
16738 | [\\/$]* | ?:[\\/]* ) ;; | |
16739 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16740 | esac | |
7a197a62 | 16741 | _ACEOF |
795ca3e5 | 16742 | |
ec6a6fbe | 16743 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16744 | # If the template does not know about datarootdir, expand it. |
16745 | # FIXME: This hack should be removed a few years after 2.60. | |
16746 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16747 | ||
ec6a6fbe AK |
16748 | ac_sed_dataroot=' |
16749 | /datarootdir/ { | |
7a197a62 AK |
16750 | p |
16751 | q | |
16752 | } | |
16753 | /@datadir@/p | |
16754 | /@docdir@/p | |
16755 | /@infodir@/p | |
16756 | /@localedir@/p | |
16757 | /@mandir@/p | |
ec6a6fbe AK |
16758 | ' |
16759 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16760 | *datarootdir*) ac_datarootdir_seen=yes;; |
16761 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16762 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16763 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16764 | _ACEOF |
ec6a6fbe | 16765 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16766 | ac_datarootdir_hack=' |
16767 | s&@datadir@&$datadir&g | |
16768 | s&@docdir@&$docdir&g | |
16769 | s&@infodir@&$infodir&g | |
16770 | s&@localedir@&$localedir&g | |
16771 | s&@mandir@&$mandir&g | |
16772 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16773 | esac | |
16774 | _ACEOF | |
16775 | ||
16776 | # Neutralize VPATH when `$srcdir' = `.'. | |
16777 | # Shell code in configure.ac might set extrasub. | |
16778 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16779 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16780 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16781 | $extrasub |
16782 | _ACEOF | |
ec6a6fbe | 16783 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16784 | :t |
16785 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16786 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16787 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16788 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16789 | s&@srcdir@&$ac_srcdir&;t t |
16790 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16791 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16792 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16793 | s&@builddir@&$ac_builddir&;t t | |
16794 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16795 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16796 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16797 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16798 | $ac_datarootdir_hack |
ec6a6fbe AK |
16799 | " |
16800 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16801 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16802 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16803 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16804 | |
16805 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16806 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16807 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16808 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16809 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16810 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16811 | which seems to be undefined. Please make sure it is defined." >&2;} |
16812 | ||
16813 | rm -f "$tmp/stdin" | |
72b2cb61 | 16814 | case $ac_file in |
ec6a6fbe AK |
16815 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16816 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16817 | esac \ | |
16818 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16819 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16820 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16821 | ;; |
16822 | :H) | |
16823 | # | |
16824 | # CONFIG_HEADER | |
16825 | # | |
72b2cb61 | 16826 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16827 | { |
16828 | $as_echo "/* $configure_input */" \ | |
16829 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16830 | } >"$tmp/config.h" \ | |
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; }; } | |
16834 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16835 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16836 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16837 | else |
ec6a6fbe AK |
16838 | rm -f "$ac_file" |
16839 | mv "$tmp/config.h" "$ac_file" \ | |
16840 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16841 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16842 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16843 | fi |
16844 | else | |
ec6a6fbe AK |
16845 | $as_echo "/* $configure_input */" \ |
16846 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16847 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16848 | $as_echo "$as_me: error: could not create -" >&2;} | |
16849 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16850 | fi |
7a197a62 AK |
16851 | ;; |
16852 | ||
16853 | ||
16854 | esac | |
16855 | ||
16856 | done # for ac_tag | |
795ca3e5 | 16857 | |
795ca3e5 | 16858 | |
ad6254c5 AK |
16859 | { (exit 0); exit 0; } |
16860 | _ACEOF | |
795ca3e5 | 16861 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16862 | ac_clean_files=$ac_clean_files_save |
16863 | ||
ec6a6fbe AK |
16864 | test $ac_write_fail = 0 || |
16865 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16866 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16867 | { (exit 1); exit 1; }; } | |
16868 | ||
ad6254c5 AK |
16869 | |
16870 | # configure is writing to config.log, and then calls config.status. | |
16871 | # config.status does its own redirection, appending to config.log. | |
16872 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16873 | # by configure, so config.status won't be able to write to it; its | |
16874 | # output is simply discarded. So we exec the FD to /dev/null, | |
16875 | # effectively closing config.log, so it can be properly (re)opened and | |
16876 | # appended to by config.status. When coming back to configure, we | |
16877 | # need to make the FD available again. | |
16878 | if test "$no_create" != yes; then | |
16879 | ac_cs_success=: | |
16880 | ac_config_status_args= | |
16881 | test "$silent" = yes && | |
16882 | ac_config_status_args="$ac_config_status_args --quiet" | |
16883 | exec 5>/dev/null | |
16884 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16885 | exec 5>>config.log | |
16886 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16887 | # would make configure fail if this is the last instruction. | |
16888 | $ac_cs_success || { (exit 1); exit 1; } | |
16889 | fi | |
ec6a6fbe AK |
16890 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16891 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16892 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16893 | fi | |
795ca3e5 | 16894 | |
2dc95e1c AK |
16895 | |
16896 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16897 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16898 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16899 | fi |