]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
649 | LIB_PTHREAD | |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
ec6a6fbe AK |
652 | STATIC_LINK |
653 | STATICDIR | |
654 | SNAPSHOTS | |
e1b8a236 | 655 | SELINUX_LIBS |
539f4a77 | 656 | READLINE_LIBS |
ec6a6fbe AK |
657 | POOL |
658 | PKGCONFIG | |
659 | OWNER | |
660 | MIRRORS | |
661 | LVM_RELEASE_DATE | |
662 | LVM_RELEASE | |
663 | LVM_PATCHLEVEL | |
664 | LVM_MINOR | |
665 | LVM_MAJOR | |
bf456146 | 666 | LVM_LIBAPI |
ec6a6fbe | 667 | LVM_VERSION |
ec6a6fbe AK |
668 | LVM1_FALLBACK |
669 | LVM1 | |
670 | LOCALEDIR | |
671 | LIB_SUFFIX | |
672 | LDDEPS | |
673 | JOBS | |
674 | INTL_PACKAGE | |
675 | INTL | |
676 | HAVE_SELINUX | |
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 | |
689 | DEVMAPPER | |
690 | DEBUG | |
691 | COPTIMISE_FLAG | |
e2997b73 | 692 | CONFDIR |
ec6a6fbe AK |
693 | CMDLIB |
694 | CLVMD | |
695 | CLUSTER | |
696 | CLDWHOLEARCHIVE | |
697 | CLDNOWHOLEARCHIVE | |
698 | CLDFLAGS | |
699 | BUILD_DMEVENTD | |
66fd4529 | 700 | BUILD_CMIRRORD |
572fefeb | 701 | APPLIB |
ec6a6fbe AK |
702 | MODPROBE_CMD |
703 | MSGFMT | |
704 | LVM2CMD_LIB | |
572fefeb | 705 | LVM2APP_LIB |
ec6a6fbe AK |
706 | GENHTML |
707 | LCOV | |
90c80887 AK |
708 | SACKPT_LIBS |
709 | SACKPT_CFLAGS | |
a946372e AK |
710 | DLM_LIBS |
711 | DLM_CFLAGS | |
e2997b73 AK |
712 | CPG_LIBS |
713 | CPG_CFLAGS | |
714 | CONFDB_LIBS | |
715 | CONFDB_CFLAGS | |
a946372e AK |
716 | SALCK_LIBS |
717 | SALCK_CFLAGS | |
e2997b73 AK |
718 | QUORUM_LIBS |
719 | QUORUM_CFLAGS | |
a946372e AK |
720 | COROSYNC_LIBS |
721 | COROSYNC_CFLAGS | |
722 | CMAN_LIBS | |
723 | CMAN_CFLAGS | |
724 | GULM_LIBS | |
725 | GULM_CFLAGS | |
726 | CCS_LIBS | |
727 | CCS_CFLAGS | |
728 | PKGCONFIGINIT_LIBS | |
729 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 730 | PKG_CONFIG |
ec6a6fbe AK |
731 | POW_LIB |
732 | LIBOBJS | |
733 | ALLOCA | |
734 | CSCOPE_CMD | |
735 | CFLOW_CMD | |
736 | RANLIB | |
737 | MKDIR_P | |
738 | SET_MAKE | |
739 | LN_S | |
740 | INSTALL_DATA | |
741 | INSTALL_SCRIPT | |
742 | INSTALL_PROGRAM | |
743 | EGREP | |
744 | GREP | |
745 | CPP | |
746 | OBJEXT | |
747 | EXEEXT | |
748 | ac_ct_CC | |
749 | CPPFLAGS | |
750 | LDFLAGS | |
751 | CFLAGS | |
752 | CC | |
753 | AWK | |
754 | SED | |
755 | target_os | |
756 | target_vendor | |
757 | target_cpu | |
758 | target | |
759 | host_os | |
760 | host_vendor | |
761 | host_cpu | |
762 | host | |
763 | build_os | |
764 | build_vendor | |
765 | build_cpu | |
766 | build | |
767 | target_alias | |
768 | host_alias | |
769 | build_alias | |
770 | LIBS | |
771 | ECHO_T | |
772 | ECHO_N | |
773 | ECHO_C | |
774 | DEFS | |
775 | mandir | |
776 | localedir | |
777 | libdir | |
778 | psdir | |
779 | pdfdir | |
780 | dvidir | |
781 | htmldir | |
782 | infodir | |
783 | docdir | |
784 | oldincludedir | |
785 | includedir | |
786 | localstatedir | |
787 | sharedstatedir | |
788 | sysconfdir | |
789 | datadir | |
790 | datarootdir | |
791 | libexecdir | |
792 | sbindir | |
793 | bindir | |
794 | program_transform_name | |
795 | prefix | |
796 | exec_prefix | |
797 | PACKAGE_BUGREPORT | |
798 | PACKAGE_STRING | |
799 | PACKAGE_VERSION | |
800 | PACKAGE_TARNAME | |
801 | PACKAGE_NAME | |
802 | PATH_SEPARATOR | |
803 | SHELL' | |
ad6254c5 | 804 | ac_subst_files='' |
ec6a6fbe AK |
805 | ac_user_opts=' |
806 | enable_option_checking | |
807 | enable_static_link | |
808 | with_user | |
809 | with_group | |
810 | with_device_uid | |
811 | with_device_gid | |
812 | with_device_mode | |
813 | enable_lvm1_fallback | |
814 | with_lvm1 | |
815 | with_pool | |
816 | with_cluster | |
817 | with_snapshots | |
818 | with_mirrors | |
819 | enable_readline | |
820 | enable_realtime | |
821 | with_clvmd | |
66fd4529 AK |
822 | enable_cmirrord |
823 | with_cmirrord_pidfile | |
ec6a6fbe AK |
824 | enable_debug |
825 | with_optimisation | |
826 | enable_profiling | |
827 | enable_devmapper | |
a5f46f6a AK |
828 | enable_udev_sync |
829 | enable_udev_rules | |
ec6a6fbe | 830 | enable_compat |
95eaa683 | 831 | enable_units_compat |
ec6a6fbe AK |
832 | enable_ioctl |
833 | enable_o_direct | |
572fefeb | 834 | enable_applib |
ec6a6fbe AK |
835 | enable_cmdlib |
836 | enable_pkgconfig | |
837 | enable_fsadm | |
838 | enable_dmeventd | |
839 | enable_selinux | |
840 | enable_nls | |
841 | with_localedir | |
842 | with_confdir | |
843 | with_staticdir | |
844 | with_usrlibdir | |
845 | with_usrsbindir | |
a5f46f6a | 846 | with_udev_prefix |
78ce7acc | 847 | with_udevdir |
ec6a6fbe AK |
848 | with_dmeventd_pidfile |
849 | with_dmeventd_path | |
850 | with_interface | |
851 | ' | |
7a197a62 AK |
852 | ac_precious_vars='build_alias |
853 | host_alias | |
854 | target_alias | |
855 | CC | |
856 | CFLAGS | |
857 | LDFLAGS | |
25fbec5b | 858 | LIBS |
7a197a62 | 859 | CPPFLAGS |
e2997b73 AK |
860 | CPP |
861 | PKG_CONFIG | |
a946372e AK |
862 | PKGCONFIGINIT_CFLAGS |
863 | PKGCONFIGINIT_LIBS | |
864 | CCS_CFLAGS | |
865 | CCS_LIBS | |
866 | GULM_CFLAGS | |
867 | GULM_LIBS | |
868 | CMAN_CFLAGS | |
869 | CMAN_LIBS | |
870 | COROSYNC_CFLAGS | |
871 | COROSYNC_LIBS | |
e2997b73 AK |
872 | QUORUM_CFLAGS |
873 | QUORUM_LIBS | |
a946372e AK |
874 | SALCK_CFLAGS |
875 | SALCK_LIBS | |
e2997b73 AK |
876 | CONFDB_CFLAGS |
877 | CONFDB_LIBS | |
878 | CPG_CFLAGS | |
a946372e AK |
879 | CPG_LIBS |
880 | DLM_CFLAGS | |
90c80887 AK |
881 | DLM_LIBS |
882 | SACKPT_CFLAGS | |
883 | SACKPT_LIBS' | |
7a197a62 | 884 | |
795ca3e5 AK |
885 | |
886 | # Initialize some variables set by options. | |
ad6254c5 AK |
887 | ac_init_help= |
888 | ac_init_version=false | |
ec6a6fbe AK |
889 | ac_unrecognized_opts= |
890 | ac_unrecognized_sep= | |
795ca3e5 AK |
891 | # The variables have the same names as the options, with |
892 | # dashes changed to underlines. | |
ad6254c5 | 893 | cache_file=/dev/null |
795ca3e5 | 894 | exec_prefix=NONE |
795ca3e5 | 895 | no_create= |
795ca3e5 AK |
896 | no_recursion= |
897 | prefix=NONE | |
898 | program_prefix=NONE | |
899 | program_suffix=NONE | |
900 | program_transform_name=s,x,x, | |
901 | silent= | |
902 | site= | |
903 | srcdir= | |
795ca3e5 AK |
904 | verbose= |
905 | x_includes=NONE | |
906 | x_libraries=NONE | |
ad6254c5 AK |
907 | |
908 | # Installation directory options. | |
909 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
910 | # and all the variables that are supposed to be based on exec_prefix | |
911 | # by default will actually change. | |
912 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 913 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
914 | bindir='${exec_prefix}/bin' |
915 | sbindir='${exec_prefix}/sbin' | |
916 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
917 | datarootdir='${prefix}/share' |
918 | datadir='${datarootdir}' | |
795ca3e5 AK |
919 | sysconfdir='${prefix}/etc' |
920 | sharedstatedir='${prefix}/com' | |
921 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
922 | includedir='${prefix}/include' |
923 | oldincludedir='/usr/include' | |
7a197a62 AK |
924 | docdir='${datarootdir}/doc/${PACKAGE}' |
925 | infodir='${datarootdir}/info' | |
926 | htmldir='${docdir}' | |
927 | dvidir='${docdir}' | |
928 | pdfdir='${docdir}' | |
929 | psdir='${docdir}' | |
930 | libdir='${exec_prefix}/lib' | |
931 | localedir='${datarootdir}/locale' | |
932 | mandir='${datarootdir}/man' | |
795ca3e5 | 933 | |
795ca3e5 | 934 | ac_prev= |
7a197a62 | 935 | ac_dashdash= |
795ca3e5 AK |
936 | for ac_option |
937 | do | |
795ca3e5 AK |
938 | # If the previous option needs an argument, assign it. |
939 | if test -n "$ac_prev"; then | |
7a197a62 | 940 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
941 | ac_prev= |
942 | continue | |
943 | fi | |
944 | ||
7a197a62 AK |
945 | case $ac_option in |
946 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
947 | *) ac_optarg=yes ;; | |
948 | esac | |
795ca3e5 AK |
949 | |
950 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
951 | ||
7a197a62 AK |
952 | case $ac_dashdash$ac_option in |
953 | --) | |
954 | ac_dashdash=yes ;; | |
795ca3e5 AK |
955 | |
956 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
957 | ac_prev=bindir ;; | |
958 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 959 | bindir=$ac_optarg ;; |
795ca3e5 AK |
960 | |
961 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 962 | ac_prev=build_alias ;; |
795ca3e5 | 963 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 964 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
965 | |
966 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
967 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
968 | ac_prev=cache_file ;; | |
969 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
970 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
971 | cache_file=$ac_optarg ;; |
972 | ||
973 | --config-cache | -C) | |
974 | cache_file=config.cache ;; | |
795ca3e5 | 975 | |
7a197a62 | 976 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 977 | ac_prev=datadir ;; |
7a197a62 | 978 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 979 | datadir=$ac_optarg ;; |
795ca3e5 | 980 | |
7a197a62 AK |
981 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
982 | | --dataroo | --dataro | --datar) | |
983 | ac_prev=datarootdir ;; | |
984 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
985 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
986 | datarootdir=$ac_optarg ;; | |
987 | ||
795ca3e5 | 988 | -disable-* | --disable-*) |
ec6a6fbe | 989 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 990 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
991 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
992 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 993 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
994 | ac_useropt_orig=$ac_useropt |
995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
996 | case $ac_user_opts in | |
997 | *" | |
998 | "enable_$ac_useropt" | |
999 | "*) ;; | |
1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1001 | ac_unrecognized_sep=', ';; | |
1002 | esac | |
1003 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1004 | |
1005 | -docdir | --docdir | --docdi | --doc | --do) | |
1006 | ac_prev=docdir ;; | |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1008 | docdir=$ac_optarg ;; | |
1009 | ||
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1011 | ac_prev=dvidir ;; | |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1013 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1014 | |
1015 | -enable-* | --enable-*) | |
ec6a6fbe | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1017 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1019 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1020 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1021 | ac_useropt_orig=$ac_useropt |
1022 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | case $ac_user_opts in | |
1024 | *" | |
1025 | "enable_$ac_useropt" | |
1026 | "*) ;; | |
1027 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1028 | ac_unrecognized_sep=', ';; | |
1029 | esac | |
1030 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1031 | |
1032 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1033 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1034 | | --exec | --exe | --ex) | |
1035 | ac_prev=exec_prefix ;; | |
1036 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1037 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1038 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1039 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1040 | |
1041 | -gas | --gas | --ga | --g) | |
1042 | # Obsolete; use --with-gas. | |
1043 | with_gas=yes ;; | |
1044 | ||
ad6254c5 AK |
1045 | -help | --help | --hel | --he | -h) |
1046 | ac_init_help=long ;; | |
1047 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1048 | ac_init_help=recursive ;; | |
1049 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1050 | ac_init_help=short ;; | |
795ca3e5 AK |
1051 | |
1052 | -host | --host | --hos | --ho) | |
ad6254c5 | 1053 | ac_prev=host_alias ;; |
795ca3e5 | 1054 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1055 | host_alias=$ac_optarg ;; |
795ca3e5 | 1056 | |
7a197a62 AK |
1057 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1058 | ac_prev=htmldir ;; | |
1059 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1060 | | --ht=*) | |
1061 | htmldir=$ac_optarg ;; | |
1062 | ||
795ca3e5 AK |
1063 | -includedir | --includedir | --includedi | --included | --include \ |
1064 | | --includ | --inclu | --incl | --inc) | |
1065 | ac_prev=includedir ;; | |
1066 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1067 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1068 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1069 | |
1070 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1071 | ac_prev=infodir ;; | |
1072 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1073 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1074 | |
1075 | -libdir | --libdir | --libdi | --libd) | |
1076 | ac_prev=libdir ;; | |
1077 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1078 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1079 | |
1080 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1081 | | --libexe | --libex | --libe) | |
1082 | ac_prev=libexecdir ;; | |
1083 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1084 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1085 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1086 | |
7a197a62 AK |
1087 | -localedir | --localedir | --localedi | --localed | --locale) |
1088 | ac_prev=localedir ;; | |
1089 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1090 | localedir=$ac_optarg ;; | |
1091 | ||
795ca3e5 | 1092 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1093 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1094 | ac_prev=localstatedir ;; |
1095 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1096 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1097 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1098 | |
1099 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1100 | ac_prev=mandir ;; | |
1101 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1102 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1103 | |
1104 | -nfp | --nfp | --nf) | |
1105 | # Obsolete; use --without-fp. | |
1106 | with_fp=no ;; | |
1107 | ||
1108 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1109 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1110 | no_create=yes ;; |
1111 | ||
1112 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1113 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1114 | no_recursion=yes ;; | |
1115 | ||
1116 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1117 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1118 | | --oldin | --oldi | --old | --ol | --o) | |
1119 | ac_prev=oldincludedir ;; | |
1120 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1121 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1122 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1123 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1124 | |
1125 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1126 | ac_prev=prefix ;; | |
1127 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1128 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1129 | |
1130 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1131 | | --program-pre | --program-pr | --program-p) | |
1132 | ac_prev=program_prefix ;; | |
1133 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1134 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1135 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1136 | |
1137 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1138 | | --program-suf | --program-su | --program-s) | |
1139 | ac_prev=program_suffix ;; | |
1140 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1141 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1142 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1143 | |
1144 | -program-transform-name | --program-transform-name \ | |
1145 | | --program-transform-nam | --program-transform-na \ | |
1146 | | --program-transform-n | --program-transform- \ | |
1147 | | --program-transform | --program-transfor \ | |
1148 | | --program-transfo | --program-transf \ | |
1149 | | --program-trans | --program-tran \ | |
1150 | | --progr-tra | --program-tr | --program-t) | |
1151 | ac_prev=program_transform_name ;; | |
1152 | -program-transform-name=* | --program-transform-name=* \ | |
1153 | | --program-transform-nam=* | --program-transform-na=* \ | |
1154 | | --program-transform-n=* | --program-transform-=* \ | |
1155 | | --program-transform=* | --program-transfor=* \ | |
1156 | | --program-transfo=* | --program-transf=* \ | |
1157 | | --program-trans=* | --program-tran=* \ | |
1158 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1159 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1160 | |
7a197a62 AK |
1161 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1162 | ac_prev=pdfdir ;; | |
1163 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1164 | pdfdir=$ac_optarg ;; | |
1165 | ||
1166 | -psdir | --psdir | --psdi | --psd | --ps) | |
1167 | ac_prev=psdir ;; | |
1168 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1169 | psdir=$ac_optarg ;; | |
1170 | ||
795ca3e5 AK |
1171 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1172 | | -silent | --silent | --silen | --sile | --sil) | |
1173 | silent=yes ;; | |
1174 | ||
1175 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1176 | ac_prev=sbindir ;; | |
1177 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1178 | | --sbi=* | --sb=*) | |
ad6254c5 | 1179 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1180 | |
1181 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1182 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1183 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1184 | | --sha | --sh) | |
1185 | ac_prev=sharedstatedir ;; | |
1186 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1187 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1188 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1189 | | --sha=* | --sh=*) | |
ad6254c5 | 1190 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1191 | |
1192 | -site | --site | --sit) | |
1193 | ac_prev=site ;; | |
1194 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1195 | site=$ac_optarg ;; |
795ca3e5 AK |
1196 | |
1197 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1198 | ac_prev=srcdir ;; | |
1199 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1200 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1201 | |
1202 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1203 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1204 | ac_prev=sysconfdir ;; | |
1205 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1206 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1207 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1208 | |
1209 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1210 | ac_prev=target_alias ;; |
795ca3e5 | 1211 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1212 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1213 | |
1214 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1215 | verbose=yes ;; | |
1216 | ||
ad6254c5 AK |
1217 | -version | --version | --versio | --versi | --vers | -V) |
1218 | ac_init_version=: ;; | |
795ca3e5 AK |
1219 | |
1220 | -with-* | --with-*) | |
ec6a6fbe | 1221 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1222 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1223 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1224 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1225 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1226 | ac_useropt_orig=$ac_useropt |
1227 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1228 | case $ac_user_opts in | |
1229 | *" | |
1230 | "with_$ac_useropt" | |
1231 | "*) ;; | |
1232 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1233 | ac_unrecognized_sep=', ';; | |
1234 | esac | |
1235 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1236 | |
1237 | -without-* | --without-*) | |
ec6a6fbe | 1238 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1239 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1240 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1241 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1242 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1243 | ac_useropt_orig=$ac_useropt |
1244 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1245 | case $ac_user_opts in | |
1246 | *" | |
1247 | "with_$ac_useropt" | |
1248 | "*) ;; | |
1249 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1250 | ac_unrecognized_sep=', ';; | |
1251 | esac | |
1252 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1253 | |
1254 | --x) | |
1255 | # Obsolete; use --with-x. | |
1256 | with_x=yes ;; | |
1257 | ||
1258 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1259 | | --x-incl | --x-inc | --x-in | --x-i) | |
1260 | ac_prev=x_includes ;; | |
1261 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1262 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1263 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1264 | |
1265 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1266 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1267 | ac_prev=x_libraries ;; | |
1268 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1269 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1270 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1271 | |
ec6a6fbe | 1272 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1273 | Try \`$0 --help' for more information." >&2 |
1274 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1275 | ;; |
1276 | ||
ad6254c5 AK |
1277 | *=*) |
1278 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1279 | # Reject names that are not valid shell variable names. | |
1280 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1281 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1282 | { (exit 1); exit 1; }; } |
7a197a62 | 1283 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1284 | export $ac_envvar ;; |
1285 | ||
795ca3e5 | 1286 | *) |
ad6254c5 | 1287 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1288 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1289 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1290 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1291 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1292 | ;; |
1293 | ||
1294 | esac | |
1295 | done | |
1296 | ||
1297 | if test -n "$ac_prev"; then | |
ad6254c5 | 1298 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1299 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1300 | { (exit 1); exit 1; }; } |
795ca3e5 | 1301 | fi |
795ca3e5 | 1302 | |
ec6a6fbe AK |
1303 | if test -n "$ac_unrecognized_opts"; then |
1304 | case $enable_option_checking in | |
1305 | no) ;; | |
1306 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1307 | { (exit 1); exit 1; }; } ;; | |
1308 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1309 | esac | |
1310 | fi | |
1311 | ||
1312 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1313 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1314 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1315 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1316 | libdir localedir mandir | |
795ca3e5 | 1317 | do |
7a197a62 | 1318 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1319 | # Remove trailing slashes. |
1320 | case $ac_val in | |
1321 | */ ) | |
1322 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1323 | eval $ac_var=\$ac_val;; | |
1324 | esac | |
1325 | # Be sure to have absolute directory names. | |
ad6254c5 | 1326 | case $ac_val in |
7a197a62 AK |
1327 | [\\/$]* | ?:[\\/]* ) continue;; |
1328 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1329 | esac |
ec6a6fbe | 1330 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1331 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1332 | done |
1333 | ||
ad6254c5 AK |
1334 | # There might be people who depend on the old broken behavior: `$host' |
1335 | # used to hold the argument of --host etc. | |
1336 | # FIXME: To remove some day. | |
1337 | build=$build_alias | |
1338 | host=$host_alias | |
1339 | target=$target_alias | |
1340 | ||
1341 | # FIXME: To remove some day. | |
1342 | if test "x$host_alias" != x; then | |
1343 | if test "x$build_alias" = x; then | |
1344 | cross_compiling=maybe | |
ec6a6fbe | 1345 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1346 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1347 | elif test "x$build_alias" != "x$host_alias"; then | |
1348 | cross_compiling=yes | |
1349 | fi | |
1350 | fi | |
8106cdd5 | 1351 | |
ad6254c5 AK |
1352 | ac_tool_prefix= |
1353 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1354 | ||
1355 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1356 | |
795ca3e5 | 1357 | |
7a197a62 AK |
1358 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1359 | ac_ls_di=`ls -di .` && | |
1360 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1361 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1362 | { (exit 1); exit 1; }; } |
1363 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1364 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1365 | { (exit 1); exit 1; }; } |
1366 | ||
1367 | ||
795ca3e5 AK |
1368 | # Find the source files, if location was not specified. |
1369 | if test -z "$srcdir"; then | |
1370 | ac_srcdir_defaulted=yes | |
7a197a62 | 1371 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1372 | ac_confdir=`$as_dirname -- "$as_myself" || |
1373 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1374 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1375 | X"$as_myself" : 'X\(//\)$' \| \ | |
1376 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1377 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1378 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\/\)[^/].*/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | /^X\(\/\/\)$/{ | |
1387 | s//\1/ | |
1388 | q | |
1389 | } | |
1390 | /^X\(\/\).*/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | s/.*/./; q'` | |
795ca3e5 | 1395 | srcdir=$ac_confdir |
7a197a62 | 1396 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1397 | srcdir=.. |
1398 | fi | |
1399 | else | |
1400 | ac_srcdir_defaulted=no | |
1401 | fi | |
7a197a62 AK |
1402 | if test ! -r "$srcdir/$ac_unique_file"; then |
1403 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1404 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1405 | { (exit 1); exit 1; }; } |
795ca3e5 | 1406 | fi |
7a197a62 AK |
1407 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1408 | ac_abs_confdir=`( | |
ec6a6fbe | 1409 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1410 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1411 | pwd)` |
1412 | # When building in place, set srcdir=. | |
1413 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1414 | srcdir=. | |
1415 | fi | |
1416 | # Remove unnecessary trailing slashes from srcdir. | |
1417 | # Double slashes in file names in object file debugging info | |
1418 | # mess up M-x gdb in Emacs. | |
1419 | case $srcdir in | |
1420 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1421 | esac | |
1422 | for ac_var in $ac_precious_vars; do | |
1423 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1424 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1425 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1426 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1427 | done | |
ad6254c5 AK |
1428 | |
1429 | # | |
1430 | # Report the --help message. | |
1431 | # | |
1432 | if test "$ac_init_help" = "long"; then | |
1433 | # Omit some internal or obsolete options to make the list less imposing. | |
1434 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1435 | cat <<_ACEOF | |
1436 | \`configure' configures this package to adapt to many kinds of systems. | |
1437 | ||
1438 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1439 | ||
1440 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1441 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1442 | ||
1443 | Defaults for the options are specified in brackets. | |
1444 | ||
1445 | Configuration: | |
1446 | -h, --help display this help and exit | |
1447 | --help=short display options specific to this package | |
1448 | --help=recursive display the short help of all the included packages | |
1449 | -V, --version display version information and exit | |
1450 | -q, --quiet, --silent do not print \`checking...' messages | |
1451 | --cache-file=FILE cache test results in FILE [disabled] | |
1452 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1453 | -n, --no-create do not create output files | |
1454 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1455 | ||
ad6254c5 AK |
1456 | Installation directories: |
1457 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1458 | [$ac_default_prefix] |
ad6254c5 | 1459 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1460 | [PREFIX] |
ad6254c5 AK |
1461 | |
1462 | By default, \`make install' will install all the files in | |
1463 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1464 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1465 | for instance \`--prefix=\$HOME'. | |
1466 | ||
1467 | For better control, use the options below. | |
1468 | ||
1469 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1470 | --bindir=DIR user executables [EPREFIX/bin] |
1471 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1472 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1473 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1474 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1475 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1476 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1477 | --includedir=DIR C header files [PREFIX/include] | |
1478 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1479 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1480 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1481 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1482 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1483 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1484 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1485 | --htmldir=DIR html documentation [DOCDIR] | |
1486 | --dvidir=DIR dvi documentation [DOCDIR] | |
1487 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1488 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1489 | _ACEOF |
1490 | ||
1491 | cat <<\_ACEOF | |
1492 | ||
1493 | System types: | |
1494 | --build=BUILD configure for building on BUILD [guessed] | |
1495 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1496 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1497 | _ACEOF | |
1498 | fi | |
1499 | ||
1500 | if test -n "$ac_init_help"; then | |
1501 | ||
1502 | cat <<\_ACEOF | |
1503 | ||
1504 | Optional Features: | |
ec6a6fbe | 1505 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1506 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1507 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1508 | --enable-static_link Use this to link the tools to their libraries |
1509 | statically. Default is dynamic linking | |
ad6254c5 AK |
1510 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1511 | device-mapper is missing from the kernel | |
1b523347 | 1512 | --disable-readline Disable readline support |
89044bc0 | 1513 | --enable-realtime Enable realtime clock support |
66fd4529 | 1514 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1515 | --enable-debug Enable debugging |
5556819a | 1516 | --enable-profiling Gather gcov profiling data |
93bd259b | 1517 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1518 | --enable-udev_sync Enable synchronisation with udev processing |
1519 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1520 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1521 | --enable-units-compat Enable output compatibility with old versions that |
1522 | that don't use KiB-style unit suffixes | |
93bd259b | 1523 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1524 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1525 | --enable-applib Build application library |
ad6254c5 | 1526 | --enable-cmdlib Build shared command library |
93bd259b | 1527 | --enable-pkgconfig Install pkgconfig support |
c9274524 | 1528 | --disable-fsadm Disable fsadm |
15d91f5a | 1529 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1530 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1531 | --enable-nls Enable Native Language Support |
1532 | ||
1533 | Optional Packages: | |
1534 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1535 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1536 | --with-user=USER Set the owner of installed files [USER=] |
1537 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1538 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1539 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1540 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1541 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1542 | TYPE=internal | |
1543 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1544 | TYPE=internal | |
1545 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1546 | TYPE=internal | |
1547 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1548 | TYPE=internal | |
1549 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1550 | TYPE=internal | |
a946372e | 1551 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1552 | The following cluster manager combinations are valid: |
a946372e AK |
1553 | * cman,gulm (RHEL4 or equivalent) |
1554 | * cman (RHEL5 or equivalent) | |
1555 | * cman,corosync,openais (or selection of them) | |
1556 | * all (autodetect) | |
1557 | * none (disable build) | |
a266258f | 1558 | TYPE=none |
66fd4529 | 1559 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1560 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1561 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1562 | --with-confdir=DIR Configuration files in DIR [/etc] |
1563 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1564 | --with-usrlibdir=DIR |
1565 | --with-usrsbindir=DIR | |
a5f46f6a | 1566 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1567 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1568 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1569 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1570 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1571 | |
1572 | Some influential environment variables: | |
1573 | CC C compiler command | |
1574 | CFLAGS C compiler flags | |
1575 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1576 | nonstandard directory <lib dir> | |
25fbec5b | 1577 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1578 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1579 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1580 | CPP C preprocessor |
e2997b73 | 1581 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1582 | PKGCONFIGINIT_CFLAGS |
1583 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1584 | PKGCONFIGINIT_LIBS | |
1585 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1586 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1587 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1588 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1589 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1590 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1591 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1592 | COROSYNC_CFLAGS | |
1593 | C compiler flags for COROSYNC, overriding pkg-config | |
1594 | COROSYNC_LIBS | |
1595 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1596 | QUORUM_CFLAGS |
1597 | C compiler flags for QUORUM, overriding pkg-config | |
1598 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1599 | SALCK_CFLAGS |
1600 | C compiler flags for SALCK, overriding pkg-config | |
1601 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1602 | CONFDB_CFLAGS |
1603 | C compiler flags for CONFDB, overriding pkg-config | |
1604 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1605 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1606 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1607 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1608 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1609 | SACKPT_CFLAGS |
1610 | C compiler flags for SACKPT, overriding pkg-config | |
1611 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1612 | |
1613 | Use these variables to override the choices made by `configure' or to help | |
1614 | it to find libraries and programs with nonstandard names/locations. | |
1615 | ||
1616 | _ACEOF | |
7a197a62 | 1617 | ac_status=$? |
ad6254c5 AK |
1618 | fi |
1619 | ||
1620 | if test "$ac_init_help" = "recursive"; then | |
1621 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1622 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1623 | test -d "$ac_dir" || |
1624 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1625 | continue | |
ad6254c5 AK |
1626 | ac_builddir=. |
1627 | ||
7a197a62 AK |
1628 | case "$ac_dir" in |
1629 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1630 | *) | |
ec6a6fbe | 1631 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1632 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1633 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1634 | case $ac_top_builddir_sub in |
1635 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1636 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1637 | esac ;; | |
1638 | esac | |
1639 | ac_abs_top_builddir=$ac_pwd | |
1640 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1641 | # for backward compatibility: | |
1642 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1643 | |
1644 | case $srcdir in | |
7a197a62 | 1645 | .) # We are building in place. |
ad6254c5 | 1646 | ac_srcdir=. |
7a197a62 AK |
1647 | ac_top_srcdir=$ac_top_builddir_sub |
1648 | ac_abs_top_srcdir=$ac_pwd ;; | |
1649 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1650 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1651 | ac_top_srcdir=$srcdir |
1652 | ac_abs_top_srcdir=$srcdir ;; | |
1653 | *) # Relative name. | |
1654 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1655 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1656 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1657 | esac |
7a197a62 AK |
1658 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1659 | ||
1660 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1661 | # Check for guested configure. | |
1662 | if test -f "$ac_srcdir/configure.gnu"; then | |
1663 | echo && | |
1664 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1665 | elif test -f "$ac_srcdir/configure"; then | |
1666 | echo && | |
1667 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1668 | else |
ec6a6fbe | 1669 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1670 | fi || ac_status=$? |
1671 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1672 | done |
1673 | fi | |
1674 | ||
7a197a62 | 1675 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1676 | if $ac_init_version; then |
1677 | cat <<\_ACEOF | |
7a197a62 | 1678 | configure |
ec6a6fbe | 1679 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1680 | |
7a197a62 | 1681 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1682 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1683 | This configure script is free software; the Free Software Foundation |
1684 | gives unlimited permission to copy, distribute and modify it. | |
1685 | _ACEOF | |
7a197a62 | 1686 | exit |
ad6254c5 | 1687 | fi |
7a197a62 | 1688 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1689 | This file contains any messages produced by compilers while |
1690 | running configure, to aid debugging if configure makes a mistake. | |
1691 | ||
1692 | It was created by $as_me, which was | |
ec6a6fbe | 1693 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1694 | |
1695 | $ $0 $@ | |
1696 | ||
1697 | _ACEOF | |
7a197a62 | 1698 | exec 5>>config.log |
ad6254c5 AK |
1699 | { |
1700 | cat <<_ASUNAME | |
1701 | ## --------- ## | |
1702 | ## Platform. ## | |
1703 | ## --------- ## | |
1704 | ||
1705 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1706 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1707 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1708 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1709 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1710 | ||
1711 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1712 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1713 | ||
1714 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1715 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1716 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1717 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1718 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1719 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1720 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1721 | ||
1722 | _ASUNAME | |
1723 | ||
1724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1725 | for as_dir in $PATH | |
1726 | do | |
1727 | IFS=$as_save_IFS | |
1728 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1729 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1730 | done |
7a197a62 | 1731 | IFS=$as_save_IFS |
ad6254c5 AK |
1732 | |
1733 | } >&5 | |
1734 | ||
1735 | cat >&5 <<_ACEOF | |
1736 | ||
1737 | ||
1738 | ## ----------- ## | |
1739 | ## Core tests. ## | |
1740 | ## ----------- ## | |
1741 | ||
1742 | _ACEOF | |
1743 | ||
1744 | ||
1745 | # Keep a trace of the command line. | |
1746 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1747 | # Strip out --silent because we don't want to record it for future runs. | |
1748 | # Also quote any args containing shell meta-characters. | |
1749 | # Make two passes to allow for proper duplicate-argument suppression. | |
1750 | ac_configure_args= | |
1751 | ac_configure_args0= | |
1752 | ac_configure_args1= | |
ad6254c5 AK |
1753 | ac_must_keep_next=false |
1754 | for ac_pass in 1 2 | |
1755 | do | |
1756 | for ac_arg | |
1757 | do | |
1758 | case $ac_arg in | |
1759 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1760 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1761 | | -silent | --silent | --silen | --sile | --sil) | |
1762 | continue ;; | |
7a197a62 | 1763 | *\'*) |
ec6a6fbe | 1764 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1765 | esac |
1766 | case $ac_pass in | |
1767 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1768 | 2) | |
1769 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1770 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1771 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1772 | else |
8a2fc586 AK |
1773 | case $ac_arg in |
1774 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1775 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1776 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1777 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1778 | case "$ac_configure_args0 " in | |
1779 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1780 | esac | |
1781 | ;; | |
1782 | -* ) ac_must_keep_next=true ;; | |
1783 | esac | |
ad6254c5 | 1784 | fi |
7a197a62 | 1785 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1786 | ;; |
1787 | esac | |
1788 | done | |
1789 | done | |
1790 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1791 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1792 | ||
1793 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1794 | # config.log. We remove comments because anyway the quotes in there | |
1795 | # would cause problems or look ugly. | |
7a197a62 AK |
1796 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1797 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1798 | trap 'exit_status=$? |
1799 | # Save into config.log some information that might help in debugging. | |
1800 | { | |
1801 | echo | |
1802 | ||
1803 | cat <<\_ASBOX | |
1804 | ## ---------------- ## | |
1805 | ## Cache variables. ## | |
1806 | ## ---------------- ## | |
1807 | _ASBOX | |
1808 | echo | |
1809 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1810 | ( |
1811 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1812 | eval ac_val=\$$ac_var | |
1813 | case $ac_val in #( | |
1814 | *${as_nl}*) | |
1815 | case $ac_var in #( | |
ec6a6fbe AK |
1816 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1817 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1818 | esac |
1819 | case $ac_var in #( | |
1820 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1821 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1822 | *) $as_unset $ac_var ;; |
1823 | esac ;; | |
1824 | esac | |
1825 | done | |
ad6254c5 | 1826 | (set) 2>&1 | |
7a197a62 AK |
1827 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1828 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1829 | sed -n \ |
7a197a62 AK |
1830 | "s/'\''/'\''\\\\'\'''\''/g; |
1831 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1832 | ;; #( | |
ad6254c5 | 1833 | *) |
7a197a62 | 1834 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1835 | ;; |
7a197a62 AK |
1836 | esac | |
1837 | sort | |
1838 | ) | |
ad6254c5 AK |
1839 | echo |
1840 | ||
1841 | cat <<\_ASBOX | |
1842 | ## ----------------- ## | |
1843 | ## Output variables. ## | |
1844 | ## ----------------- ## | |
1845 | _ASBOX | |
1846 | echo | |
1847 | for ac_var in $ac_subst_vars | |
1848 | do | |
7a197a62 AK |
1849 | eval ac_val=\$$ac_var |
1850 | case $ac_val in | |
ec6a6fbe | 1851 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1852 | esac |
ec6a6fbe | 1853 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1854 | done | sort |
1855 | echo | |
1856 | ||
1857 | if test -n "$ac_subst_files"; then | |
1858 | cat <<\_ASBOX | |
7a197a62 AK |
1859 | ## ------------------- ## |
1860 | ## File substitutions. ## | |
1861 | ## ------------------- ## | |
ad6254c5 AK |
1862 | _ASBOX |
1863 | echo | |
1864 | for ac_var in $ac_subst_files | |
1865 | do | |
7a197a62 AK |
1866 | eval ac_val=\$$ac_var |
1867 | case $ac_val in | |
ec6a6fbe | 1868 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1869 | esac |
ec6a6fbe | 1870 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1871 | done | sort |
1872 | echo | |
1873 | fi | |
1874 | ||
1875 | if test -s confdefs.h; then | |
1876 | cat <<\_ASBOX | |
1877 | ## ----------- ## | |
1878 | ## confdefs.h. ## | |
1879 | ## ----------- ## | |
1880 | _ASBOX | |
1881 | echo | |
7a197a62 | 1882 | cat confdefs.h |
ad6254c5 AK |
1883 | echo |
1884 | fi | |
1885 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1886 | $as_echo "$as_me: caught signal $ac_signal" |
1887 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1888 | } >&5 |
7a197a62 AK |
1889 | rm -f core *.core core.conftest.* && |
1890 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1891 | exit $exit_status |
7a197a62 | 1892 | ' 0 |
ad6254c5 AK |
1893 | for ac_signal in 1 2 13 15; do |
1894 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1895 | done | |
1896 | ac_signal=0 | |
1897 | ||
1898 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1899 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1900 | |
1901 | # Predefined preprocessor variables. | |
1902 | ||
1903 | cat >>confdefs.h <<_ACEOF | |
1904 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1905 | _ACEOF | |
1906 | ||
1907 | ||
1908 | cat >>confdefs.h <<_ACEOF | |
1909 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1910 | _ACEOF | |
1911 | ||
1912 | ||
1913 | cat >>confdefs.h <<_ACEOF | |
1914 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1915 | _ACEOF | |
8106cdd5 | 1916 | |
ad6254c5 AK |
1917 | |
1918 | cat >>confdefs.h <<_ACEOF | |
1919 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1920 | _ACEOF | |
1921 | ||
1922 | ||
1923 | cat >>confdefs.h <<_ACEOF | |
1924 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1925 | _ACEOF | |
1926 | ||
1927 | ||
1928 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1929 | # Prefer an explicitly selected file to automatically selected ones. |
1930 | ac_site_file1=NONE | |
1931 | ac_site_file2=NONE | |
7a197a62 | 1932 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1933 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1934 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1935 | ac_site_file1=$prefix/share/config.site |
1936 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1937 | else |
ec6a6fbe AK |
1938 | ac_site_file1=$ac_default_prefix/share/config.site |
1939 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1940 | fi |
ec6a6fbe | 1941 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1942 | do |
ec6a6fbe | 1943 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1944 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1945 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1946 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1947 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1948 | . "$ac_site_file" |
1949 | fi | |
1950 | done | |
1951 | ||
1952 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1953 | # Some versions of bash will fail to source /dev/null (special |
1954 | # files actually), so we avoid doing that. | |
1955 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1956 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1957 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1958 | case $cache_file in |
7a197a62 AK |
1959 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1960 | *) . "./$cache_file";; | |
ad6254c5 AK |
1961 | esac |
1962 | fi | |
795ca3e5 | 1963 | else |
ec6a6fbe AK |
1964 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1965 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1966 | >$cache_file |
1967 | fi | |
1968 | ||
1969 | # Check that the precious variables saved in the cache have kept the same | |
1970 | # value. | |
1971 | ac_cache_corrupted=false | |
7a197a62 | 1972 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1973 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1974 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1975 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1976 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1977 | case $ac_old_set,$ac_new_set in |
1978 | set,) | |
ec6a6fbe AK |
1979 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1980 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1981 | ac_cache_corrupted=: ;; |
1982 | ,set) | |
ec6a6fbe AK |
1983 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1984 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1985 | ac_cache_corrupted=: ;; |
1986 | ,);; | |
1987 | *) | |
1988 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1989 | # differences in whitespace do not lead to failure. |
1990 | ac_old_val_w=`echo x $ac_old_val` | |
1991 | ac_new_val_w=`echo x $ac_new_val` | |
1992 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1993 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1994 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1995 | ac_cache_corrupted=: | |
1996 | else | |
1997 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1998 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1999 | eval $ac_var=\$ac_old_val | |
2000 | fi | |
2001 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2002 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2003 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2004 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2005 | fi;; |
2006 | esac | |
2007 | # Pass precious variables to config.status. | |
2008 | if test "$ac_new_set" = set; then | |
2009 | case $ac_new_val in | |
ec6a6fbe | 2010 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2011 | *) ac_arg=$ac_var=$ac_new_val ;; |
2012 | esac | |
2013 | case " $ac_configure_args " in | |
2014 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2015 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2016 | esac | |
2017 | fi | |
2018 | done | |
2019 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2020 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2021 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2022 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2023 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2024 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2025 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2026 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2027 | fi |
2028 | ||
ad6254c5 AK |
2029 | |
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | ||
2044 | ||
7a197a62 AK |
2045 | ac_ext=c |
2046 | ac_cpp='$CPP $CPPFLAGS' | |
2047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2050 | |
795ca3e5 AK |
2051 | |
2052 | ||
7a197a62 | 2053 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2054 | |
2055 | ||
80992638 | 2056 | ################################################################################ |
795ca3e5 | 2057 | ac_aux_dir= |
7a197a62 AK |
2058 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2059 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2060 | ac_aux_dir=$ac_dir |
2061 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2062 | break | |
7a197a62 | 2063 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2064 | ac_aux_dir=$ac_dir |
2065 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2066 | break | |
7a197a62 | 2067 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2068 | ac_aux_dir=$ac_dir |
2069 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2070 | break | |
795ca3e5 AK |
2071 | fi |
2072 | done | |
2073 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2074 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2075 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2076 | { (exit 1); exit 1; }; } |
795ca3e5 | 2077 | fi |
7a197a62 AK |
2078 | |
2079 | # These three variables are undocumented and unsupported, | |
2080 | # and are intended to be withdrawn in a future Autoconf release. | |
2081 | # They can cause serious problems if a builder's source tree is in a directory | |
2082 | # whose full name contains unusual characters. | |
2083 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2084 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2085 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2086 | ||
8ce0cbda AK |
2087 | |
2088 | ||
ad6254c5 | 2089 | ################################################################################ |
8ce0cbda | 2090 | # Make sure we can run config.sub. |
7a197a62 | 2091 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2092 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2093 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2094 | { (exit 1); exit 1; }; } |
2095 | ||
ec6a6fbe AK |
2096 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2097 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2098 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2099 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2100 | else |
7a197a62 AK |
2101 | ac_build_alias=$build_alias |
2102 | test "x$ac_build_alias" = x && | |
2103 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2104 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2105 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2106 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2107 | { (exit 1); exit 1; }; } |
7a197a62 | 2108 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2109 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2110 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2111 | { (exit 1); exit 1; }; } |
2112 | ||
2113 | fi | |
ec6a6fbe AK |
2114 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2115 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2116 | case $ac_cv_build in |
2117 | *-*-*) ;; | |
ec6a6fbe AK |
2118 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2119 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2120 | { (exit 1); exit 1; }; };; |
2121 | esac | |
ad6254c5 | 2122 | build=$ac_cv_build |
7a197a62 AK |
2123 | ac_save_IFS=$IFS; IFS='-' |
2124 | set x $ac_cv_build | |
2125 | shift | |
2126 | build_cpu=$1 | |
2127 | build_vendor=$2 | |
2128 | shift; shift | |
2129 | # Remember, the first character of IFS is used to create $*, | |
2130 | # except with old shells: | |
2131 | build_os=$* | |
2132 | IFS=$ac_save_IFS | |
2133 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2134 | |
2135 | ||
ec6a6fbe AK |
2136 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2137 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2138 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2139 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2140 | else |
7a197a62 AK |
2141 | if test "x$host_alias" = x; then |
2142 | ac_cv_host=$ac_cv_build | |
2143 | else | |
2144 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2145 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2146 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2147 | { (exit 1); exit 1; }; } |
7a197a62 | 2148 | fi |
ad6254c5 AK |
2149 | |
2150 | fi | |
ec6a6fbe AK |
2151 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2152 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2153 | case $ac_cv_host in |
2154 | *-*-*) ;; | |
ec6a6fbe AK |
2155 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2156 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2157 | { (exit 1); exit 1; }; };; |
2158 | esac | |
ad6254c5 | 2159 | host=$ac_cv_host |
7a197a62 AK |
2160 | ac_save_IFS=$IFS; IFS='-' |
2161 | set x $ac_cv_host | |
2162 | shift | |
2163 | host_cpu=$1 | |
2164 | host_vendor=$2 | |
2165 | shift; shift | |
2166 | # Remember, the first character of IFS is used to create $*, | |
2167 | # except with old shells: | |
2168 | host_os=$* | |
2169 | IFS=$ac_save_IFS | |
2170 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2171 | |
2172 | ||
ec6a6fbe AK |
2173 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2174 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2175 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2176 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2177 | else |
7a197a62 AK |
2178 | if test "x$target_alias" = x; then |
2179 | ac_cv_target=$ac_cv_host | |
2180 | else | |
2181 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2182 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2183 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2184 | { (exit 1); exit 1; }; } |
7a197a62 | 2185 | fi |
8ce0cbda | 2186 | |
ad6254c5 | 2187 | fi |
ec6a6fbe AK |
2188 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2189 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2190 | case $ac_cv_target in |
2191 | *-*-*) ;; | |
ec6a6fbe AK |
2192 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2193 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2194 | { (exit 1); exit 1; }; };; |
2195 | esac | |
ad6254c5 | 2196 | target=$ac_cv_target |
7a197a62 AK |
2197 | ac_save_IFS=$IFS; IFS='-' |
2198 | set x $ac_cv_target | |
2199 | shift | |
2200 | target_cpu=$1 | |
2201 | target_vendor=$2 | |
2202 | shift; shift | |
2203 | # Remember, the first character of IFS is used to create $*, | |
2204 | # except with old shells: | |
2205 | target_os=$* | |
2206 | IFS=$ac_save_IFS | |
2207 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2208 | |
8ce0cbda | 2209 | |
ad6254c5 AK |
2210 | # The aliases save the names the user supplied, while $host etc. |
2211 | # will get canonicalized. | |
2212 | test -n "$target_alias" && | |
8ce0cbda AK |
2213 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2214 | NONENONEs,x,x, && | |
2215 | program_prefix=${target_alias}- | |
2216 | ||
8ce0cbda AK |
2217 | case "$host_os" in |
2218 | linux*) | |
7f54ef36 | 2219 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2220 | COPTIMISE_FLAG="-O2" |
2221 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2222 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2223 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2224 | LDDEPS="$LDDEPS .export.sym" | |
2225 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2226 | LIB_SUFFIX=so |
8ce0cbda AK |
2227 | DEVMAPPER=yes |
2228 | ODIRECT=yes | |
d0191583 | 2229 | DM_IOCTLS=yes |
8ce0cbda AK |
2230 | SELINUX=yes |
2231 | CLUSTER=internal | |
93bd259b | 2232 | FSADM=yes |
d0191583 | 2233 | ;; |
8ce0cbda AK |
2234 | darwin*) |
2235 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2236 | COPTIMISE_FLAG="-O2" | |
2237 | CLDFLAGS="$CLDFLAGS" | |
2238 | CLDWHOLEARCHIVE="-all_load" | |
2239 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2240 | LIB_SUFFIX=dylib |
a653923f | 2241 | DEVMAPPER=yes |
8ce0cbda | 2242 | ODIRECT=no |
d0191583 | 2243 | DM_IOCTLS=no |
8ce0cbda AK |
2244 | SELINUX=no |
2245 | CLUSTER=none | |
d0191583 JM |
2246 | FSADM=no |
2247 | ;; | |
8ce0cbda AK |
2248 | esac |
2249 | ||
80992638 | 2250 | ################################################################################ |
ec6a6fbe AK |
2251 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2252 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2253 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2254 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2255 | else |
2256 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2257 | for ac_i in 1 2 3 4 5 6 7; do | |
2258 | ac_script="$ac_script$as_nl$ac_script" | |
2259 | done | |
ec6a6fbe | 2260 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2261 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2262 | if test -z "$SED"; then |
5951ef33 | 2263 | ac_path_SED_found=false |
ec6a6fbe AK |
2264 | # Loop through the user's path and test for each of PROGNAME-LIST |
2265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2266 | for as_dir in $PATH |
2267 | do | |
2268 | IFS=$as_save_IFS | |
2269 | test -z "$as_dir" && as_dir=. | |
2270 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2271 | for ac_exec_ext in '' $ac_executable_extensions; do |
2272 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2273 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2274 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2275 | # Check for GNU $ac_path_SED |
2276 | case `"$ac_path_SED" --version 2>&1` in | |
2277 | *GNU*) | |
2278 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2279 | *) | |
2280 | ac_count=0 | |
ec6a6fbe | 2281 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2282 | while : |
2283 | do | |
2284 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2285 | mv "conftest.tmp" "conftest.in" | |
2286 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2287 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2288 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2289 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2290 | ac_count=`expr $ac_count + 1` | |
2291 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2292 | # Best one so far, save it but keep looking for a better one | |
2293 | ac_cv_path_SED="$ac_path_SED" | |
2294 | ac_path_SED_max=$ac_count | |
2295 | fi | |
2296 | # 10*(2^10) chars as input seems more than enough | |
2297 | test $ac_count -gt 10 && break | |
2298 | done | |
2299 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2300 | esac | |
2301 | ||
ec6a6fbe AK |
2302 | $ac_path_SED_found && break 3 |
2303 | done | |
5951ef33 AK |
2304 | done |
2305 | done | |
5951ef33 | 2306 | IFS=$as_save_IFS |
ec6a6fbe AK |
2307 | if test -z "$ac_cv_path_SED"; then |
2308 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2309 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2310 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2311 | fi |
5951ef33 AK |
2312 | else |
2313 | ac_cv_path_SED=$SED | |
2314 | fi | |
2315 | ||
2316 | fi | |
ec6a6fbe AK |
2317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2318 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2319 | SED="$ac_cv_path_SED" |
2320 | rm -f conftest.sed | |
2321 | ||
ad6254c5 | 2322 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2323 | do |
ad6254c5 | 2324 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2325 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2326 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2327 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2328 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2329 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2330 | else |
2331 | if test -n "$AWK"; then | |
2332 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2333 | else | |
ad6254c5 AK |
2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2335 | for as_dir in $PATH | |
2336 | do | |
2337 | IFS=$as_save_IFS | |
2338 | test -z "$as_dir" && as_dir=. | |
2339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2341 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2342 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2343 | break 2 |
2344 | fi | |
2345 | done | |
2346 | done | |
7a197a62 | 2347 | IFS=$as_save_IFS |
ad6254c5 | 2348 | |
795ca3e5 AK |
2349 | fi |
2350 | fi | |
ad6254c5 | 2351 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2352 | if test -n "$AWK"; then |
ec6a6fbe AK |
2353 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2354 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2355 | else |
ec6a6fbe AK |
2356 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2357 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2358 | fi |
2359 | ||
7a197a62 | 2360 | |
ad6254c5 AK |
2361 | test -n "$AWK" && break |
2362 | done | |
2363 | ||
2364 | ac_ext=c | |
2365 | ac_cpp='$CPP $CPPFLAGS' | |
2366 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2367 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2368 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2369 | if test -n "$ac_tool_prefix"; then | |
2370 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2371 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2372 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2373 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2374 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2375 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2376 | else |
2377 | if test -n "$CC"; then | |
2378 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2379 | else | |
2380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2381 | for as_dir in $PATH | |
2382 | do | |
2383 | IFS=$as_save_IFS | |
2384 | test -z "$as_dir" && as_dir=. | |
2385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2387 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2388 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2389 | break 2 |
2390 | fi | |
2391 | done | |
8106cdd5 | 2392 | done |
7a197a62 | 2393 | IFS=$as_save_IFS |
8106cdd5 | 2394 | |
ad6254c5 AK |
2395 | fi |
2396 | fi | |
2397 | CC=$ac_cv_prog_CC | |
2398 | if test -n "$CC"; then | |
ec6a6fbe AK |
2399 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2400 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2401 | else |
ec6a6fbe AK |
2402 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2403 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2404 | fi |
2405 | ||
7a197a62 | 2406 | |
ad6254c5 AK |
2407 | fi |
2408 | if test -z "$ac_cv_prog_CC"; then | |
2409 | ac_ct_CC=$CC | |
2410 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2411 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2412 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2413 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2414 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2415 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2416 | else |
2417 | if test -n "$ac_ct_CC"; then | |
2418 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2419 | else | |
2420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2421 | for as_dir in $PATH | |
2422 | do | |
2423 | IFS=$as_save_IFS | |
2424 | test -z "$as_dir" && as_dir=. | |
2425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2427 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2428 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2429 | break 2 |
2430 | fi | |
2431 | done | |
2432 | done | |
7a197a62 | 2433 | IFS=$as_save_IFS |
ad6254c5 AK |
2434 | |
2435 | fi | |
2436 | fi | |
2437 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2438 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2439 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2440 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2441 | else |
ec6a6fbe AK |
2442 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2443 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2444 | fi |
2445 | ||
7a197a62 AK |
2446 | if test "x$ac_ct_CC" = x; then |
2447 | CC="" | |
2448 | else | |
2449 | case $cross_compiling:$ac_tool_warned in | |
2450 | yes:) | |
ec6a6fbe AK |
2451 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2452 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2453 | ac_tool_warned=yes ;; |
2454 | esac | |
2455 | CC=$ac_ct_CC | |
2456 | fi | |
ad6254c5 AK |
2457 | else |
2458 | CC="$ac_cv_prog_CC" | |
2459 | fi | |
2460 | ||
2461 | if test -z "$CC"; then | |
7a197a62 AK |
2462 | if test -n "$ac_tool_prefix"; then |
2463 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2464 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2465 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2466 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2467 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2468 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2469 | else |
2470 | if test -n "$CC"; then | |
2471 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2472 | else | |
ad6254c5 AK |
2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2474 | for as_dir in $PATH | |
2475 | do | |
2476 | IFS=$as_save_IFS | |
2477 | test -z "$as_dir" && as_dir=. | |
2478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2480 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2481 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2482 | break 2 |
2483 | fi | |
2484 | done | |
2485 | done | |
7a197a62 | 2486 | IFS=$as_save_IFS |
ad6254c5 | 2487 | |
8106cdd5 AK |
2488 | fi |
2489 | fi | |
ad6254c5 | 2490 | CC=$ac_cv_prog_CC |
8106cdd5 | 2491 | if test -n "$CC"; then |
ec6a6fbe AK |
2492 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2493 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2494 | else |
ec6a6fbe AK |
2495 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2496 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2497 | fi |
2498 | ||
8106cdd5 | 2499 | |
7a197a62 | 2500 | fi |
ad6254c5 | 2501 | fi |
795ca3e5 AK |
2502 | if test -z "$CC"; then |
2503 | # Extract the first word of "cc", so it can be a program name with args. | |
2504 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2505 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2506 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2507 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2508 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2509 | else |
2510 | if test -n "$CC"; then | |
2511 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2512 | else | |
795ca3e5 | 2513 | ac_prog_rejected=no |
ad6254c5 AK |
2514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2515 | for as_dir in $PATH | |
2516 | do | |
2517 | IFS=$as_save_IFS | |
2518 | test -z "$as_dir" && as_dir=. | |
2519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2521 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2522 | ac_prog_rejected=yes | |
2523 | continue | |
2524 | fi | |
2525 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2526 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2527 | break 2 |
2528 | fi | |
2529 | done | |
2530 | done | |
7a197a62 | 2531 | IFS=$as_save_IFS |
ad6254c5 | 2532 | |
795ca3e5 AK |
2533 | if test $ac_prog_rejected = yes; then |
2534 | # We found a bogon in the path, so make sure we never use it. | |
2535 | set dummy $ac_cv_prog_CC | |
2536 | shift | |
ad6254c5 | 2537 | if test $# != 0; then |
795ca3e5 AK |
2538 | # We chose a different compiler from the bogus one. |
2539 | # However, it has the same basename, so the bogon will be chosen | |
2540 | # first if we set CC to just the basename; use the full file name. | |
2541 | shift | |
ad6254c5 | 2542 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2543 | fi |
2544 | fi | |
2545 | fi | |
2546 | fi | |
ad6254c5 | 2547 | CC=$ac_cv_prog_CC |
795ca3e5 | 2548 | if test -n "$CC"; then |
ec6a6fbe AK |
2549 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2550 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2551 | else |
ec6a6fbe AK |
2552 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2553 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2554 | fi |
2555 | ||
7a197a62 | 2556 | |
ad6254c5 AK |
2557 | fi |
2558 | if test -z "$CC"; then | |
2559 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2560 | for ac_prog in cl.exe |
ad6254c5 AK |
2561 | do |
2562 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2563 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2564 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2565 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2566 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2567 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2568 | else |
2569 | if test -n "$CC"; then | |
2570 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2571 | else | |
ad6254c5 AK |
2572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2573 | for as_dir in $PATH | |
2574 | do | |
2575 | IFS=$as_save_IFS | |
2576 | test -z "$as_dir" && as_dir=. | |
2577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2578 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2579 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2580 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2581 | break 2 |
2582 | fi | |
2583 | done | |
2584 | done | |
7a197a62 | 2585 | IFS=$as_save_IFS |
ad6254c5 | 2586 | |
795ca3e5 AK |
2587 | fi |
2588 | fi | |
ad6254c5 | 2589 | CC=$ac_cv_prog_CC |
795ca3e5 | 2590 | if test -n "$CC"; then |
ec6a6fbe AK |
2591 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2592 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2593 | else |
ec6a6fbe AK |
2594 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2595 | $as_echo "no" >&6; } | |
795ca3e5 | 2596 | fi |
ad6254c5 | 2597 | |
7a197a62 | 2598 | |
ad6254c5 AK |
2599 | test -n "$CC" && break |
2600 | done | |
2601 | fi | |
2602 | if test -z "$CC"; then | |
2603 | ac_ct_CC=$CC | |
7a197a62 | 2604 | for ac_prog in cl.exe |
ad6254c5 AK |
2605 | do |
2606 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2607 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2608 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2609 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2610 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2611 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2612 | else |
2613 | if test -n "$ac_ct_CC"; then | |
2614 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2615 | else | |
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2617 | for as_dir in $PATH | |
2618 | do | |
2619 | IFS=$as_save_IFS | |
2620 | test -z "$as_dir" && as_dir=. | |
2621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2623 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2624 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2625 | break 2 |
795ca3e5 | 2626 | fi |
ad6254c5 AK |
2627 | done |
2628 | done | |
7a197a62 | 2629 | IFS=$as_save_IFS |
ad6254c5 AK |
2630 | |
2631 | fi | |
2632 | fi | |
2633 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2634 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2635 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2636 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2637 | else |
ec6a6fbe AK |
2638 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2639 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2640 | fi |
2641 | ||
7a197a62 | 2642 | |
ad6254c5 AK |
2643 | test -n "$ac_ct_CC" && break |
2644 | done | |
795ca3e5 | 2645 | |
7a197a62 AK |
2646 | if test "x$ac_ct_CC" = x; then |
2647 | CC="" | |
2648 | else | |
2649 | case $cross_compiling:$ac_tool_warned in | |
2650 | yes:) | |
ec6a6fbe AK |
2651 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2652 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2653 | ac_tool_warned=yes ;; |
2654 | esac | |
2655 | CC=$ac_ct_CC | |
2656 | fi | |
ad6254c5 AK |
2657 | fi |
2658 | ||
2659 | fi | |
2660 | ||
2661 | ||
ec6a6fbe AK |
2662 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2663 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2664 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2665 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2666 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2667 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2668 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2669 | |
2670 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2671 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2672 | set X $ac_compile | |
2673 | ac_compiler=$2 | |
7a197a62 AK |
2674 | { (ac_try="$ac_compiler --version >&5" |
2675 | case "(($ac_try" in | |
2676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2677 | *) ac_try_echo=$ac_try;; | |
2678 | esac | |
ec6a6fbe AK |
2679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2680 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2681 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2682 | ac_status=$? |
ec6a6fbe | 2683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2684 | (exit $ac_status); } |
7a197a62 AK |
2685 | { (ac_try="$ac_compiler -v >&5" |
2686 | case "(($ac_try" in | |
2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2688 | *) ac_try_echo=$ac_try;; | |
2689 | esac | |
ec6a6fbe AK |
2690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2691 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2692 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2693 | ac_status=$? |
ec6a6fbe | 2694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2695 | (exit $ac_status); } |
7a197a62 AK |
2696 | { (ac_try="$ac_compiler -V >&5" |
2697 | case "(($ac_try" in | |
2698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2699 | *) ac_try_echo=$ac_try;; | |
2700 | esac | |
ec6a6fbe AK |
2701 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2702 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2703 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2704 | ac_status=$? |
ec6a6fbe | 2705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2706 | (exit $ac_status); } |
2707 | ||
2708 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2709 | /* confdefs.h. */ |
2710 | _ACEOF | |
2711 | cat confdefs.h >>conftest.$ac_ext | |
2712 | cat >>conftest.$ac_ext <<_ACEOF | |
2713 | /* end confdefs.h. */ | |
2714 | ||
2715 | int | |
2716 | main () | |
2717 | { | |
2718 | ||
2719 | ; | |
2720 | return 0; | |
2721 | } | |
2722 | _ACEOF | |
2723 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2724 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2725 | # Try to create an executable without -o first, disregard a.out. |
2726 | # It will help us diagnose broken compilers, and finding out an intuition | |
2727 | # of exeext. | |
ec6a6fbe AK |
2728 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2729 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2730 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2731 | ||
2732 | # The possible output files: | |
2733 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2734 | ||
7a197a62 AK |
2735 | ac_rmfiles= |
2736 | for ac_file in $ac_files | |
2737 | do | |
2738 | case $ac_file in | |
ec6a6fbe | 2739 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2740 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2741 | esac | |
2742 | done | |
2743 | rm -f $ac_rmfiles | |
2744 | ||
2745 | if { (ac_try="$ac_link_default" | |
2746 | case "(($ac_try" in | |
2747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2748 | *) ac_try_echo=$ac_try;; | |
2749 | esac | |
ec6a6fbe AK |
2750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2751 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2752 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2753 | ac_status=$? |
ec6a6fbe | 2754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2755 | (exit $ac_status); }; then |
7a197a62 AK |
2756 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2757 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2758 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2759 | # so that the user can short-circuit this test for compilers unknown to | |
2760 | # Autoconf. | |
25fbec5b | 2761 | for ac_file in $ac_files '' |
ad6254c5 AK |
2762 | do |
2763 | test -f "$ac_file" || continue | |
2764 | case $ac_file in | |
ec6a6fbe | 2765 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2766 | ;; |
ad6254c5 | 2767 | [ab].out ) |
8a2fc586 AK |
2768 | # We found the default executable, but exeext='' is most |
2769 | # certainly right. | |
2770 | break;; | |
ad6254c5 | 2771 | *.* ) |
7a197a62 AK |
2772 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2773 | then :; else | |
2774 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2775 | fi | |
2776 | # We set ac_cv_exeext here because the later test for it is not | |
2777 | # safe: cross compilers may not add the suffix if given an `-o' | |
2778 | # argument, so we may need to know it at that point already. | |
2779 | # Even if this section looks crufty: it has the advantage of | |
2780 | # actually working. | |
8a2fc586 | 2781 | break;; |
ad6254c5 | 2782 | * ) |
8a2fc586 | 2783 | break;; |
ad6254c5 AK |
2784 | esac |
2785 | done | |
7a197a62 AK |
2786 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2787 | ||
ad6254c5 | 2788 | else |
25fbec5b AK |
2789 | ac_file='' |
2790 | fi | |
2791 | ||
ec6a6fbe AK |
2792 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2793 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2794 | if test -z "$ac_file"; then |
ec6a6fbe | 2795 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2796 | sed 's/^/| /' conftest.$ac_ext >&5 |
2797 | ||
ec6a6fbe AK |
2798 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2799 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2800 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2801 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2802 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2803 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2804 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2805 | fi |
2806 | ||
2807 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2808 | |
7a197a62 | 2809 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2810 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2811 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2812 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2813 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2814 | # If not cross compiling, check that we can run a simple program. | |
2815 | if test "$cross_compiling" != yes; then | |
2816 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2817 | { (case "(($ac_try" in |
2818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2819 | *) ac_try_echo=$ac_try;; | |
2820 | esac | |
ec6a6fbe AK |
2821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2822 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2823 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2824 | ac_status=$? |
ec6a6fbe | 2825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2826 | (exit $ac_status); }; }; then |
2827 | cross_compiling=no | |
795ca3e5 | 2828 | else |
ad6254c5 AK |
2829 | if test "$cross_compiling" = maybe; then |
2830 | cross_compiling=yes | |
2831 | else | |
ec6a6fbe AK |
2832 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2833 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2834 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2835 | If you meant to cross compile, use \`--host'. |
2836 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2837 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2838 | If you meant to cross compile, use \`--host'. |
2839 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2840 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2841 | fi |
795ca3e5 | 2842 | fi |
80992638 | 2843 | fi |
ec6a6fbe AK |
2844 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2845 | $as_echo "yes" >&6; } | |
ad6254c5 | 2846 | |
ec6a6fbe | 2847 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2848 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2849 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2850 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2851 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2852 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2853 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2854 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2855 | |
ec6a6fbe AK |
2856 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2857 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2858 | if { (ac_try="$ac_link" |
2859 | case "(($ac_try" in | |
2860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2861 | *) ac_try_echo=$ac_try;; | |
2862 | esac | |
ec6a6fbe AK |
2863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2864 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2865 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2866 | ac_status=$? |
ec6a6fbe | 2867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2868 | (exit $ac_status); }; then |
2869 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2870 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2871 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2872 | # `rm'. | |
2873 | for ac_file in conftest.exe conftest conftest.*; do | |
2874 | test -f "$ac_file" || continue | |
2875 | case $ac_file in | |
ec6a6fbe | 2876 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2877 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2878 | break;; |
ad6254c5 AK |
2879 | * ) break;; |
2880 | esac | |
2881 | done | |
80992638 | 2882 | else |
ec6a6fbe AK |
2883 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2884 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2885 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2886 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2887 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2888 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2889 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2890 | fi |
2891 | ||
2892 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2894 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2895 | |
2896 | rm -f conftest.$ac_ext | |
2897 | EXEEXT=$ac_cv_exeext | |
2898 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2899 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2900 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2901 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2902 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2903 | else |
ad6254c5 | 2904 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2905 | /* confdefs.h. */ |
2906 | _ACEOF | |
2907 | cat confdefs.h >>conftest.$ac_ext | |
2908 | cat >>conftest.$ac_ext <<_ACEOF | |
2909 | /* end confdefs.h. */ | |
2910 | ||
2911 | int | |
2912 | main () | |
2913 | { | |
2914 | ||
2915 | ; | |
2916 | return 0; | |
2917 | } | |
2918 | _ACEOF | |
2919 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2920 | if { (ac_try="$ac_compile" |
2921 | case "(($ac_try" in | |
2922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2923 | *) ac_try_echo=$ac_try;; | |
2924 | esac | |
ec6a6fbe AK |
2925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2926 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2927 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2928 | ac_status=$? |
ec6a6fbe | 2929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2930 | (exit $ac_status); }; then |
7a197a62 AK |
2931 | for ac_file in conftest.o conftest.obj conftest.*; do |
2932 | test -f "$ac_file" || continue; | |
ad6254c5 | 2933 | case $ac_file in |
ec6a6fbe | 2934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2935 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2936 | break;; | |
2937 | esac | |
2938 | done | |
2939 | else | |
ec6a6fbe | 2940 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2941 | sed 's/^/| /' conftest.$ac_ext >&5 |
2942 | ||
ec6a6fbe AK |
2943 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2944 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2945 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2946 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2947 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2948 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2949 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2950 | fi |
2951 | ||
2952 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2953 | fi | |
ec6a6fbe AK |
2954 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2955 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2956 | OBJEXT=$ac_cv_objext |
2957 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2958 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2959 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2960 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2961 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2962 | else |
2963 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2964 | /* confdefs.h. */ |
2965 | _ACEOF | |
2966 | cat confdefs.h >>conftest.$ac_ext | |
2967 | cat >>conftest.$ac_ext <<_ACEOF | |
2968 | /* end confdefs.h. */ | |
2969 | ||
2970 | int | |
2971 | main () | |
2972 | { | |
2973 | #ifndef __GNUC__ | |
2974 | choke me | |
2975 | #endif | |
80992638 | 2976 | |
ad6254c5 AK |
2977 | ; |
2978 | return 0; | |
2979 | } | |
2980 | _ACEOF | |
2981 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2982 | if { (ac_try="$ac_compile" |
2983 | case "(($ac_try" in | |
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2985 | *) ac_try_echo=$ac_try;; | |
2986 | esac | |
ec6a6fbe AK |
2987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2988 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2989 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2990 | ac_status=$? |
8a2fc586 AK |
2991 | grep -v '^ *+' conftest.er1 >conftest.err |
2992 | rm -f conftest.er1 | |
2993 | cat conftest.err >&5 | |
ec6a6fbe | 2994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2995 | (exit $ac_status); } && { |
2996 | test -z "$ac_c_werror_flag" || | |
2997 | test ! -s conftest.err | |
2998 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2999 | ac_compiler_gnu=yes |
80992638 | 3000 | else |
ec6a6fbe | 3001 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
3003 | ||
7a197a62 | 3004 | ac_compiler_gnu=no |
8106cdd5 | 3005 | fi |
7a197a62 AK |
3006 | |
3007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3008 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3009 | |
ad6254c5 | 3010 | fi |
ec6a6fbe AK |
3011 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3012 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3013 | if test $ac_compiler_gnu = yes; then | |
3014 | GCC=yes | |
3015 | else | |
3016 | GCC= | |
3017 | fi | |
ad6254c5 AK |
3018 | ac_test_CFLAGS=${CFLAGS+set} |
3019 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3020 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3021 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3022 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3023 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3024 | else |
7a197a62 AK |
3025 | ac_save_c_werror_flag=$ac_c_werror_flag |
3026 | ac_c_werror_flag=yes | |
3027 | ac_cv_prog_cc_g=no | |
3028 | CFLAGS="-g" | |
3029 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3030 | /* confdefs.h. */ |
3031 | _ACEOF | |
3032 | cat confdefs.h >>conftest.$ac_ext | |
3033 | cat >>conftest.$ac_ext <<_ACEOF | |
3034 | /* end confdefs.h. */ | |
3035 | ||
3036 | int | |
3037 | main () | |
3038 | { | |
3039 | ||
3040 | ; | |
3041 | return 0; | |
3042 | } | |
3043 | _ACEOF | |
3044 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3045 | if { (ac_try="$ac_compile" |
3046 | case "(($ac_try" in | |
3047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3048 | *) ac_try_echo=$ac_try;; | |
3049 | esac | |
ec6a6fbe AK |
3050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3051 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3052 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3053 | ac_status=$? |
8a2fc586 AK |
3054 | grep -v '^ *+' conftest.er1 >conftest.err |
3055 | rm -f conftest.er1 | |
3056 | cat conftest.err >&5 | |
ec6a6fbe | 3057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3058 | (exit $ac_status); } && { |
3059 | test -z "$ac_c_werror_flag" || | |
3060 | test ! -s conftest.err | |
3061 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3062 | ac_cv_prog_cc_g=yes |
3063 | else | |
ec6a6fbe | 3064 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3065 | sed 's/^/| /' conftest.$ac_ext >&5 |
3066 | ||
3067 | CFLAGS="" | |
3068 | cat >conftest.$ac_ext <<_ACEOF | |
3069 | /* confdefs.h. */ | |
3070 | _ACEOF | |
3071 | cat confdefs.h >>conftest.$ac_ext | |
3072 | cat >>conftest.$ac_ext <<_ACEOF | |
3073 | /* end confdefs.h. */ | |
3074 | ||
3075 | int | |
3076 | main () | |
3077 | { | |
3078 | ||
3079 | ; | |
3080 | return 0; | |
3081 | } | |
3082 | _ACEOF | |
3083 | rm -f conftest.$ac_objext | |
3084 | if { (ac_try="$ac_compile" | |
3085 | case "(($ac_try" in | |
3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3087 | *) ac_try_echo=$ac_try;; | |
3088 | esac | |
ec6a6fbe AK |
3089 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3090 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3091 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3092 | ac_status=$? |
7a197a62 AK |
3093 | grep -v '^ *+' conftest.er1 >conftest.err |
3094 | rm -f conftest.er1 | |
3095 | cat conftest.err >&5 | |
ec6a6fbe | 3096 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3097 | (exit $ac_status); } && { |
3098 | test -z "$ac_c_werror_flag" || | |
3099 | test ! -s conftest.err | |
3100 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3101 | : |
3102 | else | |
ec6a6fbe | 3103 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3104 | sed 's/^/| /' conftest.$ac_ext >&5 |
3105 | ||
3106 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3107 | CFLAGS="-g" | |
3108 | cat >conftest.$ac_ext <<_ACEOF | |
3109 | /* confdefs.h. */ | |
3110 | _ACEOF | |
3111 | cat confdefs.h >>conftest.$ac_ext | |
3112 | cat >>conftest.$ac_ext <<_ACEOF | |
3113 | /* end confdefs.h. */ | |
3114 | ||
3115 | int | |
3116 | main () | |
3117 | { | |
3118 | ||
3119 | ; | |
3120 | return 0; | |
3121 | } | |
3122 | _ACEOF | |
3123 | rm -f conftest.$ac_objext | |
3124 | if { (ac_try="$ac_compile" | |
3125 | case "(($ac_try" in | |
3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3127 | *) ac_try_echo=$ac_try;; | |
3128 | esac | |
ec6a6fbe AK |
3129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3130 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3131 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3132 | ac_status=$? |
7a197a62 AK |
3133 | grep -v '^ *+' conftest.er1 >conftest.err |
3134 | rm -f conftest.er1 | |
3135 | cat conftest.err >&5 | |
ec6a6fbe | 3136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3137 | (exit $ac_status); } && { |
3138 | test -z "$ac_c_werror_flag" || | |
3139 | test ! -s conftest.err | |
3140 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3141 | ac_cv_prog_cc_g=yes |
3142 | else | |
ec6a6fbe | 3143 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3145 | |
7a197a62 AK |
3146 | |
3147 | fi | |
3148 | ||
3149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3150 | fi | |
3151 | ||
3152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3153 | fi |
7a197a62 AK |
3154 | |
3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3156 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3157 | fi |
ec6a6fbe AK |
3158 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3159 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3160 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3161 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3162 | elif test $ac_cv_prog_cc_g = yes; then |
3163 | if test "$GCC" = yes; then | |
3164 | CFLAGS="-g -O2" | |
3165 | else | |
3166 | CFLAGS="-g" | |
3167 | fi | |
3168 | else | |
3169 | if test "$GCC" = yes; then | |
3170 | CFLAGS="-O2" | |
3171 | else | |
3172 | CFLAGS= | |
3173 | fi | |
3174 | fi | |
ec6a6fbe AK |
3175 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3176 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3177 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3178 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3179 | else |
7a197a62 | 3180 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3181 | ac_save_CC=$CC |
3182 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3183 | /* confdefs.h. */ |
3184 | _ACEOF | |
3185 | cat confdefs.h >>conftest.$ac_ext | |
3186 | cat >>conftest.$ac_ext <<_ACEOF | |
3187 | /* end confdefs.h. */ | |
3188 | #include <stdarg.h> | |
3189 | #include <stdio.h> | |
3190 | #include <sys/types.h> | |
3191 | #include <sys/stat.h> | |
3192 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3193 | struct buf { int x; }; | |
3194 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3195 | static char *e (p, i) | |
3196 | char **p; | |
3197 | int i; | |
3198 | { | |
3199 | return p[i]; | |
3200 | } | |
3201 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3202 | { | |
3203 | char *s; | |
3204 | va_list v; | |
3205 | va_start (v,p); | |
3206 | s = g (p, va_arg (v,int)); | |
3207 | va_end (v); | |
3208 | return s; | |
3209 | } | |
8a2fc586 AK |
3210 | |
3211 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3212 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3213 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3214 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3215 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3216 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3217 | that's true only with -std. */ |
8a2fc586 AK |
3218 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3219 | ||
7a197a62 AK |
3220 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3221 | inside strings and character constants. */ | |
3222 | #define FOO(x) 'x' | |
3223 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3224 | ||
ad6254c5 AK |
3225 | int test (int i, double x); |
3226 | struct s1 {int (*f) (int a);}; | |
3227 | struct s2 {int (*f) (double a);}; | |
3228 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3229 | int argc; | |
3230 | char **argv; | |
3231 | int | |
3232 | main () | |
3233 | { | |
3234 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3235 | ; | |
3236 | return 0; | |
3237 | } | |
3238 | _ACEOF | |
7a197a62 AK |
3239 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3240 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3241 | do |
3242 | CC="$ac_save_CC $ac_arg" | |
3243 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3244 | if { (ac_try="$ac_compile" |
3245 | case "(($ac_try" in | |
3246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3247 | *) ac_try_echo=$ac_try;; | |
3248 | esac | |
ec6a6fbe AK |
3249 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3250 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3251 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3252 | ac_status=$? |
8a2fc586 AK |
3253 | grep -v '^ *+' conftest.er1 >conftest.err |
3254 | rm -f conftest.er1 | |
3255 | cat conftest.err >&5 | |
ec6a6fbe | 3256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3257 | (exit $ac_status); } && { |
3258 | test -z "$ac_c_werror_flag" || | |
3259 | test ! -s conftest.err | |
3260 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3261 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3262 | else |
ec6a6fbe | 3263 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3264 | sed 's/^/| /' conftest.$ac_ext >&5 |
3265 | ||
7a197a62 | 3266 | |
ad6254c5 | 3267 | fi |
7a197a62 AK |
3268 | |
3269 | rm -f core conftest.err conftest.$ac_objext | |
3270 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3271 | done |
7a197a62 | 3272 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3273 | CC=$ac_save_CC |
3274 | ||
3275 | fi | |
7a197a62 AK |
3276 | # AC_CACHE_VAL |
3277 | case "x$ac_cv_prog_cc_c89" in | |
3278 | x) | |
ec6a6fbe AK |
3279 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3280 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3281 | xno) |
ec6a6fbe AK |
3282 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3283 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3284 | *) |
7a197a62 | 3285 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3286 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3287 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3288 | esac |
3289 | ||
ad6254c5 | 3290 | |
ad6254c5 AK |
3291 | ac_ext=c |
3292 | ac_cpp='$CPP $CPPFLAGS' | |
3293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3296 | |
d0191583 JM |
3297 | |
3298 | ||
3299 | ac_ext=c | |
3300 | ac_cpp='$CPP $CPPFLAGS' | |
3301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3304 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3305 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3306 | # On Suns, sometimes $CPP names a directory. |
3307 | if test -n "$CPP" && test -d "$CPP"; then | |
3308 | CPP= | |
3309 | fi | |
3310 | if test -z "$CPP"; then | |
3311 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3312 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3313 | else |
d0191583 JM |
3314 | # Double quotes because CPP needs to be expanded |
3315 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3316 | do | |
3317 | ac_preproc_ok=false | |
3318 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3319 | do |
d0191583 JM |
3320 | # Use a header file that comes with gcc, so configuring glibc |
3321 | # with a fresh cross-compiler works. | |
3322 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3323 | # <limits.h> exists even on freestanding compilers. | |
3324 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3325 | # not just through cpp. "Syntax error" is here to catch this case. | |
3326 | cat >conftest.$ac_ext <<_ACEOF | |
3327 | /* confdefs.h. */ | |
3328 | _ACEOF | |
3329 | cat confdefs.h >>conftest.$ac_ext | |
3330 | cat >>conftest.$ac_ext <<_ACEOF | |
3331 | /* end confdefs.h. */ | |
3332 | #ifdef __STDC__ | |
3333 | # include <limits.h> | |
3334 | #else | |
3335 | # include <assert.h> | |
3336 | #endif | |
3337 | Syntax error | |
3338 | _ACEOF | |
3339 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3340 | case "(($ac_try" in | |
3341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3342 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3343 | esac |
ec6a6fbe AK |
3344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3345 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3346 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3347 | ac_status=$? | |
3348 | grep -v '^ *+' conftest.er1 >conftest.err | |
3349 | rm -f conftest.er1 | |
3350 | cat conftest.err >&5 | |
ec6a6fbe | 3351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3352 | (exit $ac_status); } >/dev/null && { |
3353 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3354 | test ! -s conftest.err | |
3355 | }; then | |
3356 | : | |
3357 | else | |
ec6a6fbe | 3358 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3359 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3360 | |
d0191583 JM |
3361 | # Broken: fails on valid input. |
3362 | continue | |
795ca3e5 | 3363 | fi |
795ca3e5 | 3364 | |
d0191583 | 3365 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3366 | |
d0191583 JM |
3367 | # OK, works on sane cases. Now check whether nonexistent headers |
3368 | # can be detected and how. | |
3369 | cat >conftest.$ac_ext <<_ACEOF | |
3370 | /* confdefs.h. */ | |
3371 | _ACEOF | |
3372 | cat confdefs.h >>conftest.$ac_ext | |
3373 | cat >>conftest.$ac_ext <<_ACEOF | |
3374 | /* end confdefs.h. */ | |
3375 | #include <ac_nonexistent.h> | |
3376 | _ACEOF | |
3377 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3378 | case "(($ac_try" in | |
3379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3380 | *) ac_try_echo=$ac_try;; | |
3381 | esac | |
ec6a6fbe AK |
3382 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3383 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3384 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3385 | ac_status=$? | |
3386 | grep -v '^ *+' conftest.er1 >conftest.err | |
3387 | rm -f conftest.er1 | |
3388 | cat conftest.err >&5 | |
ec6a6fbe | 3389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3390 | (exit $ac_status); } >/dev/null && { |
3391 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3392 | test ! -s conftest.err | |
3393 | }; then | |
3394 | # Broken: success on invalid input. | |
3395 | continue | |
3396 | else | |
ec6a6fbe | 3397 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3399 | |
d0191583 JM |
3400 | # Passes both tests. |
3401 | ac_preproc_ok=: | |
3402 | break | |
3403 | fi | |
795ca3e5 | 3404 | |
d0191583 JM |
3405 | rm -f conftest.err conftest.$ac_ext |
3406 | ||
3407 | done | |
3408 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3409 | rm -f conftest.err conftest.$ac_ext | |
3410 | if $ac_preproc_ok; then | |
3411 | break | |
795ca3e5 AK |
3412 | fi |
3413 | ||
d0191583 JM |
3414 | done |
3415 | ac_cv_prog_CPP=$CPP | |
3416 | ||
3417 | fi | |
3418 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3419 | else |
d0191583 JM |
3420 | ac_cv_prog_CPP=$CPP |
3421 | fi | |
ec6a6fbe AK |
3422 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3423 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3424 | ac_preproc_ok=false |
3425 | for ac_c_preproc_warn_flag in '' yes | |
3426 | do | |
3427 | # Use a header file that comes with gcc, so configuring glibc | |
3428 | # with a fresh cross-compiler works. | |
3429 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3430 | # <limits.h> exists even on freestanding compilers. | |
3431 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3432 | # not just through cpp. "Syntax error" is here to catch this case. | |
3433 | cat >conftest.$ac_ext <<_ACEOF | |
3434 | /* confdefs.h. */ | |
ad6254c5 | 3435 | _ACEOF |
d0191583 JM |
3436 | cat confdefs.h >>conftest.$ac_ext |
3437 | cat >>conftest.$ac_ext <<_ACEOF | |
3438 | /* end confdefs.h. */ | |
3439 | #ifdef __STDC__ | |
3440 | # include <limits.h> | |
3441 | #else | |
3442 | # include <assert.h> | |
3443 | #endif | |
3444 | Syntax error | |
3445 | _ACEOF | |
3446 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3447 | case "(($ac_try" in | |
3448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3449 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3450 | esac |
ec6a6fbe AK |
3451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3452 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3453 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3454 | ac_status=$? | |
3455 | grep -v '^ *+' conftest.er1 >conftest.err | |
3456 | rm -f conftest.er1 | |
3457 | cat conftest.err >&5 | |
ec6a6fbe | 3458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3459 | (exit $ac_status); } >/dev/null && { |
3460 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3461 | test ! -s conftest.err | |
3462 | }; then | |
3463 | : | |
795ca3e5 | 3464 | else |
ec6a6fbe | 3465 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3466 | sed 's/^/| /' conftest.$ac_ext >&5 |
3467 | ||
3468 | # Broken: fails on valid input. | |
3469 | continue | |
795ca3e5 AK |
3470 | fi |
3471 | ||
d0191583 JM |
3472 | rm -f conftest.err conftest.$ac_ext |
3473 | ||
3474 | # OK, works on sane cases. Now check whether nonexistent headers | |
3475 | # can be detected and how. | |
3476 | cat >conftest.$ac_ext <<_ACEOF | |
3477 | /* confdefs.h. */ | |
3478 | _ACEOF | |
3479 | cat confdefs.h >>conftest.$ac_ext | |
3480 | cat >>conftest.$ac_ext <<_ACEOF | |
3481 | /* end confdefs.h. */ | |
3482 | #include <ac_nonexistent.h> | |
3483 | _ACEOF | |
3484 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3485 | case "(($ac_try" in | |
3486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3487 | *) ac_try_echo=$ac_try;; | |
3488 | esac | |
ec6a6fbe AK |
3489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3490 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3491 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3492 | ac_status=$? | |
3493 | grep -v '^ *+' conftest.er1 >conftest.err | |
3494 | rm -f conftest.er1 | |
3495 | cat conftest.err >&5 | |
ec6a6fbe | 3496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3497 | (exit $ac_status); } >/dev/null && { |
3498 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3499 | test ! -s conftest.err | |
3500 | }; then | |
3501 | # Broken: success on invalid input. | |
3502 | continue | |
795ca3e5 | 3503 | else |
ec6a6fbe | 3504 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3505 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3506 | |
d0191583 JM |
3507 | # Passes both tests. |
3508 | ac_preproc_ok=: | |
3509 | break | |
795ca3e5 | 3510 | fi |
d0191583 JM |
3511 | |
3512 | rm -f conftest.err conftest.$ac_ext | |
3513 | ||
3514 | done | |
3515 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3516 | rm -f conftest.err conftest.$ac_ext | |
3517 | if $ac_preproc_ok; then | |
3518 | : | |
8106cdd5 | 3519 | else |
ec6a6fbe AK |
3520 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3521 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3522 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3523 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3524 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3525 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3526 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3527 | fi |
3528 | ||
d0191583 JM |
3529 | ac_ext=c |
3530 | ac_cpp='$CPP $CPPFLAGS' | |
3531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3534 | ||
7a197a62 | 3535 | |
ec6a6fbe AK |
3536 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3537 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3538 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3539 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3540 | else |
ec6a6fbe | 3541 | if test -z "$GREP"; then |
d0191583 | 3542 | ac_path_GREP_found=false |
ec6a6fbe AK |
3543 | # Loop through the user's path and test for each of PROGNAME-LIST |
3544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3545 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3546 | do |
3547 | IFS=$as_save_IFS | |
3548 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3549 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3550 | for ac_exec_ext in '' $ac_executable_extensions; do |
3551 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3552 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3553 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3554 | # Check for GNU $ac_path_GREP |
3555 | case `"$ac_path_GREP" --version 2>&1` in | |
3556 | *GNU*) | |
3557 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3558 | *) | |
3559 | ac_count=0 | |
ec6a6fbe | 3560 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3561 | while : |
3562 | do | |
3563 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3564 | mv "conftest.tmp" "conftest.in" | |
3565 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3566 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3567 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3568 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3569 | ac_count=`expr $ac_count + 1` | |
3570 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3571 | # Best one so far, save it but keep looking for a better one | |
3572 | ac_cv_path_GREP="$ac_path_GREP" | |
3573 | ac_path_GREP_max=$ac_count | |
3574 | fi | |
3575 | # 10*(2^10) chars as input seems more than enough | |
3576 | test $ac_count -gt 10 && break | |
3577 | done | |
3578 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3579 | esac | |
3580 | ||
ec6a6fbe AK |
3581 | $ac_path_GREP_found && break 3 |
3582 | done | |
d0191583 | 3583 | done |
ad6254c5 | 3584 | done |
7a197a62 | 3585 | IFS=$as_save_IFS |
ec6a6fbe AK |
3586 | if test -z "$ac_cv_path_GREP"; then |
3587 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3588 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3589 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3590 | fi |
80992638 | 3591 | else |
d0191583 | 3592 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3593 | fi |
8106cdd5 | 3594 | |
80992638 | 3595 | fi |
ec6a6fbe AK |
3596 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3597 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3598 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3599 | |
d0191583 | 3600 | |
ec6a6fbe AK |
3601 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3602 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3603 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3604 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3605 | else |
d0191583 JM |
3606 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3607 | then ac_cv_path_EGREP="$GREP -E" | |
3608 | else | |
ec6a6fbe | 3609 | if test -z "$EGREP"; then |
d0191583 | 3610 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3611 | # Loop through the user's path and test for each of PROGNAME-LIST |
3612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3613 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3614 | do |
3615 | IFS=$as_save_IFS | |
3616 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3617 | for ac_prog in egrep; do |
ec6a6fbe AK |
3618 | for ac_exec_ext in '' $ac_executable_extensions; do |
3619 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3620 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3621 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3622 | # Check for GNU $ac_path_EGREP |
3623 | case `"$ac_path_EGREP" --version 2>&1` in | |
3624 | *GNU*) | |
3625 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3626 | *) | |
3627 | ac_count=0 | |
ec6a6fbe | 3628 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3629 | while : |
3630 | do | |
3631 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3632 | mv "conftest.tmp" "conftest.in" | |
3633 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3634 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3635 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3636 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3637 | ac_count=`expr $ac_count + 1` | |
3638 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3639 | # Best one so far, save it but keep looking for a better one | |
3640 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3641 | ac_path_EGREP_max=$ac_count | |
3642 | fi | |
3643 | # 10*(2^10) chars as input seems more than enough | |
3644 | test $ac_count -gt 10 && break | |
3645 | done | |
3646 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3647 | esac |
8a2fc586 | 3648 | |
ec6a6fbe AK |
3649 | $ac_path_EGREP_found && break 3 |
3650 | done | |
d0191583 | 3651 | done |
8a2fc586 | 3652 | done |
7a197a62 | 3653 | IFS=$as_save_IFS |
ec6a6fbe AK |
3654 | if test -z "$ac_cv_path_EGREP"; then |
3655 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3656 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3657 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3658 | fi |
d0191583 JM |
3659 | else |
3660 | ac_cv_path_EGREP=$EGREP | |
3661 | fi | |
ad6254c5 | 3662 | |
d0191583 JM |
3663 | fi |
3664 | fi | |
ec6a6fbe AK |
3665 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3666 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3667 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3668 | |
3669 | ||
d0191583 | 3670 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3671 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3672 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3673 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3674 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3675 | else |
d0191583 | 3676 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3677 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3678 | /* confdefs.h. */ |
3679 | _ACEOF | |
3680 | cat confdefs.h >>conftest.$ac_ext | |
3681 | cat >>conftest.$ac_ext <<_ACEOF | |
3682 | /* end confdefs.h. */ | |
d0191583 JM |
3683 | #include <sgtty.h> |
3684 | Autoconf TIOCGETP | |
ad6254c5 | 3685 | _ACEOF |
d0191583 JM |
3686 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3687 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3688 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3689 | else |
d0191583 | 3690 | ac_cv_prog_gcc_traditional=no |
80992638 | 3691 | fi |
d0191583 | 3692 | rm -f conftest* |
ad6254c5 | 3693 | |
8106cdd5 | 3694 | |
d0191583 JM |
3695 | if test $ac_cv_prog_gcc_traditional = no; then |
3696 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3697 | /* confdefs.h. */ |
3698 | _ACEOF | |
3699 | cat confdefs.h >>conftest.$ac_ext | |
3700 | cat >>conftest.$ac_ext <<_ACEOF | |
3701 | /* end confdefs.h. */ | |
d0191583 JM |
3702 | #include <termio.h> |
3703 | Autoconf TCGETA | |
ad6254c5 | 3704 | _ACEOF |
d0191583 JM |
3705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3706 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3707 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3708 | fi |
d0191583 | 3709 | rm -f conftest* |
795ca3e5 | 3710 | |
d0191583 | 3711 | fi |
795ca3e5 | 3712 | fi |
ec6a6fbe AK |
3713 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3714 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3715 | if test $ac_cv_prog_gcc_traditional = yes; then |
3716 | CC="$CC -traditional" | |
3717 | fi | |
795ca3e5 AK |
3718 | fi |
3719 | ||
d0191583 JM |
3720 | # Find a good install program. We prefer a C program (faster), |
3721 | # so one script is as good as another. But avoid the broken or | |
3722 | # incompatible versions: | |
3723 | # SysV /etc/install, /usr/sbin/install | |
3724 | # SunOS /usr/etc/install | |
3725 | # IRIX /sbin/install | |
3726 | # AIX /bin/install | |
3727 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3728 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3729 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3730 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3731 | # OS/2's system install, which has a completely different semantic | |
3732 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3733 | # Reject install programs that cannot install multiple files. |
3734 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3735 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3736 | if test -z "$INSTALL"; then |
3737 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3738 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3739 | else |
d0191583 JM |
3740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3741 | for as_dir in $PATH | |
3742 | do | |
3743 | IFS=$as_save_IFS | |
3744 | test -z "$as_dir" && as_dir=. | |
3745 | # Account for people who put trailing slashes in PATH elements. | |
3746 | case $as_dir/ in | |
3747 | ./ | .// | /cC/* | \ | |
3748 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3749 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3750 | /usr/ucb/* ) ;; | |
3751 | *) | |
3752 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3753 | # Don't use installbsd from OSF since it installs stuff as root | |
3754 | # by default. | |
3755 | for ac_prog in ginstall scoinst install; do | |
3756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3757 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3758 | if test $ac_prog = install && | |
3759 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3760 | # AIX install. It has an incompatible calling convention. | |
3761 | : | |
3762 | elif test $ac_prog = install && | |
3763 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3764 | # program-specific install script used by HP pwplus--don't use. | |
3765 | : | |
3766 | else | |
ec6a6fbe AK |
3767 | rm -rf conftest.one conftest.two conftest.dir |
3768 | echo one > conftest.one | |
3769 | echo two > conftest.two | |
3770 | mkdir conftest.dir | |
3771 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3772 | test -s conftest.one && test -s conftest.two && | |
3773 | test -s conftest.dir/conftest.one && | |
3774 | test -s conftest.dir/conftest.two | |
3775 | then | |
3776 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3777 | break 3 | |
3778 | fi | |
d0191583 JM |
3779 | fi |
3780 | fi | |
3781 | done | |
3782 | done | |
3783 | ;; | |
3784 | esac | |
ec6a6fbe | 3785 | |
d0191583 JM |
3786 | done |
3787 | IFS=$as_save_IFS | |
80992638 | 3788 | |
ec6a6fbe | 3789 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3790 | |
3791 | fi | |
3792 | if test "${ac_cv_path_install+set}" = set; then | |
3793 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3794 | else |
d0191583 JM |
3795 | # As a last resort, use the slow shell script. Don't cache a |
3796 | # value for INSTALL within a source directory, because that will | |
3797 | # break other packages using the cache if that directory is | |
3798 | # removed, or if the value is a relative name. | |
3799 | INSTALL=$ac_install_sh | |
7a197a62 | 3800 | fi |
d0191583 | 3801 | fi |
ec6a6fbe AK |
3802 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3803 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3804 | |
d0191583 JM |
3805 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3806 | # It thinks the first close brace ends the variable substitution. | |
3807 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3808 | |
d0191583 | 3809 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3810 | |
d0191583 JM |
3811 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3812 | ||
ec6a6fbe AK |
3813 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3814 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3815 | LN_S=$as_ln_s |
3816 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3817 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3818 | $as_echo "yes" >&6; } | |
d0191583 | 3819 | else |
ec6a6fbe AK |
3820 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3821 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3822 | fi |
d0191583 | 3823 | |
ec6a6fbe AK |
3824 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3825 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3826 | set x ${MAKE-make} | |
3827 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3828 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3829 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3830 | else |
d0191583 JM |
3831 | cat >conftest.make <<\_ACEOF |
3832 | SHELL = /bin/sh | |
3833 | all: | |
3834 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3835 | _ACEOF | |
3836 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3837 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3838 | *@@@%%%=?*=@@@%%%*) | |
3839 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3840 | *) | |
3841 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3842 | esac | |
3843 | rm -f conftest.make | |
ad6254c5 | 3844 | fi |
d0191583 | 3845 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3846 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3847 | $as_echo "yes" >&6; } | |
d0191583 JM |
3848 | SET_MAKE= |
3849 | else | |
ec6a6fbe AK |
3850 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3851 | $as_echo "no" >&6; } | |
d0191583 | 3852 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3853 | fi |
8106cdd5 | 3854 | |
ec6a6fbe AK |
3855 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3856 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3857 | if test -z "$MKDIR_P"; then |
3858 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3859 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3860 | else |
3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3862 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3863 | do | |
3864 | IFS=$as_save_IFS | |
3865 | test -z "$as_dir" && as_dir=. | |
3866 | for ac_prog in mkdir gmkdir; do | |
3867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3868 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3869 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3870 | 'mkdir (GNU coreutils) '* | \ | |
3871 | 'mkdir (coreutils) '* | \ | |
3872 | 'mkdir (fileutils) '4.1*) | |
3873 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3874 | break 3;; | |
3875 | esac | |
3876 | done | |
3877 | done | |
3878 | done | |
3879 | IFS=$as_save_IFS | |
3880 | ||
3881 | fi | |
3882 | ||
3883 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3884 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3885 | else | |
3886 | # As a last resort, use the slow shell script. Don't cache a | |
3887 | # value for MKDIR_P within a source directory, because that will | |
3888 | # break other packages using the cache if that directory is | |
3889 | # removed, or if the value is a relative name. | |
3890 | test -d ./--version && rmdir ./--version | |
3891 | MKDIR_P="$ac_install_sh -d" | |
3892 | fi | |
3893 | fi | |
ec6a6fbe AK |
3894 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3895 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3896 | |
d0191583 JM |
3897 | if test -n "$ac_tool_prefix"; then |
3898 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3899 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3900 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3901 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3902 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3903 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3904 | else |
3905 | if test -n "$RANLIB"; then | |
3906 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3907 | else | |
3908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3909 | for as_dir in $PATH | |
3910 | do | |
3911 | IFS=$as_save_IFS | |
3912 | test -z "$as_dir" && as_dir=. | |
3913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3915 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3916 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3917 | break 2 |
3918 | fi | |
3919 | done | |
3920 | done | |
3921 | IFS=$as_save_IFS | |
8106cdd5 | 3922 | |
795ca3e5 | 3923 | fi |
d0191583 JM |
3924 | fi |
3925 | RANLIB=$ac_cv_prog_RANLIB | |
3926 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3927 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3928 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3929 | else |
ec6a6fbe AK |
3930 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3931 | $as_echo "no" >&6; } | |
d0191583 JM |
3932 | fi |
3933 | ||
8106cdd5 | 3934 | |
ad6254c5 | 3935 | fi |
d0191583 JM |
3936 | if test -z "$ac_cv_prog_RANLIB"; then |
3937 | ac_ct_RANLIB=$RANLIB | |
3938 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3939 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3940 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3941 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3942 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3943 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3944 | else |
d0191583 JM |
3945 | if test -n "$ac_ct_RANLIB"; then |
3946 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3947 | else | |
3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3949 | for as_dir in $PATH | |
8106cdd5 | 3950 | do |
d0191583 JM |
3951 | IFS=$as_save_IFS |
3952 | test -z "$as_dir" && as_dir=. | |
3953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3955 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3956 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3957 | break 2 |
3958 | fi | |
3959 | done | |
3960 | done | |
3961 | IFS=$as_save_IFS | |
3962 | ||
3963 | fi | |
3964 | fi | |
3965 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3966 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3967 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3968 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3969 | else |
ec6a6fbe AK |
3970 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3971 | $as_echo "no" >&6; } | |
d0191583 | 3972 | fi |
ad6254c5 | 3973 | |
d0191583 JM |
3974 | if test "x$ac_ct_RANLIB" = x; then |
3975 | RANLIB=":" | |
3976 | else | |
3977 | case $cross_compiling:$ac_tool_warned in | |
3978 | yes:) | |
ec6a6fbe AK |
3979 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3980 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3981 | ac_tool_warned=yes ;; |
3982 | esac | |
3983 | RANLIB=$ac_ct_RANLIB | |
3984 | fi | |
3985 | else | |
3986 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3987 | fi |
7a197a62 | 3988 | |
d0191583 JM |
3989 | # Extract the first word of "cflow", so it can be a program name with args. |
3990 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3991 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3992 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3993 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3994 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3995 | else |
3996 | case $CFLOW_CMD in | |
3997 | [\\/]* | ?:[\\/]*) | |
3998 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3999 | ;; | |
4000 | *) | |
4001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4002 | for as_dir in $PATH | |
4003 | do | |
4004 | IFS=$as_save_IFS | |
4005 | test -z "$as_dir" && as_dir=. | |
4006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4008 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4009 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4010 | break 2 |
4011 | fi | |
4012 | done | |
4013 | done | |
4014 | IFS=$as_save_IFS | |
ad6254c5 | 4015 | |
d0191583 | 4016 | ;; |
7a197a62 | 4017 | esac |
d0191583 JM |
4018 | fi |
4019 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4020 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4021 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4022 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4023 | else |
ec6a6fbe AK |
4024 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4025 | $as_echo "no" >&6; } | |
795ca3e5 | 4026 | fi |
7a197a62 | 4027 | |
ad6254c5 | 4028 | |
d0191583 JM |
4029 | # Extract the first word of "cscope", so it can be a program name with args. |
4030 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4031 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4032 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4033 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4034 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4035 | else |
4036 | case $CSCOPE_CMD in | |
4037 | [\\/]* | ?:[\\/]*) | |
4038 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4039 | ;; | |
4040 | *) | |
4041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4042 | for as_dir in $PATH | |
4043 | do | |
4044 | IFS=$as_save_IFS | |
4045 | test -z "$as_dir" && as_dir=. | |
4046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4048 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4049 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4050 | break 2 |
4051 | fi | |
795ca3e5 | 4052 | done |
d0191583 JM |
4053 | done |
4054 | IFS=$as_save_IFS | |
795ca3e5 | 4055 | |
d0191583 JM |
4056 | ;; |
4057 | esac | |
ad6254c5 | 4058 | fi |
d0191583 JM |
4059 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4060 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4061 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4062 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4063 | else |
ec6a6fbe AK |
4064 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4065 | $as_echo "no" >&6; } | |
795ca3e5 | 4066 | fi |
ad6254c5 | 4067 | |
7a197a62 | 4068 | |
ad6254c5 | 4069 | |
d0191583 JM |
4070 | ################################################################################ |
4071 | ||
4072 | ||
4073 | ||
4074 | ||
4075 | ||
4076 | ac_header_dirent=no | |
4077 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4078 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4079 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4080 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4082 | $as_echo_n "(cached) " >&6 |
d0191583 | 4083 | else |
ad6254c5 | 4084 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4085 | /* confdefs.h. */ |
4086 | _ACEOF | |
4087 | cat confdefs.h >>conftest.$ac_ext | |
4088 | cat >>conftest.$ac_ext <<_ACEOF | |
4089 | /* end confdefs.h. */ | |
d0191583 JM |
4090 | #include <sys/types.h> |
4091 | #include <$ac_hdr> | |
4092 | ||
4093 | int | |
4094 | main () | |
4095 | { | |
4096 | if ((DIR *) 0) | |
4097 | return 0; | |
4098 | ; | |
4099 | return 0; | |
4100 | } | |
ad6254c5 | 4101 | _ACEOF |
d0191583 JM |
4102 | rm -f conftest.$ac_objext |
4103 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4104 | case "(($ac_try" in |
4105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4106 | *) ac_try_echo=$ac_try;; | |
4107 | esac | |
ec6a6fbe AK |
4108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4109 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4110 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4111 | ac_status=$? |
4112 | grep -v '^ *+' conftest.er1 >conftest.err | |
4113 | rm -f conftest.er1 | |
4114 | cat conftest.err >&5 | |
ec6a6fbe | 4115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4116 | (exit $ac_status); } && { |
4117 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4118 | test ! -s conftest.err |
d0191583 JM |
4119 | } && test -s conftest.$ac_objext; then |
4120 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4121 | else |
ec6a6fbe | 4122 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4123 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4124 | |
d0191583 | 4125 | eval "$as_ac_Header=no" |
795ca3e5 | 4126 | fi |
7a197a62 | 4127 | |
d0191583 | 4128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4129 | fi |
ec6a6fbe AK |
4130 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4131 | $as_echo "$as_val"'` | |
4132 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4133 | $as_echo "$ac_res" >&6; } | |
4134 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4135 | $as_echo "$as_val"'` | |
4136 | if test "x$as_val" = x""yes; then | |
d0191583 | 4137 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4138 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4139 | _ACEOF |
795ca3e5 | 4140 | |
d0191583 JM |
4141 | ac_header_dirent=$ac_hdr; break |
4142 | fi | |
ad6254c5 | 4143 | |
d0191583 JM |
4144 | done |
4145 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4146 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4147 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4148 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4149 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4150 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4151 | else |
d0191583 JM |
4152 | ac_func_search_save_LIBS=$LIBS |
4153 | cat >conftest.$ac_ext <<_ACEOF | |
4154 | /* confdefs.h. */ | |
4155 | _ACEOF | |
4156 | cat confdefs.h >>conftest.$ac_ext | |
4157 | cat >>conftest.$ac_ext <<_ACEOF | |
4158 | /* end confdefs.h. */ | |
ad6254c5 | 4159 | |
d0191583 JM |
4160 | /* Override any GCC internal prototype to avoid an error. |
4161 | Use char because int might match the return type of a GCC | |
4162 | builtin and then its argument prototype would still apply. */ | |
4163 | #ifdef __cplusplus | |
4164 | extern "C" | |
4165 | #endif | |
4166 | char opendir (); | |
4167 | int | |
4168 | main () | |
4169 | { | |
4170 | return opendir (); | |
4171 | ; | |
4172 | return 0; | |
4173 | } | |
4174 | _ACEOF | |
4175 | for ac_lib in '' dir; do | |
4176 | if test -z "$ac_lib"; then | |
4177 | ac_res="none required" | |
4178 | else | |
4179 | ac_res=-l$ac_lib | |
4180 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4181 | fi | |
4182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4183 | if { (ac_try="$ac_link" | |
4184 | case "(($ac_try" in | |
4185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4186 | *) ac_try_echo=$ac_try;; | |
4187 | esac | |
ec6a6fbe AK |
4188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4189 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4190 | (eval "$ac_link") 2>conftest.er1 |
4191 | ac_status=$? | |
4192 | grep -v '^ *+' conftest.er1 >conftest.err | |
4193 | rm -f conftest.er1 | |
4194 | cat conftest.err >&5 | |
ec6a6fbe | 4195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4196 | (exit $ac_status); } && { |
4197 | test -z "$ac_c_werror_flag" || | |
4198 | test ! -s conftest.err | |
ec6a6fbe AK |
4199 | } && test -s conftest$ac_exeext && { |
4200 | test "$cross_compiling" = yes || | |
4201 | $as_test_x conftest$ac_exeext | |
4202 | }; then | |
d0191583 JM |
4203 | ac_cv_search_opendir=$ac_res |
4204 | else | |
ec6a6fbe | 4205 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4206 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4207 | |
ad6254c5 | 4208 | |
795ca3e5 | 4209 | fi |
ad6254c5 | 4210 | |
ec6a6fbe | 4211 | rm -rf conftest.dSYM |
d0191583 JM |
4212 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4213 | conftest$ac_exeext | |
4214 | if test "${ac_cv_search_opendir+set}" = set; then | |
4215 | break | |
7a197a62 | 4216 | fi |
d0191583 JM |
4217 | done |
4218 | if test "${ac_cv_search_opendir+set}" = set; then | |
4219 | : | |
7a197a62 | 4220 | else |
d0191583 | 4221 | ac_cv_search_opendir=no |
7a197a62 | 4222 | fi |
d0191583 JM |
4223 | rm conftest.$ac_ext |
4224 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4225 | fi |
ec6a6fbe AK |
4226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4227 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4228 | ac_res=$ac_cv_search_opendir |
4229 | if test "$ac_res" != no; then | |
4230 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4231 | |
d0191583 | 4232 | fi |
7a197a62 | 4233 | |
7a197a62 | 4234 | else |
ec6a6fbe AK |
4235 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4236 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4237 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4238 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4239 | else |
d0191583 JM |
4240 | ac_func_search_save_LIBS=$LIBS |
4241 | cat >conftest.$ac_ext <<_ACEOF | |
4242 | /* confdefs.h. */ | |
4243 | _ACEOF | |
4244 | cat confdefs.h >>conftest.$ac_ext | |
4245 | cat >>conftest.$ac_ext <<_ACEOF | |
4246 | /* end confdefs.h. */ | |
7a197a62 | 4247 | |
d0191583 JM |
4248 | /* Override any GCC internal prototype to avoid an error. |
4249 | Use char because int might match the return type of a GCC | |
4250 | builtin and then its argument prototype would still apply. */ | |
4251 | #ifdef __cplusplus | |
4252 | extern "C" | |
4253 | #endif | |
4254 | char opendir (); | |
4255 | int | |
4256 | main () | |
4257 | { | |
4258 | return opendir (); | |
4259 | ; | |
4260 | return 0; | |
4261 | } | |
4262 | _ACEOF | |
4263 | for ac_lib in '' x; do | |
4264 | if test -z "$ac_lib"; then | |
4265 | ac_res="none required" | |
4266 | else | |
4267 | ac_res=-l$ac_lib | |
4268 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4269 | fi | |
4270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4271 | if { (ac_try="$ac_link" | |
4272 | case "(($ac_try" in | |
4273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4274 | *) ac_try_echo=$ac_try;; | |
4275 | esac | |
ec6a6fbe AK |
4276 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4277 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4278 | (eval "$ac_link") 2>conftest.er1 |
4279 | ac_status=$? | |
4280 | grep -v '^ *+' conftest.er1 >conftest.err | |
4281 | rm -f conftest.er1 | |
4282 | cat conftest.err >&5 | |
ec6a6fbe | 4283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4284 | (exit $ac_status); } && { |
4285 | test -z "$ac_c_werror_flag" || | |
4286 | test ! -s conftest.err | |
ec6a6fbe AK |
4287 | } && test -s conftest$ac_exeext && { |
4288 | test "$cross_compiling" = yes || | |
4289 | $as_test_x conftest$ac_exeext | |
4290 | }; then | |
d0191583 JM |
4291 | ac_cv_search_opendir=$ac_res |
4292 | else | |
ec6a6fbe | 4293 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4294 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4295 | |
4296 | ||
4297 | fi | |
4298 | ||
ec6a6fbe | 4299 | rm -rf conftest.dSYM |
d0191583 JM |
4300 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4301 | conftest$ac_exeext | |
4302 | if test "${ac_cv_search_opendir+set}" = set; then | |
4303 | break | |
7a197a62 | 4304 | fi |
d0191583 JM |
4305 | done |
4306 | if test "${ac_cv_search_opendir+set}" = set; then | |
4307 | : | |
7a197a62 | 4308 | else |
d0191583 | 4309 | ac_cv_search_opendir=no |
7a197a62 | 4310 | fi |
d0191583 JM |
4311 | rm conftest.$ac_ext |
4312 | LIBS=$ac_func_search_save_LIBS | |
4313 | fi | |
ec6a6fbe AK |
4314 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4315 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4316 | ac_res=$ac_cv_search_opendir |
4317 | if test "$ac_res" != no; then | |
4318 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4319 | |
7a197a62 | 4320 | fi |
7a197a62 | 4321 | |
d0191583 | 4322 | fi |
7a197a62 | 4323 | |
ec6a6fbe AK |
4324 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4325 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4326 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4327 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4328 | else |
4329 | cat >conftest.$ac_ext <<_ACEOF | |
4330 | /* confdefs.h. */ | |
4331 | _ACEOF | |
4332 | cat confdefs.h >>conftest.$ac_ext | |
4333 | cat >>conftest.$ac_ext <<_ACEOF | |
4334 | /* end confdefs.h. */ | |
4335 | #include <stdlib.h> | |
4336 | #include <stdarg.h> | |
4337 | #include <string.h> | |
4338 | #include <float.h> | |
4339 | ||
4340 | int | |
4341 | main () | |
4342 | { | |
4343 | ||
4344 | ; | |
4345 | return 0; | |
4346 | } | |
4347 | _ACEOF | |
4348 | rm -f conftest.$ac_objext | |
4349 | if { (ac_try="$ac_compile" | |
4350 | case "(($ac_try" in | |
4351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4352 | *) ac_try_echo=$ac_try;; | |
4353 | esac | |
ec6a6fbe AK |
4354 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4355 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4356 | (eval "$ac_compile") 2>conftest.er1 |
4357 | ac_status=$? | |
4358 | grep -v '^ *+' conftest.er1 >conftest.err | |
4359 | rm -f conftest.er1 | |
4360 | cat conftest.err >&5 | |
ec6a6fbe | 4361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4362 | (exit $ac_status); } && { |
4363 | test -z "$ac_c_werror_flag" || | |
4364 | test ! -s conftest.err | |
4365 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4366 | ac_cv_header_stdc=yes |
4367 | else | |
ec6a6fbe | 4368 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4369 | sed 's/^/| /' conftest.$ac_ext >&5 |
4370 | ||
4371 | ac_cv_header_stdc=no | |
4372 | fi | |
4373 | ||
4374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4375 | ||
4376 | if test $ac_cv_header_stdc = yes; then | |
4377 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4378 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4379 | /* confdefs.h. */ |
4380 | _ACEOF | |
4381 | cat confdefs.h >>conftest.$ac_ext | |
4382 | cat >>conftest.$ac_ext <<_ACEOF | |
4383 | /* end confdefs.h. */ | |
4384 | #include <string.h> | |
8106cdd5 | 4385 | |
ad6254c5 AK |
4386 | _ACEOF |
4387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4388 | $EGREP "memchr" >/dev/null 2>&1; then | |
4389 | : | |
4390 | else | |
4391 | ac_cv_header_stdc=no | |
80992638 | 4392 | fi |
ad6254c5 | 4393 | rm -f conftest* |
795ca3e5 AK |
4394 | |
4395 | fi | |
4396 | ||
ad6254c5 AK |
4397 | if test $ac_cv_header_stdc = yes; then |
4398 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4399 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4400 | /* confdefs.h. */ |
4401 | _ACEOF | |
4402 | cat confdefs.h >>conftest.$ac_ext | |
4403 | cat >>conftest.$ac_ext <<_ACEOF | |
4404 | /* end confdefs.h. */ | |
80992638 | 4405 | #include <stdlib.h> |
ad6254c5 AK |
4406 | |
4407 | _ACEOF | |
80992638 | 4408 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4409 | $EGREP "free" >/dev/null 2>&1; then |
4410 | : | |
795ca3e5 | 4411 | else |
ad6254c5 | 4412 | ac_cv_header_stdc=no |
795ca3e5 | 4413 | fi |
80992638 | 4414 | rm -f conftest* |
8106cdd5 | 4415 | |
795ca3e5 AK |
4416 | fi |
4417 | ||
ad6254c5 AK |
4418 | if test $ac_cv_header_stdc = yes; then |
4419 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4420 | if test "$cross_compiling" = yes; then | |
4421 | : | |
795ca3e5 | 4422 | else |
ad6254c5 | 4423 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4424 | /* confdefs.h. */ |
4425 | _ACEOF | |
4426 | cat confdefs.h >>conftest.$ac_ext | |
4427 | cat >>conftest.$ac_ext <<_ACEOF | |
4428 | /* end confdefs.h. */ | |
4429 | #include <ctype.h> | |
7a197a62 | 4430 | #include <stdlib.h> |
ad6254c5 AK |
4431 | #if ((' ' & 0x0FF) == 0x020) |
4432 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4433 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4434 | #else | |
4435 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4436 | (('a' <= (c) && (c) <= 'i') \ |
4437 | || ('j' <= (c) && (c) <= 'r') \ | |
4438 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4439 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4440 | #endif |
ad6254c5 AK |
4441 | |
4442 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4443 | int | |
4444 | main () | |
4445 | { | |
4446 | int i; | |
4447 | for (i = 0; i < 256; i++) | |
4448 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4449 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4450 | return 2; |
4451 | return 0; | |
ad6254c5 AK |
4452 | } |
4453 | _ACEOF | |
4454 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4455 | if { (ac_try="$ac_link" |
4456 | case "(($ac_try" in | |
4457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4458 | *) ac_try_echo=$ac_try;; | |
4459 | esac | |
ec6a6fbe AK |
4460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4461 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4462 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4463 | ac_status=$? |
ec6a6fbe | 4464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4465 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4466 | { (case "(($ac_try" in |
4467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4468 | *) ac_try_echo=$ac_try;; | |
4469 | esac | |
ec6a6fbe AK |
4470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4471 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4472 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4473 | ac_status=$? |
ec6a6fbe | 4474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4475 | (exit $ac_status); }; }; then |
4476 | : | |
795ca3e5 | 4477 | else |
ec6a6fbe AK |
4478 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4479 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4480 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4481 | |
ad6254c5 AK |
4482 | ( exit $ac_status ) |
4483 | ac_cv_header_stdc=no | |
80992638 | 4484 | fi |
ec6a6fbe | 4485 | rm -rf conftest.dSYM |
7a197a62 | 4486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4487 | fi |
7a197a62 AK |
4488 | |
4489 | ||
ad6254c5 AK |
4490 | fi |
4491 | fi | |
ec6a6fbe AK |
4492 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4493 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4494 | if test $ac_cv_header_stdc = yes; then |
4495 | ||
4496 | cat >>confdefs.h <<\_ACEOF | |
4497 | #define STDC_HEADERS 1 | |
4498 | _ACEOF | |
795ca3e5 AK |
4499 | |
4500 | fi | |
4501 | ||
ec6a6fbe AK |
4502 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4503 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4504 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4505 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4506 | else |
ad6254c5 | 4507 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4508 | /* confdefs.h. */ |
4509 | _ACEOF | |
4510 | cat confdefs.h >>conftest.$ac_ext | |
4511 | cat >>conftest.$ac_ext <<_ACEOF | |
4512 | /* end confdefs.h. */ | |
80992638 | 4513 | #include <sys/types.h> |
ad6254c5 AK |
4514 | #include <sys/wait.h> |
4515 | #ifndef WEXITSTATUS | |
7a197a62 | 4516 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4517 | #endif |
4518 | #ifndef WIFEXITED | |
4519 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4520 | #endif | |
4521 | ||
4522 | int | |
4523 | main () | |
4524 | { | |
4525 | int s; | |
4526 | wait (&s); | |
4527 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4528 | ; | |
4529 | return 0; | |
4530 | } | |
4531 | _ACEOF | |
4532 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4533 | if { (ac_try="$ac_compile" |
4534 | case "(($ac_try" in | |
4535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4536 | *) ac_try_echo=$ac_try;; | |
4537 | esac | |
ec6a6fbe AK |
4538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4539 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4540 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4541 | ac_status=$? |
8a2fc586 AK |
4542 | grep -v '^ *+' conftest.er1 >conftest.err |
4543 | rm -f conftest.er1 | |
4544 | cat conftest.err >&5 | |
ec6a6fbe | 4545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4546 | (exit $ac_status); } && { |
4547 | test -z "$ac_c_werror_flag" || | |
4548 | test ! -s conftest.err | |
4549 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4550 | ac_cv_header_sys_wait_h=yes |
4551 | else | |
ec6a6fbe | 4552 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4553 | sed 's/^/| /' conftest.$ac_ext >&5 |
4554 | ||
7a197a62 | 4555 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4556 | fi |
7a197a62 AK |
4557 | |
4558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4559 | fi |
ec6a6fbe AK |
4560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4561 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4562 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4563 | |
ad6254c5 AK |
4564 | cat >>confdefs.h <<\_ACEOF |
4565 | #define HAVE_SYS_WAIT_H 1 | |
4566 | _ACEOF | |
795ca3e5 AK |
4567 | |
4568 | fi | |
4569 | ||
ec6a6fbe AK |
4570 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4571 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4572 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4573 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4574 | else |
ad6254c5 | 4575 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4576 | /* confdefs.h. */ |
4577 | _ACEOF | |
4578 | cat confdefs.h >>conftest.$ac_ext | |
4579 | cat >>conftest.$ac_ext <<_ACEOF | |
4580 | /* end confdefs.h. */ | |
795ca3e5 AK |
4581 | #include <sys/types.h> |
4582 | #include <sys/time.h> | |
4583 | #include <time.h> | |
ad6254c5 AK |
4584 | |
4585 | int | |
4586 | main () | |
4587 | { | |
4588 | if ((struct tm *) 0) | |
4589 | return 0; | |
4590 | ; | |
4591 | return 0; | |
4592 | } | |
4593 | _ACEOF | |
4594 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4595 | if { (ac_try="$ac_compile" |
4596 | case "(($ac_try" in | |
4597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4598 | *) ac_try_echo=$ac_try;; | |
4599 | esac | |
ec6a6fbe AK |
4600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4601 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4602 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4603 | ac_status=$? |
8a2fc586 AK |
4604 | grep -v '^ *+' conftest.er1 >conftest.err |
4605 | rm -f conftest.er1 | |
4606 | cat conftest.err >&5 | |
ec6a6fbe | 4607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4608 | (exit $ac_status); } && { |
4609 | test -z "$ac_c_werror_flag" || | |
4610 | test ! -s conftest.err | |
4611 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4612 | ac_cv_header_time=yes |
4613 | else | |
ec6a6fbe | 4614 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
4616 | ||
7a197a62 | 4617 | ac_cv_header_time=no |
795ca3e5 | 4618 | fi |
7a197a62 AK |
4619 | |
4620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4621 | fi |
ec6a6fbe AK |
4622 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4623 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4624 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4625 | |
4626 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4627 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4628 | _ACEOF |
b896caa1 | 4629 | |
8106cdd5 | 4630 | fi |
b896caa1 | 4631 | |
b896caa1 | 4632 | |
d0191583 JM |
4633 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4644 | inttypes.h stdint.h unistd.h | |
4645 | do | |
ec6a6fbe AK |
4646 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4647 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4648 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4650 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4651 | else |
4652 | cat >conftest.$ac_ext <<_ACEOF | |
4653 | /* confdefs.h. */ | |
4654 | _ACEOF | |
4655 | cat confdefs.h >>conftest.$ac_ext | |
4656 | cat >>conftest.$ac_ext <<_ACEOF | |
4657 | /* end confdefs.h. */ | |
4658 | $ac_includes_default | |
4659 | ||
4660 | #include <$ac_header> | |
4661 | _ACEOF | |
4662 | rm -f conftest.$ac_objext | |
4663 | if { (ac_try="$ac_compile" | |
4664 | case "(($ac_try" in | |
4665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4666 | *) ac_try_echo=$ac_try;; | |
4667 | esac | |
ec6a6fbe AK |
4668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4669 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4670 | (eval "$ac_compile") 2>conftest.er1 |
4671 | ac_status=$? | |
4672 | grep -v '^ *+' conftest.er1 >conftest.err | |
4673 | rm -f conftest.er1 | |
4674 | cat conftest.err >&5 | |
ec6a6fbe | 4675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4676 | (exit $ac_status); } && { |
4677 | test -z "$ac_c_werror_flag" || | |
4678 | test ! -s conftest.err | |
4679 | } && test -s conftest.$ac_objext; then | |
4680 | eval "$as_ac_Header=yes" | |
4681 | else | |
ec6a6fbe | 4682 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4683 | sed 's/^/| /' conftest.$ac_ext >&5 |
4684 | ||
4685 | eval "$as_ac_Header=no" | |
4686 | fi | |
4687 | ||
4688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4689 | fi | |
ec6a6fbe AK |
4690 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4691 | $as_echo "$as_val"'` | |
4692 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4693 | $as_echo "$ac_res" >&6; } | |
4694 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4695 | $as_echo "$as_val"'` | |
4696 | if test "x$as_val" = x""yes; then | |
d0191583 | 4697 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4698 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4699 | _ACEOF |
4700 | ||
4701 | fi | |
4702 | ||
4703 | done | |
4704 | ||
b896caa1 | 4705 | |
b896caa1 AK |
4706 | |
4707 | ||
795ca3e5 | 4708 | |
8106cdd5 | 4709 | |
80992638 | 4710 | |
795ca3e5 | 4711 | |
a38df97f | 4712 | |
80992638 | 4713 | |
d0191583 JM |
4714 | |
4715 | ||
4716 | ||
4717 | ||
4718 | ||
4719 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4720 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4721 | do |
ec6a6fbe | 4722 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4723 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4724 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4725 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4726 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4727 | $as_echo_n "(cached) " >&6 |
d0191583 | 4728 | fi |
ec6a6fbe AK |
4729 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4730 | $as_echo "$as_val"'` | |
4731 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4732 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4733 | else |
d0191583 | 4734 | # Is the header compilable? |
ec6a6fbe AK |
4735 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4736 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4737 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4738 | /* confdefs.h. */ |
4739 | _ACEOF | |
4740 | cat confdefs.h >>conftest.$ac_ext | |
4741 | cat >>conftest.$ac_ext <<_ACEOF | |
4742 | /* end confdefs.h. */ | |
4743 | $ac_includes_default | |
ad6254c5 AK |
4744 | #include <$ac_header> |
4745 | _ACEOF | |
4746 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4747 | if { (ac_try="$ac_compile" |
4748 | case "(($ac_try" in | |
4749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4750 | *) ac_try_echo=$ac_try;; | |
4751 | esac | |
ec6a6fbe AK |
4752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4753 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4754 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4755 | ac_status=$? |
8a2fc586 AK |
4756 | grep -v '^ *+' conftest.er1 >conftest.err |
4757 | rm -f conftest.er1 | |
4758 | cat conftest.err >&5 | |
ec6a6fbe | 4759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4760 | (exit $ac_status); } && { |
4761 | test -z "$ac_c_werror_flag" || | |
4762 | test ! -s conftest.err | |
4763 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4764 | ac_header_compiler=yes |
ad6254c5 | 4765 | else |
ec6a6fbe | 4766 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4767 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4768 | |
d0191583 | 4769 | ac_header_compiler=no |
ad6254c5 | 4770 | fi |
7a197a62 AK |
4771 | |
4772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4773 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4774 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4775 | |
4776 | # Is the header present? | |
ec6a6fbe AK |
4777 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4778 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4779 | cat >conftest.$ac_ext <<_ACEOF |
4780 | /* confdefs.h. */ | |
4781 | _ACEOF | |
4782 | cat confdefs.h >>conftest.$ac_ext | |
4783 | cat >>conftest.$ac_ext <<_ACEOF | |
4784 | /* end confdefs.h. */ | |
4785 | #include <$ac_header> | |
4786 | _ACEOF | |
4787 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4788 | case "(($ac_try" in | |
4789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4790 | *) ac_try_echo=$ac_try;; | |
4791 | esac | |
ec6a6fbe AK |
4792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4793 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4794 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4795 | ac_status=$? | |
4796 | grep -v '^ *+' conftest.er1 >conftest.err | |
4797 | rm -f conftest.er1 | |
4798 | cat conftest.err >&5 | |
ec6a6fbe | 4799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4800 | (exit $ac_status); } >/dev/null && { |
4801 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4802 | test ! -s conftest.err | |
4803 | }; then | |
4804 | ac_header_preproc=yes | |
4805 | else | |
ec6a6fbe | 4806 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4807 | sed 's/^/| /' conftest.$ac_ext >&5 |
4808 | ||
4809 | ac_header_preproc=no | |
4810 | fi | |
4811 | ||
4812 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4813 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4814 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4815 | |
4816 | # So? What about this header? | |
4817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4818 | yes:no: ) | |
ec6a6fbe AK |
4819 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4820 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4821 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4822 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4823 | ac_header_preproc=yes |
4824 | ;; | |
4825 | no:yes:* ) | |
ec6a6fbe AK |
4826 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4827 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4828 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4829 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4831 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4833 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4835 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4837 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4838 | |
4839 | ;; | |
4840 | esac | |
ec6a6fbe AK |
4841 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4842 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4843 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4844 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4845 | else |
4846 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4847 | fi |
ec6a6fbe AK |
4848 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4849 | $as_echo "$as_val"'` | |
4850 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4851 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4852 | |
4853 | fi | |
ec6a6fbe AK |
4854 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4855 | $as_echo "$as_val"'` | |
4856 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4857 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4858 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4859 | _ACEOF |
a38df97f | 4860 | |
d0191583 | 4861 | else |
ec6a6fbe AK |
4862 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4863 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4864 | { (exit 1); exit 1; }; } |
80992638 AK |
4865 | fi |
4866 | ||
ad6254c5 AK |
4867 | done |
4868 | ||
7d1552c9 | 4869 | |
d0191583 JM |
4870 | case "$host_os" in |
4871 | linux*) | |
7d1552c9 | 4872 | |
80992638 | 4873 | |
5a52dca9 | 4874 | |
d0191583 | 4875 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4876 | do |
ec6a6fbe | 4877 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4878 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4879 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4880 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4882 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4883 | fi |
ec6a6fbe AK |
4884 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4885 | $as_echo "$as_val"'` | |
4886 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4887 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4888 | else |
4889 | # Is the header compilable? | |
ec6a6fbe AK |
4890 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4891 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4892 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4893 | /* confdefs.h. */ |
4894 | _ACEOF | |
4895 | cat confdefs.h >>conftest.$ac_ext | |
4896 | cat >>conftest.$ac_ext <<_ACEOF | |
4897 | /* end confdefs.h. */ | |
4898 | $ac_includes_default | |
4899 | #include <$ac_header> | |
4900 | _ACEOF | |
4901 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4902 | if { (ac_try="$ac_compile" |
4903 | case "(($ac_try" in | |
4904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4905 | *) ac_try_echo=$ac_try;; | |
4906 | esac | |
ec6a6fbe AK |
4907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4908 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4909 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4910 | ac_status=$? |
8a2fc586 AK |
4911 | grep -v '^ *+' conftest.er1 >conftest.err |
4912 | rm -f conftest.er1 | |
4913 | cat conftest.err >&5 | |
ec6a6fbe | 4914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4915 | (exit $ac_status); } && { |
4916 | test -z "$ac_c_werror_flag" || | |
4917 | test ! -s conftest.err | |
4918 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4919 | ac_header_compiler=yes |
4920 | else | |
ec6a6fbe | 4921 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4922 | sed 's/^/| /' conftest.$ac_ext >&5 |
4923 | ||
4924 | ac_header_compiler=no | |
4925 | fi | |
4926 | ||
4927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4928 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4929 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4930 | |
4931 | # Is the header present? | |
ec6a6fbe AK |
4932 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4933 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4934 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4935 | /* confdefs.h. */ |
4936 | _ACEOF | |
4937 | cat confdefs.h >>conftest.$ac_ext | |
4938 | cat >>conftest.$ac_ext <<_ACEOF | |
4939 | /* end confdefs.h. */ | |
4940 | #include <$ac_header> | |
4941 | _ACEOF | |
7a197a62 AK |
4942 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4943 | case "(($ac_try" in | |
4944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4945 | *) ac_try_echo=$ac_try;; | |
4946 | esac | |
ec6a6fbe AK |
4947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4948 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4949 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4950 | ac_status=$? |
4951 | grep -v '^ *+' conftest.er1 >conftest.err | |
4952 | rm -f conftest.er1 | |
4953 | cat conftest.err >&5 | |
ec6a6fbe | 4954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4955 | (exit $ac_status); } >/dev/null && { |
4956 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4957 | test ! -s conftest.err | |
4958 | }; then | |
ad6254c5 AK |
4959 | ac_header_preproc=yes |
4960 | else | |
ec6a6fbe | 4961 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4962 | sed 's/^/| /' conftest.$ac_ext >&5 |
4963 | ||
4964 | ac_header_preproc=no | |
4965 | fi | |
7a197a62 | 4966 | |
ad6254c5 | 4967 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4968 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4969 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4970 | |
4971 | # So? What about this header? | |
8a2fc586 AK |
4972 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4973 | yes:no: ) | |
ec6a6fbe AK |
4974 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4975 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4976 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4977 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4978 | ac_header_preproc=yes |
ad6254c5 | 4979 | ;; |
8a2fc586 | 4980 | no:yes:* ) |
ec6a6fbe AK |
4981 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4982 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4983 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4984 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4986 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4988 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4990 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4992 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4993 | |
ad6254c5 AK |
4994 | ;; |
4995 | esac | |
ec6a6fbe AK |
4996 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4997 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4998 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4999 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5000 | else |
8a2fc586 | 5001 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5002 | fi |
ec6a6fbe AK |
5003 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5004 | $as_echo "$as_val"'` | |
5005 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5006 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5007 | |
5008 | fi | |
ec6a6fbe AK |
5009 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5010 | $as_echo "$as_val"'` | |
5011 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5012 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5013 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5014 | _ACEOF |
b896caa1 | 5015 | |
d8ac0fbc | 5016 | else |
ec6a6fbe AK |
5017 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5018 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5019 | { (exit 1); exit 1; }; } |
80992638 AK |
5020 | fi |
5021 | ||
ad6254c5 | 5022 | done |
d0191583 JM |
5023 | ;; |
5024 | darwin*) | |
d8ac0fbc | 5025 | |
d8ac0fbc | 5026 | |
d0191583 | 5027 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5028 | do |
ec6a6fbe | 5029 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5031 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5032 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5034 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5035 | fi |
ec6a6fbe AK |
5036 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5037 | $as_echo "$as_val"'` | |
5038 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5039 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5040 | else |
5041 | # Is the header compilable? | |
ec6a6fbe AK |
5042 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5043 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5044 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5045 | /* confdefs.h. */ |
5046 | _ACEOF | |
5047 | cat confdefs.h >>conftest.$ac_ext | |
5048 | cat >>conftest.$ac_ext <<_ACEOF | |
5049 | /* end confdefs.h. */ | |
5050 | $ac_includes_default | |
5051 | #include <$ac_header> | |
5052 | _ACEOF | |
5053 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5054 | if { (ac_try="$ac_compile" |
5055 | case "(($ac_try" in | |
5056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5057 | *) ac_try_echo=$ac_try;; | |
5058 | esac | |
ec6a6fbe AK |
5059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5060 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5061 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5062 | ac_status=$? |
8a2fc586 AK |
5063 | grep -v '^ *+' conftest.er1 >conftest.err |
5064 | rm -f conftest.er1 | |
5065 | cat conftest.err >&5 | |
ec6a6fbe | 5066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5067 | (exit $ac_status); } && { |
5068 | test -z "$ac_c_werror_flag" || | |
5069 | test ! -s conftest.err | |
5070 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5071 | ac_header_compiler=yes |
5072 | else | |
ec6a6fbe | 5073 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5074 | sed 's/^/| /' conftest.$ac_ext >&5 |
5075 | ||
7a197a62 | 5076 | ac_header_compiler=no |
ad6254c5 | 5077 | fi |
7a197a62 AK |
5078 | |
5079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5080 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5081 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5082 | |
5083 | # Is the header present? | |
ec6a6fbe AK |
5084 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5085 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5086 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5087 | /* confdefs.h. */ |
5088 | _ACEOF | |
5089 | cat confdefs.h >>conftest.$ac_ext | |
5090 | cat >>conftest.$ac_ext <<_ACEOF | |
5091 | /* end confdefs.h. */ | |
5092 | #include <$ac_header> | |
5093 | _ACEOF | |
7a197a62 AK |
5094 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5095 | case "(($ac_try" in | |
5096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5097 | *) ac_try_echo=$ac_try;; | |
5098 | esac | |
ec6a6fbe AK |
5099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5100 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5102 | ac_status=$? |
5103 | grep -v '^ *+' conftest.er1 >conftest.err | |
5104 | rm -f conftest.er1 | |
5105 | cat conftest.err >&5 | |
ec6a6fbe | 5106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5107 | (exit $ac_status); } >/dev/null && { |
5108 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5109 | test ! -s conftest.err | |
5110 | }; then | |
ad6254c5 AK |
5111 | ac_header_preproc=yes |
5112 | else | |
ec6a6fbe | 5113 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5114 | sed 's/^/| /' conftest.$ac_ext >&5 |
5115 | ||
5116 | ac_header_preproc=no | |
5117 | fi | |
7a197a62 | 5118 | |
ad6254c5 | 5119 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5120 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5121 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5122 | |
5123 | # So? What about this header? | |
8a2fc586 AK |
5124 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5125 | yes:no: ) | |
ec6a6fbe AK |
5126 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5127 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5128 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5129 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5130 | ac_header_preproc=yes |
ad6254c5 | 5131 | ;; |
8a2fc586 | 5132 | no:yes:* ) |
ec6a6fbe AK |
5133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5134 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5136 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5138 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5140 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5142 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5143 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5144 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5145 | |
ad6254c5 AK |
5146 | ;; |
5147 | esac | |
ec6a6fbe AK |
5148 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5149 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5150 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5151 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5152 | else |
8a2fc586 | 5153 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5154 | fi |
ec6a6fbe AK |
5155 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5156 | $as_echo "$as_val"'` | |
5157 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5158 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5159 | |
5160 | fi | |
ec6a6fbe AK |
5161 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5162 | $as_echo "$as_val"'` | |
5163 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5164 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5165 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5166 | _ACEOF |
4922197a | 5167 | |
4922197a | 5168 | else |
ec6a6fbe AK |
5169 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5170 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5171 | { (exit 1); exit 1; }; } |
80992638 AK |
5172 | fi |
5173 | ||
ad6254c5 | 5174 | done |
d0191583 JM |
5175 | ;; |
5176 | esac | |
4922197a | 5177 | |
4922197a | 5178 | |
4922197a | 5179 | |
ad6254c5 AK |
5180 | |
5181 | ||
d0191583 JM |
5182 | |
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5195 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5196 | sys/types.h unistd.h | |
ad6254c5 | 5197 | do |
ec6a6fbe | 5198 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5200 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5201 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5203 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5204 | fi |
ec6a6fbe AK |
5205 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5206 | $as_echo "$as_val"'` | |
5207 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5208 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5209 | else |
ad6254c5 | 5210 | # Is the header compilable? |
ec6a6fbe AK |
5211 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5212 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5213 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5214 | /* confdefs.h. */ |
5215 | _ACEOF | |
5216 | cat confdefs.h >>conftest.$ac_ext | |
5217 | cat >>conftest.$ac_ext <<_ACEOF | |
5218 | /* end confdefs.h. */ | |
5219 | $ac_includes_default | |
5220 | #include <$ac_header> | |
5221 | _ACEOF | |
5222 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5223 | if { (ac_try="$ac_compile" |
5224 | case "(($ac_try" in | |
5225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5226 | *) ac_try_echo=$ac_try;; | |
5227 | esac | |
ec6a6fbe AK |
5228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5229 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5230 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5231 | ac_status=$? |
8a2fc586 AK |
5232 | grep -v '^ *+' conftest.er1 >conftest.err |
5233 | rm -f conftest.er1 | |
5234 | cat conftest.err >&5 | |
ec6a6fbe | 5235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5236 | (exit $ac_status); } && { |
5237 | test -z "$ac_c_werror_flag" || | |
5238 | test ! -s conftest.err | |
5239 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5240 | ac_header_compiler=yes |
5241 | else | |
ec6a6fbe | 5242 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5243 | sed 's/^/| /' conftest.$ac_ext >&5 |
5244 | ||
7a197a62 | 5245 | ac_header_compiler=no |
ad6254c5 | 5246 | fi |
7a197a62 AK |
5247 | |
5248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5249 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5250 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5251 | |
5252 | # Is the header present? | |
ec6a6fbe AK |
5253 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5254 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5255 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5256 | /* confdefs.h. */ |
5257 | _ACEOF | |
5258 | cat confdefs.h >>conftest.$ac_ext | |
5259 | cat >>conftest.$ac_ext <<_ACEOF | |
5260 | /* end confdefs.h. */ | |
5261 | #include <$ac_header> | |
5262 | _ACEOF | |
7a197a62 AK |
5263 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5264 | case "(($ac_try" in | |
5265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5266 | *) ac_try_echo=$ac_try;; | |
5267 | esac | |
ec6a6fbe AK |
5268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5269 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5270 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5271 | ac_status=$? |
5272 | grep -v '^ *+' conftest.er1 >conftest.err | |
5273 | rm -f conftest.er1 | |
5274 | cat conftest.err >&5 | |
ec6a6fbe | 5275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5276 | (exit $ac_status); } >/dev/null && { |
5277 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5278 | test ! -s conftest.err | |
5279 | }; then | |
ad6254c5 AK |
5280 | ac_header_preproc=yes |
5281 | else | |
ec6a6fbe | 5282 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5283 | sed 's/^/| /' conftest.$ac_ext >&5 |
5284 | ||
5285 | ac_header_preproc=no | |
5286 | fi | |
7a197a62 | 5287 | |
ad6254c5 | 5288 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5289 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5290 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5291 | |
5292 | # So? What about this header? | |
8a2fc586 AK |
5293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5294 | yes:no: ) | |
ec6a6fbe AK |
5295 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5296 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5298 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5299 | ac_header_preproc=yes |
ad6254c5 | 5300 | ;; |
8a2fc586 | 5301 | no:yes:* ) |
ec6a6fbe AK |
5302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5303 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5305 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5307 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5309 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5311 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5313 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5314 | |
ad6254c5 AK |
5315 | ;; |
5316 | esac | |
ec6a6fbe AK |
5317 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5318 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5319 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5320 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5321 | else |
8a2fc586 | 5322 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5323 | fi |
ec6a6fbe AK |
5324 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5325 | $as_echo "$as_val"'` | |
5326 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5327 | $as_echo "$ac_res" >&6; } | |
80992638 | 5328 | |
ad6254c5 | 5329 | fi |
ec6a6fbe AK |
5330 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5331 | $as_echo "$as_val"'` | |
5332 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5333 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5334 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5335 | _ACEOF |
795ca3e5 | 5336 | |
795ca3e5 | 5337 | else |
ec6a6fbe AK |
5338 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5339 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5340 | { (exit 1); exit 1; }; } |
80992638 AK |
5341 | fi |
5342 | ||
ad6254c5 | 5343 | done |
ad6254c5 | 5344 | |
795ca3e5 | 5345 | |
d0191583 JM |
5346 | |
5347 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5348 | do |
ec6a6fbe | 5349 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5351 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5352 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5354 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5355 | fi |
ec6a6fbe AK |
5356 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5357 | $as_echo "$as_val"'` | |
5358 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5359 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5360 | else |
5361 | # Is the header compilable? | |
ec6a6fbe AK |
5362 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5363 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5364 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5365 | /* confdefs.h. */ |
5366 | _ACEOF | |
5367 | cat confdefs.h >>conftest.$ac_ext | |
5368 | cat >>conftest.$ac_ext <<_ACEOF | |
5369 | /* end confdefs.h. */ | |
5370 | $ac_includes_default | |
5371 | #include <$ac_header> | |
5372 | _ACEOF | |
5373 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5374 | if { (ac_try="$ac_compile" |
5375 | case "(($ac_try" in | |
5376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5377 | *) ac_try_echo=$ac_try;; | |
5378 | esac | |
ec6a6fbe AK |
5379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5380 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5381 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5382 | ac_status=$? |
8a2fc586 AK |
5383 | grep -v '^ *+' conftest.er1 >conftest.err |
5384 | rm -f conftest.er1 | |
5385 | cat conftest.err >&5 | |
ec6a6fbe | 5386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5387 | (exit $ac_status); } && { |
5388 | test -z "$ac_c_werror_flag" || | |
5389 | test ! -s conftest.err | |
5390 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5391 | ac_header_compiler=yes |
5392 | else | |
ec6a6fbe | 5393 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5394 | sed 's/^/| /' conftest.$ac_ext >&5 |
5395 | ||
7a197a62 | 5396 | ac_header_compiler=no |
ad6254c5 | 5397 | fi |
7a197a62 AK |
5398 | |
5399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5400 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5401 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5402 | |
5403 | # Is the header present? | |
ec6a6fbe AK |
5404 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5405 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5406 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5407 | /* confdefs.h. */ |
5408 | _ACEOF | |
5409 | cat confdefs.h >>conftest.$ac_ext | |
5410 | cat >>conftest.$ac_ext <<_ACEOF | |
5411 | /* end confdefs.h. */ | |
5412 | #include <$ac_header> | |
5413 | _ACEOF | |
7a197a62 AK |
5414 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5415 | case "(($ac_try" in | |
5416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5417 | *) ac_try_echo=$ac_try;; | |
5418 | esac | |
ec6a6fbe AK |
5419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5420 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5422 | ac_status=$? |
5423 | grep -v '^ *+' conftest.er1 >conftest.err | |
5424 | rm -f conftest.er1 | |
5425 | cat conftest.err >&5 | |
ec6a6fbe | 5426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5427 | (exit $ac_status); } >/dev/null && { |
5428 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5429 | test ! -s conftest.err | |
5430 | }; then | |
ad6254c5 AK |
5431 | ac_header_preproc=yes |
5432 | else | |
ec6a6fbe | 5433 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5434 | sed 's/^/| /' conftest.$ac_ext >&5 |
5435 | ||
5436 | ac_header_preproc=no | |
5437 | fi | |
7a197a62 | 5438 | |
ad6254c5 | 5439 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5440 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5441 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5442 | |
5443 | # So? What about this header? | |
8a2fc586 AK |
5444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5445 | yes:no: ) | |
ec6a6fbe AK |
5446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5447 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5449 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5450 | ac_header_preproc=yes |
ad6254c5 | 5451 | ;; |
8a2fc586 | 5452 | no:yes:* ) |
ec6a6fbe AK |
5453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5454 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5456 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5458 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5460 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5462 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5464 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5465 | |
ad6254c5 AK |
5466 | ;; |
5467 | esac | |
ec6a6fbe AK |
5468 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5469 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5471 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5472 | else |
8a2fc586 | 5473 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5474 | fi |
ec6a6fbe AK |
5475 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5476 | $as_echo "$as_val"'` | |
5477 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5478 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5479 | |
ad6254c5 | 5480 | fi |
ec6a6fbe AK |
5481 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5482 | $as_echo "$as_val"'` | |
5483 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5484 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5485 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5486 | _ACEOF |
5487 | ||
80992638 AK |
5488 | fi |
5489 | ||
ad6254c5 | 5490 | done |
d0191583 | 5491 | |
d3c8211f | 5492 | |
80992638 | 5493 | ################################################################################ |
ec6a6fbe AK |
5494 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5495 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5496 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5497 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5498 | else |
ad6254c5 | 5499 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5500 | /* confdefs.h. */ |
5501 | _ACEOF | |
5502 | cat confdefs.h >>conftest.$ac_ext | |
5503 | cat >>conftest.$ac_ext <<_ACEOF | |
5504 | /* end confdefs.h. */ | |
5505 | ||
5506 | int | |
5507 | main () | |
5508 | { | |
5509 | /* FIXME: Include the comments suggested by Paul. */ | |
5510 | #ifndef __cplusplus | |
5511 | /* Ultrix mips cc rejects this. */ | |
5512 | typedef int charset[2]; | |
25fbec5b | 5513 | const charset cs; |
ad6254c5 | 5514 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5515 | char const *const *pcpcc; |
5516 | char **ppc; | |
ad6254c5 AK |
5517 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5518 | struct point {int x, y;}; | |
5519 | static struct point const zero = {0,0}; | |
5520 | /* AIX XL C 1.02.0.0 rejects this. | |
5521 | It does not let you subtract one const X* pointer from another in | |
5522 | an arm of an if-expression whose if-part is not a constant | |
5523 | expression */ | |
5524 | const char *g = "string"; | |
25fbec5b | 5525 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5526 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5527 | ++pcpcc; |
5528 | ppc = (char**) pcpcc; | |
5529 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5530 | { /* SCO 3.2v4 cc rejects this. */ |
5531 | char *t; | |
5532 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5533 | ||
5534 | *t++ = 0; | |
7a197a62 | 5535 | if (s) return 0; |
ad6254c5 AK |
5536 | } |
5537 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5538 | int x[] = {25, 17}; | |
5539 | const int *foo = &x[0]; | |
5540 | ++foo; | |
5541 | } | |
5542 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5543 | typedef const int *iptr; | |
5544 | iptr p = 0; | |
5545 | ++p; | |
5546 | } | |
5547 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5548 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5549 | struct s { int j; const int *ap[3]; }; | |
5550 | struct s *b; b->j = 5; | |
5551 | } | |
5552 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5553 | const int foo = 10; | |
7a197a62 | 5554 | if (!foo) return 0; |
ad6254c5 | 5555 | } |
25fbec5b | 5556 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5557 | #endif |
5558 | ||
5559 | ; | |
5560 | return 0; | |
5561 | } | |
5562 | _ACEOF | |
5563 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5564 | if { (ac_try="$ac_compile" |
5565 | case "(($ac_try" in | |
5566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5567 | *) ac_try_echo=$ac_try;; | |
5568 | esac | |
ec6a6fbe AK |
5569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5570 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5571 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5572 | ac_status=$? |
8a2fc586 AK |
5573 | grep -v '^ *+' conftest.er1 >conftest.err |
5574 | rm -f conftest.er1 | |
5575 | cat conftest.err >&5 | |
ec6a6fbe | 5576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5577 | (exit $ac_status); } && { |
5578 | test -z "$ac_c_werror_flag" || | |
5579 | test ! -s conftest.err | |
5580 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5581 | ac_cv_c_const=yes |
5582 | else | |
ec6a6fbe | 5583 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5584 | sed 's/^/| /' conftest.$ac_ext >&5 |
5585 | ||
7a197a62 | 5586 | ac_cv_c_const=no |
ad6254c5 | 5587 | fi |
7a197a62 AK |
5588 | |
5589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5590 | fi |
ec6a6fbe AK |
5591 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5592 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5593 | if test $ac_cv_c_const = no; then |
80992638 | 5594 | |
ad6254c5 | 5595 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5596 | #define const /**/ |
ad6254c5 | 5597 | _ACEOF |
80992638 | 5598 | |
d3c8211f | 5599 | fi |
d3c8211f | 5600 | |
ec6a6fbe AK |
5601 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5602 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5603 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5604 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5605 | else |
ad6254c5 AK |
5606 | ac_cv_c_inline=no |
5607 | for ac_kw in inline __inline__ __inline; do | |
5608 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5609 | /* confdefs.h. */ |
5610 | _ACEOF | |
5611 | cat confdefs.h >>conftest.$ac_ext | |
5612 | cat >>conftest.$ac_ext <<_ACEOF | |
5613 | /* end confdefs.h. */ | |
5614 | #ifndef __cplusplus | |
5615 | typedef int foo_t; | |
5616 | static $ac_kw foo_t static_foo () {return 0; } | |
5617 | $ac_kw foo_t foo () {return 0; } | |
5618 | #endif | |
80992638 | 5619 | |
ad6254c5 AK |
5620 | _ACEOF |
5621 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5622 | if { (ac_try="$ac_compile" |
5623 | case "(($ac_try" in | |
5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5625 | *) ac_try_echo=$ac_try;; | |
5626 | esac | |
ec6a6fbe AK |
5627 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5628 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5629 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5630 | ac_status=$? |
8a2fc586 AK |
5631 | grep -v '^ *+' conftest.er1 >conftest.err |
5632 | rm -f conftest.er1 | |
5633 | cat conftest.err >&5 | |
ec6a6fbe | 5634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5635 | (exit $ac_status); } && { |
5636 | test -z "$ac_c_werror_flag" || | |
5637 | test ! -s conftest.err | |
5638 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5639 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5640 | else |
ec6a6fbe | 5641 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5642 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5643 | |
7a197a62 | 5644 | |
8ce0cbda | 5645 | fi |
7a197a62 AK |
5646 | |
5647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5648 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5649 | done |
8ce0cbda | 5650 | |
8ce0cbda | 5651 | fi |
ec6a6fbe AK |
5652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5653 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5654 | |
5655 | ||
ad6254c5 AK |
5656 | case $ac_cv_c_inline in |
5657 | inline | yes) ;; | |
8a2fc586 AK |
5658 | *) |
5659 | case $ac_cv_c_inline in | |
5660 | no) ac_val=;; | |
5661 | *) ac_val=$ac_cv_c_inline;; | |
5662 | esac | |
5663 | cat >>confdefs.h <<_ACEOF | |
5664 | #ifndef __cplusplus | |
5665 | #define inline $ac_val | |
5666 | #endif | |
c1c065a3 | 5667 | _ACEOF |
d0191583 JM |
5668 | ;; |
5669 | esac | |
5670 | ||
ec6a6fbe AK |
5671 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5672 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5673 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5674 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5675 | else |
5676 | cat >conftest.$ac_ext <<_ACEOF | |
5677 | /* confdefs.h. */ | |
5678 | _ACEOF | |
5679 | cat confdefs.h >>conftest.$ac_ext | |
5680 | cat >>conftest.$ac_ext <<_ACEOF | |
5681 | /* end confdefs.h. */ | |
5682 | $ac_includes_default | |
5683 | int | |
5684 | main () | |
5685 | { | |
5686 | static struct stat ac_aggr; | |
5687 | if (ac_aggr.st_rdev) | |
5688 | return 0; | |
5689 | ; | |
5690 | return 0; | |
5691 | } | |
5692 | _ACEOF | |
5693 | rm -f conftest.$ac_objext | |
5694 | if { (ac_try="$ac_compile" | |
5695 | case "(($ac_try" in | |
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5697 | *) ac_try_echo=$ac_try;; | |
5698 | esac | |
ec6a6fbe AK |
5699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5700 | $as_echo "$ac_try_echo") >&5 | |
5701 | (eval "$ac_compile") 2>conftest.er1 | |
5702 | ac_status=$? | |
5703 | grep -v '^ *+' conftest.er1 >conftest.err | |
5704 | rm -f conftest.er1 | |
5705 | cat conftest.err >&5 | |
5706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5707 | (exit $ac_status); } && { | |
5708 | test -z "$ac_c_werror_flag" || | |
5709 | test ! -s conftest.err | |
5710 | } && test -s conftest.$ac_objext; then | |
5711 | ac_cv_member_struct_stat_st_rdev=yes | |
5712 | else | |
5713 | $as_echo "$as_me: failed program was:" >&5 | |
5714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5715 | ||
5716 | cat >conftest.$ac_ext <<_ACEOF | |
5717 | /* confdefs.h. */ | |
5718 | _ACEOF | |
5719 | cat confdefs.h >>conftest.$ac_ext | |
5720 | cat >>conftest.$ac_ext <<_ACEOF | |
5721 | /* end confdefs.h. */ | |
5722 | $ac_includes_default | |
5723 | int | |
5724 | main () | |
5725 | { | |
5726 | static struct stat ac_aggr; | |
5727 | if (sizeof ac_aggr.st_rdev) | |
5728 | return 0; | |
5729 | ; | |
5730 | return 0; | |
5731 | } | |
5732 | _ACEOF | |
5733 | rm -f conftest.$ac_objext | |
5734 | if { (ac_try="$ac_compile" | |
5735 | case "(($ac_try" in | |
5736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5737 | *) ac_try_echo=$ac_try;; | |
5738 | esac | |
5739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5740 | $as_echo "$ac_try_echo") >&5 | |
5741 | (eval "$ac_compile") 2>conftest.er1 | |
5742 | ac_status=$? | |
5743 | grep -v '^ *+' conftest.er1 >conftest.err | |
5744 | rm -f conftest.er1 | |
5745 | cat conftest.err >&5 | |
5746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5747 | (exit $ac_status); } && { | |
5748 | test -z "$ac_c_werror_flag" || | |
5749 | test ! -s conftest.err | |
5750 | } && test -s conftest.$ac_objext; then | |
5751 | ac_cv_member_struct_stat_st_rdev=yes | |
5752 | else | |
5753 | $as_echo "$as_me: failed program was:" >&5 | |
5754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5755 | ||
5756 | ac_cv_member_struct_stat_st_rdev=no | |
5757 | fi | |
5758 | ||
5759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5760 | fi | |
5761 | ||
5762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5763 | fi | |
5764 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5765 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5766 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5767 | ||
5768 | cat >>confdefs.h <<_ACEOF | |
5769 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5770 | _ACEOF | |
5771 | ||
5772 | ||
5773 | fi | |
5774 | ||
5775 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5776 | $as_echo_n "checking for off_t... " >&6; } | |
5777 | if test "${ac_cv_type_off_t+set}" = set; then | |
5778 | $as_echo_n "(cached) " >&6 | |
5779 | else | |
5780 | ac_cv_type_off_t=no | |
5781 | cat >conftest.$ac_ext <<_ACEOF | |
5782 | /* confdefs.h. */ | |
5783 | _ACEOF | |
5784 | cat confdefs.h >>conftest.$ac_ext | |
5785 | cat >>conftest.$ac_ext <<_ACEOF | |
5786 | /* end confdefs.h. */ | |
5787 | $ac_includes_default | |
5788 | int | |
5789 | main () | |
5790 | { | |
5791 | if (sizeof (off_t)) | |
5792 | return 0; | |
5793 | ; | |
5794 | return 0; | |
5795 | } | |
5796 | _ACEOF | |
5797 | rm -f conftest.$ac_objext | |
5798 | if { (ac_try="$ac_compile" | |
5799 | case "(($ac_try" in | |
5800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5801 | *) ac_try_echo=$ac_try;; | |
5802 | esac | |
5803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5804 | $as_echo "$ac_try_echo") >&5 | |
5805 | (eval "$ac_compile") 2>conftest.er1 | |
5806 | ac_status=$? | |
5807 | grep -v '^ *+' conftest.er1 >conftest.err | |
5808 | rm -f conftest.er1 | |
5809 | cat conftest.err >&5 | |
5810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5811 | (exit $ac_status); } && { | |
5812 | test -z "$ac_c_werror_flag" || | |
5813 | test ! -s conftest.err | |
5814 | } && test -s conftest.$ac_objext; then | |
5815 | cat >conftest.$ac_ext <<_ACEOF | |
5816 | /* confdefs.h. */ | |
5817 | _ACEOF | |
5818 | cat confdefs.h >>conftest.$ac_ext | |
5819 | cat >>conftest.$ac_ext <<_ACEOF | |
5820 | /* end confdefs.h. */ | |
5821 | $ac_includes_default | |
5822 | int | |
5823 | main () | |
5824 | { | |
5825 | if (sizeof ((off_t))) | |
5826 | return 0; | |
5827 | ; | |
5828 | return 0; | |
5829 | } | |
5830 | _ACEOF | |
5831 | rm -f conftest.$ac_objext | |
5832 | if { (ac_try="$ac_compile" | |
5833 | case "(($ac_try" in | |
5834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5835 | *) ac_try_echo=$ac_try;; | |
5836 | esac | |
5837 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5838 | $as_echo "$ac_try_echo") >&5 | |
5839 | (eval "$ac_compile") 2>conftest.er1 | |
5840 | ac_status=$? | |
5841 | grep -v '^ *+' conftest.er1 >conftest.err | |
5842 | rm -f conftest.er1 | |
5843 | cat conftest.err >&5 | |
5844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5845 | (exit $ac_status); } && { | |
5846 | test -z "$ac_c_werror_flag" || | |
5847 | test ! -s conftest.err | |
5848 | } && test -s conftest.$ac_objext; then | |
5849 | : | |
5850 | else | |
5851 | $as_echo "$as_me: failed program was:" >&5 | |
5852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5853 | ||
5854 | ac_cv_type_off_t=yes | |
5855 | fi | |
5856 | ||
5857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5858 | else | |
5859 | $as_echo "$as_me: failed program was:" >&5 | |
5860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5861 | ||
5862 | ||
5863 | fi | |
5864 | ||
5865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5866 | fi | |
5867 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5868 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5869 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5870 | : | |
5871 | else | |
5872 | ||
5873 | cat >>confdefs.h <<_ACEOF | |
5874 | #define off_t long int | |
5875 | _ACEOF | |
5876 | ||
5877 | fi | |
5878 | ||
5879 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5880 | $as_echo_n "checking for pid_t... " >&6; } | |
5881 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5882 | $as_echo_n "(cached) " >&6 | |
5883 | else | |
5884 | ac_cv_type_pid_t=no | |
5885 | cat >conftest.$ac_ext <<_ACEOF | |
5886 | /* confdefs.h. */ | |
5887 | _ACEOF | |
5888 | cat confdefs.h >>conftest.$ac_ext | |
5889 | cat >>conftest.$ac_ext <<_ACEOF | |
5890 | /* end confdefs.h. */ | |
5891 | $ac_includes_default | |
5892 | int | |
5893 | main () | |
5894 | { | |
5895 | if (sizeof (pid_t)) | |
5896 | return 0; | |
5897 | ; | |
5898 | return 0; | |
5899 | } | |
5900 | _ACEOF | |
5901 | rm -f conftest.$ac_objext | |
5902 | if { (ac_try="$ac_compile" | |
5903 | case "(($ac_try" in | |
5904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5905 | *) ac_try_echo=$ac_try;; | |
5906 | esac | |
5907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5908 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5909 | (eval "$ac_compile") 2>conftest.er1 |
5910 | ac_status=$? | |
5911 | grep -v '^ *+' conftest.er1 >conftest.err | |
5912 | rm -f conftest.er1 | |
5913 | cat conftest.err >&5 | |
ec6a6fbe | 5914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5915 | (exit $ac_status); } && { |
5916 | test -z "$ac_c_werror_flag" || | |
5917 | test ! -s conftest.err | |
5918 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5919 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5920 | /* confdefs.h. */ |
5921 | _ACEOF | |
5922 | cat confdefs.h >>conftest.$ac_ext | |
5923 | cat >>conftest.$ac_ext <<_ACEOF | |
5924 | /* end confdefs.h. */ | |
5925 | $ac_includes_default | |
5926 | int | |
5927 | main () | |
5928 | { | |
ec6a6fbe AK |
5929 | if (sizeof ((pid_t))) |
5930 | return 0; | |
d0191583 JM |
5931 | ; |
5932 | return 0; | |
5933 | } | |
5934 | _ACEOF | |
5935 | rm -f conftest.$ac_objext | |
5936 | if { (ac_try="$ac_compile" | |
5937 | case "(($ac_try" in | |
5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5939 | *) ac_try_echo=$ac_try;; | |
5940 | esac | |
ec6a6fbe AK |
5941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5942 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5943 | (eval "$ac_compile") 2>conftest.er1 |
5944 | ac_status=$? | |
5945 | grep -v '^ *+' conftest.er1 >conftest.err | |
5946 | rm -f conftest.er1 | |
5947 | cat conftest.err >&5 | |
ec6a6fbe | 5948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5949 | (exit $ac_status); } && { |
5950 | test -z "$ac_c_werror_flag" || | |
5951 | test ! -s conftest.err | |
5952 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5953 | : |
d0191583 | 5954 | else |
ec6a6fbe | 5955 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5956 | sed 's/^/| /' conftest.$ac_ext >&5 |
5957 | ||
ec6a6fbe | 5958 | ac_cv_type_pid_t=yes |
d0191583 JM |
5959 | fi |
5960 | ||
5961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5962 | else |
5963 | $as_echo "$as_me: failed program was:" >&5 | |
5964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5965 | ||
5966 | ||
d0191583 JM |
5967 | fi |
5968 | ||
5969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5970 | fi | |
ec6a6fbe AK |
5971 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5972 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5973 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5974 | : | |
5975 | else | |
d0191583 JM |
5976 | |
5977 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5978 | #define pid_t int |
d0191583 JM |
5979 | _ACEOF |
5980 | ||
d0191583 | 5981 | fi |
8ce0cbda | 5982 | |
ec6a6fbe AK |
5983 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5984 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5985 | if test "${ac_cv_type_signal+set}" = set; then | |
5986 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5987 | else |
b145d876 ZK |
5988 | cat >conftest.$ac_ext <<_ACEOF |
5989 | /* confdefs.h. */ | |
5990 | _ACEOF | |
5991 | cat confdefs.h >>conftest.$ac_ext | |
5992 | cat >>conftest.$ac_ext <<_ACEOF | |
5993 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5994 | #include <sys/types.h> |
5995 | #include <signal.h> | |
5996 | ||
b145d876 ZK |
5997 | int |
5998 | main () | |
5999 | { | |
ec6a6fbe | 6000 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
6001 | ; |
6002 | return 0; | |
6003 | } | |
6004 | _ACEOF | |
6005 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6006 | if { (ac_try="$ac_compile" |
6007 | case "(($ac_try" in | |
6008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6009 | *) ac_try_echo=$ac_try;; | |
6010 | esac | |
ec6a6fbe AK |
6011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6012 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6013 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6014 | ac_status=$? |
8a2fc586 AK |
6015 | grep -v '^ *+' conftest.er1 >conftest.err |
6016 | rm -f conftest.er1 | |
6017 | cat conftest.err >&5 | |
ec6a6fbe | 6018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6019 | (exit $ac_status); } && { |
6020 | test -z "$ac_c_werror_flag" || | |
6021 | test ! -s conftest.err | |
6022 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6023 | ac_cv_type_signal=int |
b145d876 | 6024 | else |
ec6a6fbe | 6025 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6026 | sed 's/^/| /' conftest.$ac_ext >&5 |
6027 | ||
ec6a6fbe | 6028 | ac_cv_type_signal=void |
ad6254c5 | 6029 | fi |
b145d876 ZK |
6030 | |
6031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6032 | fi | |
ec6a6fbe AK |
6033 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6034 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6035 | |
ad6254c5 | 6036 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6037 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6038 | _ACEOF |
199e490e | 6039 | |
b896caa1 | 6040 | |
ec6a6fbe AK |
6041 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6042 | $as_echo_n "checking for size_t... " >&6; } | |
6043 | if test "${ac_cv_type_size_t+set}" = set; then | |
6044 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6045 | else |
ec6a6fbe AK |
6046 | ac_cv_type_size_t=no |
6047 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6048 | /* confdefs.h. */ |
6049 | _ACEOF | |
6050 | cat confdefs.h >>conftest.$ac_ext | |
6051 | cat >>conftest.$ac_ext <<_ACEOF | |
6052 | /* end confdefs.h. */ | |
6053 | $ac_includes_default | |
6054 | int | |
6055 | main () | |
6056 | { | |
ec6a6fbe AK |
6057 | if (sizeof (size_t)) |
6058 | return 0; | |
ad6254c5 AK |
6059 | ; |
6060 | return 0; | |
6061 | } | |
6062 | _ACEOF | |
6063 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6064 | if { (ac_try="$ac_compile" |
6065 | case "(($ac_try" in | |
6066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6067 | *) ac_try_echo=$ac_try;; | |
6068 | esac | |
ec6a6fbe AK |
6069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6070 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6071 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6072 | ac_status=$? |
8a2fc586 AK |
6073 | grep -v '^ *+' conftest.er1 >conftest.err |
6074 | rm -f conftest.er1 | |
6075 | cat conftest.err >&5 | |
ec6a6fbe | 6076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6077 | (exit $ac_status); } && { |
6078 | test -z "$ac_c_werror_flag" || | |
6079 | test ! -s conftest.err | |
6080 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6081 | cat >conftest.$ac_ext <<_ACEOF |
6082 | /* confdefs.h. */ | |
6083 | _ACEOF | |
6084 | cat confdefs.h >>conftest.$ac_ext | |
6085 | cat >>conftest.$ac_ext <<_ACEOF | |
6086 | /* end confdefs.h. */ | |
ec6a6fbe | 6087 | $ac_includes_default |
d0191583 JM |
6088 | int |
6089 | main () | |
6090 | { | |
ec6a6fbe AK |
6091 | if (sizeof ((size_t))) |
6092 | return 0; | |
d0191583 JM |
6093 | ; |
6094 | return 0; | |
6095 | } | |
6096 | _ACEOF | |
6097 | rm -f conftest.$ac_objext | |
6098 | if { (ac_try="$ac_compile" | |
6099 | case "(($ac_try" in | |
6100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6101 | *) ac_try_echo=$ac_try;; | |
6102 | esac | |
ec6a6fbe AK |
6103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6104 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6105 | (eval "$ac_compile") 2>conftest.er1 |
6106 | ac_status=$? | |
6107 | grep -v '^ *+' conftest.er1 >conftest.err | |
6108 | rm -f conftest.er1 | |
6109 | cat conftest.err >&5 | |
ec6a6fbe | 6110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6111 | (exit $ac_status); } && { |
6112 | test -z "$ac_c_werror_flag" || | |
6113 | test ! -s conftest.err | |
6114 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6115 | : |
d0191583 | 6116 | else |
ec6a6fbe | 6117 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6118 | sed 's/^/| /' conftest.$ac_ext >&5 |
6119 | ||
ec6a6fbe AK |
6120 | ac_cv_type_size_t=yes |
6121 | fi | |
6122 | ||
6123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6124 | else | |
6125 | $as_echo "$as_me: failed program was:" >&5 | |
6126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6127 | ||
6128 | ||
d0191583 JM |
6129 | fi |
6130 | ||
6131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6132 | fi | |
ec6a6fbe AK |
6133 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6134 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6135 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6136 | : | |
6137 | else | |
d0191583 JM |
6138 | |
6139 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6140 | #define size_t unsigned int |
d0191583 JM |
6141 | _ACEOF |
6142 | ||
ec6a6fbe | 6143 | fi |
d0191583 | 6144 | |
ec6a6fbe AK |
6145 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6146 | $as_echo_n "checking for mode_t... " >&6; } | |
6147 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6148 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6149 | else |
ec6a6fbe AK |
6150 | ac_cv_type_mode_t=no |
6151 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6152 | /* confdefs.h. */ |
6153 | _ACEOF | |
6154 | cat confdefs.h >>conftest.$ac_ext | |
6155 | cat >>conftest.$ac_ext <<_ACEOF | |
6156 | /* end confdefs.h. */ | |
6157 | $ac_includes_default | |
6158 | int | |
6159 | main () | |
6160 | { | |
ec6a6fbe AK |
6161 | if (sizeof (mode_t)) |
6162 | return 0; | |
ad6254c5 AK |
6163 | ; |
6164 | return 0; | |
6165 | } | |
6166 | _ACEOF | |
6167 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6168 | if { (ac_try="$ac_compile" |
6169 | case "(($ac_try" in | |
6170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6171 | *) ac_try_echo=$ac_try;; | |
6172 | esac | |
ec6a6fbe AK |
6173 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6174 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6175 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6176 | ac_status=$? |
8a2fc586 AK |
6177 | grep -v '^ *+' conftest.er1 >conftest.err |
6178 | rm -f conftest.er1 | |
6179 | cat conftest.err >&5 | |
ec6a6fbe | 6180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6181 | (exit $ac_status); } && { |
6182 | test -z "$ac_c_werror_flag" || | |
6183 | test ! -s conftest.err | |
6184 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6185 | cat >conftest.$ac_ext <<_ACEOF |
6186 | /* confdefs.h. */ | |
6187 | _ACEOF | |
6188 | cat confdefs.h >>conftest.$ac_ext | |
6189 | cat >>conftest.$ac_ext <<_ACEOF | |
6190 | /* end confdefs.h. */ | |
6191 | $ac_includes_default | |
6192 | int | |
6193 | main () | |
6194 | { | |
ec6a6fbe AK |
6195 | if (sizeof ((mode_t))) |
6196 | return 0; | |
ad6254c5 AK |
6197 | ; |
6198 | return 0; | |
6199 | } | |
6200 | _ACEOF | |
6201 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6202 | if { (ac_try="$ac_compile" |
6203 | case "(($ac_try" in | |
6204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6205 | *) ac_try_echo=$ac_try;; | |
6206 | esac | |
ec6a6fbe AK |
6207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6208 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6209 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6210 | ac_status=$? |
8a2fc586 AK |
6211 | grep -v '^ *+' conftest.er1 >conftest.err |
6212 | rm -f conftest.er1 | |
6213 | cat conftest.err >&5 | |
ec6a6fbe | 6214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6215 | (exit $ac_status); } && { |
6216 | test -z "$ac_c_werror_flag" || | |
6217 | test ! -s conftest.err | |
6218 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6219 | : |
6220 | else | |
6221 | $as_echo "$as_me: failed program was:" >&5 | |
6222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6223 | ||
6224 | ac_cv_type_mode_t=yes | |
6225 | fi | |
6226 | ||
6227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6228 | else |
ec6a6fbe | 6229 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6230 | sed 's/^/| /' conftest.$ac_ext >&5 |
6231 | ||
ec6a6fbe | 6232 | |
80992638 | 6233 | fi |
7a197a62 AK |
6234 | |
6235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6236 | fi |
ec6a6fbe AK |
6237 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6238 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6239 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6240 | : |
6241 | else | |
80992638 | 6242 | |
ad6254c5 AK |
6243 | cat >>confdefs.h <<_ACEOF |
6244 | #define mode_t int | |
6245 | _ACEOF | |
6246 | ||
6247 | fi | |
6248 | ||
ec6a6fbe AK |
6249 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6250 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6251 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6252 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6253 | else |
6254 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6255 | /* confdefs.h. */ |
6256 | _ACEOF | |
6257 | cat confdefs.h >>conftest.$ac_ext | |
6258 | cat >>conftest.$ac_ext <<_ACEOF | |
6259 | /* end confdefs.h. */ | |
6260 | $ac_includes_default | |
6261 | int | |
6262 | main () | |
6263 | { | |
6264 | static struct stat ac_aggr; | |
6265 | if (ac_aggr.st_rdev) | |
6266 | return 0; | |
6267 | ; | |
6268 | return 0; | |
6269 | } | |
6270 | _ACEOF | |
6271 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6272 | if { (ac_try="$ac_compile" |
6273 | case "(($ac_try" in | |
6274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6275 | *) ac_try_echo=$ac_try;; | |
6276 | esac | |
ec6a6fbe AK |
6277 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6278 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6279 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6280 | ac_status=$? |
8a2fc586 AK |
6281 | grep -v '^ *+' conftest.er1 >conftest.err |
6282 | rm -f conftest.er1 | |
6283 | cat conftest.err >&5 | |
ec6a6fbe | 6284 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6285 | (exit $ac_status); } && { |
6286 | test -z "$ac_c_werror_flag" || | |
6287 | test ! -s conftest.err | |
6288 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6289 | ac_cv_member_struct_stat_st_rdev=yes |
6290 | else | |
ec6a6fbe | 6291 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6292 | sed 's/^/| /' conftest.$ac_ext >&5 |
6293 | ||
7a197a62 | 6294 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6295 | /* confdefs.h. */ |
6296 | _ACEOF | |
6297 | cat confdefs.h >>conftest.$ac_ext | |
6298 | cat >>conftest.$ac_ext <<_ACEOF | |
6299 | /* end confdefs.h. */ | |
6300 | $ac_includes_default | |
6301 | int | |
6302 | main () | |
6303 | { | |
6304 | static struct stat ac_aggr; | |
6305 | if (sizeof ac_aggr.st_rdev) | |
6306 | return 0; | |
6307 | ; | |
6308 | return 0; | |
6309 | } | |
6310 | _ACEOF | |
6311 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6312 | if { (ac_try="$ac_compile" |
6313 | case "(($ac_try" in | |
6314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6315 | *) ac_try_echo=$ac_try;; | |
6316 | esac | |
ec6a6fbe AK |
6317 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6318 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6319 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6320 | ac_status=$? |
8a2fc586 AK |
6321 | grep -v '^ *+' conftest.er1 >conftest.err |
6322 | rm -f conftest.er1 | |
6323 | cat conftest.err >&5 | |
ec6a6fbe | 6324 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6325 | (exit $ac_status); } && { |
6326 | test -z "$ac_c_werror_flag" || | |
6327 | test ! -s conftest.err | |
6328 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6329 | ac_cv_member_struct_stat_st_rdev=yes |
6330 | else | |
ec6a6fbe | 6331 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6332 | sed 's/^/| /' conftest.$ac_ext >&5 |
6333 | ||
7a197a62 | 6334 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6335 | fi |
7a197a62 AK |
6336 | |
6337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6338 | fi |
7a197a62 AK |
6339 | |
6340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6341 | fi |
ec6a6fbe AK |
6342 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6343 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6344 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6345 | |
6346 | cat >>confdefs.h <<_ACEOF | |
6347 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6348 | _ACEOF | |
6349 | ||
6350 | ||
ad6254c5 AK |
6351 | fi |
6352 | ||
ec6a6fbe AK |
6353 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6354 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6355 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6356 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6357 | else |
6358 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6359 | /* confdefs.h. */ |
6360 | _ACEOF | |
6361 | cat confdefs.h >>conftest.$ac_ext | |
6362 | cat >>conftest.$ac_ext <<_ACEOF | |
6363 | /* end confdefs.h. */ | |
6364 | #include <sys/types.h> | |
6365 | #include <time.h> | |
6366 | ||
6367 | int | |
6368 | main () | |
6369 | { | |
25fbec5b AK |
6370 | struct tm tm; |
6371 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6372 | return !p; |
ad6254c5 AK |
6373 | ; |
6374 | return 0; | |
6375 | } | |
6376 | _ACEOF | |
6377 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6378 | if { (ac_try="$ac_compile" |
6379 | case "(($ac_try" in | |
6380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6381 | *) ac_try_echo=$ac_try;; | |
6382 | esac | |
ec6a6fbe AK |
6383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6384 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6385 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6386 | ac_status=$? |
8a2fc586 AK |
6387 | grep -v '^ *+' conftest.er1 >conftest.err |
6388 | rm -f conftest.er1 | |
6389 | cat conftest.err >&5 | |
ec6a6fbe | 6390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6391 | (exit $ac_status); } && { |
6392 | test -z "$ac_c_werror_flag" || | |
6393 | test ! -s conftest.err | |
6394 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6395 | ac_cv_struct_tm=time.h |
6396 | else | |
ec6a6fbe | 6397 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6398 | sed 's/^/| /' conftest.$ac_ext >&5 |
6399 | ||
7a197a62 | 6400 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6401 | fi |
7a197a62 AK |
6402 | |
6403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6404 | fi |
ec6a6fbe AK |
6405 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6406 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6407 | if test $ac_cv_struct_tm = sys/time.h; then |
6408 | ||
6409 | cat >>confdefs.h <<\_ACEOF | |
6410 | #define TM_IN_SYS_TIME 1 | |
6411 | _ACEOF | |
6412 | ||
6413 | fi | |
809fae91 | 6414 | |
795ca3e5 | 6415 | |
80992638 | 6416 | ################################################################################ |
ad6254c5 AK |
6417 | |
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
d0191583 JM |
6431 | |
6432 | ||
6433 | ||
6434 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6435 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6436 | uname | |
ad6254c5 | 6437 | do |
ec6a6fbe AK |
6438 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6439 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6440 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6441 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6442 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6443 | else |
ad6254c5 | 6444 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6445 | /* confdefs.h. */ |
6446 | _ACEOF | |
6447 | cat confdefs.h >>conftest.$ac_ext | |
6448 | cat >>conftest.$ac_ext <<_ACEOF | |
6449 | /* end confdefs.h. */ | |
8a2fc586 AK |
6450 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6452 | #define $ac_func innocuous_$ac_func | |
6453 | ||
ad6254c5 AK |
6454 | /* System header to define __stub macros and hopefully few prototypes, |
6455 | which can conflict with char $ac_func (); below. | |
6456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6457 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6458 | |
ad6254c5 AK |
6459 | #ifdef __STDC__ |
6460 | # include <limits.h> | |
6461 | #else | |
6462 | # include <assert.h> | |
6463 | #endif | |
8a2fc586 AK |
6464 | |
6465 | #undef $ac_func | |
6466 | ||
7a197a62 AK |
6467 | /* Override any GCC internal prototype to avoid an error. |
6468 | Use char because int might match the return type of a GCC | |
6469 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6470 | #ifdef __cplusplus |
6471 | extern "C" | |
ad6254c5 | 6472 | #endif |
ad6254c5 AK |
6473 | char $ac_func (); |
6474 | /* The GNU C library defines this for functions which it implements | |
6475 | to always fail with ENOSYS. Some functions are actually named | |
6476 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6477 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6478 | choke me |
ad6254c5 AK |
6479 | #endif |
6480 | ||
6481 | int | |
6482 | main () | |
6483 | { | |
7a197a62 | 6484 | return $ac_func (); |
ad6254c5 AK |
6485 | ; |
6486 | return 0; | |
6487 | } | |
6488 | _ACEOF | |
6489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6490 | if { (ac_try="$ac_link" |
6491 | case "(($ac_try" in | |
6492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6493 | *) ac_try_echo=$ac_try;; | |
6494 | esac | |
ec6a6fbe AK |
6495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6496 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6497 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6498 | ac_status=$? |
8a2fc586 AK |
6499 | grep -v '^ *+' conftest.er1 >conftest.err |
6500 | rm -f conftest.er1 | |
6501 | cat conftest.err >&5 | |
ec6a6fbe | 6502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6503 | (exit $ac_status); } && { |
6504 | test -z "$ac_c_werror_flag" || | |
6505 | test ! -s conftest.err | |
ec6a6fbe AK |
6506 | } && test -s conftest$ac_exeext && { |
6507 | test "$cross_compiling" = yes || | |
6508 | $as_test_x conftest$ac_exeext | |
6509 | }; then | |
fc54be10 AK |
6510 | eval "$as_ac_var=yes" |
6511 | else | |
ec6a6fbe | 6512 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6513 | sed 's/^/| /' conftest.$ac_ext >&5 |
6514 | ||
6515 | eval "$as_ac_var=no" | |
6516 | fi | |
6517 | ||
ec6a6fbe | 6518 | rm -rf conftest.dSYM |
25fbec5b | 6519 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6520 | conftest$ac_exeext conftest.$ac_ext |
6521 | fi | |
ec6a6fbe AK |
6522 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6523 | $as_echo "$as_val"'` | |
6524 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6525 | $as_echo "$ac_res" >&6; } | |
6526 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6527 | $as_echo "$as_val"'` | |
6528 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6529 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6530 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6531 | _ACEOF |
6532 | ||
6533 | else | |
ec6a6fbe AK |
6534 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6535 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6536 | { (exit 1); exit 1; }; } |
6537 | fi | |
6538 | done | |
795ca3e5 | 6539 | |
a0f9708e AK |
6540 | |
6541 | for ac_func in siginterrupt | |
6542 | do | |
6543 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6544 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6545 | $as_echo_n "checking for $ac_func... " >&6; } | |
6546 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6547 | $as_echo_n "(cached) " >&6 | |
6548 | else | |
6549 | cat >conftest.$ac_ext <<_ACEOF | |
6550 | /* confdefs.h. */ | |
6551 | _ACEOF | |
6552 | cat confdefs.h >>conftest.$ac_ext | |
6553 | cat >>conftest.$ac_ext <<_ACEOF | |
6554 | /* end confdefs.h. */ | |
6555 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6556 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6557 | #define $ac_func innocuous_$ac_func | |
6558 | ||
6559 | /* System header to define __stub macros and hopefully few prototypes, | |
6560 | which can conflict with char $ac_func (); below. | |
6561 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6562 | <limits.h> exists even on freestanding compilers. */ | |
6563 | ||
6564 | #ifdef __STDC__ | |
6565 | # include <limits.h> | |
6566 | #else | |
6567 | # include <assert.h> | |
6568 | #endif | |
6569 | ||
6570 | #undef $ac_func | |
6571 | ||
6572 | /* Override any GCC internal prototype to avoid an error. | |
6573 | Use char because int might match the return type of a GCC | |
6574 | builtin and then its argument prototype would still apply. */ | |
6575 | #ifdef __cplusplus | |
6576 | extern "C" | |
6577 | #endif | |
6578 | char $ac_func (); | |
6579 | /* The GNU C library defines this for functions which it implements | |
6580 | to always fail with ENOSYS. Some functions are actually named | |
6581 | something starting with __ and the normal name is an alias. */ | |
6582 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6583 | choke me | |
6584 | #endif | |
6585 | ||
6586 | int | |
6587 | main () | |
6588 | { | |
6589 | return $ac_func (); | |
6590 | ; | |
6591 | return 0; | |
6592 | } | |
6593 | _ACEOF | |
6594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6595 | if { (ac_try="$ac_link" | |
6596 | case "(($ac_try" in | |
6597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6598 | *) ac_try_echo=$ac_try;; | |
6599 | esac | |
6600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6601 | $as_echo "$ac_try_echo") >&5 | |
6602 | (eval "$ac_link") 2>conftest.er1 | |
6603 | ac_status=$? | |
6604 | grep -v '^ *+' conftest.er1 >conftest.err | |
6605 | rm -f conftest.er1 | |
6606 | cat conftest.err >&5 | |
6607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6608 | (exit $ac_status); } && { | |
6609 | test -z "$ac_c_werror_flag" || | |
6610 | test ! -s conftest.err | |
6611 | } && test -s conftest$ac_exeext && { | |
6612 | test "$cross_compiling" = yes || | |
6613 | $as_test_x conftest$ac_exeext | |
6614 | }; then | |
6615 | eval "$as_ac_var=yes" | |
6616 | else | |
6617 | $as_echo "$as_me: failed program was:" >&5 | |
6618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6619 | ||
6620 | eval "$as_ac_var=no" | |
6621 | fi | |
6622 | ||
6623 | rm -rf conftest.dSYM | |
6624 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6625 | conftest$ac_exeext conftest.$ac_ext | |
6626 | fi | |
6627 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
6628 | $as_echo "$as_val"'` | |
6629 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6630 | $as_echo "$ac_res" >&6; } | |
6631 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6632 | $as_echo "$as_val"'` | |
6633 | if test "x$as_val" = x""yes; then | |
6634 | cat >>confdefs.h <<_ACEOF | |
6635 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6636 | _ACEOF | |
6637 | ||
6638 | fi | |
6639 | done | |
6640 | ||
ad6254c5 AK |
6641 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6642 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6643 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6644 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6645 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6646 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6647 | else |
6648 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6649 | /* confdefs.h. */ |
6650 | _ACEOF | |
6651 | cat confdefs.h >>conftest.$ac_ext | |
6652 | cat >>conftest.$ac_ext <<_ACEOF | |
6653 | /* end confdefs.h. */ | |
6654 | #include <alloca.h> | |
6655 | int | |
6656 | main () | |
6657 | { | |
6658 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6659 | if (p) return 0; |
ad6254c5 AK |
6660 | ; |
6661 | return 0; | |
6662 | } | |
6663 | _ACEOF | |
6664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6665 | if { (ac_try="$ac_link" |
6666 | case "(($ac_try" in | |
6667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6668 | *) ac_try_echo=$ac_try;; | |
6669 | esac | |
ec6a6fbe AK |
6670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6671 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6672 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6673 | ac_status=$? |
8a2fc586 AK |
6674 | grep -v '^ *+' conftest.er1 >conftest.err |
6675 | rm -f conftest.er1 | |
6676 | cat conftest.err >&5 | |
ec6a6fbe | 6677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6678 | (exit $ac_status); } && { |
6679 | test -z "$ac_c_werror_flag" || | |
6680 | test ! -s conftest.err | |
ec6a6fbe AK |
6681 | } && test -s conftest$ac_exeext && { |
6682 | test "$cross_compiling" = yes || | |
6683 | $as_test_x conftest$ac_exeext | |
6684 | }; then | |
ad6254c5 AK |
6685 | ac_cv_working_alloca_h=yes |
6686 | else | |
ec6a6fbe | 6687 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6688 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6689 | |
7a197a62 | 6690 | ac_cv_working_alloca_h=no |
ad6254c5 | 6691 | fi |
7a197a62 | 6692 | |
ec6a6fbe | 6693 | rm -rf conftest.dSYM |
25fbec5b | 6694 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6695 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6696 | fi |
ec6a6fbe AK |
6697 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6698 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6699 | if test $ac_cv_working_alloca_h = yes; then |
6700 | ||
6701 | cat >>confdefs.h <<\_ACEOF | |
6702 | #define HAVE_ALLOCA_H 1 | |
6703 | _ACEOF | |
6704 | ||
6705 | fi | |
6706 | ||
ec6a6fbe AK |
6707 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6708 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6709 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6710 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6711 | else |
6712 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6713 | /* confdefs.h. */ |
6714 | _ACEOF | |
6715 | cat confdefs.h >>conftest.$ac_ext | |
6716 | cat >>conftest.$ac_ext <<_ACEOF | |
6717 | /* end confdefs.h. */ | |
6718 | #ifdef __GNUC__ | |
6719 | # define alloca __builtin_alloca | |
6720 | #else | |
6721 | # ifdef _MSC_VER | |
6722 | # include <malloc.h> | |
6723 | # define alloca _alloca | |
6724 | # else | |
25fbec5b | 6725 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6726 | # include <alloca.h> |
6727 | # else | |
6728 | # ifdef _AIX | |
6729 | #pragma alloca | |
6730 | # else | |
6731 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6732 | char *alloca (); | |
6733 | # endif | |
6734 | # endif | |
6735 | # endif | |
6736 | # endif | |
6737 | #endif | |
6738 | ||
6739 | int | |
6740 | main () | |
6741 | { | |
6742 | char *p = (char *) alloca (1); | |
7a197a62 | 6743 | if (p) return 0; |
ad6254c5 AK |
6744 | ; |
6745 | return 0; | |
6746 | } | |
6747 | _ACEOF | |
6748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6749 | if { (ac_try="$ac_link" |
6750 | case "(($ac_try" in | |
6751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6752 | *) ac_try_echo=$ac_try;; | |
6753 | esac | |
ec6a6fbe AK |
6754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6755 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6756 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6757 | ac_status=$? |
8a2fc586 AK |
6758 | grep -v '^ *+' conftest.er1 >conftest.err |
6759 | rm -f conftest.er1 | |
6760 | cat conftest.err >&5 | |
ec6a6fbe | 6761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6762 | (exit $ac_status); } && { |
6763 | test -z "$ac_c_werror_flag" || | |
6764 | test ! -s conftest.err | |
ec6a6fbe AK |
6765 | } && test -s conftest$ac_exeext && { |
6766 | test "$cross_compiling" = yes || | |
6767 | $as_test_x conftest$ac_exeext | |
6768 | }; then | |
ad6254c5 AK |
6769 | ac_cv_func_alloca_works=yes |
6770 | else | |
ec6a6fbe | 6771 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6772 | sed 's/^/| /' conftest.$ac_ext >&5 |
6773 | ||
7a197a62 | 6774 | ac_cv_func_alloca_works=no |
ad6254c5 | 6775 | fi |
7a197a62 | 6776 | |
ec6a6fbe | 6777 | rm -rf conftest.dSYM |
25fbec5b | 6778 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6779 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6780 | fi |
ec6a6fbe AK |
6781 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6782 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6783 | |
6784 | if test $ac_cv_func_alloca_works = yes; then | |
6785 | ||
6786 | cat >>confdefs.h <<\_ACEOF | |
6787 | #define HAVE_ALLOCA 1 | |
6788 | _ACEOF | |
6789 | ||
6790 | else | |
6791 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6792 | # that cause trouble. Some versions do not even contain alloca or | |
6793 | # contain a buggy version. If you still want to use their alloca, | |
6794 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6795 | ||
7a197a62 | 6796 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6797 | |
6798 | cat >>confdefs.h <<\_ACEOF | |
6799 | #define C_ALLOCA 1 | |
6800 | _ACEOF | |
6801 | ||
6802 | ||
ec6a6fbe AK |
6803 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6804 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6805 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6806 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6807 | else |
6808 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6809 | /* confdefs.h. */ |
6810 | _ACEOF | |
6811 | cat confdefs.h >>conftest.$ac_ext | |
6812 | cat >>conftest.$ac_ext <<_ACEOF | |
6813 | /* end confdefs.h. */ | |
7a197a62 | 6814 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6815 | webecray |
6816 | #else | |
6817 | wenotbecray | |
6818 | #endif | |
6819 | ||
6820 | _ACEOF | |
795ca3e5 | 6821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6822 | $EGREP "webecray" >/dev/null 2>&1; then |
6823 | ac_cv_os_cray=yes | |
6824 | else | |
6825 | ac_cv_os_cray=no | |
795ca3e5 AK |
6826 | fi |
6827 | rm -f conftest* | |
6828 | ||
795ca3e5 | 6829 | fi |
ec6a6fbe AK |
6830 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6831 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6832 | if test $ac_cv_os_cray = yes; then |
6833 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6834 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6835 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6836 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6837 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6838 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6839 | else |
6840 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6841 | /* confdefs.h. */ |
6842 | _ACEOF | |
6843 | cat confdefs.h >>conftest.$ac_ext | |
6844 | cat >>conftest.$ac_ext <<_ACEOF | |
6845 | /* end confdefs.h. */ | |
8a2fc586 AK |
6846 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6848 | #define $ac_func innocuous_$ac_func | |
6849 | ||
ad6254c5 AK |
6850 | /* System header to define __stub macros and hopefully few prototypes, |
6851 | which can conflict with char $ac_func (); below. | |
6852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6853 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6854 | |
ad6254c5 AK |
6855 | #ifdef __STDC__ |
6856 | # include <limits.h> | |
6857 | #else | |
6858 | # include <assert.h> | |
6859 | #endif | |
8a2fc586 AK |
6860 | |
6861 | #undef $ac_func | |
6862 | ||
7a197a62 AK |
6863 | /* Override any GCC internal prototype to avoid an error. |
6864 | Use char because int might match the return type of a GCC | |
6865 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6866 | #ifdef __cplusplus |
6867 | extern "C" | |
ad6254c5 | 6868 | #endif |
ad6254c5 AK |
6869 | char $ac_func (); |
6870 | /* The GNU C library defines this for functions which it implements | |
6871 | to always fail with ENOSYS. Some functions are actually named | |
6872 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6873 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6874 | choke me |
ad6254c5 AK |
6875 | #endif |
6876 | ||
6877 | int | |
6878 | main () | |
6879 | { | |
7a197a62 | 6880 | return $ac_func (); |
ad6254c5 AK |
6881 | ; |
6882 | return 0; | |
6883 | } | |
6884 | _ACEOF | |
6885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6886 | if { (ac_try="$ac_link" |
6887 | case "(($ac_try" in | |
6888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6889 | *) ac_try_echo=$ac_try;; | |
6890 | esac | |
ec6a6fbe AK |
6891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6892 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6893 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6894 | ac_status=$? |
8a2fc586 AK |
6895 | grep -v '^ *+' conftest.er1 >conftest.err |
6896 | rm -f conftest.er1 | |
6897 | cat conftest.err >&5 | |
ec6a6fbe | 6898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6899 | (exit $ac_status); } && { |
6900 | test -z "$ac_c_werror_flag" || | |
6901 | test ! -s conftest.err | |
ec6a6fbe AK |
6902 | } && test -s conftest$ac_exeext && { |
6903 | test "$cross_compiling" = yes || | |
6904 | $as_test_x conftest$ac_exeext | |
6905 | }; then | |
ad6254c5 AK |
6906 | eval "$as_ac_var=yes" |
6907 | else | |
ec6a6fbe | 6908 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6909 | sed 's/^/| /' conftest.$ac_ext >&5 |
6910 | ||
7a197a62 | 6911 | eval "$as_ac_var=no" |
ad6254c5 | 6912 | fi |
7a197a62 | 6913 | |
ec6a6fbe | 6914 | rm -rf conftest.dSYM |
25fbec5b | 6915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6916 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6917 | fi |
ec6a6fbe AK |
6918 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6919 | $as_echo "$as_val"'` | |
6920 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6921 | $as_echo "$ac_res" >&6; } | |
6922 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6923 | $as_echo "$as_val"'` | |
6924 | if test "x$as_val" = x""yes; then | |
80992638 | 6925 | |
ad6254c5 AK |
6926 | cat >>confdefs.h <<_ACEOF |
6927 | #define CRAY_STACKSEG_END $ac_func | |
6928 | _ACEOF | |
6929 | ||
6930 | break | |
6931 | fi | |
6932 | ||
6933 | done | |
6934 | fi | |
6935 | ||
ec6a6fbe AK |
6936 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6937 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6938 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6939 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6940 | else |
6941 | if test "$cross_compiling" = yes; then | |
6942 | ac_cv_c_stack_direction=0 | |
6943 | else | |
6944 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6945 | /* confdefs.h. */ |
6946 | _ACEOF | |
6947 | cat confdefs.h >>conftest.$ac_ext | |
6948 | cat >>conftest.$ac_ext <<_ACEOF | |
6949 | /* end confdefs.h. */ | |
7a197a62 | 6950 | $ac_includes_default |
ad6254c5 AK |
6951 | int |
6952 | find_stack_direction () | |
6953 | { | |
6954 | static char *addr = 0; | |
6955 | auto char dummy; | |
6956 | if (addr == 0) | |
6957 | { | |
6958 | addr = &dummy; | |
6959 | return find_stack_direction (); | |
6960 | } | |
6961 | else | |
6962 | return (&dummy > addr) ? 1 : -1; | |
6963 | } | |
6964 | ||
6965 | int | |
6966 | main () | |
6967 | { | |
7a197a62 | 6968 | return find_stack_direction () < 0; |
ad6254c5 AK |
6969 | } |
6970 | _ACEOF | |
6971 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6972 | if { (ac_try="$ac_link" |
6973 | case "(($ac_try" in | |
6974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6975 | *) ac_try_echo=$ac_try;; | |
6976 | esac | |
ec6a6fbe AK |
6977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6978 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6979 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6980 | ac_status=$? |
ec6a6fbe | 6981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6983 | { (case "(($ac_try" in |
6984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6985 | *) ac_try_echo=$ac_try;; | |
6986 | esac | |
ec6a6fbe AK |
6987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6988 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6989 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6990 | ac_status=$? |
ec6a6fbe | 6991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6992 | (exit $ac_status); }; }; then |
6993 | ac_cv_c_stack_direction=1 | |
6994 | else | |
ec6a6fbe AK |
6995 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6996 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6997 | sed 's/^/| /' conftest.$ac_ext >&5 |
6998 | ||
6999 | ( exit $ac_status ) | |
7000 | ac_cv_c_stack_direction=-1 | |
7001 | fi | |
ec6a6fbe | 7002 | rm -rf conftest.dSYM |
7a197a62 | 7003 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7004 | fi |
7a197a62 AK |
7005 | |
7006 | ||
ad6254c5 | 7007 | fi |
ec6a6fbe AK |
7008 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7009 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
7010 | |
7011 | cat >>confdefs.h <<_ACEOF | |
7012 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7013 | _ACEOF | |
7014 | ||
7015 | ||
7016 | fi | |
7017 | ||
ec6a6fbe AK |
7018 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
7019 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 7020 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 7021 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7022 | else |
7023 | if test "$cross_compiling" = yes; then | |
7024 | ac_cv_func_closedir_void=yes | |
7025 | else | |
7026 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7027 | /* confdefs.h. */ |
7028 | _ACEOF | |
7029 | cat confdefs.h >>conftest.$ac_ext | |
7030 | cat >>conftest.$ac_ext <<_ACEOF | |
7031 | /* end confdefs.h. */ | |
7032 | $ac_includes_default | |
7033 | #include <$ac_header_dirent> | |
7034 | #ifndef __cplusplus | |
7035 | int closedir (); | |
7036 | #endif | |
7037 | ||
7038 | int | |
7039 | main () | |
7040 | { | |
7a197a62 | 7041 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
7042 | ; |
7043 | return 0; | |
7044 | } | |
7045 | _ACEOF | |
7046 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7047 | if { (ac_try="$ac_link" |
7048 | case "(($ac_try" in | |
7049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7050 | *) ac_try_echo=$ac_try;; | |
7051 | esac | |
ec6a6fbe AK |
7052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7053 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7054 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7055 | ac_status=$? |
ec6a6fbe | 7056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7058 | { (case "(($ac_try" in |
7059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7060 | *) ac_try_echo=$ac_try;; | |
7061 | esac | |
ec6a6fbe AK |
7062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7063 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7064 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7065 | ac_status=$? |
ec6a6fbe | 7066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7067 | (exit $ac_status); }; }; then |
7068 | ac_cv_func_closedir_void=no | |
7069 | else | |
ec6a6fbe AK |
7070 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7071 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7072 | sed 's/^/| /' conftest.$ac_ext >&5 |
7073 | ||
7074 | ( exit $ac_status ) | |
7075 | ac_cv_func_closedir_void=yes | |
7076 | fi | |
ec6a6fbe | 7077 | rm -rf conftest.dSYM |
7a197a62 | 7078 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7079 | fi |
7a197a62 AK |
7080 | |
7081 | ||
ad6254c5 | 7082 | fi |
ec6a6fbe AK |
7083 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
7084 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
7085 | if test $ac_cv_func_closedir_void = yes; then |
7086 | ||
7087 | cat >>confdefs.h <<\_ACEOF | |
7088 | #define CLOSEDIR_VOID 1 | |
7089 | _ACEOF | |
7090 | ||
7091 | fi | |
7092 | ||
7093 | ||
7a197a62 | 7094 | for ac_header in vfork.h |
ad6254c5 | 7095 | do |
ec6a6fbe | 7096 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7097 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7098 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7099 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7100 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7101 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7102 | fi |
ec6a6fbe AK |
7103 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7104 | $as_echo "$as_val"'` | |
7105 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7106 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7107 | else |
7108 | # Is the header compilable? | |
ec6a6fbe AK |
7109 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7110 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7111 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7112 | /* confdefs.h. */ |
7113 | _ACEOF | |
7114 | cat confdefs.h >>conftest.$ac_ext | |
7115 | cat >>conftest.$ac_ext <<_ACEOF | |
7116 | /* end confdefs.h. */ | |
7117 | $ac_includes_default | |
7118 | #include <$ac_header> | |
7119 | _ACEOF | |
7120 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7121 | if { (ac_try="$ac_compile" |
7122 | case "(($ac_try" in | |
7123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7124 | *) ac_try_echo=$ac_try;; | |
7125 | esac | |
ec6a6fbe AK |
7126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7127 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7128 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7129 | ac_status=$? |
8a2fc586 AK |
7130 | grep -v '^ *+' conftest.er1 >conftest.err |
7131 | rm -f conftest.er1 | |
7132 | cat conftest.err >&5 | |
ec6a6fbe | 7133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7134 | (exit $ac_status); } && { |
7135 | test -z "$ac_c_werror_flag" || | |
7136 | test ! -s conftest.err | |
7137 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7138 | ac_header_compiler=yes |
7139 | else | |
ec6a6fbe | 7140 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7141 | sed 's/^/| /' conftest.$ac_ext >&5 |
7142 | ||
7a197a62 | 7143 | ac_header_compiler=no |
ad6254c5 | 7144 | fi |
7a197a62 AK |
7145 | |
7146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7147 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7148 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7149 | |
7150 | # Is the header present? | |
ec6a6fbe AK |
7151 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7152 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7153 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7154 | /* confdefs.h. */ |
7155 | _ACEOF | |
7156 | cat confdefs.h >>conftest.$ac_ext | |
7157 | cat >>conftest.$ac_ext <<_ACEOF | |
7158 | /* end confdefs.h. */ | |
7159 | #include <$ac_header> | |
7160 | _ACEOF | |
7a197a62 AK |
7161 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7162 | case "(($ac_try" in | |
7163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7164 | *) ac_try_echo=$ac_try;; | |
7165 | esac | |
ec6a6fbe AK |
7166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7167 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7168 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7169 | ac_status=$? |
7170 | grep -v '^ *+' conftest.er1 >conftest.err | |
7171 | rm -f conftest.er1 | |
7172 | cat conftest.err >&5 | |
ec6a6fbe | 7173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7174 | (exit $ac_status); } >/dev/null && { |
7175 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7176 | test ! -s conftest.err | |
7177 | }; then | |
ad6254c5 AK |
7178 | ac_header_preproc=yes |
7179 | else | |
ec6a6fbe | 7180 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7181 | sed 's/^/| /' conftest.$ac_ext >&5 |
7182 | ||
7183 | ac_header_preproc=no | |
7184 | fi | |
7a197a62 | 7185 | |
ad6254c5 | 7186 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7187 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7188 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7189 | |
7190 | # So? What about this header? | |
8a2fc586 AK |
7191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7192 | yes:no: ) | |
ec6a6fbe AK |
7193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7194 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7196 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7197 | ac_header_preproc=yes |
ad6254c5 | 7198 | ;; |
8a2fc586 | 7199 | no:yes:* ) |
ec6a6fbe AK |
7200 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7201 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7203 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7205 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7207 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7209 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7211 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7212 | |
ad6254c5 AK |
7213 | ;; |
7214 | esac | |
ec6a6fbe AK |
7215 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7216 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7217 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7218 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7219 | else |
8a2fc586 | 7220 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7221 | fi |
ec6a6fbe AK |
7222 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7223 | $as_echo "$as_val"'` | |
7224 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7225 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7226 | |
795ca3e5 | 7227 | fi |
ec6a6fbe AK |
7228 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7229 | $as_echo "$as_val"'` | |
7230 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7231 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7232 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7233 | _ACEOF |
7234 | ||
7235 | fi | |
7236 | ||
7237 | done | |
795ca3e5 | 7238 | |
ad6254c5 AK |
7239 | |
7240 | ||
7241 | for ac_func in fork vfork | |
7242 | do | |
ec6a6fbe AK |
7243 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7244 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7245 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7246 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7247 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7248 | else |
ad6254c5 | 7249 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7250 | /* confdefs.h. */ |
7251 | _ACEOF | |
7252 | cat confdefs.h >>conftest.$ac_ext | |
7253 | cat >>conftest.$ac_ext <<_ACEOF | |
7254 | /* end confdefs.h. */ | |
8a2fc586 AK |
7255 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7257 | #define $ac_func innocuous_$ac_func | |
7258 | ||
ad6254c5 AK |
7259 | /* System header to define __stub macros and hopefully few prototypes, |
7260 | which can conflict with char $ac_func (); below. | |
7261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7262 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7263 | |
ad6254c5 AK |
7264 | #ifdef __STDC__ |
7265 | # include <limits.h> | |
7266 | #else | |
7267 | # include <assert.h> | |
795ca3e5 | 7268 | #endif |
8a2fc586 AK |
7269 | |
7270 | #undef $ac_func | |
7271 | ||
7a197a62 AK |
7272 | /* Override any GCC internal prototype to avoid an error. |
7273 | Use char because int might match the return type of a GCC | |
7274 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7275 | #ifdef __cplusplus |
ad6254c5 | 7276 | extern "C" |
ad6254c5 | 7277 | #endif |
ad6254c5 AK |
7278 | char $ac_func (); |
7279 | /* The GNU C library defines this for functions which it implements | |
7280 | to always fail with ENOSYS. Some functions are actually named | |
7281 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7282 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7283 | choke me |
795ca3e5 AK |
7284 | #endif |
7285 | ||
ad6254c5 AK |
7286 | int |
7287 | main () | |
7288 | { | |
7a197a62 | 7289 | return $ac_func (); |
ad6254c5 AK |
7290 | ; |
7291 | return 0; | |
7292 | } | |
7293 | _ACEOF | |
7294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7295 | if { (ac_try="$ac_link" |
7296 | case "(($ac_try" in | |
7297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7298 | *) ac_try_echo=$ac_try;; | |
7299 | esac | |
ec6a6fbe AK |
7300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7301 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7302 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7303 | ac_status=$? |
8a2fc586 AK |
7304 | grep -v '^ *+' conftest.er1 >conftest.err |
7305 | rm -f conftest.er1 | |
7306 | cat conftest.err >&5 | |
ec6a6fbe | 7307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7308 | (exit $ac_status); } && { |
7309 | test -z "$ac_c_werror_flag" || | |
7310 | test ! -s conftest.err | |
ec6a6fbe AK |
7311 | } && test -s conftest$ac_exeext && { |
7312 | test "$cross_compiling" = yes || | |
7313 | $as_test_x conftest$ac_exeext | |
7314 | }; then | |
ad6254c5 | 7315 | eval "$as_ac_var=yes" |
795ca3e5 | 7316 | else |
ec6a6fbe | 7317 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7318 | sed 's/^/| /' conftest.$ac_ext >&5 |
7319 | ||
7a197a62 | 7320 | eval "$as_ac_var=no" |
795ca3e5 | 7321 | fi |
7a197a62 | 7322 | |
ec6a6fbe | 7323 | rm -rf conftest.dSYM |
25fbec5b | 7324 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7325 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7326 | fi |
ec6a6fbe AK |
7327 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7328 | $as_echo "$as_val"'` | |
7329 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7330 | $as_echo "$ac_res" >&6; } | |
7331 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7332 | $as_echo "$as_val"'` | |
7333 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7334 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7335 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7336 | _ACEOF |
7337 | ||
7338 | fi | |
7339 | done | |
7340 | ||
7341 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7342 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7343 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7344 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7345 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7346 | else |
7347 | if test "$cross_compiling" = yes; then | |
7348 | ac_cv_func_fork_works=cross | |
7349 | else | |
7350 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7351 | /* confdefs.h. */ |
7352 | _ACEOF | |
7353 | cat confdefs.h >>conftest.$ac_ext | |
7354 | cat >>conftest.$ac_ext <<_ACEOF | |
7355 | /* end confdefs.h. */ | |
7356 | $ac_includes_default | |
7357 | int | |
7358 | main () | |
7359 | { | |
7360 | ||
7361 | /* By Ruediger Kuhlmann. */ | |
7362 | return fork () < 0; | |
7363 | ||
7364 | ; | |
7365 | return 0; | |
7366 | } | |
ad6254c5 AK |
7367 | _ACEOF |
7368 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7369 | if { (ac_try="$ac_link" |
7370 | case "(($ac_try" in | |
7371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7372 | *) ac_try_echo=$ac_try;; | |
7373 | esac | |
ec6a6fbe AK |
7374 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7375 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7376 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7377 | ac_status=$? |
ec6a6fbe | 7378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7380 | { (case "(($ac_try" in |
7381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7382 | *) ac_try_echo=$ac_try;; | |
7383 | esac | |
ec6a6fbe AK |
7384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7385 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7386 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7387 | ac_status=$? |
ec6a6fbe | 7388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7389 | (exit $ac_status); }; }; then |
7390 | ac_cv_func_fork_works=yes | |
7391 | else | |
ec6a6fbe AK |
7392 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7393 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7394 | sed 's/^/| /' conftest.$ac_ext >&5 |
7395 | ||
7396 | ( exit $ac_status ) | |
7397 | ac_cv_func_fork_works=no | |
7398 | fi | |
ec6a6fbe | 7399 | rm -rf conftest.dSYM |
7a197a62 | 7400 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7401 | fi |
7a197a62 AK |
7402 | |
7403 | ||
ad6254c5 | 7404 | fi |
ec6a6fbe AK |
7405 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7406 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7407 | |
7408 | else | |
7409 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7410 | fi | |
7411 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7412 | case $host in | |
7413 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7414 | # Override, as these systems have only a dummy fork() stub | |
7415 | ac_cv_func_fork_works=no | |
7416 | ;; | |
7417 | *) | |
7418 | ac_cv_func_fork_works=yes | |
7419 | ;; | |
7420 | esac | |
ec6a6fbe AK |
7421 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7422 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7423 | fi |
7424 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7425 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7426 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7427 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7428 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7429 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7430 | else |
7431 | if test "$cross_compiling" = yes; then | |
7432 | ac_cv_func_vfork_works=cross | |
7433 | else | |
7434 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7435 | /* confdefs.h. */ |
7436 | _ACEOF | |
7437 | cat confdefs.h >>conftest.$ac_ext | |
7438 | cat >>conftest.$ac_ext <<_ACEOF | |
7439 | /* end confdefs.h. */ | |
7440 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7441 | $ac_includes_default |
ad6254c5 | 7442 | #include <sys/wait.h> |
25fbec5b | 7443 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7444 | # include <vfork.h> |
7445 | #endif | |
7446 | /* On some sparc systems, changes by the child to local and incoming | |
7447 | argument registers are propagated back to the parent. The compiler | |
7448 | is told about this with #include <vfork.h>, but some compilers | |
7449 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7450 | static variable whose address is put into a register that is | |
7451 | clobbered by the vfork. */ | |
7452 | static void | |
7453 | #ifdef __cplusplus | |
7454 | sparc_address_test (int arg) | |
7455 | # else | |
7456 | sparc_address_test (arg) int arg; | |
7457 | #endif | |
7458 | { | |
7459 | static pid_t child; | |
7460 | if (!child) { | |
7461 | child = vfork (); | |
7462 | if (child < 0) { | |
7463 | perror ("vfork"); | |
7464 | _exit(2); | |
7465 | } | |
7466 | if (!child) { | |
7467 | arg = getpid(); | |
7468 | write(-1, "", 0); | |
7469 | _exit (arg); | |
7470 | } | |
7471 | } | |
7472 | } | |
7473 | ||
7474 | int | |
7475 | main () | |
7476 | { | |
7477 | pid_t parent = getpid (); | |
7478 | pid_t child; | |
7479 | ||
7480 | sparc_address_test (0); | |
7481 | ||
7482 | child = vfork (); | |
7483 | ||
7484 | if (child == 0) { | |
7485 | /* Here is another test for sparc vfork register problems. This | |
7486 | test uses lots of local variables, at least as many local | |
7487 | variables as main has allocated so far including compiler | |
7488 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7489 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7490 | reuse the register of parent for one of the local variables, | |
7491 | since it will think that parent can't possibly be used any more | |
7492 | in this routine. Assigning to the local variable will thus | |
7493 | munge parent in the parent process. */ | |
7494 | pid_t | |
7495 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7496 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7497 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7498 | use the same hardware register for all 8 local variables. */ | |
7499 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7500 | || p != p5 || p != p6 || p != p7) | |
7501 | _exit(1); | |
7502 | ||
7503 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7504 | from child file descriptors. If the child closes a descriptor | |
7505 | before it execs or exits, this munges the parent's descriptor | |
7506 | as well. Test for this by closing stdout in the child. */ | |
7507 | _exit(close(fileno(stdout)) != 0); | |
7508 | } else { | |
7509 | int status; | |
7510 | struct stat st; | |
7511 | ||
7512 | while (wait(&status) != child) | |
7513 | ; | |
7a197a62 | 7514 | return ( |
ad6254c5 AK |
7515 | /* Was there some problem with vforking? */ |
7516 | child < 0 | |
7517 | ||
7518 | /* Did the child fail? (This shouldn't happen.) */ | |
7519 | || status | |
7520 | ||
7521 | /* Did the vfork/compiler bug occur? */ | |
7522 | || parent != getpid() | |
7523 | ||
7524 | /* Did the file descriptor bug occur? */ | |
7525 | || fstat(fileno(stdout), &st) != 0 | |
7526 | ); | |
7527 | } | |
7528 | } | |
7529 | _ACEOF | |
7530 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7531 | if { (ac_try="$ac_link" |
7532 | case "(($ac_try" in | |
7533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7534 | *) ac_try_echo=$ac_try;; | |
7535 | esac | |
ec6a6fbe AK |
7536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7537 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7538 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7539 | ac_status=$? |
ec6a6fbe | 7540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7542 | { (case "(($ac_try" in |
7543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7544 | *) ac_try_echo=$ac_try;; | |
7545 | esac | |
ec6a6fbe AK |
7546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7547 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7548 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7549 | ac_status=$? |
ec6a6fbe | 7550 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7551 | (exit $ac_status); }; }; then |
7552 | ac_cv_func_vfork_works=yes | |
7553 | else | |
ec6a6fbe AK |
7554 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7555 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7556 | sed 's/^/| /' conftest.$ac_ext >&5 |
7557 | ||
7558 | ( exit $ac_status ) | |
7559 | ac_cv_func_vfork_works=no | |
7560 | fi | |
ec6a6fbe | 7561 | rm -rf conftest.dSYM |
7a197a62 | 7562 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7563 | fi |
7a197a62 AK |
7564 | |
7565 | ||
ad6254c5 | 7566 | fi |
ec6a6fbe AK |
7567 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7568 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7569 | |
7570 | fi; | |
7571 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7572 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7573 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7574 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7575 | fi |
7576 | ||
7577 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7578 | ||
7579 | cat >>confdefs.h <<\_ACEOF | |
7580 | #define HAVE_WORKING_VFORK 1 | |
7581 | _ACEOF | |
7582 | ||
7583 | else | |
7584 | ||
7585 | cat >>confdefs.h <<\_ACEOF | |
7586 | #define vfork fork | |
7587 | _ACEOF | |
7588 | ||
7589 | fi | |
7590 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7591 | ||
7592 | cat >>confdefs.h <<\_ACEOF | |
7593 | #define HAVE_WORKING_FORK 1 | |
7594 | _ACEOF | |
7595 | ||
7596 | fi | |
7597 | ||
ec6a6fbe AK |
7598 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7599 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7600 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7601 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7602 | else |
7603 | rm -f conftest.sym conftest.file | |
7604 | echo >conftest.file | |
7605 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7606 | if test "$cross_compiling" = yes; then | |
7607 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7608 | else | |
7609 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7610 | /* confdefs.h. */ |
7611 | _ACEOF | |
7612 | cat confdefs.h >>conftest.$ac_ext | |
7613 | cat >>conftest.$ac_ext <<_ACEOF | |
7614 | /* end confdefs.h. */ | |
7615 | $ac_includes_default | |
7616 | int | |
7617 | main () | |
7618 | { | |
7619 | struct stat sbuf; | |
7620 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7621 | That is better in the sense that it means we will not |
7622 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7623 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7624 | ; |
7625 | return 0; | |
7626 | } | |
7627 | _ACEOF | |
7628 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7629 | if { (ac_try="$ac_link" |
7630 | case "(($ac_try" in | |
7631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7632 | *) ac_try_echo=$ac_try;; | |
7633 | esac | |
ec6a6fbe AK |
7634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7635 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7636 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7637 | ac_status=$? |
ec6a6fbe | 7638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7640 | { (case "(($ac_try" in |
7641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7642 | *) ac_try_echo=$ac_try;; | |
7643 | esac | |
ec6a6fbe AK |
7644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7645 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7646 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7647 | ac_status=$? |
ec6a6fbe | 7648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7649 | (exit $ac_status); }; }; then |
7650 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7651 | else | |
ec6a6fbe AK |
7652 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7653 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7654 | sed 's/^/| /' conftest.$ac_ext >&5 |
7655 | ||
7656 | ( exit $ac_status ) | |
7657 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7658 | fi | |
ec6a6fbe | 7659 | rm -rf conftest.dSYM |
7a197a62 | 7660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7661 | fi |
7a197a62 AK |
7662 | |
7663 | ||
ad6254c5 AK |
7664 | else |
7665 | # If the `ln -s' command failed, then we probably don't even | |
7666 | # have an lstat function. | |
7667 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7668 | fi | |
7669 | rm -f conftest.sym conftest.file | |
7670 | ||
7671 | fi | |
ec6a6fbe AK |
7672 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7673 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7674 | |
7675 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7676 | ||
7677 | cat >>confdefs.h <<_ACEOF | |
7678 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7679 | _ACEOF | |
7680 | ||
7681 | ||
7682 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7683 | case " $LIBOBJS " in |
8a2fc586 | 7684 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7685 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7686 | ;; | |
8a2fc586 AK |
7687 | esac |
7688 | ||
ad6254c5 AK |
7689 | fi |
7690 | ||
ec6a6fbe AK |
7691 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7692 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7693 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7694 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7695 | else |
7696 | if test "$cross_compiling" = yes; then | |
7697 | ac_cv_func_lstat_empty_string_bug=yes | |
7698 | else | |
7699 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7700 | /* confdefs.h. */ |
7701 | _ACEOF | |
7702 | cat confdefs.h >>conftest.$ac_ext | |
7703 | cat >>conftest.$ac_ext <<_ACEOF | |
7704 | /* end confdefs.h. */ | |
7705 | $ac_includes_default | |
7706 | int | |
7707 | main () | |
7708 | { | |
7709 | struct stat sbuf; | |
7a197a62 | 7710 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7711 | ; |
7712 | return 0; | |
7713 | } | |
7714 | _ACEOF | |
7715 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7716 | if { (ac_try="$ac_link" |
7717 | case "(($ac_try" in | |
7718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7719 | *) ac_try_echo=$ac_try;; | |
7720 | esac | |
ec6a6fbe AK |
7721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7722 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7723 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7724 | ac_status=$? |
ec6a6fbe | 7725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7727 | { (case "(($ac_try" in |
7728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7729 | *) ac_try_echo=$ac_try;; | |
7730 | esac | |
ec6a6fbe AK |
7731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7732 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7733 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7734 | ac_status=$? |
ec6a6fbe | 7735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7736 | (exit $ac_status); }; }; then |
7a197a62 | 7737 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7738 | else |
ec6a6fbe AK |
7739 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7740 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7741 | sed 's/^/| /' conftest.$ac_ext >&5 |
7742 | ||
7743 | ( exit $ac_status ) | |
7a197a62 | 7744 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7745 | fi |
ec6a6fbe | 7746 | rm -rf conftest.dSYM |
7a197a62 | 7747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7748 | fi |
7a197a62 AK |
7749 | |
7750 | ||
ad6254c5 | 7751 | fi |
ec6a6fbe AK |
7752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7753 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7754 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7755 | case " $LIBOBJS " in |
8a2fc586 | 7756 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7757 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7758 | ;; | |
8a2fc586 AK |
7759 | esac |
7760 | ||
ad6254c5 AK |
7761 | |
7762 | cat >>confdefs.h <<_ACEOF | |
7763 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7764 | _ACEOF | |
7765 | ||
7766 | fi | |
7767 | ||
7768 | ||
7769 | for ac_header in stdlib.h | |
7770 | do | |
ec6a6fbe | 7771 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7772 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7773 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7774 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7775 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7776 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7777 | fi |
ec6a6fbe AK |
7778 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7779 | $as_echo "$as_val"'` | |
7780 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7781 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7782 | else |
7783 | # Is the header compilable? | |
ec6a6fbe AK |
7784 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7785 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7786 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7787 | /* confdefs.h. */ |
7788 | _ACEOF | |
7789 | cat confdefs.h >>conftest.$ac_ext | |
7790 | cat >>conftest.$ac_ext <<_ACEOF | |
7791 | /* end confdefs.h. */ | |
7792 | $ac_includes_default | |
7793 | #include <$ac_header> | |
7794 | _ACEOF | |
7795 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7796 | if { (ac_try="$ac_compile" |
7797 | case "(($ac_try" in | |
7798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7799 | *) ac_try_echo=$ac_try;; | |
7800 | esac | |
ec6a6fbe AK |
7801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7802 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7803 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7804 | ac_status=$? |
8a2fc586 AK |
7805 | grep -v '^ *+' conftest.er1 >conftest.err |
7806 | rm -f conftest.er1 | |
7807 | cat conftest.err >&5 | |
ec6a6fbe | 7808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7809 | (exit $ac_status); } && { |
7810 | test -z "$ac_c_werror_flag" || | |
7811 | test ! -s conftest.err | |
7812 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7813 | ac_header_compiler=yes |
7814 | else | |
ec6a6fbe | 7815 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7816 | sed 's/^/| /' conftest.$ac_ext >&5 |
7817 | ||
7a197a62 | 7818 | ac_header_compiler=no |
ad6254c5 | 7819 | fi |
7a197a62 AK |
7820 | |
7821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7822 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7823 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7824 | |
7825 | # Is the header present? | |
ec6a6fbe AK |
7826 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7827 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7828 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7829 | /* confdefs.h. */ |
7830 | _ACEOF | |
7831 | cat confdefs.h >>conftest.$ac_ext | |
7832 | cat >>conftest.$ac_ext <<_ACEOF | |
7833 | /* end confdefs.h. */ | |
7834 | #include <$ac_header> | |
7835 | _ACEOF | |
7a197a62 AK |
7836 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7837 | case "(($ac_try" in | |
7838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7839 | *) ac_try_echo=$ac_try;; | |
7840 | esac | |
ec6a6fbe AK |
7841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7842 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7844 | ac_status=$? |
7845 | grep -v '^ *+' conftest.er1 >conftest.err | |
7846 | rm -f conftest.er1 | |
7847 | cat conftest.err >&5 | |
ec6a6fbe | 7848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7849 | (exit $ac_status); } >/dev/null && { |
7850 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7851 | test ! -s conftest.err | |
7852 | }; then | |
ad6254c5 AK |
7853 | ac_header_preproc=yes |
7854 | else | |
ec6a6fbe | 7855 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7856 | sed 's/^/| /' conftest.$ac_ext >&5 |
7857 | ||
7858 | ac_header_preproc=no | |
7859 | fi | |
7a197a62 | 7860 | |
ad6254c5 | 7861 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7862 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7863 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7864 | |
7865 | # So? What about this header? | |
8a2fc586 AK |
7866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7867 | yes:no: ) | |
ec6a6fbe AK |
7868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7869 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7871 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7872 | ac_header_preproc=yes |
ad6254c5 | 7873 | ;; |
8a2fc586 | 7874 | no:yes:* ) |
ec6a6fbe AK |
7875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7876 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7878 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7880 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7882 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7884 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7886 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7887 | |
ad6254c5 AK |
7888 | ;; |
7889 | esac | |
ec6a6fbe AK |
7890 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7891 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7893 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7894 | else |
8a2fc586 | 7895 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7896 | fi |
ec6a6fbe AK |
7897 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7898 | $as_echo "$as_val"'` | |
7899 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7900 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7901 | |
7902 | fi | |
ec6a6fbe AK |
7903 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7904 | $as_echo "$as_val"'` | |
7905 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7906 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7907 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7908 | _ACEOF |
7909 | ||
7910 | fi | |
7911 | ||
7912 | done | |
7913 | ||
ec6a6fbe AK |
7914 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7915 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7916 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7917 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7918 | else |
7919 | if test "$cross_compiling" = yes; then | |
7920 | ac_cv_func_malloc_0_nonnull=no | |
7921 | else | |
7922 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7923 | /* confdefs.h. */ |
7924 | _ACEOF | |
7925 | cat confdefs.h >>conftest.$ac_ext | |
7926 | cat >>conftest.$ac_ext <<_ACEOF | |
7927 | /* end confdefs.h. */ | |
25fbec5b | 7928 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7929 | # include <stdlib.h> |
7930 | #else | |
7931 | char *malloc (); | |
7932 | #endif | |
7933 | ||
7934 | int | |
7935 | main () | |
7936 | { | |
7a197a62 | 7937 | return ! malloc (0); |
ad6254c5 AK |
7938 | ; |
7939 | return 0; | |
7940 | } | |
7941 | _ACEOF | |
7942 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7943 | if { (ac_try="$ac_link" |
7944 | case "(($ac_try" in | |
7945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7946 | *) ac_try_echo=$ac_try;; | |
7947 | esac | |
ec6a6fbe AK |
7948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7949 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7950 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7951 | ac_status=$? |
ec6a6fbe | 7952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7953 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7954 | { (case "(($ac_try" in |
7955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7956 | *) ac_try_echo=$ac_try;; | |
7957 | esac | |
ec6a6fbe AK |
7958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7959 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7960 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7961 | ac_status=$? |
ec6a6fbe | 7962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7963 | (exit $ac_status); }; }; then |
7964 | ac_cv_func_malloc_0_nonnull=yes | |
7965 | else | |
ec6a6fbe AK |
7966 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7967 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7968 | sed 's/^/| /' conftest.$ac_ext >&5 |
7969 | ||
7970 | ( exit $ac_status ) | |
7971 | ac_cv_func_malloc_0_nonnull=no | |
7972 | fi | |
ec6a6fbe | 7973 | rm -rf conftest.dSYM |
7a197a62 | 7974 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7975 | fi |
7a197a62 AK |
7976 | |
7977 | ||
ad6254c5 | 7978 | fi |
ec6a6fbe AK |
7979 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7980 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7981 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7982 | ||
7983 | cat >>confdefs.h <<\_ACEOF | |
7984 | #define HAVE_MALLOC 1 | |
7985 | _ACEOF | |
7986 | ||
7987 | else | |
7988 | cat >>confdefs.h <<\_ACEOF | |
7989 | #define HAVE_MALLOC 0 | |
7990 | _ACEOF | |
7991 | ||
7a197a62 | 7992 | case " $LIBOBJS " in |
8a2fc586 | 7993 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7994 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7995 | ;; | |
8a2fc586 AK |
7996 | esac |
7997 | ||
ad6254c5 AK |
7998 | |
7999 | cat >>confdefs.h <<\_ACEOF | |
8000 | #define malloc rpl_malloc | |
8001 | _ACEOF | |
8002 | ||
8003 | fi | |
8004 | ||
8005 | ||
8006 | ||
ec6a6fbe AK |
8007 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
8008 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 8009 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 8010 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8011 | else |
8012 | if test "$cross_compiling" = yes; then | |
8013 | ac_cv_func_memcmp_working=no | |
8014 | else | |
8015 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8016 | /* confdefs.h. */ |
8017 | _ACEOF | |
8018 | cat confdefs.h >>conftest.$ac_ext | |
8019 | cat >>conftest.$ac_ext <<_ACEOF | |
8020 | /* end confdefs.h. */ | |
8a2fc586 | 8021 | $ac_includes_default |
ad6254c5 AK |
8022 | int |
8023 | main () | |
8024 | { | |
8025 | ||
8026 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 8027 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 8028 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 8029 | return 1; |
ad6254c5 AK |
8030 | |
8031 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8032 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8033 | William Lewis provided this test program. */ | |
8034 | { | |
8035 | char foo[21]; | |
8036 | char bar[21]; | |
8037 | int i; | |
8038 | for (i = 0; i < 4; i++) | |
8039 | { | |
8a2fc586 AK |
8040 | char *a = foo + i; |
8041 | char *b = bar + i; | |
8042 | strcpy (a, "--------01111111"); | |
8043 | strcpy (b, "--------10000000"); | |
8044 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 8045 | return 1; |
ad6254c5 | 8046 | } |
7a197a62 | 8047 | return 0; |
ad6254c5 AK |
8048 | } |
8049 | ||
8050 | ; | |
8051 | return 0; | |
8052 | } | |
8053 | _ACEOF | |
8054 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8055 | if { (ac_try="$ac_link" |
8056 | case "(($ac_try" in | |
8057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8058 | *) ac_try_echo=$ac_try;; | |
8059 | esac | |
ec6a6fbe AK |
8060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8061 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8062 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8063 | ac_status=$? |
ec6a6fbe | 8064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8066 | { (case "(($ac_try" in |
8067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8068 | *) ac_try_echo=$ac_try;; | |
8069 | esac | |
ec6a6fbe AK |
8070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8071 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8072 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8073 | ac_status=$? |
ec6a6fbe | 8074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8075 | (exit $ac_status); }; }; then |
8076 | ac_cv_func_memcmp_working=yes | |
8077 | else | |
ec6a6fbe AK |
8078 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8079 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8080 | sed 's/^/| /' conftest.$ac_ext >&5 |
8081 | ||
8082 | ( exit $ac_status ) | |
8083 | ac_cv_func_memcmp_working=no | |
8084 | fi | |
ec6a6fbe | 8085 | rm -rf conftest.dSYM |
7a197a62 | 8086 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8087 | fi |
7a197a62 AK |
8088 | |
8089 | ||
ad6254c5 | 8090 | fi |
ec6a6fbe AK |
8091 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
8092 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 8093 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 8094 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
8095 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8096 | ;; | |
8a2fc586 AK |
8097 | esac |
8098 | ||
ad6254c5 AK |
8099 | |
8100 | ||
8101 | ||
8102 | for ac_header in stdlib.h unistd.h | |
8103 | do | |
ec6a6fbe | 8104 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8106 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8107 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8108 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8109 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8110 | fi |
ec6a6fbe AK |
8111 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8112 | $as_echo "$as_val"'` | |
8113 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8114 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8115 | else |
8116 | # Is the header compilable? | |
ec6a6fbe AK |
8117 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8118 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8119 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8120 | /* confdefs.h. */ |
8121 | _ACEOF | |
8122 | cat confdefs.h >>conftest.$ac_ext | |
8123 | cat >>conftest.$ac_ext <<_ACEOF | |
8124 | /* end confdefs.h. */ | |
8125 | $ac_includes_default | |
8126 | #include <$ac_header> | |
8127 | _ACEOF | |
8128 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8129 | if { (ac_try="$ac_compile" |
8130 | case "(($ac_try" in | |
8131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8132 | *) ac_try_echo=$ac_try;; | |
8133 | esac | |
ec6a6fbe AK |
8134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8135 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8136 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8137 | ac_status=$? |
8a2fc586 AK |
8138 | grep -v '^ *+' conftest.er1 >conftest.err |
8139 | rm -f conftest.er1 | |
8140 | cat conftest.err >&5 | |
ec6a6fbe | 8141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8142 | (exit $ac_status); } && { |
8143 | test -z "$ac_c_werror_flag" || | |
8144 | test ! -s conftest.err | |
8145 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8146 | ac_header_compiler=yes |
8147 | else | |
ec6a6fbe | 8148 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8149 | sed 's/^/| /' conftest.$ac_ext >&5 |
8150 | ||
7a197a62 | 8151 | ac_header_compiler=no |
ad6254c5 | 8152 | fi |
7a197a62 AK |
8153 | |
8154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8155 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8156 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8157 | |
8158 | # Is the header present? | |
ec6a6fbe AK |
8159 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8160 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8161 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8162 | /* confdefs.h. */ |
8163 | _ACEOF | |
8164 | cat confdefs.h >>conftest.$ac_ext | |
8165 | cat >>conftest.$ac_ext <<_ACEOF | |
8166 | /* end confdefs.h. */ | |
8167 | #include <$ac_header> | |
8168 | _ACEOF | |
7a197a62 AK |
8169 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8170 | case "(($ac_try" in | |
8171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8172 | *) ac_try_echo=$ac_try;; | |
8173 | esac | |
ec6a6fbe AK |
8174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8175 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8176 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8177 | ac_status=$? |
8178 | grep -v '^ *+' conftest.er1 >conftest.err | |
8179 | rm -f conftest.er1 | |
8180 | cat conftest.err >&5 | |
ec6a6fbe | 8181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8182 | (exit $ac_status); } >/dev/null && { |
8183 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8184 | test ! -s conftest.err | |
8185 | }; then | |
ad6254c5 AK |
8186 | ac_header_preproc=yes |
8187 | else | |
ec6a6fbe | 8188 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8189 | sed 's/^/| /' conftest.$ac_ext >&5 |
8190 | ||
8191 | ac_header_preproc=no | |
8192 | fi | |
7a197a62 | 8193 | |
ad6254c5 | 8194 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8195 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8196 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8197 | |
8198 | # So? What about this header? | |
8a2fc586 AK |
8199 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8200 | yes:no: ) | |
ec6a6fbe AK |
8201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8202 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8203 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8204 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8205 | ac_header_preproc=yes |
ad6254c5 | 8206 | ;; |
8a2fc586 | 8207 | no:yes:* ) |
ec6a6fbe AK |
8208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8209 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8211 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8212 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8213 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8215 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8216 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8217 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8218 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8219 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8220 | |
ad6254c5 AK |
8221 | ;; |
8222 | esac | |
ec6a6fbe AK |
8223 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8224 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8225 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8226 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8227 | else |
8a2fc586 | 8228 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8229 | fi |
ec6a6fbe AK |
8230 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8231 | $as_echo "$as_val"'` | |
8232 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8233 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8234 | |
8235 | fi | |
ec6a6fbe AK |
8236 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8237 | $as_echo "$as_val"'` | |
8238 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8239 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8240 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8241 | _ACEOF |
8242 | ||
8243 | fi | |
8244 | ||
8245 | done | |
8246 | ||
8247 | ||
8248 | for ac_func in getpagesize | |
8249 | do | |
ec6a6fbe AK |
8250 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8251 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8252 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8253 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8254 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8255 | else |
8256 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8257 | /* confdefs.h. */ |
8258 | _ACEOF | |
8259 | cat confdefs.h >>conftest.$ac_ext | |
8260 | cat >>conftest.$ac_ext <<_ACEOF | |
8261 | /* end confdefs.h. */ | |
8a2fc586 AK |
8262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8264 | #define $ac_func innocuous_$ac_func | |
8265 | ||
ad6254c5 AK |
8266 | /* System header to define __stub macros and hopefully few prototypes, |
8267 | which can conflict with char $ac_func (); below. | |
8268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8269 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8270 | |
ad6254c5 AK |
8271 | #ifdef __STDC__ |
8272 | # include <limits.h> | |
8273 | #else | |
8274 | # include <assert.h> | |
8275 | #endif | |
8a2fc586 AK |
8276 | |
8277 | #undef $ac_func | |
8278 | ||
7a197a62 AK |
8279 | /* Override any GCC internal prototype to avoid an error. |
8280 | Use char because int might match the return type of a GCC | |
8281 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8282 | #ifdef __cplusplus |
8283 | extern "C" | |
ad6254c5 | 8284 | #endif |
ad6254c5 AK |
8285 | char $ac_func (); |
8286 | /* The GNU C library defines this for functions which it implements | |
8287 | to always fail with ENOSYS. Some functions are actually named | |
8288 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8289 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8290 | choke me |
ad6254c5 AK |
8291 | #endif |
8292 | ||
8293 | int | |
8294 | main () | |
8295 | { | |
7a197a62 | 8296 | return $ac_func (); |
ad6254c5 AK |
8297 | ; |
8298 | return 0; | |
8299 | } | |
8300 | _ACEOF | |
8301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8302 | if { (ac_try="$ac_link" |
8303 | case "(($ac_try" in | |
8304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8305 | *) ac_try_echo=$ac_try;; | |
8306 | esac | |
ec6a6fbe AK |
8307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8308 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8309 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8310 | ac_status=$? |
8a2fc586 AK |
8311 | grep -v '^ *+' conftest.er1 >conftest.err |
8312 | rm -f conftest.er1 | |
8313 | cat conftest.err >&5 | |
ec6a6fbe | 8314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8315 | (exit $ac_status); } && { |
8316 | test -z "$ac_c_werror_flag" || | |
8317 | test ! -s conftest.err | |
ec6a6fbe AK |
8318 | } && test -s conftest$ac_exeext && { |
8319 | test "$cross_compiling" = yes || | |
8320 | $as_test_x conftest$ac_exeext | |
8321 | }; then | |
ad6254c5 AK |
8322 | eval "$as_ac_var=yes" |
8323 | else | |
ec6a6fbe | 8324 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8325 | sed 's/^/| /' conftest.$ac_ext >&5 |
8326 | ||
7a197a62 | 8327 | eval "$as_ac_var=no" |
ad6254c5 | 8328 | fi |
7a197a62 | 8329 | |
ec6a6fbe | 8330 | rm -rf conftest.dSYM |
25fbec5b | 8331 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8332 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8333 | fi |
ec6a6fbe AK |
8334 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8335 | $as_echo "$as_val"'` | |
8336 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8337 | $as_echo "$ac_res" >&6; } | |
8338 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8339 | $as_echo "$as_val"'` | |
8340 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8341 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8342 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8343 | _ACEOF |
8344 | ||
8345 | fi | |
8346 | done | |
8347 | ||
ec6a6fbe AK |
8348 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8349 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8350 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8351 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8352 | else |
8353 | if test "$cross_compiling" = yes; then | |
8354 | ac_cv_func_mmap_fixed_mapped=no | |
8355 | else | |
8356 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8357 | /* confdefs.h. */ |
8358 | _ACEOF | |
8359 | cat confdefs.h >>conftest.$ac_ext | |
8360 | cat >>conftest.$ac_ext <<_ACEOF | |
8361 | /* end confdefs.h. */ | |
8362 | $ac_includes_default | |
8363 | /* malloc might have been renamed as rpl_malloc. */ | |
8364 | #undef malloc | |
8365 | ||
8366 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8367 | Here is a matrix of mmap possibilities: | |
8368 | mmap private not fixed | |
8369 | mmap private fixed at somewhere currently unmapped | |
8370 | mmap private fixed at somewhere already mapped | |
8371 | mmap shared not fixed | |
8372 | mmap shared fixed at somewhere currently unmapped | |
8373 | mmap shared fixed at somewhere already mapped | |
8374 | For private mappings, we should verify that changes cannot be read() | |
8375 | back from the file, nor mmap's back from the file at a different | |
8376 | address. (There have been systems where private was not correctly | |
8377 | implemented like the infamous i386 svr4.0, and systems where the | |
8378 | VM page cache was not coherent with the file system buffer cache | |
8379 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8380 | For shared mappings, we should conversely verify that changes get | |
8381 | propagated back to all the places they're supposed to be. | |
8382 | ||
8383 | Grep wants private fixed already mapped. | |
8384 | The main things grep needs to know about mmap are: | |
8385 | * does it exist and is it safe to write into the mmap'd area | |
8386 | * how to use it (BSD variants) */ | |
8387 | ||
8388 | #include <fcntl.h> | |
8389 | #include <sys/mman.h> | |
8390 | ||
25fbec5b | 8391 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8392 | char *malloc (); |
8393 | #endif | |
8394 | ||
8395 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8396 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8397 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8398 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8399 | # define HAVE_SYS_PARAM_H 1 |
8400 | # endif | |
8401 | ||
8402 | # ifdef _SC_PAGESIZE | |
8403 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8404 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8405 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8406 | # include <sys/param.h> |
8407 | # ifdef EXEC_PAGESIZE | |
8408 | # define getpagesize() EXEC_PAGESIZE | |
8409 | # else /* no EXEC_PAGESIZE */ | |
8410 | # ifdef NBPG | |
8411 | # define getpagesize() NBPG * CLSIZE | |
8412 | # ifndef CLSIZE | |
8413 | # define CLSIZE 1 | |
8414 | # endif /* no CLSIZE */ | |
8415 | # else /* no NBPG */ | |
8416 | # ifdef NBPC | |
8417 | # define getpagesize() NBPC | |
8418 | # else /* no NBPC */ | |
8419 | # ifdef PAGESIZE | |
8420 | # define getpagesize() PAGESIZE | |
8421 | # endif /* PAGESIZE */ | |
8422 | # endif /* no NBPC */ | |
8423 | # endif /* no NBPG */ | |
8424 | # endif /* no EXEC_PAGESIZE */ | |
8425 | # else /* no HAVE_SYS_PARAM_H */ | |
8426 | # define getpagesize() 8192 /* punt totally */ | |
8427 | # endif /* no HAVE_SYS_PARAM_H */ | |
8428 | # endif /* no _SC_PAGESIZE */ | |
8429 | ||
8430 | #endif /* no HAVE_GETPAGESIZE */ | |
8431 | ||
8432 | int | |
8433 | main () | |
8434 | { | |
8435 | char *data, *data2, *data3; | |
8436 | int i, pagesize; | |
8437 | int fd; | |
8438 | ||
8439 | pagesize = getpagesize (); | |
8440 | ||
8441 | /* First, make a file with some known garbage in it. */ | |
8442 | data = (char *) malloc (pagesize); | |
8443 | if (!data) | |
7a197a62 | 8444 | return 1; |
ad6254c5 AK |
8445 | for (i = 0; i < pagesize; ++i) |
8446 | *(data + i) = rand (); | |
8447 | umask (0); | |
8448 | fd = creat ("conftest.mmap", 0600); | |
8449 | if (fd < 0) | |
7a197a62 | 8450 | return 1; |
ad6254c5 | 8451 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8452 | return 1; |
ad6254c5 AK |
8453 | close (fd); |
8454 | ||
8455 | /* Next, try to mmap the file at a fixed address which already has | |
8456 | something else allocated at it. If we can, also make sure that | |
8457 | we see the same garbage. */ | |
8458 | fd = open ("conftest.mmap", O_RDWR); | |
8459 | if (fd < 0) | |
7a197a62 | 8460 | return 1; |
ad6254c5 AK |
8461 | data2 = (char *) malloc (2 * pagesize); |
8462 | if (!data2) | |
7a197a62 AK |
8463 | return 1; |
8464 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8465 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8466 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8467 | return 1; |
ad6254c5 AK |
8468 | for (i = 0; i < pagesize; ++i) |
8469 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8470 | return 1; |
ad6254c5 AK |
8471 | |
8472 | /* Finally, make sure that changes to the mapped area do not | |
8473 | percolate back to the file as seen by read(). (This is a bug on | |
8474 | some variants of i386 svr4.0.) */ | |
8475 | for (i = 0; i < pagesize; ++i) | |
8476 | *(data2 + i) = *(data2 + i) + 1; | |
8477 | data3 = (char *) malloc (pagesize); | |
8478 | if (!data3) | |
7a197a62 | 8479 | return 1; |
ad6254c5 | 8480 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8481 | return 1; |
ad6254c5 AK |
8482 | for (i = 0; i < pagesize; ++i) |
8483 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8484 | return 1; |
ad6254c5 | 8485 | close (fd); |
7a197a62 | 8486 | return 0; |
ad6254c5 AK |
8487 | } |
8488 | _ACEOF | |
8489 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8490 | if { (ac_try="$ac_link" |
8491 | case "(($ac_try" in | |
8492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8493 | *) ac_try_echo=$ac_try;; | |
8494 | esac | |
ec6a6fbe AK |
8495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8496 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8497 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8498 | ac_status=$? |
ec6a6fbe | 8499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8501 | { (case "(($ac_try" in |
8502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8503 | *) ac_try_echo=$ac_try;; | |
8504 | esac | |
ec6a6fbe AK |
8505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8506 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8507 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8508 | ac_status=$? |
ec6a6fbe | 8509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8510 | (exit $ac_status); }; }; then |
8511 | ac_cv_func_mmap_fixed_mapped=yes | |
8512 | else | |
ec6a6fbe AK |
8513 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8514 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
8516 | ||
8517 | ( exit $ac_status ) | |
8518 | ac_cv_func_mmap_fixed_mapped=no | |
8519 | fi | |
ec6a6fbe | 8520 | rm -rf conftest.dSYM |
7a197a62 | 8521 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8522 | fi |
7a197a62 AK |
8523 | |
8524 | ||
ad6254c5 | 8525 | fi |
ec6a6fbe AK |
8526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8527 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8528 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8529 | ||
8530 | cat >>confdefs.h <<\_ACEOF | |
8531 | #define HAVE_MMAP 1 | |
8532 | _ACEOF | |
8533 | ||
8534 | fi | |
8535 | rm -f conftest.mmap | |
8536 | ||
ec6a6fbe AK |
8537 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8538 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8539 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8540 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8541 | else |
8542 | if test "$cross_compiling" = yes; then | |
8543 | ac_cv_func_stat_empty_string_bug=yes | |
8544 | else | |
8545 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8546 | /* confdefs.h. */ |
8547 | _ACEOF | |
8548 | cat confdefs.h >>conftest.$ac_ext | |
8549 | cat >>conftest.$ac_ext <<_ACEOF | |
8550 | /* end confdefs.h. */ | |
8551 | $ac_includes_default | |
8552 | int | |
8553 | main () | |
8554 | { | |
8555 | struct stat sbuf; | |
7a197a62 | 8556 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8557 | ; |
8558 | return 0; | |
8559 | } | |
8560 | _ACEOF | |
8561 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8562 | if { (ac_try="$ac_link" |
8563 | case "(($ac_try" in | |
8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8565 | *) ac_try_echo=$ac_try;; | |
8566 | esac | |
ec6a6fbe AK |
8567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8568 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8569 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8570 | ac_status=$? |
ec6a6fbe | 8571 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8573 | { (case "(($ac_try" in |
8574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8575 | *) ac_try_echo=$ac_try;; | |
8576 | esac | |
ec6a6fbe AK |
8577 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8578 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8579 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8580 | ac_status=$? |
ec6a6fbe | 8581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8582 | (exit $ac_status); }; }; then |
7a197a62 | 8583 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8584 | else |
ec6a6fbe AK |
8585 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8586 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8587 | sed 's/^/| /' conftest.$ac_ext >&5 |
8588 | ||
8589 | ( exit $ac_status ) | |
7a197a62 | 8590 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8591 | fi |
ec6a6fbe | 8592 | rm -rf conftest.dSYM |
7a197a62 | 8593 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8594 | fi |
7a197a62 AK |
8595 | |
8596 | ||
ad6254c5 | 8597 | fi |
ec6a6fbe AK |
8598 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8599 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8600 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8601 | case " $LIBOBJS " in |
8a2fc586 | 8602 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8603 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8604 | ;; | |
8a2fc586 AK |
8605 | esac |
8606 | ||
ad6254c5 AK |
8607 | |
8608 | cat >>confdefs.h <<_ACEOF | |
8609 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8610 | _ACEOF | |
8611 | ||
8612 | fi | |
8613 | ||
ec6a6fbe AK |
8614 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8615 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8616 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8617 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8618 | else |
8619 | if test "$cross_compiling" = yes; then | |
8620 | ac_cv_func_strtod=no | |
8621 | else | |
8622 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8623 | /* confdefs.h. */ |
8624 | _ACEOF | |
8625 | cat confdefs.h >>conftest.$ac_ext | |
8626 | cat >>conftest.$ac_ext <<_ACEOF | |
8627 | /* end confdefs.h. */ | |
8628 | ||
7a197a62 AK |
8629 | $ac_includes_default |
8630 | #ifndef strtod | |
ad6254c5 | 8631 | double strtod (); |
7a197a62 | 8632 | #endif |
ad6254c5 AK |
8633 | int |
8634 | main() | |
8635 | { | |
8636 | { | |
8637 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8638 | char *string = " +69"; | |
8639 | char *term; | |
8640 | double value; | |
8641 | value = strtod (string, &term); | |
8642 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8643 | return 1; |
ad6254c5 AK |
8644 | } |
8645 | ||
8646 | { | |
8647 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8648 | terminating character under some conditions. */ | |
8649 | char *string = "NaN"; | |
8650 | char *term; | |
8651 | strtod (string, &term); | |
8652 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8653 | return 1; |
ad6254c5 | 8654 | } |
7a197a62 | 8655 | return 0; |
ad6254c5 AK |
8656 | } |
8657 | ||
8658 | _ACEOF | |
8659 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8660 | if { (ac_try="$ac_link" |
8661 | case "(($ac_try" in | |
8662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8663 | *) ac_try_echo=$ac_try;; | |
8664 | esac | |
ec6a6fbe AK |
8665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8666 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8667 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8668 | ac_status=$? |
ec6a6fbe | 8669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8671 | { (case "(($ac_try" in |
8672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8673 | *) ac_try_echo=$ac_try;; | |
8674 | esac | |
ec6a6fbe AK |
8675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8676 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8677 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8678 | ac_status=$? |
ec6a6fbe | 8679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8680 | (exit $ac_status); }; }; then |
8681 | ac_cv_func_strtod=yes | |
8682 | else | |
ec6a6fbe AK |
8683 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8684 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8685 | sed 's/^/| /' conftest.$ac_ext >&5 |
8686 | ||
8687 | ( exit $ac_status ) | |
8688 | ac_cv_func_strtod=no | |
8689 | fi | |
ec6a6fbe | 8690 | rm -rf conftest.dSYM |
7a197a62 | 8691 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8692 | fi |
7a197a62 AK |
8693 | |
8694 | ||
ad6254c5 | 8695 | fi |
ec6a6fbe AK |
8696 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8697 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8698 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8699 | case " $LIBOBJS " in |
8a2fc586 | 8700 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8701 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8702 | ;; | |
8a2fc586 AK |
8703 | esac |
8704 | ||
ec6a6fbe AK |
8705 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8706 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8707 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8708 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8709 | else |
8710 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8711 | /* confdefs.h. */ |
8712 | _ACEOF | |
8713 | cat confdefs.h >>conftest.$ac_ext | |
8714 | cat >>conftest.$ac_ext <<_ACEOF | |
8715 | /* end confdefs.h. */ | |
8a2fc586 AK |
8716 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8718 | #define pow innocuous_pow | |
8719 | ||
ad6254c5 AK |
8720 | /* System header to define __stub macros and hopefully few prototypes, |
8721 | which can conflict with char pow (); below. | |
8722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8723 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8724 | |
ad6254c5 AK |
8725 | #ifdef __STDC__ |
8726 | # include <limits.h> | |
8727 | #else | |
8728 | # include <assert.h> | |
8729 | #endif | |
8a2fc586 AK |
8730 | |
8731 | #undef pow | |
8732 | ||
7a197a62 AK |
8733 | /* Override any GCC internal prototype to avoid an error. |
8734 | Use char because int might match the return type of a GCC | |
8735 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8736 | #ifdef __cplusplus |
8737 | extern "C" | |
ad6254c5 | 8738 | #endif |
ad6254c5 AK |
8739 | char pow (); |
8740 | /* The GNU C library defines this for functions which it implements | |
8741 | to always fail with ENOSYS. Some functions are actually named | |
8742 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8743 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8744 | choke me |
ad6254c5 AK |
8745 | #endif |
8746 | ||
8747 | int | |
8748 | main () | |
8749 | { | |
7a197a62 | 8750 | return pow (); |
ad6254c5 AK |
8751 | ; |
8752 | return 0; | |
8753 | } | |
8754 | _ACEOF | |
8755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8756 | if { (ac_try="$ac_link" |
8757 | case "(($ac_try" in | |
8758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8759 | *) ac_try_echo=$ac_try;; | |
8760 | esac | |
ec6a6fbe AK |
8761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8762 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8763 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8764 | ac_status=$? |
8a2fc586 AK |
8765 | grep -v '^ *+' conftest.er1 >conftest.err |
8766 | rm -f conftest.er1 | |
8767 | cat conftest.err >&5 | |
ec6a6fbe | 8768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8769 | (exit $ac_status); } && { |
8770 | test -z "$ac_c_werror_flag" || | |
8771 | test ! -s conftest.err | |
ec6a6fbe AK |
8772 | } && test -s conftest$ac_exeext && { |
8773 | test "$cross_compiling" = yes || | |
8774 | $as_test_x conftest$ac_exeext | |
8775 | }; then | |
ad6254c5 AK |
8776 | ac_cv_func_pow=yes |
8777 | else | |
ec6a6fbe | 8778 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8779 | sed 's/^/| /' conftest.$ac_ext >&5 |
8780 | ||
7a197a62 | 8781 | ac_cv_func_pow=no |
ad6254c5 | 8782 | fi |
7a197a62 | 8783 | |
ec6a6fbe | 8784 | rm -rf conftest.dSYM |
25fbec5b | 8785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8786 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8787 | fi |
ec6a6fbe AK |
8788 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8789 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8790 | |
8791 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8792 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8793 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8794 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8795 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8796 | else |
8797 | ac_check_lib_save_LIBS=$LIBS | |
8798 | LIBS="-lm $LIBS" | |
8799 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8800 | /* confdefs.h. */ |
8801 | _ACEOF | |
8802 | cat confdefs.h >>conftest.$ac_ext | |
8803 | cat >>conftest.$ac_ext <<_ACEOF | |
8804 | /* end confdefs.h. */ | |
8805 | ||
7a197a62 AK |
8806 | /* Override any GCC internal prototype to avoid an error. |
8807 | Use char because int might match the return type of a GCC | |
8808 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8809 | #ifdef __cplusplus |
8810 | extern "C" | |
8811 | #endif | |
ad6254c5 AK |
8812 | char pow (); |
8813 | int | |
8814 | main () | |
8815 | { | |
7a197a62 | 8816 | return pow (); |
ad6254c5 AK |
8817 | ; |
8818 | return 0; | |
8819 | } | |
8820 | _ACEOF | |
8821 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8822 | if { (ac_try="$ac_link" |
8823 | case "(($ac_try" in | |
8824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8825 | *) ac_try_echo=$ac_try;; | |
8826 | esac | |
ec6a6fbe AK |
8827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8828 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8829 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8830 | ac_status=$? |
8a2fc586 AK |
8831 | grep -v '^ *+' conftest.er1 >conftest.err |
8832 | rm -f conftest.er1 | |
8833 | cat conftest.err >&5 | |
ec6a6fbe | 8834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8835 | (exit $ac_status); } && { |
8836 | test -z "$ac_c_werror_flag" || | |
8837 | test ! -s conftest.err | |
ec6a6fbe AK |
8838 | } && test -s conftest$ac_exeext && { |
8839 | test "$cross_compiling" = yes || | |
8840 | $as_test_x conftest$ac_exeext | |
8841 | }; then | |
ad6254c5 AK |
8842 | ac_cv_lib_m_pow=yes |
8843 | else | |
ec6a6fbe | 8844 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8845 | sed 's/^/| /' conftest.$ac_ext >&5 |
8846 | ||
7a197a62 | 8847 | ac_cv_lib_m_pow=no |
ad6254c5 | 8848 | fi |
7a197a62 | 8849 | |
ec6a6fbe | 8850 | rm -rf conftest.dSYM |
25fbec5b | 8851 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8852 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8853 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8854 | fi |
ec6a6fbe AK |
8855 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8856 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8857 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8858 | POW_LIB=-lm |
8859 | else | |
ec6a6fbe AK |
8860 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8861 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8862 | fi |
72b2cb61 | 8863 | |
d0191583 | 8864 | fi |
72b2cb61 | 8865 | |
ad6254c5 AK |
8866 | fi |
8867 | ||
ad6254c5 | 8868 | |
d0191583 JM |
8869 | for ac_func in vprintf |
8870 | do | |
ec6a6fbe AK |
8871 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8872 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8873 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8874 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8875 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8876 | else |
d0191583 JM |
8877 | cat >conftest.$ac_ext <<_ACEOF |
8878 | /* confdefs.h. */ | |
8879 | _ACEOF | |
8880 | cat confdefs.h >>conftest.$ac_ext | |
8881 | cat >>conftest.$ac_ext <<_ACEOF | |
8882 | /* end confdefs.h. */ | |
8883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8885 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8886 | |
d0191583 JM |
8887 | /* System header to define __stub macros and hopefully few prototypes, |
8888 | which can conflict with char $ac_func (); below. | |
8889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8890 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8891 | |
d0191583 JM |
8892 | #ifdef __STDC__ |
8893 | # include <limits.h> | |
8894 | #else | |
8895 | # include <assert.h> | |
8896 | #endif | |
ad6254c5 | 8897 | |
d0191583 | 8898 | #undef $ac_func |
72b2cb61 | 8899 | |
d0191583 JM |
8900 | /* Override any GCC internal prototype to avoid an error. |
8901 | Use char because int might match the return type of a GCC | |
8902 | builtin and then its argument prototype would still apply. */ | |
8903 | #ifdef __cplusplus | |
8904 | extern "C" | |
8905 | #endif | |
8906 | char $ac_func (); | |
8907 | /* The GNU C library defines this for functions which it implements | |
8908 | to always fail with ENOSYS. Some functions are actually named | |
8909 | something starting with __ and the normal name is an alias. */ | |
8910 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8911 | choke me | |
8912 | #endif | |
8913 | ||
8914 | int | |
8915 | main () | |
8916 | { | |
8917 | return $ac_func (); | |
8918 | ; | |
8919 | return 0; | |
8920 | } | |
72b2cb61 | 8921 | _ACEOF |
d0191583 JM |
8922 | rm -f conftest.$ac_objext conftest$ac_exeext |
8923 | if { (ac_try="$ac_link" | |
8924 | case "(($ac_try" in | |
8925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8926 | *) ac_try_echo=$ac_try;; | |
8927 | esac | |
ec6a6fbe AK |
8928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8929 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8930 | (eval "$ac_link") 2>conftest.er1 |
8931 | ac_status=$? | |
8932 | grep -v '^ *+' conftest.er1 >conftest.err | |
8933 | rm -f conftest.er1 | |
8934 | cat conftest.err >&5 | |
ec6a6fbe | 8935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8936 | (exit $ac_status); } && { |
8937 | test -z "$ac_c_werror_flag" || | |
8938 | test ! -s conftest.err | |
ec6a6fbe AK |
8939 | } && test -s conftest$ac_exeext && { |
8940 | test "$cross_compiling" = yes || | |
8941 | $as_test_x conftest$ac_exeext | |
8942 | }; then | |
d0191583 JM |
8943 | eval "$as_ac_var=yes" |
8944 | else | |
ec6a6fbe | 8945 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8946 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8947 | |
d0191583 | 8948 | eval "$as_ac_var=no" |
ad6254c5 AK |
8949 | fi |
8950 | ||
ec6a6fbe | 8951 | rm -rf conftest.dSYM |
d0191583 JM |
8952 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8953 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8954 | fi |
ec6a6fbe AK |
8955 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8956 | $as_echo "$as_val"'` | |
8957 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8958 | $as_echo "$ac_res" >&6; } | |
8959 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8960 | $as_echo "$as_val"'` | |
8961 | if test "x$as_val" = x""yes; then | |
d0191583 | 8962 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8963 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8964 | _ACEOF |
7a197a62 | 8965 | |
ec6a6fbe AK |
8966 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8967 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8968 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8969 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8970 | else |
d0191583 JM |
8971 | cat >conftest.$ac_ext <<_ACEOF |
8972 | /* confdefs.h. */ | |
8973 | _ACEOF | |
8974 | cat confdefs.h >>conftest.$ac_ext | |
8975 | cat >>conftest.$ac_ext <<_ACEOF | |
8976 | /* end confdefs.h. */ | |
8977 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8978 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8979 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8980 | |
d0191583 JM |
8981 | /* System header to define __stub macros and hopefully few prototypes, |
8982 | which can conflict with char _doprnt (); below. | |
8983 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8984 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8985 | |
d0191583 JM |
8986 | #ifdef __STDC__ |
8987 | # include <limits.h> | |
8988 | #else | |
8989 | # include <assert.h> | |
8990 | #endif | |
72b2cb61 | 8991 | |
d0191583 JM |
8992 | #undef _doprnt |
8993 | ||
8994 | /* Override any GCC internal prototype to avoid an error. | |
8995 | Use char because int might match the return type of a GCC | |
8996 | builtin and then its argument prototype would still apply. */ | |
8997 | #ifdef __cplusplus | |
8998 | extern "C" | |
8999 | #endif | |
9000 | char _doprnt (); | |
9001 | /* The GNU C library defines this for functions which it implements | |
9002 | to always fail with ENOSYS. Some functions are actually named | |
9003 | something starting with __ and the normal name is an alias. */ | |
9004 | #if defined __stub__doprnt || defined __stub____doprnt | |
9005 | choke me | |
9006 | #endif | |
9007 | ||
9008 | int | |
9009 | main () | |
9010 | { | |
9011 | return _doprnt (); | |
9012 | ; | |
9013 | return 0; | |
9014 | } | |
72b2cb61 | 9015 | _ACEOF |
d0191583 JM |
9016 | rm -f conftest.$ac_objext conftest$ac_exeext |
9017 | if { (ac_try="$ac_link" | |
9018 | case "(($ac_try" in | |
9019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9020 | *) ac_try_echo=$ac_try;; | |
9021 | esac | |
ec6a6fbe AK |
9022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9023 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
9024 | (eval "$ac_link") 2>conftest.er1 |
9025 | ac_status=$? | |
9026 | grep -v '^ *+' conftest.er1 >conftest.err | |
9027 | rm -f conftest.er1 | |
9028 | cat conftest.err >&5 | |
ec6a6fbe | 9029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
9030 | (exit $ac_status); } && { |
9031 | test -z "$ac_c_werror_flag" || | |
9032 | test ! -s conftest.err | |
ec6a6fbe AK |
9033 | } && test -s conftest$ac_exeext && { |
9034 | test "$cross_compiling" = yes || | |
9035 | $as_test_x conftest$ac_exeext | |
9036 | }; then | |
d0191583 JM |
9037 | ac_cv_func__doprnt=yes |
9038 | else | |
ec6a6fbe | 9039 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 9040 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 9041 | |
d0191583 | 9042 | ac_cv_func__doprnt=no |
ad6254c5 AK |
9043 | fi |
9044 | ||
ec6a6fbe | 9045 | rm -rf conftest.dSYM |
d0191583 JM |
9046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9047 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 9048 | fi |
ec6a6fbe AK |
9049 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9050 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
9051 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 9052 | |
d0191583 JM |
9053 | cat >>confdefs.h <<\_ACEOF |
9054 | #define HAVE_DOPRNT 1 | |
9055 | _ACEOF | |
ad6254c5 | 9056 | |
7a197a62 AK |
9057 | fi |
9058 | ||
d0191583 JM |
9059 | fi |
9060 | done | |
8b1a3214 | 9061 | |
ad6254c5 | 9062 | |
7a197a62 | 9063 | |
9c961554 | 9064 | ################################################################################ |
ec6a6fbe AK |
9065 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9066 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
9067 | # Check whether --enable-static_link was given. |
9068 | if test "${enable_static_link+set}" = set; then | |
9069 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9070 | else | |
9071 | STATIC_LINK=no | |
9072 | fi | |
9073 | ||
ec6a6fbe AK |
9074 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9075 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 9076 | |
d0191583 | 9077 | ################################################################################ |
ad6254c5 | 9078 | |
ad6254c5 AK |
9079 | |
9080 | ################################################################################ | |
ec6a6fbe AK |
9081 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
9082 | $as_echo_n "checking file owner... " >&6; } | |
39dabc84 | 9083 | OWNER="" |
d0191583 JM |
9084 | |
9085 | ||
9086 | # Check whether --with-user was given. | |
9087 | if test "${with_user+set}" = set; then | |
9088 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
9089 | fi |
9090 | ||
ec6a6fbe AK |
9091 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
9092 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 9093 | |
d0191583 JM |
9094 | if test x$OWNER != x; then |
9095 | OWNER="-o $OWNER" | |
ad6254c5 AK |
9096 | fi |
9097 | ||
9098 | ################################################################################ | |
ec6a6fbe AK |
9099 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
9100 | $as_echo_n "checking group owner... " >&6; } | |
39dabc84 | 9101 | GROUP="" |
ad6254c5 | 9102 | |
d0191583 JM |
9103 | # Check whether --with-group was given. |
9104 | if test "${with_group+set}" = set; then | |
9105 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
9106 | fi |
9107 | ||
ec6a6fbe AK |
9108 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
9109 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
9110 | |
9111 | if test x$GROUP != x; then | |
9112 | GROUP="-g $GROUP" | |
9113 | fi | |
ad6254c5 | 9114 | |
24bbc4d7 | 9115 | ################################################################################ |
ec6a6fbe AK |
9116 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9117 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9118 | |
9119 | ||
9120 | # Check whether --with-device-uid was given. | |
9121 | if test "${with_device_uid+set}" = set; then | |
9122 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9123 | else | |
9124 | DM_DEVICE_UID="0" | |
9125 | fi | |
9126 | ||
ec6a6fbe AK |
9127 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9128 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9129 | |
9130 | ################################################################################ | |
ec6a6fbe AK |
9131 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9132 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9133 | |
9134 | ||
9135 | # Check whether --with-device-gid was given. | |
9136 | if test "${with_device_gid+set}" = set; then | |
9137 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9138 | else | |
9139 | DM_DEVICE_GID="0" | |
9140 | fi | |
9141 | ||
ec6a6fbe AK |
9142 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9143 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9144 | |
93bd259b | 9145 | ################################################################################ |
ec6a6fbe AK |
9146 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9147 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9148 | |
9149 | ||
9150 | # Check whether --with-device-mode was given. | |
9151 | if test "${with_device_mode+set}" = set; then | |
9152 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9153 | else | |
9154 | DM_DEVICE_MODE="0600" | |
9155 | fi | |
9156 | ||
ec6a6fbe AK |
9157 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9158 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9159 | |
ad6254c5 | 9160 | ################################################################################ |
ec6a6fbe AK |
9161 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9162 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9163 | # Check whether --enable-lvm1_fallback was given. |
9164 | if test "${enable_lvm1_fallback+set}" = set; then | |
9165 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9166 | else | |
9167 | LVM1_FALLBACK=no | |
7a197a62 AK |
9168 | fi |
9169 | ||
ec6a6fbe AK |
9170 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9171 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9172 | |
d0191583 | 9173 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9174 | |
9175 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9176 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9177 | _ACEOF |
9178 | ||
ad6254c5 AK |
9179 | fi |
9180 | ||
9181 | ################################################################################ | |
ec6a6fbe AK |
9182 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9183 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9184 | |
9185 | # Check whether --with-lvm1 was given. | |
9186 | if test "${with_lvm1+set}" = set; then | |
9187 | withval=$with_lvm1; LVM1="$withval" | |
9188 | else | |
9189 | LVM1="internal" | |
7a197a62 AK |
9190 | fi |
9191 | ||
ec6a6fbe AK |
9192 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9193 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9194 | |
d0191583 | 9195 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9196 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9197 | " >&5 |
ec6a6fbe | 9198 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9199 | " >&2;} |
9200 | { (exit 1); exit 1; }; } | |
9201 | fi; | |
9202 | ||
9203 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9204 | |
9205 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9206 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9207 | _ACEOF |
9208 | ||
ad6254c5 AK |
9209 | fi |
9210 | ||
9211 | ################################################################################ | |
ec6a6fbe AK |
9212 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9213 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9214 | |
9215 | # Check whether --with-pool was given. | |
9216 | if test "${with_pool+set}" = set; then | |
9217 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9218 | else |
d0191583 | 9219 | POOL="internal" |
7a197a62 AK |
9220 | fi |
9221 | ||
ec6a6fbe AK |
9222 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9223 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9224 | |
d0191583 | 9225 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9226 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9227 | " >&5 |
ec6a6fbe | 9228 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9229 | " >&2;} |
9230 | { (exit 1); exit 1; }; } | |
9231 | fi; | |
7a197a62 | 9232 | |
d0191583 JM |
9233 | if test x$POOL = xinternal; then |
9234 | ||
9235 | cat >>confdefs.h <<\_ACEOF | |
9236 | #define POOL_INTERNAL 1 | |
9237 | _ACEOF | |
9238 | ||
9239 | fi | |
ad6254c5 | 9240 | |
06f62ad1 | 9241 | ################################################################################ |
ec6a6fbe AK |
9242 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9243 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9244 | |
9245 | # Check whether --with-cluster was given. | |
9246 | if test "${with_cluster+set}" = set; then | |
9247 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9248 | fi |
9249 | ||
ec6a6fbe AK |
9250 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9251 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9252 | |
d0191583 | 9253 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9254 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9255 | " >&5 |
ec6a6fbe | 9256 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9257 | " >&2;} |
9258 | { (exit 1); exit 1; }; } | |
d0191583 | 9259 | fi; |
06f62ad1 | 9260 | |
d0191583 | 9261 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9262 | |
9263 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9264 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9265 | _ACEOF |
9266 | ||
15d91f5a | 9267 | fi |
ad6254c5 AK |
9268 | |
9269 | ################################################################################ | |
ec6a6fbe AK |
9270 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9271 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9272 | |
d0191583 JM |
9273 | # Check whether --with-snapshots was given. |
9274 | if test "${with_snapshots+set}" = set; then | |
9275 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9276 | else | |
9277 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9278 | fi |
9279 | ||
ec6a6fbe AK |
9280 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9281 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9282 | |
d0191583 | 9283 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9284 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9285 | " >&5 |
ec6a6fbe | 9286 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9287 | " >&2;} |
9288 | { (exit 1); exit 1; }; } | |
9289 | fi; | |
9290 | ||
9291 | if test x$SNAPSHOTS = xinternal; then | |
9292 | ||
9293 | cat >>confdefs.h <<\_ACEOF | |
9294 | #define SNAPSHOT_INTERNAL 1 | |
9295 | _ACEOF | |
ad6254c5 | 9296 | |
ad6254c5 | 9297 | fi |
7a197a62 | 9298 | |
d0191583 | 9299 | ################################################################################ |
ec6a6fbe AK |
9300 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9301 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9302 | |
9303 | # Check whether --with-mirrors was given. | |
9304 | if test "${with_mirrors+set}" = set; then | |
9305 | withval=$with_mirrors; MIRRORS="$withval" | |
9306 | else | |
9307 | MIRRORS="internal" | |
ad6254c5 | 9308 | fi |
ad6254c5 | 9309 | |
ec6a6fbe AK |
9310 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9311 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9312 | |
d0191583 | 9313 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9314 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9315 | " >&5 |
ec6a6fbe | 9316 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9317 | " >&2;} |
9318 | { (exit 1); exit 1; }; } | |
9319 | fi; | |
ad6254c5 | 9320 | |
d0191583 | 9321 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9322 | |
d0191583 JM |
9323 | cat >>confdefs.h <<\_ACEOF |
9324 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9325 | _ACEOF |
8a2fc586 | 9326 | |
d0191583 | 9327 | fi |
8a2fc586 | 9328 | |
d0191583 | 9329 | ################################################################################ |
ec6a6fbe AK |
9330 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9331 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9332 | # Check whether --enable-readline was given. |
9333 | if test "${enable_readline+set}" = set; then | |
9334 | enableval=$enable_readline; READLINE=$enableval | |
9335 | else | |
06e459df | 9336 | READLINE=maybe |
d0191583 | 9337 | fi |
8a2fc586 | 9338 | |
ec6a6fbe AK |
9339 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9340 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9341 | |
d0191583 | 9342 | ################################################################################ |
ec6a6fbe AK |
9343 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9344 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9345 | # Check whether --enable-realtime was given. |
9346 | if test "${enable_realtime+set}" = set; then | |
9347 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9348 | fi |
ad6254c5 | 9349 | |
ec6a6fbe AK |
9350 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9351 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9352 | |
9353 | ################################################################################ | |
90c80887 | 9354 | pkg_config_init() { |
e2997b73 AK |
9355 | |
9356 | ||
9357 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9358 | if test -n "$ac_tool_prefix"; then | |
9359 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9360 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9361 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9362 | $as_echo_n "checking for $ac_word... " >&6; } | |
9363 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9364 | $as_echo_n "(cached) " >&6 | |
9365 | else | |
9366 | case $PKG_CONFIG in | |
9367 | [\\/]* | ?:[\\/]*) | |
9368 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9369 | ;; | |
9370 | *) | |
9371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9372 | for as_dir in $PATH | |
9373 | do | |
9374 | IFS=$as_save_IFS | |
9375 | test -z "$as_dir" && as_dir=. | |
9376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9378 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9379 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9380 | break 2 | |
9381 | fi | |
9382 | done | |
9383 | done | |
9384 | IFS=$as_save_IFS | |
9385 | ||
9386 | ;; | |
9387 | esac | |
9388 | fi | |
9389 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9390 | if test -n "$PKG_CONFIG"; then | |
9391 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9392 | $as_echo "$PKG_CONFIG" >&6; } | |
9393 | else | |
9394 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9395 | $as_echo "no" >&6; } | |
9396 | fi | |
9397 | ||
9398 | ||
9399 | fi | |
9400 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9401 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9402 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9403 | set dummy pkg-config; ac_word=$2 | |
9404 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9405 | $as_echo_n "checking for $ac_word... " >&6; } | |
9406 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9407 | $as_echo_n "(cached) " >&6 | |
9408 | else | |
9409 | case $ac_pt_PKG_CONFIG in | |
9410 | [\\/]* | ?:[\\/]*) | |
9411 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9412 | ;; | |
9413 | *) | |
9414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9415 | for as_dir in $PATH | |
9416 | do | |
9417 | IFS=$as_save_IFS | |
9418 | test -z "$as_dir" && as_dir=. | |
9419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9421 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9422 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9423 | break 2 | |
9424 | fi | |
9425 | done | |
9426 | done | |
9427 | IFS=$as_save_IFS | |
9428 | ||
9429 | ;; | |
9430 | esac | |
9431 | fi | |
9432 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9433 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9434 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9435 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9436 | else | |
9437 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9438 | $as_echo "no" >&6; } | |
9439 | fi | |
9440 | ||
9441 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9442 | PKG_CONFIG="" | |
9443 | else | |
9444 | case $cross_compiling:$ac_tool_warned in | |
9445 | yes:) | |
9446 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9447 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9448 | ac_tool_warned=yes ;; | |
9449 | esac | |
9450 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9451 | fi | |
9452 | else | |
9453 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9454 | fi | |
9455 | ||
9456 | fi | |
9457 | if test -n "$PKG_CONFIG"; then | |
9458 | _pkg_min_version=0.9.0 | |
9459 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9460 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9461 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9462 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9463 | $as_echo "yes" >&6; } | |
9464 | else | |
9465 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9466 | $as_echo "no" >&6; } | |
9467 | PKG_CONFIG="" | |
9468 | fi | |
9469 | ||
9470 | fi | |
9471 | ||
9472 | pkg_failed=no | |
a946372e AK |
9473 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9474 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9475 | |
a946372e AK |
9476 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9477 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9478 | elif test -n "$PKG_CONFIG"; then |
9479 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9480 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9481 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9482 | ac_status=$? |
9483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9484 | (exit $ac_status); }; then | |
a946372e | 9485 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9486 | else |
9487 | pkg_failed=yes | |
9488 | fi | |
9489 | else | |
9490 | pkg_failed=untried | |
9491 | fi | |
a946372e AK |
9492 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9493 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9494 | elif test -n "$PKG_CONFIG"; then |
9495 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9496 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9497 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9498 | ac_status=$? |
9499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9500 | (exit $ac_status); }; then | |
a946372e | 9501 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9502 | else |
9503 | pkg_failed=yes | |
9504 | fi | |
9505 | else | |
9506 | pkg_failed=untried | |
9507 | fi | |
9508 | ||
9509 | ||
9510 | ||
9511 | if test $pkg_failed = yes; then | |
9512 | ||
9513 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9514 | _pkg_short_errors_supported=yes | |
9515 | else | |
9516 | _pkg_short_errors_supported=no | |
9517 | fi | |
9518 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9519 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9520 | else |
a946372e | 9521 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9522 | fi |
9523 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9524 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 AK |
9525 | |
9526 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9527 | $as_echo "no" >&6; } | |
a946372e AK |
9528 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9529 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9530 | elif test $pkg_failed = untried; then |
a946372e AK |
9531 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9532 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9533 | else |
a946372e AK |
9534 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9535 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9536 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9537 | $as_echo "yes" >&6; } | |
9538 | : | |
9539 | fi | |
90c80887 AK |
9540 | PKGCONFIG_INIT=1 |
9541 | } | |
9542 | ||
9543 | ################################################################################ | |
9544 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
9545 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
9546 | ||
9547 | # Check whether --with-clvmd was given. | |
9548 | if test "${with_clvmd+set}" = set; then | |
9549 | withval=$with_clvmd; CLVMD="$withval" | |
9550 | else | |
9551 | CLVMD="none" | |
9552 | fi | |
9553 | ||
9554 | if test x$CLVMD = xyes; then | |
9555 | CLVMD=all | |
9556 | fi | |
9557 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
9558 | $as_echo "$CLVMD" >&6; } | |
9559 | ||
9560 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
9561 | CLUSTER=internal | |
9562 | fi | |
9563 | ||
9564 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
9565 | pkg_config_init | |
9566 | fi | |
9567 | ||
9568 | ||
9569 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
9570 | BUILDGULM=yes | |
9571 | fi | |
9572 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9573 | BUILDCOROSYNC=yes | |
9574 | fi | |
9575 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9576 | BUILDOPENAIS=yes | |
9577 | fi | |
9578 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9579 | BUILDCMAN=yes | |
9580 | fi | |
9581 | ||
9582 | if test x$BUILDGULM = xyes; then | |
9583 | if test x$BUILDCOROSYNC = xyes || \ | |
9584 | test x$BUILDOPENAIS = xyes; then | |
9585 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9586 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9587 | { (exit 1); exit 1; }; } | |
9588 | fi | |
a946372e | 9589 | fi |
e2997b73 | 9590 | |
a946372e AK |
9591 | soft_bailout() { |
9592 | NOTFOUND=1 | |
9593 | } | |
e2997b73 | 9594 | |
a946372e AK |
9595 | hard_bailout() { |
9596 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9597 | $as_echo "$as_me: error: bailing out" >&2;} | |
9598 | { (exit 1); exit 1; }; } | |
9599 | } | |
9600 | ||
9601 | if test x$CLVMD = xall; then | |
9602 | bailout=soft_bailout | |
9603 | BUILDGULM=yes | |
9604 | BUILDCMAN=yes | |
9605 | BUILDCOROSYNC=yes | |
9606 | BUILDOPENAIS=yes | |
e2997b73 | 9607 | else |
a946372e | 9608 | bailout=hard_bailout |
e2997b73 | 9609 | fi |
a946372e AK |
9610 | |
9611 | check_lib_no_libs() { | |
9612 | lib_no_libs_arg1=$1 | |
9613 | shift | |
9614 | lib_no_libs_arg2=$1 | |
9615 | shift | |
9616 | lib_no_libs_args=$@ | |
9617 | ||
9618 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9619 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9620 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9621 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9622 | $as_echo_n "(cached) " >&6 | |
9623 | else | |
9624 | ac_check_lib_save_LIBS=$LIBS | |
9625 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9626 | cat >conftest.$ac_ext <<_ACEOF | |
9627 | /* confdefs.h. */ | |
9628 | _ACEOF | |
9629 | cat confdefs.h >>conftest.$ac_ext | |
9630 | cat >>conftest.$ac_ext <<_ACEOF | |
9631 | /* end confdefs.h. */ | |
9632 | ||
9633 | /* Override any GCC internal prototype to avoid an error. | |
9634 | Use char because int might match the return type of a GCC | |
9635 | builtin and then its argument prototype would still apply. */ | |
9636 | #ifdef __cplusplus | |
9637 | extern "C" | |
9638 | #endif | |
9639 | char $lib_no_libs_arg2 (); | |
9640 | int | |
9641 | main () | |
9642 | { | |
9643 | return $lib_no_libs_arg2 (); | |
9644 | ; | |
9645 | return 0; | |
9646 | } | |
9647 | _ACEOF | |
9648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9649 | if { (ac_try="$ac_link" | |
9650 | case "(($ac_try" in | |
9651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9652 | *) ac_try_echo=$ac_try;; | |
9653 | esac | |
9654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9655 | $as_echo "$ac_try_echo") >&5 | |
9656 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9657 | ac_status=$? |
a946372e AK |
9658 | grep -v '^ *+' conftest.er1 >conftest.err |
9659 | rm -f conftest.er1 | |
9660 | cat conftest.err >&5 | |
e2997b73 | 9661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9662 | (exit $ac_status); } && { |
9663 | test -z "$ac_c_werror_flag" || | |
9664 | test ! -s conftest.err | |
9665 | } && test -s conftest$ac_exeext && { | |
9666 | test "$cross_compiling" = yes || | |
9667 | $as_test_x conftest$ac_exeext | |
9668 | }; then | |
9669 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9670 | else |
a946372e AK |
9671 | $as_echo "$as_me: failed program was:" >&5 |
9672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9673 | |
a946372e AK |
9674 | eval "$as_ac_Lib=no" |
9675 | fi | |
e2997b73 | 9676 | |
a946372e AK |
9677 | rm -rf conftest.dSYM |
9678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9679 | conftest$ac_exeext conftest.$ac_ext | |
9680 | LIBS=$ac_check_lib_save_LIBS | |
9681 | fi | |
9682 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9683 | $as_echo "$as_val"'` | |
9684 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9685 | $as_echo "$ac_res" >&6; } | |
9686 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9687 | $as_echo "$as_val"'` | |
9688 | if test "x$as_val" = x""yes; then | |
9689 | cat >>confdefs.h <<_ACEOF | |
9690 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9691 | _ACEOF | |
e2997b73 | 9692 | |
a946372e | 9693 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9694 | |
e2997b73 | 9695 | else |
a946372e | 9696 | $bailout |
e2997b73 | 9697 | fi |
e2997b73 | 9698 | |
a946372e AK |
9699 | LIBS=$ac_check_lib_save_LIBS |
9700 | } | |
9701 | ||
9702 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9703 | |
9704 | pkg_failed=no | |
a946372e AK |
9705 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9706 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9707 | |
a946372e AK |
9708 | if test -n "$CCS_CFLAGS"; then |
9709 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9710 | elif test -n "$PKG_CONFIG"; then |
9711 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9712 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9713 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9714 | ac_status=$? |
9715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9716 | (exit $ac_status); }; then | |
a946372e | 9717 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9718 | else |
9719 | pkg_failed=yes | |
9720 | fi | |
9721 | else | |
9722 | pkg_failed=untried | |
9723 | fi | |
a946372e AK |
9724 | if test -n "$CCS_LIBS"; then |
9725 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9726 | elif test -n "$PKG_CONFIG"; then |
9727 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9728 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9729 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9730 | ac_status=$? |
9731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9732 | (exit $ac_status); }; then | |
a946372e | 9733 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9734 | else |
9735 | pkg_failed=yes | |
9736 | fi | |
9737 | else | |
9738 | pkg_failed=untried | |
9739 | fi | |
9740 | ||
9741 | ||
9742 | ||
9743 | if test $pkg_failed = yes; then | |
9744 | ||
9745 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9746 | _pkg_short_errors_supported=yes | |
9747 | else | |
9748 | _pkg_short_errors_supported=no | |
9749 | fi | |
9750 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9751 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9752 | else |
a946372e | 9753 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9754 | fi |
9755 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9756 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 AK |
9757 | |
9758 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9759 | $as_echo "no" >&6; } | |
a946372e | 9760 | NOTFOUND=0 |
e2997b73 | 9761 | |
a946372e AK |
9762 | for ac_header in ccs.h |
9763 | do | |
9764 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9766 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9767 | $as_echo_n "checking for $ac_header... " >&6; } | |
9768 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9769 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9770 | fi |
a946372e AK |
9771 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9772 | $as_echo "$as_val"'` | |
9773 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9774 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9775 | else |
a946372e AK |
9776 | # Is the header compilable? |
9777 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9778 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9779 | cat >conftest.$ac_ext <<_ACEOF | |
9780 | /* confdefs.h. */ | |
9781 | _ACEOF | |
9782 | cat confdefs.h >>conftest.$ac_ext | |
9783 | cat >>conftest.$ac_ext <<_ACEOF | |
9784 | /* end confdefs.h. */ | |
9785 | $ac_includes_default | |
9786 | #include <$ac_header> | |
9787 | _ACEOF | |
9788 | rm -f conftest.$ac_objext | |
9789 | if { (ac_try="$ac_compile" | |
9790 | case "(($ac_try" in | |
9791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9792 | *) ac_try_echo=$ac_try;; | |
9793 | esac | |
9794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9795 | $as_echo "$ac_try_echo") >&5 | |
9796 | (eval "$ac_compile") 2>conftest.er1 | |
9797 | ac_status=$? | |
9798 | grep -v '^ *+' conftest.er1 >conftest.err | |
9799 | rm -f conftest.er1 | |
9800 | cat conftest.err >&5 | |
9801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9802 | (exit $ac_status); } && { | |
9803 | test -z "$ac_c_werror_flag" || | |
9804 | test ! -s conftest.err | |
9805 | } && test -s conftest.$ac_objext; then | |
9806 | ac_header_compiler=yes | |
9807 | else | |
9808 | $as_echo "$as_me: failed program was:" >&5 | |
9809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9810 | |
a946372e | 9811 | ac_header_compiler=no |
d0191583 JM |
9812 | fi |
9813 | ||
a946372e AK |
9814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9815 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9816 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9817 | |
a946372e AK |
9818 | # Is the header present? |
9819 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9820 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9821 | cat >conftest.$ac_ext <<_ACEOF | |
9822 | /* confdefs.h. */ | |
9823 | _ACEOF | |
9824 | cat confdefs.h >>conftest.$ac_ext | |
9825 | cat >>conftest.$ac_ext <<_ACEOF | |
9826 | /* end confdefs.h. */ | |
9827 | #include <$ac_header> | |
9828 | _ACEOF | |
9829 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9830 | case "(($ac_try" in | |
9831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9832 | *) ac_try_echo=$ac_try;; | |
9833 | esac | |
9834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9835 | $as_echo "$ac_try_echo") >&5 | |
9836 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9837 | ac_status=$? | |
9838 | grep -v '^ *+' conftest.er1 >conftest.err | |
9839 | rm -f conftest.er1 | |
9840 | cat conftest.err >&5 | |
9841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9842 | (exit $ac_status); } >/dev/null && { | |
9843 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9844 | test ! -s conftest.err | |
9845 | }; then | |
9846 | ac_header_preproc=yes | |
9847 | else | |
9848 | $as_echo "$as_me: failed program was:" >&5 | |
9849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9850 | ||
9851 | ac_header_preproc=no | |
9852 | fi | |
9853 | ||
9854 | rm -f conftest.err conftest.$ac_ext | |
9855 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9856 | $as_echo "$ac_header_preproc" >&6; } | |
9857 | ||
9858 | # So? What about this header? | |
9859 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9860 | yes:no: ) | |
9861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9862 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9864 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9865 | ac_header_preproc=yes | |
9866 | ;; | |
9867 | no:yes:* ) | |
9868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9869 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9871 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9873 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9875 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9877 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9879 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9880 | ||
9881 | ;; | |
9882 | esac | |
9883 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9884 | $as_echo_n "checking for $ac_header... " >&6; } | |
9885 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9886 | $as_echo_n "(cached) " >&6 | |
9887 | else | |
9888 | eval "$as_ac_Header=\$ac_header_preproc" | |
9889 | fi | |
9890 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9891 | $as_echo "$as_val"'` | |
9892 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9893 | $as_echo "$ac_res" >&6; } | |
9894 | ||
9895 | fi | |
9896 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9897 | $as_echo "$as_val"'` | |
9898 | if test "x$as_val" = x""yes; then | |
9899 | cat >>confdefs.h <<_ACEOF | |
9900 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9901 | _ACEOF | |
9902 | ||
9903 | else | |
9904 | $bailout | |
9905 | fi | |
9906 | ||
9907 | done | |
9908 | ||
9909 | check_lib_no_libs ccs ccs_connect | |
9910 | if test $NOTFOUND = 0; then | |
9911 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9912 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9913 | CCS_LIBS="-lccs" | |
9914 | HAVE_CCS=yes | |
9915 | fi | |
9916 | elif test $pkg_failed = untried; then | |
9917 | NOTFOUND=0 | |
9918 | ||
9919 | for ac_header in ccs.h | |
9920 | do | |
9921 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9923 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9924 | $as_echo_n "checking for $ac_header... " >&6; } | |
9925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9926 | $as_echo_n "(cached) " >&6 | |
9927 | fi | |
9928 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9929 | $as_echo "$as_val"'` | |
9930 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9931 | $as_echo "$ac_res" >&6; } | |
9932 | else | |
9933 | # Is the header compilable? | |
9934 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9935 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9936 | cat >conftest.$ac_ext <<_ACEOF | |
9937 | /* confdefs.h. */ | |
9938 | _ACEOF | |
9939 | cat confdefs.h >>conftest.$ac_ext | |
9940 | cat >>conftest.$ac_ext <<_ACEOF | |
9941 | /* end confdefs.h. */ | |
9942 | $ac_includes_default | |
9943 | #include <$ac_header> | |
9944 | _ACEOF | |
9945 | rm -f conftest.$ac_objext | |
9946 | if { (ac_try="$ac_compile" | |
9947 | case "(($ac_try" in | |
9948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9949 | *) ac_try_echo=$ac_try;; | |
9950 | esac | |
9951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9952 | $as_echo "$ac_try_echo") >&5 | |
9953 | (eval "$ac_compile") 2>conftest.er1 | |
9954 | ac_status=$? | |
9955 | grep -v '^ *+' conftest.er1 >conftest.err | |
9956 | rm -f conftest.er1 | |
9957 | cat conftest.err >&5 | |
9958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9959 | (exit $ac_status); } && { | |
9960 | test -z "$ac_c_werror_flag" || | |
9961 | test ! -s conftest.err | |
9962 | } && test -s conftest.$ac_objext; then | |
9963 | ac_header_compiler=yes | |
9964 | else | |
9965 | $as_echo "$as_me: failed program was:" >&5 | |
9966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9967 | ||
9968 | ac_header_compiler=no | |
9969 | fi | |
9970 | ||
9971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9972 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9973 | $as_echo "$ac_header_compiler" >&6; } | |
9974 | ||
9975 | # Is the header present? | |
9976 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9977 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9978 | cat >conftest.$ac_ext <<_ACEOF | |
9979 | /* confdefs.h. */ | |
9980 | _ACEOF | |
9981 | cat confdefs.h >>conftest.$ac_ext | |
9982 | cat >>conftest.$ac_ext <<_ACEOF | |
9983 | /* end confdefs.h. */ | |
9984 | #include <$ac_header> | |
9985 | _ACEOF | |
9986 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9987 | case "(($ac_try" in | |
9988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9989 | *) ac_try_echo=$ac_try;; | |
9990 | esac | |
9991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9992 | $as_echo "$ac_try_echo") >&5 | |
9993 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9994 | ac_status=$? | |
9995 | grep -v '^ *+' conftest.er1 >conftest.err | |
9996 | rm -f conftest.er1 | |
9997 | cat conftest.err >&5 | |
9998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9999 | (exit $ac_status); } >/dev/null && { | |
10000 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10001 | test ! -s conftest.err | |
10002 | }; then | |
10003 | ac_header_preproc=yes | |
10004 | else | |
10005 | $as_echo "$as_me: failed program was:" >&5 | |
10006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10007 | ||
10008 | ac_header_preproc=no | |
10009 | fi | |
10010 | ||
10011 | rm -f conftest.err conftest.$ac_ext | |
10012 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10013 | $as_echo "$ac_header_preproc" >&6; } | |
10014 | ||
10015 | # So? What about this header? | |
10016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10017 | yes:no: ) | |
10018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10019 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10021 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10022 | ac_header_preproc=yes | |
10023 | ;; | |
10024 | no:yes:* ) | |
10025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10026 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10028 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10030 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10032 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10034 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10036 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10037 | ||
10038 | ;; | |
10039 | esac | |
10040 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10041 | $as_echo_n "checking for $ac_header... " >&6; } | |
10042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10043 | $as_echo_n "(cached) " >&6 | |
10044 | else | |
10045 | eval "$as_ac_Header=\$ac_header_preproc" | |
10046 | fi | |
10047 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10048 | $as_echo "$as_val"'` | |
10049 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10050 | $as_echo "$ac_res" >&6; } | |
10051 | ||
10052 | fi | |
10053 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10054 | $as_echo "$as_val"'` | |
10055 | if test "x$as_val" = x""yes; then | |
10056 | cat >>confdefs.h <<_ACEOF | |
10057 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10058 | _ACEOF | |
10059 | ||
10060 | else | |
10061 | $bailout | |
10062 | fi | |
10063 | ||
10064 | done | |
10065 | ||
10066 | check_lib_no_libs ccs ccs_connect | |
10067 | if test $NOTFOUND = 0; then | |
10068 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
10069 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
10070 | CCS_LIBS="-lccs" | |
10071 | HAVE_CCS=yes | |
10072 | fi | |
10073 | else | |
10074 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
10075 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
10076 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10077 | $as_echo "yes" >&6; } | |
10078 | HAVE_CCS=yes | |
10079 | fi | |
10080 | ||
10081 | pkg_failed=no | |
10082 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
10083 | $as_echo_n "checking for GULM... " >&6; } | |
10084 | ||
10085 | if test -n "$GULM_CFLAGS"; then | |
10086 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
10087 | elif test -n "$PKG_CONFIG"; then | |
10088 | if test -n "$PKG_CONFIG" && \ | |
10089 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10090 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10091 | ac_status=$? | |
10092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10093 | (exit $ac_status); }; then | |
10094 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
10095 | else | |
10096 | pkg_failed=yes | |
10097 | fi | |
10098 | else | |
10099 | pkg_failed=untried | |
10100 | fi | |
10101 | if test -n "$GULM_LIBS"; then | |
10102 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
10103 | elif test -n "$PKG_CONFIG"; then | |
10104 | if test -n "$PKG_CONFIG" && \ | |
10105 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10106 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10107 | ac_status=$? | |
10108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10109 | (exit $ac_status); }; then | |
10110 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
10111 | else | |
10112 | pkg_failed=yes | |
10113 | fi | |
10114 | else | |
10115 | pkg_failed=untried | |
10116 | fi | |
10117 | ||
10118 | ||
10119 | ||
10120 | if test $pkg_failed = yes; then | |
10121 | ||
10122 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10123 | _pkg_short_errors_supported=yes | |
10124 | else | |
10125 | _pkg_short_errors_supported=no | |
10126 | fi | |
10127 | if test $_pkg_short_errors_supported = yes; then | |
10128 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10129 | else | |
10130 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10131 | fi | |
10132 | # Put the nasty error message in config.log where it belongs | |
10133 | echo "$GULM_PKG_ERRORS" >&5 | |
10134 | ||
10135 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10136 | $as_echo "no" >&6; } | |
10137 | NOTFOUND=0 | |
10138 | ||
10139 | for ac_header in libgulm.h | |
10140 | do | |
10141 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10143 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10144 | $as_echo_n "checking for $ac_header... " >&6; } | |
10145 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10146 | $as_echo_n "(cached) " >&6 | |
10147 | fi | |
10148 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10149 | $as_echo "$as_val"'` | |
10150 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10151 | $as_echo "$ac_res" >&6; } | |
10152 | else | |
10153 | # Is the header compilable? | |
10154 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10155 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10156 | cat >conftest.$ac_ext <<_ACEOF | |
10157 | /* confdefs.h. */ | |
10158 | _ACEOF | |
10159 | cat confdefs.h >>conftest.$ac_ext | |
10160 | cat >>conftest.$ac_ext <<_ACEOF | |
10161 | /* end confdefs.h. */ | |
10162 | $ac_includes_default | |
10163 | #include <$ac_header> | |
10164 | _ACEOF | |
10165 | rm -f conftest.$ac_objext | |
10166 | if { (ac_try="$ac_compile" | |
10167 | case "(($ac_try" in | |
10168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10169 | *) ac_try_echo=$ac_try;; | |
10170 | esac | |
10171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10172 | $as_echo "$ac_try_echo") >&5 | |
10173 | (eval "$ac_compile") 2>conftest.er1 | |
10174 | ac_status=$? | |
10175 | grep -v '^ *+' conftest.er1 >conftest.err | |
10176 | rm -f conftest.er1 | |
10177 | cat conftest.err >&5 | |
10178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10179 | (exit $ac_status); } && { | |
10180 | test -z "$ac_c_werror_flag" || | |
10181 | test ! -s conftest.err | |
10182 | } && test -s conftest.$ac_objext; then | |
10183 | ac_header_compiler=yes | |
10184 | else | |
10185 | $as_echo "$as_me: failed program was:" >&5 | |
10186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10187 | ||
10188 | ac_header_compiler=no | |
10189 | fi | |
10190 | ||
10191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10192 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10193 | $as_echo "$ac_header_compiler" >&6; } | |
10194 | ||
10195 | # Is the header present? | |
10196 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10197 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10198 | cat >conftest.$ac_ext <<_ACEOF | |
10199 | /* confdefs.h. */ | |
10200 | _ACEOF | |
10201 | cat confdefs.h >>conftest.$ac_ext | |
10202 | cat >>conftest.$ac_ext <<_ACEOF | |
10203 | /* end confdefs.h. */ | |
10204 | #include <$ac_header> | |
10205 | _ACEOF | |
10206 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10207 | case "(($ac_try" in | |
10208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10209 | *) ac_try_echo=$ac_try;; | |
10210 | esac | |
10211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10212 | $as_echo "$ac_try_echo") >&5 | |
10213 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10214 | ac_status=$? | |
10215 | grep -v '^ *+' conftest.er1 >conftest.err | |
10216 | rm -f conftest.er1 | |
10217 | cat conftest.err >&5 | |
10218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10219 | (exit $ac_status); } >/dev/null && { | |
10220 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10221 | test ! -s conftest.err | |
10222 | }; then | |
10223 | ac_header_preproc=yes | |
10224 | else | |
10225 | $as_echo "$as_me: failed program was:" >&5 | |
10226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10227 | ||
10228 | ac_header_preproc=no | |
10229 | fi | |
10230 | ||
10231 | rm -f conftest.err conftest.$ac_ext | |
10232 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10233 | $as_echo "$ac_header_preproc" >&6; } | |
10234 | ||
10235 | # So? What about this header? | |
10236 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10237 | yes:no: ) | |
10238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10239 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10241 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10242 | ac_header_preproc=yes | |
10243 | ;; | |
10244 | no:yes:* ) | |
10245 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10246 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10247 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10248 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10249 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10250 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10251 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10252 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10254 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10256 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10257 | ||
10258 | ;; | |
10259 | esac | |
10260 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10261 | $as_echo_n "checking for $ac_header... " >&6; } | |
10262 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10263 | $as_echo_n "(cached) " >&6 | |
10264 | else | |
10265 | eval "$as_ac_Header=\$ac_header_preproc" | |
10266 | fi | |
10267 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10268 | $as_echo "$as_val"'` | |
10269 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10270 | $as_echo "$ac_res" >&6; } | |
10271 | ||
10272 | fi | |
10273 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10274 | $as_echo "$as_val"'` | |
10275 | if test "x$as_val" = x""yes; then | |
10276 | cat >>confdefs.h <<_ACEOF | |
10277 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10278 | _ACEOF | |
10279 | ||
10280 | else | |
10281 | $bailout | |
10282 | fi | |
10283 | ||
10284 | done | |
10285 | ||
10286 | check_lib_no_libs gulm lg_core_login | |
10287 | if test $NOTFOUND = 0; then | |
10288 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10289 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10290 | GULM_LIBS="-lgulm" | |
10291 | HAVE_GULM=yes | |
10292 | fi | |
10293 | elif test $pkg_failed = untried; then | |
10294 | NOTFOUND=0 | |
10295 | ||
10296 | for ac_header in libgulm.h | |
10297 | do | |
10298 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10300 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10301 | $as_echo_n "checking for $ac_header... " >&6; } | |
10302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10303 | $as_echo_n "(cached) " >&6 | |
10304 | fi | |
10305 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10306 | $as_echo "$as_val"'` | |
10307 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10308 | $as_echo "$ac_res" >&6; } | |
10309 | else | |
10310 | # Is the header compilable? | |
10311 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10312 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10313 | cat >conftest.$ac_ext <<_ACEOF | |
10314 | /* confdefs.h. */ | |
10315 | _ACEOF | |
10316 | cat confdefs.h >>conftest.$ac_ext | |
10317 | cat >>conftest.$ac_ext <<_ACEOF | |
10318 | /* end confdefs.h. */ | |
10319 | $ac_includes_default | |
10320 | #include <$ac_header> | |
10321 | _ACEOF | |
10322 | rm -f conftest.$ac_objext | |
10323 | if { (ac_try="$ac_compile" | |
10324 | case "(($ac_try" in | |
10325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10326 | *) ac_try_echo=$ac_try;; | |
10327 | esac | |
10328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10329 | $as_echo "$ac_try_echo") >&5 | |
10330 | (eval "$ac_compile") 2>conftest.er1 | |
10331 | ac_status=$? | |
10332 | grep -v '^ *+' conftest.er1 >conftest.err | |
10333 | rm -f conftest.er1 | |
10334 | cat conftest.err >&5 | |
10335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10336 | (exit $ac_status); } && { | |
10337 | test -z "$ac_c_werror_flag" || | |
10338 | test ! -s conftest.err | |
10339 | } && test -s conftest.$ac_objext; then | |
10340 | ac_header_compiler=yes | |
10341 | else | |
10342 | $as_echo "$as_me: failed program was:" >&5 | |
10343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10344 | ||
10345 | ac_header_compiler=no | |
10346 | fi | |
10347 | ||
10348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10349 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10350 | $as_echo "$ac_header_compiler" >&6; } | |
10351 | ||
10352 | # Is the header present? | |
10353 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10354 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10355 | cat >conftest.$ac_ext <<_ACEOF | |
10356 | /* confdefs.h. */ | |
10357 | _ACEOF | |
10358 | cat confdefs.h >>conftest.$ac_ext | |
10359 | cat >>conftest.$ac_ext <<_ACEOF | |
10360 | /* end confdefs.h. */ | |
10361 | #include <$ac_header> | |
10362 | _ACEOF | |
10363 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10364 | case "(($ac_try" in | |
10365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10366 | *) ac_try_echo=$ac_try;; | |
10367 | esac | |
10368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10369 | $as_echo "$ac_try_echo") >&5 | |
10370 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10371 | ac_status=$? | |
10372 | grep -v '^ *+' conftest.er1 >conftest.err | |
10373 | rm -f conftest.er1 | |
10374 | cat conftest.err >&5 | |
10375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10376 | (exit $ac_status); } >/dev/null && { | |
10377 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10378 | test ! -s conftest.err | |
10379 | }; then | |
10380 | ac_header_preproc=yes | |
10381 | else | |
10382 | $as_echo "$as_me: failed program was:" >&5 | |
10383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10384 | ||
10385 | ac_header_preproc=no | |
10386 | fi | |
10387 | ||
10388 | rm -f conftest.err conftest.$ac_ext | |
10389 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10390 | $as_echo "$ac_header_preproc" >&6; } | |
10391 | ||
10392 | # So? What about this header? | |
10393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10394 | yes:no: ) | |
10395 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10396 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10397 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10398 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10399 | ac_header_preproc=yes | |
10400 | ;; | |
10401 | no:yes:* ) | |
10402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10403 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10405 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10407 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10408 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10409 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10410 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10411 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10412 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10413 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10414 | ||
10415 | ;; | |
10416 | esac | |
10417 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10418 | $as_echo_n "checking for $ac_header... " >&6; } | |
10419 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10420 | $as_echo_n "(cached) " >&6 | |
10421 | else | |
10422 | eval "$as_ac_Header=\$ac_header_preproc" | |
10423 | fi | |
10424 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10425 | $as_echo "$as_val"'` | |
10426 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10427 | $as_echo "$ac_res" >&6; } | |
10428 | ||
10429 | fi | |
10430 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10431 | $as_echo "$as_val"'` | |
10432 | if test "x$as_val" = x""yes; then | |
10433 | cat >>confdefs.h <<_ACEOF | |
10434 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10435 | _ACEOF | |
10436 | ||
10437 | else | |
10438 | $bailout | |
10439 | fi | |
10440 | ||
10441 | done | |
10442 | ||
10443 | check_lib_no_libs gulm lg_core_login | |
10444 | if test $NOTFOUND = 0; then | |
10445 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10446 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10447 | GULM_LIBS="-lgulm" | |
10448 | HAVE_GULM=yes | |
10449 | fi | |
10450 | else | |
10451 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10452 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10453 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10454 | $as_echo "yes" >&6; } | |
10455 | HAVE_GULM=yes | |
10456 | fi | |
10457 | fi | |
10458 | ||
10459 | if test x$BUILDCMAN = xyes; then | |
10460 | ||
10461 | pkg_failed=no | |
10462 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10463 | $as_echo_n "checking for CMAN... " >&6; } | |
10464 | ||
10465 | if test -n "$CMAN_CFLAGS"; then | |
10466 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10467 | elif test -n "$PKG_CONFIG"; then | |
10468 | if test -n "$PKG_CONFIG" && \ | |
10469 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10470 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10471 | ac_status=$? | |
10472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10473 | (exit $ac_status); }; then | |
10474 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10475 | else | |
10476 | pkg_failed=yes | |
10477 | fi | |
10478 | else | |
10479 | pkg_failed=untried | |
10480 | fi | |
10481 | if test -n "$CMAN_LIBS"; then | |
10482 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10483 | elif test -n "$PKG_CONFIG"; then | |
10484 | if test -n "$PKG_CONFIG" && \ | |
10485 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10486 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10487 | ac_status=$? | |
10488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10489 | (exit $ac_status); }; then | |
10490 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10491 | else | |
10492 | pkg_failed=yes | |
10493 | fi | |
10494 | else | |
10495 | pkg_failed=untried | |
10496 | fi | |
10497 | ||
10498 | ||
10499 | ||
10500 | if test $pkg_failed = yes; then | |
10501 | ||
10502 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10503 | _pkg_short_errors_supported=yes | |
10504 | else | |
10505 | _pkg_short_errors_supported=no | |
10506 | fi | |
10507 | if test $_pkg_short_errors_supported = yes; then | |
10508 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10509 | else | |
10510 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10511 | fi | |
10512 | # Put the nasty error message in config.log where it belongs | |
10513 | echo "$CMAN_PKG_ERRORS" >&5 | |
10514 | ||
10515 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10516 | $as_echo "no" >&6; } | |
10517 | NOTFOUND=0 | |
10518 | ||
10519 | for ac_header in libcman.h | |
10520 | do | |
10521 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10522 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10523 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10524 | $as_echo_n "checking for $ac_header... " >&6; } | |
10525 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10526 | $as_echo_n "(cached) " >&6 | |
10527 | fi | |
10528 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10529 | $as_echo "$as_val"'` | |
10530 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10531 | $as_echo "$ac_res" >&6; } | |
10532 | else | |
10533 | # Is the header compilable? | |
10534 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10535 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10536 | cat >conftest.$ac_ext <<_ACEOF | |
10537 | /* confdefs.h. */ | |
10538 | _ACEOF | |
10539 | cat confdefs.h >>conftest.$ac_ext | |
10540 | cat >>conftest.$ac_ext <<_ACEOF | |
10541 | /* end confdefs.h. */ | |
10542 | $ac_includes_default | |
10543 | #include <$ac_header> | |
10544 | _ACEOF | |
10545 | rm -f conftest.$ac_objext | |
10546 | if { (ac_try="$ac_compile" | |
10547 | case "(($ac_try" in | |
10548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10549 | *) ac_try_echo=$ac_try;; | |
10550 | esac | |
10551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10552 | $as_echo "$ac_try_echo") >&5 | |
10553 | (eval "$ac_compile") 2>conftest.er1 | |
10554 | ac_status=$? | |
10555 | grep -v '^ *+' conftest.er1 >conftest.err | |
10556 | rm -f conftest.er1 | |
10557 | cat conftest.err >&5 | |
10558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10559 | (exit $ac_status); } && { | |
10560 | test -z "$ac_c_werror_flag" || | |
10561 | test ! -s conftest.err | |
10562 | } && test -s conftest.$ac_objext; then | |
10563 | ac_header_compiler=yes | |
10564 | else | |
10565 | $as_echo "$as_me: failed program was:" >&5 | |
10566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10567 | ||
10568 | ac_header_compiler=no | |
10569 | fi | |
10570 | ||
10571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10572 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10573 | $as_echo "$ac_header_compiler" >&6; } | |
10574 | ||
10575 | # Is the header present? | |
10576 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10577 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10578 | cat >conftest.$ac_ext <<_ACEOF | |
10579 | /* confdefs.h. */ | |
10580 | _ACEOF | |
10581 | cat confdefs.h >>conftest.$ac_ext | |
10582 | cat >>conftest.$ac_ext <<_ACEOF | |
10583 | /* end confdefs.h. */ | |
10584 | #include <$ac_header> | |
10585 | _ACEOF | |
10586 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10587 | case "(($ac_try" in | |
10588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10589 | *) ac_try_echo=$ac_try;; | |
10590 | esac | |
10591 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10592 | $as_echo "$ac_try_echo") >&5 | |
10593 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10594 | ac_status=$? | |
10595 | grep -v '^ *+' conftest.er1 >conftest.err | |
10596 | rm -f conftest.er1 | |
10597 | cat conftest.err >&5 | |
10598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10599 | (exit $ac_status); } >/dev/null && { | |
10600 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10601 | test ! -s conftest.err | |
10602 | }; then | |
10603 | ac_header_preproc=yes | |
10604 | else | |
10605 | $as_echo "$as_me: failed program was:" >&5 | |
10606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10607 | ||
10608 | ac_header_preproc=no | |
10609 | fi | |
10610 | ||
10611 | rm -f conftest.err conftest.$ac_ext | |
10612 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10613 | $as_echo "$ac_header_preproc" >&6; } | |
10614 | ||
10615 | # So? What about this header? | |
10616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10617 | yes:no: ) | |
10618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10619 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10620 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10621 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10622 | ac_header_preproc=yes | |
10623 | ;; | |
10624 | no:yes:* ) | |
10625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10626 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10628 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10630 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10632 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10634 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10635 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10636 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10637 | ||
10638 | ;; | |
10639 | esac | |
10640 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10641 | $as_echo_n "checking for $ac_header... " >&6; } | |
10642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10643 | $as_echo_n "(cached) " >&6 | |
10644 | else | |
10645 | eval "$as_ac_Header=\$ac_header_preproc" | |
10646 | fi | |
10647 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10648 | $as_echo "$as_val"'` | |
10649 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10650 | $as_echo "$ac_res" >&6; } | |
10651 | ||
10652 | fi | |
10653 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10654 | $as_echo "$as_val"'` | |
10655 | if test "x$as_val" = x""yes; then | |
10656 | cat >>confdefs.h <<_ACEOF | |
10657 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10658 | _ACEOF | |
10659 | ||
10660 | else | |
10661 | $bailout | |
10662 | fi | |
10663 | ||
10664 | done | |
10665 | ||
10666 | check_lib_no_libs cman cman_init | |
10667 | if test $NOTFOUND = 0; then | |
10668 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10669 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10670 | CMAN_LIBS="-lcman" | |
10671 | HAVE_CMAN=yes | |
10672 | fi | |
10673 | elif test $pkg_failed = untried; then | |
10674 | NOTFOUND=0 | |
10675 | ||
10676 | for ac_header in libcman.h | |
10677 | do | |
10678 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10680 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10681 | $as_echo_n "checking for $ac_header... " >&6; } | |
10682 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10683 | $as_echo_n "(cached) " >&6 | |
10684 | fi | |
10685 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10686 | $as_echo "$as_val"'` | |
10687 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10688 | $as_echo "$ac_res" >&6; } | |
10689 | else | |
10690 | # Is the header compilable? | |
10691 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10692 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10693 | cat >conftest.$ac_ext <<_ACEOF | |
10694 | /* confdefs.h. */ | |
10695 | _ACEOF | |
10696 | cat confdefs.h >>conftest.$ac_ext | |
10697 | cat >>conftest.$ac_ext <<_ACEOF | |
10698 | /* end confdefs.h. */ | |
10699 | $ac_includes_default | |
10700 | #include <$ac_header> | |
10701 | _ACEOF | |
10702 | rm -f conftest.$ac_objext | |
10703 | if { (ac_try="$ac_compile" | |
10704 | case "(($ac_try" in | |
10705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10706 | *) ac_try_echo=$ac_try;; | |
10707 | esac | |
10708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10709 | $as_echo "$ac_try_echo") >&5 | |
10710 | (eval "$ac_compile") 2>conftest.er1 | |
10711 | ac_status=$? | |
10712 | grep -v '^ *+' conftest.er1 >conftest.err | |
10713 | rm -f conftest.er1 | |
10714 | cat conftest.err >&5 | |
10715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10716 | (exit $ac_status); } && { | |
10717 | test -z "$ac_c_werror_flag" || | |
10718 | test ! -s conftest.err | |
10719 | } && test -s conftest.$ac_objext; then | |
10720 | ac_header_compiler=yes | |
10721 | else | |
10722 | $as_echo "$as_me: failed program was:" >&5 | |
10723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10724 | ||
10725 | ac_header_compiler=no | |
10726 | fi | |
10727 | ||
10728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10729 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10730 | $as_echo "$ac_header_compiler" >&6; } | |
10731 | ||
10732 | # Is the header present? | |
10733 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10734 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10735 | cat >conftest.$ac_ext <<_ACEOF | |
10736 | /* confdefs.h. */ | |
10737 | _ACEOF | |
10738 | cat confdefs.h >>conftest.$ac_ext | |
10739 | cat >>conftest.$ac_ext <<_ACEOF | |
10740 | /* end confdefs.h. */ | |
10741 | #include <$ac_header> | |
10742 | _ACEOF | |
10743 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10744 | case "(($ac_try" in | |
10745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10746 | *) ac_try_echo=$ac_try;; | |
10747 | esac | |
10748 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10749 | $as_echo "$ac_try_echo") >&5 | |
10750 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10751 | ac_status=$? | |
10752 | grep -v '^ *+' conftest.er1 >conftest.err | |
10753 | rm -f conftest.er1 | |
10754 | cat conftest.err >&5 | |
10755 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10756 | (exit $ac_status); } >/dev/null && { | |
10757 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10758 | test ! -s conftest.err | |
10759 | }; then | |
10760 | ac_header_preproc=yes | |
10761 | else | |
10762 | $as_echo "$as_me: failed program was:" >&5 | |
10763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10764 | ||
10765 | ac_header_preproc=no | |
10766 | fi | |
10767 | ||
10768 | rm -f conftest.err conftest.$ac_ext | |
10769 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10770 | $as_echo "$ac_header_preproc" >&6; } | |
10771 | ||
10772 | # So? What about this header? | |
10773 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10774 | yes:no: ) | |
10775 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10776 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10777 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10778 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10779 | ac_header_preproc=yes | |
10780 | ;; | |
10781 | no:yes:* ) | |
10782 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10783 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10784 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10785 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10786 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10787 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10788 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10789 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10790 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10791 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10792 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10793 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10794 | ||
10795 | ;; | |
10796 | esac | |
10797 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10798 | $as_echo_n "checking for $ac_header... " >&6; } | |
10799 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10800 | $as_echo_n "(cached) " >&6 | |
10801 | else | |
10802 | eval "$as_ac_Header=\$ac_header_preproc" | |
10803 | fi | |
10804 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10805 | $as_echo "$as_val"'` | |
10806 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10807 | $as_echo "$ac_res" >&6; } | |
10808 | ||
10809 | fi | |
10810 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10811 | $as_echo "$as_val"'` | |
10812 | if test "x$as_val" = x""yes; then | |
10813 | cat >>confdefs.h <<_ACEOF | |
10814 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10815 | _ACEOF | |
10816 | ||
10817 | else | |
10818 | $bailout | |
10819 | fi | |
10820 | ||
10821 | done | |
10822 | ||
10823 | check_lib_no_libs cman cman_init | |
10824 | if test $NOTFOUND = 0; then | |
10825 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10826 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10827 | CMAN_LIBS="-lcman" | |
10828 | HAVE_CMAN=yes | |
10829 | fi | |
10830 | else | |
10831 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10832 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10833 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10834 | $as_echo "yes" >&6; } | |
10835 | HAVE_CMAN=yes | |
10836 | fi | |
10837 | CHECKCONFDB=yes | |
10838 | CHECKDLM=yes | |
10839 | fi | |
10840 | ||
10841 | if test x$BUILDCOROSYNC = xyes || \ | |
10842 | test x$BUILDOPENAIS = xyes; then | |
10843 | ||
10844 | pkg_failed=no | |
10845 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10846 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10847 | ||
10848 | if test -n "$COROSYNC_CFLAGS"; then | |
10849 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10850 | elif test -n "$PKG_CONFIG"; then | |
10851 | if test -n "$PKG_CONFIG" && \ | |
10852 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10853 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10854 | ac_status=$? | |
10855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10856 | (exit $ac_status); }; then | |
10857 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10858 | else | |
10859 | pkg_failed=yes | |
10860 | fi | |
10861 | else | |
10862 | pkg_failed=untried | |
10863 | fi | |
10864 | if test -n "$COROSYNC_LIBS"; then | |
10865 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10866 | elif test -n "$PKG_CONFIG"; then | |
10867 | if test -n "$PKG_CONFIG" && \ | |
10868 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10869 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10870 | ac_status=$? | |
10871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10872 | (exit $ac_status); }; then | |
10873 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10874 | else | |
10875 | pkg_failed=yes | |
10876 | fi | |
10877 | else | |
10878 | pkg_failed=untried | |
10879 | fi | |
10880 | ||
10881 | ||
10882 | ||
10883 | if test $pkg_failed = yes; then | |
10884 | ||
10885 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10886 | _pkg_short_errors_supported=yes | |
10887 | else | |
10888 | _pkg_short_errors_supported=no | |
10889 | fi | |
10890 | if test $_pkg_short_errors_supported = yes; then | |
10891 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10892 | else | |
10893 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10894 | fi | |
10895 | # Put the nasty error message in config.log where it belongs | |
10896 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10897 | ||
10898 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10899 | $as_echo "no" >&6; } | |
10900 | $bailout | |
10901 | elif test $pkg_failed = untried; then | |
10902 | $bailout | |
10903 | else | |
10904 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10905 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10906 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10907 | $as_echo "yes" >&6; } | |
10908 | HAVE_COROSYNC=yes | |
10909 | fi | |
10910 | CHECKCONFDB=yes | |
10911 | fi | |
10912 | ||
10913 | if test x$BUILDCOROSYNC = xyes; then | |
10914 | ||
10915 | pkg_failed=no | |
10916 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10917 | $as_echo_n "checking for QUORUM... " >&6; } | |
10918 | ||
10919 | if test -n "$QUORUM_CFLAGS"; then | |
10920 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10921 | elif test -n "$PKG_CONFIG"; then | |
10922 | if test -n "$PKG_CONFIG" && \ | |
10923 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10924 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10925 | ac_status=$? | |
10926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10927 | (exit $ac_status); }; then | |
10928 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10929 | else | |
10930 | pkg_failed=yes | |
10931 | fi | |
10932 | else | |
10933 | pkg_failed=untried | |
10934 | fi | |
10935 | if test -n "$QUORUM_LIBS"; then | |
10936 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
10937 | elif test -n "$PKG_CONFIG"; then | |
10938 | if test -n "$PKG_CONFIG" && \ | |
10939 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10940 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10941 | ac_status=$? | |
10942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10943 | (exit $ac_status); }; then | |
10944 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
10945 | else | |
10946 | pkg_failed=yes | |
10947 | fi | |
10948 | else | |
10949 | pkg_failed=untried | |
10950 | fi | |
10951 | ||
10952 | ||
10953 | ||
10954 | if test $pkg_failed = yes; then | |
10955 | ||
10956 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10957 | _pkg_short_errors_supported=yes | |
10958 | else | |
10959 | _pkg_short_errors_supported=no | |
10960 | fi | |
10961 | if test $_pkg_short_errors_supported = yes; then | |
10962 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
10963 | else | |
10964 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
10965 | fi | |
10966 | # Put the nasty error message in config.log where it belongs | |
10967 | echo "$QUORUM_PKG_ERRORS" >&5 | |
10968 | ||
10969 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10970 | $as_echo "no" >&6; } | |
10971 | $bailout | |
10972 | elif test $pkg_failed = untried; then | |
10973 | $bailout | |
10974 | else | |
10975 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
10976 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
10977 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10978 | $as_echo "yes" >&6; } | |
10979 | HAVE_QUORUM=yes | |
10980 | fi | |
10981 | CHECKCPG=yes | |
10982 | CHECKDLM=yes | |
10983 | fi | |
10984 | ||
10985 | if test x$BUILDOPENAIS = xyes; then | |
10986 | ||
10987 | pkg_failed=no | |
10988 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
10989 | $as_echo_n "checking for SALCK... " >&6; } | |
10990 | ||
10991 | if test -n "$SALCK_CFLAGS"; then | |
10992 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
10993 | elif test -n "$PKG_CONFIG"; then | |
10994 | if test -n "$PKG_CONFIG" && \ | |
10995 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10996 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10997 | ac_status=$? | |
10998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10999 | (exit $ac_status); }; then | |
11000 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
11001 | else | |
11002 | pkg_failed=yes | |
11003 | fi | |
11004 | else | |
11005 | pkg_failed=untried | |
11006 | fi | |
11007 | if test -n "$SALCK_LIBS"; then | |
11008 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
11009 | elif test -n "$PKG_CONFIG"; then | |
11010 | if test -n "$PKG_CONFIG" && \ | |
11011 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
11012 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11013 | ac_status=$? | |
11014 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11015 | (exit $ac_status); }; then | |
11016 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
11017 | else | |
11018 | pkg_failed=yes | |
11019 | fi | |
11020 | else | |
11021 | pkg_failed=untried | |
11022 | fi | |
11023 | ||
11024 | ||
11025 | ||
11026 | if test $pkg_failed = yes; then | |
11027 | ||
11028 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11029 | _pkg_short_errors_supported=yes | |
11030 | else | |
11031 | _pkg_short_errors_supported=no | |
11032 | fi | |
11033 | if test $_pkg_short_errors_supported = yes; then | |
11034 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
11035 | else | |
11036 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
11037 | fi | |
11038 | # Put the nasty error message in config.log where it belongs | |
11039 | echo "$SALCK_PKG_ERRORS" >&5 | |
11040 | ||
11041 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11042 | $as_echo "no" >&6; } | |
11043 | $bailout | |
11044 | elif test $pkg_failed = untried; then | |
11045 | $bailout | |
11046 | else | |
11047 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
11048 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
11049 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11050 | $as_echo "yes" >&6; } | |
11051 | HAVE_SALCK=yes | |
11052 | fi | |
11053 | CHECKCPG=yes | |
11054 | fi | |
11055 | ||
11056 | ||
11057 | ||
11058 | if test x$CHECKCONFDB = xyes; then | |
11059 | ||
11060 | pkg_failed=no | |
11061 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
11062 | $as_echo_n "checking for CONFDB... " >&6; } | |
11063 | ||
11064 | if test -n "$CONFDB_CFLAGS"; then | |
11065 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
11066 | elif test -n "$PKG_CONFIG"; then | |
11067 | if test -n "$PKG_CONFIG" && \ | |
11068 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11069 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11070 | ac_status=$? | |
11071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11072 | (exit $ac_status); }; then | |
11073 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
11074 | else | |
11075 | pkg_failed=yes | |
11076 | fi | |
11077 | else | |
11078 | pkg_failed=untried | |
11079 | fi | |
11080 | if test -n "$CONFDB_LIBS"; then | |
11081 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
11082 | elif test -n "$PKG_CONFIG"; then | |
11083 | if test -n "$PKG_CONFIG" && \ | |
11084 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11085 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11086 | ac_status=$? | |
11087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11088 | (exit $ac_status); }; then | |
11089 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
11090 | else | |
11091 | pkg_failed=yes | |
11092 | fi | |
11093 | else | |
11094 | pkg_failed=untried | |
11095 | fi | |
11096 | ||
11097 | ||
11098 | ||
11099 | if test $pkg_failed = yes; then | |
11100 | ||
11101 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11102 | _pkg_short_errors_supported=yes | |
11103 | else | |
11104 | _pkg_short_errors_supported=no | |
11105 | fi | |
11106 | if test $_pkg_short_errors_supported = yes; then | |
11107 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
11108 | else | |
11109 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
11110 | fi | |
11111 | # Put the nasty error message in config.log where it belongs | |
11112 | echo "$CONFDB_PKG_ERRORS" >&5 | |
11113 | ||
11114 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11115 | $as_echo "no" >&6; } | |
11116 | HAVE_CONFDB=no | |
11117 | elif test $pkg_failed = untried; then | |
11118 | HAVE_CONFDB=no | |
11119 | else | |
11120 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11121 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11122 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11123 | $as_echo "yes" >&6; } | |
11124 | HAVE_CONFDB=yes | |
11125 | fi | |
11126 | ||
11127 | ||
11128 | for ac_header in corosync/confdb.h | |
11129 | do | |
11130 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11132 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11133 | $as_echo_n "checking for $ac_header... " >&6; } | |
11134 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11135 | $as_echo_n "(cached) " >&6 | |
11136 | fi | |
11137 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11138 | $as_echo "$as_val"'` | |
11139 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11140 | $as_echo "$ac_res" >&6; } | |
11141 | else | |
11142 | # Is the header compilable? | |
11143 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11144 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11145 | cat >conftest.$ac_ext <<_ACEOF | |
11146 | /* confdefs.h. */ | |
11147 | _ACEOF | |
11148 | cat confdefs.h >>conftest.$ac_ext | |
11149 | cat >>conftest.$ac_ext <<_ACEOF | |
11150 | /* end confdefs.h. */ | |
11151 | $ac_includes_default | |
11152 | #include <$ac_header> | |
11153 | _ACEOF | |
11154 | rm -f conftest.$ac_objext | |
11155 | if { (ac_try="$ac_compile" | |
11156 | case "(($ac_try" in | |
11157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11158 | *) ac_try_echo=$ac_try;; | |
11159 | esac | |
11160 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11161 | $as_echo "$ac_try_echo") >&5 | |
11162 | (eval "$ac_compile") 2>conftest.er1 | |
11163 | ac_status=$? | |
11164 | grep -v '^ *+' conftest.er1 >conftest.err | |
11165 | rm -f conftest.er1 | |
11166 | cat conftest.err >&5 | |
11167 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11168 | (exit $ac_status); } && { | |
11169 | test -z "$ac_c_werror_flag" || | |
11170 | test ! -s conftest.err | |
11171 | } && test -s conftest.$ac_objext; then | |
11172 | ac_header_compiler=yes | |
11173 | else | |
11174 | $as_echo "$as_me: failed program was:" >&5 | |
11175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11176 | ||
11177 | ac_header_compiler=no | |
11178 | fi | |
11179 | ||
11180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11181 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11182 | $as_echo "$ac_header_compiler" >&6; } | |
11183 | ||
11184 | # Is the header present? | |
11185 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11186 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11187 | cat >conftest.$ac_ext <<_ACEOF | |
11188 | /* confdefs.h. */ | |
11189 | _ACEOF | |
11190 | cat confdefs.h >>conftest.$ac_ext | |
11191 | cat >>conftest.$ac_ext <<_ACEOF | |
11192 | /* end confdefs.h. */ | |
11193 | #include <$ac_header> | |
11194 | _ACEOF | |
11195 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11196 | case "(($ac_try" in | |
11197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11198 | *) ac_try_echo=$ac_try;; | |
11199 | esac | |
11200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11201 | $as_echo "$ac_try_echo") >&5 | |
11202 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11203 | ac_status=$? | |
11204 | grep -v '^ *+' conftest.er1 >conftest.err | |
11205 | rm -f conftest.er1 | |
11206 | cat conftest.err >&5 | |
11207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11208 | (exit $ac_status); } >/dev/null && { | |
11209 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11210 | test ! -s conftest.err | |
11211 | }; then | |
11212 | ac_header_preproc=yes | |
11213 | else | |
11214 | $as_echo "$as_me: failed program was:" >&5 | |
11215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11216 | ||
11217 | ac_header_preproc=no | |
11218 | fi | |
11219 | ||
11220 | rm -f conftest.err conftest.$ac_ext | |
11221 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11222 | $as_echo "$ac_header_preproc" >&6; } | |
11223 | ||
11224 | # So? What about this header? | |
11225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11226 | yes:no: ) | |
11227 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11228 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11229 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11230 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11231 | ac_header_preproc=yes | |
11232 | ;; | |
11233 | no:yes:* ) | |
11234 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11235 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11236 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11237 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11239 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11241 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11243 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11244 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11245 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11246 | ||
11247 | ;; | |
11248 | esac | |
11249 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11250 | $as_echo_n "checking for $ac_header... " >&6; } | |
11251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11252 | $as_echo_n "(cached) " >&6 | |
11253 | else | |
11254 | eval "$as_ac_Header=\$ac_header_preproc" | |
11255 | fi | |
11256 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11257 | $as_echo "$as_val"'` | |
11258 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11259 | $as_echo "$ac_res" >&6; } | |
11260 | ||
11261 | fi | |
11262 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11263 | $as_echo "$as_val"'` | |
11264 | if test "x$as_val" = x""yes; then | |
11265 | cat >>confdefs.h <<_ACEOF | |
11266 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11267 | _ACEOF | |
11268 | HAVE_CONFDB_H=yes | |
11269 | else | |
11270 | HAVE_CONFDB_H=no | |
11271 | fi | |
11272 | ||
11273 | done | |
11274 | ||
11275 | ||
11276 | if test x$HAVE_CONFDB != xyes && \ | |
11277 | test x$HAVE_CONFDB_H = xyes; then | |
11278 | check_lib_no_libs confdb confdb_initialize | |
11279 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11280 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11281 | CONFDB_LIBS="-lconfdb" | |
11282 | HAVE_CONFDB=yes | |
11283 | fi | |
11284 | ||
11285 | if test x$BUILDCOROSYNC = xyes && \ | |
11286 | test x$HAVE_CONFDB != xyes && | |
11287 | test x$CLVMD != xall; then | |
11288 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11289 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11290 | { (exit 1); exit 1; }; } | |
11291 | fi | |
11292 | fi | |
11293 | ||
11294 | if test x$CHECKCPG = xyes; then | |
11295 | ||
11296 | pkg_failed=no | |
11297 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11298 | $as_echo_n "checking for CPG... " >&6; } | |
11299 | ||
11300 | if test -n "$CPG_CFLAGS"; then | |
11301 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11302 | elif test -n "$PKG_CONFIG"; then | |
11303 | if test -n "$PKG_CONFIG" && \ | |
11304 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11305 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11306 | ac_status=$? | |
11307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11308 | (exit $ac_status); }; then | |
11309 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11310 | else | |
11311 | pkg_failed=yes | |
11312 | fi | |
11313 | else | |
11314 | pkg_failed=untried | |
11315 | fi | |
11316 | if test -n "$CPG_LIBS"; then | |
11317 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11318 | elif test -n "$PKG_CONFIG"; then | |
11319 | if test -n "$PKG_CONFIG" && \ | |
11320 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11321 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11322 | ac_status=$? | |
11323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11324 | (exit $ac_status); }; then | |
11325 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11326 | else | |
11327 | pkg_failed=yes | |
11328 | fi | |
11329 | else | |
11330 | pkg_failed=untried | |
11331 | fi | |
11332 | ||
11333 | ||
11334 | ||
11335 | if test $pkg_failed = yes; then | |
11336 | ||
11337 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11338 | _pkg_short_errors_supported=yes | |
11339 | else | |
11340 | _pkg_short_errors_supported=no | |
11341 | fi | |
11342 | if test $_pkg_short_errors_supported = yes; then | |
11343 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11344 | else | |
11345 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11346 | fi | |
11347 | # Put the nasty error message in config.log where it belongs | |
11348 | echo "$CPG_PKG_ERRORS" >&5 | |
11349 | ||
11350 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11351 | $as_echo "no" >&6; } | |
11352 | $bailout | |
11353 | elif test $pkg_failed = untried; then | |
11354 | $bailout | |
11355 | else | |
11356 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11357 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11358 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11359 | $as_echo "yes" >&6; } | |
11360 | HAVE_CPG=yes | |
11361 | fi | |
11362 | fi | |
11363 | ||
11364 | if test x$CHECKDLM = xyes; then | |
11365 | ||
11366 | pkg_failed=no | |
11367 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11368 | $as_echo_n "checking for DLM... " >&6; } | |
11369 | ||
11370 | if test -n "$DLM_CFLAGS"; then | |
11371 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11372 | elif test -n "$PKG_CONFIG"; then | |
11373 | if test -n "$PKG_CONFIG" && \ | |
11374 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11375 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11376 | ac_status=$? | |
11377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; then | |
11379 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11380 | else | |
11381 | pkg_failed=yes | |
11382 | fi | |
11383 | else | |
11384 | pkg_failed=untried | |
11385 | fi | |
11386 | if test -n "$DLM_LIBS"; then | |
11387 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11388 | elif test -n "$PKG_CONFIG"; then | |
11389 | if test -n "$PKG_CONFIG" && \ | |
11390 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11391 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11392 | ac_status=$? | |
11393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11394 | (exit $ac_status); }; then | |
11395 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11396 | else | |
11397 | pkg_failed=yes | |
11398 | fi | |
11399 | else | |
11400 | pkg_failed=untried | |
11401 | fi | |
11402 | ||
11403 | ||
11404 | ||
11405 | if test $pkg_failed = yes; then | |
11406 | ||
11407 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11408 | _pkg_short_errors_supported=yes | |
11409 | else | |
11410 | _pkg_short_errors_supported=no | |
11411 | fi | |
11412 | if test $_pkg_short_errors_supported = yes; then | |
11413 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11414 | else | |
11415 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11416 | fi | |
11417 | # Put the nasty error message in config.log where it belongs | |
11418 | echo "$DLM_PKG_ERRORS" >&5 | |
11419 | ||
11420 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11421 | $as_echo "no" >&6; } | |
11422 | NOTFOUND=0 | |
11423 | ||
11424 | for ac_header in libdlm.h | |
11425 | do | |
11426 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11427 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11428 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11429 | $as_echo_n "checking for $ac_header... " >&6; } | |
11430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11431 | $as_echo_n "(cached) " >&6 | |
11432 | fi | |
11433 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11434 | $as_echo "$as_val"'` | |
11435 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11436 | $as_echo "$ac_res" >&6; } | |
11437 | else | |
11438 | # Is the header compilable? | |
11439 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11440 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11441 | cat >conftest.$ac_ext <<_ACEOF | |
11442 | /* confdefs.h. */ | |
11443 | _ACEOF | |
11444 | cat confdefs.h >>conftest.$ac_ext | |
11445 | cat >>conftest.$ac_ext <<_ACEOF | |
11446 | /* end confdefs.h. */ | |
11447 | $ac_includes_default | |
11448 | #include <$ac_header> | |
11449 | _ACEOF | |
11450 | rm -f conftest.$ac_objext | |
11451 | if { (ac_try="$ac_compile" | |
11452 | case "(($ac_try" in | |
11453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11454 | *) ac_try_echo=$ac_try;; | |
11455 | esac | |
11456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11457 | $as_echo "$ac_try_echo") >&5 | |
11458 | (eval "$ac_compile") 2>conftest.er1 | |
11459 | ac_status=$? | |
11460 | grep -v '^ *+' conftest.er1 >conftest.err | |
11461 | rm -f conftest.er1 | |
11462 | cat conftest.err >&5 | |
11463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11464 | (exit $ac_status); } && { | |
11465 | test -z "$ac_c_werror_flag" || | |
11466 | test ! -s conftest.err | |
11467 | } && test -s conftest.$ac_objext; then | |
11468 | ac_header_compiler=yes | |
11469 | else | |
11470 | $as_echo "$as_me: failed program was:" >&5 | |
11471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11472 | ||
11473 | ac_header_compiler=no | |
11474 | fi | |
11475 | ||
11476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11477 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11478 | $as_echo "$ac_header_compiler" >&6; } | |
11479 | ||
11480 | # Is the header present? | |
11481 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11482 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11483 | cat >conftest.$ac_ext <<_ACEOF | |
11484 | /* confdefs.h. */ | |
11485 | _ACEOF | |
11486 | cat confdefs.h >>conftest.$ac_ext | |
11487 | cat >>conftest.$ac_ext <<_ACEOF | |
11488 | /* end confdefs.h. */ | |
11489 | #include <$ac_header> | |
11490 | _ACEOF | |
11491 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11492 | case "(($ac_try" in | |
11493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11494 | *) ac_try_echo=$ac_try;; | |
11495 | esac | |
11496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11497 | $as_echo "$ac_try_echo") >&5 | |
11498 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11499 | ac_status=$? | |
11500 | grep -v '^ *+' conftest.er1 >conftest.err | |
11501 | rm -f conftest.er1 | |
11502 | cat conftest.err >&5 | |
11503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11504 | (exit $ac_status); } >/dev/null && { | |
11505 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11506 | test ! -s conftest.err | |
11507 | }; then | |
11508 | ac_header_preproc=yes | |
11509 | else | |
11510 | $as_echo "$as_me: failed program was:" >&5 | |
11511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11512 | ||
11513 | ac_header_preproc=no | |
11514 | fi | |
11515 | ||
11516 | rm -f conftest.err conftest.$ac_ext | |
11517 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11518 | $as_echo "$ac_header_preproc" >&6; } | |
11519 | ||
11520 | # So? What about this header? | |
11521 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11522 | yes:no: ) | |
11523 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11524 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11525 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11526 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11527 | ac_header_preproc=yes | |
11528 | ;; | |
11529 | no:yes:* ) | |
11530 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11531 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11532 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11533 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11534 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11535 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11536 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11537 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11539 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11541 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11542 | ||
11543 | ;; | |
11544 | esac | |
11545 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11546 | $as_echo_n "checking for $ac_header... " >&6; } | |
11547 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11548 | $as_echo_n "(cached) " >&6 | |
11549 | else | |
11550 | eval "$as_ac_Header=\$ac_header_preproc" | |
11551 | fi | |
11552 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11553 | $as_echo "$as_val"'` | |
11554 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11555 | $as_echo "$ac_res" >&6; } | |
11556 | ||
11557 | fi | |
11558 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11559 | $as_echo "$as_val"'` | |
11560 | if test "x$as_val" = x""yes; then | |
11561 | cat >>confdefs.h <<_ACEOF | |
11562 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11563 | _ACEOF | |
11564 | ||
11565 | else | |
11566 | $bailout | |
11567 | fi | |
11568 | ||
11569 | done | |
11570 | ||
11571 | check_lib_no_libs dlm dlm_lock -lpthread | |
11572 | if test $NOTFOUND = 0; then | |
11573 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11574 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11575 | DLM_LIBS="-ldlm -lpthread" | |
11576 | HAVE_DLM=yes | |
11577 | fi | |
11578 | elif test $pkg_failed = untried; then | |
11579 | NOTFOUND=0 | |
11580 | ||
11581 | for ac_header in libdlm.h | |
11582 | do | |
11583 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11585 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11586 | $as_echo_n "checking for $ac_header... " >&6; } | |
11587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11588 | $as_echo_n "(cached) " >&6 | |
11589 | fi | |
11590 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11591 | $as_echo "$as_val"'` | |
11592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11593 | $as_echo "$ac_res" >&6; } | |
11594 | else | |
11595 | # Is the header compilable? | |
11596 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11597 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11598 | cat >conftest.$ac_ext <<_ACEOF | |
11599 | /* confdefs.h. */ | |
11600 | _ACEOF | |
11601 | cat confdefs.h >>conftest.$ac_ext | |
11602 | cat >>conftest.$ac_ext <<_ACEOF | |
11603 | /* end confdefs.h. */ | |
11604 | $ac_includes_default | |
11605 | #include <$ac_header> | |
11606 | _ACEOF | |
11607 | rm -f conftest.$ac_objext | |
11608 | if { (ac_try="$ac_compile" | |
11609 | case "(($ac_try" in | |
11610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11611 | *) ac_try_echo=$ac_try;; | |
11612 | esac | |
11613 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11614 | $as_echo "$ac_try_echo") >&5 | |
11615 | (eval "$ac_compile") 2>conftest.er1 | |
11616 | ac_status=$? | |
11617 | grep -v '^ *+' conftest.er1 >conftest.err | |
11618 | rm -f conftest.er1 | |
11619 | cat conftest.err >&5 | |
11620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11621 | (exit $ac_status); } && { | |
11622 | test -z "$ac_c_werror_flag" || | |
11623 | test ! -s conftest.err | |
11624 | } && test -s conftest.$ac_objext; then | |
11625 | ac_header_compiler=yes | |
11626 | else | |
11627 | $as_echo "$as_me: failed program was:" >&5 | |
11628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11629 | ||
11630 | ac_header_compiler=no | |
11631 | fi | |
11632 | ||
11633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11634 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11635 | $as_echo "$ac_header_compiler" >&6; } | |
11636 | ||
11637 | # Is the header present? | |
11638 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11639 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11640 | cat >conftest.$ac_ext <<_ACEOF | |
11641 | /* confdefs.h. */ | |
11642 | _ACEOF | |
11643 | cat confdefs.h >>conftest.$ac_ext | |
11644 | cat >>conftest.$ac_ext <<_ACEOF | |
11645 | /* end confdefs.h. */ | |
11646 | #include <$ac_header> | |
11647 | _ACEOF | |
11648 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11649 | case "(($ac_try" in | |
11650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11651 | *) ac_try_echo=$ac_try;; | |
11652 | esac | |
11653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11654 | $as_echo "$ac_try_echo") >&5 | |
11655 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11656 | ac_status=$? | |
11657 | grep -v '^ *+' conftest.er1 >conftest.err | |
11658 | rm -f conftest.er1 | |
11659 | cat conftest.err >&5 | |
11660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11661 | (exit $ac_status); } >/dev/null && { | |
11662 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11663 | test ! -s conftest.err | |
11664 | }; then | |
11665 | ac_header_preproc=yes | |
11666 | else | |
11667 | $as_echo "$as_me: failed program was:" >&5 | |
11668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11669 | ||
11670 | ac_header_preproc=no | |
11671 | fi | |
11672 | ||
11673 | rm -f conftest.err conftest.$ac_ext | |
11674 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11675 | $as_echo "$ac_header_preproc" >&6; } | |
11676 | ||
11677 | # So? What about this header? | |
11678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11679 | yes:no: ) | |
11680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11681 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11683 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11684 | ac_header_preproc=yes | |
11685 | ;; | |
11686 | no:yes:* ) | |
11687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11688 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11690 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11692 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11694 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11696 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11698 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11699 | ||
11700 | ;; | |
11701 | esac | |
11702 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11703 | $as_echo_n "checking for $ac_header... " >&6; } | |
11704 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11705 | $as_echo_n "(cached) " >&6 | |
11706 | else | |
11707 | eval "$as_ac_Header=\$ac_header_preproc" | |
11708 | fi | |
11709 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11710 | $as_echo "$as_val"'` | |
11711 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11712 | $as_echo "$ac_res" >&6; } | |
11713 | ||
11714 | fi | |
11715 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11716 | $as_echo "$as_val"'` | |
11717 | if test "x$as_val" = x""yes; then | |
11718 | cat >>confdefs.h <<_ACEOF | |
11719 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11720 | _ACEOF | |
11721 | ||
11722 | else | |
11723 | $bailout | |
11724 | fi | |
11725 | ||
11726 | done | |
11727 | ||
11728 | check_lib_no_libs dlm dlm_lock -lpthread | |
11729 | if test $NOTFOUND = 0; then | |
11730 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11731 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11732 | DLM_LIBS="-ldlm -lpthread" | |
11733 | HAVE_DLM=yes | |
11734 | fi | |
11735 | else | |
11736 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11737 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11738 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11739 | $as_echo "yes" >&6; } | |
11740 | HAVE_DLM=yes | |
11741 | fi | |
11742 | fi | |
11743 | ||
11744 | if test x$CLVMD = xall; then | |
8c222979 | 11745 | CLVMD=none |
a946372e AK |
11746 | if test x$HAVE_CCS = xyes && \ |
11747 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
11748 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
11749 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
11750 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
11751 | fi |
11752 | if test x$HAVE_CMAN = xyes && \ | |
11753 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
11754 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
11755 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
11756 | CLVMD="$CLVMD,cman" | |
a946372e AK |
11757 | fi |
11758 | if test x$HAVE_COROSYNC = xyes && \ | |
11759 | test x$HAVE_QUORUM = xyes && \ | |
11760 | test x$HAVE_CPG = xyes && \ | |
11761 | test x$HAVE_DLM = xyes && \ | |
11762 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
11763 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
11764 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
11765 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
11766 | fi |
11767 | if test x$HAVE_COROSYNC = xyes && \ | |
11768 | test x$HAVE_CPG = xyes && \ | |
11769 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
11770 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
11771 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
11772 | CLVMD="$CLVMD,openais" | |
11773 | fi | |
11774 | if test x$CLVMD = xnone; then | |
11775 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
11776 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 11777 | fi |
a946372e AK |
11778 | fi |
11779 | ||
11780 | ################################################################################ | |
66fd4529 AK |
11781 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11782 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11783 | # Check whether --enable-cmirrord was given. | |
11784 | if test "${enable_cmirrord+set}" = set; then | |
11785 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11786 | else | |
11787 | CMIRRORD=no | |
11788 | fi | |
11789 | ||
11790 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11791 | $as_echo "$CMIRRORD" >&6; } | |
11792 | ||
11793 | BUILD_CMIRRORD=$CMIRRORD | |
11794 | ||
11795 | ################################################################################ | |
11796 | ||
11797 | ||
11798 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11799 | ||
11800 | # Check whether --with-cmirrord-pidfile was given. | |
11801 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11802 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11803 | #define CMIRRORD_PIDFILE "$withval" | |
11804 | _ACEOF | |
11805 | ||
11806 | else | |
11807 | cat >>confdefs.h <<_ACEOF | |
11808 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11809 | _ACEOF | |
11810 | ||
a946372e AK |
11811 | fi |
11812 | ||
66fd4529 | 11813 | fi |
a946372e | 11814 | |
66fd4529 AK |
11815 | ################################################################################ |
11816 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
11817 | if test x$PKGCONFIG_INIT != x1; then |
11818 | pkg_config_init | |
11819 | fi | |
11820 | ||
11821 | pkg_failed=no | |
11822 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
11823 | $as_echo_n "checking for SACKPT... " >&6; } | |
11824 | ||
11825 | if test -n "$SACKPT_CFLAGS"; then | |
11826 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
11827 | elif test -n "$PKG_CONFIG"; then | |
11828 | if test -n "$PKG_CONFIG" && \ | |
11829 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11830 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11831 | ac_status=$? | |
11832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11833 | (exit $ac_status); }; then | |
11834 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
11835 | else | |
11836 | pkg_failed=yes | |
11837 | fi | |
11838 | else | |
11839 | pkg_failed=untried | |
11840 | fi | |
11841 | if test -n "$SACKPT_LIBS"; then | |
11842 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
11843 | elif test -n "$PKG_CONFIG"; then | |
11844 | if test -n "$PKG_CONFIG" && \ | |
11845 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11846 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11847 | ac_status=$? | |
11848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11849 | (exit $ac_status); }; then | |
11850 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
11851 | else | |
11852 | pkg_failed=yes | |
11853 | fi | |
11854 | else | |
11855 | pkg_failed=untried | |
11856 | fi | |
11857 | ||
11858 | ||
11859 | ||
11860 | if test $pkg_failed = yes; then | |
11861 | ||
11862 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11863 | _pkg_short_errors_supported=yes | |
11864 | else | |
11865 | _pkg_short_errors_supported=no | |
11866 | fi | |
11867 | if test $_pkg_short_errors_supported = yes; then | |
11868 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
11869 | else | |
11870 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
11871 | fi | |
11872 | # Put the nasty error message in config.log where it belongs | |
11873 | echo "$SACKPT_PKG_ERRORS" >&5 | |
11874 | ||
11875 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
11876 | ||
11877 | $SACKPT_PKG_ERRORS | |
11878 | ||
11879 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11880 | installed software in a non-standard prefix. | |
11881 | ||
11882 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11883 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11884 | See the pkg-config man page for more details. | |
11885 | " >&5 | |
11886 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: | |
11887 | ||
11888 | $SACKPT_PKG_ERRORS | |
11889 | ||
11890 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11891 | installed software in a non-standard prefix. | |
11892 | ||
11893 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11894 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11895 | See the pkg-config man page for more details. | |
11896 | " >&2;} | |
11897 | { (exit 1); exit 1; }; } | |
11898 | elif test $pkg_failed = untried; then | |
11899 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11901 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11902 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11903 | path to pkg-config. | |
11904 | ||
11905 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11906 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11907 | See the pkg-config man page for more details. | |
11908 | ||
11909 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11910 | See \`config.log' for more details." >&5 | |
11911 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11912 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11913 | path to pkg-config. | |
11914 | ||
11915 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11916 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11917 | See the pkg-config man page for more details. | |
11918 | ||
11919 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11920 | See \`config.log' for more details." >&2;} | |
11921 | { (exit 1); exit 1; }; }; } | |
11922 | else | |
11923 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
11924 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
11925 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11926 | $as_echo "yes" >&6; } | |
11927 | : | |
11928 | fi | |
11929 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
11930 | |
11931 | pkg_failed=no | |
11932 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11933 | $as_echo_n "checking for CPG... " >&6; } | |
11934 | ||
11935 | if test -n "$CPG_CFLAGS"; then | |
11936 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11937 | elif test -n "$PKG_CONFIG"; then | |
11938 | if test -n "$PKG_CONFIG" && \ | |
11939 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11940 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11941 | ac_status=$? | |
11942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11943 | (exit $ac_status); }; then | |
11944 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11945 | else | |
11946 | pkg_failed=yes | |
11947 | fi | |
11948 | else | |
11949 | pkg_failed=untried | |
11950 | fi | |
11951 | if test -n "$CPG_LIBS"; then | |
11952 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11953 | elif test -n "$PKG_CONFIG"; then | |
11954 | if test -n "$PKG_CONFIG" && \ | |
11955 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11956 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11957 | ac_status=$? | |
11958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11959 | (exit $ac_status); }; then | |
11960 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11961 | else | |
11962 | pkg_failed=yes | |
11963 | fi | |
11964 | else | |
11965 | pkg_failed=untried | |
11966 | fi | |
11967 | ||
11968 | ||
11969 | ||
11970 | if test $pkg_failed = yes; then | |
11971 | ||
11972 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11973 | _pkg_short_errors_supported=yes | |
11974 | else | |
11975 | _pkg_short_errors_supported=no | |
11976 | fi | |
11977 | if test $_pkg_short_errors_supported = yes; then | |
11978 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11979 | else | |
11980 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11981 | fi | |
11982 | # Put the nasty error message in config.log where it belongs | |
11983 | echo "$CPG_PKG_ERRORS" >&5 | |
11984 | ||
90c80887 AK |
11985 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
11986 | ||
11987 | $CPG_PKG_ERRORS | |
11988 | ||
11989 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11990 | installed software in a non-standard prefix. | |
11991 | ||
11992 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11993 | and CPG_LIBS to avoid the need to call pkg-config. | |
11994 | See the pkg-config man page for more details. | |
11995 | " >&5 | |
11996 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: | |
11997 | ||
11998 | $CPG_PKG_ERRORS | |
11999 | ||
12000 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12001 | installed software in a non-standard prefix. | |
12002 | ||
12003 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12004 | and CPG_LIBS to avoid the need to call pkg-config. | |
12005 | See the pkg-config man page for more details. | |
12006 | " >&2;} | |
12007 | { (exit 1); exit 1; }; } | |
a946372e | 12008 | elif test $pkg_failed = untried; then |
90c80887 AK |
12009 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12011 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
12012 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12013 | path to pkg-config. | |
12014 | ||
12015 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12016 | and CPG_LIBS to avoid the need to call pkg-config. | |
12017 | See the pkg-config man page for more details. | |
12018 | ||
12019 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12020 | See \`config.log' for more details." >&5 | |
12021 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
12022 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12023 | path to pkg-config. | |
12024 | ||
12025 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12026 | and CPG_LIBS to avoid the need to call pkg-config. | |
12027 | See the pkg-config man page for more details. | |
12028 | ||
12029 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12030 | See \`config.log' for more details." >&2;} | |
12031 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
12032 | else |
12033 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
12034 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
12035 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12036 | $as_echo "yes" >&6; } | |
12037 | : | |
12038 | fi | |
90c80887 | 12039 | fi |
a946372e AK |
12040 | fi |
12041 | ||
12042 | ################################################################################ | |
12043 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
12044 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
12045 | # Check whether --enable-debug was given. | |
12046 | if test "${enable_debug+set}" = set; then | |
12047 | enableval=$enable_debug; DEBUG=$enableval | |
12048 | else | |
12049 | DEBUG=no | |
12050 | fi | |
12051 | ||
12052 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
12053 | $as_echo "$DEBUG" >&6; } | |
12054 | ||
12055 | if test x$DEBUG = xyes; then | |
12056 | COPTIMISE_FLAG= | |
12057 | else | |
12058 | CSCOPE_CMD= | |
12059 | fi | |
12060 | ||
12061 | ################################################################################ | |
12062 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
12063 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
12064 | ||
12065 | # Check whether --with-optimisation was given. | |
12066 | if test "${with_optimisation+set}" = set; then | |
12067 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
12068 | fi | |
12069 | ||
12070 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
12071 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
12072 | ||
12073 | ################################################################################ | |
12074 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
12075 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
12076 | # Check whether --enable-profiling was given. | |
12077 | if test "${enable_profiling+set}" = set; then | |
5556819a | 12078 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 12079 | else |
5556819a | 12080 | PROFILING=no |
fddafd51 ZK |
12081 | fi |
12082 | ||
ec6a6fbe AK |
12083 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
12084 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
12085 | |
12086 | if test "x$PROFILING" = xyes; then | |
12087 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
12088 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 12089 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
12090 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12091 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12092 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 12093 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12094 | else |
12095 | case $LCOV in | |
12096 | [\\/]* | ?:[\\/]*) | |
12097 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
12098 | ;; | |
12099 | *) | |
12100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12101 | for as_dir in $PATH | |
12102 | do | |
12103 | IFS=$as_save_IFS | |
12104 | test -z "$as_dir" && as_dir=. | |
12105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12107 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12108 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12109 | break 2 |
12110 | fi | |
12111 | done | |
12112 | done | |
12113 | IFS=$as_save_IFS | |
12114 | ||
b145d876 | 12115 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
12116 | ;; |
12117 | esac | |
12118 | fi | |
12119 | LCOV=$ac_cv_path_LCOV | |
12120 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
12121 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
12122 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 12123 | else |
ec6a6fbe AK |
12124 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12125 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12126 | fi |
12127 | ||
12128 | ||
5556819a | 12129 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 12130 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
12131 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12132 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12133 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 12134 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12135 | else |
12136 | case $GENHTML in | |
12137 | [\\/]* | ?:[\\/]*) | |
12138 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
12139 | ;; | |
12140 | *) | |
12141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12142 | for as_dir in $PATH | |
12143 | do | |
12144 | IFS=$as_save_IFS | |
12145 | test -z "$as_dir" && as_dir=. | |
12146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12148 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12149 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12150 | break 2 |
12151 | fi | |
12152 | done | |
12153 | done | |
12154 | IFS=$as_save_IFS | |
12155 | ||
b145d876 | 12156 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
12157 | ;; |
12158 | esac | |
12159 | fi | |
12160 | GENHTML=$ac_cv_path_GENHTML | |
12161 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
12162 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
12163 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 12164 | else |
ec6a6fbe AK |
12165 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12166 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12167 | fi |
12168 | ||
12169 | ||
b145d876 | 12170 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
12171 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
12172 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
12173 | { (exit 1); exit 1; }; } |
12174 | fi | |
5556819a | 12175 | fi |
d0191583 JM |
12176 | |
12177 | ################################################################################ | |
ec6a6fbe AK |
12178 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
12179 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
12180 | # Check whether --enable-devmapper was given. |
12181 | if test "${enable_devmapper+set}" = set; then | |
12182 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
12183 | fi |
12184 | ||
ec6a6fbe AK |
12185 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
12186 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
12187 | |
12188 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
12189 | |
12190 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 12191 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
12192 | _ACEOF |
12193 | ||
12194 | fi | |
12195 | ||
a5f46f6a AK |
12196 | ################################################################################ |
12197 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
12198 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
12199 | # Check whether --enable-udev_sync was given. | |
12200 | if test "${enable_udev_sync+set}" = set; then | |
12201 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
12202 | else | |
12203 | UDEV_SYNC=no | |
12204 | fi | |
12205 | ||
12206 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
12207 | $as_echo "$UDEV_SYNC" >&6; } | |
12208 | ||
12209 | if test x$UDEV_SYNC = xyes; then | |
12210 | ||
12211 | cat >>confdefs.h <<\_ACEOF | |
12212 | #define UDEV_SYNC_SUPPORT 1 | |
12213 | _ACEOF | |
12214 | ||
12215 | fi | |
12216 | ||
12217 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
12218 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
12219 | # Check whether --enable-udev_rules was given. | |
12220 | if test "${enable_udev_rules+set}" = set; then | |
12221 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
12222 | else | |
12223 | UDEV_RULES=$UDEV_SYNC | |
12224 | fi | |
12225 | ||
12226 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
12227 | $as_echo "$UDEV_RULES" >&6; } | |
12228 | ||
90c80887 AK |
12229 | ################################################################################ |
12230 | ||
12231 | if test x$UDEV_SYNC = xyes; then | |
12232 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
12233 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
12234 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
12235 | $as_echo_n "(cached) " >&6 | |
12236 | else | |
12237 | ac_check_lib_save_LIBS=$LIBS | |
12238 | LIBS="-ludev $LIBS" | |
12239 | cat >conftest.$ac_ext <<_ACEOF | |
12240 | /* confdefs.h. */ | |
12241 | _ACEOF | |
12242 | cat confdefs.h >>conftest.$ac_ext | |
12243 | cat >>conftest.$ac_ext <<_ACEOF | |
12244 | /* end confdefs.h. */ | |
12245 | ||
12246 | /* Override any GCC internal prototype to avoid an error. | |
12247 | Use char because int might match the return type of a GCC | |
12248 | builtin and then its argument prototype would still apply. */ | |
12249 | #ifdef __cplusplus | |
12250 | extern "C" | |
12251 | #endif | |
12252 | char udev_queue_get_udev_is_active (); | |
12253 | int | |
12254 | main () | |
12255 | { | |
12256 | return udev_queue_get_udev_is_active (); | |
12257 | ; | |
12258 | return 0; | |
12259 | } | |
12260 | _ACEOF | |
12261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12262 | if { (ac_try="$ac_link" | |
12263 | case "(($ac_try" in | |
12264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12265 | *) ac_try_echo=$ac_try;; | |
12266 | esac | |
12267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12268 | $as_echo "$ac_try_echo") >&5 | |
12269 | (eval "$ac_link") 2>conftest.er1 | |
12270 | ac_status=$? | |
12271 | grep -v '^ *+' conftest.er1 >conftest.err | |
12272 | rm -f conftest.er1 | |
12273 | cat conftest.err >&5 | |
12274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12275 | (exit $ac_status); } && { | |
12276 | test -z "$ac_c_werror_flag" || | |
12277 | test ! -s conftest.err | |
12278 | } && test -s conftest$ac_exeext && { | |
12279 | test "$cross_compiling" = yes || | |
12280 | $as_test_x conftest$ac_exeext | |
12281 | }; then | |
12282 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
12283 | else | |
12284 | $as_echo "$as_me: failed program was:" >&5 | |
12285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12286 | ||
12287 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
12288 | fi | |
12289 | ||
12290 | rm -rf conftest.dSYM | |
12291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12292 | conftest$ac_exeext conftest.$ac_ext | |
12293 | LIBS=$ac_check_lib_save_LIBS | |
12294 | fi | |
12295 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
12296 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
12297 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
12298 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes | |
12299 | else | |
12300 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no | |
12301 | fi | |
12302 | ||
12303 | ||
12304 | if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then | |
12305 | ||
12306 | cat >>confdefs.h <<\_ACEOF | |
12307 | #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1 | |
12308 | _ACEOF | |
12309 | ||
12310 | LIBS="-ludev $LIBS" | |
0878503f PR |
12311 | else |
12312 | { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5 | |
12313 | $as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;} | |
90c80887 AK |
12314 | fi |
12315 | fi | |
12316 | ||
93bd259b AK |
12317 | ################################################################################ |
12318 | # Check whether --enable-compat was given. | |
12319 | if test "${enable_compat+set}" = set; then | |
12320 | enableval=$enable_compat; DM_COMPAT=$enableval | |
12321 | else | |
12322 | DM_COMPAT=no | |
12323 | fi | |
12324 | ||
12325 | ||
95eaa683 AK |
12326 | ################################################################################ |
12327 | # Check whether --enable-units-compat was given. | |
12328 | if test "${enable_units_compat+set}" = set; then | |
12329 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
12330 | else | |
12331 | UNITS_COMPAT=no | |
12332 | fi | |
12333 | ||
12334 | ||
12335 | if test x$UNITS_COMPAT = xyes; then | |
12336 | ||
12337 | cat >>confdefs.h <<\_ACEOF | |
12338 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
12339 | _ACEOF | |
12340 | ||
12341 | fi | |
12342 | ||
93bd259b AK |
12343 | ################################################################################ |
12344 | # Check whether --enable-ioctl was given. | |
12345 | if test "${enable_ioctl+set}" = set; then | |
12346 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
12347 | fi | |
12348 | ||
12349 | ||
d0191583 | 12350 | ################################################################################ |
ec6a6fbe AK |
12351 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
12352 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
12353 | # Check whether --enable-o_direct was given. |
12354 | if test "${enable_o_direct+set}" = set; then | |
12355 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 12356 | fi |
ad6254c5 | 12357 | |
ec6a6fbe AK |
12358 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
12359 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 12360 | |
d0191583 | 12361 | if test x$ODIRECT = xyes; then |
ad6254c5 | 12362 | |
d0191583 JM |
12363 | cat >>confdefs.h <<\_ACEOF |
12364 | #define O_DIRECT_SUPPORT 1 | |
12365 | _ACEOF | |
ad6254c5 | 12366 | |
d0191583 | 12367 | fi |
ad6254c5 | 12368 | |
572fefeb AK |
12369 | ################################################################################ |
12370 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
12371 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
12372 | # Check whether --enable-applib was given. | |
12373 | if test "${enable_applib+set}" = set; then | |
12374 | enableval=$enable_applib; APPLIB=$enableval | |
12375 | else | |
12376 | APPLIB=no | |
12377 | fi | |
12378 | ||
12379 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12380 | $as_echo "$APPLIB" >&6; } | |
12381 | ||
12382 | test x$APPLIB = xyes \ | |
12383 | && LVM2APP_LIB=-llvm2app \ | |
12384 | || LVM2APP_LIB= | |
12385 | ||
d0191583 | 12386 | ################################################################################ |
ec6a6fbe AK |
12387 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12388 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12389 | # Check whether --enable-cmdlib was given. |
12390 | if test "${enable_cmdlib+set}" = set; then | |
12391 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12392 | else |
d0191583 JM |
12393 | CMDLIB=no |
12394 | fi | |
8a2fc586 | 12395 | |
ec6a6fbe AK |
12396 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12397 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12398 | |
2a9a80c9 | 12399 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12400 | && LVM2CMD_LIB=-llvm2cmd \ |
12401 | || LVM2CMD_LIB= | |
12402 | ||
93bd259b AK |
12403 | ################################################################################ |
12404 | # Check whether --enable-pkgconfig was given. | |
12405 | if test "${enable_pkgconfig+set}" = set; then | |
12406 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12407 | else | |
12408 | PKGCONFIG=no | |
12409 | fi | |
12410 | ||
2a9a80c9 | 12411 | |
d0191583 | 12412 | ################################################################################ |
ec6a6fbe AK |
12413 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12414 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12415 | # Check whether --enable-fsadm was given. |
12416 | if test "${enable_fsadm+set}" = set; then | |
12417 | enableval=$enable_fsadm; FSADM=$enableval | |
12418 | fi | |
8a2fc586 | 12419 | |
ec6a6fbe AK |
12420 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12421 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12422 | |
d0191583 | 12423 | ################################################################################ |
ec6a6fbe AK |
12424 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12425 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12426 | # Check whether --enable-dmeventd was given. |
12427 | if test "${enable_dmeventd+set}" = set; then | |
12428 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12429 | fi | |
ad6254c5 | 12430 | |
ec6a6fbe AK |
12431 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12432 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12433 | |
93bd259b AK |
12434 | BUILD_DMEVENTD=$DMEVENTD |
12435 | ||
2a9a80c9 PR |
12436 | if test x$DMEVENTD = xyes; then |
12437 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12438 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12439 | " >&5 |
ec6a6fbe | 12440 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12441 | " >&2;} |
d0191583 | 12442 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12443 | fi |
12444 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12445 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12446 | " >&5 |
ec6a6fbe | 12447 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12448 | " >&2;} |
12449 | { (exit 1); exit 1; }; } | |
12450 | fi | |
ad6254c5 | 12451 | fi |
7a197a62 | 12452 | |
d0191583 JM |
12453 | if test x$DMEVENTD = xyes; then |
12454 | ||
12455 | cat >>confdefs.h <<\_ACEOF | |
12456 | #define DMEVENTD 1 | |
ad6254c5 AK |
12457 | _ACEOF |
12458 | ||
ad6254c5 | 12459 | fi |
93bd259b AK |
12460 | |
12461 | ################################################################################ | |
12462 | ||
ec6a6fbe AK |
12463 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12464 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12465 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12466 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12467 | else |
12468 | ac_check_lib_save_LIBS=$LIBS | |
12469 | LIBS="-lc $LIBS" | |
12470 | cat >conftest.$ac_ext <<_ACEOF | |
12471 | /* confdefs.h. */ | |
12472 | _ACEOF | |
12473 | cat confdefs.h >>conftest.$ac_ext | |
12474 | cat >>conftest.$ac_ext <<_ACEOF | |
12475 | /* end confdefs.h. */ | |
12476 | ||
12477 | /* Override any GCC internal prototype to avoid an error. | |
12478 | Use char because int might match the return type of a GCC | |
12479 | builtin and then its argument prototype would still apply. */ | |
12480 | #ifdef __cplusplus | |
12481 | extern "C" | |
12482 | #endif | |
12483 | char getline (); | |
12484 | int | |
12485 | main () | |
12486 | { | |
12487 | return getline (); | |
12488 | ; | |
12489 | return 0; | |
12490 | } | |
12491 | _ACEOF | |
12492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12493 | if { (ac_try="$ac_link" | |
12494 | case "(($ac_try" in | |
12495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12496 | *) ac_try_echo=$ac_try;; | |
12497 | esac | |
ec6a6fbe AK |
12498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12499 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12500 | (eval "$ac_link") 2>conftest.er1 |
12501 | ac_status=$? | |
12502 | grep -v '^ *+' conftest.er1 >conftest.err | |
12503 | rm -f conftest.er1 | |
12504 | cat conftest.err >&5 | |
ec6a6fbe | 12505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12506 | (exit $ac_status); } && { |
12507 | test -z "$ac_c_werror_flag" || | |
12508 | test ! -s conftest.err | |
ec6a6fbe AK |
12509 | } && test -s conftest$ac_exeext && { |
12510 | test "$cross_compiling" = yes || | |
12511 | $as_test_x conftest$ac_exeext | |
12512 | }; then | |
93bd259b AK |
12513 | ac_cv_lib_c_getline=yes |
12514 | else | |
ec6a6fbe | 12515 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12516 | sed 's/^/| /' conftest.$ac_ext >&5 |
12517 | ||
12518 | ac_cv_lib_c_getline=no | |
12519 | fi | |
12520 | ||
ec6a6fbe | 12521 | rm -rf conftest.dSYM |
93bd259b AK |
12522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12523 | conftest$ac_exeext conftest.$ac_ext | |
12524 | LIBS=$ac_check_lib_save_LIBS | |
12525 | fi | |
ec6a6fbe AK |
12526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12527 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12528 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12529 | |
12530 | cat >>confdefs.h <<\_ACEOF | |
12531 | #define HAVE_GETLINE 1 | |
12532 | _ACEOF | |
12533 | ||
12534 | fi | |
12535 | ||
12536 | ||
12537 | ################################################################################ | |
12538 | ||
ec6a6fbe AK |
12539 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12540 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12541 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12542 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12543 | else |
12544 | ac_check_lib_save_LIBS=$LIBS | |
12545 | LIBS="-lc $LIBS" | |
12546 | cat >conftest.$ac_ext <<_ACEOF | |
12547 | /* confdefs.h. */ | |
12548 | _ACEOF | |
12549 | cat confdefs.h >>conftest.$ac_ext | |
12550 | cat >>conftest.$ac_ext <<_ACEOF | |
12551 | /* end confdefs.h. */ | |
12552 | ||
12553 | /* Override any GCC internal prototype to avoid an error. | |
12554 | Use char because int might match the return type of a GCC | |
12555 | builtin and then its argument prototype would still apply. */ | |
12556 | #ifdef __cplusplus | |
12557 | extern "C" | |
12558 | #endif | |
12559 | char canonicalize_file_name (); | |
12560 | int | |
12561 | main () | |
12562 | { | |
12563 | return canonicalize_file_name (); | |
12564 | ; | |
12565 | return 0; | |
12566 | } | |
12567 | _ACEOF | |
12568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12569 | if { (ac_try="$ac_link" | |
12570 | case "(($ac_try" in | |
12571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12572 | *) ac_try_echo=$ac_try;; | |
12573 | esac | |
ec6a6fbe AK |
12574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12575 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12576 | (eval "$ac_link") 2>conftest.er1 |
12577 | ac_status=$? | |
12578 | grep -v '^ *+' conftest.er1 >conftest.err | |
12579 | rm -f conftest.er1 | |
12580 | cat conftest.err >&5 | |
ec6a6fbe | 12581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12582 | (exit $ac_status); } && { |
12583 | test -z "$ac_c_werror_flag" || | |
12584 | test ! -s conftest.err | |
ec6a6fbe AK |
12585 | } && test -s conftest$ac_exeext && { |
12586 | test "$cross_compiling" = yes || | |
12587 | $as_test_x conftest$ac_exeext | |
12588 | }; then | |
93bd259b AK |
12589 | ac_cv_lib_c_canonicalize_file_name=yes |
12590 | else | |
ec6a6fbe | 12591 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12592 | sed 's/^/| /' conftest.$ac_ext >&5 |
12593 | ||
12594 | ac_cv_lib_c_canonicalize_file_name=no | |
12595 | fi | |
12596 | ||
ec6a6fbe | 12597 | rm -rf conftest.dSYM |
93bd259b AK |
12598 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12599 | conftest$ac_exeext conftest.$ac_ext | |
12600 | LIBS=$ac_check_lib_save_LIBS | |
12601 | fi | |
ec6a6fbe AK |
12602 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12603 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12604 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12605 | |
12606 | cat >>confdefs.h <<\_ACEOF | |
12607 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12608 | _ACEOF | |
12609 | ||
12610 | fi | |
12611 | ||
12612 | ||
d0191583 JM |
12613 | ################################################################################ |
12614 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12615 | then exec_prefix=""; | |
12616 | fi; | |
ad6254c5 | 12617 | |
ad6254c5 | 12618 | ################################################################################ |
ec6a6fbe AK |
12619 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12620 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12621 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12622 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12623 | else |
12624 | ac_check_lib_save_LIBS=$LIBS | |
12625 | LIBS="-ldl $LIBS" | |
12626 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12627 | /* confdefs.h. */ |
12628 | _ACEOF | |
12629 | cat confdefs.h >>conftest.$ac_ext | |
12630 | cat >>conftest.$ac_ext <<_ACEOF | |
12631 | /* end confdefs.h. */ | |
12632 | ||
7a197a62 AK |
12633 | /* Override any GCC internal prototype to avoid an error. |
12634 | Use char because int might match the return type of a GCC | |
12635 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12636 | #ifdef __cplusplus |
12637 | extern "C" | |
12638 | #endif | |
ad6254c5 AK |
12639 | char dlopen (); |
12640 | int | |
12641 | main () | |
12642 | { | |
7a197a62 | 12643 | return dlopen (); |
ad6254c5 AK |
12644 | ; |
12645 | return 0; | |
12646 | } | |
12647 | _ACEOF | |
12648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12649 | if { (ac_try="$ac_link" |
12650 | case "(($ac_try" in | |
12651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12652 | *) ac_try_echo=$ac_try;; | |
12653 | esac | |
ec6a6fbe AK |
12654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12655 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12656 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12657 | ac_status=$? |
8a2fc586 AK |
12658 | grep -v '^ *+' conftest.er1 >conftest.err |
12659 | rm -f conftest.er1 | |
12660 | cat conftest.err >&5 | |
ec6a6fbe | 12661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12662 | (exit $ac_status); } && { |
12663 | test -z "$ac_c_werror_flag" || | |
12664 | test ! -s conftest.err | |
ec6a6fbe AK |
12665 | } && test -s conftest$ac_exeext && { |
12666 | test "$cross_compiling" = yes || | |
12667 | $as_test_x conftest$ac_exeext | |
12668 | }; then | |
ad6254c5 AK |
12669 | ac_cv_lib_dl_dlopen=yes |
12670 | else | |
ec6a6fbe | 12671 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12672 | sed 's/^/| /' conftest.$ac_ext >&5 |
12673 | ||
7a197a62 | 12674 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12675 | fi |
7a197a62 | 12676 | |
ec6a6fbe | 12677 | rm -rf conftest.dSYM |
25fbec5b | 12678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12679 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12680 | LIBS=$ac_check_lib_save_LIBS |
12681 | fi | |
ec6a6fbe AK |
12682 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12683 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12684 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
12685 | HAVE_LIBDL=yes |
12686 | else | |
12687 | HAVE_LIBDL=no | |
12688 | fi | |
12689 | ||
12690 | ||
7e9e9502 | 12691 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
12692 | |
12693 | cat >>confdefs.h <<\_ACEOF | |
12694 | #define HAVE_LIBDL 1 | |
12695 | _ACEOF | |
12696 | ||
ad6254c5 AK |
12697 | LIBS="-ldl $LIBS" |
12698 | else | |
12699 | HAVE_LIBDL=no | |
12700 | fi | |
12701 | ||
12702 | ################################################################################ | |
12703 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12704 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12705 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12706 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12707 | " >&5 |
ec6a6fbe | 12708 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12709 | " >&2;} |
12710 | { (exit 1); exit 1; }; } | |
12711 | fi | |
12712 | ||
d0191583 | 12713 | ################################################################################ |
ec6a6fbe AK |
12714 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12715 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12716 | # Check whether --enable-selinux was given. |
12717 | if test "${enable_selinux+set}" = set; then | |
12718 | enableval=$enable_selinux; SELINUX=$enableval | |
12719 | fi | |
12720 | ||
ec6a6fbe AK |
12721 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12722 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12723 | |
ad6254c5 AK |
12724 | ################################################################################ |
12725 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12726 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12727 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12728 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12729 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12730 | else |
12731 | ac_check_lib_save_LIBS=$LIBS | |
12732 | LIBS="-lsepol $LIBS" | |
12733 | cat >conftest.$ac_ext <<_ACEOF | |
12734 | /* confdefs.h. */ | |
12735 | _ACEOF | |
12736 | cat confdefs.h >>conftest.$ac_ext | |
12737 | cat >>conftest.$ac_ext <<_ACEOF | |
12738 | /* end confdefs.h. */ | |
12739 | ||
7a197a62 AK |
12740 | /* Override any GCC internal prototype to avoid an error. |
12741 | Use char because int might match the return type of a GCC | |
12742 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12743 | #ifdef __cplusplus |
12744 | extern "C" | |
12745 | #endif | |
8a2fc586 AK |
12746 | char sepol_check_context (); |
12747 | int | |
12748 | main () | |
12749 | { | |
7a197a62 | 12750 | return sepol_check_context (); |
8a2fc586 AK |
12751 | ; |
12752 | return 0; | |
12753 | } | |
12754 | _ACEOF | |
12755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12756 | if { (ac_try="$ac_link" |
12757 | case "(($ac_try" in | |
12758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12759 | *) ac_try_echo=$ac_try;; | |
12760 | esac | |
ec6a6fbe AK |
12761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12762 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12763 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12764 | ac_status=$? |
12765 | grep -v '^ *+' conftest.er1 >conftest.err | |
12766 | rm -f conftest.er1 | |
12767 | cat conftest.err >&5 | |
ec6a6fbe | 12768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12769 | (exit $ac_status); } && { |
12770 | test -z "$ac_c_werror_flag" || | |
12771 | test ! -s conftest.err | |
ec6a6fbe AK |
12772 | } && test -s conftest$ac_exeext && { |
12773 | test "$cross_compiling" = yes || | |
12774 | $as_test_x conftest$ac_exeext | |
12775 | }; then | |
8a2fc586 AK |
12776 | ac_cv_lib_sepol_sepol_check_context=yes |
12777 | else | |
ec6a6fbe | 12778 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12779 | sed 's/^/| /' conftest.$ac_ext >&5 |
12780 | ||
7a197a62 | 12781 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12782 | fi |
7a197a62 | 12783 | |
ec6a6fbe | 12784 | rm -rf conftest.dSYM |
25fbec5b | 12785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12786 | conftest$ac_exeext conftest.$ac_ext |
12787 | LIBS=$ac_check_lib_save_LIBS | |
12788 | fi | |
ec6a6fbe AK |
12789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12790 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12791 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
12792 | HAVE_SEPOL=yes |
12793 | else | |
12794 | HAVE_SEPOL=no | |
12795 | fi | |
12796 | ||
8a2fc586 AK |
12797 | |
12798 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
12799 | |
12800 | cat >>confdefs.h <<\_ACEOF | |
12801 | #define HAVE_SEPOL 1 | |
12802 | _ACEOF | |
12803 | ||
e1b8a236 | 12804 | SELINUX_LIBS="-lsepol $SELINUX_LIBS" |
8a2fc586 AK |
12805 | fi |
12806 | ||
ec6a6fbe AK |
12807 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12808 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12809 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12810 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12811 | else |
12812 | ac_check_lib_save_LIBS=$LIBS | |
12813 | LIBS="-lselinux $LIBS" | |
12814 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12815 | /* confdefs.h. */ |
12816 | _ACEOF | |
12817 | cat confdefs.h >>conftest.$ac_ext | |
12818 | cat >>conftest.$ac_ext <<_ACEOF | |
12819 | /* end confdefs.h. */ | |
12820 | ||
7a197a62 AK |
12821 | /* Override any GCC internal prototype to avoid an error. |
12822 | Use char because int might match the return type of a GCC | |
12823 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12824 | #ifdef __cplusplus |
12825 | extern "C" | |
12826 | #endif | |
ad6254c5 AK |
12827 | char is_selinux_enabled (); |
12828 | int | |
12829 | main () | |
12830 | { | |
7a197a62 | 12831 | return is_selinux_enabled (); |
ad6254c5 AK |
12832 | ; |
12833 | return 0; | |
12834 | } | |
12835 | _ACEOF | |
12836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12837 | if { (ac_try="$ac_link" |
12838 | case "(($ac_try" in | |
12839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12840 | *) ac_try_echo=$ac_try;; | |
12841 | esac | |
ec6a6fbe AK |
12842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12843 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12844 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12845 | ac_status=$? |
8a2fc586 AK |
12846 | grep -v '^ *+' conftest.er1 >conftest.err |
12847 | rm -f conftest.er1 | |
12848 | cat conftest.err >&5 | |
ec6a6fbe | 12849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12850 | (exit $ac_status); } && { |
12851 | test -z "$ac_c_werror_flag" || | |
12852 | test ! -s conftest.err | |
ec6a6fbe AK |
12853 | } && test -s conftest$ac_exeext && { |
12854 | test "$cross_compiling" = yes || | |
12855 | $as_test_x conftest$ac_exeext | |
12856 | }; then | |
ad6254c5 AK |
12857 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12858 | else | |
ec6a6fbe | 12859 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12860 | sed 's/^/| /' conftest.$ac_ext >&5 |
12861 | ||
7a197a62 | 12862 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12863 | fi |
7a197a62 | 12864 | |
ec6a6fbe | 12865 | rm -rf conftest.dSYM |
25fbec5b | 12866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12867 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12868 | LIBS=$ac_check_lib_save_LIBS |
12869 | fi | |
ec6a6fbe AK |
12870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12871 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12872 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
12873 | HAVE_SELINUX=yes |
12874 | else | |
12875 | HAVE_SELINUX=no | |
12876 | fi | |
12877 | ||
ad6254c5 AK |
12878 | |
12879 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
12880 | |
12881 | cat >>confdefs.h <<\_ACEOF | |
12882 | #define HAVE_SELINUX 1 | |
12883 | _ACEOF | |
12884 | ||
e1b8a236 | 12885 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
ad6254c5 | 12886 | else |
ec6a6fbe AK |
12887 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
12888 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 | 12889 | fi |
e1b8a236 | 12890 | LIBS="$SELINUX_LIBS $LIBS" |
66e941e8 | 12891 | |
d0191583 | 12892 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
12893 | # fails on at least Debian unstable due to unsatisfied references |
12894 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
12895 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
12896 | lvm_saved_libs=$LIBS | |
12897 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
12898 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
12899 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 12900 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 12901 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
12902 | else |
12903 | ac_func_search_save_LIBS=$LIBS | |
12904 | cat >conftest.$ac_ext <<_ACEOF | |
12905 | /* confdefs.h. */ | |
12906 | _ACEOF | |
12907 | cat confdefs.h >>conftest.$ac_ext | |
12908 | cat >>conftest.$ac_ext <<_ACEOF | |
12909 | /* end confdefs.h. */ | |
12910 | ||
12911 | /* Override any GCC internal prototype to avoid an error. | |
12912 | Use char because int might match the return type of a GCC | |
12913 | builtin and then its argument prototype would still apply. */ | |
12914 | #ifdef __cplusplus | |
12915 | extern "C" | |
12916 | #endif | |
12917 | char pthread_mutex_lock (); | |
12918 | int | |
12919 | main () | |
12920 | { | |
12921 | return pthread_mutex_lock (); | |
12922 | ; | |
12923 | return 0; | |
12924 | } | |
12925 | _ACEOF | |
12926 | for ac_lib in '' pthread; do | |
12927 | if test -z "$ac_lib"; then | |
12928 | ac_res="none required" | |
12929 | else | |
12930 | ac_res=-l$ac_lib | |
12931 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12932 | fi | |
12933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12934 | if { (ac_try="$ac_link" | |
12935 | case "(($ac_try" in | |
12936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12937 | *) ac_try_echo=$ac_try;; | |
12938 | esac | |
ec6a6fbe AK |
12939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12940 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
12941 | (eval "$ac_link") 2>conftest.er1 |
12942 | ac_status=$? | |
12943 | grep -v '^ *+' conftest.er1 >conftest.err | |
12944 | rm -f conftest.er1 | |
12945 | cat conftest.err >&5 | |
ec6a6fbe | 12946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12947 | (exit $ac_status); } && { |
12948 | test -z "$ac_c_werror_flag" || | |
12949 | test ! -s conftest.err | |
ec6a6fbe AK |
12950 | } && test -s conftest$ac_exeext && { |
12951 | test "$cross_compiling" = yes || | |
12952 | $as_test_x conftest$ac_exeext | |
12953 | }; then | |
66e941e8 JM |
12954 | ac_cv_search_pthread_mutex_lock=$ac_res |
12955 | else | |
ec6a6fbe | 12956 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
12957 | sed 's/^/| /' conftest.$ac_ext >&5 |
12958 | ||
12959 | ||
12960 | fi | |
12961 | ||
ec6a6fbe | 12962 | rm -rf conftest.dSYM |
25fbec5b | 12963 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
12964 | conftest$ac_exeext |
12965 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
12966 | break | |
12967 | fi | |
12968 | done | |
12969 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
12970 | : | |
12971 | else | |
12972 | ac_cv_search_pthread_mutex_lock=no | |
12973 | fi | |
12974 | rm conftest.$ac_ext | |
12975 | LIBS=$ac_func_search_save_LIBS | |
12976 | fi | |
ec6a6fbe AK |
12977 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
12978 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
12979 | ac_res=$ac_cv_search_pthread_mutex_lock |
12980 | if test "$ac_res" != no; then | |
12981 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12982 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
12983 | LIB_PTHREAD=-lpthread | |
12984 | fi | |
12985 | ||
12986 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
12987 | fi |
12988 | fi | |
12989 | ||
8b1a3214 AK |
12990 | ################################################################################ |
12991 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
12992 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
12993 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 12994 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 12995 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
12996 | else |
12997 | ac_check_lib_save_LIBS=$LIBS | |
12998 | LIBS="-lrt $LIBS" | |
12999 | cat >conftest.$ac_ext <<_ACEOF | |
13000 | /* confdefs.h. */ | |
13001 | _ACEOF | |
13002 | cat confdefs.h >>conftest.$ac_ext | |
13003 | cat >>conftest.$ac_ext <<_ACEOF | |
13004 | /* end confdefs.h. */ | |
13005 | ||
7a197a62 AK |
13006 | /* Override any GCC internal prototype to avoid an error. |
13007 | Use char because int might match the return type of a GCC | |
13008 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
13009 | #ifdef __cplusplus |
13010 | extern "C" | |
13011 | #endif | |
8b1a3214 AK |
13012 | char clock_gettime (); |
13013 | int | |
13014 | main () | |
13015 | { | |
7a197a62 | 13016 | return clock_gettime (); |
8b1a3214 AK |
13017 | ; |
13018 | return 0; | |
13019 | } | |
13020 | _ACEOF | |
13021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13022 | if { (ac_try="$ac_link" |
13023 | case "(($ac_try" in | |
13024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13025 | *) ac_try_echo=$ac_try;; | |
13026 | esac | |
ec6a6fbe AK |
13027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13028 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13029 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13030 | ac_status=$? |
13031 | grep -v '^ *+' conftest.er1 >conftest.err | |
13032 | rm -f conftest.er1 | |
13033 | cat conftest.err >&5 | |
ec6a6fbe | 13034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13035 | (exit $ac_status); } && { |
13036 | test -z "$ac_c_werror_flag" || | |
13037 | test ! -s conftest.err | |
ec6a6fbe AK |
13038 | } && test -s conftest$ac_exeext && { |
13039 | test "$cross_compiling" = yes || | |
13040 | $as_test_x conftest$ac_exeext | |
13041 | }; then | |
8b1a3214 AK |
13042 | ac_cv_lib_rt_clock_gettime=yes |
13043 | else | |
ec6a6fbe | 13044 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13045 | sed 's/^/| /' conftest.$ac_ext >&5 |
13046 | ||
7a197a62 | 13047 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13048 | fi |
7a197a62 | 13049 | |
ec6a6fbe | 13050 | rm -rf conftest.dSYM |
25fbec5b | 13051 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13052 | conftest$ac_exeext conftest.$ac_ext |
13053 | LIBS=$ac_check_lib_save_LIBS | |
13054 | fi | |
ec6a6fbe AK |
13055 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13056 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13057 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13058 | HAVE_REALTIME=yes |
13059 | else | |
13060 | HAVE_REALTIME=no | |
13061 | fi | |
13062 | ||
8b1a3214 AK |
13063 | |
13064 | if test x$HAVE_REALTIME = xyes; then | |
13065 | ||
13066 | cat >>confdefs.h <<\_ACEOF | |
13067 | #define HAVE_REALTIME 1 | |
13068 | _ACEOF | |
13069 | ||
13070 | LIBS="-lrt $LIBS" | |
13071 | else | |
ec6a6fbe AK |
13072 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13073 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13074 | fi |
13075 | fi | |
13076 | ||
ad6254c5 AK |
13077 | ################################################################################ |
13078 | ||
13079 | for ac_header in getopt.h | |
13080 | do | |
ec6a6fbe | 13081 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13082 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13083 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13084 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13086 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13087 | fi |
ec6a6fbe AK |
13088 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13089 | $as_echo "$as_val"'` | |
13090 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13091 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13092 | else |
13093 | # Is the header compilable? | |
ec6a6fbe AK |
13094 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13095 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13096 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13097 | /* confdefs.h. */ |
13098 | _ACEOF | |
13099 | cat confdefs.h >>conftest.$ac_ext | |
13100 | cat >>conftest.$ac_ext <<_ACEOF | |
13101 | /* end confdefs.h. */ | |
13102 | $ac_includes_default | |
13103 | #include <$ac_header> | |
13104 | _ACEOF | |
13105 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13106 | if { (ac_try="$ac_compile" |
13107 | case "(($ac_try" in | |
13108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13109 | *) ac_try_echo=$ac_try;; | |
13110 | esac | |
ec6a6fbe AK |
13111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13112 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13113 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13114 | ac_status=$? |
8a2fc586 AK |
13115 | grep -v '^ *+' conftest.er1 >conftest.err |
13116 | rm -f conftest.er1 | |
13117 | cat conftest.err >&5 | |
ec6a6fbe | 13118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13119 | (exit $ac_status); } && { |
13120 | test -z "$ac_c_werror_flag" || | |
13121 | test ! -s conftest.err | |
13122 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13123 | ac_header_compiler=yes |
13124 | else | |
ec6a6fbe | 13125 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13126 | sed 's/^/| /' conftest.$ac_ext >&5 |
13127 | ||
7a197a62 | 13128 | ac_header_compiler=no |
ad6254c5 | 13129 | fi |
7a197a62 AK |
13130 | |
13131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13132 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13133 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13134 | |
13135 | # Is the header present? | |
ec6a6fbe AK |
13136 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13137 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13138 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13139 | /* confdefs.h. */ |
13140 | _ACEOF | |
13141 | cat confdefs.h >>conftest.$ac_ext | |
13142 | cat >>conftest.$ac_ext <<_ACEOF | |
13143 | /* end confdefs.h. */ | |
13144 | #include <$ac_header> | |
13145 | _ACEOF | |
7a197a62 AK |
13146 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13147 | case "(($ac_try" in | |
13148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13149 | *) ac_try_echo=$ac_try;; | |
13150 | esac | |
ec6a6fbe AK |
13151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13152 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13153 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13154 | ac_status=$? |
13155 | grep -v '^ *+' conftest.er1 >conftest.err | |
13156 | rm -f conftest.er1 | |
13157 | cat conftest.err >&5 | |
ec6a6fbe | 13158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13159 | (exit $ac_status); } >/dev/null && { |
13160 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13161 | test ! -s conftest.err | |
13162 | }; then | |
ad6254c5 AK |
13163 | ac_header_preproc=yes |
13164 | else | |
ec6a6fbe | 13165 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13166 | sed 's/^/| /' conftest.$ac_ext >&5 |
13167 | ||
13168 | ac_header_preproc=no | |
13169 | fi | |
7a197a62 | 13170 | |
ad6254c5 | 13171 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13172 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13173 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13174 | |
13175 | # So? What about this header? | |
8a2fc586 AK |
13176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13177 | yes:no: ) | |
ec6a6fbe AK |
13178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13179 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13181 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13182 | ac_header_preproc=yes |
ad6254c5 | 13183 | ;; |
8a2fc586 | 13184 | no:yes:* ) |
ec6a6fbe AK |
13185 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13186 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13187 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13188 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13190 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13192 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13194 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13196 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13197 | |
ad6254c5 AK |
13198 | ;; |
13199 | esac | |
ec6a6fbe AK |
13200 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13201 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13203 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13204 | else |
8a2fc586 | 13205 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13206 | fi |
ec6a6fbe AK |
13207 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13208 | $as_echo "$as_val"'` | |
13209 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13210 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13211 | |
13212 | fi | |
ec6a6fbe AK |
13213 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13214 | $as_echo "$as_val"'` | |
13215 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13216 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13217 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13218 | _ACEOF |
72b2cb61 AK |
13219 | |
13220 | cat >>confdefs.h <<\_ACEOF | |
13221 | #define HAVE_GETOPTLONG 1 | |
13222 | _ACEOF | |
13223 | ||
ad6254c5 AK |
13224 | fi |
13225 | ||
13226 | done | |
13227 | ||
13228 | ||
13229 | ################################################################################ | |
06e459df | 13230 | if test x$READLINE != xno; then |
539f4a77 ZK |
13231 | lvm_saved_libs=$LIBS |
13232 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
13233 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13234 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13235 | $as_echo_n "(cached) " >&6 | |
13236 | else | |
13237 | ac_func_search_save_LIBS=$LIBS | |
13238 | cat >conftest.$ac_ext <<_ACEOF | |
13239 | /* confdefs.h. */ | |
13240 | _ACEOF | |
13241 | cat confdefs.h >>conftest.$ac_ext | |
13242 | cat >>conftest.$ac_ext <<_ACEOF | |
13243 | /* end confdefs.h. */ | |
bc1024f8 | 13244 | |
539f4a77 ZK |
13245 | /* Override any GCC internal prototype to avoid an error. |
13246 | Use char because int might match the return type of a GCC | |
13247 | builtin and then its argument prototype would still apply. */ | |
13248 | #ifdef __cplusplus | |
13249 | extern "C" | |
13250 | #endif | |
13251 | char tgetent (); | |
13252 | int | |
13253 | main () | |
13254 | { | |
13255 | return tgetent (); | |
13256 | ; | |
13257 | return 0; | |
13258 | } | |
13259 | _ACEOF | |
13260 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
13261 | if test -z "$ac_lib"; then | |
13262 | ac_res="none required" | |
13263 | else | |
13264 | ac_res=-l$ac_lib | |
13265 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13266 | fi | |
13267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13268 | if { (ac_try="$ac_link" | |
13269 | case "(($ac_try" in | |
13270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13271 | *) ac_try_echo=$ac_try;; | |
13272 | esac | |
13273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13274 | $as_echo "$ac_try_echo") >&5 | |
13275 | (eval "$ac_link") 2>conftest.er1 | |
13276 | ac_status=$? | |
13277 | grep -v '^ *+' conftest.er1 >conftest.err | |
13278 | rm -f conftest.er1 | |
13279 | cat conftest.err >&5 | |
13280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13281 | (exit $ac_status); } && { | |
13282 | test -z "$ac_c_werror_flag" || | |
13283 | test ! -s conftest.err | |
13284 | } && test -s conftest$ac_exeext && { | |
13285 | test "$cross_compiling" = yes || | |
13286 | $as_test_x conftest$ac_exeext | |
13287 | }; then | |
13288 | ac_cv_search_tgetent=$ac_res | |
13289 | else | |
13290 | $as_echo "$as_me: failed program was:" >&5 | |
13291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13292 | ||
13293 | ||
13294 | fi | |
13295 | ||
13296 | rm -rf conftest.dSYM | |
13297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13298 | conftest$ac_exeext | |
13299 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13300 | break | |
13301 | fi | |
13302 | done | |
13303 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13304 | : | |
13305 | else | |
13306 | ac_cv_search_tgetent=no | |
13307 | fi | |
13308 | rm conftest.$ac_ext | |
13309 | LIBS=$ac_func_search_save_LIBS | |
13310 | fi | |
13311 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
13312 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13313 | ac_res=$ac_cv_search_tgetent | |
13314 | if test "$ac_res" != no; then | |
13315 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13316 | READLINE_LIBS=$ac_cv_search_tgetent | |
13317 | else | |
13318 | ||
13319 | if test "$READLINE" = yes; then | |
13320 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
13321 | --enable-readline option (which is enabled by default). Either disable readline | |
13322 | support with --disable-readline or download and install termcap from: | |
13323 | ftp.gnu.org/gnu/termcap | |
13324 | Note: if you are using precompiled packages you will also need the development | |
13325 | package as well (which may be called termcap-devel or something similar). | |
13326 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13327 | not found either - but you could try installing that as well." >&5 | |
13328 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
13329 | --enable-readline option (which is enabled by default). Either disable readline | |
13330 | support with --disable-readline or download and install termcap from: | |
13331 | ftp.gnu.org/gnu/termcap | |
13332 | Note: if you are using precompiled packages you will also need the development | |
13333 | package as well (which may be called termcap-devel or something similar). | |
13334 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13335 | not found either - but you could try installing that as well." >&2;} | |
13336 | { (exit 1); exit 1; }; } | |
13337 | fi | |
13338 | fi | |
13339 | ||
13340 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 13341 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 13342 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13343 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13344 | else |
13345 | ac_check_lib_save_LIBS=$LIBS | |
13346 | LIBS="-lreadline $LIBS" | |
13347 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13348 | /* confdefs.h. */ |
13349 | _ACEOF | |
13350 | cat confdefs.h >>conftest.$ac_ext | |
13351 | cat >>conftest.$ac_ext <<_ACEOF | |
13352 | /* end confdefs.h. */ | |
13353 | ||
7a197a62 AK |
13354 | /* Override any GCC internal prototype to avoid an error. |
13355 | Use char because int might match the return type of a GCC | |
13356 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13357 | #ifdef __cplusplus |
13358 | extern "C" | |
13359 | #endif | |
ad6254c5 AK |
13360 | char readline (); |
13361 | int | |
13362 | main () | |
13363 | { | |
7a197a62 | 13364 | return readline (); |
ad6254c5 AK |
13365 | ; |
13366 | return 0; | |
13367 | } | |
13368 | _ACEOF | |
13369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13370 | if { (ac_try="$ac_link" |
13371 | case "(($ac_try" in | |
13372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13373 | *) ac_try_echo=$ac_try;; | |
13374 | esac | |
ec6a6fbe AK |
13375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13376 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13377 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13378 | ac_status=$? |
8a2fc586 AK |
13379 | grep -v '^ *+' conftest.er1 >conftest.err |
13380 | rm -f conftest.er1 | |
13381 | cat conftest.err >&5 | |
ec6a6fbe | 13382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13383 | (exit $ac_status); } && { |
13384 | test -z "$ac_c_werror_flag" || | |
13385 | test ! -s conftest.err | |
ec6a6fbe AK |
13386 | } && test -s conftest$ac_exeext && { |
13387 | test "$cross_compiling" = yes || | |
13388 | $as_test_x conftest$ac_exeext | |
13389 | }; then | |
ad6254c5 AK |
13390 | ac_cv_lib_readline_readline=yes |
13391 | else | |
ec6a6fbe | 13392 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13393 | sed 's/^/| /' conftest.$ac_ext >&5 |
13394 | ||
7a197a62 | 13395 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13396 | fi |
7a197a62 | 13397 | |
ec6a6fbe | 13398 | rm -rf conftest.dSYM |
25fbec5b | 13399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13400 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13401 | LIBS=$ac_check_lib_save_LIBS |
13402 | fi | |
ec6a6fbe AK |
13403 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13404 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13405 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
13406 | |
13407 | ||
13408 | cat >>confdefs.h <<\_ACEOF | |
13409 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
13410 | _ACEOF |
13411 | ||
539f4a77 ZK |
13412 | LIBS=$lvm_saved_libs |
13413 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
13414 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
13415 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
13416 | $as_echo_n "(cached) " >&6 | |
13417 | else | |
13418 | ac_check_lib_save_LIBS=$LIBS | |
13419 | LIBS="-lreadline $LIBS" | |
13420 | cat >conftest.$ac_ext <<_ACEOF | |
13421 | /* confdefs.h. */ | |
13422 | _ACEOF | |
13423 | cat confdefs.h >>conftest.$ac_ext | |
13424 | cat >>conftest.$ac_ext <<_ACEOF | |
13425 | /* end confdefs.h. */ | |
bc1024f8 | 13426 | |
539f4a77 ZK |
13427 | /* Override any GCC internal prototype to avoid an error. |
13428 | Use char because int might match the return type of a GCC | |
13429 | builtin and then its argument prototype would still apply. */ | |
13430 | #ifdef __cplusplus | |
13431 | extern "C" | |
13432 | #endif | |
13433 | char rl_line_buffer (); | |
13434 | int | |
13435 | main () | |
13436 | { | |
13437 | return rl_line_buffer (); | |
13438 | ; | |
13439 | return 0; | |
13440 | } | |
13441 | _ACEOF | |
13442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13443 | if { (ac_try="$ac_link" | |
13444 | case "(($ac_try" in | |
13445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13446 | *) ac_try_echo=$ac_try;; | |
13447 | esac | |
13448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13449 | $as_echo "$ac_try_echo") >&5 | |
13450 | (eval "$ac_link") 2>conftest.er1 | |
13451 | ac_status=$? | |
13452 | grep -v '^ *+' conftest.er1 >conftest.err | |
13453 | rm -f conftest.er1 | |
13454 | cat conftest.err >&5 | |
13455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13456 | (exit $ac_status); } && { | |
13457 | test -z "$ac_c_werror_flag" || | |
13458 | test ! -s conftest.err | |
13459 | } && test -s conftest$ac_exeext && { | |
13460 | test "$cross_compiling" = yes || | |
13461 | $as_test_x conftest$ac_exeext | |
13462 | }; then | |
13463 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 13464 | else |
539f4a77 ZK |
13465 | $as_echo "$as_me: failed program was:" >&5 |
13466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13467 | ||
13468 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
13469 | fi |
13470 | ||
539f4a77 ZK |
13471 | rm -rf conftest.dSYM |
13472 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13473 | conftest$ac_exeext conftest.$ac_ext | |
13474 | LIBS=$ac_check_lib_save_LIBS | |
13475 | fi | |
13476 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
13477 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
13478 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
13479 | READLINE_LIBS="-lreadline" | |
13480 | else | |
13481 | ||
13482 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
13483 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
13484 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
13485 | ||
13486 | fi | |
13487 | ||
13488 | else | |
13489 | ||
13490 | READLINE_LIBS= | |
13491 | if test "$READLINE" = yes; then | |
13492 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
13493 | --enable-readline option (which is enabled by default). Either disable readline |
13494 | support with --disable-readline or download and install readline from: | |
13495 | ftp.gnu.org/gnu/readline | |
13496 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13497 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 13498 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13499 | --enable-readline option (which is enabled by default). Either disable readline |
13500 | support with --disable-readline or download and install readline from: | |
13501 | ftp.gnu.org/gnu/readline | |
13502 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13503 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 13504 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
13505 | fi |
13506 | fi | |
13507 | ||
13508 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
13509 | |
13510 | for ac_func in rl_completion_matches | |
13511 | do | |
ec6a6fbe AK |
13512 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13513 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13514 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13515 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13516 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13517 | else |
13518 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13519 | /* confdefs.h. */ |
13520 | _ACEOF | |
13521 | cat confdefs.h >>conftest.$ac_ext | |
13522 | cat >>conftest.$ac_ext <<_ACEOF | |
13523 | /* end confdefs.h. */ | |
bc1024f8 | 13524 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13526 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13527 | |
ad6254c5 | 13528 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13529 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13531 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13532 | |
ad6254c5 AK |
13533 | #ifdef __STDC__ |
13534 | # include <limits.h> | |
13535 | #else | |
13536 | # include <assert.h> | |
13537 | #endif | |
8a2fc586 | 13538 | |
bc1024f8 | 13539 | #undef $ac_func |
8a2fc586 | 13540 | |
7a197a62 AK |
13541 | /* Override any GCC internal prototype to avoid an error. |
13542 | Use char because int might match the return type of a GCC | |
13543 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13544 | #ifdef __cplusplus |
13545 | extern "C" | |
ad6254c5 | 13546 | #endif |
bc1024f8 | 13547 | char $ac_func (); |
ad6254c5 AK |
13548 | /* The GNU C library defines this for functions which it implements |
13549 | to always fail with ENOSYS. Some functions are actually named | |
13550 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13551 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13552 | choke me |
ad6254c5 AK |
13553 | #endif |
13554 | ||
13555 | int | |
13556 | main () | |
13557 | { | |
bc1024f8 | 13558 | return $ac_func (); |
ad6254c5 AK |
13559 | ; |
13560 | return 0; | |
13561 | } | |
13562 | _ACEOF | |
13563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13564 | if { (ac_try="$ac_link" |
13565 | case "(($ac_try" in | |
13566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13567 | *) ac_try_echo=$ac_try;; | |
13568 | esac | |
ec6a6fbe AK |
13569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13570 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13571 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13572 | ac_status=$? |
8a2fc586 AK |
13573 | grep -v '^ *+' conftest.er1 >conftest.err |
13574 | rm -f conftest.er1 | |
13575 | cat conftest.err >&5 | |
ec6a6fbe | 13576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13577 | (exit $ac_status); } && { |
13578 | test -z "$ac_c_werror_flag" || | |
13579 | test ! -s conftest.err | |
ec6a6fbe AK |
13580 | } && test -s conftest$ac_exeext && { |
13581 | test "$cross_compiling" = yes || | |
13582 | $as_test_x conftest$ac_exeext | |
13583 | }; then | |
bc1024f8 | 13584 | eval "$as_ac_var=yes" |
ad6254c5 | 13585 | else |
ec6a6fbe | 13586 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13587 | sed 's/^/| /' conftest.$ac_ext >&5 |
13588 | ||
bc1024f8 | 13589 | eval "$as_ac_var=no" |
ad6254c5 | 13590 | fi |
7a197a62 | 13591 | |
ec6a6fbe | 13592 | rm -rf conftest.dSYM |
25fbec5b | 13593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13594 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13595 | fi |
ec6a6fbe AK |
13596 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13597 | $as_echo "$as_val"'` | |
13598 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13599 | $as_echo "$ac_res" >&6; } | |
13600 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13601 | $as_echo "$as_val"'` | |
13602 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13603 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13604 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13605 | _ACEOF |
13606 | ||
13607 | fi | |
bc1024f8 | 13608 | done |
ad6254c5 | 13609 | |
539f4a77 | 13610 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
13611 | fi |
13612 | ||
13613 | ################################################################################ | |
ec6a6fbe AK |
13614 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13615 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13616 | # Check whether --enable-nls was given. |
ad6254c5 | 13617 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13618 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13619 | else |
13620 | INTL=no | |
7a197a62 AK |
13621 | fi |
13622 | ||
ec6a6fbe AK |
13623 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13624 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13625 | |
13626 | if test x$INTL = xyes; then | |
93bd259b | 13627 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13628 | INTL_PACKAGE="lvm2" |
13629 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13630 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13631 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13632 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13633 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13634 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13635 | else |
13636 | case $MSGFMT in | |
13637 | [\\/]* | ?:[\\/]*) | |
13638 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13639 | ;; | |
13640 | *) | |
13641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13642 | for as_dir in $PATH | |
13643 | do | |
13644 | IFS=$as_save_IFS | |
13645 | test -z "$as_dir" && as_dir=. | |
13646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13648 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13649 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13650 | break 2 |
13651 | fi | |
13652 | done | |
13653 | done | |
7a197a62 | 13654 | IFS=$as_save_IFS |
ad6254c5 AK |
13655 | |
13656 | ;; | |
13657 | esac | |
13658 | fi | |
13659 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13660 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13661 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13662 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13663 | else |
ec6a6fbe AK |
13664 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13665 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13666 | fi |
13667 | ||
7a197a62 | 13668 | |
ad6254c5 | 13669 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13670 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13671 | " >&5 |
ec6a6fbe | 13672 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13673 | " >&2;} |
13674 | { (exit 1); exit 1; }; } | |
13675 | fi; | |
13676 | ||
13677 | ||
7a197a62 | 13678 | # Check whether --with-localedir was given. |
ad6254c5 | 13679 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13680 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13681 | else |
13682 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13683 | fi |
13684 | ||
ad6254c5 AK |
13685 | fi |
13686 | ||
13687 | ################################################################################ | |
13688 | ||
7a197a62 | 13689 | # Check whether --with-confdir was given. |
ad6254c5 | 13690 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13691 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13692 | else |
13693 | CONFDIR='/etc' | |
7a197a62 AK |
13694 | fi |
13695 | ||
ad6254c5 AK |
13696 | |
13697 | ||
7a197a62 | 13698 | # Check whether --with-staticdir was given. |
ad6254c5 | 13699 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13700 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13701 | else |
13702 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13703 | fi |
ad6254c5 | 13704 | |
33f732c5 | 13705 | |
7a197a62 | 13706 | |
68f2de6d AK |
13707 | # Check whether --with-usrlibdir was given. |
13708 | if test "${with_usrlibdir+set}" = set; then | |
13709 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13710 | else | |
13711 | usrlibdir='${prefix}/lib' | |
13712 | fi | |
13713 | ||
13714 | ||
13715 | ||
13716 | # Check whether --with-usrsbindir was given. | |
13717 | if test "${with_usrsbindir+set}" = set; then | |
13718 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13719 | else | |
13720 | usrsbindir='${prefix}/sbin' | |
13721 | fi | |
13722 | ||
13723 | ||
a5f46f6a AK |
13724 | ################################################################################ |
13725 | ||
13726 | # Check whether --with-udev_prefix was given. | |
13727 | if test "${with_udev_prefix+set}" = set; then | |
13728 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13729 | else | |
13730 | udev_prefix='${exec_prefix}' | |
13731 | fi | |
13732 | ||
13733 | ||
78ce7acc AK |
13734 | |
13735 | # Check whether --with-udevdir was given. | |
13736 | if test "${with_udevdir+set}" = set; then | |
13737 | withval=$with_udevdir; udevdir="$withval" | |
13738 | else | |
13739 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13740 | fi | |
13741 | ||
a5f46f6a | 13742 | |
ad6254c5 AK |
13743 | ################################################################################ |
13744 | if test x$READLINE = xyes; then | |
13745 | ||
13746 | ||
13747 | for ac_header in readline/readline.h readline/history.h | |
13748 | do | |
ec6a6fbe | 13749 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13750 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13751 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13752 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13753 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13754 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13755 | fi |
ec6a6fbe AK |
13756 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13757 | $as_echo "$as_val"'` | |
13758 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13759 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13760 | else |
13761 | # Is the header compilable? | |
ec6a6fbe AK |
13762 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13763 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13764 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13765 | /* confdefs.h. */ |
13766 | _ACEOF | |
13767 | cat confdefs.h >>conftest.$ac_ext | |
13768 | cat >>conftest.$ac_ext <<_ACEOF | |
13769 | /* end confdefs.h. */ | |
13770 | $ac_includes_default | |
13771 | #include <$ac_header> | |
13772 | _ACEOF | |
13773 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13774 | if { (ac_try="$ac_compile" |
13775 | case "(($ac_try" in | |
13776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13777 | *) ac_try_echo=$ac_try;; | |
13778 | esac | |
ec6a6fbe AK |
13779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13780 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13781 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13782 | ac_status=$? |
8a2fc586 AK |
13783 | grep -v '^ *+' conftest.er1 >conftest.err |
13784 | rm -f conftest.er1 | |
13785 | cat conftest.err >&5 | |
ec6a6fbe | 13786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13787 | (exit $ac_status); } && { |
13788 | test -z "$ac_c_werror_flag" || | |
13789 | test ! -s conftest.err | |
13790 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13791 | ac_header_compiler=yes |
13792 | else | |
ec6a6fbe | 13793 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13794 | sed 's/^/| /' conftest.$ac_ext >&5 |
13795 | ||
7a197a62 | 13796 | ac_header_compiler=no |
ad6254c5 | 13797 | fi |
7a197a62 AK |
13798 | |
13799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13800 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13801 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13802 | |
13803 | # Is the header present? | |
ec6a6fbe AK |
13804 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13805 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13806 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13807 | /* confdefs.h. */ |
13808 | _ACEOF | |
13809 | cat confdefs.h >>conftest.$ac_ext | |
13810 | cat >>conftest.$ac_ext <<_ACEOF | |
13811 | /* end confdefs.h. */ | |
13812 | #include <$ac_header> | |
13813 | _ACEOF | |
7a197a62 AK |
13814 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13815 | case "(($ac_try" in | |
13816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13817 | *) ac_try_echo=$ac_try;; | |
13818 | esac | |
ec6a6fbe AK |
13819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13820 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13822 | ac_status=$? |
13823 | grep -v '^ *+' conftest.er1 >conftest.err | |
13824 | rm -f conftest.er1 | |
13825 | cat conftest.err >&5 | |
ec6a6fbe | 13826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13827 | (exit $ac_status); } >/dev/null && { |
13828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13829 | test ! -s conftest.err | |
13830 | }; then | |
ad6254c5 AK |
13831 | ac_header_preproc=yes |
13832 | else | |
ec6a6fbe | 13833 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13834 | sed 's/^/| /' conftest.$ac_ext >&5 |
13835 | ||
13836 | ac_header_preproc=no | |
13837 | fi | |
7a197a62 | 13838 | |
ad6254c5 | 13839 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13840 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13841 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13842 | |
13843 | # So? What about this header? | |
8a2fc586 AK |
13844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13845 | yes:no: ) | |
ec6a6fbe AK |
13846 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13847 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13849 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13850 | ac_header_preproc=yes |
ad6254c5 | 13851 | ;; |
8a2fc586 | 13852 | no:yes:* ) |
ec6a6fbe AK |
13853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13854 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13856 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13858 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13860 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13862 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13864 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13865 | |
ad6254c5 AK |
13866 | ;; |
13867 | esac | |
ec6a6fbe AK |
13868 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13869 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13870 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13871 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13872 | else |
8a2fc586 | 13873 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13874 | fi |
ec6a6fbe AK |
13875 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13876 | $as_echo "$as_val"'` | |
13877 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13878 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13879 | |
13880 | fi | |
ec6a6fbe AK |
13881 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13882 | $as_echo "$as_val"'` | |
13883 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13884 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13885 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13886 | _ACEOF |
13887 | ||
13888 | else | |
ec6a6fbe AK |
13889 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13890 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
13891 | { (exit 1); exit 1; }; } |
13892 | fi | |
13893 | ||
13894 | done | |
13895 | ||
13896 | fi | |
13897 | ||
5c7fc7c4 | 13898 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
13899 | |
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
13908 | ||
13909 | 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 | |
13910 | do | |
ec6a6fbe | 13911 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13913 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13914 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13916 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13917 | fi |
ec6a6fbe AK |
13918 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13919 | $as_echo "$as_val"'` | |
13920 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13921 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13922 | else |
13923 | # Is the header compilable? | |
ec6a6fbe AK |
13924 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13925 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13926 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13927 | /* confdefs.h. */ |
13928 | _ACEOF | |
13929 | cat confdefs.h >>conftest.$ac_ext | |
13930 | cat >>conftest.$ac_ext <<_ACEOF | |
13931 | /* end confdefs.h. */ | |
13932 | $ac_includes_default | |
13933 | #include <$ac_header> | |
13934 | _ACEOF | |
13935 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13936 | if { (ac_try="$ac_compile" |
13937 | case "(($ac_try" in | |
13938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13939 | *) ac_try_echo=$ac_try;; | |
13940 | esac | |
ec6a6fbe AK |
13941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13942 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13943 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13944 | ac_status=$? |
8a2fc586 AK |
13945 | grep -v '^ *+' conftest.er1 >conftest.err |
13946 | rm -f conftest.er1 | |
13947 | cat conftest.err >&5 | |
ec6a6fbe | 13948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13949 | (exit $ac_status); } && { |
13950 | test -z "$ac_c_werror_flag" || | |
13951 | test ! -s conftest.err | |
13952 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13953 | ac_header_compiler=yes |
13954 | else | |
ec6a6fbe | 13955 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13956 | sed 's/^/| /' conftest.$ac_ext >&5 |
13957 | ||
7a197a62 | 13958 | ac_header_compiler=no |
ad6254c5 | 13959 | fi |
7a197a62 AK |
13960 | |
13961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13962 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13963 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13964 | |
13965 | # Is the header present? | |
ec6a6fbe AK |
13966 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13967 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13968 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13969 | /* confdefs.h. */ |
13970 | _ACEOF | |
13971 | cat confdefs.h >>conftest.$ac_ext | |
13972 | cat >>conftest.$ac_ext <<_ACEOF | |
13973 | /* end confdefs.h. */ | |
13974 | #include <$ac_header> | |
13975 | _ACEOF | |
7a197a62 AK |
13976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13977 | case "(($ac_try" in | |
13978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13979 | *) ac_try_echo=$ac_try;; | |
13980 | esac | |
ec6a6fbe AK |
13981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13982 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13983 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13984 | ac_status=$? |
13985 | grep -v '^ *+' conftest.er1 >conftest.err | |
13986 | rm -f conftest.er1 | |
13987 | cat conftest.err >&5 | |
ec6a6fbe | 13988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13989 | (exit $ac_status); } >/dev/null && { |
13990 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13991 | test ! -s conftest.err | |
13992 | }; then | |
ad6254c5 AK |
13993 | ac_header_preproc=yes |
13994 | else | |
ec6a6fbe | 13995 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13996 | sed 's/^/| /' conftest.$ac_ext >&5 |
13997 | ||
13998 | ac_header_preproc=no | |
13999 | fi | |
7a197a62 | 14000 | |
ad6254c5 | 14001 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14002 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14003 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14004 | |
14005 | # So? What about this header? | |
8a2fc586 AK |
14006 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14007 | yes:no: ) | |
ec6a6fbe AK |
14008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14009 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14011 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14012 | ac_header_preproc=yes |
ad6254c5 | 14013 | ;; |
8a2fc586 | 14014 | no:yes:* ) |
ec6a6fbe AK |
14015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14016 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14018 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14020 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14022 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14024 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14026 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14027 | |
ad6254c5 AK |
14028 | ;; |
14029 | esac | |
ec6a6fbe AK |
14030 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14031 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14032 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14033 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14034 | else |
8a2fc586 | 14035 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14036 | fi |
ec6a6fbe AK |
14037 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14038 | $as_echo "$as_val"'` | |
14039 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14040 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14041 | |
14042 | fi | |
ec6a6fbe AK |
14043 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14044 | $as_echo "$as_val"'` | |
14045 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14046 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14047 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14048 | _ACEOF |
14049 | ||
14050 | else | |
ec6a6fbe AK |
14051 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14052 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14053 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14054 | fi |
14055 | ||
ad6254c5 AK |
14056 | done |
14057 | ||
14058 | ||
795ca3e5 | 14059 | |
8106cdd5 | 14060 | |
ad6254c5 AK |
14061 | |
14062 | ||
14063 | for ac_func in dup2 getmntent memmove select socket | |
14064 | do | |
ec6a6fbe AK |
14065 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14066 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14067 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14068 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14069 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14070 | else |
ad6254c5 | 14071 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14072 | /* confdefs.h. */ |
14073 | _ACEOF | |
14074 | cat confdefs.h >>conftest.$ac_ext | |
14075 | cat >>conftest.$ac_ext <<_ACEOF | |
14076 | /* end confdefs.h. */ | |
8a2fc586 AK |
14077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14079 | #define $ac_func innocuous_$ac_func | |
14080 | ||
795ca3e5 | 14081 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
14082 | which can conflict with char $ac_func (); below. |
14083 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14084 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14085 | |
ad6254c5 AK |
14086 | #ifdef __STDC__ |
14087 | # include <limits.h> | |
14088 | #else | |
14089 | # include <assert.h> | |
14090 | #endif | |
8a2fc586 AK |
14091 | |
14092 | #undef $ac_func | |
14093 | ||
7a197a62 AK |
14094 | /* Override any GCC internal prototype to avoid an error. |
14095 | Use char because int might match the return type of a GCC | |
14096 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14097 | #ifdef __cplusplus |
14098 | extern "C" | |
ad6254c5 | 14099 | #endif |
ad6254c5 | 14100 | char $ac_func (); |
795ca3e5 AK |
14101 | /* The GNU C library defines this for functions which it implements |
14102 | to always fail with ENOSYS. Some functions are actually named | |
14103 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14104 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 14105 | choke me |
795ca3e5 AK |
14106 | #endif |
14107 | ||
ad6254c5 AK |
14108 | int |
14109 | main () | |
14110 | { | |
7a197a62 | 14111 | return $ac_func (); |
ad6254c5 AK |
14112 | ; |
14113 | return 0; | |
14114 | } | |
14115 | _ACEOF | |
14116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14117 | if { (ac_try="$ac_link" |
14118 | case "(($ac_try" in | |
14119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14120 | *) ac_try_echo=$ac_try;; | |
14121 | esac | |
ec6a6fbe AK |
14122 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14123 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14124 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14125 | ac_status=$? |
8a2fc586 AK |
14126 | grep -v '^ *+' conftest.er1 >conftest.err |
14127 | rm -f conftest.er1 | |
14128 | cat conftest.err >&5 | |
ec6a6fbe | 14129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14130 | (exit $ac_status); } && { |
14131 | test -z "$ac_c_werror_flag" || | |
14132 | test ! -s conftest.err | |
ec6a6fbe AK |
14133 | } && test -s conftest$ac_exeext && { |
14134 | test "$cross_compiling" = yes || | |
14135 | $as_test_x conftest$ac_exeext | |
14136 | }; then | |
ad6254c5 | 14137 | eval "$as_ac_var=yes" |
795ca3e5 | 14138 | else |
ec6a6fbe | 14139 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14140 | sed 's/^/| /' conftest.$ac_ext >&5 |
14141 | ||
7a197a62 | 14142 | eval "$as_ac_var=no" |
80992638 | 14143 | fi |
7a197a62 | 14144 | |
ec6a6fbe | 14145 | rm -rf conftest.dSYM |
25fbec5b | 14146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14147 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 14148 | fi |
ec6a6fbe AK |
14149 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14150 | $as_echo "$as_val"'` | |
14151 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14152 | $as_echo "$ac_res" >&6; } | |
14153 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14154 | $as_echo "$as_val"'` | |
14155 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14156 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14157 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 14158 | _ACEOF |
80992638 AK |
14159 | |
14160 | else | |
ec6a6fbe AK |
14161 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14162 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14163 | { (exit 1); exit 1; }; } |
8106cdd5 | 14164 | fi |
ad6254c5 | 14165 | done |
795ca3e5 | 14166 | |
25fbec5b AK |
14167 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
14168 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
14169 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
14170 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 14171 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 14172 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
14173 | else |
14174 | ac_func_search_save_LIBS=$LIBS | |
14175 | cat >conftest.$ac_ext <<_ACEOF | |
14176 | /* confdefs.h. */ | |
14177 | _ACEOF | |
14178 | cat confdefs.h >>conftest.$ac_ext | |
14179 | cat >>conftest.$ac_ext <<_ACEOF | |
14180 | /* end confdefs.h. */ | |
80992638 | 14181 | |
7a197a62 AK |
14182 | /* Override any GCC internal prototype to avoid an error. |
14183 | Use char because int might match the return type of a GCC | |
ad6254c5 | 14184 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
14185 | #ifdef __cplusplus |
14186 | extern "C" | |
14187 | #endif | |
25fbec5b | 14188 | char getmntent (); |
ad6254c5 AK |
14189 | int |
14190 | main () | |
14191 | { | |
25fbec5b | 14192 | return getmntent (); |
ad6254c5 AK |
14193 | ; |
14194 | return 0; | |
14195 | } | |
14196 | _ACEOF | |
25fbec5b AK |
14197 | for ac_lib in '' sun seq gen; do |
14198 | if test -z "$ac_lib"; then | |
14199 | ac_res="none required" | |
14200 | else | |
14201 | ac_res=-l$ac_lib | |
14202 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14203 | fi | |
14204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14205 | if { (ac_try="$ac_link" |
14206 | case "(($ac_try" in | |
14207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14208 | *) ac_try_echo=$ac_try;; | |
14209 | esac | |
ec6a6fbe AK |
14210 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14211 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14212 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14213 | ac_status=$? |
8a2fc586 AK |
14214 | grep -v '^ *+' conftest.er1 >conftest.err |
14215 | rm -f conftest.er1 | |
14216 | cat conftest.err >&5 | |
ec6a6fbe | 14217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14218 | (exit $ac_status); } && { |
14219 | test -z "$ac_c_werror_flag" || | |
14220 | test ! -s conftest.err | |
ec6a6fbe AK |
14221 | } && test -s conftest$ac_exeext && { |
14222 | test "$cross_compiling" = yes || | |
14223 | $as_test_x conftest$ac_exeext | |
14224 | }; then | |
25fbec5b | 14225 | ac_cv_search_getmntent=$ac_res |
80992638 | 14226 | else |
ec6a6fbe | 14227 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14228 | sed 's/^/| /' conftest.$ac_ext >&5 |
14229 | ||
25fbec5b | 14230 | |
795ca3e5 AK |
14231 | fi |
14232 | ||
ec6a6fbe | 14233 | rm -rf conftest.dSYM |
25fbec5b AK |
14234 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14235 | conftest$ac_exeext | |
14236 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14237 | break | |
795ca3e5 | 14238 | fi |
25fbec5b AK |
14239 | done |
14240 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14241 | : | |
14242 | else | |
14243 | ac_cv_search_getmntent=no | |
14244 | fi | |
14245 | rm conftest.$ac_ext | |
14246 | LIBS=$ac_func_search_save_LIBS | |
14247 | fi | |
ec6a6fbe AK |
14248 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14249 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14250 | ac_res=$ac_cv_search_getmntent |
14251 | if test "$ac_res" != no; then | |
14252 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14253 | ac_cv_func_getmntent=yes | |
14254 | ||
14255 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14256 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14257 | _ACEOF |
795ca3e5 | 14258 | |
25fbec5b AK |
14259 | else |
14260 | ac_cv_func_getmntent=no | |
795ca3e5 | 14261 | fi |
795ca3e5 AK |
14262 | |
14263 | ||
ad6254c5 AK |
14264 | # AC_FUNC_REALLOC |
14265 | ||
14266 | ||
14267 | for ac_header in sys/select.h sys/socket.h | |
14268 | do | |
ec6a6fbe | 14269 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14270 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14271 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14272 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14274 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14275 | fi |
ec6a6fbe AK |
14276 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14277 | $as_echo "$as_val"'` | |
14278 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14279 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14280 | else |
ad6254c5 | 14281 | # Is the header compilable? |
ec6a6fbe AK |
14282 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14283 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14284 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14285 | /* confdefs.h. */ |
14286 | _ACEOF | |
14287 | cat confdefs.h >>conftest.$ac_ext | |
14288 | cat >>conftest.$ac_ext <<_ACEOF | |
14289 | /* end confdefs.h. */ | |
14290 | $ac_includes_default | |
14291 | #include <$ac_header> | |
14292 | _ACEOF | |
14293 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14294 | if { (ac_try="$ac_compile" |
14295 | case "(($ac_try" in | |
14296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14297 | *) ac_try_echo=$ac_try;; | |
14298 | esac | |
ec6a6fbe AK |
14299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14300 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14301 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14302 | ac_status=$? |
8a2fc586 AK |
14303 | grep -v '^ *+' conftest.er1 >conftest.err |
14304 | rm -f conftest.er1 | |
14305 | cat conftest.err >&5 | |
ec6a6fbe | 14306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14307 | (exit $ac_status); } && { |
14308 | test -z "$ac_c_werror_flag" || | |
14309 | test ! -s conftest.err | |
14310 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14311 | ac_header_compiler=yes |
80992638 | 14312 | else |
ec6a6fbe | 14313 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14314 | sed 's/^/| /' conftest.$ac_ext >&5 |
14315 | ||
7a197a62 | 14316 | ac_header_compiler=no |
ad6254c5 | 14317 | fi |
7a197a62 AK |
14318 | |
14319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14320 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14321 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14322 | |
14323 | # Is the header present? | |
ec6a6fbe AK |
14324 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14325 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14326 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14327 | /* confdefs.h. */ |
14328 | _ACEOF | |
14329 | cat confdefs.h >>conftest.$ac_ext | |
14330 | cat >>conftest.$ac_ext <<_ACEOF | |
14331 | /* end confdefs.h. */ | |
14332 | #include <$ac_header> | |
14333 | _ACEOF | |
7a197a62 AK |
14334 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14335 | case "(($ac_try" in | |
14336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14337 | *) ac_try_echo=$ac_try;; | |
14338 | esac | |
ec6a6fbe AK |
14339 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14340 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14342 | ac_status=$? |
14343 | grep -v '^ *+' conftest.er1 >conftest.err | |
14344 | rm -f conftest.er1 | |
14345 | cat conftest.err >&5 | |
ec6a6fbe | 14346 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14347 | (exit $ac_status); } >/dev/null && { |
14348 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14349 | test ! -s conftest.err | |
14350 | }; then | |
ad6254c5 AK |
14351 | ac_header_preproc=yes |
14352 | else | |
ec6a6fbe | 14353 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14354 | sed 's/^/| /' conftest.$ac_ext >&5 |
14355 | ||
14356 | ac_header_preproc=no | |
14357 | fi | |
7a197a62 | 14358 | |
ad6254c5 | 14359 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14360 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14361 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14362 | |
14363 | # So? What about this header? | |
8a2fc586 AK |
14364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14365 | yes:no: ) | |
ec6a6fbe AK |
14366 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14367 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14368 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14369 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14370 | ac_header_preproc=yes |
ad6254c5 | 14371 | ;; |
8a2fc586 | 14372 | no:yes:* ) |
ec6a6fbe AK |
14373 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14374 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14375 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14376 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14377 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14378 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14379 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14380 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14381 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14382 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14383 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14384 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14385 | |
ad6254c5 AK |
14386 | ;; |
14387 | esac | |
ec6a6fbe AK |
14388 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14389 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14390 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14391 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14392 | else |
8a2fc586 | 14393 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14394 | fi |
ec6a6fbe AK |
14395 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14396 | $as_echo "$as_val"'` | |
14397 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14398 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14399 | |
795ca3e5 | 14400 | fi |
ec6a6fbe AK |
14401 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14402 | $as_echo "$as_val"'` | |
14403 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14404 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14405 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14406 | _ACEOF |
14407 | ||
795ca3e5 AK |
14408 | fi |
14409 | ||
ad6254c5 AK |
14410 | done |
14411 | ||
ec6a6fbe AK |
14412 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14413 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14414 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14415 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14416 | else |
ad6254c5 | 14417 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14418 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14419 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14420 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14421 | /* confdefs.h. */ |
14422 | _ACEOF | |
14423 | cat confdefs.h >>conftest.$ac_ext | |
14424 | cat >>conftest.$ac_ext <<_ACEOF | |
14425 | /* end confdefs.h. */ | |
14426 | $ac_includes_default | |
25fbec5b | 14427 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14428 | # include <sys/select.h> |
14429 | #endif | |
25fbec5b | 14430 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14431 | # include <sys/socket.h> |
14432 | #endif | |
14433 | ||
14434 | int | |
14435 | main () | |
14436 | { | |
14437 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14438 | $ac_arg234, $ac_arg234, $ac_arg234, |
14439 | $ac_arg5); | |
ad6254c5 AK |
14440 | ; |
14441 | return 0; | |
14442 | } | |
14443 | _ACEOF | |
14444 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14445 | if { (ac_try="$ac_compile" |
14446 | case "(($ac_try" in | |
14447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14448 | *) ac_try_echo=$ac_try;; | |
14449 | esac | |
ec6a6fbe AK |
14450 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14451 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14452 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14453 | ac_status=$? |
8a2fc586 AK |
14454 | grep -v '^ *+' conftest.er1 >conftest.err |
14455 | rm -f conftest.er1 | |
14456 | cat conftest.err >&5 | |
ec6a6fbe | 14457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14458 | (exit $ac_status); } && { |
14459 | test -z "$ac_c_werror_flag" || | |
14460 | test ! -s conftest.err | |
14461 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14462 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14463 | else | |
ec6a6fbe | 14464 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14465 | sed 's/^/| /' conftest.$ac_ext >&5 |
14466 | ||
7a197a62 | 14467 | |
ad6254c5 | 14468 | fi |
7a197a62 AK |
14469 | |
14470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14471 | done |
14472 | done | |
14473 | done | |
14474 | # Provide a safe default value. | |
14475 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14476 | ||
26e7f2e0 | 14477 | fi |
ec6a6fbe AK |
14478 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14479 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14480 | ac_save_IFS=$IFS; IFS=',' |
14481 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14482 | IFS=$ac_save_IFS | |
14483 | shift | |
14484 | ||
14485 | cat >>confdefs.h <<_ACEOF | |
14486 | #define SELECT_TYPE_ARG1 $1 | |
14487 | _ACEOF | |
14488 | ||
14489 | ||
14490 | cat >>confdefs.h <<_ACEOF | |
14491 | #define SELECT_TYPE_ARG234 ($2) | |
14492 | _ACEOF | |
14493 | ||
14494 | ||
14495 | cat >>confdefs.h <<_ACEOF | |
14496 | #define SELECT_TYPE_ARG5 ($3) | |
14497 | _ACEOF | |
14498 | ||
80992638 | 14499 | rm -f conftest* |
80992638 | 14500 | |
8106cdd5 | 14501 | fi |
ad6254c5 | 14502 | |
ad6254c5 AK |
14503 | if test x$CLUSTER != xnone; then |
14504 | ||
14505 | ||
14506 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14507 | do |
ec6a6fbe | 14508 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14510 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14511 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14512 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14513 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14514 | fi |
ec6a6fbe AK |
14515 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14516 | $as_echo "$as_val"'` | |
14517 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14518 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14519 | else |
14520 | # Is the header compilable? | |
ec6a6fbe AK |
14521 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14522 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14523 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14524 | /* confdefs.h. */ |
14525 | _ACEOF | |
14526 | cat confdefs.h >>conftest.$ac_ext | |
14527 | cat >>conftest.$ac_ext <<_ACEOF | |
14528 | /* end confdefs.h. */ | |
14529 | $ac_includes_default | |
14530 | #include <$ac_header> | |
14531 | _ACEOF | |
14532 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14533 | if { (ac_try="$ac_compile" |
14534 | case "(($ac_try" in | |
14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14536 | *) ac_try_echo=$ac_try;; | |
14537 | esac | |
ec6a6fbe AK |
14538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14539 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14540 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14541 | ac_status=$? |
8a2fc586 AK |
14542 | grep -v '^ *+' conftest.er1 >conftest.err |
14543 | rm -f conftest.er1 | |
14544 | cat conftest.err >&5 | |
ec6a6fbe | 14545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14546 | (exit $ac_status); } && { |
14547 | test -z "$ac_c_werror_flag" || | |
14548 | test ! -s conftest.err | |
14549 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14550 | ac_header_compiler=yes |
14551 | else | |
ec6a6fbe | 14552 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14553 | sed 's/^/| /' conftest.$ac_ext >&5 |
14554 | ||
7a197a62 | 14555 | ac_header_compiler=no |
ad6254c5 | 14556 | fi |
7a197a62 AK |
14557 | |
14558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14559 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14560 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14561 | |
14562 | # Is the header present? | |
ec6a6fbe AK |
14563 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14564 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14565 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14566 | /* confdefs.h. */ |
14567 | _ACEOF | |
14568 | cat confdefs.h >>conftest.$ac_ext | |
14569 | cat >>conftest.$ac_ext <<_ACEOF | |
14570 | /* end confdefs.h. */ | |
14571 | #include <$ac_header> | |
14572 | _ACEOF | |
7a197a62 AK |
14573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14574 | case "(($ac_try" in | |
14575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14576 | *) ac_try_echo=$ac_try;; | |
14577 | esac | |
ec6a6fbe AK |
14578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14579 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14580 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14581 | ac_status=$? |
14582 | grep -v '^ *+' conftest.er1 >conftest.err | |
14583 | rm -f conftest.er1 | |
14584 | cat conftest.err >&5 | |
ec6a6fbe | 14585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14586 | (exit $ac_status); } >/dev/null && { |
14587 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14588 | test ! -s conftest.err | |
14589 | }; then | |
ad6254c5 AK |
14590 | ac_header_preproc=yes |
14591 | else | |
ec6a6fbe | 14592 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14593 | sed 's/^/| /' conftest.$ac_ext >&5 |
14594 | ||
14595 | ac_header_preproc=no | |
14596 | fi | |
7a197a62 | 14597 | |
ad6254c5 | 14598 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14599 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14600 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14601 | |
14602 | # So? What about this header? | |
8a2fc586 AK |
14603 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14604 | yes:no: ) | |
ec6a6fbe AK |
14605 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14606 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14607 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14608 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14609 | ac_header_preproc=yes |
ad6254c5 | 14610 | ;; |
8a2fc586 | 14611 | no:yes:* ) |
ec6a6fbe AK |
14612 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14613 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14614 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14615 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14617 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14619 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14620 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14621 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14622 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14623 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14624 | |
ad6254c5 AK |
14625 | ;; |
14626 | esac | |
ec6a6fbe AK |
14627 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14628 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14629 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14630 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14631 | else |
8a2fc586 | 14632 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14633 | fi |
ec6a6fbe AK |
14634 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14635 | $as_echo "$as_val"'` | |
14636 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14637 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14638 | |
14639 | fi | |
ec6a6fbe AK |
14640 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14641 | $as_echo "$as_val"'` | |
14642 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14643 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14644 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14645 | _ACEOF |
14646 | ||
80992638 | 14647 | else |
ec6a6fbe AK |
14648 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14649 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14650 | { (exit 1); exit 1; }; } |
b896caa1 | 14651 | fi |
ad6254c5 | 14652 | |
b896caa1 AK |
14653 | done |
14654 | ||
14655 | ||
ad6254c5 AK |
14656 | for ac_func in socket |
14657 | do | |
ec6a6fbe AK |
14658 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14659 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14660 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14661 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14662 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14663 | else |
ad6254c5 | 14664 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14665 | /* confdefs.h. */ |
14666 | _ACEOF | |
14667 | cat confdefs.h >>conftest.$ac_ext | |
14668 | cat >>conftest.$ac_ext <<_ACEOF | |
14669 | /* end confdefs.h. */ | |
8a2fc586 AK |
14670 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14672 | #define $ac_func innocuous_$ac_func | |
14673 | ||
ad6254c5 AK |
14674 | /* System header to define __stub macros and hopefully few prototypes, |
14675 | which can conflict with char $ac_func (); below. | |
14676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14677 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14678 | |
ad6254c5 AK |
14679 | #ifdef __STDC__ |
14680 | # include <limits.h> | |
14681 | #else | |
14682 | # include <assert.h> | |
14683 | #endif | |
8a2fc586 AK |
14684 | |
14685 | #undef $ac_func | |
14686 | ||
7a197a62 AK |
14687 | /* Override any GCC internal prototype to avoid an error. |
14688 | Use char because int might match the return type of a GCC | |
14689 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14690 | #ifdef __cplusplus |
14691 | extern "C" | |
ad6254c5 | 14692 | #endif |
ad6254c5 AK |
14693 | char $ac_func (); |
14694 | /* The GNU C library defines this for functions which it implements | |
14695 | to always fail with ENOSYS. Some functions are actually named | |
14696 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14697 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14698 | choke me |
ad6254c5 AK |
14699 | #endif |
14700 | ||
14701 | int | |
14702 | main () | |
14703 | { | |
7a197a62 | 14704 | return $ac_func (); |
ad6254c5 AK |
14705 | ; |
14706 | return 0; | |
14707 | } | |
14708 | _ACEOF | |
14709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14710 | if { (ac_try="$ac_link" |
14711 | case "(($ac_try" in | |
14712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14713 | *) ac_try_echo=$ac_try;; | |
14714 | esac | |
ec6a6fbe AK |
14715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14716 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14717 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14718 | ac_status=$? |
8a2fc586 AK |
14719 | grep -v '^ *+' conftest.er1 >conftest.err |
14720 | rm -f conftest.er1 | |
14721 | cat conftest.err >&5 | |
ec6a6fbe | 14722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14723 | (exit $ac_status); } && { |
14724 | test -z "$ac_c_werror_flag" || | |
14725 | test ! -s conftest.err | |
ec6a6fbe AK |
14726 | } && test -s conftest$ac_exeext && { |
14727 | test "$cross_compiling" = yes || | |
14728 | $as_test_x conftest$ac_exeext | |
14729 | }; then | |
ad6254c5 AK |
14730 | eval "$as_ac_var=yes" |
14731 | else | |
ec6a6fbe | 14732 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14733 | sed 's/^/| /' conftest.$ac_ext >&5 |
14734 | ||
7a197a62 | 14735 | eval "$as_ac_var=no" |
ad6254c5 | 14736 | fi |
7a197a62 | 14737 | |
ec6a6fbe | 14738 | rm -rf conftest.dSYM |
25fbec5b | 14739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14740 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14741 | fi |
ec6a6fbe AK |
14742 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14743 | $as_echo "$as_val"'` | |
14744 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14745 | $as_echo "$ac_res" >&6; } | |
14746 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14747 | $as_echo "$as_val"'` | |
14748 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14749 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14750 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14751 | _ACEOF |
14752 | ||
14753 | else | |
ec6a6fbe AK |
14754 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14755 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14756 | { (exit 1); exit 1; }; } |
14757 | fi | |
14758 | done | |
14759 | ||
14760 | fi | |
14761 | ||
14762 | if test x$HAVE_LIBDL = xyes; then | |
14763 | ||
14764 | for ac_header in dlfcn.h | |
14765 | do | |
ec6a6fbe | 14766 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14768 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14769 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14770 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14771 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14772 | fi |
ec6a6fbe AK |
14773 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14774 | $as_echo "$as_val"'` | |
14775 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14776 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14777 | else |
14778 | # Is the header compilable? | |
ec6a6fbe AK |
14779 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14780 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14781 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14782 | /* confdefs.h. */ |
14783 | _ACEOF | |
14784 | cat confdefs.h >>conftest.$ac_ext | |
14785 | cat >>conftest.$ac_ext <<_ACEOF | |
14786 | /* end confdefs.h. */ | |
14787 | $ac_includes_default | |
14788 | #include <$ac_header> | |
14789 | _ACEOF | |
14790 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14791 | if { (ac_try="$ac_compile" |
14792 | case "(($ac_try" in | |
14793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14794 | *) ac_try_echo=$ac_try;; | |
14795 | esac | |
ec6a6fbe AK |
14796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14797 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14798 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14799 | ac_status=$? |
8a2fc586 AK |
14800 | grep -v '^ *+' conftest.er1 >conftest.err |
14801 | rm -f conftest.er1 | |
14802 | cat conftest.err >&5 | |
ec6a6fbe | 14803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14804 | (exit $ac_status); } && { |
14805 | test -z "$ac_c_werror_flag" || | |
14806 | test ! -s conftest.err | |
14807 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14808 | ac_header_compiler=yes |
14809 | else | |
ec6a6fbe | 14810 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14811 | sed 's/^/| /' conftest.$ac_ext >&5 |
14812 | ||
7a197a62 | 14813 | ac_header_compiler=no |
ad6254c5 | 14814 | fi |
7a197a62 AK |
14815 | |
14816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14817 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14818 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14819 | |
14820 | # Is the header present? | |
ec6a6fbe AK |
14821 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14822 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14823 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14824 | /* confdefs.h. */ |
14825 | _ACEOF | |
14826 | cat confdefs.h >>conftest.$ac_ext | |
14827 | cat >>conftest.$ac_ext <<_ACEOF | |
14828 | /* end confdefs.h. */ | |
14829 | #include <$ac_header> | |
14830 | _ACEOF | |
7a197a62 AK |
14831 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14832 | case "(($ac_try" in | |
14833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14834 | *) ac_try_echo=$ac_try;; | |
14835 | esac | |
ec6a6fbe AK |
14836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14837 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14838 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14839 | ac_status=$? |
14840 | grep -v '^ *+' conftest.er1 >conftest.err | |
14841 | rm -f conftest.er1 | |
14842 | cat conftest.err >&5 | |
ec6a6fbe | 14843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14844 | (exit $ac_status); } >/dev/null && { |
14845 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14846 | test ! -s conftest.err | |
14847 | }; then | |
ad6254c5 AK |
14848 | ac_header_preproc=yes |
14849 | else | |
ec6a6fbe | 14850 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14851 | sed 's/^/| /' conftest.$ac_ext >&5 |
14852 | ||
14853 | ac_header_preproc=no | |
14854 | fi | |
7a197a62 | 14855 | |
ad6254c5 | 14856 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14857 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14858 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14859 | |
14860 | # So? What about this header? | |
8a2fc586 AK |
14861 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14862 | yes:no: ) | |
ec6a6fbe AK |
14863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14864 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14866 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14867 | ac_header_preproc=yes |
ad6254c5 | 14868 | ;; |
8a2fc586 | 14869 | no:yes:* ) |
ec6a6fbe AK |
14870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14871 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14873 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14875 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14877 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14879 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14881 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14882 | |
ad6254c5 AK |
14883 | ;; |
14884 | esac | |
ec6a6fbe AK |
14885 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14886 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14888 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14889 | else |
8a2fc586 | 14890 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 14891 | fi |
ec6a6fbe AK |
14892 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14893 | $as_echo "$as_val"'` | |
14894 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14895 | $as_echo "$ac_res" >&6; } | |
80992638 | 14896 | |
8106cdd5 | 14897 | fi |
ec6a6fbe AK |
14898 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14899 | $as_echo "$as_val"'` | |
14900 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14901 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14902 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14903 | _ACEOF |
795ca3e5 AK |
14904 | |
14905 | else | |
ec6a6fbe AK |
14906 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14907 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14908 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14909 | fi |
14910 | ||
ad6254c5 | 14911 | done |
80992638 | 14912 | |
ad6254c5 | 14913 | fi |
80992638 | 14914 | |
ad6254c5 | 14915 | if test x$INTL = xyes; then |
83912faa | 14916 | |
ad6254c5 AK |
14917 | for ac_header in libintl.h |
14918 | do | |
ec6a6fbe | 14919 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14920 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14921 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14922 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14924 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14925 | fi |
ec6a6fbe AK |
14926 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14927 | $as_echo "$as_val"'` | |
14928 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14929 | $as_echo "$ac_res" >&6; } | |
83912faa | 14930 | else |
ad6254c5 | 14931 | # Is the header compilable? |
ec6a6fbe AK |
14932 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14933 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14934 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14935 | /* confdefs.h. */ |
14936 | _ACEOF | |
14937 | cat confdefs.h >>conftest.$ac_ext | |
14938 | cat >>conftest.$ac_ext <<_ACEOF | |
14939 | /* end confdefs.h. */ | |
14940 | $ac_includes_default | |
14941 | #include <$ac_header> | |
14942 | _ACEOF | |
14943 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14944 | if { (ac_try="$ac_compile" |
14945 | case "(($ac_try" in | |
14946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14947 | *) ac_try_echo=$ac_try;; | |
14948 | esac | |
ec6a6fbe AK |
14949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14950 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14951 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14952 | ac_status=$? |
8a2fc586 AK |
14953 | grep -v '^ *+' conftest.er1 >conftest.err |
14954 | rm -f conftest.er1 | |
14955 | cat conftest.err >&5 | |
ec6a6fbe | 14956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14957 | (exit $ac_status); } && { |
14958 | test -z "$ac_c_werror_flag" || | |
14959 | test ! -s conftest.err | |
14960 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14961 | ac_header_compiler=yes |
14962 | else | |
ec6a6fbe | 14963 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14964 | sed 's/^/| /' conftest.$ac_ext >&5 |
14965 | ||
7a197a62 | 14966 | ac_header_compiler=no |
ad6254c5 | 14967 | fi |
7a197a62 AK |
14968 | |
14969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14970 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14971 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14972 | |
14973 | # Is the header present? | |
ec6a6fbe AK |
14974 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14975 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14976 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14977 | /* confdefs.h. */ |
14978 | _ACEOF | |
14979 | cat confdefs.h >>conftest.$ac_ext | |
14980 | cat >>conftest.$ac_ext <<_ACEOF | |
14981 | /* end confdefs.h. */ | |
14982 | #include <$ac_header> | |
14983 | _ACEOF | |
7a197a62 AK |
14984 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14985 | case "(($ac_try" in | |
14986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14987 | *) ac_try_echo=$ac_try;; | |
14988 | esac | |
ec6a6fbe AK |
14989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14990 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14992 | ac_status=$? |
14993 | grep -v '^ *+' conftest.er1 >conftest.err | |
14994 | rm -f conftest.er1 | |
14995 | cat conftest.err >&5 | |
ec6a6fbe | 14996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14997 | (exit $ac_status); } >/dev/null && { |
14998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14999 | test ! -s conftest.err | |
15000 | }; then | |
ad6254c5 AK |
15001 | ac_header_preproc=yes |
15002 | else | |
ec6a6fbe | 15003 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15004 | sed 's/^/| /' conftest.$ac_ext >&5 |
15005 | ||
15006 | ac_header_preproc=no | |
15007 | fi | |
7a197a62 | 15008 | |
ad6254c5 | 15009 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15010 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15011 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15012 | |
15013 | # So? What about this header? | |
8a2fc586 AK |
15014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15015 | yes:no: ) | |
ec6a6fbe AK |
15016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15017 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15019 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15020 | ac_header_preproc=yes |
ad6254c5 | 15021 | ;; |
8a2fc586 | 15022 | no:yes:* ) |
ec6a6fbe AK |
15023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15024 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15026 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15028 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15030 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15032 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15034 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15035 | |
ad6254c5 AK |
15036 | ;; |
15037 | esac | |
ec6a6fbe AK |
15038 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15039 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15040 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15041 | $as_echo_n "(cached) " >&6 |
80992638 | 15042 | else |
8a2fc586 | 15043 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 15044 | fi |
ec6a6fbe AK |
15045 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15046 | $as_echo "$as_val"'` | |
15047 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15048 | $as_echo "$ac_res" >&6; } | |
83912faa | 15049 | |
69792976 | 15050 | fi |
ec6a6fbe AK |
15051 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15052 | $as_echo "$as_val"'` | |
15053 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15054 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15055 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15056 | _ACEOF |
69792976 | 15057 | |
69792976 | 15058 | else |
ec6a6fbe AK |
15059 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15060 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15061 | { (exit 1); exit 1; }; } |
80992638 AK |
15062 | fi |
15063 | ||
ad6254c5 | 15064 | done |
69792976 | 15065 | |
ad6254c5 AK |
15066 | fi |
15067 | ||
ad6254c5 AK |
15068 | if test x$HAVE_SELINUX = xyes; then |
15069 | ||
15070 | for ac_header in selinux/selinux.h | |
15071 | do | |
ec6a6fbe | 15072 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15074 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15075 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15077 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15078 | fi |
ec6a6fbe AK |
15079 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15080 | $as_echo "$as_val"'` | |
15081 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15082 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 15083 | else |
ad6254c5 | 15084 | # Is the header compilable? |
ec6a6fbe AK |
15085 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15086 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15087 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15088 | /* confdefs.h. */ |
15089 | _ACEOF | |
15090 | cat confdefs.h >>conftest.$ac_ext | |
15091 | cat >>conftest.$ac_ext <<_ACEOF | |
15092 | /* end confdefs.h. */ | |
15093 | $ac_includes_default | |
15094 | #include <$ac_header> | |
15095 | _ACEOF | |
15096 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15097 | if { (ac_try="$ac_compile" |
15098 | case "(($ac_try" in | |
15099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15100 | *) ac_try_echo=$ac_try;; | |
15101 | esac | |
ec6a6fbe AK |
15102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15103 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15104 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15105 | ac_status=$? |
8a2fc586 AK |
15106 | grep -v '^ *+' conftest.er1 >conftest.err |
15107 | rm -f conftest.er1 | |
15108 | cat conftest.err >&5 | |
ec6a6fbe | 15109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15110 | (exit $ac_status); } && { |
15111 | test -z "$ac_c_werror_flag" || | |
15112 | test ! -s conftest.err | |
15113 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15114 | ac_header_compiler=yes |
15115 | else | |
ec6a6fbe | 15116 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15117 | sed 's/^/| /' conftest.$ac_ext >&5 |
15118 | ||
7a197a62 | 15119 | ac_header_compiler=no |
ad6254c5 | 15120 | fi |
7a197a62 AK |
15121 | |
15122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15123 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15124 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15125 | |
15126 | # Is the header present? | |
ec6a6fbe AK |
15127 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15128 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15129 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15130 | /* confdefs.h. */ |
15131 | _ACEOF | |
15132 | cat confdefs.h >>conftest.$ac_ext | |
15133 | cat >>conftest.$ac_ext <<_ACEOF | |
15134 | /* end confdefs.h. */ | |
15135 | #include <$ac_header> | |
15136 | _ACEOF | |
7a197a62 AK |
15137 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15138 | case "(($ac_try" in | |
15139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15140 | *) ac_try_echo=$ac_try;; | |
15141 | esac | |
ec6a6fbe AK |
15142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15143 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15144 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15145 | ac_status=$? |
15146 | grep -v '^ *+' conftest.er1 >conftest.err | |
15147 | rm -f conftest.er1 | |
15148 | cat conftest.err >&5 | |
ec6a6fbe | 15149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15150 | (exit $ac_status); } >/dev/null && { |
15151 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15152 | test ! -s conftest.err | |
15153 | }; then | |
ad6254c5 AK |
15154 | ac_header_preproc=yes |
15155 | else | |
ec6a6fbe | 15156 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15157 | sed 's/^/| /' conftest.$ac_ext >&5 |
15158 | ||
15159 | ac_header_preproc=no | |
15160 | fi | |
7a197a62 | 15161 | |
ad6254c5 | 15162 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15163 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15164 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15165 | |
15166 | # So? What about this header? | |
8a2fc586 AK |
15167 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15168 | yes:no: ) | |
ec6a6fbe AK |
15169 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15170 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15171 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15172 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15173 | ac_header_preproc=yes |
ad6254c5 | 15174 | ;; |
8a2fc586 | 15175 | no:yes:* ) |
ec6a6fbe AK |
15176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15177 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15179 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15181 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15183 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15185 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15187 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15188 | |
ad6254c5 AK |
15189 | ;; |
15190 | esac | |
ec6a6fbe AK |
15191 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15192 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15193 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15194 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15195 | else |
8a2fc586 | 15196 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 15197 | fi |
ec6a6fbe AK |
15198 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15199 | $as_echo "$as_val"'` | |
15200 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15201 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 15202 | |
ad6254c5 | 15203 | fi |
ec6a6fbe AK |
15204 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15205 | $as_echo "$as_val"'` | |
15206 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15207 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15208 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15209 | _ACEOF |
0a62c911 | 15210 | |
0a62c911 | 15211 | else |
ec6a6fbe AK |
15212 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15213 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15214 | { (exit 1); exit 1; }; } |
80992638 AK |
15215 | fi |
15216 | ||
ad6254c5 | 15217 | done |
0a62c911 | 15218 | |
ad6254c5 | 15219 | fi |
0a62c911 | 15220 | |
a5f46f6a AK |
15221 | if test x$UDEV_SYNC = xyes; then |
15222 | ||
15223 | ||
15224 | for ac_header in sys/ipc.h sys/sem.h | |
15225 | do | |
15226 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15227 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15228 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15229 | $as_echo_n "checking for $ac_header... " >&6; } | |
15230 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15231 | $as_echo_n "(cached) " >&6 | |
15232 | fi | |
15233 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15234 | $as_echo "$as_val"'` | |
15235 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15236 | $as_echo "$ac_res" >&6; } | |
15237 | else | |
15238 | # Is the header compilable? | |
15239 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15240 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15241 | cat >conftest.$ac_ext <<_ACEOF | |
15242 | /* confdefs.h. */ | |
15243 | _ACEOF | |
15244 | cat confdefs.h >>conftest.$ac_ext | |
15245 | cat >>conftest.$ac_ext <<_ACEOF | |
15246 | /* end confdefs.h. */ | |
15247 | $ac_includes_default | |
15248 | #include <$ac_header> | |
15249 | _ACEOF | |
15250 | rm -f conftest.$ac_objext | |
15251 | if { (ac_try="$ac_compile" | |
15252 | case "(($ac_try" in | |
15253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15254 | *) ac_try_echo=$ac_try;; | |
15255 | esac | |
15256 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15257 | $as_echo "$ac_try_echo") >&5 | |
15258 | (eval "$ac_compile") 2>conftest.er1 | |
15259 | ac_status=$? | |
15260 | grep -v '^ *+' conftest.er1 >conftest.err | |
15261 | rm -f conftest.er1 | |
15262 | cat conftest.err >&5 | |
15263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15264 | (exit $ac_status); } && { | |
15265 | test -z "$ac_c_werror_flag" || | |
15266 | test ! -s conftest.err | |
15267 | } && test -s conftest.$ac_objext; then | |
15268 | ac_header_compiler=yes | |
15269 | else | |
15270 | $as_echo "$as_me: failed program was:" >&5 | |
15271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15272 | ||
15273 | ac_header_compiler=no | |
15274 | fi | |
15275 | ||
15276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15277 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15278 | $as_echo "$ac_header_compiler" >&6; } | |
15279 | ||
15280 | # Is the header present? | |
15281 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15282 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15283 | cat >conftest.$ac_ext <<_ACEOF | |
15284 | /* confdefs.h. */ | |
15285 | _ACEOF | |
15286 | cat confdefs.h >>conftest.$ac_ext | |
15287 | cat >>conftest.$ac_ext <<_ACEOF | |
15288 | /* end confdefs.h. */ | |
15289 | #include <$ac_header> | |
15290 | _ACEOF | |
15291 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15292 | case "(($ac_try" in | |
15293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15294 | *) ac_try_echo=$ac_try;; | |
15295 | esac | |
15296 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15297 | $as_echo "$ac_try_echo") >&5 | |
15298 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15299 | ac_status=$? | |
15300 | grep -v '^ *+' conftest.er1 >conftest.err | |
15301 | rm -f conftest.er1 | |
15302 | cat conftest.err >&5 | |
15303 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15304 | (exit $ac_status); } >/dev/null && { | |
15305 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15306 | test ! -s conftest.err | |
15307 | }; then | |
15308 | ac_header_preproc=yes | |
15309 | else | |
15310 | $as_echo "$as_me: failed program was:" >&5 | |
15311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15312 | ||
15313 | ac_header_preproc=no | |
15314 | fi | |
15315 | ||
15316 | rm -f conftest.err conftest.$ac_ext | |
15317 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15318 | $as_echo "$ac_header_preproc" >&6; } | |
15319 | ||
15320 | # So? What about this header? | |
15321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15322 | yes:no: ) | |
15323 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15324 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15325 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15326 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15327 | ac_header_preproc=yes | |
15328 | ;; | |
15329 | no:yes:* ) | |
15330 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15331 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15332 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15333 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15334 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15335 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15336 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15337 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15338 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15339 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15340 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15341 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15342 | ||
15343 | ;; | |
15344 | esac | |
15345 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15346 | $as_echo_n "checking for $ac_header... " >&6; } | |
15347 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15348 | $as_echo_n "(cached) " >&6 | |
15349 | else | |
15350 | eval "$as_ac_Header=\$ac_header_preproc" | |
15351 | fi | |
15352 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15353 | $as_echo "$as_val"'` | |
15354 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15355 | $as_echo "$ac_res" >&6; } | |
15356 | ||
15357 | fi | |
15358 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15359 | $as_echo "$as_val"'` | |
15360 | if test "x$as_val" = x""yes; then | |
15361 | cat >>confdefs.h <<_ACEOF | |
15362 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15363 | _ACEOF | |
15364 | ||
15365 | else | |
15366 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15367 | $as_echo "$as_me: error: bailing out" >&2;} | |
15368 | { (exit 1); exit 1; }; } | |
15369 | fi | |
15370 | ||
15371 | done | |
15372 | ||
15373 | fi | |
15374 | ||
a653923f AK |
15375 | ################################################################################ |
15376 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15377 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15378 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15379 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15380 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15381 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15382 | else |
15383 | case $MODPROBE_CMD in | |
15384 | [\\/]* | ?:[\\/]*) | |
15385 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15386 | ;; | |
15387 | *) | |
15388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15389 | for as_dir in $PATH | |
15390 | do | |
15391 | IFS=$as_save_IFS | |
15392 | test -z "$as_dir" && as_dir=. | |
15393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15395 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15396 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15397 | break 2 |
15398 | fi | |
15399 | done | |
15400 | done | |
7a197a62 | 15401 | IFS=$as_save_IFS |
72b2cb61 AK |
15402 | |
15403 | ;; | |
15404 | esac | |
15405 | fi | |
15406 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15407 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15408 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15409 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15410 | else |
ec6a6fbe AK |
15411 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15412 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15413 | fi |
15414 | ||
a653923f | 15415 | |
7a197a62 | 15416 | |
a653923f | 15417 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15418 | |
15419 | cat >>confdefs.h <<_ACEOF | |
15420 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15421 | _ACEOF | |
15422 | ||
a653923f AK |
15423 | fi |
15424 | ||
80992638 | 15425 | ################################################################################ |
93bd259b AK |
15426 | |
15427 | ||
15428 | if test "$BUILD_DMEVENTD" = yes; then | |
15429 | ||
15430 | # Check whether --with-dmeventd-pidfile was given. | |
15431 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15432 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15433 | #define DMEVENTD_PIDFILE "$withval" | |
15434 | _ACEOF | |
15435 | ||
15436 | else | |
15437 | cat >>confdefs.h <<_ACEOF | |
15438 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15439 | _ACEOF | |
15440 | ||
15441 | fi | |
15442 | ||
15443 | fi | |
15444 | ||
15445 | ||
15446 | ||
15447 | if test "$BUILD_DMEVENTD" = yes; then | |
15448 | dmeventd_prefix="$exec_prefix" | |
15449 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15450 | dmeventd_prefix="$prefix" | |
15451 | fi | |
15452 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15453 | dmeventd_prefix="" | |
15454 | fi | |
15455 | ||
15456 | # Check whether --with-dmeventd-path was given. | |
15457 | if test "${with_dmeventd_path+set}" = set; then | |
15458 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15459 | #define DMEVENTD_PATH "$withval" | |
15460 | _ACEOF | |
15461 | ||
15462 | else | |
15463 | cat >>confdefs.h <<_ACEOF | |
15464 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15465 | _ACEOF | |
15466 | ||
15467 | fi | |
15468 | ||
15469 | fi | |
15470 | ||
15471 | ################################################################################ | |
ec6a6fbe AK |
15472 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15473 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15474 | |
15475 | # Check whether --with-interface was given. | |
15476 | if test "${with_interface+set}" = set; then | |
15477 | withval=$with_interface; interface="$withval" | |
15478 | else | |
15479 | interface=ioctl | |
15480 | fi | |
15481 | ||
15482 | if [ "x$interface" != xioctl ]; | |
15483 | then | |
ec6a6fbe AK |
15484 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15485 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15486 | { (exit 1); exit 1; }; } |
15487 | fi | |
ec6a6fbe AK |
15488 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15489 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15490 | |
15491 | ################################################################################ | |
db8b5af9 | 15492 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15493 | |
15494 | cat >>confdefs.h <<_ACEOF | |
15495 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15496 | _ACEOF | |
15497 | ||
15498 | ||
db8b5af9 | 15499 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15500 | |
db8b5af9 | 15501 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15502 | |
db8b5af9 | 15503 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 15504 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15505 | VER=`echo "$VER" | $AWK '{print $1}'` |
15506 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15507 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15508 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15509 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15510 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15511 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15512 | |
80992638 | 15513 | ################################################################################ |
fae0c576 | 15514 | |
83912faa | 15515 | |
795ca3e5 AK |
15516 | |
15517 | ||
15518 | ||
15519 | ||
15520 | ||
15521 | ||
5a52dca9 | 15522 | |
8ef2b021 | 15523 | |
199e490e | 15524 | |
69792976 AK |
15525 | |
15526 | ||
15527 | ||
d0191583 | 15528 | |
69792976 | 15529 | |
8106cdd5 AK |
15530 | |
15531 | ||
15532 | ||
15533 | ||
15534 | ||
d68a82ec | 15535 | |
036f273a | 15536 | |
7d1552c9 | 15537 | |
8106cdd5 | 15538 | |
0a62c911 | 15539 | |
8106cdd5 | 15540 | |
4a7f3eb2 | 15541 | |
4922197a AK |
15542 | |
15543 | ||
d8ac0fbc | 15544 | |
1a9ea74d | 15545 | |
8a2fc586 AK |
15546 | |
15547 | ||
d0191583 | 15548 | |
93bd259b AK |
15549 | |
15550 | ||
15551 | ||
15552 | ||
15553 | ||
d0191583 JM |
15554 | |
15555 | ||
15556 | ||
15557 | ||
15558 | ||
8a2fc586 | 15559 | |
539f4a77 | 15560 | |
8ce0cbda | 15561 | |
8b1a3214 | 15562 | |
ec6a6fbe AK |
15563 | |
15564 | ||
15565 | ||
15566 | ||
e2997b73 AK |
15567 | |
15568 | ||
15569 | ||
15570 | ||
15571 | ||
15572 | ||
a946372e AK |
15573 | |
15574 | ||
15575 | ||
15576 | ||
15577 | ||
15578 | ||
15579 | ||
15580 | ||
15581 | ||
15582 | ||
15583 | ||
ec6a6fbe | 15584 | |
33f732c5 | 15585 | |
66e941e8 | 15586 | |
d3c8211f | 15587 | |
7e3fe830 | 15588 | |
a5f46f6a AK |
15589 | |
15590 | ||
15591 | ||
572fefeb | 15592 | |
90c80887 AK |
15593 | |
15594 | ||
bf456146 | 15595 | |
e1b8a236 | 15596 | |
0878503f | 15597 | |
68f2de6d AK |
15598 | |
15599 | ||
80992638 | 15600 | ################################################################################ |
d3d98fdc | 15601 | 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 | 15602 | |
ad6254c5 | 15603 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15604 | # This file is a shell script that caches the results of configure |
15605 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15606 | # scripts and configure runs, see configure's option --config-cache. |
15607 | # It is not useful on other systems. If it contains results you don't | |
15608 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15609 | # |
ad6254c5 AK |
15610 | # config.status only pays attention to the cache file if you give it |
15611 | # the --recheck option to rerun configure. | |
795ca3e5 | 15612 | # |
ad6254c5 AK |
15613 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15614 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15615 | # following values. | |
15616 | ||
15617 | _ACEOF | |
15618 | ||
795ca3e5 AK |
15619 | # The following way of writing the cache mishandles newlines in values, |
15620 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15621 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15622 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15623 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15624 | ( |
15625 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15626 | eval ac_val=\$$ac_var | |
15627 | case $ac_val in #( | |
15628 | *${as_nl}*) | |
15629 | case $ac_var in #( | |
ec6a6fbe AK |
15630 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15631 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15632 | esac |
15633 | case $ac_var in #( | |
15634 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15635 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15636 | *) $as_unset $ac_var ;; |
15637 | esac ;; | |
15638 | esac | |
15639 | done | |
15640 | ||
ad6254c5 | 15641 | (set) 2>&1 | |
7a197a62 AK |
15642 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15643 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15644 | # `set' does not quote correctly, so add quotes (double-quote |
15645 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15646 | sed -n \ | |
8a2fc586 AK |
15647 | "s/'/'\\\\''/g; |
15648 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15649 | ;; #( |
ad6254c5 AK |
15650 | *) |
15651 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15652 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15653 | ;; |
7a197a62 AK |
15654 | esac | |
15655 | sort | |
15656 | ) | | |
ad6254c5 | 15657 | sed ' |
7a197a62 | 15658 | /^ac_cv_env_/b end |
ad6254c5 | 15659 | t clear |
7a197a62 | 15660 | :clear |
ad6254c5 AK |
15661 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15662 | t end | |
7a197a62 AK |
15663 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15664 | :end' >>confcache | |
15665 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15666 | if test -w "$cache_file"; then | |
15667 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15668 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15669 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15670 | cat confcache >$cache_file |
795ca3e5 | 15671 | else |
ec6a6fbe AK |
15672 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15673 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15674 | fi |
15675 | fi | |
15676 | rm -f confcache | |
15677 | ||
795ca3e5 AK |
15678 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15679 | # Let make expand exec_prefix. | |
15680 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15681 | ||
72b2cb61 | 15682 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15683 | |
15684 | ac_libobjs= | |
15685 | ac_ltlibobjs= | |
15686 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15687 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15688 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15689 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15690 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15691 | # will be set to the directory where LIBOBJS objects are built. | |
15692 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15693 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15694 | done |
15695 | LIBOBJS=$ac_libobjs | |
80992638 | 15696 | |
ad6254c5 AK |
15697 | LTLIBOBJS=$ac_ltlibobjs |
15698 | ||
15699 | ||
15700 | ||
15701 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15702 | ac_write_fail=0 |
ad6254c5 AK |
15703 | ac_clean_files_save=$ac_clean_files |
15704 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15705 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15706 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15707 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15708 | #! $SHELL |
15709 | # Generated by $as_me. | |
795ca3e5 | 15710 | # Run this file to recreate the current configuration. |
795ca3e5 | 15711 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15712 | # configure, is in config.log if it exists. |
15713 | ||
15714 | debug=false | |
15715 | ac_cs_recheck=false | |
15716 | ac_cs_silent=false | |
15717 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15718 | _ACEOF | |
15719 | ||
ec6a6fbe | 15720 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15721 | ## --------------------- ## |
15722 | ## M4sh Initialization. ## | |
15723 | ## --------------------- ## | |
15724 | ||
25fbec5b AK |
15725 | # Be more Bourne compatible |
15726 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15727 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15728 | emulate sh | |
15729 | NULLCMD=: | |
ec6a6fbe | 15730 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15731 | # is contrary to our usage. Disable this feature. |
15732 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15733 | setopt NO_GLOB_SUBST |
15734 | else | |
25fbec5b AK |
15735 | case `(set -o) 2>/dev/null` in |
15736 | *posix*) set -o posix ;; | |
15737 | esac | |
15738 | ||
7a197a62 | 15739 | fi |
25fbec5b AK |
15740 | |
15741 | ||
7a197a62 AK |
15742 | |
15743 | ||
15744 | # PATH needs CR | |
15745 | # Avoid depending upon Character Ranges. | |
15746 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15747 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15748 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15749 | as_cr_digits='0123456789' | |
15750 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15751 | ||
ec6a6fbe AK |
15752 | as_nl=' |
15753 | ' | |
15754 | export as_nl | |
15755 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15756 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15757 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15758 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15759 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15760 | as_echo='printf %s\n' | |
15761 | as_echo_n='printf %s' | |
15762 | else | |
15763 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15764 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15765 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15766 | else |
ec6a6fbe AK |
15767 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15768 | as_echo_n_body='eval | |
15769 | arg=$1; | |
15770 | case $arg in | |
15771 | *"$as_nl"*) | |
15772 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15773 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15774 | esac; | |
15775 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15776 | ' | |
15777 | export as_echo_n_body | |
15778 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15779 | fi |
ec6a6fbe AK |
15780 | export as_echo_body |
15781 | as_echo='sh -c $as_echo_body as_echo' | |
15782 | fi | |
15783 | ||
15784 | # The user is always right. | |
15785 | if test "${PATH_SEPARATOR+set}" != set; then | |
15786 | PATH_SEPARATOR=: | |
15787 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15788 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15789 | PATH_SEPARATOR=';' | |
15790 | } | |
ad6254c5 AK |
15791 | fi |
15792 | ||
15793 | # Support unset when possible. | |
8a2fc586 | 15794 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15795 | as_unset=unset |
15796 | else | |
15797 | as_unset=false | |
15798 | fi | |
8106cdd5 | 15799 | |
ad6254c5 | 15800 | |
7a197a62 AK |
15801 | # IFS |
15802 | # We need space, tab and new line, in precisely that order. Quoting is | |
15803 | # there to prevent editors from complaining about space-tab. | |
15804 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15805 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15806 | IFS=" "" $as_nl" |
15807 | ||
15808 | # Find who we are. Look in the path if we contain no directory separator. | |
15809 | case $0 in | |
15810 | *[\\/]* ) as_myself=$0 ;; | |
15811 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15812 | for as_dir in $PATH | |
15813 | do | |
15814 | IFS=$as_save_IFS | |
15815 | test -z "$as_dir" && as_dir=. | |
15816 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15817 | done | |
15818 | IFS=$as_save_IFS | |
15819 | ||
15820 | ;; | |
15821 | esac | |
15822 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15823 | # in which case we are not to be found in the path. | |
15824 | if test "x$as_myself" = x; then | |
15825 | as_myself=$0 | |
15826 | fi | |
15827 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15828 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15829 | { (exit 1); exit 1; } |
15830 | fi | |
15831 | ||
ad6254c5 | 15832 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15833 | for as_var in ENV MAIL MAILPATH |
15834 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15835 | done | |
ad6254c5 AK |
15836 | PS1='$ ' |
15837 | PS2='> ' | |
15838 | PS4='+ ' | |
15839 | ||
15840 | # NLS nuisances. | |
ec6a6fbe AK |
15841 | LC_ALL=C |
15842 | export LC_ALL | |
15843 | LANGUAGE=C | |
15844 | export LANGUAGE | |
8106cdd5 | 15845 | |
ad6254c5 | 15846 | # Required to use basename. |
7a197a62 AK |
15847 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15848 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15849 | as_expr=expr |
15850 | else | |
15851 | as_expr=false | |
15852 | fi | |
8106cdd5 | 15853 | |
7a197a62 | 15854 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15855 | as_basename=basename |
15856 | else | |
15857 | as_basename=false | |
15858 | fi | |
15859 | ||
15860 | ||
15861 | # Name of the executable. | |
7a197a62 | 15862 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15863 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15864 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15865 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15866 | $as_echo X/"$0" | |
7a197a62 AK |
15867 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15868 | s//\1/ | |
15869 | q | |
15870 | } | |
15871 | /^X\/\(\/\/\)$/{ | |
15872 | s//\1/ | |
15873 | q | |
15874 | } | |
15875 | /^X\/\(\/\).*/{ | |
15876 | s//\1/ | |
15877 | q | |
15878 | } | |
15879 | s/.*/./; q'` | |
ad6254c5 | 15880 | |
7a197a62 AK |
15881 | # CDPATH. |
15882 | $as_unset CDPATH | |
ad6254c5 AK |
15883 | |
15884 | ||
ad6254c5 | 15885 | |
ad6254c5 AK |
15886 | as_lineno_1=$LINENO |
15887 | as_lineno_2=$LINENO | |
ad6254c5 | 15888 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15889 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15890 | |
ad6254c5 AK |
15891 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15892 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15893 | # line-number line after each line using $LINENO; the second 'sed' |
15894 | # does the real work. The second script uses 'N' to pair each | |
15895 | # line-number line with the line containing $LINENO, and appends | |
15896 | # trailing '-' during substitution so that $LINENO is not a special | |
15897 | # case at line end. | |
ad6254c5 | 15898 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15899 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15900 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15901 | sed -n ' | |
15902 | p | |
15903 | /[$]LINENO/= | |
15904 | ' <$as_myself | | |
ad6254c5 | 15905 | sed ' |
7a197a62 AK |
15906 | s/[$]LINENO.*/&-/ |
15907 | t lineno | |
15908 | b | |
15909 | :lineno | |
ad6254c5 | 15910 | N |
7a197a62 AK |
15911 | :loop |
15912 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15913 | t loop |
7a197a62 | 15914 | s/-\n.*// |
ad6254c5 | 15915 | ' >$as_me.lineno && |
7a197a62 | 15916 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15917 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15918 | { (exit 1); exit 1; }; } |
15919 | ||
15920 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15921 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15922 | # original and so on. Autoconf is especially sensitive to this). |
15923 | . "./$as_me.lineno" | |
ad6254c5 AK |
15924 | # Exit status is that of the last command. |
15925 | exit | |
15926 | } | |
15927 | ||
15928 | ||
7a197a62 AK |
15929 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15930 | as_dirname=dirname | |
15931 | else | |
15932 | as_dirname=false | |
15933 | fi | |
15934 | ||
15935 | ECHO_C= ECHO_N= ECHO_T= | |
15936 | case `echo -n x` in | |
15937 | -n*) | |
15938 | case `echo 'x\c'` in | |
15939 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15940 | *) ECHO_C='\c';; | |
15941 | esac;; | |
15942 | *) | |
15943 | ECHO_N='-n';; | |
ad6254c5 | 15944 | esac |
7a197a62 AK |
15945 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15946 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15947 | as_expr=expr |
15948 | else | |
15949 | as_expr=false | |
15950 | fi | |
80992638 | 15951 | |
ad6254c5 | 15952 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15953 | if test -d conf$$.dir; then |
15954 | rm -f conf$$.dir/conf$$.file | |
15955 | else | |
15956 | rm -f conf$$.dir | |
ec6a6fbe AK |
15957 | mkdir conf$$.dir 2>/dev/null |
15958 | fi | |
15959 | if (echo >conf$$.file) 2>/dev/null; then | |
15960 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15961 | as_ln_s='ln -s' | |
15962 | # ... but there are two gotchas: | |
15963 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15964 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15965 | # In both cases, we have to default to `cp -p'. | |
15966 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15967 | as_ln_s='cp -p' | |
15968 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15969 | as_ln_s=ln | |
15970 | else | |
ad6254c5 | 15971 | as_ln_s='cp -p' |
ec6a6fbe | 15972 | fi |
ad6254c5 AK |
15973 | else |
15974 | as_ln_s='cp -p' | |
15975 | fi | |
7a197a62 AK |
15976 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15977 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15978 | |
ad6254c5 AK |
15979 | if mkdir -p . 2>/dev/null; then |
15980 | as_mkdir_p=: | |
15981 | else | |
8a2fc586 | 15982 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
15983 | as_mkdir_p=false |
15984 | fi | |
15985 | ||
25fbec5b AK |
15986 | if test -x / >/dev/null 2>&1; then |
15987 | as_test_x='test -x' | |
7a197a62 | 15988 | else |
25fbec5b AK |
15989 | if ls -dL / >/dev/null 2>&1; then |
15990 | as_ls_L_option=L | |
15991 | else | |
15992 | as_ls_L_option= | |
15993 | fi | |
15994 | as_test_x=' | |
15995 | eval sh -c '\'' | |
15996 | if test -d "$1"; then | |
ec6a6fbe | 15997 | test -d "$1/."; |
25fbec5b AK |
15998 | else |
15999 | case $1 in | |
ec6a6fbe | 16000 | -*)set "./$1";; |
25fbec5b AK |
16001 | esac; |
16002 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
16003 | ???[sx]*):;;*)false;;esac;fi | |
16004 | '\'' sh | |
16005 | ' | |
7a197a62 | 16006 | fi |
25fbec5b | 16007 | as_executable_p=$as_test_x |
ad6254c5 AK |
16008 | |
16009 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 16010 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16011 | |
16012 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 16013 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16014 | |
16015 | ||
ad6254c5 AK |
16016 | exec 6>&1 |
16017 | ||
7a197a62 | 16018 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 16019 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
16020 | # values after options handling. |
16021 | ac_log=" | |
ad6254c5 | 16022 | This file was extended by $as_me, which was |
ec6a6fbe | 16023 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
16024 | |
16025 | CONFIG_FILES = $CONFIG_FILES | |
16026 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16027 | CONFIG_LINKS = $CONFIG_LINKS | |
16028 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16029 | $ $0 $@ | |
16030 | ||
7a197a62 AK |
16031 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16032 | " | |
16033 | ||
ad6254c5 AK |
16034 | _ACEOF |
16035 | ||
ec6a6fbe AK |
16036 | case $ac_config_files in *" |
16037 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16038 | esac | |
16039 | ||
16040 | case $ac_config_headers in *" | |
16041 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16042 | esac | |
16043 | ||
16044 | ||
16045 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 16046 | # Files that config.status was made for. |
68f2de6d AK |
16047 | config_files="$ac_config_files" |
16048 | config_headers="$ac_config_headers" | |
ad6254c5 | 16049 | |
7a197a62 | 16050 | _ACEOF |
ad6254c5 | 16051 | |
ec6a6fbe | 16052 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16053 | ac_cs_usage="\ |
16054 | \`$as_me' instantiates files from templates according to the | |
16055 | current configuration. | |
16056 | ||
ec6a6fbe | 16057 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
16058 | |
16059 | -h, --help print this help, then exit | |
25fbec5b | 16060 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
16061 | -q, --quiet, --silent |
16062 | do not print progress messages | |
ad6254c5 AK |
16063 | -d, --debug don't remove temporary files |
16064 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
16065 | --file=FILE[:TEMPLATE] |
16066 | instantiate the configuration file FILE | |
16067 | --header=FILE[:TEMPLATE] | |
16068 | instantiate the configuration header FILE | |
ad6254c5 AK |
16069 | |
16070 | Configuration files: | |
16071 | $config_files | |
16072 | ||
72b2cb61 AK |
16073 | Configuration headers: |
16074 | $config_headers | |
16075 | ||
ad6254c5 | 16076 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 16077 | |
7a197a62 | 16078 | _ACEOF |
ec6a6fbe | 16079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16080 | ac_cs_version="\\ |
16081 | config.status | |
ec6a6fbe AK |
16082 | configured by $0, generated by GNU Autoconf 2.63, |
16083 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 16084 | |
ec6a6fbe | 16085 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
16086 | This config.status script is free software; the Free Software Foundation |
16087 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
16088 | |
16089 | ac_pwd='$ac_pwd' | |
16090 | srcdir='$srcdir' | |
16091 | INSTALL='$INSTALL' | |
fddafd51 | 16092 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
16093 | AWK='$AWK' |
16094 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
16095 | _ACEOF |
16096 | ||
ec6a6fbe AK |
16097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16098 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
16099 | ac_need_defaults=: |
16100 | while test $# != 0 | |
16101 | do | |
16102 | case $1 in | |
16103 | --*=*) | |
7a197a62 AK |
16104 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16105 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
16106 | ac_shift=: |
16107 | ;; | |
7a197a62 | 16108 | *) |
ad6254c5 AK |
16109 | ac_option=$1 |
16110 | ac_optarg=$2 | |
16111 | ac_shift=shift | |
16112 | ;; | |
ad6254c5 AK |
16113 | esac |
16114 | ||
16115 | case $ac_option in | |
16116 | # Handling of the options. | |
ad6254c5 AK |
16117 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16118 | ac_cs_recheck=: ;; | |
7a197a62 | 16119 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 16120 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 16121 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
16122 | debug=: ;; |
16123 | --file | --fil | --fi | --f ) | |
16124 | $ac_shift | |
ec6a6fbe AK |
16125 | case $ac_optarg in |
16126 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16127 | esac | |
16128 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
16129 | ac_need_defaults=false;; |
16130 | --header | --heade | --head | --hea ) | |
16131 | $ac_shift | |
ec6a6fbe AK |
16132 | case $ac_optarg in |
16133 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16134 | esac | |
16135 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 16136 | ac_need_defaults=false;; |
7a197a62 AK |
16137 | --he | --h) |
16138 | # Conflict between --help and --header | |
ec6a6fbe | 16139 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
16140 | Try \`$0 --help' for more information." >&2 |
16141 | { (exit 1); exit 1; }; };; | |
16142 | --help | --hel | -h ) | |
ec6a6fbe | 16143 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
16144 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16145 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16146 | ac_cs_silent=: ;; | |
16147 | ||
16148 | # This is an error. | |
ec6a6fbe | 16149 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 16150 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
16151 | { (exit 1); exit 1; }; } ;; |
16152 | ||
7a197a62 AK |
16153 | *) ac_config_targets="$ac_config_targets $1" |
16154 | ac_need_defaults=false ;; | |
ad6254c5 AK |
16155 | |
16156 | esac | |
16157 | shift | |
16158 | done | |
16159 | ||
16160 | ac_configure_extra_args= | |
16161 | ||
16162 | if $ac_cs_silent; then | |
16163 | exec 6>/dev/null | |
16164 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16165 | fi | |
16166 | ||
16167 | _ACEOF | |
ec6a6fbe | 16168 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 16169 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
16170 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16171 | shift | |
16172 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16173 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 16174 | export CONFIG_SHELL |
ec6a6fbe | 16175 | exec "\$@" |
ad6254c5 AK |
16176 | fi |
16177 | ||
16178 | _ACEOF | |
ec6a6fbe | 16179 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16180 | exec 5>>config.log |
16181 | { | |
16182 | echo | |
16183 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16184 | ## Running $as_me. ## | |
16185 | _ASBOX | |
ec6a6fbe | 16186 | $as_echo "$ac_log" |
7a197a62 | 16187 | } >&5 |
ad6254c5 | 16188 | |
7a197a62 | 16189 | _ACEOF |
ec6a6fbe | 16190 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 16191 | _ACEOF |
ad6254c5 | 16192 | |
ec6a6fbe | 16193 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16194 | |
16195 | # Handling of arguments. | |
ad6254c5 AK |
16196 | for ac_config_target in $ac_config_targets |
16197 | do | |
7a197a62 AK |
16198 | case $ac_config_target in |
16199 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16200 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16201 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16202 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16203 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16204 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16205 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16206 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16207 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 16208 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
16209 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16210 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16211 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
db8b5af9 | 16212 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
16213 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16214 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16215 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16216 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16217 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16218 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 16219 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16220 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16221 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16222 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16223 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16224 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16225 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16226 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16227 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 16228 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 16229 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16230 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16231 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16232 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16233 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16234 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16235 | |
ec6a6fbe AK |
16236 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16237 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16238 | { (exit 1); exit 1; }; };; |
80992638 | 16239 | esac |
ad6254c5 AK |
16240 | done |
16241 | ||
7a197a62 | 16242 | |
ad6254c5 AK |
16243 | # If the user did not use the arguments to specify the items to instantiate, |
16244 | # then the envvar interface is used. Set only those that are not. | |
16245 | # We use the long form for the default assignment because of an extremely | |
16246 | # bizarre bug on SunOS 4.1.3. | |
16247 | if $ac_need_defaults; then | |
16248 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16249 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16250 | fi |
16251 | ||
16252 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16253 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16254 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16255 | # Hook for its removal unless debugging. |
16256 | # Note that there is a small window in which the directory will not be cleaned: | |
16257 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16258 | $debug || |
16259 | { | |
7a197a62 AK |
16260 | tmp= |
16261 | trap 'exit_status=$? | |
16262 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16263 | ' 0 | |
ad6254c5 AK |
16264 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16265 | } | |
ad6254c5 AK |
16266 | # Create a (secure) tmp directory for tmp files. |
16267 | ||
16268 | { | |
7a197a62 | 16269 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16270 | test -n "$tmp" && test -d "$tmp" |
16271 | } || | |
16272 | { | |
7a197a62 AK |
16273 | tmp=./conf$$-$RANDOM |
16274 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16275 | } || |
16276 | { | |
ec6a6fbe | 16277 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16278 | { (exit 1); exit 1; } |
16279 | } | |
16280 | ||
ec6a6fbe AK |
16281 | # Set up the scripts for CONFIG_FILES section. |
16282 | # No need to generate them if there are no CONFIG_FILES. | |
16283 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16284 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16285 | |
68f2de6d | 16286 | |
ec6a6fbe AK |
16287 | ac_cr='\r' |
16288 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16289 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16290 | ac_cs_awk_cr='\\r' | |
16291 | else | |
16292 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16293 | fi |
7a197a62 | 16294 | |
ec6a6fbe | 16295 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16296 | _ACEOF |
7a197a62 | 16297 | |
8106cdd5 | 16298 | |
ec6a6fbe AK |
16299 | { |
16300 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16301 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16302 | echo "_ACEOF" | |
16303 | } >conf$$subs.sh || | |
16304 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16305 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16306 | { (exit 1); exit 1; }; } | |
16307 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16308 | ac_delim='%!_!# ' |
16309 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16310 | . ./conf$$subs.sh || |
16311 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16312 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16313 | { (exit 1); exit 1; }; } | |
16314 | ||
16315 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16316 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16317 | break |
16318 | elif $ac_last_try; then | |
ec6a6fbe AK |
16319 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16320 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16321 | { (exit 1); exit 1; }; } |
16322 | else | |
16323 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16324 | fi | |
16325 | done | |
ec6a6fbe AK |
16326 | rm -f conf$$subs.sh |
16327 | ||
16328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16329 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16330 | _ACEOF | |
16331 | sed -n ' | |
16332 | h | |
16333 | s/^/S["/; s/!.*/"]=/ | |
16334 | p | |
16335 | g | |
16336 | s/^[^!]*!// | |
16337 | :repl | |
16338 | t repl | |
16339 | s/'"$ac_delim"'$// | |
16340 | t delim | |
16341 | :nl | |
16342 | h | |
16343 | s/\(.\{148\}\).*/\1/ | |
16344 | t more1 | |
16345 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16346 | p | |
16347 | n | |
16348 | b repl | |
16349 | :more1 | |
16350 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16351 | p | |
16352 | g | |
16353 | s/.\{148\}// | |
16354 | t nl | |
16355 | :delim | |
16356 | h | |
16357 | s/\(.\{148\}\).*/\1/ | |
16358 | t more2 | |
16359 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16360 | p | |
16361 | b | |
16362 | :more2 | |
16363 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16364 | p | |
16365 | g | |
16366 | s/.\{148\}// | |
16367 | t delim | |
16368 | ' <conf$$subs.awk | sed ' | |
16369 | /^[^""]/{ | |
16370 | N | |
16371 | s/\n// | |
16372 | } | |
16373 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16374 | rm -f conf$$subs.awk | |
16375 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16376 | _ACAWK | |
16377 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16378 | for (key in S) S_is_set[key] = 1 | |
16379 | FS = "\a" | |
7a197a62 | 16380 | |
ec6a6fbe AK |
16381 | } |
16382 | { | |
16383 | line = $ 0 | |
16384 | nfields = split(line, field, "@") | |
16385 | substed = 0 | |
16386 | len = length(field[1]) | |
16387 | for (i = 2; i < nfields; i++) { | |
16388 | key = field[i] | |
16389 | keylen = length(key) | |
16390 | if (S_is_set[key]) { | |
16391 | value = S[key] | |
16392 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16393 | len += length(value) + length(field[++i]) | |
16394 | substed = 1 | |
16395 | } else | |
16396 | len += 1 + keylen | |
16397 | } | |
16398 | ||
16399 | print line | |
16400 | } | |
fddafd51 | 16401 | |
ec6a6fbe | 16402 | _ACAWK |
1995c9ff | 16403 | _ACEOF |
ec6a6fbe AK |
16404 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16405 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16406 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16407 | else | |
16408 | cat | |
16409 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16410 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16411 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16412 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16413 | _ACEOF |
16414 | ||
7a197a62 AK |
16415 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16416 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16417 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16418 | # (actually we leave an empty line to preserve line numbers). | |
16419 | if test "x$srcdir" = x.; then | |
16420 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16421 | s/:*\$(srcdir):*/:/ | |
16422 | s/:*\${srcdir}:*/:/ | |
16423 | s/:*@srcdir@:*/:/ | |
16424 | s/^\([^=]*=[ ]*\):*/\1/ | |
16425 | s/:*$// | |
16426 | s/^[^=]*=[ ]*$// | |
16427 | }' | |
16428 | fi | |
16429 | ||
ec6a6fbe | 16430 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16431 | fi # test -n "$CONFIG_FILES" |
16432 | ||
ec6a6fbe AK |
16433 | # Set up the scripts for CONFIG_HEADERS section. |
16434 | # No need to generate them if there are no CONFIG_HEADERS. | |
16435 | # This happens for instance with `./config.status Makefile'. | |
16436 | if test -n "$CONFIG_HEADERS"; then | |
16437 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16438 | BEGIN { | |
16439 | _ACEOF | |
16440 | ||
16441 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16442 | # here-document in config.status, that substitutes the proper values into | |
16443 | # config.h.in to produce config.h. | |
16444 | ||
16445 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16446 | # handling of long lines. | |
16447 | ac_delim='%!_!# ' | |
16448 | for ac_last_try in false false :; do | |
16449 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16450 | if test -z "$ac_t"; then | |
16451 | break | |
16452 | elif $ac_last_try; then | |
16453 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16454 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16455 | { (exit 1); exit 1; }; } | |
16456 | else | |
16457 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16458 | fi | |
16459 | done | |
16460 | ||
16461 | # For the awk script, D is an array of macro values keyed by name, | |
16462 | # likewise P contains macro parameters if any. Preserve backslash | |
16463 | # newline sequences. | |
16464 | ||
16465 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16466 | sed -n ' | |
16467 | s/.\{148\}/&'"$ac_delim"'/g | |
16468 | t rset | |
16469 | :rset | |
16470 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16471 | t def | |
16472 | d | |
16473 | :def | |
16474 | s/\\$// | |
16475 | t bsnl | |
16476 | s/["\\]/\\&/g | |
16477 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16478 | D["\1"]=" \3"/p | |
16479 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16480 | d | |
16481 | :bsnl | |
16482 | s/["\\]/\\&/g | |
16483 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16484 | D["\1"]=" \3\\\\\\n"\\/p | |
16485 | t cont | |
16486 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16487 | t cont | |
16488 | d | |
16489 | :cont | |
16490 | n | |
16491 | s/.\{148\}/&'"$ac_delim"'/g | |
16492 | t clear | |
16493 | :clear | |
16494 | s/\\$// | |
16495 | t bsnlc | |
16496 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16497 | d | |
16498 | :bsnlc | |
16499 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16500 | b cont | |
16501 | ' <confdefs.h | sed ' | |
16502 | s/'"$ac_delim"'/"\\\ | |
16503 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16504 | ||
16505 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16506 | for (key in D) D_is_set[key] = 1 | |
16507 | FS = "\a" | |
16508 | } | |
16509 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16510 | line = \$ 0 | |
16511 | split(line, arg, " ") | |
16512 | if (arg[1] == "#") { | |
16513 | defundef = arg[2] | |
16514 | mac1 = arg[3] | |
16515 | } else { | |
16516 | defundef = substr(arg[1], 2) | |
16517 | mac1 = arg[2] | |
16518 | } | |
16519 | split(mac1, mac2, "(") #) | |
16520 | macro = mac2[1] | |
16521 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16522 | if (D_is_set[macro]) { | |
16523 | # Preserve the white space surrounding the "#". | |
16524 | print prefix "define", macro P[macro] D[macro] | |
16525 | next | |
16526 | } else { | |
16527 | # Replace #undef with comments. This is necessary, for example, | |
16528 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16529 | # on some systems where configure will not decide to define it. | |
16530 | if (defundef == "undef") { | |
16531 | print "/*", prefix defundef, macro, "*/" | |
16532 | next | |
16533 | } | |
16534 | } | |
16535 | } | |
16536 | { print } | |
16537 | _ACAWK | |
16538 | _ACEOF | |
16539 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16540 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16541 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16542 | { (exit 1); exit 1; }; } | |
16543 | fi # test -n "$CONFIG_HEADERS" | |
16544 | ||
7a197a62 | 16545 | |
ec6a6fbe AK |
16546 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16547 | shift | |
16548 | for ac_tag | |
7a197a62 AK |
16549 | do |
16550 | case $ac_tag in | |
16551 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16552 | esac | |
16553 | case $ac_mode$ac_tag in | |
16554 | :[FHL]*:*);; | |
ec6a6fbe AK |
16555 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16556 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16557 | { (exit 1); exit 1; }; };; |
16558 | :[FH]-) ac_tag=-:-;; | |
16559 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16560 | esac | |
16561 | ac_save_IFS=$IFS | |
16562 | IFS=: | |
16563 | set x $ac_tag | |
16564 | IFS=$ac_save_IFS | |
16565 | shift | |
16566 | ac_file=$1 | |
16567 | shift | |
16568 | ||
16569 | case $ac_mode in | |
16570 | :L) ac_source=$1;; | |
16571 | :[FH]) | |
16572 | ac_file_inputs= | |
16573 | for ac_f | |
16574 | do | |
16575 | case $ac_f in | |
16576 | -) ac_f="$tmp/stdin";; | |
16577 | *) # Look for the file first in the build tree, then in the source tree | |
16578 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16579 | # because $ac_f cannot contain `:'. | |
16580 | test -f "$ac_f" || | |
16581 | case $ac_f in | |
16582 | [\\/$]*) false;; | |
16583 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16584 | esac || | |
ec6a6fbe AK |
16585 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16586 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16587 | { (exit 1); exit 1; }; };; |
16588 | esac | |
ec6a6fbe AK |
16589 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16590 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16591 | done |
16592 | ||
16593 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16594 | # use $as_me), people would be surprised to read: | |
16595 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16596 | configure_input='Generated from '` |
16597 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16598 | `' by configure.' | |
7a197a62 AK |
16599 | if test x"$ac_file" != x-; then |
16600 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16601 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16602 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16603 | fi |
ec6a6fbe AK |
16604 | # Neutralize special characters interpreted by sed in replacement strings. |
16605 | case $configure_input in #( | |
16606 | *\&* | *\|* | *\\* ) | |
16607 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16608 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16609 | *) ac_sed_conf_input=$configure_input;; | |
16610 | esac | |
7a197a62 AK |
16611 | |
16612 | case $ac_tag in | |
ec6a6fbe AK |
16613 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16614 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16615 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16616 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16617 | esac |
16618 | ;; | |
80992638 | 16619 | esac |
8106cdd5 | 16620 | |
7a197a62 | 16621 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16622 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16623 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16624 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16625 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16626 | $as_echo X"$ac_file" | |
7a197a62 AK |
16627 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16628 | s//\1/ | |
16629 | q | |
16630 | } | |
16631 | /^X\(\/\/\)[^/].*/{ | |
16632 | s//\1/ | |
16633 | q | |
16634 | } | |
16635 | /^X\(\/\/\)$/{ | |
16636 | s//\1/ | |
16637 | q | |
16638 | } | |
16639 | /^X\(\/\).*/{ | |
16640 | s//\1/ | |
16641 | q | |
16642 | } | |
16643 | s/.*/./; q'` | |
16644 | { as_dir="$ac_dir" | |
16645 | case $as_dir in #( | |
16646 | -*) as_dir=./$as_dir;; | |
16647 | esac | |
16648 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16649 | as_dirs= |
7a197a62 AK |
16650 | while :; do |
16651 | case $as_dir in #( | |
ec6a6fbe | 16652 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16653 | *) as_qdir=$as_dir;; |
16654 | esac | |
16655 | as_dirs="'$as_qdir' $as_dirs" | |
16656 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16657 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16658 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16659 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16660 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16661 | $as_echo X"$as_dir" | |
7a197a62 AK |
16662 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16663 | s//\1/ | |
16664 | q | |
16665 | } | |
16666 | /^X\(\/\/\)[^/].*/{ | |
16667 | s//\1/ | |
16668 | q | |
16669 | } | |
16670 | /^X\(\/\/\)$/{ | |
16671 | s//\1/ | |
16672 | q | |
16673 | } | |
16674 | /^X\(\/\).*/{ | |
16675 | s//\1/ | |
16676 | q | |
16677 | } | |
16678 | s/.*/./; q'` | |
16679 | test -d "$as_dir" && break | |
ad6254c5 | 16680 | done |
7a197a62 | 16681 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16682 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16683 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16684 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16685 | ac_builddir=. |
16686 | ||
7a197a62 AK |
16687 | case "$ac_dir" in |
16688 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16689 | *) | |
ec6a6fbe | 16690 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16691 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16692 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16693 | case $ac_top_builddir_sub in |
16694 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16695 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16696 | esac ;; | |
16697 | esac | |
16698 | ac_abs_top_builddir=$ac_pwd | |
16699 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16700 | # for backward compatibility: | |
16701 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16702 | |
16703 | case $srcdir in | |
7a197a62 | 16704 | .) # We are building in place. |
ad6254c5 | 16705 | ac_srcdir=. |
7a197a62 AK |
16706 | ac_top_srcdir=$ac_top_builddir_sub |
16707 | ac_abs_top_srcdir=$ac_pwd ;; | |
16708 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16709 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16710 | ac_top_srcdir=$srcdir |
16711 | ac_abs_top_srcdir=$srcdir ;; | |
16712 | *) # Relative name. | |
16713 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16714 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16715 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16716 | esac |
7a197a62 | 16717 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16718 | |
ad6254c5 | 16719 | |
7a197a62 AK |
16720 | case $ac_mode in |
16721 | :F) | |
16722 | # | |
16723 | # CONFIG_FILE | |
16724 | # | |
ad6254c5 AK |
16725 | |
16726 | case $INSTALL in | |
16727 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16728 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16729 | esac |
fddafd51 ZK |
16730 | ac_MKDIR_P=$MKDIR_P |
16731 | case $MKDIR_P in | |
16732 | [\\/$]* | ?:[\\/]* ) ;; | |
16733 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16734 | esac | |
7a197a62 | 16735 | _ACEOF |
795ca3e5 | 16736 | |
ec6a6fbe | 16737 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16738 | # If the template does not know about datarootdir, expand it. |
16739 | # FIXME: This hack should be removed a few years after 2.60. | |
16740 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16741 | ||
ec6a6fbe AK |
16742 | ac_sed_dataroot=' |
16743 | /datarootdir/ { | |
7a197a62 AK |
16744 | p |
16745 | q | |
16746 | } | |
16747 | /@datadir@/p | |
16748 | /@docdir@/p | |
16749 | /@infodir@/p | |
16750 | /@localedir@/p | |
16751 | /@mandir@/p | |
ec6a6fbe AK |
16752 | ' |
16753 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16754 | *datarootdir*) ac_datarootdir_seen=yes;; |
16755 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16757 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16758 | _ACEOF |
ec6a6fbe | 16759 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16760 | ac_datarootdir_hack=' |
16761 | s&@datadir@&$datadir&g | |
16762 | s&@docdir@&$docdir&g | |
16763 | s&@infodir@&$infodir&g | |
16764 | s&@localedir@&$localedir&g | |
16765 | s&@mandir@&$mandir&g | |
16766 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16767 | esac | |
16768 | _ACEOF | |
16769 | ||
16770 | # Neutralize VPATH when `$srcdir' = `.'. | |
16771 | # Shell code in configure.ac might set extrasub. | |
16772 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16773 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16774 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16775 | $extrasub |
16776 | _ACEOF | |
ec6a6fbe | 16777 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16778 | :t |
16779 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16780 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16781 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16782 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16783 | s&@srcdir@&$ac_srcdir&;t t |
16784 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16785 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16786 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16787 | s&@builddir@&$ac_builddir&;t t | |
16788 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16789 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16790 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16791 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16792 | $ac_datarootdir_hack |
ec6a6fbe AK |
16793 | " |
16794 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16795 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16796 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16797 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16798 | |
16799 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16800 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16801 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16802 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16803 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16804 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16805 | which seems to be undefined. Please make sure it is defined." >&2;} |
16806 | ||
16807 | rm -f "$tmp/stdin" | |
72b2cb61 | 16808 | case $ac_file in |
ec6a6fbe AK |
16809 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16810 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16811 | esac \ | |
16812 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16813 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16814 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16815 | ;; |
16816 | :H) | |
16817 | # | |
16818 | # CONFIG_HEADER | |
16819 | # | |
72b2cb61 | 16820 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16821 | { |
16822 | $as_echo "/* $configure_input */" \ | |
16823 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16824 | } >"$tmp/config.h" \ | |
16825 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16826 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16827 | { (exit 1); exit 1; }; } | |
16828 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16829 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16830 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16831 | else |
ec6a6fbe AK |
16832 | rm -f "$ac_file" |
16833 | mv "$tmp/config.h" "$ac_file" \ | |
16834 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16835 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16836 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16837 | fi |
16838 | else | |
ec6a6fbe AK |
16839 | $as_echo "/* $configure_input */" \ |
16840 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16841 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16842 | $as_echo "$as_me: error: could not create -" >&2;} | |
16843 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16844 | fi |
7a197a62 AK |
16845 | ;; |
16846 | ||
16847 | ||
16848 | esac | |
16849 | ||
16850 | done # for ac_tag | |
795ca3e5 | 16851 | |
795ca3e5 | 16852 | |
ad6254c5 AK |
16853 | { (exit 0); exit 0; } |
16854 | _ACEOF | |
795ca3e5 | 16855 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16856 | ac_clean_files=$ac_clean_files_save |
16857 | ||
ec6a6fbe AK |
16858 | test $ac_write_fail = 0 || |
16859 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16860 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16861 | { (exit 1); exit 1; }; } | |
16862 | ||
ad6254c5 AK |
16863 | |
16864 | # configure is writing to config.log, and then calls config.status. | |
16865 | # config.status does its own redirection, appending to config.log. | |
16866 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16867 | # by configure, so config.status won't be able to write to it; its | |
16868 | # output is simply discarded. So we exec the FD to /dev/null, | |
16869 | # effectively closing config.log, so it can be properly (re)opened and | |
16870 | # appended to by config.status. When coming back to configure, we | |
16871 | # need to make the FD available again. | |
16872 | if test "$no_create" != yes; then | |
16873 | ac_cs_success=: | |
16874 | ac_config_status_args= | |
16875 | test "$silent" = yes && | |
16876 | ac_config_status_args="$ac_config_status_args --quiet" | |
16877 | exec 5>/dev/null | |
16878 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16879 | exec 5>>config.log | |
16880 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16881 | # would make configure fail if this is the last instruction. | |
16882 | $ac_cs_success || { (exit 1); exit 1; } | |
16883 | fi | |
ec6a6fbe AK |
16884 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16885 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16886 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16887 | fi | |
795ca3e5 | 16888 | |
2dc95e1c AK |
16889 | |
16890 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16891 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16892 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16893 | fi |