]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
23b059e7 | 649 | WRITE_INSTALL |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
f7f0854e | 652 | UDEV_PC |
db724a44 | 653 | UDEV_LIBS |
ec6a6fbe AK |
654 | STATIC_LINK |
655 | STATICDIR | |
656 | SNAPSHOTS | |
f7f0854e | 657 | SELINUX_PC |
e1b8a236 | 658 | SELINUX_LIBS |
539f4a77 | 659 | READLINE_LIBS |
f30875db | 660 | PTHREAD_LIBS |
ec6a6fbe AK |
661 | POOL |
662 | PKGCONFIG | |
8fea97b7 | 663 | REPLICATORS |
ec6a6fbe AK |
664 | MIRRORS |
665 | LVM_RELEASE_DATE | |
666 | LVM_RELEASE | |
667 | LVM_PATCHLEVEL | |
668 | LVM_MINOR | |
669 | LVM_MAJOR | |
bf456146 | 670 | LVM_LIBAPI |
ec6a6fbe | 671 | LVM_VERSION |
ec6a6fbe AK |
672 | LVM1_FALLBACK |
673 | LVM1 | |
674 | LOCALEDIR | |
675 | LIB_SUFFIX | |
676 | LDDEPS | |
677 | JOBS | |
678 | INTL_PACKAGE | |
679 | INTL | |
ec6a6fbe AK |
680 | HAVE_REALTIME |
681 | HAVE_LIBDL | |
ec6a6fbe AK |
682 | FSADM |
683 | DM_LIB_PATCHLEVEL | |
684 | DM_LIB_VERSION | |
685 | DM_IOCTLS | |
686 | DM_DEVICE_UID | |
687 | DM_DEVICE_MODE | |
688 | DM_DEVICE_GID | |
689 | DM_COMPAT | |
690 | DMEVENTD | |
19a2c6e0 | 691 | DL_LIBS |
ec6a6fbe | 692 | DEVMAPPER |
3399ae32 AK |
693 | DEFAULT_LOCK_DIR |
694 | DEFAULT_CACHE_SUBDIR | |
695 | DEFAULT_BACKUP_SUBDIR | |
696 | DEFAULT_ARCHIVE_SUBDIR | |
697 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
698 | DEBUG |
699 | COPTIMISE_FLAG | |
e2997b73 | 700 | CONFDIR |
ec6a6fbe AK |
701 | CMDLIB |
702 | CLVMD | |
703 | CLUSTER | |
704 | CLDWHOLEARCHIVE | |
705 | CLDNOWHOLEARCHIVE | |
706 | CLDFLAGS | |
707 | BUILD_DMEVENTD | |
66fd4529 | 708 | BUILD_CMIRRORD |
572fefeb | 709 | APPLIB |
ec6a6fbe AK |
710 | MODPROBE_CMD |
711 | MSGFMT | |
712 | LVM2CMD_LIB | |
572fefeb | 713 | LVM2APP_LIB |
fd4728e1 | 714 | GENPNG |
ec6a6fbe AK |
715 | GENHTML |
716 | LCOV | |
90c80887 AK |
717 | SACKPT_LIBS |
718 | SACKPT_CFLAGS | |
a946372e AK |
719 | DLM_LIBS |
720 | DLM_CFLAGS | |
e2997b73 AK |
721 | CPG_LIBS |
722 | CPG_CFLAGS | |
723 | CONFDB_LIBS | |
724 | CONFDB_CFLAGS | |
a946372e AK |
725 | SALCK_LIBS |
726 | SALCK_CFLAGS | |
e2997b73 AK |
727 | QUORUM_LIBS |
728 | QUORUM_CFLAGS | |
a946372e AK |
729 | COROSYNC_LIBS |
730 | COROSYNC_CFLAGS | |
731 | CMAN_LIBS | |
732 | CMAN_CFLAGS | |
733 | GULM_LIBS | |
734 | GULM_CFLAGS | |
735 | CCS_LIBS | |
736 | CCS_CFLAGS | |
737 | PKGCONFIGINIT_LIBS | |
738 | PKGCONFIGINIT_CFLAGS | |
b5c2529b ZK |
739 | PKG_CONFIG_LIBDIR |
740 | PKG_CONFIG_PATH | |
e2997b73 | 741 | PKG_CONFIG |
ec6a6fbe AK |
742 | POW_LIB |
743 | LIBOBJS | |
744 | ALLOCA | |
745 | CSCOPE_CMD | |
746 | CFLOW_CMD | |
747 | RANLIB | |
748 | MKDIR_P | |
749 | SET_MAKE | |
750 | LN_S | |
751 | INSTALL_DATA | |
752 | INSTALL_SCRIPT | |
753 | INSTALL_PROGRAM | |
754 | EGREP | |
755 | GREP | |
756 | CPP | |
757 | OBJEXT | |
758 | EXEEXT | |
759 | ac_ct_CC | |
760 | CPPFLAGS | |
761 | LDFLAGS | |
762 | CFLAGS | |
763 | CC | |
764 | AWK | |
765 | SED | |
766 | target_os | |
767 | target_vendor | |
768 | target_cpu | |
769 | target | |
770 | host_os | |
771 | host_vendor | |
772 | host_cpu | |
773 | host | |
774 | build_os | |
775 | build_vendor | |
776 | build_cpu | |
777 | build | |
778 | target_alias | |
779 | host_alias | |
780 | build_alias | |
781 | LIBS | |
782 | ECHO_T | |
783 | ECHO_N | |
784 | ECHO_C | |
785 | DEFS | |
786 | mandir | |
787 | localedir | |
788 | libdir | |
789 | psdir | |
790 | pdfdir | |
791 | dvidir | |
792 | htmldir | |
793 | infodir | |
794 | docdir | |
795 | oldincludedir | |
796 | includedir | |
797 | localstatedir | |
798 | sharedstatedir | |
799 | sysconfdir | |
800 | datadir | |
801 | datarootdir | |
802 | libexecdir | |
803 | sbindir | |
804 | bindir | |
805 | program_transform_name | |
806 | prefix | |
807 | exec_prefix | |
808 | PACKAGE_BUGREPORT | |
809 | PACKAGE_STRING | |
810 | PACKAGE_VERSION | |
811 | PACKAGE_TARNAME | |
812 | PACKAGE_NAME | |
813 | PATH_SEPARATOR | |
814 | SHELL' | |
ad6254c5 | 815 | ac_subst_files='' |
ec6a6fbe AK |
816 | ac_user_opts=' |
817 | enable_option_checking | |
818 | enable_static_link | |
819 | with_user | |
820 | with_group | |
821 | with_device_uid | |
822 | with_device_gid | |
823 | with_device_mode | |
824 | enable_lvm1_fallback | |
825 | with_lvm1 | |
826 | with_pool | |
827 | with_cluster | |
828 | with_snapshots | |
829 | with_mirrors | |
8fea97b7 | 830 | with_replicators |
ec6a6fbe AK |
831 | enable_readline |
832 | enable_realtime | |
833 | with_clvmd | |
66fd4529 AK |
834 | enable_cmirrord |
835 | with_cmirrord_pidfile | |
ec6a6fbe AK |
836 | enable_debug |
837 | with_optimisation | |
838 | enable_profiling | |
839 | enable_devmapper | |
a5f46f6a AK |
840 | enable_udev_sync |
841 | enable_udev_rules | |
ec6a6fbe | 842 | enable_compat |
95eaa683 | 843 | enable_units_compat |
ec6a6fbe AK |
844 | enable_ioctl |
845 | enable_o_direct | |
572fefeb | 846 | enable_applib |
ec6a6fbe AK |
847 | enable_cmdlib |
848 | enable_pkgconfig | |
23b059e7 | 849 | enable_write_install |
ec6a6fbe AK |
850 | enable_fsadm |
851 | enable_dmeventd | |
852 | enable_selinux | |
853 | enable_nls | |
854 | with_localedir | |
855 | with_confdir | |
856 | with_staticdir | |
857 | with_usrlibdir | |
858 | with_usrsbindir | |
a5f46f6a | 859 | with_udev_prefix |
78ce7acc | 860 | with_udevdir |
ec6a6fbe AK |
861 | with_dmeventd_pidfile |
862 | with_dmeventd_path | |
3399ae32 AK |
863 | with_default_system_dir |
864 | with_default_archive_subdir | |
865 | with_default_backup_subdir | |
866 | with_default_cache_subdir | |
867 | with_default_locking_dir | |
ec6a6fbe AK |
868 | with_interface |
869 | ' | |
7a197a62 AK |
870 | ac_precious_vars='build_alias |
871 | host_alias | |
872 | target_alias | |
873 | CC | |
874 | CFLAGS | |
875 | LDFLAGS | |
25fbec5b | 876 | LIBS |
7a197a62 | 877 | CPPFLAGS |
e2997b73 AK |
878 | CPP |
879 | PKG_CONFIG | |
b5c2529b ZK |
880 | PKG_CONFIG_PATH |
881 | PKG_CONFIG_LIBDIR | |
a946372e AK |
882 | PKGCONFIGINIT_CFLAGS |
883 | PKGCONFIGINIT_LIBS | |
884 | CCS_CFLAGS | |
885 | CCS_LIBS | |
886 | GULM_CFLAGS | |
887 | GULM_LIBS | |
888 | CMAN_CFLAGS | |
889 | CMAN_LIBS | |
890 | COROSYNC_CFLAGS | |
891 | COROSYNC_LIBS | |
e2997b73 AK |
892 | QUORUM_CFLAGS |
893 | QUORUM_LIBS | |
a946372e AK |
894 | SALCK_CFLAGS |
895 | SALCK_LIBS | |
e2997b73 AK |
896 | CONFDB_CFLAGS |
897 | CONFDB_LIBS | |
898 | CPG_CFLAGS | |
a946372e AK |
899 | CPG_LIBS |
900 | DLM_CFLAGS | |
90c80887 AK |
901 | DLM_LIBS |
902 | SACKPT_CFLAGS | |
903 | SACKPT_LIBS' | |
7a197a62 | 904 | |
795ca3e5 AK |
905 | |
906 | # Initialize some variables set by options. | |
ad6254c5 AK |
907 | ac_init_help= |
908 | ac_init_version=false | |
ec6a6fbe AK |
909 | ac_unrecognized_opts= |
910 | ac_unrecognized_sep= | |
795ca3e5 AK |
911 | # The variables have the same names as the options, with |
912 | # dashes changed to underlines. | |
ad6254c5 | 913 | cache_file=/dev/null |
795ca3e5 | 914 | exec_prefix=NONE |
795ca3e5 | 915 | no_create= |
795ca3e5 AK |
916 | no_recursion= |
917 | prefix=NONE | |
918 | program_prefix=NONE | |
919 | program_suffix=NONE | |
920 | program_transform_name=s,x,x, | |
921 | silent= | |
922 | site= | |
923 | srcdir= | |
795ca3e5 AK |
924 | verbose= |
925 | x_includes=NONE | |
926 | x_libraries=NONE | |
ad6254c5 AK |
927 | |
928 | # Installation directory options. | |
929 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
930 | # and all the variables that are supposed to be based on exec_prefix | |
931 | # by default will actually change. | |
932 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 933 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
934 | bindir='${exec_prefix}/bin' |
935 | sbindir='${exec_prefix}/sbin' | |
936 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
937 | datarootdir='${prefix}/share' |
938 | datadir='${datarootdir}' | |
795ca3e5 AK |
939 | sysconfdir='${prefix}/etc' |
940 | sharedstatedir='${prefix}/com' | |
941 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
942 | includedir='${prefix}/include' |
943 | oldincludedir='/usr/include' | |
7a197a62 AK |
944 | docdir='${datarootdir}/doc/${PACKAGE}' |
945 | infodir='${datarootdir}/info' | |
946 | htmldir='${docdir}' | |
947 | dvidir='${docdir}' | |
948 | pdfdir='${docdir}' | |
949 | psdir='${docdir}' | |
950 | libdir='${exec_prefix}/lib' | |
951 | localedir='${datarootdir}/locale' | |
952 | mandir='${datarootdir}/man' | |
795ca3e5 | 953 | |
795ca3e5 | 954 | ac_prev= |
7a197a62 | 955 | ac_dashdash= |
795ca3e5 AK |
956 | for ac_option |
957 | do | |
795ca3e5 AK |
958 | # If the previous option needs an argument, assign it. |
959 | if test -n "$ac_prev"; then | |
7a197a62 | 960 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
961 | ac_prev= |
962 | continue | |
963 | fi | |
964 | ||
7a197a62 AK |
965 | case $ac_option in |
966 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
967 | *) ac_optarg=yes ;; | |
968 | esac | |
795ca3e5 AK |
969 | |
970 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
971 | ||
7a197a62 AK |
972 | case $ac_dashdash$ac_option in |
973 | --) | |
974 | ac_dashdash=yes ;; | |
795ca3e5 AK |
975 | |
976 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
977 | ac_prev=bindir ;; | |
978 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 979 | bindir=$ac_optarg ;; |
795ca3e5 AK |
980 | |
981 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 982 | ac_prev=build_alias ;; |
795ca3e5 | 983 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 984 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
985 | |
986 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
987 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
988 | ac_prev=cache_file ;; | |
989 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
990 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
991 | cache_file=$ac_optarg ;; |
992 | ||
993 | --config-cache | -C) | |
994 | cache_file=config.cache ;; | |
795ca3e5 | 995 | |
7a197a62 | 996 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 997 | ac_prev=datadir ;; |
7a197a62 | 998 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 999 | datadir=$ac_optarg ;; |
795ca3e5 | 1000 | |
7a197a62 AK |
1001 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1002 | | --dataroo | --dataro | --datar) | |
1003 | ac_prev=datarootdir ;; | |
1004 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1005 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1006 | datarootdir=$ac_optarg ;; | |
1007 | ||
795ca3e5 | 1008 | -disable-* | --disable-*) |
ec6a6fbe | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1010 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1012 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1013 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1014 | ac_useropt_orig=$ac_useropt |
1015 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1016 | case $ac_user_opts in | |
1017 | *" | |
1018 | "enable_$ac_useropt" | |
1019 | "*) ;; | |
1020 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1021 | ac_unrecognized_sep=', ';; | |
1022 | esac | |
1023 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1024 | |
1025 | -docdir | --docdir | --docdi | --doc | --do) | |
1026 | ac_prev=docdir ;; | |
1027 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1028 | docdir=$ac_optarg ;; | |
1029 | ||
1030 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1031 | ac_prev=dvidir ;; | |
1032 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1033 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1034 | |
1035 | -enable-* | --enable-*) | |
ec6a6fbe | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1037 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1039 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1040 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1041 | ac_useropt_orig=$ac_useropt |
1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1043 | case $ac_user_opts in | |
1044 | *" | |
1045 | "enable_$ac_useropt" | |
1046 | "*) ;; | |
1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1048 | ac_unrecognized_sep=', ';; | |
1049 | esac | |
1050 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1051 | |
1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1054 | | --exec | --exe | --ex) | |
1055 | ac_prev=exec_prefix ;; | |
1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1058 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1059 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1060 | |
1061 | -gas | --gas | --ga | --g) | |
1062 | # Obsolete; use --with-gas. | |
1063 | with_gas=yes ;; | |
1064 | ||
ad6254c5 AK |
1065 | -help | --help | --hel | --he | -h) |
1066 | ac_init_help=long ;; | |
1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1068 | ac_init_help=recursive ;; | |
1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1070 | ac_init_help=short ;; | |
795ca3e5 AK |
1071 | |
1072 | -host | --host | --hos | --ho) | |
ad6254c5 | 1073 | ac_prev=host_alias ;; |
795ca3e5 | 1074 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1075 | host_alias=$ac_optarg ;; |
795ca3e5 | 1076 | |
7a197a62 AK |
1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1078 | ac_prev=htmldir ;; | |
1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1080 | | --ht=*) | |
1081 | htmldir=$ac_optarg ;; | |
1082 | ||
795ca3e5 AK |
1083 | -includedir | --includedir | --includedi | --included | --include \ |
1084 | | --includ | --inclu | --incl | --inc) | |
1085 | ac_prev=includedir ;; | |
1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1088 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1089 | |
1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1091 | ac_prev=infodir ;; | |
1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1093 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1094 | |
1095 | -libdir | --libdir | --libdi | --libd) | |
1096 | ac_prev=libdir ;; | |
1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1098 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1099 | |
1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1101 | | --libexe | --libex | --libe) | |
1102 | ac_prev=libexecdir ;; | |
1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1104 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1105 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1106 | |
7a197a62 AK |
1107 | -localedir | --localedir | --localedi | --localed | --locale) |
1108 | ac_prev=localedir ;; | |
1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1110 | localedir=$ac_optarg ;; | |
1111 | ||
795ca3e5 | 1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1113 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1114 | ac_prev=localstatedir ;; |
1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1117 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1118 | |
1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1120 | ac_prev=mandir ;; | |
1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1122 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1123 | |
1124 | -nfp | --nfp | --nf) | |
1125 | # Obsolete; use --without-fp. | |
1126 | with_fp=no ;; | |
1127 | ||
1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1129 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1130 | no_create=yes ;; |
1131 | ||
1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1134 | no_recursion=yes ;; | |
1135 | ||
1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1138 | | --oldin | --oldi | --old | --ol | --o) | |
1139 | ac_prev=oldincludedir ;; | |
1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1143 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1144 | |
1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1146 | ac_prev=prefix ;; | |
1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1148 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1149 | |
1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1151 | | --program-pre | --program-pr | --program-p) | |
1152 | ac_prev=program_prefix ;; | |
1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1155 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1156 | |
1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1158 | | --program-suf | --program-su | --program-s) | |
1159 | ac_prev=program_suffix ;; | |
1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1162 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1163 | |
1164 | -program-transform-name | --program-transform-name \ | |
1165 | | --program-transform-nam | --program-transform-na \ | |
1166 | | --program-transform-n | --program-transform- \ | |
1167 | | --program-transform | --program-transfor \ | |
1168 | | --program-transfo | --program-transf \ | |
1169 | | --program-trans | --program-tran \ | |
1170 | | --progr-tra | --program-tr | --program-t) | |
1171 | ac_prev=program_transform_name ;; | |
1172 | -program-transform-name=* | --program-transform-name=* \ | |
1173 | | --program-transform-nam=* | --program-transform-na=* \ | |
1174 | | --program-transform-n=* | --program-transform-=* \ | |
1175 | | --program-transform=* | --program-transfor=* \ | |
1176 | | --program-transfo=* | --program-transf=* \ | |
1177 | | --program-trans=* | --program-tran=* \ | |
1178 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1179 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1180 | |
7a197a62 AK |
1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1182 | ac_prev=pdfdir ;; | |
1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1184 | pdfdir=$ac_optarg ;; | |
1185 | ||
1186 | -psdir | --psdir | --psdi | --psd | --ps) | |
1187 | ac_prev=psdir ;; | |
1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1189 | psdir=$ac_optarg ;; | |
1190 | ||
795ca3e5 AK |
1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1192 | | -silent | --silent | --silen | --sile | --sil) | |
1193 | silent=yes ;; | |
1194 | ||
1195 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1196 | ac_prev=sbindir ;; | |
1197 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1198 | | --sbi=* | --sb=*) | |
ad6254c5 | 1199 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1202 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1203 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1204 | | --sha | --sh) | |
1205 | ac_prev=sharedstatedir ;; | |
1206 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1207 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1208 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1209 | | --sha=* | --sh=*) | |
ad6254c5 | 1210 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1211 | |
1212 | -site | --site | --sit) | |
1213 | ac_prev=site ;; | |
1214 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1215 | site=$ac_optarg ;; |
795ca3e5 AK |
1216 | |
1217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1218 | ac_prev=srcdir ;; | |
1219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1220 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1221 | |
1222 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1223 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1224 | ac_prev=sysconfdir ;; | |
1225 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1226 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1227 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1228 | |
1229 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1230 | ac_prev=target_alias ;; |
795ca3e5 | 1231 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1232 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1233 | |
1234 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1235 | verbose=yes ;; | |
1236 | ||
ad6254c5 AK |
1237 | -version | --version | --versio | --versi | --vers | -V) |
1238 | ac_init_version=: ;; | |
795ca3e5 AK |
1239 | |
1240 | -with-* | --with-*) | |
ec6a6fbe | 1241 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1242 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1243 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1244 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1245 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1246 | ac_useropt_orig=$ac_useropt |
1247 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1248 | case $ac_user_opts in | |
1249 | *" | |
1250 | "with_$ac_useropt" | |
1251 | "*) ;; | |
1252 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1253 | ac_unrecognized_sep=', ';; | |
1254 | esac | |
1255 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1256 | |
1257 | -without-* | --without-*) | |
ec6a6fbe | 1258 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1259 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1260 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1261 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1262 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1263 | ac_useropt_orig=$ac_useropt |
1264 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1265 | case $ac_user_opts in | |
1266 | *" | |
1267 | "with_$ac_useropt" | |
1268 | "*) ;; | |
1269 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1270 | ac_unrecognized_sep=', ';; | |
1271 | esac | |
1272 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1273 | |
1274 | --x) | |
1275 | # Obsolete; use --with-x. | |
1276 | with_x=yes ;; | |
1277 | ||
1278 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1279 | | --x-incl | --x-inc | --x-in | --x-i) | |
1280 | ac_prev=x_includes ;; | |
1281 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1282 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1283 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1284 | |
1285 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1286 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1287 | ac_prev=x_libraries ;; | |
1288 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1289 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1290 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1291 | |
ec6a6fbe | 1292 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1293 | Try \`$0 --help' for more information." >&2 |
1294 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1295 | ;; |
1296 | ||
ad6254c5 AK |
1297 | *=*) |
1298 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1299 | # Reject names that are not valid shell variable names. | |
1300 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1301 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1302 | { (exit 1); exit 1; }; } |
7a197a62 | 1303 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1304 | export $ac_envvar ;; |
1305 | ||
795ca3e5 | 1306 | *) |
ad6254c5 | 1307 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1308 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1309 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1310 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1311 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1312 | ;; |
1313 | ||
1314 | esac | |
1315 | done | |
1316 | ||
1317 | if test -n "$ac_prev"; then | |
ad6254c5 | 1318 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1319 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1320 | { (exit 1); exit 1; }; } |
795ca3e5 | 1321 | fi |
795ca3e5 | 1322 | |
ec6a6fbe AK |
1323 | if test -n "$ac_unrecognized_opts"; then |
1324 | case $enable_option_checking in | |
1325 | no) ;; | |
1326 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1327 | { (exit 1); exit 1; }; } ;; | |
1328 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1329 | esac | |
1330 | fi | |
1331 | ||
1332 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1333 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1334 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1335 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1336 | libdir localedir mandir | |
795ca3e5 | 1337 | do |
7a197a62 | 1338 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1339 | # Remove trailing slashes. |
1340 | case $ac_val in | |
1341 | */ ) | |
1342 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1343 | eval $ac_var=\$ac_val;; | |
1344 | esac | |
1345 | # Be sure to have absolute directory names. | |
ad6254c5 | 1346 | case $ac_val in |
7a197a62 AK |
1347 | [\\/$]* | ?:[\\/]* ) continue;; |
1348 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1349 | esac |
ec6a6fbe | 1350 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1351 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1352 | done |
1353 | ||
ad6254c5 AK |
1354 | # There might be people who depend on the old broken behavior: `$host' |
1355 | # used to hold the argument of --host etc. | |
1356 | # FIXME: To remove some day. | |
1357 | build=$build_alias | |
1358 | host=$host_alias | |
1359 | target=$target_alias | |
1360 | ||
1361 | # FIXME: To remove some day. | |
1362 | if test "x$host_alias" != x; then | |
1363 | if test "x$build_alias" = x; then | |
1364 | cross_compiling=maybe | |
ec6a6fbe | 1365 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1366 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1367 | elif test "x$build_alias" != "x$host_alias"; then | |
1368 | cross_compiling=yes | |
1369 | fi | |
1370 | fi | |
8106cdd5 | 1371 | |
ad6254c5 AK |
1372 | ac_tool_prefix= |
1373 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1374 | ||
1375 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1376 | |
795ca3e5 | 1377 | |
7a197a62 AK |
1378 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1379 | ac_ls_di=`ls -di .` && | |
1380 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1381 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1382 | { (exit 1); exit 1; }; } |
1383 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1384 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1385 | { (exit 1); exit 1; }; } |
1386 | ||
1387 | ||
795ca3e5 AK |
1388 | # Find the source files, if location was not specified. |
1389 | if test -z "$srcdir"; then | |
1390 | ac_srcdir_defaulted=yes | |
7a197a62 | 1391 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1392 | ac_confdir=`$as_dirname -- "$as_myself" || |
1393 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1394 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1395 | X"$as_myself" : 'X\(//\)$' \| \ | |
1396 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1397 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\/\)[^/].*/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | /^X\(\/\/\)$/{ | |
1407 | s//\1/ | |
1408 | q | |
1409 | } | |
1410 | /^X\(\/\).*/{ | |
1411 | s//\1/ | |
1412 | q | |
1413 | } | |
1414 | s/.*/./; q'` | |
795ca3e5 | 1415 | srcdir=$ac_confdir |
7a197a62 | 1416 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1417 | srcdir=.. |
1418 | fi | |
1419 | else | |
1420 | ac_srcdir_defaulted=no | |
1421 | fi | |
7a197a62 AK |
1422 | if test ! -r "$srcdir/$ac_unique_file"; then |
1423 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1424 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1425 | { (exit 1); exit 1; }; } |
795ca3e5 | 1426 | fi |
7a197a62 AK |
1427 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1428 | ac_abs_confdir=`( | |
ec6a6fbe | 1429 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1430 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1431 | pwd)` |
1432 | # When building in place, set srcdir=. | |
1433 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1434 | srcdir=. | |
1435 | fi | |
1436 | # Remove unnecessary trailing slashes from srcdir. | |
1437 | # Double slashes in file names in object file debugging info | |
1438 | # mess up M-x gdb in Emacs. | |
1439 | case $srcdir in | |
1440 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1441 | esac | |
1442 | for ac_var in $ac_precious_vars; do | |
1443 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1444 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1445 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1446 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1447 | done | |
ad6254c5 AK |
1448 | |
1449 | # | |
1450 | # Report the --help message. | |
1451 | # | |
1452 | if test "$ac_init_help" = "long"; then | |
1453 | # Omit some internal or obsolete options to make the list less imposing. | |
1454 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1455 | cat <<_ACEOF | |
1456 | \`configure' configures this package to adapt to many kinds of systems. | |
1457 | ||
1458 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1459 | ||
1460 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1461 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1462 | ||
1463 | Defaults for the options are specified in brackets. | |
1464 | ||
1465 | Configuration: | |
1466 | -h, --help display this help and exit | |
1467 | --help=short display options specific to this package | |
1468 | --help=recursive display the short help of all the included packages | |
1469 | -V, --version display version information and exit | |
1470 | -q, --quiet, --silent do not print \`checking...' messages | |
1471 | --cache-file=FILE cache test results in FILE [disabled] | |
1472 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1473 | -n, --no-create do not create output files | |
1474 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1475 | ||
ad6254c5 AK |
1476 | Installation directories: |
1477 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1478 | [$ac_default_prefix] |
ad6254c5 | 1479 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1480 | [PREFIX] |
ad6254c5 AK |
1481 | |
1482 | By default, \`make install' will install all the files in | |
1483 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1484 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1485 | for instance \`--prefix=\$HOME'. | |
1486 | ||
1487 | For better control, use the options below. | |
1488 | ||
1489 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1490 | --bindir=DIR user executables [EPREFIX/bin] |
1491 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1492 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1493 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1494 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1495 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1496 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1497 | --includedir=DIR C header files [PREFIX/include] | |
1498 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1499 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1500 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1501 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1502 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1503 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1504 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1505 | --htmldir=DIR html documentation [DOCDIR] | |
1506 | --dvidir=DIR dvi documentation [DOCDIR] | |
1507 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1508 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1509 | _ACEOF |
1510 | ||
1511 | cat <<\_ACEOF | |
1512 | ||
1513 | System types: | |
1514 | --build=BUILD configure for building on BUILD [guessed] | |
1515 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1516 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1517 | _ACEOF | |
1518 | fi | |
1519 | ||
1520 | if test -n "$ac_init_help"; then | |
1521 | ||
1522 | cat <<\_ACEOF | |
1523 | ||
1524 | Optional Features: | |
ec6a6fbe | 1525 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1526 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1527 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1528 | --enable-static_link Use this to link the tools to their libraries |
1529 | statically. Default is dynamic linking | |
ad6254c5 AK |
1530 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1531 | device-mapper is missing from the kernel | |
1b523347 | 1532 | --disable-readline Disable readline support |
89044bc0 | 1533 | --enable-realtime Enable realtime clock support |
66fd4529 | 1534 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1535 | --enable-debug Enable debugging |
5556819a | 1536 | --enable-profiling Gather gcov profiling data |
93bd259b | 1537 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1538 | --enable-udev_sync Enable synchronisation with udev processing |
1539 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1540 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1541 | --enable-units-compat Enable output compatibility with old versions that |
1542 | that don't use KiB-style unit suffixes | |
93bd259b | 1543 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1544 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1545 | --enable-applib Build application library |
ad6254c5 | 1546 | --enable-cmdlib Build shared command library |
93bd259b | 1547 | --enable-pkgconfig Install pkgconfig support |
23b059e7 | 1548 | --enable-write_install Install user writable files |
c9274524 | 1549 | --disable-fsadm Disable fsadm |
15d91f5a | 1550 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1551 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1552 | --enable-nls Enable Native Language Support |
1553 | ||
1554 | Optional Packages: | |
1555 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1556 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1557 | --with-user=USER Set the owner of installed files [USER=] |
1558 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1559 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1560 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1561 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1562 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1563 | TYPE=internal | |
1564 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1565 | TYPE=internal | |
1566 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1567 | TYPE=internal | |
1568 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1569 | TYPE=internal | |
1570 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1571 | TYPE=internal | |
8fea97b7 | 1572 | --with-replicators=TYPE Replicator support: internal/shared/none TYPE=none |
a946372e | 1573 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1574 | The following cluster manager combinations are valid: |
a946372e AK |
1575 | * cman,gulm (RHEL4 or equivalent) |
1576 | * cman (RHEL5 or equivalent) | |
1577 | * cman,corosync,openais (or selection of them) | |
1091650a | 1578 | * singlenode (localhost only) |
a946372e AK |
1579 | * all (autodetect) |
1580 | * none (disable build) | |
a266258f | 1581 | TYPE=none |
66fd4529 | 1582 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1583 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1584 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1585 | --with-confdir=DIR Configuration files in DIR [/etc] |
1586 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1587 | --with-usrlibdir=DIR |
1588 | --with-usrsbindir=DIR | |
a5f46f6a | 1589 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1590 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1591 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1592 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
3399ae32 AK |
1593 | --with-default-system-dir=DIR Default LVM system directory [/etc/lvm] |
1594 | --with-default-archive-subdir=SUBDIR Default metadata archive subdir [archive] | |
1595 | --with-default-backup-subdir=SUBDIR Default metadata backup subdir [backup] | |
1596 | --with-default-cache-subdir=SUBDIR Default metadata cache subdir [cache] | |
1597 | --with-default-locking-dir=DIR Default locking directory [/var/lock/lvm] | |
93bd259b | 1598 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1599 | |
1600 | Some influential environment variables: | |
1601 | CC C compiler command | |
1602 | CFLAGS C compiler flags | |
1603 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1604 | nonstandard directory <lib dir> | |
25fbec5b | 1605 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1606 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1607 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1608 | CPP C preprocessor |
e2997b73 | 1609 | PKG_CONFIG path to pkg-config utility |
b5c2529b ZK |
1610 | PKG_CONFIG_PATH |
1611 | directories to add to pkg-config's search path | |
1612 | PKG_CONFIG_LIBDIR | |
1613 | path overriding pkg-config's built-in search path | |
a946372e AK |
1614 | PKGCONFIGINIT_CFLAGS |
1615 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1616 | PKGCONFIGINIT_LIBS | |
1617 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1618 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1619 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1620 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1621 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1622 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1623 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1624 | COROSYNC_CFLAGS | |
1625 | C compiler flags for COROSYNC, overriding pkg-config | |
1626 | COROSYNC_LIBS | |
1627 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1628 | QUORUM_CFLAGS |
1629 | C compiler flags for QUORUM, overriding pkg-config | |
1630 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1631 | SALCK_CFLAGS |
1632 | C compiler flags for SALCK, overriding pkg-config | |
1633 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1634 | CONFDB_CFLAGS |
1635 | C compiler flags for CONFDB, overriding pkg-config | |
1636 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1637 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1638 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1639 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1640 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1641 | SACKPT_CFLAGS |
1642 | C compiler flags for SACKPT, overriding pkg-config | |
1643 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1644 | |
1645 | Use these variables to override the choices made by `configure' or to help | |
1646 | it to find libraries and programs with nonstandard names/locations. | |
1647 | ||
1648 | _ACEOF | |
7a197a62 | 1649 | ac_status=$? |
ad6254c5 AK |
1650 | fi |
1651 | ||
1652 | if test "$ac_init_help" = "recursive"; then | |
1653 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1654 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1655 | test -d "$ac_dir" || |
1656 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1657 | continue | |
ad6254c5 AK |
1658 | ac_builddir=. |
1659 | ||
7a197a62 AK |
1660 | case "$ac_dir" in |
1661 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1662 | *) | |
ec6a6fbe | 1663 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1664 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1665 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1666 | case $ac_top_builddir_sub in |
1667 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1668 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1669 | esac ;; | |
1670 | esac | |
1671 | ac_abs_top_builddir=$ac_pwd | |
1672 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1673 | # for backward compatibility: | |
1674 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1675 | |
1676 | case $srcdir in | |
7a197a62 | 1677 | .) # We are building in place. |
ad6254c5 | 1678 | ac_srcdir=. |
7a197a62 AK |
1679 | ac_top_srcdir=$ac_top_builddir_sub |
1680 | ac_abs_top_srcdir=$ac_pwd ;; | |
1681 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1682 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1683 | ac_top_srcdir=$srcdir |
1684 | ac_abs_top_srcdir=$srcdir ;; | |
1685 | *) # Relative name. | |
1686 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1687 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1688 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1689 | esac |
7a197a62 AK |
1690 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1691 | ||
1692 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1693 | # Check for guested configure. | |
1694 | if test -f "$ac_srcdir/configure.gnu"; then | |
1695 | echo && | |
1696 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1697 | elif test -f "$ac_srcdir/configure"; then | |
1698 | echo && | |
1699 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1700 | else |
ec6a6fbe | 1701 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1702 | fi || ac_status=$? |
1703 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1704 | done |
1705 | fi | |
1706 | ||
7a197a62 | 1707 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1708 | if $ac_init_version; then |
1709 | cat <<\_ACEOF | |
7a197a62 | 1710 | configure |
ec6a6fbe | 1711 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1712 | |
7a197a62 | 1713 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1714 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1715 | This configure script is free software; the Free Software Foundation |
1716 | gives unlimited permission to copy, distribute and modify it. | |
1717 | _ACEOF | |
7a197a62 | 1718 | exit |
ad6254c5 | 1719 | fi |
7a197a62 | 1720 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1721 | This file contains any messages produced by compilers while |
1722 | running configure, to aid debugging if configure makes a mistake. | |
1723 | ||
1724 | It was created by $as_me, which was | |
ec6a6fbe | 1725 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1726 | |
1727 | $ $0 $@ | |
1728 | ||
1729 | _ACEOF | |
7a197a62 | 1730 | exec 5>>config.log |
ad6254c5 AK |
1731 | { |
1732 | cat <<_ASUNAME | |
1733 | ## --------- ## | |
1734 | ## Platform. ## | |
1735 | ## --------- ## | |
1736 | ||
1737 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1738 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1739 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1740 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1741 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1742 | ||
1743 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1744 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1745 | ||
1746 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1747 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1748 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1749 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1750 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1751 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1752 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1753 | ||
1754 | _ASUNAME | |
1755 | ||
1756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1757 | for as_dir in $PATH | |
1758 | do | |
1759 | IFS=$as_save_IFS | |
1760 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1761 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1762 | done |
7a197a62 | 1763 | IFS=$as_save_IFS |
ad6254c5 AK |
1764 | |
1765 | } >&5 | |
1766 | ||
1767 | cat >&5 <<_ACEOF | |
1768 | ||
1769 | ||
1770 | ## ----------- ## | |
1771 | ## Core tests. ## | |
1772 | ## ----------- ## | |
1773 | ||
1774 | _ACEOF | |
1775 | ||
1776 | ||
1777 | # Keep a trace of the command line. | |
1778 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1779 | # Strip out --silent because we don't want to record it for future runs. | |
1780 | # Also quote any args containing shell meta-characters. | |
1781 | # Make two passes to allow for proper duplicate-argument suppression. | |
1782 | ac_configure_args= | |
1783 | ac_configure_args0= | |
1784 | ac_configure_args1= | |
ad6254c5 AK |
1785 | ac_must_keep_next=false |
1786 | for ac_pass in 1 2 | |
1787 | do | |
1788 | for ac_arg | |
1789 | do | |
1790 | case $ac_arg in | |
1791 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1792 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1793 | | -silent | --silent | --silen | --sile | --sil) | |
1794 | continue ;; | |
7a197a62 | 1795 | *\'*) |
ec6a6fbe | 1796 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1797 | esac |
1798 | case $ac_pass in | |
1799 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1800 | 2) | |
1801 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1802 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1803 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1804 | else |
8a2fc586 AK |
1805 | case $ac_arg in |
1806 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1807 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1808 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1809 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1810 | case "$ac_configure_args0 " in | |
1811 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1812 | esac | |
1813 | ;; | |
1814 | -* ) ac_must_keep_next=true ;; | |
1815 | esac | |
ad6254c5 | 1816 | fi |
7a197a62 | 1817 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1818 | ;; |
1819 | esac | |
1820 | done | |
1821 | done | |
1822 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1823 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1824 | ||
1825 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1826 | # config.log. We remove comments because anyway the quotes in there | |
1827 | # would cause problems or look ugly. | |
7a197a62 AK |
1828 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1829 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1830 | trap 'exit_status=$? |
1831 | # Save into config.log some information that might help in debugging. | |
1832 | { | |
1833 | echo | |
1834 | ||
1835 | cat <<\_ASBOX | |
1836 | ## ---------------- ## | |
1837 | ## Cache variables. ## | |
1838 | ## ---------------- ## | |
1839 | _ASBOX | |
1840 | echo | |
1841 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1842 | ( |
1843 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1844 | eval ac_val=\$$ac_var | |
1845 | case $ac_val in #( | |
1846 | *${as_nl}*) | |
1847 | case $ac_var in #( | |
ec6a6fbe AK |
1848 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1849 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1850 | esac |
1851 | case $ac_var in #( | |
1852 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1853 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1854 | *) $as_unset $ac_var ;; |
1855 | esac ;; | |
1856 | esac | |
1857 | done | |
ad6254c5 | 1858 | (set) 2>&1 | |
7a197a62 AK |
1859 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1860 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1861 | sed -n \ |
7a197a62 AK |
1862 | "s/'\''/'\''\\\\'\'''\''/g; |
1863 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1864 | ;; #( | |
ad6254c5 | 1865 | *) |
7a197a62 | 1866 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1867 | ;; |
7a197a62 AK |
1868 | esac | |
1869 | sort | |
1870 | ) | |
ad6254c5 AK |
1871 | echo |
1872 | ||
1873 | cat <<\_ASBOX | |
1874 | ## ----------------- ## | |
1875 | ## Output variables. ## | |
1876 | ## ----------------- ## | |
1877 | _ASBOX | |
1878 | echo | |
1879 | for ac_var in $ac_subst_vars | |
1880 | do | |
7a197a62 AK |
1881 | eval ac_val=\$$ac_var |
1882 | case $ac_val in | |
ec6a6fbe | 1883 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1884 | esac |
ec6a6fbe | 1885 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1886 | done | sort |
1887 | echo | |
1888 | ||
1889 | if test -n "$ac_subst_files"; then | |
1890 | cat <<\_ASBOX | |
7a197a62 AK |
1891 | ## ------------------- ## |
1892 | ## File substitutions. ## | |
1893 | ## ------------------- ## | |
ad6254c5 AK |
1894 | _ASBOX |
1895 | echo | |
1896 | for ac_var in $ac_subst_files | |
1897 | do | |
7a197a62 AK |
1898 | eval ac_val=\$$ac_var |
1899 | case $ac_val in | |
ec6a6fbe | 1900 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1901 | esac |
ec6a6fbe | 1902 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1903 | done | sort |
1904 | echo | |
1905 | fi | |
1906 | ||
1907 | if test -s confdefs.h; then | |
1908 | cat <<\_ASBOX | |
1909 | ## ----------- ## | |
1910 | ## confdefs.h. ## | |
1911 | ## ----------- ## | |
1912 | _ASBOX | |
1913 | echo | |
7a197a62 | 1914 | cat confdefs.h |
ad6254c5 AK |
1915 | echo |
1916 | fi | |
1917 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1918 | $as_echo "$as_me: caught signal $ac_signal" |
1919 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1920 | } >&5 |
7a197a62 AK |
1921 | rm -f core *.core core.conftest.* && |
1922 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1923 | exit $exit_status |
7a197a62 | 1924 | ' 0 |
ad6254c5 AK |
1925 | for ac_signal in 1 2 13 15; do |
1926 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1927 | done | |
1928 | ac_signal=0 | |
1929 | ||
1930 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1931 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1932 | |
1933 | # Predefined preprocessor variables. | |
1934 | ||
1935 | cat >>confdefs.h <<_ACEOF | |
1936 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1937 | _ACEOF | |
1938 | ||
1939 | ||
1940 | cat >>confdefs.h <<_ACEOF | |
1941 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1942 | _ACEOF | |
1943 | ||
1944 | ||
1945 | cat >>confdefs.h <<_ACEOF | |
1946 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1947 | _ACEOF | |
8106cdd5 | 1948 | |
ad6254c5 AK |
1949 | |
1950 | cat >>confdefs.h <<_ACEOF | |
1951 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1952 | _ACEOF | |
1953 | ||
1954 | ||
1955 | cat >>confdefs.h <<_ACEOF | |
1956 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1957 | _ACEOF | |
1958 | ||
1959 | ||
1960 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1961 | # Prefer an explicitly selected file to automatically selected ones. |
1962 | ac_site_file1=NONE | |
1963 | ac_site_file2=NONE | |
7a197a62 | 1964 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1965 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1966 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1967 | ac_site_file1=$prefix/share/config.site |
1968 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1969 | else |
ec6a6fbe AK |
1970 | ac_site_file1=$ac_default_prefix/share/config.site |
1971 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1972 | fi |
ec6a6fbe | 1973 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1974 | do |
ec6a6fbe | 1975 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1976 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1977 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1978 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1979 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1980 | . "$ac_site_file" |
1981 | fi | |
1982 | done | |
1983 | ||
1984 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1985 | # Some versions of bash will fail to source /dev/null (special |
1986 | # files actually), so we avoid doing that. | |
1987 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1988 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1989 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1990 | case $cache_file in |
7a197a62 AK |
1991 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1992 | *) . "./$cache_file";; | |
ad6254c5 AK |
1993 | esac |
1994 | fi | |
795ca3e5 | 1995 | else |
ec6a6fbe AK |
1996 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1997 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1998 | >$cache_file |
1999 | fi | |
2000 | ||
2001 | # Check that the precious variables saved in the cache have kept the same | |
2002 | # value. | |
2003 | ac_cache_corrupted=false | |
7a197a62 | 2004 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2005 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2006 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2007 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2008 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2009 | case $ac_old_set,$ac_new_set in |
2010 | set,) | |
ec6a6fbe AK |
2011 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2012 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2013 | ac_cache_corrupted=: ;; |
2014 | ,set) | |
ec6a6fbe AK |
2015 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2016 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2017 | ac_cache_corrupted=: ;; |
2018 | ,);; | |
2019 | *) | |
2020 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2021 | # differences in whitespace do not lead to failure. |
2022 | ac_old_val_w=`echo x $ac_old_val` | |
2023 | ac_new_val_w=`echo x $ac_new_val` | |
2024 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2025 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2026 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2027 | ac_cache_corrupted=: | |
2028 | else | |
2029 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2030 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2031 | eval $ac_var=\$ac_old_val | |
2032 | fi | |
2033 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2034 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2035 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2036 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2037 | fi;; |
2038 | esac | |
2039 | # Pass precious variables to config.status. | |
2040 | if test "$ac_new_set" = set; then | |
2041 | case $ac_new_val in | |
ec6a6fbe | 2042 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2043 | *) ac_arg=$ac_var=$ac_new_val ;; |
2044 | esac | |
2045 | case " $ac_configure_args " in | |
2046 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2047 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2048 | esac | |
2049 | fi | |
2050 | done | |
2051 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2052 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2053 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2054 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2055 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2056 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2057 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2058 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2059 | fi |
2060 | ||
ad6254c5 AK |
2061 | |
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | ||
2071 | ||
2072 | ||
2073 | ||
2074 | ||
2075 | ||
2076 | ||
7a197a62 AK |
2077 | ac_ext=c |
2078 | ac_cpp='$CPP $CPPFLAGS' | |
2079 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2080 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2081 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2082 | |
795ca3e5 AK |
2083 | |
2084 | ||
7a197a62 | 2085 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2086 | |
2087 | ||
80992638 | 2088 | ################################################################################ |
795ca3e5 | 2089 | ac_aux_dir= |
7a197a62 AK |
2090 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2091 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2092 | ac_aux_dir=$ac_dir |
2093 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2094 | break | |
7a197a62 | 2095 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2096 | ac_aux_dir=$ac_dir |
2097 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2098 | break | |
7a197a62 | 2099 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2100 | ac_aux_dir=$ac_dir |
2101 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2102 | break | |
795ca3e5 AK |
2103 | fi |
2104 | done | |
2105 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2106 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2107 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2108 | { (exit 1); exit 1; }; } |
795ca3e5 | 2109 | fi |
7a197a62 AK |
2110 | |
2111 | # These three variables are undocumented and unsupported, | |
2112 | # and are intended to be withdrawn in a future Autoconf release. | |
2113 | # They can cause serious problems if a builder's source tree is in a directory | |
2114 | # whose full name contains unusual characters. | |
2115 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2116 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2117 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2118 | ||
8ce0cbda AK |
2119 | |
2120 | ||
ad6254c5 | 2121 | ################################################################################ |
8ce0cbda | 2122 | # Make sure we can run config.sub. |
7a197a62 | 2123 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2124 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2125 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2126 | { (exit 1); exit 1; }; } |
2127 | ||
ec6a6fbe AK |
2128 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2129 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2130 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2131 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2132 | else |
7a197a62 AK |
2133 | ac_build_alias=$build_alias |
2134 | test "x$ac_build_alias" = x && | |
2135 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2136 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2137 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2138 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2139 | { (exit 1); exit 1; }; } |
7a197a62 | 2140 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2141 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2142 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2143 | { (exit 1); exit 1; }; } |
2144 | ||
2145 | fi | |
ec6a6fbe AK |
2146 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2147 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2148 | case $ac_cv_build in |
2149 | *-*-*) ;; | |
ec6a6fbe AK |
2150 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2151 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2152 | { (exit 1); exit 1; }; };; |
2153 | esac | |
ad6254c5 | 2154 | build=$ac_cv_build |
7a197a62 AK |
2155 | ac_save_IFS=$IFS; IFS='-' |
2156 | set x $ac_cv_build | |
2157 | shift | |
2158 | build_cpu=$1 | |
2159 | build_vendor=$2 | |
2160 | shift; shift | |
2161 | # Remember, the first character of IFS is used to create $*, | |
2162 | # except with old shells: | |
2163 | build_os=$* | |
2164 | IFS=$ac_save_IFS | |
2165 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2166 | |
2167 | ||
ec6a6fbe AK |
2168 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2169 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2170 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2171 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2172 | else |
7a197a62 AK |
2173 | if test "x$host_alias" = x; then |
2174 | ac_cv_host=$ac_cv_build | |
2175 | else | |
2176 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2177 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2178 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2179 | { (exit 1); exit 1; }; } |
7a197a62 | 2180 | fi |
ad6254c5 AK |
2181 | |
2182 | fi | |
ec6a6fbe AK |
2183 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2184 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2185 | case $ac_cv_host in |
2186 | *-*-*) ;; | |
ec6a6fbe AK |
2187 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2188 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2189 | { (exit 1); exit 1; }; };; |
2190 | esac | |
ad6254c5 | 2191 | host=$ac_cv_host |
7a197a62 AK |
2192 | ac_save_IFS=$IFS; IFS='-' |
2193 | set x $ac_cv_host | |
2194 | shift | |
2195 | host_cpu=$1 | |
2196 | host_vendor=$2 | |
2197 | shift; shift | |
2198 | # Remember, the first character of IFS is used to create $*, | |
2199 | # except with old shells: | |
2200 | host_os=$* | |
2201 | IFS=$ac_save_IFS | |
2202 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2203 | |
2204 | ||
ec6a6fbe AK |
2205 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2206 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2207 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2208 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2209 | else |
7a197a62 AK |
2210 | if test "x$target_alias" = x; then |
2211 | ac_cv_target=$ac_cv_host | |
2212 | else | |
2213 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2214 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2215 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2216 | { (exit 1); exit 1; }; } |
7a197a62 | 2217 | fi |
8ce0cbda | 2218 | |
ad6254c5 | 2219 | fi |
ec6a6fbe AK |
2220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2221 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2222 | case $ac_cv_target in |
2223 | *-*-*) ;; | |
ec6a6fbe AK |
2224 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2225 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2226 | { (exit 1); exit 1; }; };; |
2227 | esac | |
ad6254c5 | 2228 | target=$ac_cv_target |
7a197a62 AK |
2229 | ac_save_IFS=$IFS; IFS='-' |
2230 | set x $ac_cv_target | |
2231 | shift | |
2232 | target_cpu=$1 | |
2233 | target_vendor=$2 | |
2234 | shift; shift | |
2235 | # Remember, the first character of IFS is used to create $*, | |
2236 | # except with old shells: | |
2237 | target_os=$* | |
2238 | IFS=$ac_save_IFS | |
2239 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2240 | |
8ce0cbda | 2241 | |
ad6254c5 AK |
2242 | # The aliases save the names the user supplied, while $host etc. |
2243 | # will get canonicalized. | |
2244 | test -n "$target_alias" && | |
8ce0cbda AK |
2245 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2246 | NONENONEs,x,x, && | |
2247 | program_prefix=${target_alias}- | |
2248 | ||
8ce0cbda AK |
2249 | case "$host_os" in |
2250 | linux*) | |
7f54ef36 | 2251 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2252 | COPTIMISE_FLAG="-O2" |
2253 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2254 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2255 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2256 | LDDEPS="$LDDEPS .export.sym" | |
2257 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2258 | LIB_SUFFIX=so |
8ce0cbda AK |
2259 | DEVMAPPER=yes |
2260 | ODIRECT=yes | |
d0191583 | 2261 | DM_IOCTLS=yes |
8ce0cbda AK |
2262 | SELINUX=yes |
2263 | CLUSTER=internal | |
93bd259b | 2264 | FSADM=yes |
d0191583 | 2265 | ;; |
8ce0cbda AK |
2266 | darwin*) |
2267 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2268 | COPTIMISE_FLAG="-O2" | |
2269 | CLDFLAGS="$CLDFLAGS" | |
2270 | CLDWHOLEARCHIVE="-all_load" | |
2271 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2272 | LIB_SUFFIX=dylib |
a653923f | 2273 | DEVMAPPER=yes |
8ce0cbda | 2274 | ODIRECT=no |
d0191583 | 2275 | DM_IOCTLS=no |
8ce0cbda AK |
2276 | SELINUX=no |
2277 | CLUSTER=none | |
d0191583 JM |
2278 | FSADM=no |
2279 | ;; | |
8ce0cbda AK |
2280 | esac |
2281 | ||
80992638 | 2282 | ################################################################################ |
ec6a6fbe AK |
2283 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2284 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2285 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2286 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2287 | else |
2288 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2289 | for ac_i in 1 2 3 4 5 6 7; do | |
2290 | ac_script="$ac_script$as_nl$ac_script" | |
2291 | done | |
ec6a6fbe | 2292 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2293 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2294 | if test -z "$SED"; then |
5951ef33 | 2295 | ac_path_SED_found=false |
ec6a6fbe AK |
2296 | # Loop through the user's path and test for each of PROGNAME-LIST |
2297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2298 | for as_dir in $PATH |
2299 | do | |
2300 | IFS=$as_save_IFS | |
2301 | test -z "$as_dir" && as_dir=. | |
2302 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2303 | for ac_exec_ext in '' $ac_executable_extensions; do |
2304 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2305 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2306 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2307 | # Check for GNU $ac_path_SED |
2308 | case `"$ac_path_SED" --version 2>&1` in | |
2309 | *GNU*) | |
2310 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2311 | *) | |
2312 | ac_count=0 | |
ec6a6fbe | 2313 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2314 | while : |
2315 | do | |
2316 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2317 | mv "conftest.tmp" "conftest.in" | |
2318 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2319 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2320 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2321 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2322 | ac_count=`expr $ac_count + 1` | |
2323 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2324 | # Best one so far, save it but keep looking for a better one | |
2325 | ac_cv_path_SED="$ac_path_SED" | |
2326 | ac_path_SED_max=$ac_count | |
2327 | fi | |
2328 | # 10*(2^10) chars as input seems more than enough | |
2329 | test $ac_count -gt 10 && break | |
2330 | done | |
2331 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2332 | esac | |
2333 | ||
ec6a6fbe AK |
2334 | $ac_path_SED_found && break 3 |
2335 | done | |
5951ef33 AK |
2336 | done |
2337 | done | |
5951ef33 | 2338 | IFS=$as_save_IFS |
ec6a6fbe AK |
2339 | if test -z "$ac_cv_path_SED"; then |
2340 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2341 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2342 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2343 | fi |
5951ef33 AK |
2344 | else |
2345 | ac_cv_path_SED=$SED | |
2346 | fi | |
2347 | ||
2348 | fi | |
ec6a6fbe AK |
2349 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2350 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2351 | SED="$ac_cv_path_SED" |
2352 | rm -f conftest.sed | |
2353 | ||
ad6254c5 | 2354 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2355 | do |
ad6254c5 | 2356 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2357 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2358 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2359 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2360 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2361 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2362 | else |
2363 | if test -n "$AWK"; then | |
2364 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2365 | else | |
ad6254c5 AK |
2366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2367 | for as_dir in $PATH | |
2368 | do | |
2369 | IFS=$as_save_IFS | |
2370 | test -z "$as_dir" && as_dir=. | |
2371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2373 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2374 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2375 | break 2 |
2376 | fi | |
2377 | done | |
2378 | done | |
7a197a62 | 2379 | IFS=$as_save_IFS |
ad6254c5 | 2380 | |
795ca3e5 AK |
2381 | fi |
2382 | fi | |
ad6254c5 | 2383 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2384 | if test -n "$AWK"; then |
ec6a6fbe AK |
2385 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2386 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2387 | else |
ec6a6fbe AK |
2388 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2389 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2390 | fi |
2391 | ||
7a197a62 | 2392 | |
ad6254c5 AK |
2393 | test -n "$AWK" && break |
2394 | done | |
2395 | ||
2396 | ac_ext=c | |
2397 | ac_cpp='$CPP $CPPFLAGS' | |
2398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2401 | if test -n "$ac_tool_prefix"; then | |
2402 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2403 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2404 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2405 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2406 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2407 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2408 | else |
2409 | if test -n "$CC"; then | |
2410 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2411 | else | |
2412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2413 | for as_dir in $PATH | |
2414 | do | |
2415 | IFS=$as_save_IFS | |
2416 | test -z "$as_dir" && as_dir=. | |
2417 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2419 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2420 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2421 | break 2 |
2422 | fi | |
2423 | done | |
8106cdd5 | 2424 | done |
7a197a62 | 2425 | IFS=$as_save_IFS |
8106cdd5 | 2426 | |
ad6254c5 AK |
2427 | fi |
2428 | fi | |
2429 | CC=$ac_cv_prog_CC | |
2430 | if test -n "$CC"; then | |
ec6a6fbe AK |
2431 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2432 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2433 | else |
ec6a6fbe AK |
2434 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2435 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2436 | fi |
2437 | ||
7a197a62 | 2438 | |
ad6254c5 AK |
2439 | fi |
2440 | if test -z "$ac_cv_prog_CC"; then | |
2441 | ac_ct_CC=$CC | |
2442 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2443 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2444 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2445 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2446 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2447 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2448 | else |
2449 | if test -n "$ac_ct_CC"; then | |
2450 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2451 | else | |
2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2453 | for as_dir in $PATH | |
2454 | do | |
2455 | IFS=$as_save_IFS | |
2456 | test -z "$as_dir" && as_dir=. | |
2457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2459 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2460 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2461 | break 2 |
2462 | fi | |
2463 | done | |
2464 | done | |
7a197a62 | 2465 | IFS=$as_save_IFS |
ad6254c5 AK |
2466 | |
2467 | fi | |
2468 | fi | |
2469 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2470 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2471 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2472 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2473 | else |
ec6a6fbe AK |
2474 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2475 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2476 | fi |
2477 | ||
7a197a62 AK |
2478 | if test "x$ac_ct_CC" = x; then |
2479 | CC="" | |
2480 | else | |
2481 | case $cross_compiling:$ac_tool_warned in | |
2482 | yes:) | |
ec6a6fbe AK |
2483 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2484 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2485 | ac_tool_warned=yes ;; |
2486 | esac | |
2487 | CC=$ac_ct_CC | |
2488 | fi | |
ad6254c5 AK |
2489 | else |
2490 | CC="$ac_cv_prog_CC" | |
2491 | fi | |
2492 | ||
2493 | if test -z "$CC"; then | |
7a197a62 AK |
2494 | if test -n "$ac_tool_prefix"; then |
2495 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2496 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2497 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2498 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2499 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2500 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2501 | else |
2502 | if test -n "$CC"; then | |
2503 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2504 | else | |
ad6254c5 AK |
2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2506 | for as_dir in $PATH | |
2507 | do | |
2508 | IFS=$as_save_IFS | |
2509 | test -z "$as_dir" && as_dir=. | |
2510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2512 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2513 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2514 | break 2 |
2515 | fi | |
2516 | done | |
2517 | done | |
7a197a62 | 2518 | IFS=$as_save_IFS |
ad6254c5 | 2519 | |
8106cdd5 AK |
2520 | fi |
2521 | fi | |
ad6254c5 | 2522 | CC=$ac_cv_prog_CC |
8106cdd5 | 2523 | if test -n "$CC"; then |
ec6a6fbe AK |
2524 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2525 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2526 | else |
ec6a6fbe AK |
2527 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2528 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2529 | fi |
2530 | ||
8106cdd5 | 2531 | |
7a197a62 | 2532 | fi |
ad6254c5 | 2533 | fi |
795ca3e5 AK |
2534 | if test -z "$CC"; then |
2535 | # Extract the first word of "cc", so it can be a program name with args. | |
2536 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2537 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2538 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2539 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2540 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2541 | else |
2542 | if test -n "$CC"; then | |
2543 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2544 | else | |
795ca3e5 | 2545 | ac_prog_rejected=no |
ad6254c5 AK |
2546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2547 | for as_dir in $PATH | |
2548 | do | |
2549 | IFS=$as_save_IFS | |
2550 | test -z "$as_dir" && as_dir=. | |
2551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2553 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2554 | ac_prog_rejected=yes | |
2555 | continue | |
2556 | fi | |
2557 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2558 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2559 | break 2 |
2560 | fi | |
2561 | done | |
2562 | done | |
7a197a62 | 2563 | IFS=$as_save_IFS |
ad6254c5 | 2564 | |
795ca3e5 AK |
2565 | if test $ac_prog_rejected = yes; then |
2566 | # We found a bogon in the path, so make sure we never use it. | |
2567 | set dummy $ac_cv_prog_CC | |
2568 | shift | |
ad6254c5 | 2569 | if test $# != 0; then |
795ca3e5 AK |
2570 | # We chose a different compiler from the bogus one. |
2571 | # However, it has the same basename, so the bogon will be chosen | |
2572 | # first if we set CC to just the basename; use the full file name. | |
2573 | shift | |
ad6254c5 | 2574 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2575 | fi |
2576 | fi | |
2577 | fi | |
2578 | fi | |
ad6254c5 | 2579 | CC=$ac_cv_prog_CC |
795ca3e5 | 2580 | if test -n "$CC"; then |
ec6a6fbe AK |
2581 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2582 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2583 | else |
ec6a6fbe AK |
2584 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2585 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2586 | fi |
2587 | ||
7a197a62 | 2588 | |
ad6254c5 AK |
2589 | fi |
2590 | if test -z "$CC"; then | |
2591 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2592 | for ac_prog in cl.exe |
ad6254c5 AK |
2593 | do |
2594 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2595 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2596 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2597 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2598 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2599 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2600 | else |
2601 | if test -n "$CC"; then | |
2602 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2603 | else | |
ad6254c5 AK |
2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2605 | for as_dir in $PATH | |
2606 | do | |
2607 | IFS=$as_save_IFS | |
2608 | test -z "$as_dir" && as_dir=. | |
2609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2611 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2612 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2613 | break 2 |
2614 | fi | |
2615 | done | |
2616 | done | |
7a197a62 | 2617 | IFS=$as_save_IFS |
ad6254c5 | 2618 | |
795ca3e5 AK |
2619 | fi |
2620 | fi | |
ad6254c5 | 2621 | CC=$ac_cv_prog_CC |
795ca3e5 | 2622 | if test -n "$CC"; then |
ec6a6fbe AK |
2623 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2624 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2625 | else |
ec6a6fbe AK |
2626 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2627 | $as_echo "no" >&6; } | |
795ca3e5 | 2628 | fi |
ad6254c5 | 2629 | |
7a197a62 | 2630 | |
ad6254c5 AK |
2631 | test -n "$CC" && break |
2632 | done | |
2633 | fi | |
2634 | if test -z "$CC"; then | |
2635 | ac_ct_CC=$CC | |
7a197a62 | 2636 | for ac_prog in cl.exe |
ad6254c5 AK |
2637 | do |
2638 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2639 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2640 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2641 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2642 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2643 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2644 | else |
2645 | if test -n "$ac_ct_CC"; then | |
2646 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2647 | else | |
2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2649 | for as_dir in $PATH | |
2650 | do | |
2651 | IFS=$as_save_IFS | |
2652 | test -z "$as_dir" && as_dir=. | |
2653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2655 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2656 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2657 | break 2 |
795ca3e5 | 2658 | fi |
ad6254c5 AK |
2659 | done |
2660 | done | |
7a197a62 | 2661 | IFS=$as_save_IFS |
ad6254c5 AK |
2662 | |
2663 | fi | |
2664 | fi | |
2665 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2666 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2667 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2668 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2669 | else |
ec6a6fbe AK |
2670 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2671 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2672 | fi |
2673 | ||
7a197a62 | 2674 | |
ad6254c5 AK |
2675 | test -n "$ac_ct_CC" && break |
2676 | done | |
795ca3e5 | 2677 | |
7a197a62 AK |
2678 | if test "x$ac_ct_CC" = x; then |
2679 | CC="" | |
2680 | else | |
2681 | case $cross_compiling:$ac_tool_warned in | |
2682 | yes:) | |
ec6a6fbe AK |
2683 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2684 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2685 | ac_tool_warned=yes ;; |
2686 | esac | |
2687 | CC=$ac_ct_CC | |
2688 | fi | |
ad6254c5 AK |
2689 | fi |
2690 | ||
2691 | fi | |
2692 | ||
2693 | ||
ec6a6fbe AK |
2694 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2695 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2696 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2697 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2698 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2699 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2700 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2701 | |
2702 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2703 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2704 | set X $ac_compile | |
2705 | ac_compiler=$2 | |
7a197a62 AK |
2706 | { (ac_try="$ac_compiler --version >&5" |
2707 | case "(($ac_try" in | |
2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2709 | *) ac_try_echo=$ac_try;; | |
2710 | esac | |
ec6a6fbe AK |
2711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2712 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2713 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2714 | ac_status=$? |
ec6a6fbe | 2715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2716 | (exit $ac_status); } |
7a197a62 AK |
2717 | { (ac_try="$ac_compiler -v >&5" |
2718 | case "(($ac_try" in | |
2719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2720 | *) ac_try_echo=$ac_try;; | |
2721 | esac | |
ec6a6fbe AK |
2722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2723 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2724 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2725 | ac_status=$? |
ec6a6fbe | 2726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2727 | (exit $ac_status); } |
7a197a62 AK |
2728 | { (ac_try="$ac_compiler -V >&5" |
2729 | case "(($ac_try" in | |
2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2731 | *) ac_try_echo=$ac_try;; | |
2732 | esac | |
ec6a6fbe AK |
2733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2734 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2735 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2736 | ac_status=$? |
ec6a6fbe | 2737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2738 | (exit $ac_status); } |
2739 | ||
2740 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2741 | /* confdefs.h. */ |
2742 | _ACEOF | |
2743 | cat confdefs.h >>conftest.$ac_ext | |
2744 | cat >>conftest.$ac_ext <<_ACEOF | |
2745 | /* end confdefs.h. */ | |
2746 | ||
2747 | int | |
2748 | main () | |
2749 | { | |
2750 | ||
2751 | ; | |
2752 | return 0; | |
2753 | } | |
2754 | _ACEOF | |
2755 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2756 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2757 | # Try to create an executable without -o first, disregard a.out. |
2758 | # It will help us diagnose broken compilers, and finding out an intuition | |
2759 | # of exeext. | |
ec6a6fbe AK |
2760 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2761 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2762 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2763 | ||
2764 | # The possible output files: | |
2765 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2766 | ||
7a197a62 AK |
2767 | ac_rmfiles= |
2768 | for ac_file in $ac_files | |
2769 | do | |
2770 | case $ac_file in | |
ec6a6fbe | 2771 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2772 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2773 | esac | |
2774 | done | |
2775 | rm -f $ac_rmfiles | |
2776 | ||
2777 | if { (ac_try="$ac_link_default" | |
2778 | case "(($ac_try" in | |
2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2780 | *) ac_try_echo=$ac_try;; | |
2781 | esac | |
ec6a6fbe AK |
2782 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2783 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2784 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2785 | ac_status=$? |
ec6a6fbe | 2786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2787 | (exit $ac_status); }; then |
7a197a62 AK |
2788 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2789 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2790 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2791 | # so that the user can short-circuit this test for compilers unknown to | |
2792 | # Autoconf. | |
25fbec5b | 2793 | for ac_file in $ac_files '' |
ad6254c5 AK |
2794 | do |
2795 | test -f "$ac_file" || continue | |
2796 | case $ac_file in | |
ec6a6fbe | 2797 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2798 | ;; |
ad6254c5 | 2799 | [ab].out ) |
8a2fc586 AK |
2800 | # We found the default executable, but exeext='' is most |
2801 | # certainly right. | |
2802 | break;; | |
ad6254c5 | 2803 | *.* ) |
7a197a62 AK |
2804 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2805 | then :; else | |
2806 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2807 | fi | |
2808 | # We set ac_cv_exeext here because the later test for it is not | |
2809 | # safe: cross compilers may not add the suffix if given an `-o' | |
2810 | # argument, so we may need to know it at that point already. | |
2811 | # Even if this section looks crufty: it has the advantage of | |
2812 | # actually working. | |
8a2fc586 | 2813 | break;; |
ad6254c5 | 2814 | * ) |
8a2fc586 | 2815 | break;; |
ad6254c5 AK |
2816 | esac |
2817 | done | |
7a197a62 AK |
2818 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2819 | ||
ad6254c5 | 2820 | else |
25fbec5b AK |
2821 | ac_file='' |
2822 | fi | |
2823 | ||
ec6a6fbe AK |
2824 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2825 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2826 | if test -z "$ac_file"; then |
ec6a6fbe | 2827 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
2829 | ||
ec6a6fbe AK |
2830 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2831 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2832 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2833 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2834 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2835 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2836 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2837 | fi |
2838 | ||
2839 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2840 | |
7a197a62 | 2841 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2842 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2843 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2844 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2845 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2846 | # If not cross compiling, check that we can run a simple program. | |
2847 | if test "$cross_compiling" != yes; then | |
2848 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2849 | { (case "(($ac_try" in |
2850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2851 | *) ac_try_echo=$ac_try;; | |
2852 | esac | |
ec6a6fbe AK |
2853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2854 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2855 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2856 | ac_status=$? |
ec6a6fbe | 2857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2858 | (exit $ac_status); }; }; then |
2859 | cross_compiling=no | |
795ca3e5 | 2860 | else |
ad6254c5 AK |
2861 | if test "$cross_compiling" = maybe; then |
2862 | cross_compiling=yes | |
2863 | else | |
ec6a6fbe AK |
2864 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2866 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2867 | If you meant to cross compile, use \`--host'. |
2868 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2869 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2870 | If you meant to cross compile, use \`--host'. |
2871 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2872 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2873 | fi |
795ca3e5 | 2874 | fi |
80992638 | 2875 | fi |
ec6a6fbe AK |
2876 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2877 | $as_echo "yes" >&6; } | |
ad6254c5 | 2878 | |
ec6a6fbe | 2879 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2880 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2881 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2882 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2883 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2884 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2885 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2886 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2887 | |
ec6a6fbe AK |
2888 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2889 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2890 | if { (ac_try="$ac_link" |
2891 | case "(($ac_try" in | |
2892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2893 | *) ac_try_echo=$ac_try;; | |
2894 | esac | |
ec6a6fbe AK |
2895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2896 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2897 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2898 | ac_status=$? |
ec6a6fbe | 2899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2900 | (exit $ac_status); }; then |
2901 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2902 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2903 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2904 | # `rm'. | |
2905 | for ac_file in conftest.exe conftest conftest.*; do | |
2906 | test -f "$ac_file" || continue | |
2907 | case $ac_file in | |
ec6a6fbe | 2908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2909 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2910 | break;; |
ad6254c5 AK |
2911 | * ) break;; |
2912 | esac | |
2913 | done | |
80992638 | 2914 | else |
ec6a6fbe AK |
2915 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2917 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2918 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2919 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2920 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2921 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2922 | fi |
2923 | ||
2924 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2925 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2926 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2927 | |
2928 | rm -f conftest.$ac_ext | |
2929 | EXEEXT=$ac_cv_exeext | |
2930 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2931 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2932 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2933 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2934 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2935 | else |
ad6254c5 | 2936 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2937 | /* confdefs.h. */ |
2938 | _ACEOF | |
2939 | cat confdefs.h >>conftest.$ac_ext | |
2940 | cat >>conftest.$ac_ext <<_ACEOF | |
2941 | /* end confdefs.h. */ | |
2942 | ||
2943 | int | |
2944 | main () | |
2945 | { | |
2946 | ||
2947 | ; | |
2948 | return 0; | |
2949 | } | |
2950 | _ACEOF | |
2951 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2952 | if { (ac_try="$ac_compile" |
2953 | case "(($ac_try" in | |
2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2955 | *) ac_try_echo=$ac_try;; | |
2956 | esac | |
ec6a6fbe AK |
2957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2958 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2959 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2960 | ac_status=$? |
ec6a6fbe | 2961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2962 | (exit $ac_status); }; then |
7a197a62 AK |
2963 | for ac_file in conftest.o conftest.obj conftest.*; do |
2964 | test -f "$ac_file" || continue; | |
ad6254c5 | 2965 | case $ac_file in |
ec6a6fbe | 2966 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2967 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2968 | break;; | |
2969 | esac | |
2970 | done | |
2971 | else | |
ec6a6fbe | 2972 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
2974 | ||
ec6a6fbe AK |
2975 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2976 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2977 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2978 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2979 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2980 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2981 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2982 | fi |
2983 | ||
2984 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2985 | fi | |
ec6a6fbe AK |
2986 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2987 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2988 | OBJEXT=$ac_cv_objext |
2989 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2990 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2991 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2992 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2993 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2994 | else |
2995 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2996 | /* confdefs.h. */ |
2997 | _ACEOF | |
2998 | cat confdefs.h >>conftest.$ac_ext | |
2999 | cat >>conftest.$ac_ext <<_ACEOF | |
3000 | /* end confdefs.h. */ | |
3001 | ||
3002 | int | |
3003 | main () | |
3004 | { | |
3005 | #ifndef __GNUC__ | |
3006 | choke me | |
3007 | #endif | |
80992638 | 3008 | |
ad6254c5 AK |
3009 | ; |
3010 | return 0; | |
3011 | } | |
3012 | _ACEOF | |
3013 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3014 | if { (ac_try="$ac_compile" |
3015 | case "(($ac_try" in | |
3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3017 | *) ac_try_echo=$ac_try;; | |
3018 | esac | |
ec6a6fbe AK |
3019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3020 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3021 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3022 | ac_status=$? |
8a2fc586 AK |
3023 | grep -v '^ *+' conftest.er1 >conftest.err |
3024 | rm -f conftest.er1 | |
3025 | cat conftest.err >&5 | |
ec6a6fbe | 3026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3027 | (exit $ac_status); } && { |
3028 | test -z "$ac_c_werror_flag" || | |
3029 | test ! -s conftest.err | |
3030 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3031 | ac_compiler_gnu=yes |
80992638 | 3032 | else |
ec6a6fbe | 3033 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3034 | sed 's/^/| /' conftest.$ac_ext >&5 |
3035 | ||
7a197a62 | 3036 | ac_compiler_gnu=no |
8106cdd5 | 3037 | fi |
7a197a62 AK |
3038 | |
3039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3040 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3041 | |
ad6254c5 | 3042 | fi |
ec6a6fbe AK |
3043 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3044 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3045 | if test $ac_compiler_gnu = yes; then | |
3046 | GCC=yes | |
3047 | else | |
3048 | GCC= | |
3049 | fi | |
ad6254c5 AK |
3050 | ac_test_CFLAGS=${CFLAGS+set} |
3051 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3052 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3053 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3054 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3055 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3056 | else |
7a197a62 AK |
3057 | ac_save_c_werror_flag=$ac_c_werror_flag |
3058 | ac_c_werror_flag=yes | |
3059 | ac_cv_prog_cc_g=no | |
3060 | CFLAGS="-g" | |
3061 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3062 | /* confdefs.h. */ |
3063 | _ACEOF | |
3064 | cat confdefs.h >>conftest.$ac_ext | |
3065 | cat >>conftest.$ac_ext <<_ACEOF | |
3066 | /* end confdefs.h. */ | |
3067 | ||
3068 | int | |
3069 | main () | |
3070 | { | |
3071 | ||
3072 | ; | |
3073 | return 0; | |
3074 | } | |
3075 | _ACEOF | |
3076 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3077 | if { (ac_try="$ac_compile" |
3078 | case "(($ac_try" in | |
3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3080 | *) ac_try_echo=$ac_try;; | |
3081 | esac | |
ec6a6fbe AK |
3082 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3083 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3084 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3085 | ac_status=$? |
8a2fc586 AK |
3086 | grep -v '^ *+' conftest.er1 >conftest.err |
3087 | rm -f conftest.er1 | |
3088 | cat conftest.err >&5 | |
ec6a6fbe | 3089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3090 | (exit $ac_status); } && { |
3091 | test -z "$ac_c_werror_flag" || | |
3092 | test ! -s conftest.err | |
3093 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3094 | ac_cv_prog_cc_g=yes |
3095 | else | |
ec6a6fbe | 3096 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3097 | sed 's/^/| /' conftest.$ac_ext >&5 |
3098 | ||
3099 | CFLAGS="" | |
3100 | cat >conftest.$ac_ext <<_ACEOF | |
3101 | /* confdefs.h. */ | |
3102 | _ACEOF | |
3103 | cat confdefs.h >>conftest.$ac_ext | |
3104 | cat >>conftest.$ac_ext <<_ACEOF | |
3105 | /* end confdefs.h. */ | |
3106 | ||
3107 | int | |
3108 | main () | |
3109 | { | |
3110 | ||
3111 | ; | |
3112 | return 0; | |
3113 | } | |
3114 | _ACEOF | |
3115 | rm -f conftest.$ac_objext | |
3116 | if { (ac_try="$ac_compile" | |
3117 | case "(($ac_try" in | |
3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3119 | *) ac_try_echo=$ac_try;; | |
3120 | esac | |
ec6a6fbe AK |
3121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3122 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3123 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3124 | ac_status=$? |
7a197a62 AK |
3125 | grep -v '^ *+' conftest.er1 >conftest.err |
3126 | rm -f conftest.er1 | |
3127 | cat conftest.err >&5 | |
ec6a6fbe | 3128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3129 | (exit $ac_status); } && { |
3130 | test -z "$ac_c_werror_flag" || | |
3131 | test ! -s conftest.err | |
3132 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3133 | : |
3134 | else | |
ec6a6fbe | 3135 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3136 | sed 's/^/| /' conftest.$ac_ext >&5 |
3137 | ||
3138 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3139 | CFLAGS="-g" | |
3140 | cat >conftest.$ac_ext <<_ACEOF | |
3141 | /* confdefs.h. */ | |
3142 | _ACEOF | |
3143 | cat confdefs.h >>conftest.$ac_ext | |
3144 | cat >>conftest.$ac_ext <<_ACEOF | |
3145 | /* end confdefs.h. */ | |
3146 | ||
3147 | int | |
3148 | main () | |
3149 | { | |
3150 | ||
3151 | ; | |
3152 | return 0; | |
3153 | } | |
3154 | _ACEOF | |
3155 | rm -f conftest.$ac_objext | |
3156 | if { (ac_try="$ac_compile" | |
3157 | case "(($ac_try" in | |
3158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3159 | *) ac_try_echo=$ac_try;; | |
3160 | esac | |
ec6a6fbe AK |
3161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3162 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3163 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3164 | ac_status=$? |
7a197a62 AK |
3165 | grep -v '^ *+' conftest.er1 >conftest.err |
3166 | rm -f conftest.er1 | |
3167 | cat conftest.err >&5 | |
ec6a6fbe | 3168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3169 | (exit $ac_status); } && { |
3170 | test -z "$ac_c_werror_flag" || | |
3171 | test ! -s conftest.err | |
3172 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3173 | ac_cv_prog_cc_g=yes |
3174 | else | |
ec6a6fbe | 3175 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3176 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3177 | |
7a197a62 AK |
3178 | |
3179 | fi | |
3180 | ||
3181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3182 | fi | |
3183 | ||
3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3185 | fi |
7a197a62 AK |
3186 | |
3187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3188 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3189 | fi |
ec6a6fbe AK |
3190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3191 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3192 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3193 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3194 | elif test $ac_cv_prog_cc_g = yes; then |
3195 | if test "$GCC" = yes; then | |
3196 | CFLAGS="-g -O2" | |
3197 | else | |
3198 | CFLAGS="-g" | |
3199 | fi | |
3200 | else | |
3201 | if test "$GCC" = yes; then | |
3202 | CFLAGS="-O2" | |
3203 | else | |
3204 | CFLAGS= | |
3205 | fi | |
3206 | fi | |
ec6a6fbe AK |
3207 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3208 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3209 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3210 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3211 | else |
7a197a62 | 3212 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3213 | ac_save_CC=$CC |
3214 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3215 | /* confdefs.h. */ |
3216 | _ACEOF | |
3217 | cat confdefs.h >>conftest.$ac_ext | |
3218 | cat >>conftest.$ac_ext <<_ACEOF | |
3219 | /* end confdefs.h. */ | |
3220 | #include <stdarg.h> | |
3221 | #include <stdio.h> | |
3222 | #include <sys/types.h> | |
3223 | #include <sys/stat.h> | |
3224 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3225 | struct buf { int x; }; | |
3226 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3227 | static char *e (p, i) | |
3228 | char **p; | |
3229 | int i; | |
3230 | { | |
3231 | return p[i]; | |
3232 | } | |
3233 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3234 | { | |
3235 | char *s; | |
3236 | va_list v; | |
3237 | va_start (v,p); | |
3238 | s = g (p, va_arg (v,int)); | |
3239 | va_end (v); | |
3240 | return s; | |
3241 | } | |
8a2fc586 AK |
3242 | |
3243 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3244 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3245 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3246 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3247 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3248 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3249 | that's true only with -std. */ |
8a2fc586 AK |
3250 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3251 | ||
7a197a62 AK |
3252 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3253 | inside strings and character constants. */ | |
3254 | #define FOO(x) 'x' | |
3255 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3256 | ||
ad6254c5 AK |
3257 | int test (int i, double x); |
3258 | struct s1 {int (*f) (int a);}; | |
3259 | struct s2 {int (*f) (double a);}; | |
3260 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3261 | int argc; | |
3262 | char **argv; | |
3263 | int | |
3264 | main () | |
3265 | { | |
3266 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3267 | ; | |
3268 | return 0; | |
3269 | } | |
3270 | _ACEOF | |
7a197a62 AK |
3271 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3272 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3273 | do |
3274 | CC="$ac_save_CC $ac_arg" | |
3275 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3276 | if { (ac_try="$ac_compile" |
3277 | case "(($ac_try" in | |
3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3279 | *) ac_try_echo=$ac_try;; | |
3280 | esac | |
ec6a6fbe AK |
3281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3282 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3283 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3284 | ac_status=$? |
8a2fc586 AK |
3285 | grep -v '^ *+' conftest.er1 >conftest.err |
3286 | rm -f conftest.er1 | |
3287 | cat conftest.err >&5 | |
ec6a6fbe | 3288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3289 | (exit $ac_status); } && { |
3290 | test -z "$ac_c_werror_flag" || | |
3291 | test ! -s conftest.err | |
3292 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3293 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3294 | else |
ec6a6fbe | 3295 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
3297 | ||
7a197a62 | 3298 | |
ad6254c5 | 3299 | fi |
7a197a62 AK |
3300 | |
3301 | rm -f core conftest.err conftest.$ac_objext | |
3302 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3303 | done |
7a197a62 | 3304 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3305 | CC=$ac_save_CC |
3306 | ||
3307 | fi | |
7a197a62 AK |
3308 | # AC_CACHE_VAL |
3309 | case "x$ac_cv_prog_cc_c89" in | |
3310 | x) | |
ec6a6fbe AK |
3311 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3312 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3313 | xno) |
ec6a6fbe AK |
3314 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3315 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3316 | *) |
7a197a62 | 3317 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3318 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3319 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3320 | esac |
3321 | ||
ad6254c5 | 3322 | |
ad6254c5 AK |
3323 | ac_ext=c |
3324 | ac_cpp='$CPP $CPPFLAGS' | |
3325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3328 | |
d0191583 JM |
3329 | |
3330 | ||
3331 | ac_ext=c | |
3332 | ac_cpp='$CPP $CPPFLAGS' | |
3333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3336 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3337 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3338 | # On Suns, sometimes $CPP names a directory. |
3339 | if test -n "$CPP" && test -d "$CPP"; then | |
3340 | CPP= | |
3341 | fi | |
3342 | if test -z "$CPP"; then | |
3343 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3344 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3345 | else |
d0191583 JM |
3346 | # Double quotes because CPP needs to be expanded |
3347 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3348 | do | |
3349 | ac_preproc_ok=false | |
3350 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3351 | do |
d0191583 JM |
3352 | # Use a header file that comes with gcc, so configuring glibc |
3353 | # with a fresh cross-compiler works. | |
3354 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3355 | # <limits.h> exists even on freestanding compilers. | |
3356 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3357 | # not just through cpp. "Syntax error" is here to catch this case. | |
3358 | cat >conftest.$ac_ext <<_ACEOF | |
3359 | /* confdefs.h. */ | |
3360 | _ACEOF | |
3361 | cat confdefs.h >>conftest.$ac_ext | |
3362 | cat >>conftest.$ac_ext <<_ACEOF | |
3363 | /* end confdefs.h. */ | |
3364 | #ifdef __STDC__ | |
3365 | # include <limits.h> | |
3366 | #else | |
3367 | # include <assert.h> | |
3368 | #endif | |
3369 | Syntax error | |
3370 | _ACEOF | |
3371 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3372 | case "(($ac_try" in | |
3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3374 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3375 | esac |
ec6a6fbe AK |
3376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3377 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3378 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3379 | ac_status=$? | |
3380 | grep -v '^ *+' conftest.er1 >conftest.err | |
3381 | rm -f conftest.er1 | |
3382 | cat conftest.err >&5 | |
ec6a6fbe | 3383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3384 | (exit $ac_status); } >/dev/null && { |
3385 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3386 | test ! -s conftest.err | |
3387 | }; then | |
3388 | : | |
3389 | else | |
ec6a6fbe | 3390 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3392 | |
d0191583 JM |
3393 | # Broken: fails on valid input. |
3394 | continue | |
795ca3e5 | 3395 | fi |
795ca3e5 | 3396 | |
d0191583 | 3397 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3398 | |
d0191583 JM |
3399 | # OK, works on sane cases. Now check whether nonexistent headers |
3400 | # can be detected and how. | |
3401 | cat >conftest.$ac_ext <<_ACEOF | |
3402 | /* confdefs.h. */ | |
3403 | _ACEOF | |
3404 | cat confdefs.h >>conftest.$ac_ext | |
3405 | cat >>conftest.$ac_ext <<_ACEOF | |
3406 | /* end confdefs.h. */ | |
3407 | #include <ac_nonexistent.h> | |
3408 | _ACEOF | |
3409 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3410 | case "(($ac_try" in | |
3411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3412 | *) ac_try_echo=$ac_try;; | |
3413 | esac | |
ec6a6fbe AK |
3414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3415 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3416 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3417 | ac_status=$? | |
3418 | grep -v '^ *+' conftest.er1 >conftest.err | |
3419 | rm -f conftest.er1 | |
3420 | cat conftest.err >&5 | |
ec6a6fbe | 3421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3422 | (exit $ac_status); } >/dev/null && { |
3423 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3424 | test ! -s conftest.err | |
3425 | }; then | |
3426 | # Broken: success on invalid input. | |
3427 | continue | |
3428 | else | |
ec6a6fbe | 3429 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3430 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3431 | |
d0191583 JM |
3432 | # Passes both tests. |
3433 | ac_preproc_ok=: | |
3434 | break | |
3435 | fi | |
795ca3e5 | 3436 | |
d0191583 JM |
3437 | rm -f conftest.err conftest.$ac_ext |
3438 | ||
3439 | done | |
3440 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3441 | rm -f conftest.err conftest.$ac_ext | |
3442 | if $ac_preproc_ok; then | |
3443 | break | |
795ca3e5 AK |
3444 | fi |
3445 | ||
d0191583 JM |
3446 | done |
3447 | ac_cv_prog_CPP=$CPP | |
3448 | ||
3449 | fi | |
3450 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3451 | else |
d0191583 JM |
3452 | ac_cv_prog_CPP=$CPP |
3453 | fi | |
ec6a6fbe AK |
3454 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3455 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3456 | ac_preproc_ok=false |
3457 | for ac_c_preproc_warn_flag in '' yes | |
3458 | do | |
3459 | # Use a header file that comes with gcc, so configuring glibc | |
3460 | # with a fresh cross-compiler works. | |
3461 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3462 | # <limits.h> exists even on freestanding compilers. | |
3463 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3464 | # not just through cpp. "Syntax error" is here to catch this case. | |
3465 | cat >conftest.$ac_ext <<_ACEOF | |
3466 | /* confdefs.h. */ | |
ad6254c5 | 3467 | _ACEOF |
d0191583 JM |
3468 | cat confdefs.h >>conftest.$ac_ext |
3469 | cat >>conftest.$ac_ext <<_ACEOF | |
3470 | /* end confdefs.h. */ | |
3471 | #ifdef __STDC__ | |
3472 | # include <limits.h> | |
3473 | #else | |
3474 | # include <assert.h> | |
3475 | #endif | |
3476 | Syntax error | |
3477 | _ACEOF | |
3478 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3479 | case "(($ac_try" in | |
3480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3481 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3482 | esac |
ec6a6fbe AK |
3483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3484 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3485 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3486 | ac_status=$? | |
3487 | grep -v '^ *+' conftest.er1 >conftest.err | |
3488 | rm -f conftest.er1 | |
3489 | cat conftest.err >&5 | |
ec6a6fbe | 3490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3491 | (exit $ac_status); } >/dev/null && { |
3492 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3493 | test ! -s conftest.err | |
3494 | }; then | |
3495 | : | |
795ca3e5 | 3496 | else |
ec6a6fbe | 3497 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
3499 | ||
3500 | # Broken: fails on valid input. | |
3501 | continue | |
795ca3e5 AK |
3502 | fi |
3503 | ||
d0191583 JM |
3504 | rm -f conftest.err conftest.$ac_ext |
3505 | ||
3506 | # OK, works on sane cases. Now check whether nonexistent headers | |
3507 | # can be detected and how. | |
3508 | cat >conftest.$ac_ext <<_ACEOF | |
3509 | /* confdefs.h. */ | |
3510 | _ACEOF | |
3511 | cat confdefs.h >>conftest.$ac_ext | |
3512 | cat >>conftest.$ac_ext <<_ACEOF | |
3513 | /* end confdefs.h. */ | |
3514 | #include <ac_nonexistent.h> | |
3515 | _ACEOF | |
3516 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3517 | case "(($ac_try" in | |
3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3519 | *) ac_try_echo=$ac_try;; | |
3520 | esac | |
ec6a6fbe AK |
3521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3522 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3524 | ac_status=$? | |
3525 | grep -v '^ *+' conftest.er1 >conftest.err | |
3526 | rm -f conftest.er1 | |
3527 | cat conftest.err >&5 | |
ec6a6fbe | 3528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3529 | (exit $ac_status); } >/dev/null && { |
3530 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3531 | test ! -s conftest.err | |
3532 | }; then | |
3533 | # Broken: success on invalid input. | |
3534 | continue | |
795ca3e5 | 3535 | else |
ec6a6fbe | 3536 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3537 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3538 | |
d0191583 JM |
3539 | # Passes both tests. |
3540 | ac_preproc_ok=: | |
3541 | break | |
795ca3e5 | 3542 | fi |
d0191583 JM |
3543 | |
3544 | rm -f conftest.err conftest.$ac_ext | |
3545 | ||
3546 | done | |
3547 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3548 | rm -f conftest.err conftest.$ac_ext | |
3549 | if $ac_preproc_ok; then | |
3550 | : | |
8106cdd5 | 3551 | else |
ec6a6fbe AK |
3552 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3553 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3554 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3555 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3556 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3557 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3558 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3559 | fi |
3560 | ||
d0191583 JM |
3561 | ac_ext=c |
3562 | ac_cpp='$CPP $CPPFLAGS' | |
3563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3566 | ||
7a197a62 | 3567 | |
ec6a6fbe AK |
3568 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3569 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3570 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3571 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3572 | else |
ec6a6fbe | 3573 | if test -z "$GREP"; then |
d0191583 | 3574 | ac_path_GREP_found=false |
ec6a6fbe AK |
3575 | # Loop through the user's path and test for each of PROGNAME-LIST |
3576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3577 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3578 | do |
3579 | IFS=$as_save_IFS | |
3580 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3581 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3582 | for ac_exec_ext in '' $ac_executable_extensions; do |
3583 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3584 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3585 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3586 | # Check for GNU $ac_path_GREP |
3587 | case `"$ac_path_GREP" --version 2>&1` in | |
3588 | *GNU*) | |
3589 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3590 | *) | |
3591 | ac_count=0 | |
ec6a6fbe | 3592 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3593 | while : |
3594 | do | |
3595 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3596 | mv "conftest.tmp" "conftest.in" | |
3597 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3598 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3599 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3600 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3601 | ac_count=`expr $ac_count + 1` | |
3602 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3603 | # Best one so far, save it but keep looking for a better one | |
3604 | ac_cv_path_GREP="$ac_path_GREP" | |
3605 | ac_path_GREP_max=$ac_count | |
3606 | fi | |
3607 | # 10*(2^10) chars as input seems more than enough | |
3608 | test $ac_count -gt 10 && break | |
3609 | done | |
3610 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3611 | esac | |
3612 | ||
ec6a6fbe AK |
3613 | $ac_path_GREP_found && break 3 |
3614 | done | |
d0191583 | 3615 | done |
ad6254c5 | 3616 | done |
7a197a62 | 3617 | IFS=$as_save_IFS |
ec6a6fbe AK |
3618 | if test -z "$ac_cv_path_GREP"; then |
3619 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3620 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3621 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3622 | fi |
80992638 | 3623 | else |
d0191583 | 3624 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3625 | fi |
8106cdd5 | 3626 | |
80992638 | 3627 | fi |
ec6a6fbe AK |
3628 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3629 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3630 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3631 | |
d0191583 | 3632 | |
ec6a6fbe AK |
3633 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3634 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3635 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3636 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3637 | else |
d0191583 JM |
3638 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3639 | then ac_cv_path_EGREP="$GREP -E" | |
3640 | else | |
ec6a6fbe | 3641 | if test -z "$EGREP"; then |
d0191583 | 3642 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3643 | # Loop through the user's path and test for each of PROGNAME-LIST |
3644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3645 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3646 | do |
3647 | IFS=$as_save_IFS | |
3648 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3649 | for ac_prog in egrep; do |
ec6a6fbe AK |
3650 | for ac_exec_ext in '' $ac_executable_extensions; do |
3651 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3652 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3653 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3654 | # Check for GNU $ac_path_EGREP |
3655 | case `"$ac_path_EGREP" --version 2>&1` in | |
3656 | *GNU*) | |
3657 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3658 | *) | |
3659 | ac_count=0 | |
ec6a6fbe | 3660 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3661 | while : |
3662 | do | |
3663 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3664 | mv "conftest.tmp" "conftest.in" | |
3665 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3666 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3667 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3668 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3669 | ac_count=`expr $ac_count + 1` | |
3670 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3671 | # Best one so far, save it but keep looking for a better one | |
3672 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3673 | ac_path_EGREP_max=$ac_count | |
3674 | fi | |
3675 | # 10*(2^10) chars as input seems more than enough | |
3676 | test $ac_count -gt 10 && break | |
3677 | done | |
3678 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3679 | esac |
8a2fc586 | 3680 | |
ec6a6fbe AK |
3681 | $ac_path_EGREP_found && break 3 |
3682 | done | |
d0191583 | 3683 | done |
8a2fc586 | 3684 | done |
7a197a62 | 3685 | IFS=$as_save_IFS |
ec6a6fbe AK |
3686 | if test -z "$ac_cv_path_EGREP"; then |
3687 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3688 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3689 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3690 | fi |
d0191583 JM |
3691 | else |
3692 | ac_cv_path_EGREP=$EGREP | |
3693 | fi | |
ad6254c5 | 3694 | |
d0191583 JM |
3695 | fi |
3696 | fi | |
ec6a6fbe AK |
3697 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3698 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3699 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3700 | |
3701 | ||
d0191583 | 3702 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3703 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3704 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3705 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3706 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3707 | else |
d0191583 | 3708 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3709 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3710 | /* confdefs.h. */ |
3711 | _ACEOF | |
3712 | cat confdefs.h >>conftest.$ac_ext | |
3713 | cat >>conftest.$ac_ext <<_ACEOF | |
3714 | /* end confdefs.h. */ | |
d0191583 JM |
3715 | #include <sgtty.h> |
3716 | Autoconf TIOCGETP | |
ad6254c5 | 3717 | _ACEOF |
d0191583 JM |
3718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3719 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3720 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3721 | else |
d0191583 | 3722 | ac_cv_prog_gcc_traditional=no |
80992638 | 3723 | fi |
d0191583 | 3724 | rm -f conftest* |
ad6254c5 | 3725 | |
8106cdd5 | 3726 | |
d0191583 JM |
3727 | if test $ac_cv_prog_gcc_traditional = no; then |
3728 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3729 | /* confdefs.h. */ |
3730 | _ACEOF | |
3731 | cat confdefs.h >>conftest.$ac_ext | |
3732 | cat >>conftest.$ac_ext <<_ACEOF | |
3733 | /* end confdefs.h. */ | |
d0191583 JM |
3734 | #include <termio.h> |
3735 | Autoconf TCGETA | |
ad6254c5 | 3736 | _ACEOF |
d0191583 JM |
3737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3738 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3739 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3740 | fi |
d0191583 | 3741 | rm -f conftest* |
795ca3e5 | 3742 | |
d0191583 | 3743 | fi |
795ca3e5 | 3744 | fi |
ec6a6fbe AK |
3745 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3746 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3747 | if test $ac_cv_prog_gcc_traditional = yes; then |
3748 | CC="$CC -traditional" | |
3749 | fi | |
795ca3e5 AK |
3750 | fi |
3751 | ||
d0191583 JM |
3752 | # Find a good install program. We prefer a C program (faster), |
3753 | # so one script is as good as another. But avoid the broken or | |
3754 | # incompatible versions: | |
3755 | # SysV /etc/install, /usr/sbin/install | |
3756 | # SunOS /usr/etc/install | |
3757 | # IRIX /sbin/install | |
3758 | # AIX /bin/install | |
3759 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3760 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3761 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3762 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3763 | # OS/2's system install, which has a completely different semantic | |
3764 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3765 | # Reject install programs that cannot install multiple files. |
3766 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3767 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3768 | if test -z "$INSTALL"; then |
3769 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3770 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3771 | else |
d0191583 JM |
3772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3773 | for as_dir in $PATH | |
3774 | do | |
3775 | IFS=$as_save_IFS | |
3776 | test -z "$as_dir" && as_dir=. | |
3777 | # Account for people who put trailing slashes in PATH elements. | |
3778 | case $as_dir/ in | |
3779 | ./ | .// | /cC/* | \ | |
3780 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3781 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3782 | /usr/ucb/* ) ;; | |
3783 | *) | |
3784 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3785 | # Don't use installbsd from OSF since it installs stuff as root | |
3786 | # by default. | |
3787 | for ac_prog in ginstall scoinst install; do | |
3788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3789 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3790 | if test $ac_prog = install && | |
3791 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3792 | # AIX install. It has an incompatible calling convention. | |
3793 | : | |
3794 | elif test $ac_prog = install && | |
3795 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3796 | # program-specific install script used by HP pwplus--don't use. | |
3797 | : | |
3798 | else | |
ec6a6fbe AK |
3799 | rm -rf conftest.one conftest.two conftest.dir |
3800 | echo one > conftest.one | |
3801 | echo two > conftest.two | |
3802 | mkdir conftest.dir | |
3803 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3804 | test -s conftest.one && test -s conftest.two && | |
3805 | test -s conftest.dir/conftest.one && | |
3806 | test -s conftest.dir/conftest.two | |
3807 | then | |
3808 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3809 | break 3 | |
3810 | fi | |
d0191583 JM |
3811 | fi |
3812 | fi | |
3813 | done | |
3814 | done | |
3815 | ;; | |
3816 | esac | |
ec6a6fbe | 3817 | |
d0191583 JM |
3818 | done |
3819 | IFS=$as_save_IFS | |
80992638 | 3820 | |
ec6a6fbe | 3821 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3822 | |
3823 | fi | |
3824 | if test "${ac_cv_path_install+set}" = set; then | |
3825 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3826 | else |
d0191583 JM |
3827 | # As a last resort, use the slow shell script. Don't cache a |
3828 | # value for INSTALL within a source directory, because that will | |
3829 | # break other packages using the cache if that directory is | |
3830 | # removed, or if the value is a relative name. | |
3831 | INSTALL=$ac_install_sh | |
7a197a62 | 3832 | fi |
d0191583 | 3833 | fi |
ec6a6fbe AK |
3834 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3835 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3836 | |
d0191583 JM |
3837 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3838 | # It thinks the first close brace ends the variable substitution. | |
3839 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3840 | |
d0191583 | 3841 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3842 | |
d0191583 JM |
3843 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3844 | ||
ec6a6fbe AK |
3845 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3846 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3847 | LN_S=$as_ln_s |
3848 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3849 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3850 | $as_echo "yes" >&6; } | |
d0191583 | 3851 | else |
ec6a6fbe AK |
3852 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3853 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3854 | fi |
d0191583 | 3855 | |
ec6a6fbe AK |
3856 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3857 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3858 | set x ${MAKE-make} | |
3859 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3860 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3861 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3862 | else |
d0191583 JM |
3863 | cat >conftest.make <<\_ACEOF |
3864 | SHELL = /bin/sh | |
3865 | all: | |
3866 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3867 | _ACEOF | |
3868 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3869 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3870 | *@@@%%%=?*=@@@%%%*) | |
3871 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3872 | *) | |
3873 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3874 | esac | |
3875 | rm -f conftest.make | |
ad6254c5 | 3876 | fi |
d0191583 | 3877 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3878 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3879 | $as_echo "yes" >&6; } | |
d0191583 JM |
3880 | SET_MAKE= |
3881 | else | |
ec6a6fbe AK |
3882 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3883 | $as_echo "no" >&6; } | |
d0191583 | 3884 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3885 | fi |
8106cdd5 | 3886 | |
ec6a6fbe AK |
3887 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3888 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3889 | if test -z "$MKDIR_P"; then |
3890 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3891 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3892 | else |
3893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3894 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3895 | do | |
3896 | IFS=$as_save_IFS | |
3897 | test -z "$as_dir" && as_dir=. | |
3898 | for ac_prog in mkdir gmkdir; do | |
3899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3900 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3901 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3902 | 'mkdir (GNU coreutils) '* | \ | |
3903 | 'mkdir (coreutils) '* | \ | |
3904 | 'mkdir (fileutils) '4.1*) | |
3905 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3906 | break 3;; | |
3907 | esac | |
3908 | done | |
3909 | done | |
3910 | done | |
3911 | IFS=$as_save_IFS | |
3912 | ||
3913 | fi | |
3914 | ||
3915 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3916 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3917 | else | |
3918 | # As a last resort, use the slow shell script. Don't cache a | |
3919 | # value for MKDIR_P within a source directory, because that will | |
3920 | # break other packages using the cache if that directory is | |
3921 | # removed, or if the value is a relative name. | |
3922 | test -d ./--version && rmdir ./--version | |
3923 | MKDIR_P="$ac_install_sh -d" | |
3924 | fi | |
3925 | fi | |
ec6a6fbe AK |
3926 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3927 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3928 | |
d0191583 JM |
3929 | if test -n "$ac_tool_prefix"; then |
3930 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3931 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3932 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3933 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3934 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3935 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3936 | else |
3937 | if test -n "$RANLIB"; then | |
3938 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3939 | else | |
3940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3941 | for as_dir in $PATH | |
3942 | do | |
3943 | IFS=$as_save_IFS | |
3944 | test -z "$as_dir" && as_dir=. | |
3945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3947 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3948 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3949 | break 2 |
3950 | fi | |
3951 | done | |
3952 | done | |
3953 | IFS=$as_save_IFS | |
8106cdd5 | 3954 | |
795ca3e5 | 3955 | fi |
d0191583 JM |
3956 | fi |
3957 | RANLIB=$ac_cv_prog_RANLIB | |
3958 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3959 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3960 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3961 | else |
ec6a6fbe AK |
3962 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3963 | $as_echo "no" >&6; } | |
d0191583 JM |
3964 | fi |
3965 | ||
8106cdd5 | 3966 | |
ad6254c5 | 3967 | fi |
d0191583 JM |
3968 | if test -z "$ac_cv_prog_RANLIB"; then |
3969 | ac_ct_RANLIB=$RANLIB | |
3970 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3971 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3972 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3973 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3974 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3975 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3976 | else |
d0191583 JM |
3977 | if test -n "$ac_ct_RANLIB"; then |
3978 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3979 | else | |
3980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3981 | for as_dir in $PATH | |
8106cdd5 | 3982 | do |
d0191583 JM |
3983 | IFS=$as_save_IFS |
3984 | test -z "$as_dir" && as_dir=. | |
3985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3987 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3988 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3989 | break 2 |
3990 | fi | |
3991 | done | |
3992 | done | |
3993 | IFS=$as_save_IFS | |
3994 | ||
3995 | fi | |
3996 | fi | |
3997 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3998 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3999 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4000 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4001 | else |
ec6a6fbe AK |
4002 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4003 | $as_echo "no" >&6; } | |
d0191583 | 4004 | fi |
ad6254c5 | 4005 | |
d0191583 JM |
4006 | if test "x$ac_ct_RANLIB" = x; then |
4007 | RANLIB=":" | |
4008 | else | |
4009 | case $cross_compiling:$ac_tool_warned in | |
4010 | yes:) | |
ec6a6fbe AK |
4011 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4012 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4013 | ac_tool_warned=yes ;; |
4014 | esac | |
4015 | RANLIB=$ac_ct_RANLIB | |
4016 | fi | |
4017 | else | |
4018 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4019 | fi |
7a197a62 | 4020 | |
d0191583 JM |
4021 | # Extract the first word of "cflow", so it can be a program name with args. |
4022 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4023 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4024 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4025 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4026 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4027 | else |
4028 | case $CFLOW_CMD in | |
4029 | [\\/]* | ?:[\\/]*) | |
4030 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4031 | ;; | |
4032 | *) | |
4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4034 | for as_dir in $PATH | |
4035 | do | |
4036 | IFS=$as_save_IFS | |
4037 | test -z "$as_dir" && as_dir=. | |
4038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4040 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4041 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4042 | break 2 |
4043 | fi | |
4044 | done | |
4045 | done | |
4046 | IFS=$as_save_IFS | |
ad6254c5 | 4047 | |
d0191583 | 4048 | ;; |
7a197a62 | 4049 | esac |
d0191583 JM |
4050 | fi |
4051 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4052 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4053 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4054 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4055 | else |
ec6a6fbe AK |
4056 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4057 | $as_echo "no" >&6; } | |
795ca3e5 | 4058 | fi |
7a197a62 | 4059 | |
ad6254c5 | 4060 | |
d0191583 JM |
4061 | # Extract the first word of "cscope", so it can be a program name with args. |
4062 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4063 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4064 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4065 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4066 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4067 | else |
4068 | case $CSCOPE_CMD in | |
4069 | [\\/]* | ?:[\\/]*) | |
4070 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4071 | ;; | |
4072 | *) | |
4073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4074 | for as_dir in $PATH | |
4075 | do | |
4076 | IFS=$as_save_IFS | |
4077 | test -z "$as_dir" && as_dir=. | |
4078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4079 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4080 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4081 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4082 | break 2 |
4083 | fi | |
795ca3e5 | 4084 | done |
d0191583 JM |
4085 | done |
4086 | IFS=$as_save_IFS | |
795ca3e5 | 4087 | |
d0191583 JM |
4088 | ;; |
4089 | esac | |
ad6254c5 | 4090 | fi |
d0191583 JM |
4091 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4092 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4093 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4094 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4095 | else |
ec6a6fbe AK |
4096 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4097 | $as_echo "no" >&6; } | |
795ca3e5 | 4098 | fi |
ad6254c5 | 4099 | |
7a197a62 | 4100 | |
ad6254c5 | 4101 | |
d0191583 JM |
4102 | ################################################################################ |
4103 | ||
4104 | ||
4105 | ||
4106 | ||
4107 | ||
4108 | ac_header_dirent=no | |
4109 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4110 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4111 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4112 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4113 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4114 | $as_echo_n "(cached) " >&6 |
d0191583 | 4115 | else |
ad6254c5 | 4116 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4117 | /* confdefs.h. */ |
4118 | _ACEOF | |
4119 | cat confdefs.h >>conftest.$ac_ext | |
4120 | cat >>conftest.$ac_ext <<_ACEOF | |
4121 | /* end confdefs.h. */ | |
d0191583 JM |
4122 | #include <sys/types.h> |
4123 | #include <$ac_hdr> | |
4124 | ||
4125 | int | |
4126 | main () | |
4127 | { | |
4128 | if ((DIR *) 0) | |
4129 | return 0; | |
4130 | ; | |
4131 | return 0; | |
4132 | } | |
ad6254c5 | 4133 | _ACEOF |
d0191583 JM |
4134 | rm -f conftest.$ac_objext |
4135 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4136 | case "(($ac_try" in |
4137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4138 | *) ac_try_echo=$ac_try;; | |
4139 | esac | |
ec6a6fbe AK |
4140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4141 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4142 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4143 | ac_status=$? |
4144 | grep -v '^ *+' conftest.er1 >conftest.err | |
4145 | rm -f conftest.er1 | |
4146 | cat conftest.err >&5 | |
ec6a6fbe | 4147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4148 | (exit $ac_status); } && { |
4149 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4150 | test ! -s conftest.err |
d0191583 JM |
4151 | } && test -s conftest.$ac_objext; then |
4152 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4153 | else |
ec6a6fbe | 4154 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4155 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4156 | |
d0191583 | 4157 | eval "$as_ac_Header=no" |
795ca3e5 | 4158 | fi |
7a197a62 | 4159 | |
d0191583 | 4160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4161 | fi |
ec6a6fbe AK |
4162 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4163 | $as_echo "$as_val"'` | |
4164 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4165 | $as_echo "$ac_res" >&6; } | |
4166 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4167 | $as_echo "$as_val"'` | |
4168 | if test "x$as_val" = x""yes; then | |
d0191583 | 4169 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4170 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4171 | _ACEOF |
795ca3e5 | 4172 | |
d0191583 JM |
4173 | ac_header_dirent=$ac_hdr; break |
4174 | fi | |
ad6254c5 | 4175 | |
d0191583 JM |
4176 | done |
4177 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4178 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4179 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4180 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4181 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4182 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4183 | else |
d0191583 JM |
4184 | ac_func_search_save_LIBS=$LIBS |
4185 | cat >conftest.$ac_ext <<_ACEOF | |
4186 | /* confdefs.h. */ | |
4187 | _ACEOF | |
4188 | cat confdefs.h >>conftest.$ac_ext | |
4189 | cat >>conftest.$ac_ext <<_ACEOF | |
4190 | /* end confdefs.h. */ | |
ad6254c5 | 4191 | |
d0191583 JM |
4192 | /* Override any GCC internal prototype to avoid an error. |
4193 | Use char because int might match the return type of a GCC | |
4194 | builtin and then its argument prototype would still apply. */ | |
4195 | #ifdef __cplusplus | |
4196 | extern "C" | |
4197 | #endif | |
4198 | char opendir (); | |
4199 | int | |
4200 | main () | |
4201 | { | |
4202 | return opendir (); | |
4203 | ; | |
4204 | return 0; | |
4205 | } | |
4206 | _ACEOF | |
4207 | for ac_lib in '' dir; do | |
4208 | if test -z "$ac_lib"; then | |
4209 | ac_res="none required" | |
4210 | else | |
4211 | ac_res=-l$ac_lib | |
4212 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4213 | fi | |
4214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4215 | if { (ac_try="$ac_link" | |
4216 | case "(($ac_try" in | |
4217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4218 | *) ac_try_echo=$ac_try;; | |
4219 | esac | |
ec6a6fbe AK |
4220 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4221 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4222 | (eval "$ac_link") 2>conftest.er1 |
4223 | ac_status=$? | |
4224 | grep -v '^ *+' conftest.er1 >conftest.err | |
4225 | rm -f conftest.er1 | |
4226 | cat conftest.err >&5 | |
ec6a6fbe | 4227 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4228 | (exit $ac_status); } && { |
4229 | test -z "$ac_c_werror_flag" || | |
4230 | test ! -s conftest.err | |
ec6a6fbe AK |
4231 | } && test -s conftest$ac_exeext && { |
4232 | test "$cross_compiling" = yes || | |
4233 | $as_test_x conftest$ac_exeext | |
4234 | }; then | |
d0191583 JM |
4235 | ac_cv_search_opendir=$ac_res |
4236 | else | |
ec6a6fbe | 4237 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4238 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4239 | |
ad6254c5 | 4240 | |
795ca3e5 | 4241 | fi |
ad6254c5 | 4242 | |
ec6a6fbe | 4243 | rm -rf conftest.dSYM |
d0191583 JM |
4244 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4245 | conftest$ac_exeext | |
4246 | if test "${ac_cv_search_opendir+set}" = set; then | |
4247 | break | |
7a197a62 | 4248 | fi |
d0191583 JM |
4249 | done |
4250 | if test "${ac_cv_search_opendir+set}" = set; then | |
4251 | : | |
7a197a62 | 4252 | else |
d0191583 | 4253 | ac_cv_search_opendir=no |
7a197a62 | 4254 | fi |
d0191583 JM |
4255 | rm conftest.$ac_ext |
4256 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4257 | fi |
ec6a6fbe AK |
4258 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4259 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4260 | ac_res=$ac_cv_search_opendir |
4261 | if test "$ac_res" != no; then | |
4262 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4263 | |
d0191583 | 4264 | fi |
7a197a62 | 4265 | |
7a197a62 | 4266 | else |
ec6a6fbe AK |
4267 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4268 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4269 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4270 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4271 | else |
d0191583 JM |
4272 | ac_func_search_save_LIBS=$LIBS |
4273 | cat >conftest.$ac_ext <<_ACEOF | |
4274 | /* confdefs.h. */ | |
4275 | _ACEOF | |
4276 | cat confdefs.h >>conftest.$ac_ext | |
4277 | cat >>conftest.$ac_ext <<_ACEOF | |
4278 | /* end confdefs.h. */ | |
7a197a62 | 4279 | |
d0191583 JM |
4280 | /* Override any GCC internal prototype to avoid an error. |
4281 | Use char because int might match the return type of a GCC | |
4282 | builtin and then its argument prototype would still apply. */ | |
4283 | #ifdef __cplusplus | |
4284 | extern "C" | |
4285 | #endif | |
4286 | char opendir (); | |
4287 | int | |
4288 | main () | |
4289 | { | |
4290 | return opendir (); | |
4291 | ; | |
4292 | return 0; | |
4293 | } | |
4294 | _ACEOF | |
4295 | for ac_lib in '' x; do | |
4296 | if test -z "$ac_lib"; then | |
4297 | ac_res="none required" | |
4298 | else | |
4299 | ac_res=-l$ac_lib | |
4300 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4301 | fi | |
4302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4303 | if { (ac_try="$ac_link" | |
4304 | case "(($ac_try" in | |
4305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4306 | *) ac_try_echo=$ac_try;; | |
4307 | esac | |
ec6a6fbe AK |
4308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4309 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4310 | (eval "$ac_link") 2>conftest.er1 |
4311 | ac_status=$? | |
4312 | grep -v '^ *+' conftest.er1 >conftest.err | |
4313 | rm -f conftest.er1 | |
4314 | cat conftest.err >&5 | |
ec6a6fbe | 4315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4316 | (exit $ac_status); } && { |
4317 | test -z "$ac_c_werror_flag" || | |
4318 | test ! -s conftest.err | |
ec6a6fbe AK |
4319 | } && test -s conftest$ac_exeext && { |
4320 | test "$cross_compiling" = yes || | |
4321 | $as_test_x conftest$ac_exeext | |
4322 | }; then | |
d0191583 JM |
4323 | ac_cv_search_opendir=$ac_res |
4324 | else | |
ec6a6fbe | 4325 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4326 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4327 | |
4328 | ||
4329 | fi | |
4330 | ||
ec6a6fbe | 4331 | rm -rf conftest.dSYM |
d0191583 JM |
4332 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4333 | conftest$ac_exeext | |
4334 | if test "${ac_cv_search_opendir+set}" = set; then | |
4335 | break | |
7a197a62 | 4336 | fi |
d0191583 JM |
4337 | done |
4338 | if test "${ac_cv_search_opendir+set}" = set; then | |
4339 | : | |
7a197a62 | 4340 | else |
d0191583 | 4341 | ac_cv_search_opendir=no |
7a197a62 | 4342 | fi |
d0191583 JM |
4343 | rm conftest.$ac_ext |
4344 | LIBS=$ac_func_search_save_LIBS | |
4345 | fi | |
ec6a6fbe AK |
4346 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4347 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4348 | ac_res=$ac_cv_search_opendir |
4349 | if test "$ac_res" != no; then | |
4350 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4351 | |
7a197a62 | 4352 | fi |
7a197a62 | 4353 | |
d0191583 | 4354 | fi |
7a197a62 | 4355 | |
ec6a6fbe AK |
4356 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4357 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4358 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4359 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4360 | else |
4361 | cat >conftest.$ac_ext <<_ACEOF | |
4362 | /* confdefs.h. */ | |
4363 | _ACEOF | |
4364 | cat confdefs.h >>conftest.$ac_ext | |
4365 | cat >>conftest.$ac_ext <<_ACEOF | |
4366 | /* end confdefs.h. */ | |
4367 | #include <stdlib.h> | |
4368 | #include <stdarg.h> | |
4369 | #include <string.h> | |
4370 | #include <float.h> | |
4371 | ||
4372 | int | |
4373 | main () | |
4374 | { | |
4375 | ||
4376 | ; | |
4377 | return 0; | |
4378 | } | |
4379 | _ACEOF | |
4380 | rm -f conftest.$ac_objext | |
4381 | if { (ac_try="$ac_compile" | |
4382 | case "(($ac_try" in | |
4383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4384 | *) ac_try_echo=$ac_try;; | |
4385 | esac | |
ec6a6fbe AK |
4386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4387 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4388 | (eval "$ac_compile") 2>conftest.er1 |
4389 | ac_status=$? | |
4390 | grep -v '^ *+' conftest.er1 >conftest.err | |
4391 | rm -f conftest.er1 | |
4392 | cat conftest.err >&5 | |
ec6a6fbe | 4393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4394 | (exit $ac_status); } && { |
4395 | test -z "$ac_c_werror_flag" || | |
4396 | test ! -s conftest.err | |
4397 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4398 | ac_cv_header_stdc=yes |
4399 | else | |
ec6a6fbe | 4400 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4401 | sed 's/^/| /' conftest.$ac_ext >&5 |
4402 | ||
4403 | ac_cv_header_stdc=no | |
4404 | fi | |
4405 | ||
4406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4407 | ||
4408 | if test $ac_cv_header_stdc = yes; then | |
4409 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4410 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4411 | /* confdefs.h. */ |
4412 | _ACEOF | |
4413 | cat confdefs.h >>conftest.$ac_ext | |
4414 | cat >>conftest.$ac_ext <<_ACEOF | |
4415 | /* end confdefs.h. */ | |
4416 | #include <string.h> | |
8106cdd5 | 4417 | |
ad6254c5 AK |
4418 | _ACEOF |
4419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4420 | $EGREP "memchr" >/dev/null 2>&1; then | |
4421 | : | |
4422 | else | |
4423 | ac_cv_header_stdc=no | |
80992638 | 4424 | fi |
ad6254c5 | 4425 | rm -f conftest* |
795ca3e5 AK |
4426 | |
4427 | fi | |
4428 | ||
ad6254c5 AK |
4429 | if test $ac_cv_header_stdc = yes; then |
4430 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4431 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4432 | /* confdefs.h. */ |
4433 | _ACEOF | |
4434 | cat confdefs.h >>conftest.$ac_ext | |
4435 | cat >>conftest.$ac_ext <<_ACEOF | |
4436 | /* end confdefs.h. */ | |
80992638 | 4437 | #include <stdlib.h> |
ad6254c5 AK |
4438 | |
4439 | _ACEOF | |
80992638 | 4440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4441 | $EGREP "free" >/dev/null 2>&1; then |
4442 | : | |
795ca3e5 | 4443 | else |
ad6254c5 | 4444 | ac_cv_header_stdc=no |
795ca3e5 | 4445 | fi |
80992638 | 4446 | rm -f conftest* |
8106cdd5 | 4447 | |
795ca3e5 AK |
4448 | fi |
4449 | ||
ad6254c5 AK |
4450 | if test $ac_cv_header_stdc = yes; then |
4451 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4452 | if test "$cross_compiling" = yes; then | |
4453 | : | |
795ca3e5 | 4454 | else |
ad6254c5 | 4455 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4456 | /* confdefs.h. */ |
4457 | _ACEOF | |
4458 | cat confdefs.h >>conftest.$ac_ext | |
4459 | cat >>conftest.$ac_ext <<_ACEOF | |
4460 | /* end confdefs.h. */ | |
4461 | #include <ctype.h> | |
7a197a62 | 4462 | #include <stdlib.h> |
ad6254c5 AK |
4463 | #if ((' ' & 0x0FF) == 0x020) |
4464 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4465 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4466 | #else | |
4467 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4468 | (('a' <= (c) && (c) <= 'i') \ |
4469 | || ('j' <= (c) && (c) <= 'r') \ | |
4470 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4471 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4472 | #endif |
ad6254c5 AK |
4473 | |
4474 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4475 | int | |
4476 | main () | |
4477 | { | |
4478 | int i; | |
4479 | for (i = 0; i < 256; i++) | |
4480 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4481 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4482 | return 2; |
4483 | return 0; | |
ad6254c5 AK |
4484 | } |
4485 | _ACEOF | |
4486 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4487 | if { (ac_try="$ac_link" |
4488 | case "(($ac_try" in | |
4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4490 | *) ac_try_echo=$ac_try;; | |
4491 | esac | |
ec6a6fbe AK |
4492 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4493 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4494 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4495 | ac_status=$? |
ec6a6fbe | 4496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4497 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4498 | { (case "(($ac_try" in |
4499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4500 | *) ac_try_echo=$ac_try;; | |
4501 | esac | |
ec6a6fbe AK |
4502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4503 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4504 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4505 | ac_status=$? |
ec6a6fbe | 4506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4507 | (exit $ac_status); }; }; then |
4508 | : | |
795ca3e5 | 4509 | else |
ec6a6fbe AK |
4510 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4511 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4512 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4513 | |
ad6254c5 AK |
4514 | ( exit $ac_status ) |
4515 | ac_cv_header_stdc=no | |
80992638 | 4516 | fi |
ec6a6fbe | 4517 | rm -rf conftest.dSYM |
7a197a62 | 4518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4519 | fi |
7a197a62 AK |
4520 | |
4521 | ||
ad6254c5 AK |
4522 | fi |
4523 | fi | |
ec6a6fbe AK |
4524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4525 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4526 | if test $ac_cv_header_stdc = yes; then |
4527 | ||
4528 | cat >>confdefs.h <<\_ACEOF | |
4529 | #define STDC_HEADERS 1 | |
4530 | _ACEOF | |
795ca3e5 AK |
4531 | |
4532 | fi | |
4533 | ||
ec6a6fbe AK |
4534 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4535 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4536 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4537 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4538 | else |
ad6254c5 | 4539 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4540 | /* confdefs.h. */ |
4541 | _ACEOF | |
4542 | cat confdefs.h >>conftest.$ac_ext | |
4543 | cat >>conftest.$ac_ext <<_ACEOF | |
4544 | /* end confdefs.h. */ | |
80992638 | 4545 | #include <sys/types.h> |
ad6254c5 AK |
4546 | #include <sys/wait.h> |
4547 | #ifndef WEXITSTATUS | |
7a197a62 | 4548 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4549 | #endif |
4550 | #ifndef WIFEXITED | |
4551 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4552 | #endif | |
4553 | ||
4554 | int | |
4555 | main () | |
4556 | { | |
4557 | int s; | |
4558 | wait (&s); | |
4559 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4560 | ; | |
4561 | return 0; | |
4562 | } | |
4563 | _ACEOF | |
4564 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4565 | if { (ac_try="$ac_compile" |
4566 | case "(($ac_try" in | |
4567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4568 | *) ac_try_echo=$ac_try;; | |
4569 | esac | |
ec6a6fbe AK |
4570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4571 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4572 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4573 | ac_status=$? |
8a2fc586 AK |
4574 | grep -v '^ *+' conftest.er1 >conftest.err |
4575 | rm -f conftest.er1 | |
4576 | cat conftest.err >&5 | |
ec6a6fbe | 4577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4578 | (exit $ac_status); } && { |
4579 | test -z "$ac_c_werror_flag" || | |
4580 | test ! -s conftest.err | |
4581 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4582 | ac_cv_header_sys_wait_h=yes |
4583 | else | |
ec6a6fbe | 4584 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4585 | sed 's/^/| /' conftest.$ac_ext >&5 |
4586 | ||
7a197a62 | 4587 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4588 | fi |
7a197a62 AK |
4589 | |
4590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4591 | fi |
ec6a6fbe AK |
4592 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4593 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4594 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4595 | |
ad6254c5 AK |
4596 | cat >>confdefs.h <<\_ACEOF |
4597 | #define HAVE_SYS_WAIT_H 1 | |
4598 | _ACEOF | |
795ca3e5 AK |
4599 | |
4600 | fi | |
4601 | ||
ec6a6fbe AK |
4602 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4603 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4604 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4605 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4606 | else |
ad6254c5 | 4607 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4608 | /* confdefs.h. */ |
4609 | _ACEOF | |
4610 | cat confdefs.h >>conftest.$ac_ext | |
4611 | cat >>conftest.$ac_ext <<_ACEOF | |
4612 | /* end confdefs.h. */ | |
795ca3e5 AK |
4613 | #include <sys/types.h> |
4614 | #include <sys/time.h> | |
4615 | #include <time.h> | |
ad6254c5 AK |
4616 | |
4617 | int | |
4618 | main () | |
4619 | { | |
4620 | if ((struct tm *) 0) | |
4621 | return 0; | |
4622 | ; | |
4623 | return 0; | |
4624 | } | |
4625 | _ACEOF | |
4626 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4627 | if { (ac_try="$ac_compile" |
4628 | case "(($ac_try" in | |
4629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4630 | *) ac_try_echo=$ac_try;; | |
4631 | esac | |
ec6a6fbe AK |
4632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4633 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4634 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4635 | ac_status=$? |
8a2fc586 AK |
4636 | grep -v '^ *+' conftest.er1 >conftest.err |
4637 | rm -f conftest.er1 | |
4638 | cat conftest.err >&5 | |
ec6a6fbe | 4639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4640 | (exit $ac_status); } && { |
4641 | test -z "$ac_c_werror_flag" || | |
4642 | test ! -s conftest.err | |
4643 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4644 | ac_cv_header_time=yes |
4645 | else | |
ec6a6fbe | 4646 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4647 | sed 's/^/| /' conftest.$ac_ext >&5 |
4648 | ||
7a197a62 | 4649 | ac_cv_header_time=no |
795ca3e5 | 4650 | fi |
7a197a62 AK |
4651 | |
4652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4653 | fi |
ec6a6fbe AK |
4654 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4655 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4656 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4657 | |
4658 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4659 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4660 | _ACEOF |
b896caa1 | 4661 | |
8106cdd5 | 4662 | fi |
b896caa1 | 4663 | |
b896caa1 | 4664 | |
d0191583 JM |
4665 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4666 | ||
4667 | ||
4668 | ||
4669 | ||
4670 | ||
4671 | ||
4672 | ||
4673 | ||
4674 | ||
4675 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4676 | inttypes.h stdint.h unistd.h | |
4677 | do | |
ec6a6fbe AK |
4678 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4679 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4680 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4682 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4683 | else |
4684 | cat >conftest.$ac_ext <<_ACEOF | |
4685 | /* confdefs.h. */ | |
4686 | _ACEOF | |
4687 | cat confdefs.h >>conftest.$ac_ext | |
4688 | cat >>conftest.$ac_ext <<_ACEOF | |
4689 | /* end confdefs.h. */ | |
4690 | $ac_includes_default | |
4691 | ||
4692 | #include <$ac_header> | |
4693 | _ACEOF | |
4694 | rm -f conftest.$ac_objext | |
4695 | if { (ac_try="$ac_compile" | |
4696 | case "(($ac_try" in | |
4697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4698 | *) ac_try_echo=$ac_try;; | |
4699 | esac | |
ec6a6fbe AK |
4700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4701 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4702 | (eval "$ac_compile") 2>conftest.er1 |
4703 | ac_status=$? | |
4704 | grep -v '^ *+' conftest.er1 >conftest.err | |
4705 | rm -f conftest.er1 | |
4706 | cat conftest.err >&5 | |
ec6a6fbe | 4707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4708 | (exit $ac_status); } && { |
4709 | test -z "$ac_c_werror_flag" || | |
4710 | test ! -s conftest.err | |
4711 | } && test -s conftest.$ac_objext; then | |
4712 | eval "$as_ac_Header=yes" | |
4713 | else | |
ec6a6fbe | 4714 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4715 | sed 's/^/| /' conftest.$ac_ext >&5 |
4716 | ||
4717 | eval "$as_ac_Header=no" | |
4718 | fi | |
4719 | ||
4720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4721 | fi | |
ec6a6fbe AK |
4722 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4723 | $as_echo "$as_val"'` | |
4724 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4725 | $as_echo "$ac_res" >&6; } | |
4726 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4727 | $as_echo "$as_val"'` | |
4728 | if test "x$as_val" = x""yes; then | |
d0191583 | 4729 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4730 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4731 | _ACEOF |
4732 | ||
4733 | fi | |
4734 | ||
4735 | done | |
4736 | ||
b896caa1 | 4737 | |
b896caa1 AK |
4738 | |
4739 | ||
795ca3e5 | 4740 | |
8106cdd5 | 4741 | |
80992638 | 4742 | |
795ca3e5 | 4743 | |
a38df97f | 4744 | |
80992638 | 4745 | |
d0191583 JM |
4746 | |
4747 | ||
4748 | ||
4749 | ||
4750 | ||
4751 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4752 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4753 | do |
ec6a6fbe | 4754 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4756 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4757 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4759 | $as_echo_n "(cached) " >&6 |
d0191583 | 4760 | fi |
ec6a6fbe AK |
4761 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4762 | $as_echo "$as_val"'` | |
4763 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4764 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4765 | else |
d0191583 | 4766 | # Is the header compilable? |
ec6a6fbe AK |
4767 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4768 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4769 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4770 | /* confdefs.h. */ |
4771 | _ACEOF | |
4772 | cat confdefs.h >>conftest.$ac_ext | |
4773 | cat >>conftest.$ac_ext <<_ACEOF | |
4774 | /* end confdefs.h. */ | |
4775 | $ac_includes_default | |
ad6254c5 AK |
4776 | #include <$ac_header> |
4777 | _ACEOF | |
4778 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4779 | if { (ac_try="$ac_compile" |
4780 | case "(($ac_try" in | |
4781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4782 | *) ac_try_echo=$ac_try;; | |
4783 | esac | |
ec6a6fbe AK |
4784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4785 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4786 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4787 | ac_status=$? |
8a2fc586 AK |
4788 | grep -v '^ *+' conftest.er1 >conftest.err |
4789 | rm -f conftest.er1 | |
4790 | cat conftest.err >&5 | |
ec6a6fbe | 4791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4792 | (exit $ac_status); } && { |
4793 | test -z "$ac_c_werror_flag" || | |
4794 | test ! -s conftest.err | |
4795 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4796 | ac_header_compiler=yes |
ad6254c5 | 4797 | else |
ec6a6fbe | 4798 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4799 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4800 | |
d0191583 | 4801 | ac_header_compiler=no |
ad6254c5 | 4802 | fi |
7a197a62 AK |
4803 | |
4804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4805 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4806 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4807 | |
4808 | # Is the header present? | |
ec6a6fbe AK |
4809 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4810 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4811 | cat >conftest.$ac_ext <<_ACEOF |
4812 | /* confdefs.h. */ | |
4813 | _ACEOF | |
4814 | cat confdefs.h >>conftest.$ac_ext | |
4815 | cat >>conftest.$ac_ext <<_ACEOF | |
4816 | /* end confdefs.h. */ | |
4817 | #include <$ac_header> | |
4818 | _ACEOF | |
4819 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4820 | case "(($ac_try" in | |
4821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4822 | *) ac_try_echo=$ac_try;; | |
4823 | esac | |
ec6a6fbe AK |
4824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4825 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4826 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4827 | ac_status=$? | |
4828 | grep -v '^ *+' conftest.er1 >conftest.err | |
4829 | rm -f conftest.er1 | |
4830 | cat conftest.err >&5 | |
ec6a6fbe | 4831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4832 | (exit $ac_status); } >/dev/null && { |
4833 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4834 | test ! -s conftest.err | |
4835 | }; then | |
4836 | ac_header_preproc=yes | |
4837 | else | |
ec6a6fbe | 4838 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4839 | sed 's/^/| /' conftest.$ac_ext >&5 |
4840 | ||
4841 | ac_header_preproc=no | |
4842 | fi | |
4843 | ||
4844 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4845 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4846 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4847 | |
4848 | # So? What about this header? | |
4849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4850 | yes:no: ) | |
ec6a6fbe AK |
4851 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4852 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4854 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4855 | ac_header_preproc=yes |
4856 | ;; | |
4857 | no:yes:* ) | |
ec6a6fbe AK |
4858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4859 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4861 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4863 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4865 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4867 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4869 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4870 | |
4871 | ;; | |
4872 | esac | |
ec6a6fbe AK |
4873 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4874 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4875 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4876 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4877 | else |
4878 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4879 | fi |
ec6a6fbe AK |
4880 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4881 | $as_echo "$as_val"'` | |
4882 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4883 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4884 | |
4885 | fi | |
ec6a6fbe AK |
4886 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4887 | $as_echo "$as_val"'` | |
4888 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4889 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4890 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4891 | _ACEOF |
a38df97f | 4892 | |
d0191583 | 4893 | else |
ec6a6fbe AK |
4894 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4895 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4896 | { (exit 1); exit 1; }; } |
80992638 AK |
4897 | fi |
4898 | ||
ad6254c5 AK |
4899 | done |
4900 | ||
7d1552c9 | 4901 | |
d0191583 JM |
4902 | case "$host_os" in |
4903 | linux*) | |
7d1552c9 | 4904 | |
80992638 | 4905 | |
5a52dca9 | 4906 | |
d0191583 | 4907 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4908 | do |
ec6a6fbe | 4909 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4910 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4911 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4912 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4914 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4915 | fi |
ec6a6fbe AK |
4916 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4917 | $as_echo "$as_val"'` | |
4918 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4919 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4920 | else |
4921 | # Is the header compilable? | |
ec6a6fbe AK |
4922 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4923 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4924 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4925 | /* confdefs.h. */ |
4926 | _ACEOF | |
4927 | cat confdefs.h >>conftest.$ac_ext | |
4928 | cat >>conftest.$ac_ext <<_ACEOF | |
4929 | /* end confdefs.h. */ | |
4930 | $ac_includes_default | |
4931 | #include <$ac_header> | |
4932 | _ACEOF | |
4933 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4934 | if { (ac_try="$ac_compile" |
4935 | case "(($ac_try" in | |
4936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4937 | *) ac_try_echo=$ac_try;; | |
4938 | esac | |
ec6a6fbe AK |
4939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4940 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4941 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4942 | ac_status=$? |
8a2fc586 AK |
4943 | grep -v '^ *+' conftest.er1 >conftest.err |
4944 | rm -f conftest.er1 | |
4945 | cat conftest.err >&5 | |
ec6a6fbe | 4946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4947 | (exit $ac_status); } && { |
4948 | test -z "$ac_c_werror_flag" || | |
4949 | test ! -s conftest.err | |
4950 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4951 | ac_header_compiler=yes |
4952 | else | |
ec6a6fbe | 4953 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4954 | sed 's/^/| /' conftest.$ac_ext >&5 |
4955 | ||
4956 | ac_header_compiler=no | |
4957 | fi | |
4958 | ||
4959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4960 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4961 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4962 | |
4963 | # Is the header present? | |
ec6a6fbe AK |
4964 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4965 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4966 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4967 | /* confdefs.h. */ |
4968 | _ACEOF | |
4969 | cat confdefs.h >>conftest.$ac_ext | |
4970 | cat >>conftest.$ac_ext <<_ACEOF | |
4971 | /* end confdefs.h. */ | |
4972 | #include <$ac_header> | |
4973 | _ACEOF | |
7a197a62 AK |
4974 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4975 | case "(($ac_try" in | |
4976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4977 | *) ac_try_echo=$ac_try;; | |
4978 | esac | |
ec6a6fbe AK |
4979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4980 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4982 | ac_status=$? |
4983 | grep -v '^ *+' conftest.er1 >conftest.err | |
4984 | rm -f conftest.er1 | |
4985 | cat conftest.err >&5 | |
ec6a6fbe | 4986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4987 | (exit $ac_status); } >/dev/null && { |
4988 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4989 | test ! -s conftest.err | |
4990 | }; then | |
ad6254c5 AK |
4991 | ac_header_preproc=yes |
4992 | else | |
ec6a6fbe | 4993 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4994 | sed 's/^/| /' conftest.$ac_ext >&5 |
4995 | ||
4996 | ac_header_preproc=no | |
4997 | fi | |
7a197a62 | 4998 | |
ad6254c5 | 4999 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5000 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5001 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5002 | |
5003 | # So? What about this header? | |
8a2fc586 AK |
5004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5005 | yes:no: ) | |
ec6a6fbe AK |
5006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5007 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5009 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5010 | ac_header_preproc=yes |
ad6254c5 | 5011 | ;; |
8a2fc586 | 5012 | no:yes:* ) |
ec6a6fbe AK |
5013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5014 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5016 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5018 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5020 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5022 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5024 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5025 | |
ad6254c5 AK |
5026 | ;; |
5027 | esac | |
ec6a6fbe AK |
5028 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5029 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5031 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5032 | else |
8a2fc586 | 5033 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5034 | fi |
ec6a6fbe AK |
5035 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5036 | $as_echo "$as_val"'` | |
5037 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5038 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5039 | |
5040 | fi | |
ec6a6fbe AK |
5041 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5042 | $as_echo "$as_val"'` | |
5043 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5044 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5045 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5046 | _ACEOF |
b896caa1 | 5047 | |
d8ac0fbc | 5048 | else |
ec6a6fbe AK |
5049 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5050 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5051 | { (exit 1); exit 1; }; } |
80992638 AK |
5052 | fi |
5053 | ||
ad6254c5 | 5054 | done |
d0191583 JM |
5055 | ;; |
5056 | darwin*) | |
d8ac0fbc | 5057 | |
d8ac0fbc | 5058 | |
d0191583 | 5059 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5060 | do |
ec6a6fbe | 5061 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5063 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5064 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5065 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5066 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5067 | fi |
ec6a6fbe AK |
5068 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5069 | $as_echo "$as_val"'` | |
5070 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5071 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5072 | else |
5073 | # Is the header compilable? | |
ec6a6fbe AK |
5074 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5075 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5076 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5077 | /* confdefs.h. */ |
5078 | _ACEOF | |
5079 | cat confdefs.h >>conftest.$ac_ext | |
5080 | cat >>conftest.$ac_ext <<_ACEOF | |
5081 | /* end confdefs.h. */ | |
5082 | $ac_includes_default | |
5083 | #include <$ac_header> | |
5084 | _ACEOF | |
5085 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5086 | if { (ac_try="$ac_compile" |
5087 | case "(($ac_try" in | |
5088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5089 | *) ac_try_echo=$ac_try;; | |
5090 | esac | |
ec6a6fbe AK |
5091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5092 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5093 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5094 | ac_status=$? |
8a2fc586 AK |
5095 | grep -v '^ *+' conftest.er1 >conftest.err |
5096 | rm -f conftest.er1 | |
5097 | cat conftest.err >&5 | |
ec6a6fbe | 5098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5099 | (exit $ac_status); } && { |
5100 | test -z "$ac_c_werror_flag" || | |
5101 | test ! -s conftest.err | |
5102 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5103 | ac_header_compiler=yes |
5104 | else | |
ec6a6fbe | 5105 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5106 | sed 's/^/| /' conftest.$ac_ext >&5 |
5107 | ||
7a197a62 | 5108 | ac_header_compiler=no |
ad6254c5 | 5109 | fi |
7a197a62 AK |
5110 | |
5111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5112 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5113 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5114 | |
5115 | # Is the header present? | |
ec6a6fbe AK |
5116 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5117 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5118 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5119 | /* confdefs.h. */ |
5120 | _ACEOF | |
5121 | cat confdefs.h >>conftest.$ac_ext | |
5122 | cat >>conftest.$ac_ext <<_ACEOF | |
5123 | /* end confdefs.h. */ | |
5124 | #include <$ac_header> | |
5125 | _ACEOF | |
7a197a62 AK |
5126 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5127 | case "(($ac_try" in | |
5128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5129 | *) ac_try_echo=$ac_try;; | |
5130 | esac | |
ec6a6fbe AK |
5131 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5132 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5133 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5134 | ac_status=$? |
5135 | grep -v '^ *+' conftest.er1 >conftest.err | |
5136 | rm -f conftest.er1 | |
5137 | cat conftest.err >&5 | |
ec6a6fbe | 5138 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5139 | (exit $ac_status); } >/dev/null && { |
5140 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5141 | test ! -s conftest.err | |
5142 | }; then | |
ad6254c5 AK |
5143 | ac_header_preproc=yes |
5144 | else | |
ec6a6fbe | 5145 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5146 | sed 's/^/| /' conftest.$ac_ext >&5 |
5147 | ||
5148 | ac_header_preproc=no | |
5149 | fi | |
7a197a62 | 5150 | |
ad6254c5 | 5151 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5152 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5153 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5154 | |
5155 | # So? What about this header? | |
8a2fc586 AK |
5156 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5157 | yes:no: ) | |
ec6a6fbe AK |
5158 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5159 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5160 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5161 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5162 | ac_header_preproc=yes |
ad6254c5 | 5163 | ;; |
8a2fc586 | 5164 | no:yes:* ) |
ec6a6fbe AK |
5165 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5166 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5167 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5168 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5169 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5170 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5171 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5172 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5174 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5175 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5176 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5177 | |
ad6254c5 AK |
5178 | ;; |
5179 | esac | |
ec6a6fbe AK |
5180 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5181 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5182 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5183 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5184 | else |
8a2fc586 | 5185 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5186 | fi |
ec6a6fbe AK |
5187 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5188 | $as_echo "$as_val"'` | |
5189 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5190 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5191 | |
5192 | fi | |
ec6a6fbe AK |
5193 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5194 | $as_echo "$as_val"'` | |
5195 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5196 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5197 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5198 | _ACEOF |
4922197a | 5199 | |
4922197a | 5200 | else |
ec6a6fbe AK |
5201 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5202 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5203 | { (exit 1); exit 1; }; } |
80992638 AK |
5204 | fi |
5205 | ||
ad6254c5 | 5206 | done |
d0191583 JM |
5207 | ;; |
5208 | esac | |
4922197a | 5209 | |
4922197a | 5210 | |
4922197a | 5211 | |
ad6254c5 AK |
5212 | |
5213 | ||
d0191583 JM |
5214 | |
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5227 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5228 | sys/types.h unistd.h | |
ad6254c5 | 5229 | do |
ec6a6fbe | 5230 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5232 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5233 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5234 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5235 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5236 | fi |
ec6a6fbe AK |
5237 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5238 | $as_echo "$as_val"'` | |
5239 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5240 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5241 | else |
ad6254c5 | 5242 | # Is the header compilable? |
ec6a6fbe AK |
5243 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5244 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5245 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5246 | /* confdefs.h. */ |
5247 | _ACEOF | |
5248 | cat confdefs.h >>conftest.$ac_ext | |
5249 | cat >>conftest.$ac_ext <<_ACEOF | |
5250 | /* end confdefs.h. */ | |
5251 | $ac_includes_default | |
5252 | #include <$ac_header> | |
5253 | _ACEOF | |
5254 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5255 | if { (ac_try="$ac_compile" |
5256 | case "(($ac_try" in | |
5257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5258 | *) ac_try_echo=$ac_try;; | |
5259 | esac | |
ec6a6fbe AK |
5260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5261 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5262 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5263 | ac_status=$? |
8a2fc586 AK |
5264 | grep -v '^ *+' conftest.er1 >conftest.err |
5265 | rm -f conftest.er1 | |
5266 | cat conftest.err >&5 | |
ec6a6fbe | 5267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5268 | (exit $ac_status); } && { |
5269 | test -z "$ac_c_werror_flag" || | |
5270 | test ! -s conftest.err | |
5271 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5272 | ac_header_compiler=yes |
5273 | else | |
ec6a6fbe | 5274 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5275 | sed 's/^/| /' conftest.$ac_ext >&5 |
5276 | ||
7a197a62 | 5277 | ac_header_compiler=no |
ad6254c5 | 5278 | fi |
7a197a62 AK |
5279 | |
5280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5281 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5282 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5283 | |
5284 | # Is the header present? | |
ec6a6fbe AK |
5285 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5286 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5287 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5288 | /* confdefs.h. */ |
5289 | _ACEOF | |
5290 | cat confdefs.h >>conftest.$ac_ext | |
5291 | cat >>conftest.$ac_ext <<_ACEOF | |
5292 | /* end confdefs.h. */ | |
5293 | #include <$ac_header> | |
5294 | _ACEOF | |
7a197a62 AK |
5295 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5296 | case "(($ac_try" in | |
5297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5298 | *) ac_try_echo=$ac_try;; | |
5299 | esac | |
ec6a6fbe AK |
5300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5301 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5302 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5303 | ac_status=$? |
5304 | grep -v '^ *+' conftest.er1 >conftest.err | |
5305 | rm -f conftest.er1 | |
5306 | cat conftest.err >&5 | |
ec6a6fbe | 5307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5308 | (exit $ac_status); } >/dev/null && { |
5309 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5310 | test ! -s conftest.err | |
5311 | }; then | |
ad6254c5 AK |
5312 | ac_header_preproc=yes |
5313 | else | |
ec6a6fbe | 5314 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5315 | sed 's/^/| /' conftest.$ac_ext >&5 |
5316 | ||
5317 | ac_header_preproc=no | |
5318 | fi | |
7a197a62 | 5319 | |
ad6254c5 | 5320 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5321 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5322 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5323 | |
5324 | # So? What about this header? | |
8a2fc586 AK |
5325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5326 | yes:no: ) | |
ec6a6fbe AK |
5327 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5328 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5329 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5330 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5331 | ac_header_preproc=yes |
ad6254c5 | 5332 | ;; |
8a2fc586 | 5333 | no:yes:* ) |
ec6a6fbe AK |
5334 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5335 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5336 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5337 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5338 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5339 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5340 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5341 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5342 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5343 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5344 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5345 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5346 | |
ad6254c5 AK |
5347 | ;; |
5348 | esac | |
ec6a6fbe AK |
5349 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5350 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5352 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5353 | else |
8a2fc586 | 5354 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 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; } | |
80992638 | 5360 | |
ad6254c5 | 5361 | fi |
ec6a6fbe AK |
5362 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5363 | $as_echo "$as_val"'` | |
5364 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5365 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5366 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5367 | _ACEOF |
795ca3e5 | 5368 | |
795ca3e5 | 5369 | else |
ec6a6fbe AK |
5370 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5371 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5372 | { (exit 1); exit 1; }; } |
80992638 AK |
5373 | fi |
5374 | ||
ad6254c5 | 5375 | done |
ad6254c5 | 5376 | |
795ca3e5 | 5377 | |
d0191583 JM |
5378 | |
5379 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5380 | do |
ec6a6fbe | 5381 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5383 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5384 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5386 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5387 | fi |
ec6a6fbe AK |
5388 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5389 | $as_echo "$as_val"'` | |
5390 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5391 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5392 | else |
5393 | # Is the header compilable? | |
ec6a6fbe AK |
5394 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5395 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5396 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5397 | /* confdefs.h. */ |
5398 | _ACEOF | |
5399 | cat confdefs.h >>conftest.$ac_ext | |
5400 | cat >>conftest.$ac_ext <<_ACEOF | |
5401 | /* end confdefs.h. */ | |
5402 | $ac_includes_default | |
5403 | #include <$ac_header> | |
5404 | _ACEOF | |
5405 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5406 | if { (ac_try="$ac_compile" |
5407 | case "(($ac_try" in | |
5408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5409 | *) ac_try_echo=$ac_try;; | |
5410 | esac | |
ec6a6fbe AK |
5411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5412 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5413 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5414 | ac_status=$? |
8a2fc586 AK |
5415 | grep -v '^ *+' conftest.er1 >conftest.err |
5416 | rm -f conftest.er1 | |
5417 | cat conftest.err >&5 | |
ec6a6fbe | 5418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5419 | (exit $ac_status); } && { |
5420 | test -z "$ac_c_werror_flag" || | |
5421 | test ! -s conftest.err | |
5422 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5423 | ac_header_compiler=yes |
5424 | else | |
ec6a6fbe | 5425 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5426 | sed 's/^/| /' conftest.$ac_ext >&5 |
5427 | ||
7a197a62 | 5428 | ac_header_compiler=no |
ad6254c5 | 5429 | fi |
7a197a62 AK |
5430 | |
5431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5432 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5433 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5434 | |
5435 | # Is the header present? | |
ec6a6fbe AK |
5436 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5437 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5438 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5439 | /* confdefs.h. */ |
5440 | _ACEOF | |
5441 | cat confdefs.h >>conftest.$ac_ext | |
5442 | cat >>conftest.$ac_ext <<_ACEOF | |
5443 | /* end confdefs.h. */ | |
5444 | #include <$ac_header> | |
5445 | _ACEOF | |
7a197a62 AK |
5446 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5447 | case "(($ac_try" in | |
5448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5449 | *) ac_try_echo=$ac_try;; | |
5450 | esac | |
ec6a6fbe AK |
5451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5452 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5453 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5454 | ac_status=$? |
5455 | grep -v '^ *+' conftest.er1 >conftest.err | |
5456 | rm -f conftest.er1 | |
5457 | cat conftest.err >&5 | |
ec6a6fbe | 5458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5459 | (exit $ac_status); } >/dev/null && { |
5460 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5461 | test ! -s conftest.err | |
5462 | }; then | |
ad6254c5 AK |
5463 | ac_header_preproc=yes |
5464 | else | |
ec6a6fbe | 5465 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5466 | sed 's/^/| /' conftest.$ac_ext >&5 |
5467 | ||
5468 | ac_header_preproc=no | |
5469 | fi | |
7a197a62 | 5470 | |
ad6254c5 | 5471 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5472 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5473 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5474 | |
5475 | # So? What about this header? | |
8a2fc586 AK |
5476 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5477 | yes:no: ) | |
ec6a6fbe AK |
5478 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5479 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5481 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5482 | ac_header_preproc=yes |
ad6254c5 | 5483 | ;; |
8a2fc586 | 5484 | no:yes:* ) |
ec6a6fbe AK |
5485 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5486 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5488 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5489 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5490 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5491 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5492 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5493 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5494 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5495 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5496 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5497 | |
ad6254c5 AK |
5498 | ;; |
5499 | esac | |
ec6a6fbe AK |
5500 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5501 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5502 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5503 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5504 | else |
8a2fc586 | 5505 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5506 | fi |
ec6a6fbe AK |
5507 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5508 | $as_echo "$as_val"'` | |
5509 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5510 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5511 | |
ad6254c5 | 5512 | fi |
ec6a6fbe AK |
5513 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5514 | $as_echo "$as_val"'` | |
5515 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5516 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5517 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5518 | _ACEOF |
5519 | ||
80992638 AK |
5520 | fi |
5521 | ||
ad6254c5 | 5522 | done |
d0191583 | 5523 | |
d3c8211f | 5524 | |
80992638 | 5525 | ################################################################################ |
ec6a6fbe AK |
5526 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5527 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5528 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5529 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5530 | else |
ad6254c5 | 5531 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5532 | /* confdefs.h. */ |
5533 | _ACEOF | |
5534 | cat confdefs.h >>conftest.$ac_ext | |
5535 | cat >>conftest.$ac_ext <<_ACEOF | |
5536 | /* end confdefs.h. */ | |
5537 | ||
5538 | int | |
5539 | main () | |
5540 | { | |
5541 | /* FIXME: Include the comments suggested by Paul. */ | |
5542 | #ifndef __cplusplus | |
5543 | /* Ultrix mips cc rejects this. */ | |
5544 | typedef int charset[2]; | |
25fbec5b | 5545 | const charset cs; |
ad6254c5 | 5546 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5547 | char const *const *pcpcc; |
5548 | char **ppc; | |
ad6254c5 AK |
5549 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5550 | struct point {int x, y;}; | |
5551 | static struct point const zero = {0,0}; | |
5552 | /* AIX XL C 1.02.0.0 rejects this. | |
5553 | It does not let you subtract one const X* pointer from another in | |
5554 | an arm of an if-expression whose if-part is not a constant | |
5555 | expression */ | |
5556 | const char *g = "string"; | |
25fbec5b | 5557 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5558 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5559 | ++pcpcc; |
5560 | ppc = (char**) pcpcc; | |
5561 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5562 | { /* SCO 3.2v4 cc rejects this. */ |
5563 | char *t; | |
5564 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5565 | ||
5566 | *t++ = 0; | |
7a197a62 | 5567 | if (s) return 0; |
ad6254c5 AK |
5568 | } |
5569 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5570 | int x[] = {25, 17}; | |
5571 | const int *foo = &x[0]; | |
5572 | ++foo; | |
5573 | } | |
5574 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5575 | typedef const int *iptr; | |
5576 | iptr p = 0; | |
5577 | ++p; | |
5578 | } | |
5579 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5580 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5581 | struct s { int j; const int *ap[3]; }; | |
5582 | struct s *b; b->j = 5; | |
5583 | } | |
5584 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5585 | const int foo = 10; | |
7a197a62 | 5586 | if (!foo) return 0; |
ad6254c5 | 5587 | } |
25fbec5b | 5588 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5589 | #endif |
5590 | ||
5591 | ; | |
5592 | return 0; | |
5593 | } | |
5594 | _ACEOF | |
5595 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5596 | if { (ac_try="$ac_compile" |
5597 | case "(($ac_try" in | |
5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5599 | *) ac_try_echo=$ac_try;; | |
5600 | esac | |
ec6a6fbe AK |
5601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5602 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5603 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5604 | ac_status=$? |
8a2fc586 AK |
5605 | grep -v '^ *+' conftest.er1 >conftest.err |
5606 | rm -f conftest.er1 | |
5607 | cat conftest.err >&5 | |
ec6a6fbe | 5608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5609 | (exit $ac_status); } && { |
5610 | test -z "$ac_c_werror_flag" || | |
5611 | test ! -s conftest.err | |
5612 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5613 | ac_cv_c_const=yes |
5614 | else | |
ec6a6fbe | 5615 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5616 | sed 's/^/| /' conftest.$ac_ext >&5 |
5617 | ||
7a197a62 | 5618 | ac_cv_c_const=no |
ad6254c5 | 5619 | fi |
7a197a62 AK |
5620 | |
5621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5622 | fi |
ec6a6fbe AK |
5623 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5624 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5625 | if test $ac_cv_c_const = no; then |
80992638 | 5626 | |
ad6254c5 | 5627 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5628 | #define const /**/ |
ad6254c5 | 5629 | _ACEOF |
80992638 | 5630 | |
d3c8211f | 5631 | fi |
d3c8211f | 5632 | |
ec6a6fbe AK |
5633 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5634 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5635 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5636 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5637 | else |
ad6254c5 AK |
5638 | ac_cv_c_inline=no |
5639 | for ac_kw in inline __inline__ __inline; do | |
5640 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5641 | /* confdefs.h. */ |
5642 | _ACEOF | |
5643 | cat confdefs.h >>conftest.$ac_ext | |
5644 | cat >>conftest.$ac_ext <<_ACEOF | |
5645 | /* end confdefs.h. */ | |
5646 | #ifndef __cplusplus | |
5647 | typedef int foo_t; | |
5648 | static $ac_kw foo_t static_foo () {return 0; } | |
5649 | $ac_kw foo_t foo () {return 0; } | |
5650 | #endif | |
80992638 | 5651 | |
ad6254c5 AK |
5652 | _ACEOF |
5653 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5654 | if { (ac_try="$ac_compile" |
5655 | case "(($ac_try" in | |
5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5657 | *) ac_try_echo=$ac_try;; | |
5658 | esac | |
ec6a6fbe AK |
5659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5660 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5661 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5662 | ac_status=$? |
8a2fc586 AK |
5663 | grep -v '^ *+' conftest.er1 >conftest.err |
5664 | rm -f conftest.er1 | |
5665 | cat conftest.err >&5 | |
ec6a6fbe | 5666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5667 | (exit $ac_status); } && { |
5668 | test -z "$ac_c_werror_flag" || | |
5669 | test ! -s conftest.err | |
5670 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5671 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5672 | else |
ec6a6fbe | 5673 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5674 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5675 | |
7a197a62 | 5676 | |
8ce0cbda | 5677 | fi |
7a197a62 AK |
5678 | |
5679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5680 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5681 | done |
8ce0cbda | 5682 | |
8ce0cbda | 5683 | fi |
ec6a6fbe AK |
5684 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5685 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5686 | |
5687 | ||
ad6254c5 AK |
5688 | case $ac_cv_c_inline in |
5689 | inline | yes) ;; | |
8a2fc586 AK |
5690 | *) |
5691 | case $ac_cv_c_inline in | |
5692 | no) ac_val=;; | |
5693 | *) ac_val=$ac_cv_c_inline;; | |
5694 | esac | |
5695 | cat >>confdefs.h <<_ACEOF | |
5696 | #ifndef __cplusplus | |
5697 | #define inline $ac_val | |
5698 | #endif | |
c1c065a3 | 5699 | _ACEOF |
d0191583 JM |
5700 | ;; |
5701 | esac | |
5702 | ||
ec6a6fbe AK |
5703 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5704 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5705 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5706 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5707 | else |
5708 | cat >conftest.$ac_ext <<_ACEOF | |
5709 | /* confdefs.h. */ | |
5710 | _ACEOF | |
5711 | cat confdefs.h >>conftest.$ac_ext | |
5712 | cat >>conftest.$ac_ext <<_ACEOF | |
5713 | /* end confdefs.h. */ | |
5714 | $ac_includes_default | |
5715 | int | |
5716 | main () | |
5717 | { | |
5718 | static struct stat ac_aggr; | |
5719 | if (ac_aggr.st_rdev) | |
5720 | return 0; | |
5721 | ; | |
5722 | return 0; | |
5723 | } | |
5724 | _ACEOF | |
5725 | rm -f conftest.$ac_objext | |
5726 | if { (ac_try="$ac_compile" | |
5727 | case "(($ac_try" in | |
5728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5729 | *) ac_try_echo=$ac_try;; | |
5730 | esac | |
ec6a6fbe AK |
5731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5732 | $as_echo "$ac_try_echo") >&5 | |
5733 | (eval "$ac_compile") 2>conftest.er1 | |
5734 | ac_status=$? | |
5735 | grep -v '^ *+' conftest.er1 >conftest.err | |
5736 | rm -f conftest.er1 | |
5737 | cat conftest.err >&5 | |
5738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5739 | (exit $ac_status); } && { | |
5740 | test -z "$ac_c_werror_flag" || | |
5741 | test ! -s conftest.err | |
5742 | } && test -s conftest.$ac_objext; then | |
5743 | ac_cv_member_struct_stat_st_rdev=yes | |
5744 | else | |
5745 | $as_echo "$as_me: failed program was:" >&5 | |
5746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5747 | ||
5748 | cat >conftest.$ac_ext <<_ACEOF | |
5749 | /* confdefs.h. */ | |
5750 | _ACEOF | |
5751 | cat confdefs.h >>conftest.$ac_ext | |
5752 | cat >>conftest.$ac_ext <<_ACEOF | |
5753 | /* end confdefs.h. */ | |
5754 | $ac_includes_default | |
5755 | int | |
5756 | main () | |
5757 | { | |
5758 | static struct stat ac_aggr; | |
5759 | if (sizeof ac_aggr.st_rdev) | |
5760 | return 0; | |
5761 | ; | |
5762 | return 0; | |
5763 | } | |
5764 | _ACEOF | |
5765 | rm -f conftest.$ac_objext | |
5766 | if { (ac_try="$ac_compile" | |
5767 | case "(($ac_try" in | |
5768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5769 | *) ac_try_echo=$ac_try;; | |
5770 | esac | |
5771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5772 | $as_echo "$ac_try_echo") >&5 | |
5773 | (eval "$ac_compile") 2>conftest.er1 | |
5774 | ac_status=$? | |
5775 | grep -v '^ *+' conftest.er1 >conftest.err | |
5776 | rm -f conftest.er1 | |
5777 | cat conftest.err >&5 | |
5778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5779 | (exit $ac_status); } && { | |
5780 | test -z "$ac_c_werror_flag" || | |
5781 | test ! -s conftest.err | |
5782 | } && test -s conftest.$ac_objext; then | |
5783 | ac_cv_member_struct_stat_st_rdev=yes | |
5784 | else | |
5785 | $as_echo "$as_me: failed program was:" >&5 | |
5786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5787 | ||
5788 | ac_cv_member_struct_stat_st_rdev=no | |
5789 | fi | |
5790 | ||
5791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5792 | fi | |
5793 | ||
5794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5795 | fi | |
5796 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5797 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5798 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5799 | ||
5800 | cat >>confdefs.h <<_ACEOF | |
5801 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5802 | _ACEOF | |
5803 | ||
5804 | ||
5805 | fi | |
5806 | ||
5807 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5808 | $as_echo_n "checking for off_t... " >&6; } | |
5809 | if test "${ac_cv_type_off_t+set}" = set; then | |
5810 | $as_echo_n "(cached) " >&6 | |
5811 | else | |
5812 | ac_cv_type_off_t=no | |
5813 | cat >conftest.$ac_ext <<_ACEOF | |
5814 | /* confdefs.h. */ | |
5815 | _ACEOF | |
5816 | cat confdefs.h >>conftest.$ac_ext | |
5817 | cat >>conftest.$ac_ext <<_ACEOF | |
5818 | /* end confdefs.h. */ | |
5819 | $ac_includes_default | |
5820 | int | |
5821 | main () | |
5822 | { | |
5823 | if (sizeof (off_t)) | |
5824 | return 0; | |
5825 | ; | |
5826 | return 0; | |
5827 | } | |
5828 | _ACEOF | |
5829 | rm -f conftest.$ac_objext | |
5830 | if { (ac_try="$ac_compile" | |
5831 | case "(($ac_try" in | |
5832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5833 | *) ac_try_echo=$ac_try;; | |
5834 | esac | |
5835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5836 | $as_echo "$ac_try_echo") >&5 | |
5837 | (eval "$ac_compile") 2>conftest.er1 | |
5838 | ac_status=$? | |
5839 | grep -v '^ *+' conftest.er1 >conftest.err | |
5840 | rm -f conftest.er1 | |
5841 | cat conftest.err >&5 | |
5842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5843 | (exit $ac_status); } && { | |
5844 | test -z "$ac_c_werror_flag" || | |
5845 | test ! -s conftest.err | |
5846 | } && test -s conftest.$ac_objext; then | |
5847 | cat >conftest.$ac_ext <<_ACEOF | |
5848 | /* confdefs.h. */ | |
5849 | _ACEOF | |
5850 | cat confdefs.h >>conftest.$ac_ext | |
5851 | cat >>conftest.$ac_ext <<_ACEOF | |
5852 | /* end confdefs.h. */ | |
5853 | $ac_includes_default | |
5854 | int | |
5855 | main () | |
5856 | { | |
5857 | if (sizeof ((off_t))) | |
5858 | return 0; | |
5859 | ; | |
5860 | return 0; | |
5861 | } | |
5862 | _ACEOF | |
5863 | rm -f conftest.$ac_objext | |
5864 | if { (ac_try="$ac_compile" | |
5865 | case "(($ac_try" in | |
5866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5867 | *) ac_try_echo=$ac_try;; | |
5868 | esac | |
5869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5870 | $as_echo "$ac_try_echo") >&5 | |
5871 | (eval "$ac_compile") 2>conftest.er1 | |
5872 | ac_status=$? | |
5873 | grep -v '^ *+' conftest.er1 >conftest.err | |
5874 | rm -f conftest.er1 | |
5875 | cat conftest.err >&5 | |
5876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5877 | (exit $ac_status); } && { | |
5878 | test -z "$ac_c_werror_flag" || | |
5879 | test ! -s conftest.err | |
5880 | } && test -s conftest.$ac_objext; then | |
5881 | : | |
5882 | else | |
5883 | $as_echo "$as_me: failed program was:" >&5 | |
5884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5885 | ||
5886 | ac_cv_type_off_t=yes | |
5887 | fi | |
5888 | ||
5889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5890 | else | |
5891 | $as_echo "$as_me: failed program was:" >&5 | |
5892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5893 | ||
5894 | ||
5895 | fi | |
5896 | ||
5897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5898 | fi | |
5899 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5900 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5901 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5902 | : | |
5903 | else | |
5904 | ||
5905 | cat >>confdefs.h <<_ACEOF | |
5906 | #define off_t long int | |
5907 | _ACEOF | |
5908 | ||
5909 | fi | |
5910 | ||
5911 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5912 | $as_echo_n "checking for pid_t... " >&6; } | |
5913 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5914 | $as_echo_n "(cached) " >&6 | |
5915 | else | |
5916 | ac_cv_type_pid_t=no | |
5917 | cat >conftest.$ac_ext <<_ACEOF | |
5918 | /* confdefs.h. */ | |
5919 | _ACEOF | |
5920 | cat confdefs.h >>conftest.$ac_ext | |
5921 | cat >>conftest.$ac_ext <<_ACEOF | |
5922 | /* end confdefs.h. */ | |
5923 | $ac_includes_default | |
5924 | int | |
5925 | main () | |
5926 | { | |
5927 | if (sizeof (pid_t)) | |
5928 | return 0; | |
5929 | ; | |
5930 | return 0; | |
5931 | } | |
5932 | _ACEOF | |
5933 | rm -f conftest.$ac_objext | |
5934 | if { (ac_try="$ac_compile" | |
5935 | case "(($ac_try" in | |
5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5937 | *) ac_try_echo=$ac_try;; | |
5938 | esac | |
5939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5940 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5941 | (eval "$ac_compile") 2>conftest.er1 |
5942 | ac_status=$? | |
5943 | grep -v '^ *+' conftest.er1 >conftest.err | |
5944 | rm -f conftest.er1 | |
5945 | cat conftest.err >&5 | |
ec6a6fbe | 5946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5947 | (exit $ac_status); } && { |
5948 | test -z "$ac_c_werror_flag" || | |
5949 | test ! -s conftest.err | |
5950 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5951 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5952 | /* confdefs.h. */ |
5953 | _ACEOF | |
5954 | cat confdefs.h >>conftest.$ac_ext | |
5955 | cat >>conftest.$ac_ext <<_ACEOF | |
5956 | /* end confdefs.h. */ | |
5957 | $ac_includes_default | |
5958 | int | |
5959 | main () | |
5960 | { | |
ec6a6fbe AK |
5961 | if (sizeof ((pid_t))) |
5962 | return 0; | |
d0191583 JM |
5963 | ; |
5964 | return 0; | |
5965 | } | |
5966 | _ACEOF | |
5967 | rm -f conftest.$ac_objext | |
5968 | if { (ac_try="$ac_compile" | |
5969 | case "(($ac_try" in | |
5970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5971 | *) ac_try_echo=$ac_try;; | |
5972 | esac | |
ec6a6fbe AK |
5973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5974 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5975 | (eval "$ac_compile") 2>conftest.er1 |
5976 | ac_status=$? | |
5977 | grep -v '^ *+' conftest.er1 >conftest.err | |
5978 | rm -f conftest.er1 | |
5979 | cat conftest.err >&5 | |
ec6a6fbe | 5980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5981 | (exit $ac_status); } && { |
5982 | test -z "$ac_c_werror_flag" || | |
5983 | test ! -s conftest.err | |
5984 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5985 | : |
d0191583 | 5986 | else |
ec6a6fbe | 5987 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5988 | sed 's/^/| /' conftest.$ac_ext >&5 |
5989 | ||
ec6a6fbe | 5990 | ac_cv_type_pid_t=yes |
d0191583 JM |
5991 | fi |
5992 | ||
5993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5994 | else |
5995 | $as_echo "$as_me: failed program was:" >&5 | |
5996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5997 | ||
5998 | ||
d0191583 JM |
5999 | fi |
6000 | ||
6001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6002 | fi | |
ec6a6fbe AK |
6003 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
6004 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6005 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6006 | : | |
6007 | else | |
d0191583 JM |
6008 | |
6009 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6010 | #define pid_t int |
d0191583 JM |
6011 | _ACEOF |
6012 | ||
d0191583 | 6013 | fi |
8ce0cbda | 6014 | |
ec6a6fbe AK |
6015 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
6016 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6017 | if test "${ac_cv_type_signal+set}" = set; then | |
6018 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6019 | else |
b145d876 ZK |
6020 | cat >conftest.$ac_ext <<_ACEOF |
6021 | /* confdefs.h. */ | |
6022 | _ACEOF | |
6023 | cat confdefs.h >>conftest.$ac_ext | |
6024 | cat >>conftest.$ac_ext <<_ACEOF | |
6025 | /* end confdefs.h. */ | |
ec6a6fbe AK |
6026 | #include <sys/types.h> |
6027 | #include <signal.h> | |
6028 | ||
b145d876 ZK |
6029 | int |
6030 | main () | |
6031 | { | |
ec6a6fbe | 6032 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
6033 | ; |
6034 | return 0; | |
6035 | } | |
6036 | _ACEOF | |
6037 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6038 | if { (ac_try="$ac_compile" |
6039 | case "(($ac_try" in | |
6040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6041 | *) ac_try_echo=$ac_try;; | |
6042 | esac | |
ec6a6fbe AK |
6043 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6044 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6045 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6046 | ac_status=$? |
8a2fc586 AK |
6047 | grep -v '^ *+' conftest.er1 >conftest.err |
6048 | rm -f conftest.er1 | |
6049 | cat conftest.err >&5 | |
ec6a6fbe | 6050 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6051 | (exit $ac_status); } && { |
6052 | test -z "$ac_c_werror_flag" || | |
6053 | test ! -s conftest.err | |
6054 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6055 | ac_cv_type_signal=int |
b145d876 | 6056 | else |
ec6a6fbe | 6057 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6058 | sed 's/^/| /' conftest.$ac_ext >&5 |
6059 | ||
ec6a6fbe | 6060 | ac_cv_type_signal=void |
ad6254c5 | 6061 | fi |
b145d876 ZK |
6062 | |
6063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6064 | fi | |
ec6a6fbe AK |
6065 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6066 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6067 | |
ad6254c5 | 6068 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6069 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6070 | _ACEOF |
199e490e | 6071 | |
b896caa1 | 6072 | |
ec6a6fbe AK |
6073 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6074 | $as_echo_n "checking for size_t... " >&6; } | |
6075 | if test "${ac_cv_type_size_t+set}" = set; then | |
6076 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6077 | else |
ec6a6fbe AK |
6078 | ac_cv_type_size_t=no |
6079 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6080 | /* confdefs.h. */ |
6081 | _ACEOF | |
6082 | cat confdefs.h >>conftest.$ac_ext | |
6083 | cat >>conftest.$ac_ext <<_ACEOF | |
6084 | /* end confdefs.h. */ | |
6085 | $ac_includes_default | |
6086 | int | |
6087 | main () | |
6088 | { | |
ec6a6fbe AK |
6089 | if (sizeof (size_t)) |
6090 | return 0; | |
ad6254c5 AK |
6091 | ; |
6092 | return 0; | |
6093 | } | |
6094 | _ACEOF | |
6095 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6096 | if { (ac_try="$ac_compile" |
6097 | case "(($ac_try" in | |
6098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6099 | *) ac_try_echo=$ac_try;; | |
6100 | esac | |
ec6a6fbe AK |
6101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6102 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6103 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6104 | ac_status=$? |
8a2fc586 AK |
6105 | grep -v '^ *+' conftest.er1 >conftest.err |
6106 | rm -f conftest.er1 | |
6107 | cat conftest.err >&5 | |
ec6a6fbe | 6108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6109 | (exit $ac_status); } && { |
6110 | test -z "$ac_c_werror_flag" || | |
6111 | test ! -s conftest.err | |
6112 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6113 | cat >conftest.$ac_ext <<_ACEOF |
6114 | /* confdefs.h. */ | |
6115 | _ACEOF | |
6116 | cat confdefs.h >>conftest.$ac_ext | |
6117 | cat >>conftest.$ac_ext <<_ACEOF | |
6118 | /* end confdefs.h. */ | |
ec6a6fbe | 6119 | $ac_includes_default |
d0191583 JM |
6120 | int |
6121 | main () | |
6122 | { | |
ec6a6fbe AK |
6123 | if (sizeof ((size_t))) |
6124 | return 0; | |
d0191583 JM |
6125 | ; |
6126 | return 0; | |
6127 | } | |
6128 | _ACEOF | |
6129 | rm -f conftest.$ac_objext | |
6130 | if { (ac_try="$ac_compile" | |
6131 | case "(($ac_try" in | |
6132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6133 | *) ac_try_echo=$ac_try;; | |
6134 | esac | |
ec6a6fbe AK |
6135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6136 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6137 | (eval "$ac_compile") 2>conftest.er1 |
6138 | ac_status=$? | |
6139 | grep -v '^ *+' conftest.er1 >conftest.err | |
6140 | rm -f conftest.er1 | |
6141 | cat conftest.err >&5 | |
ec6a6fbe | 6142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6143 | (exit $ac_status); } && { |
6144 | test -z "$ac_c_werror_flag" || | |
6145 | test ! -s conftest.err | |
6146 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6147 | : |
d0191583 | 6148 | else |
ec6a6fbe | 6149 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
6151 | ||
ec6a6fbe AK |
6152 | ac_cv_type_size_t=yes |
6153 | fi | |
6154 | ||
6155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6156 | else | |
6157 | $as_echo "$as_me: failed program was:" >&5 | |
6158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6159 | ||
6160 | ||
d0191583 JM |
6161 | fi |
6162 | ||
6163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6164 | fi | |
ec6a6fbe AK |
6165 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6166 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6167 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6168 | : | |
6169 | else | |
d0191583 JM |
6170 | |
6171 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6172 | #define size_t unsigned int |
d0191583 JM |
6173 | _ACEOF |
6174 | ||
ec6a6fbe | 6175 | fi |
d0191583 | 6176 | |
ec6a6fbe AK |
6177 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6178 | $as_echo_n "checking for mode_t... " >&6; } | |
6179 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6180 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6181 | else |
ec6a6fbe AK |
6182 | ac_cv_type_mode_t=no |
6183 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6184 | /* confdefs.h. */ |
6185 | _ACEOF | |
6186 | cat confdefs.h >>conftest.$ac_ext | |
6187 | cat >>conftest.$ac_ext <<_ACEOF | |
6188 | /* end confdefs.h. */ | |
6189 | $ac_includes_default | |
6190 | int | |
6191 | main () | |
6192 | { | |
ec6a6fbe AK |
6193 | if (sizeof (mode_t)) |
6194 | return 0; | |
ad6254c5 AK |
6195 | ; |
6196 | return 0; | |
6197 | } | |
6198 | _ACEOF | |
6199 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6200 | if { (ac_try="$ac_compile" |
6201 | case "(($ac_try" in | |
6202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6203 | *) ac_try_echo=$ac_try;; | |
6204 | esac | |
ec6a6fbe AK |
6205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6206 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6207 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6208 | ac_status=$? |
8a2fc586 AK |
6209 | grep -v '^ *+' conftest.er1 >conftest.err |
6210 | rm -f conftest.er1 | |
6211 | cat conftest.err >&5 | |
ec6a6fbe | 6212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6213 | (exit $ac_status); } && { |
6214 | test -z "$ac_c_werror_flag" || | |
6215 | test ! -s conftest.err | |
6216 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6217 | cat >conftest.$ac_ext <<_ACEOF |
6218 | /* confdefs.h. */ | |
6219 | _ACEOF | |
6220 | cat confdefs.h >>conftest.$ac_ext | |
6221 | cat >>conftest.$ac_ext <<_ACEOF | |
6222 | /* end confdefs.h. */ | |
6223 | $ac_includes_default | |
6224 | int | |
6225 | main () | |
6226 | { | |
ec6a6fbe AK |
6227 | if (sizeof ((mode_t))) |
6228 | return 0; | |
ad6254c5 AK |
6229 | ; |
6230 | return 0; | |
6231 | } | |
6232 | _ACEOF | |
6233 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6234 | if { (ac_try="$ac_compile" |
6235 | case "(($ac_try" in | |
6236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6237 | *) ac_try_echo=$ac_try;; | |
6238 | esac | |
ec6a6fbe AK |
6239 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6240 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6241 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6242 | ac_status=$? |
8a2fc586 AK |
6243 | grep -v '^ *+' conftest.er1 >conftest.err |
6244 | rm -f conftest.er1 | |
6245 | cat conftest.err >&5 | |
ec6a6fbe | 6246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6247 | (exit $ac_status); } && { |
6248 | test -z "$ac_c_werror_flag" || | |
6249 | test ! -s conftest.err | |
6250 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6251 | : |
6252 | else | |
6253 | $as_echo "$as_me: failed program was:" >&5 | |
6254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6255 | ||
6256 | ac_cv_type_mode_t=yes | |
6257 | fi | |
6258 | ||
6259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6260 | else |
ec6a6fbe | 6261 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6262 | sed 's/^/| /' conftest.$ac_ext >&5 |
6263 | ||
ec6a6fbe | 6264 | |
80992638 | 6265 | fi |
7a197a62 AK |
6266 | |
6267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6268 | fi |
ec6a6fbe AK |
6269 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6270 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6271 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6272 | : |
6273 | else | |
80992638 | 6274 | |
ad6254c5 AK |
6275 | cat >>confdefs.h <<_ACEOF |
6276 | #define mode_t int | |
6277 | _ACEOF | |
6278 | ||
6279 | fi | |
6280 | ||
ec6a6fbe AK |
6281 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6282 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6283 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6284 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6285 | else |
6286 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6287 | /* confdefs.h. */ |
6288 | _ACEOF | |
6289 | cat confdefs.h >>conftest.$ac_ext | |
6290 | cat >>conftest.$ac_ext <<_ACEOF | |
6291 | /* end confdefs.h. */ | |
6292 | $ac_includes_default | |
6293 | int | |
6294 | main () | |
6295 | { | |
6296 | static struct stat ac_aggr; | |
6297 | if (ac_aggr.st_rdev) | |
6298 | return 0; | |
6299 | ; | |
6300 | return 0; | |
6301 | } | |
6302 | _ACEOF | |
6303 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6304 | if { (ac_try="$ac_compile" |
6305 | case "(($ac_try" in | |
6306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6307 | *) ac_try_echo=$ac_try;; | |
6308 | esac | |
ec6a6fbe AK |
6309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6310 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6311 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6312 | ac_status=$? |
8a2fc586 AK |
6313 | grep -v '^ *+' conftest.er1 >conftest.err |
6314 | rm -f conftest.er1 | |
6315 | cat conftest.err >&5 | |
ec6a6fbe | 6316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6317 | (exit $ac_status); } && { |
6318 | test -z "$ac_c_werror_flag" || | |
6319 | test ! -s conftest.err | |
6320 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6321 | ac_cv_member_struct_stat_st_rdev=yes |
6322 | else | |
ec6a6fbe | 6323 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6324 | sed 's/^/| /' conftest.$ac_ext >&5 |
6325 | ||
7a197a62 | 6326 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6327 | /* confdefs.h. */ |
6328 | _ACEOF | |
6329 | cat confdefs.h >>conftest.$ac_ext | |
6330 | cat >>conftest.$ac_ext <<_ACEOF | |
6331 | /* end confdefs.h. */ | |
6332 | $ac_includes_default | |
6333 | int | |
6334 | main () | |
6335 | { | |
6336 | static struct stat ac_aggr; | |
6337 | if (sizeof ac_aggr.st_rdev) | |
6338 | return 0; | |
6339 | ; | |
6340 | return 0; | |
6341 | } | |
6342 | _ACEOF | |
6343 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6344 | if { (ac_try="$ac_compile" |
6345 | case "(($ac_try" in | |
6346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6347 | *) ac_try_echo=$ac_try;; | |
6348 | esac | |
ec6a6fbe AK |
6349 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6350 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6351 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6352 | ac_status=$? |
8a2fc586 AK |
6353 | grep -v '^ *+' conftest.er1 >conftest.err |
6354 | rm -f conftest.er1 | |
6355 | cat conftest.err >&5 | |
ec6a6fbe | 6356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6357 | (exit $ac_status); } && { |
6358 | test -z "$ac_c_werror_flag" || | |
6359 | test ! -s conftest.err | |
6360 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6361 | ac_cv_member_struct_stat_st_rdev=yes |
6362 | else | |
ec6a6fbe | 6363 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6364 | sed 's/^/| /' conftest.$ac_ext >&5 |
6365 | ||
7a197a62 | 6366 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6367 | fi |
7a197a62 AK |
6368 | |
6369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6370 | fi |
7a197a62 AK |
6371 | |
6372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6373 | fi |
ec6a6fbe AK |
6374 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6375 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6376 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6377 | |
6378 | cat >>confdefs.h <<_ACEOF | |
6379 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6380 | _ACEOF | |
6381 | ||
6382 | ||
ad6254c5 AK |
6383 | fi |
6384 | ||
ec6a6fbe AK |
6385 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6386 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6387 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6388 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6389 | else |
6390 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6391 | /* confdefs.h. */ |
6392 | _ACEOF | |
6393 | cat confdefs.h >>conftest.$ac_ext | |
6394 | cat >>conftest.$ac_ext <<_ACEOF | |
6395 | /* end confdefs.h. */ | |
6396 | #include <sys/types.h> | |
6397 | #include <time.h> | |
6398 | ||
6399 | int | |
6400 | main () | |
6401 | { | |
25fbec5b AK |
6402 | struct tm tm; |
6403 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6404 | return !p; |
ad6254c5 AK |
6405 | ; |
6406 | return 0; | |
6407 | } | |
6408 | _ACEOF | |
6409 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6410 | if { (ac_try="$ac_compile" |
6411 | case "(($ac_try" in | |
6412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6413 | *) ac_try_echo=$ac_try;; | |
6414 | esac | |
ec6a6fbe AK |
6415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6416 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6417 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6418 | ac_status=$? |
8a2fc586 AK |
6419 | grep -v '^ *+' conftest.er1 >conftest.err |
6420 | rm -f conftest.er1 | |
6421 | cat conftest.err >&5 | |
ec6a6fbe | 6422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6423 | (exit $ac_status); } && { |
6424 | test -z "$ac_c_werror_flag" || | |
6425 | test ! -s conftest.err | |
6426 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6427 | ac_cv_struct_tm=time.h |
6428 | else | |
ec6a6fbe | 6429 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6430 | sed 's/^/| /' conftest.$ac_ext >&5 |
6431 | ||
7a197a62 | 6432 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6433 | fi |
7a197a62 AK |
6434 | |
6435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6436 | fi |
ec6a6fbe AK |
6437 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6438 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6439 | if test $ac_cv_struct_tm = sys/time.h; then |
6440 | ||
6441 | cat >>confdefs.h <<\_ACEOF | |
6442 | #define TM_IN_SYS_TIME 1 | |
6443 | _ACEOF | |
6444 | ||
6445 | fi | |
809fae91 | 6446 | |
795ca3e5 | 6447 | |
80992638 | 6448 | ################################################################################ |
ad6254c5 AK |
6449 | |
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
d0191583 JM |
6463 | |
6464 | ||
6465 | ||
6466 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6467 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6468 | uname | |
ad6254c5 | 6469 | do |
ec6a6fbe AK |
6470 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6471 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6472 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6473 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6474 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6475 | else |
ad6254c5 | 6476 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6477 | /* confdefs.h. */ |
6478 | _ACEOF | |
6479 | cat confdefs.h >>conftest.$ac_ext | |
6480 | cat >>conftest.$ac_ext <<_ACEOF | |
6481 | /* end confdefs.h. */ | |
8a2fc586 AK |
6482 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6484 | #define $ac_func innocuous_$ac_func | |
6485 | ||
ad6254c5 AK |
6486 | /* System header to define __stub macros and hopefully few prototypes, |
6487 | which can conflict with char $ac_func (); below. | |
6488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6489 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6490 | |
ad6254c5 AK |
6491 | #ifdef __STDC__ |
6492 | # include <limits.h> | |
6493 | #else | |
6494 | # include <assert.h> | |
6495 | #endif | |
8a2fc586 AK |
6496 | |
6497 | #undef $ac_func | |
6498 | ||
7a197a62 AK |
6499 | /* Override any GCC internal prototype to avoid an error. |
6500 | Use char because int might match the return type of a GCC | |
6501 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6502 | #ifdef __cplusplus |
6503 | extern "C" | |
ad6254c5 | 6504 | #endif |
ad6254c5 AK |
6505 | char $ac_func (); |
6506 | /* The GNU C library defines this for functions which it implements | |
6507 | to always fail with ENOSYS. Some functions are actually named | |
6508 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6509 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6510 | choke me |
ad6254c5 AK |
6511 | #endif |
6512 | ||
6513 | int | |
6514 | main () | |
6515 | { | |
7a197a62 | 6516 | return $ac_func (); |
ad6254c5 AK |
6517 | ; |
6518 | return 0; | |
6519 | } | |
6520 | _ACEOF | |
6521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6522 | if { (ac_try="$ac_link" |
6523 | case "(($ac_try" in | |
6524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6525 | *) ac_try_echo=$ac_try;; | |
6526 | esac | |
ec6a6fbe AK |
6527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6528 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6529 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6530 | ac_status=$? |
8a2fc586 AK |
6531 | grep -v '^ *+' conftest.er1 >conftest.err |
6532 | rm -f conftest.er1 | |
6533 | cat conftest.err >&5 | |
ec6a6fbe | 6534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6535 | (exit $ac_status); } && { |
6536 | test -z "$ac_c_werror_flag" || | |
6537 | test ! -s conftest.err | |
ec6a6fbe AK |
6538 | } && test -s conftest$ac_exeext && { |
6539 | test "$cross_compiling" = yes || | |
6540 | $as_test_x conftest$ac_exeext | |
6541 | }; then | |
fc54be10 AK |
6542 | eval "$as_ac_var=yes" |
6543 | else | |
ec6a6fbe | 6544 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6545 | sed 's/^/| /' conftest.$ac_ext >&5 |
6546 | ||
6547 | eval "$as_ac_var=no" | |
6548 | fi | |
6549 | ||
ec6a6fbe | 6550 | rm -rf conftest.dSYM |
25fbec5b | 6551 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6552 | conftest$ac_exeext conftest.$ac_ext |
6553 | fi | |
ec6a6fbe AK |
6554 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6555 | $as_echo "$as_val"'` | |
6556 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6557 | $as_echo "$ac_res" >&6; } | |
6558 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6559 | $as_echo "$as_val"'` | |
6560 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6561 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6562 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6563 | _ACEOF |
6564 | ||
6565 | else | |
ec6a6fbe AK |
6566 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6567 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6568 | { (exit 1); exit 1; }; } |
6569 | fi | |
6570 | done | |
795ca3e5 | 6571 | |
a0f9708e AK |
6572 | |
6573 | for ac_func in siginterrupt | |
6574 | do | |
6575 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6576 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6577 | $as_echo_n "checking for $ac_func... " >&6; } | |
6578 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6579 | $as_echo_n "(cached) " >&6 | |
6580 | else | |
6581 | cat >conftest.$ac_ext <<_ACEOF | |
6582 | /* confdefs.h. */ | |
6583 | _ACEOF | |
6584 | cat confdefs.h >>conftest.$ac_ext | |
6585 | cat >>conftest.$ac_ext <<_ACEOF | |
6586 | /* end confdefs.h. */ | |
6587 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6588 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6589 | #define $ac_func innocuous_$ac_func | |
6590 | ||
6591 | /* System header to define __stub macros and hopefully few prototypes, | |
6592 | which can conflict with char $ac_func (); below. | |
6593 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6594 | <limits.h> exists even on freestanding compilers. */ | |
6595 | ||
6596 | #ifdef __STDC__ | |
6597 | # include <limits.h> | |
6598 | #else | |
6599 | # include <assert.h> | |
6600 | #endif | |
6601 | ||
6602 | #undef $ac_func | |
6603 | ||
6604 | /* Override any GCC internal prototype to avoid an error. | |
6605 | Use char because int might match the return type of a GCC | |
6606 | builtin and then its argument prototype would still apply. */ | |
6607 | #ifdef __cplusplus | |
6608 | extern "C" | |
6609 | #endif | |
6610 | char $ac_func (); | |
6611 | /* The GNU C library defines this for functions which it implements | |
6612 | to always fail with ENOSYS. Some functions are actually named | |
6613 | something starting with __ and the normal name is an alias. */ | |
6614 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6615 | choke me | |
6616 | #endif | |
6617 | ||
6618 | int | |
6619 | main () | |
6620 | { | |
6621 | return $ac_func (); | |
6622 | ; | |
6623 | return 0; | |
6624 | } | |
6625 | _ACEOF | |
6626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6627 | if { (ac_try="$ac_link" | |
6628 | case "(($ac_try" in | |
6629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6630 | *) ac_try_echo=$ac_try;; | |
6631 | esac | |
6632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6633 | $as_echo "$ac_try_echo") >&5 | |
6634 | (eval "$ac_link") 2>conftest.er1 | |
6635 | ac_status=$? | |
6636 | grep -v '^ *+' conftest.er1 >conftest.err | |
6637 | rm -f conftest.er1 | |
6638 | cat conftest.err >&5 | |
6639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6640 | (exit $ac_status); } && { | |
6641 | test -z "$ac_c_werror_flag" || | |
6642 | test ! -s conftest.err | |
6643 | } && test -s conftest$ac_exeext && { | |
6644 | test "$cross_compiling" = yes || | |
6645 | $as_test_x conftest$ac_exeext | |
6646 | }; then | |
6647 | eval "$as_ac_var=yes" | |
6648 | else | |
6649 | $as_echo "$as_me: failed program was:" >&5 | |
6650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6651 | ||
6652 | eval "$as_ac_var=no" | |
6653 | fi | |
6654 | ||
6655 | rm -rf conftest.dSYM | |
6656 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6657 | conftest$ac_exeext conftest.$ac_ext | |
6658 | fi | |
6659 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
6660 | $as_echo "$as_val"'` | |
6661 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6662 | $as_echo "$ac_res" >&6; } | |
6663 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6664 | $as_echo "$as_val"'` | |
6665 | if test "x$as_val" = x""yes; then | |
6666 | cat >>confdefs.h <<_ACEOF | |
6667 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6668 | _ACEOF | |
6669 | ||
6670 | fi | |
6671 | done | |
6672 | ||
ad6254c5 AK |
6673 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6674 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6675 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6676 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6677 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6678 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6679 | else |
6680 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6681 | /* confdefs.h. */ |
6682 | _ACEOF | |
6683 | cat confdefs.h >>conftest.$ac_ext | |
6684 | cat >>conftest.$ac_ext <<_ACEOF | |
6685 | /* end confdefs.h. */ | |
6686 | #include <alloca.h> | |
6687 | int | |
6688 | main () | |
6689 | { | |
6690 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6691 | if (p) return 0; |
ad6254c5 AK |
6692 | ; |
6693 | return 0; | |
6694 | } | |
6695 | _ACEOF | |
6696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6697 | if { (ac_try="$ac_link" |
6698 | case "(($ac_try" in | |
6699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6700 | *) ac_try_echo=$ac_try;; | |
6701 | esac | |
ec6a6fbe AK |
6702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6703 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6704 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6705 | ac_status=$? |
8a2fc586 AK |
6706 | grep -v '^ *+' conftest.er1 >conftest.err |
6707 | rm -f conftest.er1 | |
6708 | cat conftest.err >&5 | |
ec6a6fbe | 6709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6710 | (exit $ac_status); } && { |
6711 | test -z "$ac_c_werror_flag" || | |
6712 | test ! -s conftest.err | |
ec6a6fbe AK |
6713 | } && test -s conftest$ac_exeext && { |
6714 | test "$cross_compiling" = yes || | |
6715 | $as_test_x conftest$ac_exeext | |
6716 | }; then | |
ad6254c5 AK |
6717 | ac_cv_working_alloca_h=yes |
6718 | else | |
ec6a6fbe | 6719 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6720 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6721 | |
7a197a62 | 6722 | ac_cv_working_alloca_h=no |
ad6254c5 | 6723 | fi |
7a197a62 | 6724 | |
ec6a6fbe | 6725 | rm -rf conftest.dSYM |
25fbec5b | 6726 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6727 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6728 | fi |
ec6a6fbe AK |
6729 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6730 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6731 | if test $ac_cv_working_alloca_h = yes; then |
6732 | ||
6733 | cat >>confdefs.h <<\_ACEOF | |
6734 | #define HAVE_ALLOCA_H 1 | |
6735 | _ACEOF | |
6736 | ||
6737 | fi | |
6738 | ||
ec6a6fbe AK |
6739 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6740 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6741 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6742 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6743 | else |
6744 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6745 | /* confdefs.h. */ |
6746 | _ACEOF | |
6747 | cat confdefs.h >>conftest.$ac_ext | |
6748 | cat >>conftest.$ac_ext <<_ACEOF | |
6749 | /* end confdefs.h. */ | |
6750 | #ifdef __GNUC__ | |
6751 | # define alloca __builtin_alloca | |
6752 | #else | |
6753 | # ifdef _MSC_VER | |
6754 | # include <malloc.h> | |
6755 | # define alloca _alloca | |
6756 | # else | |
25fbec5b | 6757 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6758 | # include <alloca.h> |
6759 | # else | |
6760 | # ifdef _AIX | |
6761 | #pragma alloca | |
6762 | # else | |
6763 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6764 | char *alloca (); | |
6765 | # endif | |
6766 | # endif | |
6767 | # endif | |
6768 | # endif | |
6769 | #endif | |
6770 | ||
6771 | int | |
6772 | main () | |
6773 | { | |
6774 | char *p = (char *) alloca (1); | |
7a197a62 | 6775 | if (p) return 0; |
ad6254c5 AK |
6776 | ; |
6777 | return 0; | |
6778 | } | |
6779 | _ACEOF | |
6780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6781 | if { (ac_try="$ac_link" |
6782 | case "(($ac_try" in | |
6783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6784 | *) ac_try_echo=$ac_try;; | |
6785 | esac | |
ec6a6fbe AK |
6786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6787 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6788 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6789 | ac_status=$? |
8a2fc586 AK |
6790 | grep -v '^ *+' conftest.er1 >conftest.err |
6791 | rm -f conftest.er1 | |
6792 | cat conftest.err >&5 | |
ec6a6fbe | 6793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6794 | (exit $ac_status); } && { |
6795 | test -z "$ac_c_werror_flag" || | |
6796 | test ! -s conftest.err | |
ec6a6fbe AK |
6797 | } && test -s conftest$ac_exeext && { |
6798 | test "$cross_compiling" = yes || | |
6799 | $as_test_x conftest$ac_exeext | |
6800 | }; then | |
ad6254c5 AK |
6801 | ac_cv_func_alloca_works=yes |
6802 | else | |
ec6a6fbe | 6803 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6804 | sed 's/^/| /' conftest.$ac_ext >&5 |
6805 | ||
7a197a62 | 6806 | ac_cv_func_alloca_works=no |
ad6254c5 | 6807 | fi |
7a197a62 | 6808 | |
ec6a6fbe | 6809 | rm -rf conftest.dSYM |
25fbec5b | 6810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6811 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6812 | fi |
ec6a6fbe AK |
6813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6814 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6815 | |
6816 | if test $ac_cv_func_alloca_works = yes; then | |
6817 | ||
6818 | cat >>confdefs.h <<\_ACEOF | |
6819 | #define HAVE_ALLOCA 1 | |
6820 | _ACEOF | |
6821 | ||
6822 | else | |
6823 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6824 | # that cause trouble. Some versions do not even contain alloca or | |
6825 | # contain a buggy version. If you still want to use their alloca, | |
6826 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6827 | ||
7a197a62 | 6828 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6829 | |
6830 | cat >>confdefs.h <<\_ACEOF | |
6831 | #define C_ALLOCA 1 | |
6832 | _ACEOF | |
6833 | ||
6834 | ||
ec6a6fbe AK |
6835 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6836 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6837 | if test "${ac_cv_os_cray+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. */ | |
7a197a62 | 6846 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6847 | webecray |
6848 | #else | |
6849 | wenotbecray | |
6850 | #endif | |
6851 | ||
6852 | _ACEOF | |
795ca3e5 | 6853 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6854 | $EGREP "webecray" >/dev/null 2>&1; then |
6855 | ac_cv_os_cray=yes | |
6856 | else | |
6857 | ac_cv_os_cray=no | |
795ca3e5 AK |
6858 | fi |
6859 | rm -f conftest* | |
6860 | ||
795ca3e5 | 6861 | fi |
ec6a6fbe AK |
6862 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6863 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6864 | if test $ac_cv_os_cray = yes; then |
6865 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6866 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6867 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6868 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6869 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6870 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6871 | else |
6872 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6873 | /* confdefs.h. */ |
6874 | _ACEOF | |
6875 | cat confdefs.h >>conftest.$ac_ext | |
6876 | cat >>conftest.$ac_ext <<_ACEOF | |
6877 | /* end confdefs.h. */ | |
8a2fc586 AK |
6878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6880 | #define $ac_func innocuous_$ac_func | |
6881 | ||
ad6254c5 AK |
6882 | /* System header to define __stub macros and hopefully few prototypes, |
6883 | which can conflict with char $ac_func (); below. | |
6884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6885 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6886 | |
ad6254c5 AK |
6887 | #ifdef __STDC__ |
6888 | # include <limits.h> | |
6889 | #else | |
6890 | # include <assert.h> | |
6891 | #endif | |
8a2fc586 AK |
6892 | |
6893 | #undef $ac_func | |
6894 | ||
7a197a62 AK |
6895 | /* Override any GCC internal prototype to avoid an error. |
6896 | Use char because int might match the return type of a GCC | |
6897 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6898 | #ifdef __cplusplus |
6899 | extern "C" | |
ad6254c5 | 6900 | #endif |
ad6254c5 AK |
6901 | char $ac_func (); |
6902 | /* The GNU C library defines this for functions which it implements | |
6903 | to always fail with ENOSYS. Some functions are actually named | |
6904 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6905 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6906 | choke me |
ad6254c5 AK |
6907 | #endif |
6908 | ||
6909 | int | |
6910 | main () | |
6911 | { | |
7a197a62 | 6912 | return $ac_func (); |
ad6254c5 AK |
6913 | ; |
6914 | return 0; | |
6915 | } | |
6916 | _ACEOF | |
6917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6918 | if { (ac_try="$ac_link" |
6919 | case "(($ac_try" in | |
6920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6921 | *) ac_try_echo=$ac_try;; | |
6922 | esac | |
ec6a6fbe AK |
6923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6924 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6925 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6926 | ac_status=$? |
8a2fc586 AK |
6927 | grep -v '^ *+' conftest.er1 >conftest.err |
6928 | rm -f conftest.er1 | |
6929 | cat conftest.err >&5 | |
ec6a6fbe | 6930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6931 | (exit $ac_status); } && { |
6932 | test -z "$ac_c_werror_flag" || | |
6933 | test ! -s conftest.err | |
ec6a6fbe AK |
6934 | } && test -s conftest$ac_exeext && { |
6935 | test "$cross_compiling" = yes || | |
6936 | $as_test_x conftest$ac_exeext | |
6937 | }; then | |
ad6254c5 AK |
6938 | eval "$as_ac_var=yes" |
6939 | else | |
ec6a6fbe | 6940 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6941 | sed 's/^/| /' conftest.$ac_ext >&5 |
6942 | ||
7a197a62 | 6943 | eval "$as_ac_var=no" |
ad6254c5 | 6944 | fi |
7a197a62 | 6945 | |
ec6a6fbe | 6946 | rm -rf conftest.dSYM |
25fbec5b | 6947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6948 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6949 | fi |
ec6a6fbe AK |
6950 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6951 | $as_echo "$as_val"'` | |
6952 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6953 | $as_echo "$ac_res" >&6; } | |
6954 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6955 | $as_echo "$as_val"'` | |
6956 | if test "x$as_val" = x""yes; then | |
80992638 | 6957 | |
ad6254c5 AK |
6958 | cat >>confdefs.h <<_ACEOF |
6959 | #define CRAY_STACKSEG_END $ac_func | |
6960 | _ACEOF | |
6961 | ||
6962 | break | |
6963 | fi | |
6964 | ||
6965 | done | |
6966 | fi | |
6967 | ||
ec6a6fbe AK |
6968 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6969 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6970 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6971 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6972 | else |
6973 | if test "$cross_compiling" = yes; then | |
6974 | ac_cv_c_stack_direction=0 | |
6975 | else | |
6976 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6977 | /* confdefs.h. */ |
6978 | _ACEOF | |
6979 | cat confdefs.h >>conftest.$ac_ext | |
6980 | cat >>conftest.$ac_ext <<_ACEOF | |
6981 | /* end confdefs.h. */ | |
7a197a62 | 6982 | $ac_includes_default |
ad6254c5 AK |
6983 | int |
6984 | find_stack_direction () | |
6985 | { | |
6986 | static char *addr = 0; | |
6987 | auto char dummy; | |
6988 | if (addr == 0) | |
6989 | { | |
6990 | addr = &dummy; | |
6991 | return find_stack_direction (); | |
6992 | } | |
6993 | else | |
6994 | return (&dummy > addr) ? 1 : -1; | |
6995 | } | |
6996 | ||
6997 | int | |
6998 | main () | |
6999 | { | |
7a197a62 | 7000 | return find_stack_direction () < 0; |
ad6254c5 AK |
7001 | } |
7002 | _ACEOF | |
7003 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7004 | if { (ac_try="$ac_link" |
7005 | case "(($ac_try" in | |
7006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7007 | *) ac_try_echo=$ac_try;; | |
7008 | esac | |
ec6a6fbe AK |
7009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7010 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7011 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7012 | ac_status=$? |
ec6a6fbe | 7013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7014 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7015 | { (case "(($ac_try" in |
7016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7017 | *) ac_try_echo=$ac_try;; | |
7018 | esac | |
ec6a6fbe AK |
7019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7020 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7021 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7022 | ac_status=$? |
ec6a6fbe | 7023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7024 | (exit $ac_status); }; }; then |
7025 | ac_cv_c_stack_direction=1 | |
7026 | else | |
ec6a6fbe AK |
7027 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7028 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7029 | sed 's/^/| /' conftest.$ac_ext >&5 |
7030 | ||
7031 | ( exit $ac_status ) | |
7032 | ac_cv_c_stack_direction=-1 | |
7033 | fi | |
ec6a6fbe | 7034 | rm -rf conftest.dSYM |
7a197a62 | 7035 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7036 | fi |
7a197a62 AK |
7037 | |
7038 | ||
ad6254c5 | 7039 | fi |
ec6a6fbe AK |
7040 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7041 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
7042 | |
7043 | cat >>confdefs.h <<_ACEOF | |
7044 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7045 | _ACEOF | |
7046 | ||
7047 | ||
7048 | fi | |
7049 | ||
ec6a6fbe AK |
7050 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
7051 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 7052 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 7053 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7054 | else |
7055 | if test "$cross_compiling" = yes; then | |
7056 | ac_cv_func_closedir_void=yes | |
7057 | else | |
7058 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7059 | /* confdefs.h. */ |
7060 | _ACEOF | |
7061 | cat confdefs.h >>conftest.$ac_ext | |
7062 | cat >>conftest.$ac_ext <<_ACEOF | |
7063 | /* end confdefs.h. */ | |
7064 | $ac_includes_default | |
7065 | #include <$ac_header_dirent> | |
7066 | #ifndef __cplusplus | |
7067 | int closedir (); | |
7068 | #endif | |
7069 | ||
7070 | int | |
7071 | main () | |
7072 | { | |
7a197a62 | 7073 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
7074 | ; |
7075 | return 0; | |
7076 | } | |
7077 | _ACEOF | |
7078 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7079 | if { (ac_try="$ac_link" |
7080 | case "(($ac_try" in | |
7081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7082 | *) ac_try_echo=$ac_try;; | |
7083 | esac | |
ec6a6fbe AK |
7084 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7085 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7086 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7087 | ac_status=$? |
ec6a6fbe | 7088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7090 | { (case "(($ac_try" in |
7091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7092 | *) ac_try_echo=$ac_try;; | |
7093 | esac | |
ec6a6fbe AK |
7094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7095 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7096 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7097 | ac_status=$? |
ec6a6fbe | 7098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7099 | (exit $ac_status); }; }; then |
7100 | ac_cv_func_closedir_void=no | |
7101 | else | |
ec6a6fbe AK |
7102 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7103 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7104 | sed 's/^/| /' conftest.$ac_ext >&5 |
7105 | ||
7106 | ( exit $ac_status ) | |
7107 | ac_cv_func_closedir_void=yes | |
7108 | fi | |
ec6a6fbe | 7109 | rm -rf conftest.dSYM |
7a197a62 | 7110 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7111 | fi |
7a197a62 AK |
7112 | |
7113 | ||
ad6254c5 | 7114 | fi |
ec6a6fbe AK |
7115 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
7116 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
7117 | if test $ac_cv_func_closedir_void = yes; then |
7118 | ||
7119 | cat >>confdefs.h <<\_ACEOF | |
7120 | #define CLOSEDIR_VOID 1 | |
7121 | _ACEOF | |
7122 | ||
7123 | fi | |
7124 | ||
7125 | ||
7a197a62 | 7126 | for ac_header in vfork.h |
ad6254c5 | 7127 | do |
ec6a6fbe | 7128 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7130 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7131 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7133 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7134 | fi |
ec6a6fbe AK |
7135 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7136 | $as_echo "$as_val"'` | |
7137 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7138 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7139 | else |
7140 | # Is the header compilable? | |
ec6a6fbe AK |
7141 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7142 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7143 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7144 | /* confdefs.h. */ |
7145 | _ACEOF | |
7146 | cat confdefs.h >>conftest.$ac_ext | |
7147 | cat >>conftest.$ac_ext <<_ACEOF | |
7148 | /* end confdefs.h. */ | |
7149 | $ac_includes_default | |
7150 | #include <$ac_header> | |
7151 | _ACEOF | |
7152 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7153 | if { (ac_try="$ac_compile" |
7154 | case "(($ac_try" in | |
7155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7156 | *) ac_try_echo=$ac_try;; | |
7157 | esac | |
ec6a6fbe AK |
7158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7159 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7160 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7161 | ac_status=$? |
8a2fc586 AK |
7162 | grep -v '^ *+' conftest.er1 >conftest.err |
7163 | rm -f conftest.er1 | |
7164 | cat conftest.err >&5 | |
ec6a6fbe | 7165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7166 | (exit $ac_status); } && { |
7167 | test -z "$ac_c_werror_flag" || | |
7168 | test ! -s conftest.err | |
7169 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7170 | ac_header_compiler=yes |
7171 | else | |
ec6a6fbe | 7172 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7173 | sed 's/^/| /' conftest.$ac_ext >&5 |
7174 | ||
7a197a62 | 7175 | ac_header_compiler=no |
ad6254c5 | 7176 | fi |
7a197a62 AK |
7177 | |
7178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7179 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7180 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7181 | |
7182 | # Is the header present? | |
ec6a6fbe AK |
7183 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7184 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7185 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7186 | /* confdefs.h. */ |
7187 | _ACEOF | |
7188 | cat confdefs.h >>conftest.$ac_ext | |
7189 | cat >>conftest.$ac_ext <<_ACEOF | |
7190 | /* end confdefs.h. */ | |
7191 | #include <$ac_header> | |
7192 | _ACEOF | |
7a197a62 AK |
7193 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7194 | case "(($ac_try" in | |
7195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7196 | *) ac_try_echo=$ac_try;; | |
7197 | esac | |
ec6a6fbe AK |
7198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7199 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7200 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7201 | ac_status=$? |
7202 | grep -v '^ *+' conftest.er1 >conftest.err | |
7203 | rm -f conftest.er1 | |
7204 | cat conftest.err >&5 | |
ec6a6fbe | 7205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7206 | (exit $ac_status); } >/dev/null && { |
7207 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7208 | test ! -s conftest.err | |
7209 | }; then | |
ad6254c5 AK |
7210 | ac_header_preproc=yes |
7211 | else | |
ec6a6fbe | 7212 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7213 | sed 's/^/| /' conftest.$ac_ext >&5 |
7214 | ||
7215 | ac_header_preproc=no | |
7216 | fi | |
7a197a62 | 7217 | |
ad6254c5 | 7218 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7219 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7220 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7221 | |
7222 | # So? What about this header? | |
8a2fc586 AK |
7223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7224 | yes:no: ) | |
ec6a6fbe AK |
7225 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7226 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7227 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7228 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7229 | ac_header_preproc=yes |
ad6254c5 | 7230 | ;; |
8a2fc586 | 7231 | no:yes:* ) |
ec6a6fbe AK |
7232 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7233 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7234 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7235 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7236 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7237 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7239 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7241 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7243 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7244 | |
ad6254c5 AK |
7245 | ;; |
7246 | esac | |
ec6a6fbe AK |
7247 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7248 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7250 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7251 | else |
8a2fc586 | 7252 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7253 | fi |
ec6a6fbe AK |
7254 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7255 | $as_echo "$as_val"'` | |
7256 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7257 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7258 | |
795ca3e5 | 7259 | fi |
ec6a6fbe AK |
7260 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7261 | $as_echo "$as_val"'` | |
7262 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7263 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7264 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7265 | _ACEOF |
7266 | ||
7267 | fi | |
7268 | ||
7269 | done | |
795ca3e5 | 7270 | |
ad6254c5 AK |
7271 | |
7272 | ||
7273 | for ac_func in fork vfork | |
7274 | do | |
ec6a6fbe AK |
7275 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7276 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7277 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7278 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7279 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7280 | else |
ad6254c5 | 7281 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7282 | /* confdefs.h. */ |
7283 | _ACEOF | |
7284 | cat confdefs.h >>conftest.$ac_ext | |
7285 | cat >>conftest.$ac_ext <<_ACEOF | |
7286 | /* end confdefs.h. */ | |
8a2fc586 AK |
7287 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7289 | #define $ac_func innocuous_$ac_func | |
7290 | ||
ad6254c5 AK |
7291 | /* System header to define __stub macros and hopefully few prototypes, |
7292 | which can conflict with char $ac_func (); below. | |
7293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7294 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7295 | |
ad6254c5 AK |
7296 | #ifdef __STDC__ |
7297 | # include <limits.h> | |
7298 | #else | |
7299 | # include <assert.h> | |
795ca3e5 | 7300 | #endif |
8a2fc586 AK |
7301 | |
7302 | #undef $ac_func | |
7303 | ||
7a197a62 AK |
7304 | /* Override any GCC internal prototype to avoid an error. |
7305 | Use char because int might match the return type of a GCC | |
7306 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7307 | #ifdef __cplusplus |
ad6254c5 | 7308 | extern "C" |
ad6254c5 | 7309 | #endif |
ad6254c5 AK |
7310 | char $ac_func (); |
7311 | /* The GNU C library defines this for functions which it implements | |
7312 | to always fail with ENOSYS. Some functions are actually named | |
7313 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7314 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7315 | choke me |
795ca3e5 AK |
7316 | #endif |
7317 | ||
ad6254c5 AK |
7318 | int |
7319 | main () | |
7320 | { | |
7a197a62 | 7321 | return $ac_func (); |
ad6254c5 AK |
7322 | ; |
7323 | return 0; | |
7324 | } | |
7325 | _ACEOF | |
7326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7327 | if { (ac_try="$ac_link" |
7328 | case "(($ac_try" in | |
7329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7330 | *) ac_try_echo=$ac_try;; | |
7331 | esac | |
ec6a6fbe AK |
7332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7333 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7334 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7335 | ac_status=$? |
8a2fc586 AK |
7336 | grep -v '^ *+' conftest.er1 >conftest.err |
7337 | rm -f conftest.er1 | |
7338 | cat conftest.err >&5 | |
ec6a6fbe | 7339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7340 | (exit $ac_status); } && { |
7341 | test -z "$ac_c_werror_flag" || | |
7342 | test ! -s conftest.err | |
ec6a6fbe AK |
7343 | } && test -s conftest$ac_exeext && { |
7344 | test "$cross_compiling" = yes || | |
7345 | $as_test_x conftest$ac_exeext | |
7346 | }; then | |
ad6254c5 | 7347 | eval "$as_ac_var=yes" |
795ca3e5 | 7348 | else |
ec6a6fbe | 7349 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7350 | sed 's/^/| /' conftest.$ac_ext >&5 |
7351 | ||
7a197a62 | 7352 | eval "$as_ac_var=no" |
795ca3e5 | 7353 | fi |
7a197a62 | 7354 | |
ec6a6fbe | 7355 | rm -rf conftest.dSYM |
25fbec5b | 7356 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7357 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7358 | fi |
ec6a6fbe AK |
7359 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7360 | $as_echo "$as_val"'` | |
7361 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7362 | $as_echo "$ac_res" >&6; } | |
7363 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7364 | $as_echo "$as_val"'` | |
7365 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7366 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7367 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7368 | _ACEOF |
7369 | ||
7370 | fi | |
7371 | done | |
7372 | ||
7373 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7374 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7375 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7376 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7377 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7378 | else |
7379 | if test "$cross_compiling" = yes; then | |
7380 | ac_cv_func_fork_works=cross | |
7381 | else | |
7382 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7383 | /* confdefs.h. */ |
7384 | _ACEOF | |
7385 | cat confdefs.h >>conftest.$ac_ext | |
7386 | cat >>conftest.$ac_ext <<_ACEOF | |
7387 | /* end confdefs.h. */ | |
7388 | $ac_includes_default | |
7389 | int | |
7390 | main () | |
7391 | { | |
7392 | ||
7393 | /* By Ruediger Kuhlmann. */ | |
7394 | return fork () < 0; | |
7395 | ||
7396 | ; | |
7397 | return 0; | |
7398 | } | |
ad6254c5 AK |
7399 | _ACEOF |
7400 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7401 | if { (ac_try="$ac_link" |
7402 | case "(($ac_try" in | |
7403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7404 | *) ac_try_echo=$ac_try;; | |
7405 | esac | |
ec6a6fbe AK |
7406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7407 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7408 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7409 | ac_status=$? |
ec6a6fbe | 7410 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7411 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7412 | { (case "(($ac_try" in |
7413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7414 | *) ac_try_echo=$ac_try;; | |
7415 | esac | |
ec6a6fbe AK |
7416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7417 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7418 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7419 | ac_status=$? |
ec6a6fbe | 7420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7421 | (exit $ac_status); }; }; then |
7422 | ac_cv_func_fork_works=yes | |
7423 | else | |
ec6a6fbe AK |
7424 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7425 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7426 | sed 's/^/| /' conftest.$ac_ext >&5 |
7427 | ||
7428 | ( exit $ac_status ) | |
7429 | ac_cv_func_fork_works=no | |
7430 | fi | |
ec6a6fbe | 7431 | rm -rf conftest.dSYM |
7a197a62 | 7432 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7433 | fi |
7a197a62 AK |
7434 | |
7435 | ||
ad6254c5 | 7436 | fi |
ec6a6fbe AK |
7437 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7438 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7439 | |
7440 | else | |
7441 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7442 | fi | |
7443 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7444 | case $host in | |
7445 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7446 | # Override, as these systems have only a dummy fork() stub | |
7447 | ac_cv_func_fork_works=no | |
7448 | ;; | |
7449 | *) | |
7450 | ac_cv_func_fork_works=yes | |
7451 | ;; | |
7452 | esac | |
ec6a6fbe AK |
7453 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7454 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7455 | fi |
7456 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7457 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7458 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7459 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7460 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7461 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7462 | else |
7463 | if test "$cross_compiling" = yes; then | |
7464 | ac_cv_func_vfork_works=cross | |
7465 | else | |
7466 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7467 | /* confdefs.h. */ |
7468 | _ACEOF | |
7469 | cat confdefs.h >>conftest.$ac_ext | |
7470 | cat >>conftest.$ac_ext <<_ACEOF | |
7471 | /* end confdefs.h. */ | |
7472 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7473 | $ac_includes_default |
ad6254c5 | 7474 | #include <sys/wait.h> |
25fbec5b | 7475 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7476 | # include <vfork.h> |
7477 | #endif | |
7478 | /* On some sparc systems, changes by the child to local and incoming | |
7479 | argument registers are propagated back to the parent. The compiler | |
7480 | is told about this with #include <vfork.h>, but some compilers | |
7481 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7482 | static variable whose address is put into a register that is | |
7483 | clobbered by the vfork. */ | |
7484 | static void | |
7485 | #ifdef __cplusplus | |
7486 | sparc_address_test (int arg) | |
7487 | # else | |
7488 | sparc_address_test (arg) int arg; | |
7489 | #endif | |
7490 | { | |
7491 | static pid_t child; | |
7492 | if (!child) { | |
7493 | child = vfork (); | |
7494 | if (child < 0) { | |
7495 | perror ("vfork"); | |
7496 | _exit(2); | |
7497 | } | |
7498 | if (!child) { | |
7499 | arg = getpid(); | |
7500 | write(-1, "", 0); | |
7501 | _exit (arg); | |
7502 | } | |
7503 | } | |
7504 | } | |
7505 | ||
7506 | int | |
7507 | main () | |
7508 | { | |
7509 | pid_t parent = getpid (); | |
7510 | pid_t child; | |
7511 | ||
7512 | sparc_address_test (0); | |
7513 | ||
7514 | child = vfork (); | |
7515 | ||
7516 | if (child == 0) { | |
7517 | /* Here is another test for sparc vfork register problems. This | |
7518 | test uses lots of local variables, at least as many local | |
7519 | variables as main has allocated so far including compiler | |
7520 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7521 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7522 | reuse the register of parent for one of the local variables, | |
7523 | since it will think that parent can't possibly be used any more | |
7524 | in this routine. Assigning to the local variable will thus | |
7525 | munge parent in the parent process. */ | |
7526 | pid_t | |
7527 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7528 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7529 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7530 | use the same hardware register for all 8 local variables. */ | |
7531 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7532 | || p != p5 || p != p6 || p != p7) | |
7533 | _exit(1); | |
7534 | ||
7535 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7536 | from child file descriptors. If the child closes a descriptor | |
7537 | before it execs or exits, this munges the parent's descriptor | |
7538 | as well. Test for this by closing stdout in the child. */ | |
7539 | _exit(close(fileno(stdout)) != 0); | |
7540 | } else { | |
7541 | int status; | |
7542 | struct stat st; | |
7543 | ||
7544 | while (wait(&status) != child) | |
7545 | ; | |
7a197a62 | 7546 | return ( |
ad6254c5 AK |
7547 | /* Was there some problem with vforking? */ |
7548 | child < 0 | |
7549 | ||
7550 | /* Did the child fail? (This shouldn't happen.) */ | |
7551 | || status | |
7552 | ||
7553 | /* Did the vfork/compiler bug occur? */ | |
7554 | || parent != getpid() | |
7555 | ||
7556 | /* Did the file descriptor bug occur? */ | |
7557 | || fstat(fileno(stdout), &st) != 0 | |
7558 | ); | |
7559 | } | |
7560 | } | |
7561 | _ACEOF | |
7562 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7563 | if { (ac_try="$ac_link" |
7564 | case "(($ac_try" in | |
7565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7566 | *) ac_try_echo=$ac_try;; | |
7567 | esac | |
ec6a6fbe AK |
7568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7569 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7570 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7571 | ac_status=$? |
ec6a6fbe | 7572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7573 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7574 | { (case "(($ac_try" in |
7575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7576 | *) ac_try_echo=$ac_try;; | |
7577 | esac | |
ec6a6fbe AK |
7578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7579 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7580 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7581 | ac_status=$? |
ec6a6fbe | 7582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7583 | (exit $ac_status); }; }; then |
7584 | ac_cv_func_vfork_works=yes | |
7585 | else | |
ec6a6fbe AK |
7586 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7587 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7588 | sed 's/^/| /' conftest.$ac_ext >&5 |
7589 | ||
7590 | ( exit $ac_status ) | |
7591 | ac_cv_func_vfork_works=no | |
7592 | fi | |
ec6a6fbe | 7593 | rm -rf conftest.dSYM |
7a197a62 | 7594 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7595 | fi |
7a197a62 AK |
7596 | |
7597 | ||
ad6254c5 | 7598 | fi |
ec6a6fbe AK |
7599 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7600 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7601 | |
7602 | fi; | |
7603 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7604 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7605 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7606 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7607 | fi |
7608 | ||
7609 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7610 | ||
7611 | cat >>confdefs.h <<\_ACEOF | |
7612 | #define HAVE_WORKING_VFORK 1 | |
7613 | _ACEOF | |
7614 | ||
7615 | else | |
7616 | ||
7617 | cat >>confdefs.h <<\_ACEOF | |
7618 | #define vfork fork | |
7619 | _ACEOF | |
7620 | ||
7621 | fi | |
7622 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7623 | ||
7624 | cat >>confdefs.h <<\_ACEOF | |
7625 | #define HAVE_WORKING_FORK 1 | |
7626 | _ACEOF | |
7627 | ||
7628 | fi | |
7629 | ||
ec6a6fbe AK |
7630 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7631 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7632 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7633 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7634 | else |
7635 | rm -f conftest.sym conftest.file | |
7636 | echo >conftest.file | |
7637 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7638 | if test "$cross_compiling" = yes; then | |
7639 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7640 | else | |
7641 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7642 | /* confdefs.h. */ |
7643 | _ACEOF | |
7644 | cat confdefs.h >>conftest.$ac_ext | |
7645 | cat >>conftest.$ac_ext <<_ACEOF | |
7646 | /* end confdefs.h. */ | |
7647 | $ac_includes_default | |
7648 | int | |
7649 | main () | |
7650 | { | |
7651 | struct stat sbuf; | |
7652 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7653 | That is better in the sense that it means we will not |
7654 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7655 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7656 | ; |
7657 | return 0; | |
7658 | } | |
7659 | _ACEOF | |
7660 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7661 | if { (ac_try="$ac_link" |
7662 | case "(($ac_try" in | |
7663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7664 | *) ac_try_echo=$ac_try;; | |
7665 | esac | |
ec6a6fbe AK |
7666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7667 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7668 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7669 | ac_status=$? |
ec6a6fbe | 7670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7672 | { (case "(($ac_try" in |
7673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7674 | *) ac_try_echo=$ac_try;; | |
7675 | esac | |
ec6a6fbe AK |
7676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7677 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7678 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7679 | ac_status=$? |
ec6a6fbe | 7680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7681 | (exit $ac_status); }; }; then |
7682 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7683 | else | |
ec6a6fbe AK |
7684 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7685 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7686 | sed 's/^/| /' conftest.$ac_ext >&5 |
7687 | ||
7688 | ( exit $ac_status ) | |
7689 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7690 | fi | |
ec6a6fbe | 7691 | rm -rf conftest.dSYM |
7a197a62 | 7692 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7693 | fi |
7a197a62 AK |
7694 | |
7695 | ||
ad6254c5 AK |
7696 | else |
7697 | # If the `ln -s' command failed, then we probably don't even | |
7698 | # have an lstat function. | |
7699 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7700 | fi | |
7701 | rm -f conftest.sym conftest.file | |
7702 | ||
7703 | fi | |
ec6a6fbe AK |
7704 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7705 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7706 | |
7707 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7708 | ||
7709 | cat >>confdefs.h <<_ACEOF | |
7710 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7711 | _ACEOF | |
7712 | ||
7713 | ||
7714 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7715 | case " $LIBOBJS " in |
8a2fc586 | 7716 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7717 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7718 | ;; | |
8a2fc586 AK |
7719 | esac |
7720 | ||
ad6254c5 AK |
7721 | fi |
7722 | ||
ec6a6fbe AK |
7723 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7724 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7725 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7726 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7727 | else |
7728 | if test "$cross_compiling" = yes; then | |
7729 | ac_cv_func_lstat_empty_string_bug=yes | |
7730 | else | |
7731 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7732 | /* confdefs.h. */ |
7733 | _ACEOF | |
7734 | cat confdefs.h >>conftest.$ac_ext | |
7735 | cat >>conftest.$ac_ext <<_ACEOF | |
7736 | /* end confdefs.h. */ | |
7737 | $ac_includes_default | |
7738 | int | |
7739 | main () | |
7740 | { | |
7741 | struct stat sbuf; | |
7a197a62 | 7742 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7743 | ; |
7744 | return 0; | |
7745 | } | |
7746 | _ACEOF | |
7747 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7748 | if { (ac_try="$ac_link" |
7749 | case "(($ac_try" in | |
7750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7751 | *) ac_try_echo=$ac_try;; | |
7752 | esac | |
ec6a6fbe AK |
7753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7754 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7755 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7756 | ac_status=$? |
ec6a6fbe | 7757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7759 | { (case "(($ac_try" in |
7760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7761 | *) ac_try_echo=$ac_try;; | |
7762 | esac | |
ec6a6fbe AK |
7763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7764 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7765 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7766 | ac_status=$? |
ec6a6fbe | 7767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7768 | (exit $ac_status); }; }; then |
7a197a62 | 7769 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7770 | else |
ec6a6fbe AK |
7771 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7772 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7773 | sed 's/^/| /' conftest.$ac_ext >&5 |
7774 | ||
7775 | ( exit $ac_status ) | |
7a197a62 | 7776 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7777 | fi |
ec6a6fbe | 7778 | rm -rf conftest.dSYM |
7a197a62 | 7779 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7780 | fi |
7a197a62 AK |
7781 | |
7782 | ||
ad6254c5 | 7783 | fi |
ec6a6fbe AK |
7784 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7785 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7786 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7787 | case " $LIBOBJS " in |
8a2fc586 | 7788 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7789 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7790 | ;; | |
8a2fc586 AK |
7791 | esac |
7792 | ||
ad6254c5 AK |
7793 | |
7794 | cat >>confdefs.h <<_ACEOF | |
7795 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7796 | _ACEOF | |
7797 | ||
7798 | fi | |
7799 | ||
7800 | ||
7801 | for ac_header in stdlib.h | |
7802 | do | |
ec6a6fbe | 7803 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7804 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7805 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7806 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7807 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7808 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7809 | fi |
ec6a6fbe AK |
7810 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7811 | $as_echo "$as_val"'` | |
7812 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7813 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7814 | else |
7815 | # Is the header compilable? | |
ec6a6fbe AK |
7816 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7817 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7818 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7819 | /* confdefs.h. */ |
7820 | _ACEOF | |
7821 | cat confdefs.h >>conftest.$ac_ext | |
7822 | cat >>conftest.$ac_ext <<_ACEOF | |
7823 | /* end confdefs.h. */ | |
7824 | $ac_includes_default | |
7825 | #include <$ac_header> | |
7826 | _ACEOF | |
7827 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7828 | if { (ac_try="$ac_compile" |
7829 | case "(($ac_try" in | |
7830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7831 | *) ac_try_echo=$ac_try;; | |
7832 | esac | |
ec6a6fbe AK |
7833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7834 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7835 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7836 | ac_status=$? |
8a2fc586 AK |
7837 | grep -v '^ *+' conftest.er1 >conftest.err |
7838 | rm -f conftest.er1 | |
7839 | cat conftest.err >&5 | |
ec6a6fbe | 7840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7841 | (exit $ac_status); } && { |
7842 | test -z "$ac_c_werror_flag" || | |
7843 | test ! -s conftest.err | |
7844 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7845 | ac_header_compiler=yes |
7846 | else | |
ec6a6fbe | 7847 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7848 | sed 's/^/| /' conftest.$ac_ext >&5 |
7849 | ||
7a197a62 | 7850 | ac_header_compiler=no |
ad6254c5 | 7851 | fi |
7a197a62 AK |
7852 | |
7853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7854 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7855 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7856 | |
7857 | # Is the header present? | |
ec6a6fbe AK |
7858 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7859 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7860 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7861 | /* confdefs.h. */ |
7862 | _ACEOF | |
7863 | cat confdefs.h >>conftest.$ac_ext | |
7864 | cat >>conftest.$ac_ext <<_ACEOF | |
7865 | /* end confdefs.h. */ | |
7866 | #include <$ac_header> | |
7867 | _ACEOF | |
7a197a62 AK |
7868 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7869 | case "(($ac_try" in | |
7870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7871 | *) ac_try_echo=$ac_try;; | |
7872 | esac | |
ec6a6fbe AK |
7873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7874 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7875 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7876 | ac_status=$? |
7877 | grep -v '^ *+' conftest.er1 >conftest.err | |
7878 | rm -f conftest.er1 | |
7879 | cat conftest.err >&5 | |
ec6a6fbe | 7880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7881 | (exit $ac_status); } >/dev/null && { |
7882 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7883 | test ! -s conftest.err | |
7884 | }; then | |
ad6254c5 AK |
7885 | ac_header_preproc=yes |
7886 | else | |
ec6a6fbe | 7887 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7888 | sed 's/^/| /' conftest.$ac_ext >&5 |
7889 | ||
7890 | ac_header_preproc=no | |
7891 | fi | |
7a197a62 | 7892 | |
ad6254c5 | 7893 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7894 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7895 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7896 | |
7897 | # So? What about this header? | |
8a2fc586 AK |
7898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7899 | yes:no: ) | |
ec6a6fbe AK |
7900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7901 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7902 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7903 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7904 | ac_header_preproc=yes |
ad6254c5 | 7905 | ;; |
8a2fc586 | 7906 | no:yes:* ) |
ec6a6fbe AK |
7907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7908 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7910 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7912 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7913 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7914 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7916 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7917 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7918 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7919 | |
ad6254c5 AK |
7920 | ;; |
7921 | esac | |
ec6a6fbe AK |
7922 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7923 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7925 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7926 | else |
8a2fc586 | 7927 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7928 | fi |
ec6a6fbe AK |
7929 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7930 | $as_echo "$as_val"'` | |
7931 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7932 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7933 | |
7934 | fi | |
ec6a6fbe AK |
7935 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7936 | $as_echo "$as_val"'` | |
7937 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7938 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7939 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7940 | _ACEOF |
7941 | ||
7942 | fi | |
7943 | ||
7944 | done | |
7945 | ||
ec6a6fbe AK |
7946 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7947 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7948 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7949 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7950 | else |
7951 | if test "$cross_compiling" = yes; then | |
7952 | ac_cv_func_malloc_0_nonnull=no | |
7953 | else | |
7954 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7955 | /* confdefs.h. */ |
7956 | _ACEOF | |
7957 | cat confdefs.h >>conftest.$ac_ext | |
7958 | cat >>conftest.$ac_ext <<_ACEOF | |
7959 | /* end confdefs.h. */ | |
25fbec5b | 7960 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7961 | # include <stdlib.h> |
7962 | #else | |
7963 | char *malloc (); | |
7964 | #endif | |
7965 | ||
7966 | int | |
7967 | main () | |
7968 | { | |
7a197a62 | 7969 | return ! malloc (0); |
ad6254c5 AK |
7970 | ; |
7971 | return 0; | |
7972 | } | |
7973 | _ACEOF | |
7974 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7975 | if { (ac_try="$ac_link" |
7976 | case "(($ac_try" in | |
7977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7978 | *) ac_try_echo=$ac_try;; | |
7979 | esac | |
ec6a6fbe AK |
7980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7981 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7982 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7983 | ac_status=$? |
ec6a6fbe | 7984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7986 | { (case "(($ac_try" in |
7987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7988 | *) ac_try_echo=$ac_try;; | |
7989 | esac | |
ec6a6fbe AK |
7990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7991 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7992 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7993 | ac_status=$? |
ec6a6fbe | 7994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7995 | (exit $ac_status); }; }; then |
7996 | ac_cv_func_malloc_0_nonnull=yes | |
7997 | else | |
ec6a6fbe AK |
7998 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7999 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8000 | sed 's/^/| /' conftest.$ac_ext >&5 |
8001 | ||
8002 | ( exit $ac_status ) | |
8003 | ac_cv_func_malloc_0_nonnull=no | |
8004 | fi | |
ec6a6fbe | 8005 | rm -rf conftest.dSYM |
7a197a62 | 8006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8007 | fi |
7a197a62 AK |
8008 | |
8009 | ||
ad6254c5 | 8010 | fi |
ec6a6fbe AK |
8011 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
8012 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
8013 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
8014 | ||
8015 | cat >>confdefs.h <<\_ACEOF | |
8016 | #define HAVE_MALLOC 1 | |
8017 | _ACEOF | |
8018 | ||
8019 | else | |
8020 | cat >>confdefs.h <<\_ACEOF | |
8021 | #define HAVE_MALLOC 0 | |
8022 | _ACEOF | |
8023 | ||
7a197a62 | 8024 | case " $LIBOBJS " in |
8a2fc586 | 8025 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
8026 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
8027 | ;; | |
8a2fc586 AK |
8028 | esac |
8029 | ||
ad6254c5 AK |
8030 | |
8031 | cat >>confdefs.h <<\_ACEOF | |
8032 | #define malloc rpl_malloc | |
8033 | _ACEOF | |
8034 | ||
8035 | fi | |
8036 | ||
8037 | ||
8038 | ||
ec6a6fbe AK |
8039 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
8040 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 8041 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 8042 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8043 | else |
8044 | if test "$cross_compiling" = yes; then | |
8045 | ac_cv_func_memcmp_working=no | |
8046 | else | |
8047 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8048 | /* confdefs.h. */ |
8049 | _ACEOF | |
8050 | cat confdefs.h >>conftest.$ac_ext | |
8051 | cat >>conftest.$ac_ext <<_ACEOF | |
8052 | /* end confdefs.h. */ | |
8a2fc586 | 8053 | $ac_includes_default |
ad6254c5 AK |
8054 | int |
8055 | main () | |
8056 | { | |
8057 | ||
8058 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 8059 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 8060 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 8061 | return 1; |
ad6254c5 AK |
8062 | |
8063 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8064 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8065 | William Lewis provided this test program. */ | |
8066 | { | |
8067 | char foo[21]; | |
8068 | char bar[21]; | |
8069 | int i; | |
8070 | for (i = 0; i < 4; i++) | |
8071 | { | |
8a2fc586 AK |
8072 | char *a = foo + i; |
8073 | char *b = bar + i; | |
8074 | strcpy (a, "--------01111111"); | |
8075 | strcpy (b, "--------10000000"); | |
8076 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 8077 | return 1; |
ad6254c5 | 8078 | } |
7a197a62 | 8079 | return 0; |
ad6254c5 AK |
8080 | } |
8081 | ||
8082 | ; | |
8083 | return 0; | |
8084 | } | |
8085 | _ACEOF | |
8086 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8087 | if { (ac_try="$ac_link" |
8088 | case "(($ac_try" in | |
8089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8090 | *) ac_try_echo=$ac_try;; | |
8091 | esac | |
ec6a6fbe AK |
8092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8093 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8094 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8095 | ac_status=$? |
ec6a6fbe | 8096 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8097 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8098 | { (case "(($ac_try" in |
8099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8100 | *) ac_try_echo=$ac_try;; | |
8101 | esac | |
ec6a6fbe AK |
8102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8103 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8104 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8105 | ac_status=$? |
ec6a6fbe | 8106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8107 | (exit $ac_status); }; }; then |
8108 | ac_cv_func_memcmp_working=yes | |
8109 | else | |
ec6a6fbe AK |
8110 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8111 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8112 | sed 's/^/| /' conftest.$ac_ext >&5 |
8113 | ||
8114 | ( exit $ac_status ) | |
8115 | ac_cv_func_memcmp_working=no | |
8116 | fi | |
ec6a6fbe | 8117 | rm -rf conftest.dSYM |
7a197a62 | 8118 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8119 | fi |
7a197a62 AK |
8120 | |
8121 | ||
ad6254c5 | 8122 | fi |
ec6a6fbe AK |
8123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
8124 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 8125 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 8126 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
8127 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8128 | ;; | |
8a2fc586 AK |
8129 | esac |
8130 | ||
ad6254c5 AK |
8131 | |
8132 | ||
8133 | ||
8134 | for ac_header in stdlib.h unistd.h | |
8135 | do | |
ec6a6fbe | 8136 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8137 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8138 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8139 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8141 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8142 | fi |
ec6a6fbe AK |
8143 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8144 | $as_echo "$as_val"'` | |
8145 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8146 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8147 | else |
8148 | # Is the header compilable? | |
ec6a6fbe AK |
8149 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8150 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8151 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8152 | /* confdefs.h. */ |
8153 | _ACEOF | |
8154 | cat confdefs.h >>conftest.$ac_ext | |
8155 | cat >>conftest.$ac_ext <<_ACEOF | |
8156 | /* end confdefs.h. */ | |
8157 | $ac_includes_default | |
8158 | #include <$ac_header> | |
8159 | _ACEOF | |
8160 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8161 | if { (ac_try="$ac_compile" |
8162 | case "(($ac_try" in | |
8163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8164 | *) ac_try_echo=$ac_try;; | |
8165 | esac | |
ec6a6fbe AK |
8166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8167 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8168 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8169 | ac_status=$? |
8a2fc586 AK |
8170 | grep -v '^ *+' conftest.er1 >conftest.err |
8171 | rm -f conftest.er1 | |
8172 | cat conftest.err >&5 | |
ec6a6fbe | 8173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8174 | (exit $ac_status); } && { |
8175 | test -z "$ac_c_werror_flag" || | |
8176 | test ! -s conftest.err | |
8177 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8178 | ac_header_compiler=yes |
8179 | else | |
ec6a6fbe | 8180 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8181 | sed 's/^/| /' conftest.$ac_ext >&5 |
8182 | ||
7a197a62 | 8183 | ac_header_compiler=no |
ad6254c5 | 8184 | fi |
7a197a62 AK |
8185 | |
8186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8187 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8188 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8189 | |
8190 | # Is the header present? | |
ec6a6fbe AK |
8191 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8192 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8193 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8194 | /* confdefs.h. */ |
8195 | _ACEOF | |
8196 | cat confdefs.h >>conftest.$ac_ext | |
8197 | cat >>conftest.$ac_ext <<_ACEOF | |
8198 | /* end confdefs.h. */ | |
8199 | #include <$ac_header> | |
8200 | _ACEOF | |
7a197a62 AK |
8201 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8202 | case "(($ac_try" in | |
8203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8204 | *) ac_try_echo=$ac_try;; | |
8205 | esac | |
ec6a6fbe AK |
8206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8207 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8208 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8209 | ac_status=$? |
8210 | grep -v '^ *+' conftest.er1 >conftest.err | |
8211 | rm -f conftest.er1 | |
8212 | cat conftest.err >&5 | |
ec6a6fbe | 8213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8214 | (exit $ac_status); } >/dev/null && { |
8215 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8216 | test ! -s conftest.err | |
8217 | }; then | |
ad6254c5 AK |
8218 | ac_header_preproc=yes |
8219 | else | |
ec6a6fbe | 8220 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8221 | sed 's/^/| /' conftest.$ac_ext >&5 |
8222 | ||
8223 | ac_header_preproc=no | |
8224 | fi | |
7a197a62 | 8225 | |
ad6254c5 | 8226 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8227 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8228 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8229 | |
8230 | # So? What about this header? | |
8a2fc586 AK |
8231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8232 | yes:no: ) | |
ec6a6fbe AK |
8233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8234 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8236 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8237 | ac_header_preproc=yes |
ad6254c5 | 8238 | ;; |
8a2fc586 | 8239 | no:yes:* ) |
ec6a6fbe AK |
8240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8241 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8243 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8244 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8245 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8247 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8249 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8251 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8252 | |
ad6254c5 AK |
8253 | ;; |
8254 | esac | |
ec6a6fbe AK |
8255 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8256 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8258 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8259 | else |
8a2fc586 | 8260 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8261 | fi |
ec6a6fbe AK |
8262 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8263 | $as_echo "$as_val"'` | |
8264 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8265 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8266 | |
8267 | fi | |
ec6a6fbe AK |
8268 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8269 | $as_echo "$as_val"'` | |
8270 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8271 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8272 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8273 | _ACEOF |
8274 | ||
8275 | fi | |
8276 | ||
8277 | done | |
8278 | ||
8279 | ||
8280 | for ac_func in getpagesize | |
8281 | do | |
ec6a6fbe AK |
8282 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8283 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8284 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8285 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8286 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8287 | else |
8288 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8289 | /* confdefs.h. */ |
8290 | _ACEOF | |
8291 | cat confdefs.h >>conftest.$ac_ext | |
8292 | cat >>conftest.$ac_ext <<_ACEOF | |
8293 | /* end confdefs.h. */ | |
8a2fc586 AK |
8294 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8295 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8296 | #define $ac_func innocuous_$ac_func | |
8297 | ||
ad6254c5 AK |
8298 | /* System header to define __stub macros and hopefully few prototypes, |
8299 | which can conflict with char $ac_func (); below. | |
8300 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8301 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8302 | |
ad6254c5 AK |
8303 | #ifdef __STDC__ |
8304 | # include <limits.h> | |
8305 | #else | |
8306 | # include <assert.h> | |
8307 | #endif | |
8a2fc586 AK |
8308 | |
8309 | #undef $ac_func | |
8310 | ||
7a197a62 AK |
8311 | /* Override any GCC internal prototype to avoid an error. |
8312 | Use char because int might match the return type of a GCC | |
8313 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8314 | #ifdef __cplusplus |
8315 | extern "C" | |
ad6254c5 | 8316 | #endif |
ad6254c5 AK |
8317 | char $ac_func (); |
8318 | /* The GNU C library defines this for functions which it implements | |
8319 | to always fail with ENOSYS. Some functions are actually named | |
8320 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8321 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8322 | choke me |
ad6254c5 AK |
8323 | #endif |
8324 | ||
8325 | int | |
8326 | main () | |
8327 | { | |
7a197a62 | 8328 | return $ac_func (); |
ad6254c5 AK |
8329 | ; |
8330 | return 0; | |
8331 | } | |
8332 | _ACEOF | |
8333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8334 | if { (ac_try="$ac_link" |
8335 | case "(($ac_try" in | |
8336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8337 | *) ac_try_echo=$ac_try;; | |
8338 | esac | |
ec6a6fbe AK |
8339 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8340 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8341 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8342 | ac_status=$? |
8a2fc586 AK |
8343 | grep -v '^ *+' conftest.er1 >conftest.err |
8344 | rm -f conftest.er1 | |
8345 | cat conftest.err >&5 | |
ec6a6fbe | 8346 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8347 | (exit $ac_status); } && { |
8348 | test -z "$ac_c_werror_flag" || | |
8349 | test ! -s conftest.err | |
ec6a6fbe AK |
8350 | } && test -s conftest$ac_exeext && { |
8351 | test "$cross_compiling" = yes || | |
8352 | $as_test_x conftest$ac_exeext | |
8353 | }; then | |
ad6254c5 AK |
8354 | eval "$as_ac_var=yes" |
8355 | else | |
ec6a6fbe | 8356 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8357 | sed 's/^/| /' conftest.$ac_ext >&5 |
8358 | ||
7a197a62 | 8359 | eval "$as_ac_var=no" |
ad6254c5 | 8360 | fi |
7a197a62 | 8361 | |
ec6a6fbe | 8362 | rm -rf conftest.dSYM |
25fbec5b | 8363 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8364 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8365 | fi |
ec6a6fbe AK |
8366 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8367 | $as_echo "$as_val"'` | |
8368 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8369 | $as_echo "$ac_res" >&6; } | |
8370 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8371 | $as_echo "$as_val"'` | |
8372 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8373 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8374 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8375 | _ACEOF |
8376 | ||
8377 | fi | |
8378 | done | |
8379 | ||
ec6a6fbe AK |
8380 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8381 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8382 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8383 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8384 | else |
8385 | if test "$cross_compiling" = yes; then | |
8386 | ac_cv_func_mmap_fixed_mapped=no | |
8387 | else | |
8388 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8389 | /* confdefs.h. */ |
8390 | _ACEOF | |
8391 | cat confdefs.h >>conftest.$ac_ext | |
8392 | cat >>conftest.$ac_ext <<_ACEOF | |
8393 | /* end confdefs.h. */ | |
8394 | $ac_includes_default | |
8395 | /* malloc might have been renamed as rpl_malloc. */ | |
8396 | #undef malloc | |
8397 | ||
8398 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8399 | Here is a matrix of mmap possibilities: | |
8400 | mmap private not fixed | |
8401 | mmap private fixed at somewhere currently unmapped | |
8402 | mmap private fixed at somewhere already mapped | |
8403 | mmap shared not fixed | |
8404 | mmap shared fixed at somewhere currently unmapped | |
8405 | mmap shared fixed at somewhere already mapped | |
8406 | For private mappings, we should verify that changes cannot be read() | |
8407 | back from the file, nor mmap's back from the file at a different | |
8408 | address. (There have been systems where private was not correctly | |
8409 | implemented like the infamous i386 svr4.0, and systems where the | |
8410 | VM page cache was not coherent with the file system buffer cache | |
8411 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8412 | For shared mappings, we should conversely verify that changes get | |
8413 | propagated back to all the places they're supposed to be. | |
8414 | ||
8415 | Grep wants private fixed already mapped. | |
8416 | The main things grep needs to know about mmap are: | |
8417 | * does it exist and is it safe to write into the mmap'd area | |
8418 | * how to use it (BSD variants) */ | |
8419 | ||
8420 | #include <fcntl.h> | |
8421 | #include <sys/mman.h> | |
8422 | ||
25fbec5b | 8423 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8424 | char *malloc (); |
8425 | #endif | |
8426 | ||
8427 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8428 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8429 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8430 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8431 | # define HAVE_SYS_PARAM_H 1 |
8432 | # endif | |
8433 | ||
8434 | # ifdef _SC_PAGESIZE | |
8435 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8436 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8437 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8438 | # include <sys/param.h> |
8439 | # ifdef EXEC_PAGESIZE | |
8440 | # define getpagesize() EXEC_PAGESIZE | |
8441 | # else /* no EXEC_PAGESIZE */ | |
8442 | # ifdef NBPG | |
8443 | # define getpagesize() NBPG * CLSIZE | |
8444 | # ifndef CLSIZE | |
8445 | # define CLSIZE 1 | |
8446 | # endif /* no CLSIZE */ | |
8447 | # else /* no NBPG */ | |
8448 | # ifdef NBPC | |
8449 | # define getpagesize() NBPC | |
8450 | # else /* no NBPC */ | |
8451 | # ifdef PAGESIZE | |
8452 | # define getpagesize() PAGESIZE | |
8453 | # endif /* PAGESIZE */ | |
8454 | # endif /* no NBPC */ | |
8455 | # endif /* no NBPG */ | |
8456 | # endif /* no EXEC_PAGESIZE */ | |
8457 | # else /* no HAVE_SYS_PARAM_H */ | |
8458 | # define getpagesize() 8192 /* punt totally */ | |
8459 | # endif /* no HAVE_SYS_PARAM_H */ | |
8460 | # endif /* no _SC_PAGESIZE */ | |
8461 | ||
8462 | #endif /* no HAVE_GETPAGESIZE */ | |
8463 | ||
8464 | int | |
8465 | main () | |
8466 | { | |
8467 | char *data, *data2, *data3; | |
8468 | int i, pagesize; | |
8469 | int fd; | |
8470 | ||
8471 | pagesize = getpagesize (); | |
8472 | ||
8473 | /* First, make a file with some known garbage in it. */ | |
8474 | data = (char *) malloc (pagesize); | |
8475 | if (!data) | |
7a197a62 | 8476 | return 1; |
ad6254c5 AK |
8477 | for (i = 0; i < pagesize; ++i) |
8478 | *(data + i) = rand (); | |
8479 | umask (0); | |
8480 | fd = creat ("conftest.mmap", 0600); | |
8481 | if (fd < 0) | |
7a197a62 | 8482 | return 1; |
ad6254c5 | 8483 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8484 | return 1; |
ad6254c5 AK |
8485 | close (fd); |
8486 | ||
8487 | /* Next, try to mmap the file at a fixed address which already has | |
8488 | something else allocated at it. If we can, also make sure that | |
8489 | we see the same garbage. */ | |
8490 | fd = open ("conftest.mmap", O_RDWR); | |
8491 | if (fd < 0) | |
7a197a62 | 8492 | return 1; |
ad6254c5 AK |
8493 | data2 = (char *) malloc (2 * pagesize); |
8494 | if (!data2) | |
7a197a62 AK |
8495 | return 1; |
8496 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8497 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8498 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8499 | return 1; |
ad6254c5 AK |
8500 | for (i = 0; i < pagesize; ++i) |
8501 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8502 | return 1; |
ad6254c5 AK |
8503 | |
8504 | /* Finally, make sure that changes to the mapped area do not | |
8505 | percolate back to the file as seen by read(). (This is a bug on | |
8506 | some variants of i386 svr4.0.) */ | |
8507 | for (i = 0; i < pagesize; ++i) | |
8508 | *(data2 + i) = *(data2 + i) + 1; | |
8509 | data3 = (char *) malloc (pagesize); | |
8510 | if (!data3) | |
7a197a62 | 8511 | return 1; |
ad6254c5 | 8512 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8513 | return 1; |
ad6254c5 AK |
8514 | for (i = 0; i < pagesize; ++i) |
8515 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8516 | return 1; |
ad6254c5 | 8517 | close (fd); |
7a197a62 | 8518 | return 0; |
ad6254c5 AK |
8519 | } |
8520 | _ACEOF | |
8521 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8522 | if { (ac_try="$ac_link" |
8523 | case "(($ac_try" in | |
8524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8525 | *) ac_try_echo=$ac_try;; | |
8526 | esac | |
ec6a6fbe AK |
8527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8528 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8529 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8530 | ac_status=$? |
ec6a6fbe | 8531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8532 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8533 | { (case "(($ac_try" in |
8534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8535 | *) ac_try_echo=$ac_try;; | |
8536 | esac | |
ec6a6fbe AK |
8537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8538 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8539 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8540 | ac_status=$? |
ec6a6fbe | 8541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8542 | (exit $ac_status); }; }; then |
8543 | ac_cv_func_mmap_fixed_mapped=yes | |
8544 | else | |
ec6a6fbe AK |
8545 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8546 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8547 | sed 's/^/| /' conftest.$ac_ext >&5 |
8548 | ||
8549 | ( exit $ac_status ) | |
8550 | ac_cv_func_mmap_fixed_mapped=no | |
8551 | fi | |
ec6a6fbe | 8552 | rm -rf conftest.dSYM |
7a197a62 | 8553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8554 | fi |
7a197a62 AK |
8555 | |
8556 | ||
ad6254c5 | 8557 | fi |
ec6a6fbe AK |
8558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8559 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8560 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8561 | ||
8562 | cat >>confdefs.h <<\_ACEOF | |
8563 | #define HAVE_MMAP 1 | |
8564 | _ACEOF | |
8565 | ||
8566 | fi | |
8567 | rm -f conftest.mmap | |
8568 | ||
ec6a6fbe AK |
8569 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8570 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8571 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8572 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8573 | else |
8574 | if test "$cross_compiling" = yes; then | |
8575 | ac_cv_func_stat_empty_string_bug=yes | |
8576 | else | |
8577 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8578 | /* confdefs.h. */ |
8579 | _ACEOF | |
8580 | cat confdefs.h >>conftest.$ac_ext | |
8581 | cat >>conftest.$ac_ext <<_ACEOF | |
8582 | /* end confdefs.h. */ | |
8583 | $ac_includes_default | |
8584 | int | |
8585 | main () | |
8586 | { | |
8587 | struct stat sbuf; | |
7a197a62 | 8588 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8589 | ; |
8590 | return 0; | |
8591 | } | |
8592 | _ACEOF | |
8593 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8594 | if { (ac_try="$ac_link" |
8595 | case "(($ac_try" in | |
8596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8597 | *) ac_try_echo=$ac_try;; | |
8598 | esac | |
ec6a6fbe AK |
8599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8600 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8601 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8602 | ac_status=$? |
ec6a6fbe | 8603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8605 | { (case "(($ac_try" in |
8606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8607 | *) ac_try_echo=$ac_try;; | |
8608 | esac | |
ec6a6fbe AK |
8609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8610 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8611 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8612 | ac_status=$? |
ec6a6fbe | 8613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8614 | (exit $ac_status); }; }; then |
7a197a62 | 8615 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8616 | else |
ec6a6fbe AK |
8617 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8618 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8619 | sed 's/^/| /' conftest.$ac_ext >&5 |
8620 | ||
8621 | ( exit $ac_status ) | |
7a197a62 | 8622 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8623 | fi |
ec6a6fbe | 8624 | rm -rf conftest.dSYM |
7a197a62 | 8625 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8626 | fi |
7a197a62 AK |
8627 | |
8628 | ||
ad6254c5 | 8629 | fi |
ec6a6fbe AK |
8630 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8631 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8632 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8633 | case " $LIBOBJS " in |
8a2fc586 | 8634 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8635 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8636 | ;; | |
8a2fc586 AK |
8637 | esac |
8638 | ||
ad6254c5 AK |
8639 | |
8640 | cat >>confdefs.h <<_ACEOF | |
8641 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8642 | _ACEOF | |
8643 | ||
8644 | fi | |
8645 | ||
ec6a6fbe AK |
8646 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8647 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8648 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8649 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8650 | else |
8651 | if test "$cross_compiling" = yes; then | |
8652 | ac_cv_func_strtod=no | |
8653 | else | |
8654 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8655 | /* confdefs.h. */ |
8656 | _ACEOF | |
8657 | cat confdefs.h >>conftest.$ac_ext | |
8658 | cat >>conftest.$ac_ext <<_ACEOF | |
8659 | /* end confdefs.h. */ | |
8660 | ||
7a197a62 AK |
8661 | $ac_includes_default |
8662 | #ifndef strtod | |
ad6254c5 | 8663 | double strtod (); |
7a197a62 | 8664 | #endif |
ad6254c5 AK |
8665 | int |
8666 | main() | |
8667 | { | |
8668 | { | |
8669 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8670 | char *string = " +69"; | |
8671 | char *term; | |
8672 | double value; | |
8673 | value = strtod (string, &term); | |
8674 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8675 | return 1; |
ad6254c5 AK |
8676 | } |
8677 | ||
8678 | { | |
8679 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8680 | terminating character under some conditions. */ | |
8681 | char *string = "NaN"; | |
8682 | char *term; | |
8683 | strtod (string, &term); | |
8684 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8685 | return 1; |
ad6254c5 | 8686 | } |
7a197a62 | 8687 | return 0; |
ad6254c5 AK |
8688 | } |
8689 | ||
8690 | _ACEOF | |
8691 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8692 | if { (ac_try="$ac_link" |
8693 | case "(($ac_try" in | |
8694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8695 | *) ac_try_echo=$ac_try;; | |
8696 | esac | |
ec6a6fbe AK |
8697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8698 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8699 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8700 | ac_status=$? |
ec6a6fbe | 8701 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8702 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8703 | { (case "(($ac_try" in |
8704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8705 | *) ac_try_echo=$ac_try;; | |
8706 | esac | |
ec6a6fbe AK |
8707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8708 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8709 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8710 | ac_status=$? |
ec6a6fbe | 8711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8712 | (exit $ac_status); }; }; then |
8713 | ac_cv_func_strtod=yes | |
8714 | else | |
ec6a6fbe AK |
8715 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8716 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8717 | sed 's/^/| /' conftest.$ac_ext >&5 |
8718 | ||
8719 | ( exit $ac_status ) | |
8720 | ac_cv_func_strtod=no | |
8721 | fi | |
ec6a6fbe | 8722 | rm -rf conftest.dSYM |
7a197a62 | 8723 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8724 | fi |
7a197a62 AK |
8725 | |
8726 | ||
ad6254c5 | 8727 | fi |
ec6a6fbe AK |
8728 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8729 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8730 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8731 | case " $LIBOBJS " in |
8a2fc586 | 8732 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8733 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8734 | ;; | |
8a2fc586 AK |
8735 | esac |
8736 | ||
ec6a6fbe AK |
8737 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8738 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8739 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8740 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8741 | else |
8742 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8743 | /* confdefs.h. */ |
8744 | _ACEOF | |
8745 | cat confdefs.h >>conftest.$ac_ext | |
8746 | cat >>conftest.$ac_ext <<_ACEOF | |
8747 | /* end confdefs.h. */ | |
8a2fc586 AK |
8748 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8750 | #define pow innocuous_pow | |
8751 | ||
ad6254c5 AK |
8752 | /* System header to define __stub macros and hopefully few prototypes, |
8753 | which can conflict with char pow (); below. | |
8754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8755 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8756 | |
ad6254c5 AK |
8757 | #ifdef __STDC__ |
8758 | # include <limits.h> | |
8759 | #else | |
8760 | # include <assert.h> | |
8761 | #endif | |
8a2fc586 AK |
8762 | |
8763 | #undef pow | |
8764 | ||
7a197a62 AK |
8765 | /* Override any GCC internal prototype to avoid an error. |
8766 | Use char because int might match the return type of a GCC | |
8767 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8768 | #ifdef __cplusplus |
8769 | extern "C" | |
ad6254c5 | 8770 | #endif |
ad6254c5 AK |
8771 | char pow (); |
8772 | /* The GNU C library defines this for functions which it implements | |
8773 | to always fail with ENOSYS. Some functions are actually named | |
8774 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8775 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8776 | choke me |
ad6254c5 AK |
8777 | #endif |
8778 | ||
8779 | int | |
8780 | main () | |
8781 | { | |
7a197a62 | 8782 | return pow (); |
ad6254c5 AK |
8783 | ; |
8784 | return 0; | |
8785 | } | |
8786 | _ACEOF | |
8787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8788 | if { (ac_try="$ac_link" |
8789 | case "(($ac_try" in | |
8790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8791 | *) ac_try_echo=$ac_try;; | |
8792 | esac | |
ec6a6fbe AK |
8793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8794 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8795 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8796 | ac_status=$? |
8a2fc586 AK |
8797 | grep -v '^ *+' conftest.er1 >conftest.err |
8798 | rm -f conftest.er1 | |
8799 | cat conftest.err >&5 | |
ec6a6fbe | 8800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8801 | (exit $ac_status); } && { |
8802 | test -z "$ac_c_werror_flag" || | |
8803 | test ! -s conftest.err | |
ec6a6fbe AK |
8804 | } && test -s conftest$ac_exeext && { |
8805 | test "$cross_compiling" = yes || | |
8806 | $as_test_x conftest$ac_exeext | |
8807 | }; then | |
ad6254c5 AK |
8808 | ac_cv_func_pow=yes |
8809 | else | |
ec6a6fbe | 8810 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8811 | sed 's/^/| /' conftest.$ac_ext >&5 |
8812 | ||
7a197a62 | 8813 | ac_cv_func_pow=no |
ad6254c5 | 8814 | fi |
7a197a62 | 8815 | |
ec6a6fbe | 8816 | rm -rf conftest.dSYM |
25fbec5b | 8817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8818 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8819 | fi |
ec6a6fbe AK |
8820 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8821 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8822 | |
8823 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8824 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8825 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8826 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8827 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8828 | else |
8829 | ac_check_lib_save_LIBS=$LIBS | |
8830 | LIBS="-lm $LIBS" | |
8831 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8832 | /* confdefs.h. */ |
8833 | _ACEOF | |
8834 | cat confdefs.h >>conftest.$ac_ext | |
8835 | cat >>conftest.$ac_ext <<_ACEOF | |
8836 | /* end confdefs.h. */ | |
8837 | ||
7a197a62 AK |
8838 | /* Override any GCC internal prototype to avoid an error. |
8839 | Use char because int might match the return type of a GCC | |
8840 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8841 | #ifdef __cplusplus |
8842 | extern "C" | |
8843 | #endif | |
ad6254c5 AK |
8844 | char pow (); |
8845 | int | |
8846 | main () | |
8847 | { | |
7a197a62 | 8848 | return pow (); |
ad6254c5 AK |
8849 | ; |
8850 | return 0; | |
8851 | } | |
8852 | _ACEOF | |
8853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8854 | if { (ac_try="$ac_link" |
8855 | case "(($ac_try" in | |
8856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8857 | *) ac_try_echo=$ac_try;; | |
8858 | esac | |
ec6a6fbe AK |
8859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8860 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8861 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8862 | ac_status=$? |
8a2fc586 AK |
8863 | grep -v '^ *+' conftest.er1 >conftest.err |
8864 | rm -f conftest.er1 | |
8865 | cat conftest.err >&5 | |
ec6a6fbe | 8866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8867 | (exit $ac_status); } && { |
8868 | test -z "$ac_c_werror_flag" || | |
8869 | test ! -s conftest.err | |
ec6a6fbe AK |
8870 | } && test -s conftest$ac_exeext && { |
8871 | test "$cross_compiling" = yes || | |
8872 | $as_test_x conftest$ac_exeext | |
8873 | }; then | |
ad6254c5 AK |
8874 | ac_cv_lib_m_pow=yes |
8875 | else | |
ec6a6fbe | 8876 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8877 | sed 's/^/| /' conftest.$ac_ext >&5 |
8878 | ||
7a197a62 | 8879 | ac_cv_lib_m_pow=no |
ad6254c5 | 8880 | fi |
7a197a62 | 8881 | |
ec6a6fbe | 8882 | rm -rf conftest.dSYM |
25fbec5b | 8883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8884 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8885 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8886 | fi |
ec6a6fbe AK |
8887 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8888 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8889 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8890 | POW_LIB=-lm |
8891 | else | |
ec6a6fbe AK |
8892 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8893 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8894 | fi |
72b2cb61 | 8895 | |
d0191583 | 8896 | fi |
72b2cb61 | 8897 | |
ad6254c5 AK |
8898 | fi |
8899 | ||
ad6254c5 | 8900 | |
d0191583 JM |
8901 | for ac_func in vprintf |
8902 | do | |
ec6a6fbe AK |
8903 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8904 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8905 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8906 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8907 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8908 | else |
d0191583 JM |
8909 | cat >conftest.$ac_ext <<_ACEOF |
8910 | /* confdefs.h. */ | |
8911 | _ACEOF | |
8912 | cat confdefs.h >>conftest.$ac_ext | |
8913 | cat >>conftest.$ac_ext <<_ACEOF | |
8914 | /* end confdefs.h. */ | |
8915 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8916 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8917 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8918 | |
d0191583 JM |
8919 | /* System header to define __stub macros and hopefully few prototypes, |
8920 | which can conflict with char $ac_func (); below. | |
8921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8922 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8923 | |
d0191583 JM |
8924 | #ifdef __STDC__ |
8925 | # include <limits.h> | |
8926 | #else | |
8927 | # include <assert.h> | |
8928 | #endif | |
ad6254c5 | 8929 | |
d0191583 | 8930 | #undef $ac_func |
72b2cb61 | 8931 | |
d0191583 JM |
8932 | /* Override any GCC internal prototype to avoid an error. |
8933 | Use char because int might match the return type of a GCC | |
8934 | builtin and then its argument prototype would still apply. */ | |
8935 | #ifdef __cplusplus | |
8936 | extern "C" | |
8937 | #endif | |
8938 | char $ac_func (); | |
8939 | /* The GNU C library defines this for functions which it implements | |
8940 | to always fail with ENOSYS. Some functions are actually named | |
8941 | something starting with __ and the normal name is an alias. */ | |
8942 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8943 | choke me | |
8944 | #endif | |
8945 | ||
8946 | int | |
8947 | main () | |
8948 | { | |
8949 | return $ac_func (); | |
8950 | ; | |
8951 | return 0; | |
8952 | } | |
72b2cb61 | 8953 | _ACEOF |
d0191583 JM |
8954 | rm -f conftest.$ac_objext conftest$ac_exeext |
8955 | if { (ac_try="$ac_link" | |
8956 | case "(($ac_try" in | |
8957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8958 | *) ac_try_echo=$ac_try;; | |
8959 | esac | |
ec6a6fbe AK |
8960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8961 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8962 | (eval "$ac_link") 2>conftest.er1 |
8963 | ac_status=$? | |
8964 | grep -v '^ *+' conftest.er1 >conftest.err | |
8965 | rm -f conftest.er1 | |
8966 | cat conftest.err >&5 | |
ec6a6fbe | 8967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8968 | (exit $ac_status); } && { |
8969 | test -z "$ac_c_werror_flag" || | |
8970 | test ! -s conftest.err | |
ec6a6fbe AK |
8971 | } && test -s conftest$ac_exeext && { |
8972 | test "$cross_compiling" = yes || | |
8973 | $as_test_x conftest$ac_exeext | |
8974 | }; then | |
d0191583 JM |
8975 | eval "$as_ac_var=yes" |
8976 | else | |
ec6a6fbe | 8977 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8979 | |
d0191583 | 8980 | eval "$as_ac_var=no" |
ad6254c5 AK |
8981 | fi |
8982 | ||
ec6a6fbe | 8983 | rm -rf conftest.dSYM |
d0191583 JM |
8984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8985 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8986 | fi |
ec6a6fbe AK |
8987 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8988 | $as_echo "$as_val"'` | |
8989 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8990 | $as_echo "$ac_res" >&6; } | |
8991 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8992 | $as_echo "$as_val"'` | |
8993 | if test "x$as_val" = x""yes; then | |
d0191583 | 8994 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8995 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8996 | _ACEOF |
7a197a62 | 8997 | |
ec6a6fbe AK |
8998 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8999 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 9000 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 9001 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9002 | else |
d0191583 JM |
9003 | cat >conftest.$ac_ext <<_ACEOF |
9004 | /* confdefs.h. */ | |
9005 | _ACEOF | |
9006 | cat confdefs.h >>conftest.$ac_ext | |
9007 | cat >>conftest.$ac_ext <<_ACEOF | |
9008 | /* end confdefs.h. */ | |
9009 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
9010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9011 | #define _doprnt innocuous__doprnt | |
7a197a62 | 9012 | |
d0191583 JM |
9013 | /* System header to define __stub macros and hopefully few prototypes, |
9014 | which can conflict with char _doprnt (); below. | |
9015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9016 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 9017 | |
d0191583 JM |
9018 | #ifdef __STDC__ |
9019 | # include <limits.h> | |
9020 | #else | |
9021 | # include <assert.h> | |
9022 | #endif | |
72b2cb61 | 9023 | |
d0191583 JM |
9024 | #undef _doprnt |
9025 | ||
9026 | /* Override any GCC internal prototype to avoid an error. | |
9027 | Use char because int might match the return type of a GCC | |
9028 | builtin and then its argument prototype would still apply. */ | |
9029 | #ifdef __cplusplus | |
9030 | extern "C" | |
9031 | #endif | |
9032 | char _doprnt (); | |
9033 | /* The GNU C library defines this for functions which it implements | |
9034 | to always fail with ENOSYS. Some functions are actually named | |
9035 | something starting with __ and the normal name is an alias. */ | |
9036 | #if defined __stub__doprnt || defined __stub____doprnt | |
9037 | choke me | |
9038 | #endif | |
9039 | ||
9040 | int | |
9041 | main () | |
9042 | { | |
9043 | return _doprnt (); | |
9044 | ; | |
9045 | return 0; | |
9046 | } | |
72b2cb61 | 9047 | _ACEOF |
d0191583 JM |
9048 | rm -f conftest.$ac_objext conftest$ac_exeext |
9049 | if { (ac_try="$ac_link" | |
9050 | case "(($ac_try" in | |
9051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9052 | *) ac_try_echo=$ac_try;; | |
9053 | esac | |
ec6a6fbe AK |
9054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9055 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
9056 | (eval "$ac_link") 2>conftest.er1 |
9057 | ac_status=$? | |
9058 | grep -v '^ *+' conftest.er1 >conftest.err | |
9059 | rm -f conftest.er1 | |
9060 | cat conftest.err >&5 | |
ec6a6fbe | 9061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
9062 | (exit $ac_status); } && { |
9063 | test -z "$ac_c_werror_flag" || | |
9064 | test ! -s conftest.err | |
ec6a6fbe AK |
9065 | } && test -s conftest$ac_exeext && { |
9066 | test "$cross_compiling" = yes || | |
9067 | $as_test_x conftest$ac_exeext | |
9068 | }; then | |
d0191583 JM |
9069 | ac_cv_func__doprnt=yes |
9070 | else | |
ec6a6fbe | 9071 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 9072 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 9073 | |
d0191583 | 9074 | ac_cv_func__doprnt=no |
ad6254c5 AK |
9075 | fi |
9076 | ||
ec6a6fbe | 9077 | rm -rf conftest.dSYM |
d0191583 JM |
9078 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9079 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 9080 | fi |
ec6a6fbe AK |
9081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9082 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
9083 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 9084 | |
d0191583 JM |
9085 | cat >>confdefs.h <<\_ACEOF |
9086 | #define HAVE_DOPRNT 1 | |
9087 | _ACEOF | |
ad6254c5 | 9088 | |
7a197a62 AK |
9089 | fi |
9090 | ||
d0191583 JM |
9091 | fi |
9092 | done | |
8b1a3214 | 9093 | |
ad6254c5 | 9094 | |
7a197a62 | 9095 | |
9c961554 | 9096 | ################################################################################ |
ec6a6fbe AK |
9097 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9098 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
9099 | # Check whether --enable-static_link was given. |
9100 | if test "${enable_static_link+set}" = set; then | |
9101 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9102 | else | |
9103 | STATIC_LINK=no | |
9104 | fi | |
9105 | ||
ec6a6fbe AK |
9106 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9107 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 9108 | |
d0191583 | 9109 | ################################################################################ |
ad6254c5 | 9110 | |
ad6254c5 AK |
9111 | |
9112 | ################################################################################ | |
ec6a6fbe AK |
9113 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
9114 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
9115 | |
9116 | # Check whether --with-user was given. | |
9117 | if test "${with_user+set}" = set; then | |
9118 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
9119 | fi |
9120 | ||
ec6a6fbe AK |
9121 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
9122 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 9123 | |
d0191583 | 9124 | if test x$OWNER != x; then |
23b059e7 | 9125 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
9126 | fi |
9127 | ||
9128 | ################################################################################ | |
ec6a6fbe AK |
9129 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
9130 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 9131 | |
d0191583 JM |
9132 | # Check whether --with-group was given. |
9133 | if test "${with_group+set}" = set; then | |
9134 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
9135 | fi |
9136 | ||
ec6a6fbe AK |
9137 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
9138 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
9139 | |
9140 | if test x$GROUP != x; then | |
23b059e7 | 9141 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 9142 | fi |
ad6254c5 | 9143 | |
24bbc4d7 | 9144 | ################################################################################ |
ec6a6fbe AK |
9145 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9146 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9147 | |
9148 | ||
9149 | # Check whether --with-device-uid was given. | |
9150 | if test "${with_device_uid+set}" = set; then | |
9151 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9152 | else | |
9153 | DM_DEVICE_UID="0" | |
9154 | fi | |
9155 | ||
ec6a6fbe AK |
9156 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9157 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9158 | |
9159 | ################################################################################ | |
ec6a6fbe AK |
9160 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9161 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9162 | |
9163 | ||
9164 | # Check whether --with-device-gid was given. | |
9165 | if test "${with_device_gid+set}" = set; then | |
9166 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9167 | else | |
9168 | DM_DEVICE_GID="0" | |
9169 | fi | |
9170 | ||
ec6a6fbe AK |
9171 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9172 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9173 | |
93bd259b | 9174 | ################################################################################ |
ec6a6fbe AK |
9175 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9176 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9177 | |
9178 | ||
9179 | # Check whether --with-device-mode was given. | |
9180 | if test "${with_device_mode+set}" = set; then | |
9181 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9182 | else | |
9183 | DM_DEVICE_MODE="0600" | |
9184 | fi | |
9185 | ||
ec6a6fbe AK |
9186 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9187 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9188 | |
ad6254c5 | 9189 | ################################################################################ |
ec6a6fbe AK |
9190 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9191 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9192 | # Check whether --enable-lvm1_fallback was given. |
9193 | if test "${enable_lvm1_fallback+set}" = set; then | |
9194 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9195 | else | |
9196 | LVM1_FALLBACK=no | |
7a197a62 AK |
9197 | fi |
9198 | ||
ec6a6fbe AK |
9199 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9200 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9201 | |
d0191583 | 9202 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9203 | |
9204 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9205 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9206 | _ACEOF |
9207 | ||
ad6254c5 AK |
9208 | fi |
9209 | ||
9210 | ################################################################################ | |
ec6a6fbe AK |
9211 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9212 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9213 | |
9214 | # Check whether --with-lvm1 was given. | |
9215 | if test "${with_lvm1+set}" = set; then | |
9216 | withval=$with_lvm1; LVM1="$withval" | |
9217 | else | |
9218 | LVM1="internal" | |
7a197a62 AK |
9219 | fi |
9220 | ||
ec6a6fbe AK |
9221 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9222 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9223 | |
d0191583 | 9224 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9225 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9226 | " >&5 |
ec6a6fbe | 9227 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9228 | " >&2;} |
9229 | { (exit 1); exit 1; }; } | |
9230 | fi; | |
9231 | ||
9232 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9233 | |
9234 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9235 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9236 | _ACEOF |
9237 | ||
ad6254c5 AK |
9238 | fi |
9239 | ||
9240 | ################################################################################ | |
ec6a6fbe AK |
9241 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9242 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9243 | |
9244 | # Check whether --with-pool was given. | |
9245 | if test "${with_pool+set}" = set; then | |
9246 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9247 | else |
d0191583 | 9248 | POOL="internal" |
7a197a62 AK |
9249 | fi |
9250 | ||
ec6a6fbe AK |
9251 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9252 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9253 | |
d0191583 | 9254 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9255 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9256 | " >&5 |
ec6a6fbe | 9257 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9258 | " >&2;} |
9259 | { (exit 1); exit 1; }; } | |
9260 | fi; | |
7a197a62 | 9261 | |
d0191583 JM |
9262 | if test x$POOL = xinternal; then |
9263 | ||
9264 | cat >>confdefs.h <<\_ACEOF | |
9265 | #define POOL_INTERNAL 1 | |
9266 | _ACEOF | |
9267 | ||
9268 | fi | |
ad6254c5 | 9269 | |
06f62ad1 | 9270 | ################################################################################ |
ec6a6fbe AK |
9271 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9272 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9273 | |
9274 | # Check whether --with-cluster was given. | |
9275 | if test "${with_cluster+set}" = set; then | |
9276 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9277 | fi |
9278 | ||
ec6a6fbe AK |
9279 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9280 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9281 | |
d0191583 | 9282 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9283 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9284 | " >&5 |
ec6a6fbe | 9285 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9286 | " >&2;} |
9287 | { (exit 1); exit 1; }; } | |
d0191583 | 9288 | fi; |
06f62ad1 | 9289 | |
d0191583 | 9290 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9291 | |
9292 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9293 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9294 | _ACEOF |
9295 | ||
15d91f5a | 9296 | fi |
ad6254c5 AK |
9297 | |
9298 | ################################################################################ | |
ec6a6fbe AK |
9299 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9300 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9301 | |
d0191583 JM |
9302 | # Check whether --with-snapshots was given. |
9303 | if test "${with_snapshots+set}" = set; then | |
9304 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9305 | else | |
9306 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9307 | fi |
9308 | ||
ec6a6fbe AK |
9309 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9310 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9311 | |
d0191583 | 9312 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9313 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9314 | " >&5 |
ec6a6fbe | 9315 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9316 | " >&2;} |
9317 | { (exit 1); exit 1; }; } | |
9318 | fi; | |
9319 | ||
9320 | if test x$SNAPSHOTS = xinternal; then | |
9321 | ||
9322 | cat >>confdefs.h <<\_ACEOF | |
9323 | #define SNAPSHOT_INTERNAL 1 | |
9324 | _ACEOF | |
ad6254c5 | 9325 | |
ad6254c5 | 9326 | fi |
7a197a62 | 9327 | |
d0191583 | 9328 | ################################################################################ |
ec6a6fbe AK |
9329 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9330 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9331 | |
9332 | # Check whether --with-mirrors was given. | |
9333 | if test "${with_mirrors+set}" = set; then | |
9334 | withval=$with_mirrors; MIRRORS="$withval" | |
9335 | else | |
9336 | MIRRORS="internal" | |
ad6254c5 | 9337 | fi |
ad6254c5 | 9338 | |
ec6a6fbe AK |
9339 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9340 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9341 | |
d0191583 | 9342 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9343 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9344 | " >&5 |
ec6a6fbe | 9345 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9346 | " >&2;} |
9347 | { (exit 1); exit 1; }; } | |
9348 | fi; | |
ad6254c5 | 9349 | |
d0191583 | 9350 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9351 | |
d0191583 JM |
9352 | cat >>confdefs.h <<\_ACEOF |
9353 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9354 | _ACEOF |
8a2fc586 | 9355 | |
d0191583 | 9356 | fi |
8a2fc586 | 9357 | |
8fea97b7 ZK |
9358 | ################################################################################ |
9359 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
9360 | $as_echo_n "checking whether to include replicators... " >&6; } | |
9361 | ||
9362 | # Check whether --with-replicators was given. | |
9363 | if test "${with_replicators+set}" = set; then | |
9364 | withval=$with_replicators; REPLICATORS=$withval | |
9365 | else | |
9366 | REPLICATORS="none" | |
9367 | fi | |
9368 | ||
9369 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
9370 | $as_echo "$REPLICATORS" >&6; } | |
9371 | ||
9372 | case "$REPLICATORS" in | |
9373 | none|shared) ;; | |
9374 | internal) | |
9375 | cat >>confdefs.h <<\_ACEOF | |
9376 | #define REPLICATOR_INTERNAL 1 | |
9377 | _ACEOF | |
9378 | ;; | |
9379 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
9380 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
9381 | { (exit 1); exit 1; }; } ;; | |
9382 | esac | |
9383 | ||
d0191583 | 9384 | ################################################################################ |
ec6a6fbe AK |
9385 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9386 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9387 | # Check whether --enable-readline was given. |
9388 | if test "${enable_readline+set}" = set; then | |
9389 | enableval=$enable_readline; READLINE=$enableval | |
9390 | else | |
06e459df | 9391 | READLINE=maybe |
d0191583 | 9392 | fi |
8a2fc586 | 9393 | |
ec6a6fbe AK |
9394 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9395 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9396 | |
d0191583 | 9397 | ################################################################################ |
ec6a6fbe AK |
9398 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9399 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9400 | # Check whether --enable-realtime was given. |
9401 | if test "${enable_realtime+set}" = set; then | |
9402 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9403 | fi |
ad6254c5 | 9404 | |
ec6a6fbe AK |
9405 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9406 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9407 | |
9408 | ################################################################################ | |
90c80887 | 9409 | pkg_config_init() { |
e2997b73 AK |
9410 | |
9411 | ||
b5c2529b ZK |
9412 | |
9413 | ||
9414 | ||
9415 | ||
e2997b73 AK |
9416 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
9417 | if test -n "$ac_tool_prefix"; then | |
9418 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9419 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9420 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9421 | $as_echo_n "checking for $ac_word... " >&6; } | |
9422 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9423 | $as_echo_n "(cached) " >&6 | |
9424 | else | |
9425 | case $PKG_CONFIG in | |
9426 | [\\/]* | ?:[\\/]*) | |
9427 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9428 | ;; | |
9429 | *) | |
9430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9431 | for as_dir in $PATH | |
9432 | do | |
9433 | IFS=$as_save_IFS | |
9434 | test -z "$as_dir" && as_dir=. | |
9435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9437 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9438 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9439 | break 2 | |
9440 | fi | |
9441 | done | |
9442 | done | |
9443 | IFS=$as_save_IFS | |
9444 | ||
9445 | ;; | |
9446 | esac | |
9447 | fi | |
9448 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9449 | if test -n "$PKG_CONFIG"; then | |
9450 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9451 | $as_echo "$PKG_CONFIG" >&6; } | |
9452 | else | |
9453 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9454 | $as_echo "no" >&6; } | |
9455 | fi | |
9456 | ||
9457 | ||
9458 | fi | |
9459 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9460 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9461 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9462 | set dummy pkg-config; ac_word=$2 | |
9463 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9464 | $as_echo_n "checking for $ac_word... " >&6; } | |
9465 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9466 | $as_echo_n "(cached) " >&6 | |
9467 | else | |
9468 | case $ac_pt_PKG_CONFIG in | |
9469 | [\\/]* | ?:[\\/]*) | |
9470 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9471 | ;; | |
9472 | *) | |
9473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9474 | for as_dir in $PATH | |
9475 | do | |
9476 | IFS=$as_save_IFS | |
9477 | test -z "$as_dir" && as_dir=. | |
9478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9480 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9481 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9482 | break 2 | |
9483 | fi | |
9484 | done | |
9485 | done | |
9486 | IFS=$as_save_IFS | |
9487 | ||
9488 | ;; | |
9489 | esac | |
9490 | fi | |
9491 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9492 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9493 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9494 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9495 | else | |
9496 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9497 | $as_echo "no" >&6; } | |
9498 | fi | |
9499 | ||
9500 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9501 | PKG_CONFIG="" | |
9502 | else | |
9503 | case $cross_compiling:$ac_tool_warned in | |
9504 | yes:) | |
9505 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9506 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9507 | ac_tool_warned=yes ;; | |
9508 | esac | |
9509 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9510 | fi | |
9511 | else | |
9512 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9513 | fi | |
9514 | ||
9515 | fi | |
9516 | if test -n "$PKG_CONFIG"; then | |
9517 | _pkg_min_version=0.9.0 | |
9518 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9519 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9520 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9521 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9522 | $as_echo "yes" >&6; } | |
9523 | else | |
9524 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9525 | $as_echo "no" >&6; } | |
9526 | PKG_CONFIG="" | |
9527 | fi | |
e2997b73 AK |
9528 | fi |
9529 | ||
9530 | pkg_failed=no | |
a946372e AK |
9531 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9532 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9533 | |
a946372e AK |
9534 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9535 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9536 | elif test -n "$PKG_CONFIG"; then |
9537 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9538 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9539 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9540 | ac_status=$? |
9541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9542 | (exit $ac_status); }; then | |
a946372e | 9543 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9544 | else |
9545 | pkg_failed=yes | |
9546 | fi | |
9547 | else | |
9548 | pkg_failed=untried | |
9549 | fi | |
a946372e AK |
9550 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9551 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9552 | elif test -n "$PKG_CONFIG"; then |
9553 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9554 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9555 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9556 | ac_status=$? |
9557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9558 | (exit $ac_status); }; then | |
a946372e | 9559 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9560 | else |
9561 | pkg_failed=yes | |
9562 | fi | |
9563 | else | |
9564 | pkg_failed=untried | |
9565 | fi | |
9566 | ||
9567 | ||
9568 | ||
9569 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
9570 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9571 | $as_echo "no" >&6; } | |
e2997b73 AK |
9572 | |
9573 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9574 | _pkg_short_errors_supported=yes | |
9575 | else | |
9576 | _pkg_short_errors_supported=no | |
9577 | fi | |
9578 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9579 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9580 | else |
a946372e | 9581 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9582 | fi |
9583 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9584 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 9585 | |
b5c2529b | 9586 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
a946372e | 9587 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 9588 | elif test $pkg_failed = untried; then |
b5c2529b ZK |
9589 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9590 | $as_echo "no" >&6; } | |
a946372e AK |
9591 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9592 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9593 | else |
a946372e AK |
9594 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9595 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9596 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9597 | $as_echo "yes" >&6; } | |
b5c2529b | 9598 | |
e2997b73 | 9599 | fi |
90c80887 AK |
9600 | PKGCONFIG_INIT=1 |
9601 | } | |
9602 | ||
9603 | ################################################################################ | |
9604 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
9605 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
9606 | ||
9607 | # Check whether --with-clvmd was given. | |
9608 | if test "${with_clvmd+set}" = set; then | |
9609 | withval=$with_clvmd; CLVMD="$withval" | |
9610 | else | |
9611 | CLVMD="none" | |
9612 | fi | |
9613 | ||
9614 | if test x$CLVMD = xyes; then | |
9615 | CLVMD=all | |
9616 | fi | |
9617 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
9618 | $as_echo "$CLVMD" >&6; } | |
9619 | ||
9620 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
9621 | CLUSTER=internal | |
9622 | fi | |
9623 | ||
9624 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
9625 | pkg_config_init | |
9626 | fi | |
9627 | ||
9628 | ||
9629 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
9630 | BUILDGULM=yes | |
9631 | fi | |
9632 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9633 | BUILDCOROSYNC=yes | |
9634 | fi | |
9635 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9636 | BUILDOPENAIS=yes | |
9637 | fi | |
9638 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9639 | BUILDCMAN=yes | |
9640 | fi | |
9641 | ||
9642 | if test x$BUILDGULM = xyes; then | |
9643 | if test x$BUILDCOROSYNC = xyes || \ | |
9644 | test x$BUILDOPENAIS = xyes; then | |
9645 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9646 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9647 | { (exit 1); exit 1; }; } | |
9648 | fi | |
a946372e | 9649 | fi |
e2997b73 | 9650 | |
a946372e AK |
9651 | soft_bailout() { |
9652 | NOTFOUND=1 | |
9653 | } | |
e2997b73 | 9654 | |
a946372e AK |
9655 | hard_bailout() { |
9656 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9657 | $as_echo "$as_me: error: bailing out" >&2;} | |
9658 | { (exit 1); exit 1; }; } | |
9659 | } | |
9660 | ||
9661 | if test x$CLVMD = xall; then | |
9662 | bailout=soft_bailout | |
9663 | BUILDGULM=yes | |
9664 | BUILDCMAN=yes | |
9665 | BUILDCOROSYNC=yes | |
9666 | BUILDOPENAIS=yes | |
e2997b73 | 9667 | else |
a946372e | 9668 | bailout=hard_bailout |
e2997b73 | 9669 | fi |
a946372e AK |
9670 | |
9671 | check_lib_no_libs() { | |
9672 | lib_no_libs_arg1=$1 | |
9673 | shift | |
9674 | lib_no_libs_arg2=$1 | |
9675 | shift | |
9676 | lib_no_libs_args=$@ | |
9677 | ||
9678 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9679 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9680 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9681 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9682 | $as_echo_n "(cached) " >&6 | |
9683 | else | |
9684 | ac_check_lib_save_LIBS=$LIBS | |
9685 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9686 | cat >conftest.$ac_ext <<_ACEOF | |
9687 | /* confdefs.h. */ | |
9688 | _ACEOF | |
9689 | cat confdefs.h >>conftest.$ac_ext | |
9690 | cat >>conftest.$ac_ext <<_ACEOF | |
9691 | /* end confdefs.h. */ | |
9692 | ||
9693 | /* Override any GCC internal prototype to avoid an error. | |
9694 | Use char because int might match the return type of a GCC | |
9695 | builtin and then its argument prototype would still apply. */ | |
9696 | #ifdef __cplusplus | |
9697 | extern "C" | |
9698 | #endif | |
9699 | char $lib_no_libs_arg2 (); | |
9700 | int | |
9701 | main () | |
9702 | { | |
9703 | return $lib_no_libs_arg2 (); | |
9704 | ; | |
9705 | return 0; | |
9706 | } | |
9707 | _ACEOF | |
9708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9709 | if { (ac_try="$ac_link" | |
9710 | case "(($ac_try" in | |
9711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9712 | *) ac_try_echo=$ac_try;; | |
9713 | esac | |
9714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9715 | $as_echo "$ac_try_echo") >&5 | |
9716 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9717 | ac_status=$? |
a946372e AK |
9718 | grep -v '^ *+' conftest.er1 >conftest.err |
9719 | rm -f conftest.er1 | |
9720 | cat conftest.err >&5 | |
e2997b73 | 9721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9722 | (exit $ac_status); } && { |
9723 | test -z "$ac_c_werror_flag" || | |
9724 | test ! -s conftest.err | |
9725 | } && test -s conftest$ac_exeext && { | |
9726 | test "$cross_compiling" = yes || | |
9727 | $as_test_x conftest$ac_exeext | |
9728 | }; then | |
9729 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9730 | else |
a946372e AK |
9731 | $as_echo "$as_me: failed program was:" >&5 |
9732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9733 | |
a946372e AK |
9734 | eval "$as_ac_Lib=no" |
9735 | fi | |
e2997b73 | 9736 | |
a946372e AK |
9737 | rm -rf conftest.dSYM |
9738 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9739 | conftest$ac_exeext conftest.$ac_ext | |
9740 | LIBS=$ac_check_lib_save_LIBS | |
9741 | fi | |
9742 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9743 | $as_echo "$as_val"'` | |
9744 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9745 | $as_echo "$ac_res" >&6; } | |
9746 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9747 | $as_echo "$as_val"'` | |
9748 | if test "x$as_val" = x""yes; then | |
9749 | cat >>confdefs.h <<_ACEOF | |
9750 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9751 | _ACEOF | |
e2997b73 | 9752 | |
a946372e | 9753 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9754 | |
e2997b73 | 9755 | else |
a946372e | 9756 | $bailout |
e2997b73 | 9757 | fi |
e2997b73 | 9758 | |
a946372e AK |
9759 | LIBS=$ac_check_lib_save_LIBS |
9760 | } | |
9761 | ||
9762 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9763 | |
9764 | pkg_failed=no | |
a946372e AK |
9765 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9766 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9767 | |
a946372e AK |
9768 | if test -n "$CCS_CFLAGS"; then |
9769 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9770 | elif test -n "$PKG_CONFIG"; then |
9771 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9772 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9773 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9774 | ac_status=$? |
9775 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9776 | (exit $ac_status); }; then | |
a946372e | 9777 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9778 | else |
9779 | pkg_failed=yes | |
9780 | fi | |
9781 | else | |
9782 | pkg_failed=untried | |
9783 | fi | |
a946372e AK |
9784 | if test -n "$CCS_LIBS"; then |
9785 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9786 | elif test -n "$PKG_CONFIG"; then |
9787 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9788 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9789 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9790 | ac_status=$? |
9791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9792 | (exit $ac_status); }; then | |
a946372e | 9793 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9794 | else |
9795 | pkg_failed=yes | |
9796 | fi | |
9797 | else | |
9798 | pkg_failed=untried | |
9799 | fi | |
9800 | ||
9801 | ||
9802 | ||
9803 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
9804 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9805 | $as_echo "no" >&6; } | |
e2997b73 AK |
9806 | |
9807 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9808 | _pkg_short_errors_supported=yes | |
9809 | else | |
9810 | _pkg_short_errors_supported=no | |
9811 | fi | |
9812 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9813 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9814 | else |
a946372e | 9815 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9816 | fi |
9817 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9818 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 9819 | |
b5c2529b | 9820 | NOTFOUND=0 |
e2997b73 | 9821 | |
a946372e AK |
9822 | for ac_header in ccs.h |
9823 | do | |
9824 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9825 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9826 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9827 | $as_echo_n "checking for $ac_header... " >&6; } | |
9828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9829 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9830 | fi |
a946372e AK |
9831 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9832 | $as_echo "$as_val"'` | |
9833 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9834 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9835 | else |
a946372e AK |
9836 | # Is the header compilable? |
9837 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9838 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9839 | cat >conftest.$ac_ext <<_ACEOF | |
9840 | /* confdefs.h. */ | |
9841 | _ACEOF | |
9842 | cat confdefs.h >>conftest.$ac_ext | |
9843 | cat >>conftest.$ac_ext <<_ACEOF | |
9844 | /* end confdefs.h. */ | |
9845 | $ac_includes_default | |
9846 | #include <$ac_header> | |
9847 | _ACEOF | |
9848 | rm -f conftest.$ac_objext | |
9849 | if { (ac_try="$ac_compile" | |
9850 | case "(($ac_try" in | |
9851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9852 | *) ac_try_echo=$ac_try;; | |
9853 | esac | |
9854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9855 | $as_echo "$ac_try_echo") >&5 | |
9856 | (eval "$ac_compile") 2>conftest.er1 | |
9857 | ac_status=$? | |
9858 | grep -v '^ *+' conftest.er1 >conftest.err | |
9859 | rm -f conftest.er1 | |
9860 | cat conftest.err >&5 | |
9861 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9862 | (exit $ac_status); } && { | |
9863 | test -z "$ac_c_werror_flag" || | |
9864 | test ! -s conftest.err | |
9865 | } && test -s conftest.$ac_objext; then | |
9866 | ac_header_compiler=yes | |
9867 | else | |
9868 | $as_echo "$as_me: failed program was:" >&5 | |
9869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9870 | |
a946372e | 9871 | ac_header_compiler=no |
d0191583 JM |
9872 | fi |
9873 | ||
a946372e AK |
9874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9875 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9876 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9877 | |
a946372e AK |
9878 | # Is the header present? |
9879 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9880 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9881 | cat >conftest.$ac_ext <<_ACEOF | |
9882 | /* confdefs.h. */ | |
9883 | _ACEOF | |
9884 | cat confdefs.h >>conftest.$ac_ext | |
9885 | cat >>conftest.$ac_ext <<_ACEOF | |
9886 | /* end confdefs.h. */ | |
9887 | #include <$ac_header> | |
9888 | _ACEOF | |
9889 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9890 | case "(($ac_try" in | |
9891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9892 | *) ac_try_echo=$ac_try;; | |
9893 | esac | |
9894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9895 | $as_echo "$ac_try_echo") >&5 | |
9896 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9897 | ac_status=$? | |
9898 | grep -v '^ *+' conftest.er1 >conftest.err | |
9899 | rm -f conftest.er1 | |
9900 | cat conftest.err >&5 | |
9901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9902 | (exit $ac_status); } >/dev/null && { | |
9903 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9904 | test ! -s conftest.err | |
9905 | }; then | |
9906 | ac_header_preproc=yes | |
9907 | else | |
9908 | $as_echo "$as_me: failed program was:" >&5 | |
9909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9910 | ||
9911 | ac_header_preproc=no | |
9912 | fi | |
9913 | ||
9914 | rm -f conftest.err conftest.$ac_ext | |
9915 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9916 | $as_echo "$ac_header_preproc" >&6; } | |
9917 | ||
9918 | # So? What about this header? | |
9919 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9920 | yes:no: ) | |
9921 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9922 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9923 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9924 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9925 | ac_header_preproc=yes | |
9926 | ;; | |
9927 | no:yes:* ) | |
9928 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9929 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9930 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9931 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9933 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9934 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9935 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9936 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9937 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9938 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9939 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9940 | ||
9941 | ;; | |
9942 | esac | |
9943 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9944 | $as_echo_n "checking for $ac_header... " >&6; } | |
9945 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9946 | $as_echo_n "(cached) " >&6 | |
9947 | else | |
9948 | eval "$as_ac_Header=\$ac_header_preproc" | |
9949 | fi | |
9950 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9951 | $as_echo "$as_val"'` | |
9952 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9953 | $as_echo "$ac_res" >&6; } | |
9954 | ||
9955 | fi | |
9956 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9957 | $as_echo "$as_val"'` | |
9958 | if test "x$as_val" = x""yes; then | |
9959 | cat >>confdefs.h <<_ACEOF | |
9960 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9961 | _ACEOF | |
9962 | ||
9963 | else | |
9964 | $bailout | |
9965 | fi | |
9966 | ||
9967 | done | |
9968 | ||
9969 | check_lib_no_libs ccs ccs_connect | |
9970 | if test $NOTFOUND = 0; then | |
9971 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9972 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9973 | CCS_LIBS="-lccs" | |
9974 | HAVE_CCS=yes | |
9975 | fi | |
9976 | elif test $pkg_failed = untried; then | |
b5c2529b ZK |
9977 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9978 | $as_echo "no" >&6; } | |
a946372e AK |
9979 | NOTFOUND=0 |
9980 | ||
9981 | for ac_header in ccs.h | |
9982 | do | |
9983 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9984 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9985 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9986 | $as_echo_n "checking for $ac_header... " >&6; } | |
9987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9988 | $as_echo_n "(cached) " >&6 | |
9989 | fi | |
9990 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9991 | $as_echo "$as_val"'` | |
9992 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9993 | $as_echo "$ac_res" >&6; } | |
9994 | else | |
9995 | # Is the header compilable? | |
9996 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9997 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9998 | cat >conftest.$ac_ext <<_ACEOF | |
9999 | /* confdefs.h. */ | |
10000 | _ACEOF | |
10001 | cat confdefs.h >>conftest.$ac_ext | |
10002 | cat >>conftest.$ac_ext <<_ACEOF | |
10003 | /* end confdefs.h. */ | |
10004 | $ac_includes_default | |
10005 | #include <$ac_header> | |
10006 | _ACEOF | |
10007 | rm -f conftest.$ac_objext | |
10008 | if { (ac_try="$ac_compile" | |
10009 | case "(($ac_try" in | |
10010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10011 | *) ac_try_echo=$ac_try;; | |
10012 | esac | |
10013 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10014 | $as_echo "$ac_try_echo") >&5 | |
10015 | (eval "$ac_compile") 2>conftest.er1 | |
10016 | ac_status=$? | |
10017 | grep -v '^ *+' conftest.er1 >conftest.err | |
10018 | rm -f conftest.er1 | |
10019 | cat conftest.err >&5 | |
10020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10021 | (exit $ac_status); } && { | |
10022 | test -z "$ac_c_werror_flag" || | |
10023 | test ! -s conftest.err | |
10024 | } && test -s conftest.$ac_objext; then | |
10025 | ac_header_compiler=yes | |
10026 | else | |
10027 | $as_echo "$as_me: failed program was:" >&5 | |
10028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10029 | ||
10030 | ac_header_compiler=no | |
10031 | fi | |
10032 | ||
10033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10034 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10035 | $as_echo "$ac_header_compiler" >&6; } | |
10036 | ||
10037 | # Is the header present? | |
10038 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10039 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10040 | cat >conftest.$ac_ext <<_ACEOF | |
10041 | /* confdefs.h. */ | |
10042 | _ACEOF | |
10043 | cat confdefs.h >>conftest.$ac_ext | |
10044 | cat >>conftest.$ac_ext <<_ACEOF | |
10045 | /* end confdefs.h. */ | |
10046 | #include <$ac_header> | |
10047 | _ACEOF | |
10048 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10049 | case "(($ac_try" in | |
10050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10051 | *) ac_try_echo=$ac_try;; | |
10052 | esac | |
10053 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10054 | $as_echo "$ac_try_echo") >&5 | |
10055 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10056 | ac_status=$? | |
10057 | grep -v '^ *+' conftest.er1 >conftest.err | |
10058 | rm -f conftest.er1 | |
10059 | cat conftest.err >&5 | |
10060 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10061 | (exit $ac_status); } >/dev/null && { | |
10062 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10063 | test ! -s conftest.err | |
10064 | }; then | |
10065 | ac_header_preproc=yes | |
10066 | else | |
10067 | $as_echo "$as_me: failed program was:" >&5 | |
10068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10069 | ||
10070 | ac_header_preproc=no | |
10071 | fi | |
10072 | ||
10073 | rm -f conftest.err conftest.$ac_ext | |
10074 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10075 | $as_echo "$ac_header_preproc" >&6; } | |
10076 | ||
10077 | # So? What about this header? | |
10078 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10079 | yes:no: ) | |
10080 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10081 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10083 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10084 | ac_header_preproc=yes | |
10085 | ;; | |
10086 | no:yes:* ) | |
10087 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10088 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10090 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10092 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10094 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10096 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10098 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10099 | ||
10100 | ;; | |
10101 | esac | |
10102 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10103 | $as_echo_n "checking for $ac_header... " >&6; } | |
10104 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10105 | $as_echo_n "(cached) " >&6 | |
10106 | else | |
10107 | eval "$as_ac_Header=\$ac_header_preproc" | |
10108 | fi | |
10109 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10110 | $as_echo "$as_val"'` | |
10111 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10112 | $as_echo "$ac_res" >&6; } | |
10113 | ||
10114 | fi | |
10115 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10116 | $as_echo "$as_val"'` | |
10117 | if test "x$as_val" = x""yes; then | |
10118 | cat >>confdefs.h <<_ACEOF | |
10119 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10120 | _ACEOF | |
10121 | ||
10122 | else | |
10123 | $bailout | |
10124 | fi | |
10125 | ||
10126 | done | |
10127 | ||
10128 | check_lib_no_libs ccs ccs_connect | |
10129 | if test $NOTFOUND = 0; then | |
10130 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
10131 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
10132 | CCS_LIBS="-lccs" | |
10133 | HAVE_CCS=yes | |
10134 | fi | |
10135 | else | |
10136 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
10137 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
10138 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10139 | $as_echo "yes" >&6; } | |
10140 | HAVE_CCS=yes | |
10141 | fi | |
10142 | ||
10143 | pkg_failed=no | |
10144 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
10145 | $as_echo_n "checking for GULM... " >&6; } | |
10146 | ||
10147 | if test -n "$GULM_CFLAGS"; then | |
10148 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
10149 | elif test -n "$PKG_CONFIG"; then | |
10150 | if test -n "$PKG_CONFIG" && \ | |
10151 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10152 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10153 | ac_status=$? | |
10154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10155 | (exit $ac_status); }; then | |
10156 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
10157 | else | |
10158 | pkg_failed=yes | |
10159 | fi | |
10160 | else | |
10161 | pkg_failed=untried | |
10162 | fi | |
10163 | if test -n "$GULM_LIBS"; then | |
10164 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
10165 | elif test -n "$PKG_CONFIG"; then | |
10166 | if test -n "$PKG_CONFIG" && \ | |
10167 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10168 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10169 | ac_status=$? | |
10170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10171 | (exit $ac_status); }; then | |
10172 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
10173 | else | |
10174 | pkg_failed=yes | |
10175 | fi | |
10176 | else | |
10177 | pkg_failed=untried | |
10178 | fi | |
10179 | ||
10180 | ||
10181 | ||
10182 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
10183 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10184 | $as_echo "no" >&6; } | |
a946372e AK |
10185 | |
10186 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10187 | _pkg_short_errors_supported=yes | |
10188 | else | |
10189 | _pkg_short_errors_supported=no | |
10190 | fi | |
10191 | if test $_pkg_short_errors_supported = yes; then | |
10192 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10193 | else | |
10194 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10195 | fi | |
10196 | # Put the nasty error message in config.log where it belongs | |
10197 | echo "$GULM_PKG_ERRORS" >&5 | |
10198 | ||
b5c2529b | 10199 | NOTFOUND=0 |
a946372e AK |
10200 | |
10201 | for ac_header in libgulm.h | |
10202 | do | |
10203 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10205 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10206 | $as_echo_n "checking for $ac_header... " >&6; } | |
10207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10208 | $as_echo_n "(cached) " >&6 | |
10209 | fi | |
10210 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10211 | $as_echo "$as_val"'` | |
10212 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10213 | $as_echo "$ac_res" >&6; } | |
10214 | else | |
10215 | # Is the header compilable? | |
10216 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10217 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10218 | cat >conftest.$ac_ext <<_ACEOF | |
10219 | /* confdefs.h. */ | |
10220 | _ACEOF | |
10221 | cat confdefs.h >>conftest.$ac_ext | |
10222 | cat >>conftest.$ac_ext <<_ACEOF | |
10223 | /* end confdefs.h. */ | |
10224 | $ac_includes_default | |
10225 | #include <$ac_header> | |
10226 | _ACEOF | |
10227 | rm -f conftest.$ac_objext | |
10228 | if { (ac_try="$ac_compile" | |
10229 | case "(($ac_try" in | |
10230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10231 | *) ac_try_echo=$ac_try;; | |
10232 | esac | |
10233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10234 | $as_echo "$ac_try_echo") >&5 | |
10235 | (eval "$ac_compile") 2>conftest.er1 | |
10236 | ac_status=$? | |
10237 | grep -v '^ *+' conftest.er1 >conftest.err | |
10238 | rm -f conftest.er1 | |
10239 | cat conftest.err >&5 | |
10240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10241 | (exit $ac_status); } && { | |
10242 | test -z "$ac_c_werror_flag" || | |
10243 | test ! -s conftest.err | |
10244 | } && test -s conftest.$ac_objext; then | |
10245 | ac_header_compiler=yes | |
10246 | else | |
10247 | $as_echo "$as_me: failed program was:" >&5 | |
10248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10249 | ||
10250 | ac_header_compiler=no | |
10251 | fi | |
10252 | ||
10253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10254 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10255 | $as_echo "$ac_header_compiler" >&6; } | |
10256 | ||
10257 | # Is the header present? | |
10258 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10259 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10260 | cat >conftest.$ac_ext <<_ACEOF | |
10261 | /* confdefs.h. */ | |
10262 | _ACEOF | |
10263 | cat confdefs.h >>conftest.$ac_ext | |
10264 | cat >>conftest.$ac_ext <<_ACEOF | |
10265 | /* end confdefs.h. */ | |
10266 | #include <$ac_header> | |
10267 | _ACEOF | |
10268 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10269 | case "(($ac_try" in | |
10270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10271 | *) ac_try_echo=$ac_try;; | |
10272 | esac | |
10273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10274 | $as_echo "$ac_try_echo") >&5 | |
10275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10276 | ac_status=$? | |
10277 | grep -v '^ *+' conftest.er1 >conftest.err | |
10278 | rm -f conftest.er1 | |
10279 | cat conftest.err >&5 | |
10280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10281 | (exit $ac_status); } >/dev/null && { | |
10282 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10283 | test ! -s conftest.err | |
10284 | }; then | |
10285 | ac_header_preproc=yes | |
10286 | else | |
10287 | $as_echo "$as_me: failed program was:" >&5 | |
10288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10289 | ||
10290 | ac_header_preproc=no | |
10291 | fi | |
10292 | ||
10293 | rm -f conftest.err conftest.$ac_ext | |
10294 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10295 | $as_echo "$ac_header_preproc" >&6; } | |
10296 | ||
10297 | # So? What about this header? | |
10298 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10299 | yes:no: ) | |
10300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10301 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10303 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10304 | ac_header_preproc=yes | |
10305 | ;; | |
10306 | no:yes:* ) | |
10307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10308 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10310 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10312 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10314 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10315 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10316 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10317 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10318 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10319 | ||
10320 | ;; | |
10321 | esac | |
10322 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10323 | $as_echo_n "checking for $ac_header... " >&6; } | |
10324 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10325 | $as_echo_n "(cached) " >&6 | |
10326 | else | |
10327 | eval "$as_ac_Header=\$ac_header_preproc" | |
10328 | fi | |
10329 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10330 | $as_echo "$as_val"'` | |
10331 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10332 | $as_echo "$ac_res" >&6; } | |
10333 | ||
10334 | fi | |
10335 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10336 | $as_echo "$as_val"'` | |
10337 | if test "x$as_val" = x""yes; then | |
10338 | cat >>confdefs.h <<_ACEOF | |
10339 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10340 | _ACEOF | |
10341 | ||
10342 | else | |
10343 | $bailout | |
10344 | fi | |
10345 | ||
10346 | done | |
10347 | ||
10348 | check_lib_no_libs gulm lg_core_login | |
10349 | if test $NOTFOUND = 0; then | |
10350 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10351 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10352 | GULM_LIBS="-lgulm" | |
10353 | HAVE_GULM=yes | |
10354 | fi | |
10355 | elif test $pkg_failed = untried; then | |
b5c2529b ZK |
10356 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10357 | $as_echo "no" >&6; } | |
a946372e AK |
10358 | NOTFOUND=0 |
10359 | ||
10360 | for ac_header in libgulm.h | |
10361 | do | |
10362 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10364 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10365 | $as_echo_n "checking for $ac_header... " >&6; } | |
10366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10367 | $as_echo_n "(cached) " >&6 | |
10368 | fi | |
10369 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10370 | $as_echo "$as_val"'` | |
10371 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10372 | $as_echo "$ac_res" >&6; } | |
10373 | else | |
10374 | # Is the header compilable? | |
10375 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10376 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10377 | cat >conftest.$ac_ext <<_ACEOF | |
10378 | /* confdefs.h. */ | |
10379 | _ACEOF | |
10380 | cat confdefs.h >>conftest.$ac_ext | |
10381 | cat >>conftest.$ac_ext <<_ACEOF | |
10382 | /* end confdefs.h. */ | |
10383 | $ac_includes_default | |
10384 | #include <$ac_header> | |
10385 | _ACEOF | |
10386 | rm -f conftest.$ac_objext | |
10387 | if { (ac_try="$ac_compile" | |
10388 | case "(($ac_try" in | |
10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10390 | *) ac_try_echo=$ac_try;; | |
10391 | esac | |
10392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10393 | $as_echo "$ac_try_echo") >&5 | |
10394 | (eval "$ac_compile") 2>conftest.er1 | |
10395 | ac_status=$? | |
10396 | grep -v '^ *+' conftest.er1 >conftest.err | |
10397 | rm -f conftest.er1 | |
10398 | cat conftest.err >&5 | |
10399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10400 | (exit $ac_status); } && { | |
10401 | test -z "$ac_c_werror_flag" || | |
10402 | test ! -s conftest.err | |
10403 | } && test -s conftest.$ac_objext; then | |
10404 | ac_header_compiler=yes | |
10405 | else | |
10406 | $as_echo "$as_me: failed program was:" >&5 | |
10407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10408 | ||
10409 | ac_header_compiler=no | |
10410 | fi | |
10411 | ||
10412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10413 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10414 | $as_echo "$ac_header_compiler" >&6; } | |
10415 | ||
10416 | # Is the header present? | |
10417 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10418 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10419 | cat >conftest.$ac_ext <<_ACEOF | |
10420 | /* confdefs.h. */ | |
10421 | _ACEOF | |
10422 | cat confdefs.h >>conftest.$ac_ext | |
10423 | cat >>conftest.$ac_ext <<_ACEOF | |
10424 | /* end confdefs.h. */ | |
10425 | #include <$ac_header> | |
10426 | _ACEOF | |
10427 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10428 | case "(($ac_try" in | |
10429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10430 | *) ac_try_echo=$ac_try;; | |
10431 | esac | |
10432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10433 | $as_echo "$ac_try_echo") >&5 | |
10434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10435 | ac_status=$? | |
10436 | grep -v '^ *+' conftest.er1 >conftest.err | |
10437 | rm -f conftest.er1 | |
10438 | cat conftest.err >&5 | |
10439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10440 | (exit $ac_status); } >/dev/null && { | |
10441 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10442 | test ! -s conftest.err | |
10443 | }; then | |
10444 | ac_header_preproc=yes | |
10445 | else | |
10446 | $as_echo "$as_me: failed program was:" >&5 | |
10447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10448 | ||
10449 | ac_header_preproc=no | |
10450 | fi | |
10451 | ||
10452 | rm -f conftest.err conftest.$ac_ext | |
10453 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10454 | $as_echo "$ac_header_preproc" >&6; } | |
10455 | ||
10456 | # So? What about this header? | |
10457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10458 | yes:no: ) | |
10459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10460 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10462 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10463 | ac_header_preproc=yes | |
10464 | ;; | |
10465 | no:yes:* ) | |
10466 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10467 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10468 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10469 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10470 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10471 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10472 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10473 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10474 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10475 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10476 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10477 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10478 | ||
10479 | ;; | |
10480 | esac | |
10481 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10482 | $as_echo_n "checking for $ac_header... " >&6; } | |
10483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10484 | $as_echo_n "(cached) " >&6 | |
10485 | else | |
10486 | eval "$as_ac_Header=\$ac_header_preproc" | |
10487 | fi | |
10488 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10489 | $as_echo "$as_val"'` | |
10490 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10491 | $as_echo "$ac_res" >&6; } | |
10492 | ||
10493 | fi | |
10494 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10495 | $as_echo "$as_val"'` | |
10496 | if test "x$as_val" = x""yes; then | |
10497 | cat >>confdefs.h <<_ACEOF | |
10498 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10499 | _ACEOF | |
10500 | ||
10501 | else | |
10502 | $bailout | |
10503 | fi | |
10504 | ||
10505 | done | |
10506 | ||
10507 | check_lib_no_libs gulm lg_core_login | |
10508 | if test $NOTFOUND = 0; then | |
10509 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10510 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10511 | GULM_LIBS="-lgulm" | |
10512 | HAVE_GULM=yes | |
10513 | fi | |
10514 | else | |
10515 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10516 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10517 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10518 | $as_echo "yes" >&6; } | |
10519 | HAVE_GULM=yes | |
10520 | fi | |
10521 | fi | |
10522 | ||
10523 | if test x$BUILDCMAN = xyes; then | |
10524 | ||
10525 | pkg_failed=no | |
10526 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10527 | $as_echo_n "checking for CMAN... " >&6; } | |
10528 | ||
10529 | if test -n "$CMAN_CFLAGS"; then | |
10530 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10531 | elif test -n "$PKG_CONFIG"; then | |
10532 | if test -n "$PKG_CONFIG" && \ | |
10533 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10534 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10535 | ac_status=$? | |
10536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10537 | (exit $ac_status); }; then | |
10538 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10539 | else | |
10540 | pkg_failed=yes | |
10541 | fi | |
10542 | else | |
10543 | pkg_failed=untried | |
10544 | fi | |
10545 | if test -n "$CMAN_LIBS"; then | |
10546 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10547 | elif test -n "$PKG_CONFIG"; then | |
10548 | if test -n "$PKG_CONFIG" && \ | |
10549 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10550 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10551 | ac_status=$? | |
10552 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10553 | (exit $ac_status); }; then | |
10554 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10555 | else | |
10556 | pkg_failed=yes | |
10557 | fi | |
10558 | else | |
10559 | pkg_failed=untried | |
10560 | fi | |
10561 | ||
10562 | ||
10563 | ||
10564 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
10565 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10566 | $as_echo "no" >&6; } | |
a946372e AK |
10567 | |
10568 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10569 | _pkg_short_errors_supported=yes | |
10570 | else | |
10571 | _pkg_short_errors_supported=no | |
10572 | fi | |
10573 | if test $_pkg_short_errors_supported = yes; then | |
10574 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10575 | else | |
10576 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10577 | fi | |
10578 | # Put the nasty error message in config.log where it belongs | |
10579 | echo "$CMAN_PKG_ERRORS" >&5 | |
10580 | ||
b5c2529b | 10581 | NOTFOUND=0 |
a946372e AK |
10582 | |
10583 | for ac_header in libcman.h | |
10584 | do | |
10585 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10587 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10588 | $as_echo_n "checking for $ac_header... " >&6; } | |
10589 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10590 | $as_echo_n "(cached) " >&6 | |
10591 | fi | |
10592 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10593 | $as_echo "$as_val"'` | |
10594 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10595 | $as_echo "$ac_res" >&6; } | |
10596 | else | |
10597 | # Is the header compilable? | |
10598 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10599 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10600 | cat >conftest.$ac_ext <<_ACEOF | |
10601 | /* confdefs.h. */ | |
10602 | _ACEOF | |
10603 | cat confdefs.h >>conftest.$ac_ext | |
10604 | cat >>conftest.$ac_ext <<_ACEOF | |
10605 | /* end confdefs.h. */ | |
10606 | $ac_includes_default | |
10607 | #include <$ac_header> | |
10608 | _ACEOF | |
10609 | rm -f conftest.$ac_objext | |
10610 | if { (ac_try="$ac_compile" | |
10611 | case "(($ac_try" in | |
10612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10613 | *) ac_try_echo=$ac_try;; | |
10614 | esac | |
10615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10616 | $as_echo "$ac_try_echo") >&5 | |
10617 | (eval "$ac_compile") 2>conftest.er1 | |
10618 | ac_status=$? | |
10619 | grep -v '^ *+' conftest.er1 >conftest.err | |
10620 | rm -f conftest.er1 | |
10621 | cat conftest.err >&5 | |
10622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10623 | (exit $ac_status); } && { | |
10624 | test -z "$ac_c_werror_flag" || | |
10625 | test ! -s conftest.err | |
10626 | } && test -s conftest.$ac_objext; then | |
10627 | ac_header_compiler=yes | |
10628 | else | |
10629 | $as_echo "$as_me: failed program was:" >&5 | |
10630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10631 | ||
10632 | ac_header_compiler=no | |
10633 | fi | |
10634 | ||
10635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10636 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10637 | $as_echo "$ac_header_compiler" >&6; } | |
10638 | ||
10639 | # Is the header present? | |
10640 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10641 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10642 | cat >conftest.$ac_ext <<_ACEOF | |
10643 | /* confdefs.h. */ | |
10644 | _ACEOF | |
10645 | cat confdefs.h >>conftest.$ac_ext | |
10646 | cat >>conftest.$ac_ext <<_ACEOF | |
10647 | /* end confdefs.h. */ | |
10648 | #include <$ac_header> | |
10649 | _ACEOF | |
10650 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10651 | case "(($ac_try" in | |
10652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10653 | *) ac_try_echo=$ac_try;; | |
10654 | esac | |
10655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10656 | $as_echo "$ac_try_echo") >&5 | |
10657 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10658 | ac_status=$? | |
10659 | grep -v '^ *+' conftest.er1 >conftest.err | |
10660 | rm -f conftest.er1 | |
10661 | cat conftest.err >&5 | |
10662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10663 | (exit $ac_status); } >/dev/null && { | |
10664 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10665 | test ! -s conftest.err | |
10666 | }; then | |
10667 | ac_header_preproc=yes | |
10668 | else | |
10669 | $as_echo "$as_me: failed program was:" >&5 | |
10670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10671 | ||
10672 | ac_header_preproc=no | |
10673 | fi | |
10674 | ||
10675 | rm -f conftest.err conftest.$ac_ext | |
10676 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10677 | $as_echo "$ac_header_preproc" >&6; } | |
10678 | ||
10679 | # So? What about this header? | |
10680 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10681 | yes:no: ) | |
10682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10683 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10685 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10686 | ac_header_preproc=yes | |
10687 | ;; | |
10688 | no:yes:* ) | |
10689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10690 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10692 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10694 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10696 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10698 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10700 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10701 | ||
10702 | ;; | |
10703 | esac | |
10704 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10705 | $as_echo_n "checking for $ac_header... " >&6; } | |
10706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10707 | $as_echo_n "(cached) " >&6 | |
10708 | else | |
10709 | eval "$as_ac_Header=\$ac_header_preproc" | |
10710 | fi | |
10711 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10712 | $as_echo "$as_val"'` | |
10713 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10714 | $as_echo "$ac_res" >&6; } | |
10715 | ||
10716 | fi | |
10717 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10718 | $as_echo "$as_val"'` | |
10719 | if test "x$as_val" = x""yes; then | |
10720 | cat >>confdefs.h <<_ACEOF | |
10721 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10722 | _ACEOF | |
10723 | ||
10724 | else | |
10725 | $bailout | |
10726 | fi | |
10727 | ||
10728 | done | |
10729 | ||
10730 | check_lib_no_libs cman cman_init | |
10731 | if test $NOTFOUND = 0; then | |
10732 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10733 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10734 | CMAN_LIBS="-lcman" | |
10735 | HAVE_CMAN=yes | |
10736 | fi | |
10737 | elif test $pkg_failed = untried; then | |
b5c2529b ZK |
10738 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10739 | $as_echo "no" >&6; } | |
a946372e AK |
10740 | NOTFOUND=0 |
10741 | ||
10742 | for ac_header in libcman.h | |
10743 | do | |
10744 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10745 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10746 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10747 | $as_echo_n "checking for $ac_header... " >&6; } | |
10748 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10749 | $as_echo_n "(cached) " >&6 | |
10750 | fi | |
10751 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10752 | $as_echo "$as_val"'` | |
10753 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10754 | $as_echo "$ac_res" >&6; } | |
10755 | else | |
10756 | # Is the header compilable? | |
10757 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10758 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10759 | cat >conftest.$ac_ext <<_ACEOF | |
10760 | /* confdefs.h. */ | |
10761 | _ACEOF | |
10762 | cat confdefs.h >>conftest.$ac_ext | |
10763 | cat >>conftest.$ac_ext <<_ACEOF | |
10764 | /* end confdefs.h. */ | |
10765 | $ac_includes_default | |
10766 | #include <$ac_header> | |
10767 | _ACEOF | |
10768 | rm -f conftest.$ac_objext | |
10769 | if { (ac_try="$ac_compile" | |
10770 | case "(($ac_try" in | |
10771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10772 | *) ac_try_echo=$ac_try;; | |
10773 | esac | |
10774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10775 | $as_echo "$ac_try_echo") >&5 | |
10776 | (eval "$ac_compile") 2>conftest.er1 | |
10777 | ac_status=$? | |
10778 | grep -v '^ *+' conftest.er1 >conftest.err | |
10779 | rm -f conftest.er1 | |
10780 | cat conftest.err >&5 | |
10781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10782 | (exit $ac_status); } && { | |
10783 | test -z "$ac_c_werror_flag" || | |
10784 | test ! -s conftest.err | |
10785 | } && test -s conftest.$ac_objext; then | |
10786 | ac_header_compiler=yes | |
10787 | else | |
10788 | $as_echo "$as_me: failed program was:" >&5 | |
10789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10790 | ||
10791 | ac_header_compiler=no | |
10792 | fi | |
10793 | ||
10794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10795 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10796 | $as_echo "$ac_header_compiler" >&6; } | |
10797 | ||
10798 | # Is the header present? | |
10799 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10800 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10801 | cat >conftest.$ac_ext <<_ACEOF | |
10802 | /* confdefs.h. */ | |
10803 | _ACEOF | |
10804 | cat confdefs.h >>conftest.$ac_ext | |
10805 | cat >>conftest.$ac_ext <<_ACEOF | |
10806 | /* end confdefs.h. */ | |
10807 | #include <$ac_header> | |
10808 | _ACEOF | |
10809 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10810 | case "(($ac_try" in | |
10811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10812 | *) ac_try_echo=$ac_try;; | |
10813 | esac | |
10814 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10815 | $as_echo "$ac_try_echo") >&5 | |
10816 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10817 | ac_status=$? | |
10818 | grep -v '^ *+' conftest.er1 >conftest.err | |
10819 | rm -f conftest.er1 | |
10820 | cat conftest.err >&5 | |
10821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10822 | (exit $ac_status); } >/dev/null && { | |
10823 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10824 | test ! -s conftest.err | |
10825 | }; then | |
10826 | ac_header_preproc=yes | |
10827 | else | |
10828 | $as_echo "$as_me: failed program was:" >&5 | |
10829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10830 | ||
10831 | ac_header_preproc=no | |
10832 | fi | |
10833 | ||
10834 | rm -f conftest.err conftest.$ac_ext | |
10835 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10836 | $as_echo "$ac_header_preproc" >&6; } | |
10837 | ||
10838 | # So? What about this header? | |
10839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10840 | yes:no: ) | |
10841 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10842 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10843 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10844 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10845 | ac_header_preproc=yes | |
10846 | ;; | |
10847 | no:yes:* ) | |
10848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10849 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10851 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10853 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10855 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10857 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10859 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10860 | ||
10861 | ;; | |
10862 | esac | |
10863 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10864 | $as_echo_n "checking for $ac_header... " >&6; } | |
10865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10866 | $as_echo_n "(cached) " >&6 | |
10867 | else | |
10868 | eval "$as_ac_Header=\$ac_header_preproc" | |
10869 | fi | |
10870 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10871 | $as_echo "$as_val"'` | |
10872 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10873 | $as_echo "$ac_res" >&6; } | |
10874 | ||
10875 | fi | |
10876 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10877 | $as_echo "$as_val"'` | |
10878 | if test "x$as_val" = x""yes; then | |
10879 | cat >>confdefs.h <<_ACEOF | |
10880 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10881 | _ACEOF | |
10882 | ||
10883 | else | |
10884 | $bailout | |
10885 | fi | |
10886 | ||
10887 | done | |
10888 | ||
10889 | check_lib_no_libs cman cman_init | |
10890 | if test $NOTFOUND = 0; then | |
10891 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10892 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10893 | CMAN_LIBS="-lcman" | |
10894 | HAVE_CMAN=yes | |
10895 | fi | |
10896 | else | |
10897 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10898 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10899 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10900 | $as_echo "yes" >&6; } | |
10901 | HAVE_CMAN=yes | |
10902 | fi | |
10903 | CHECKCONFDB=yes | |
10904 | CHECKDLM=yes | |
10905 | fi | |
10906 | ||
10907 | if test x$BUILDCOROSYNC = xyes || \ | |
10908 | test x$BUILDOPENAIS = xyes; then | |
10909 | ||
10910 | pkg_failed=no | |
10911 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10912 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10913 | ||
10914 | if test -n "$COROSYNC_CFLAGS"; then | |
10915 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10916 | elif test -n "$PKG_CONFIG"; then | |
10917 | if test -n "$PKG_CONFIG" && \ | |
10918 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10919 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10920 | ac_status=$? | |
10921 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10922 | (exit $ac_status); }; then | |
10923 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10924 | else | |
10925 | pkg_failed=yes | |
10926 | fi | |
10927 | else | |
10928 | pkg_failed=untried | |
10929 | fi | |
10930 | if test -n "$COROSYNC_LIBS"; then | |
10931 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10932 | elif test -n "$PKG_CONFIG"; then | |
10933 | if test -n "$PKG_CONFIG" && \ | |
10934 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10935 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10936 | ac_status=$? | |
10937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10938 | (exit $ac_status); }; then | |
10939 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10940 | else | |
10941 | pkg_failed=yes | |
10942 | fi | |
10943 | else | |
10944 | pkg_failed=untried | |
10945 | fi | |
10946 | ||
10947 | ||
10948 | ||
10949 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
10950 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10951 | $as_echo "no" >&6; } | |
a946372e AK |
10952 | |
10953 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10954 | _pkg_short_errors_supported=yes | |
10955 | else | |
10956 | _pkg_short_errors_supported=no | |
10957 | fi | |
10958 | if test $_pkg_short_errors_supported = yes; then | |
10959 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10960 | else | |
10961 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10962 | fi | |
10963 | # Put the nasty error message in config.log where it belongs | |
10964 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10965 | ||
b5c2529b | 10966 | $bailout |
a946372e | 10967 | elif test $pkg_failed = untried; then |
b5c2529b ZK |
10968 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10969 | $as_echo "no" >&6; } | |
a946372e AK |
10970 | $bailout |
10971 | else | |
10972 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10973 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10974 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10975 | $as_echo "yes" >&6; } | |
10976 | HAVE_COROSYNC=yes | |
10977 | fi | |
10978 | CHECKCONFDB=yes | |
10979 | fi | |
10980 | ||
10981 | if test x$BUILDCOROSYNC = xyes; then | |
10982 | ||
10983 | pkg_failed=no | |
10984 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10985 | $as_echo_n "checking for QUORUM... " >&6; } | |
10986 | ||
10987 | if test -n "$QUORUM_CFLAGS"; then | |
10988 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10989 | elif test -n "$PKG_CONFIG"; then | |
10990 | if test -n "$PKG_CONFIG" && \ | |
10991 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10992 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10993 | ac_status=$? | |
10994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10995 | (exit $ac_status); }; then | |
10996 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10997 | else | |
10998 | pkg_failed=yes | |
10999 | fi | |
11000 | else | |
11001 | pkg_failed=untried | |
11002 | fi | |
11003 | if test -n "$QUORUM_LIBS"; then | |
11004 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
11005 | elif test -n "$PKG_CONFIG"; then | |
11006 | if test -n "$PKG_CONFIG" && \ | |
11007 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
11008 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
11009 | ac_status=$? | |
11010 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11011 | (exit $ac_status); }; then | |
11012 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
11013 | else | |
11014 | pkg_failed=yes | |
11015 | fi | |
11016 | else | |
11017 | pkg_failed=untried | |
11018 | fi | |
11019 | ||
11020 | ||
11021 | ||
11022 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
11023 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11024 | $as_echo "no" >&6; } | |
a946372e AK |
11025 | |
11026 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11027 | _pkg_short_errors_supported=yes | |
11028 | else | |
11029 | _pkg_short_errors_supported=no | |
11030 | fi | |
11031 | if test $_pkg_short_errors_supported = yes; then | |
11032 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
11033 | else | |
11034 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
11035 | fi | |
11036 | # Put the nasty error message in config.log where it belongs | |
11037 | echo "$QUORUM_PKG_ERRORS" >&5 | |
11038 | ||
b5c2529b | 11039 | $bailout |
a946372e | 11040 | elif test $pkg_failed = untried; then |
b5c2529b ZK |
11041 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11042 | $as_echo "no" >&6; } | |
a946372e AK |
11043 | $bailout |
11044 | else | |
11045 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
11046 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
11047 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11048 | $as_echo "yes" >&6; } | |
11049 | HAVE_QUORUM=yes | |
11050 | fi | |
11051 | CHECKCPG=yes | |
11052 | CHECKDLM=yes | |
11053 | fi | |
11054 | ||
11055 | if test x$BUILDOPENAIS = xyes; then | |
11056 | ||
11057 | pkg_failed=no | |
11058 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
11059 | $as_echo_n "checking for SALCK... " >&6; } | |
11060 | ||
11061 | if test -n "$SALCK_CFLAGS"; then | |
11062 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
11063 | elif test -n "$PKG_CONFIG"; then | |
11064 | if test -n "$PKG_CONFIG" && \ | |
11065 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
11066 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11067 | ac_status=$? | |
11068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11069 | (exit $ac_status); }; then | |
11070 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
11071 | else | |
11072 | pkg_failed=yes | |
11073 | fi | |
11074 | else | |
11075 | pkg_failed=untried | |
11076 | fi | |
11077 | if test -n "$SALCK_LIBS"; then | |
11078 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
11079 | elif test -n "$PKG_CONFIG"; then | |
11080 | if test -n "$PKG_CONFIG" && \ | |
11081 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
11082 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11083 | ac_status=$? | |
11084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11085 | (exit $ac_status); }; then | |
11086 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
11087 | else | |
11088 | pkg_failed=yes | |
11089 | fi | |
11090 | else | |
11091 | pkg_failed=untried | |
11092 | fi | |
11093 | ||
11094 | ||
11095 | ||
11096 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
11097 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11098 | $as_echo "no" >&6; } | |
a946372e AK |
11099 | |
11100 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11101 | _pkg_short_errors_supported=yes | |
11102 | else | |
11103 | _pkg_short_errors_supported=no | |
11104 | fi | |
11105 | if test $_pkg_short_errors_supported = yes; then | |
11106 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
11107 | else | |
11108 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
11109 | fi | |
11110 | # Put the nasty error message in config.log where it belongs | |
11111 | echo "$SALCK_PKG_ERRORS" >&5 | |
11112 | ||
b5c2529b | 11113 | $bailout |
a946372e | 11114 | elif test $pkg_failed = untried; then |
b5c2529b ZK |
11115 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11116 | $as_echo "no" >&6; } | |
a946372e AK |
11117 | $bailout |
11118 | else | |
11119 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
11120 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
11121 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11122 | $as_echo "yes" >&6; } | |
11123 | HAVE_SALCK=yes | |
11124 | fi | |
11125 | CHECKCPG=yes | |
11126 | fi | |
11127 | ||
11128 | ||
11129 | ||
11130 | if test x$CHECKCONFDB = xyes; then | |
11131 | ||
11132 | pkg_failed=no | |
11133 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
11134 | $as_echo_n "checking for CONFDB... " >&6; } | |
11135 | ||
11136 | if test -n "$CONFDB_CFLAGS"; then | |
11137 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
11138 | elif test -n "$PKG_CONFIG"; then | |
11139 | if test -n "$PKG_CONFIG" && \ | |
11140 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11141 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11142 | ac_status=$? | |
11143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11144 | (exit $ac_status); }; then | |
11145 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
11146 | else | |
11147 | pkg_failed=yes | |
11148 | fi | |
11149 | else | |
11150 | pkg_failed=untried | |
11151 | fi | |
11152 | if test -n "$CONFDB_LIBS"; then | |
11153 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
11154 | elif test -n "$PKG_CONFIG"; then | |
11155 | if test -n "$PKG_CONFIG" && \ | |
11156 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11157 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11158 | ac_status=$? | |
11159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11160 | (exit $ac_status); }; then | |
11161 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
11162 | else | |
11163 | pkg_failed=yes | |
11164 | fi | |
11165 | else | |
11166 | pkg_failed=untried | |
11167 | fi | |
11168 | ||
11169 | ||
11170 | ||
11171 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
11172 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11173 | $as_echo "no" >&6; } | |
a946372e AK |
11174 | |
11175 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11176 | _pkg_short_errors_supported=yes | |
11177 | else | |
11178 | _pkg_short_errors_supported=no | |
11179 | fi | |
11180 | if test $_pkg_short_errors_supported = yes; then | |
11181 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
11182 | else | |
11183 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
11184 | fi | |
11185 | # Put the nasty error message in config.log where it belongs | |
11186 | echo "$CONFDB_PKG_ERRORS" >&5 | |
11187 | ||
b5c2529b | 11188 | HAVE_CONFDB=no |
a946372e | 11189 | elif test $pkg_failed = untried; then |
b5c2529b ZK |
11190 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11191 | $as_echo "no" >&6; } | |
a946372e AK |
11192 | HAVE_CONFDB=no |
11193 | else | |
11194 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11195 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11196 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11197 | $as_echo "yes" >&6; } | |
11198 | HAVE_CONFDB=yes | |
11199 | fi | |
11200 | ||
11201 | ||
11202 | for ac_header in corosync/confdb.h | |
11203 | do | |
11204 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11206 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11207 | $as_echo_n "checking for $ac_header... " >&6; } | |
11208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11209 | $as_echo_n "(cached) " >&6 | |
11210 | fi | |
11211 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11212 | $as_echo "$as_val"'` | |
11213 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11214 | $as_echo "$ac_res" >&6; } | |
11215 | else | |
11216 | # Is the header compilable? | |
11217 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11218 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11219 | cat >conftest.$ac_ext <<_ACEOF | |
11220 | /* confdefs.h. */ | |
11221 | _ACEOF | |
11222 | cat confdefs.h >>conftest.$ac_ext | |
11223 | cat >>conftest.$ac_ext <<_ACEOF | |
11224 | /* end confdefs.h. */ | |
11225 | $ac_includes_default | |
11226 | #include <$ac_header> | |
11227 | _ACEOF | |
11228 | rm -f conftest.$ac_objext | |
11229 | if { (ac_try="$ac_compile" | |
11230 | case "(($ac_try" in | |
11231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11232 | *) ac_try_echo=$ac_try;; | |
11233 | esac | |
11234 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11235 | $as_echo "$ac_try_echo") >&5 | |
11236 | (eval "$ac_compile") 2>conftest.er1 | |
11237 | ac_status=$? | |
11238 | grep -v '^ *+' conftest.er1 >conftest.err | |
11239 | rm -f conftest.er1 | |
11240 | cat conftest.err >&5 | |
11241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11242 | (exit $ac_status); } && { | |
11243 | test -z "$ac_c_werror_flag" || | |
11244 | test ! -s conftest.err | |
11245 | } && test -s conftest.$ac_objext; then | |
11246 | ac_header_compiler=yes | |
11247 | else | |
11248 | $as_echo "$as_me: failed program was:" >&5 | |
11249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11250 | ||
11251 | ac_header_compiler=no | |
11252 | fi | |
11253 | ||
11254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11255 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11256 | $as_echo "$ac_header_compiler" >&6; } | |
11257 | ||
11258 | # Is the header present? | |
11259 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11260 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11261 | cat >conftest.$ac_ext <<_ACEOF | |
11262 | /* confdefs.h. */ | |
11263 | _ACEOF | |
11264 | cat confdefs.h >>conftest.$ac_ext | |
11265 | cat >>conftest.$ac_ext <<_ACEOF | |
11266 | /* end confdefs.h. */ | |
11267 | #include <$ac_header> | |
11268 | _ACEOF | |
11269 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11270 | case "(($ac_try" in | |
11271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11272 | *) ac_try_echo=$ac_try;; | |
11273 | esac | |
11274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11275 | $as_echo "$ac_try_echo") >&5 | |
11276 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11277 | ac_status=$? | |
11278 | grep -v '^ *+' conftest.er1 >conftest.err | |
11279 | rm -f conftest.er1 | |
11280 | cat conftest.err >&5 | |
11281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11282 | (exit $ac_status); } >/dev/null && { | |
11283 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11284 | test ! -s conftest.err | |
11285 | }; then | |
11286 | ac_header_preproc=yes | |
11287 | else | |
11288 | $as_echo "$as_me: failed program was:" >&5 | |
11289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11290 | ||
11291 | ac_header_preproc=no | |
11292 | fi | |
11293 | ||
11294 | rm -f conftest.err conftest.$ac_ext | |
11295 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11296 | $as_echo "$ac_header_preproc" >&6; } | |
11297 | ||
11298 | # So? What about this header? | |
11299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11300 | yes:no: ) | |
11301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11302 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11304 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11305 | ac_header_preproc=yes | |
11306 | ;; | |
11307 | no:yes:* ) | |
11308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11309 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11311 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11313 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11315 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11317 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11318 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11319 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11320 | ||
11321 | ;; | |
11322 | esac | |
11323 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11324 | $as_echo_n "checking for $ac_header... " >&6; } | |
11325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11326 | $as_echo_n "(cached) " >&6 | |
11327 | else | |
11328 | eval "$as_ac_Header=\$ac_header_preproc" | |
11329 | fi | |
11330 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11331 | $as_echo "$as_val"'` | |
11332 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11333 | $as_echo "$ac_res" >&6; } | |
11334 | ||
11335 | fi | |
11336 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11337 | $as_echo "$as_val"'` | |
11338 | if test "x$as_val" = x""yes; then | |
11339 | cat >>confdefs.h <<_ACEOF | |
11340 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11341 | _ACEOF | |
11342 | HAVE_CONFDB_H=yes | |
11343 | else | |
11344 | HAVE_CONFDB_H=no | |
11345 | fi | |
11346 | ||
11347 | done | |
11348 | ||
11349 | ||
11350 | if test x$HAVE_CONFDB != xyes && \ | |
11351 | test x$HAVE_CONFDB_H = xyes; then | |
11352 | check_lib_no_libs confdb confdb_initialize | |
11353 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11354 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11355 | CONFDB_LIBS="-lconfdb" | |
11356 | HAVE_CONFDB=yes | |
11357 | fi | |
11358 | ||
11359 | if test x$BUILDCOROSYNC = xyes && \ | |
11360 | test x$HAVE_CONFDB != xyes && | |
11361 | test x$CLVMD != xall; then | |
11362 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11363 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11364 | { (exit 1); exit 1; }; } | |
11365 | fi | |
11366 | fi | |
11367 | ||
11368 | if test x$CHECKCPG = xyes; then | |
11369 | ||
11370 | pkg_failed=no | |
11371 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11372 | $as_echo_n "checking for CPG... " >&6; } | |
11373 | ||
11374 | if test -n "$CPG_CFLAGS"; then | |
11375 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11376 | elif test -n "$PKG_CONFIG"; then | |
11377 | if test -n "$PKG_CONFIG" && \ | |
11378 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11379 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11380 | ac_status=$? | |
11381 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11382 | (exit $ac_status); }; then | |
11383 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11384 | else | |
11385 | pkg_failed=yes | |
11386 | fi | |
11387 | else | |
11388 | pkg_failed=untried | |
11389 | fi | |
11390 | if test -n "$CPG_LIBS"; then | |
11391 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11392 | elif test -n "$PKG_CONFIG"; then | |
11393 | if test -n "$PKG_CONFIG" && \ | |
11394 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11395 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11396 | ac_status=$? | |
11397 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11398 | (exit $ac_status); }; then | |
11399 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11400 | else | |
11401 | pkg_failed=yes | |
11402 | fi | |
11403 | else | |
11404 | pkg_failed=untried | |
11405 | fi | |
11406 | ||
11407 | ||
11408 | ||
11409 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
11410 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11411 | $as_echo "no" >&6; } | |
a946372e AK |
11412 | |
11413 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11414 | _pkg_short_errors_supported=yes | |
11415 | else | |
11416 | _pkg_short_errors_supported=no | |
11417 | fi | |
11418 | if test $_pkg_short_errors_supported = yes; then | |
11419 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11420 | else | |
11421 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11422 | fi | |
11423 | # Put the nasty error message in config.log where it belongs | |
11424 | echo "$CPG_PKG_ERRORS" >&5 | |
11425 | ||
b5c2529b | 11426 | $bailout |
a946372e | 11427 | elif test $pkg_failed = untried; then |
b5c2529b ZK |
11428 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11429 | $as_echo "no" >&6; } | |
a946372e AK |
11430 | $bailout |
11431 | else | |
11432 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11433 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11434 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11435 | $as_echo "yes" >&6; } | |
11436 | HAVE_CPG=yes | |
11437 | fi | |
11438 | fi | |
11439 | ||
11440 | if test x$CHECKDLM = xyes; then | |
11441 | ||
11442 | pkg_failed=no | |
11443 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11444 | $as_echo_n "checking for DLM... " >&6; } | |
11445 | ||
11446 | if test -n "$DLM_CFLAGS"; then | |
11447 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11448 | elif test -n "$PKG_CONFIG"; then | |
11449 | if test -n "$PKG_CONFIG" && \ | |
11450 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11451 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11452 | ac_status=$? | |
11453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11454 | (exit $ac_status); }; then | |
11455 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11456 | else | |
11457 | pkg_failed=yes | |
11458 | fi | |
11459 | else | |
11460 | pkg_failed=untried | |
11461 | fi | |
11462 | if test -n "$DLM_LIBS"; then | |
11463 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11464 | elif test -n "$PKG_CONFIG"; then | |
11465 | if test -n "$PKG_CONFIG" && \ | |
11466 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11467 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11468 | ac_status=$? | |
11469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11470 | (exit $ac_status); }; then | |
11471 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11472 | else | |
11473 | pkg_failed=yes | |
11474 | fi | |
11475 | else | |
11476 | pkg_failed=untried | |
11477 | fi | |
11478 | ||
11479 | ||
11480 | ||
11481 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
11482 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11483 | $as_echo "no" >&6; } | |
a946372e AK |
11484 | |
11485 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11486 | _pkg_short_errors_supported=yes | |
11487 | else | |
11488 | _pkg_short_errors_supported=no | |
11489 | fi | |
11490 | if test $_pkg_short_errors_supported = yes; then | |
11491 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11492 | else | |
11493 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11494 | fi | |
11495 | # Put the nasty error message in config.log where it belongs | |
11496 | echo "$DLM_PKG_ERRORS" >&5 | |
11497 | ||
b5c2529b | 11498 | NOTFOUND=0 |
a946372e AK |
11499 | |
11500 | for ac_header in libdlm.h | |
11501 | do | |
11502 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11503 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11504 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11505 | $as_echo_n "checking for $ac_header... " >&6; } | |
11506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11507 | $as_echo_n "(cached) " >&6 | |
11508 | fi | |
11509 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11510 | $as_echo "$as_val"'` | |
11511 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11512 | $as_echo "$ac_res" >&6; } | |
11513 | else | |
11514 | # Is the header compilable? | |
11515 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11516 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11517 | cat >conftest.$ac_ext <<_ACEOF | |
11518 | /* confdefs.h. */ | |
11519 | _ACEOF | |
11520 | cat confdefs.h >>conftest.$ac_ext | |
11521 | cat >>conftest.$ac_ext <<_ACEOF | |
11522 | /* end confdefs.h. */ | |
11523 | $ac_includes_default | |
11524 | #include <$ac_header> | |
11525 | _ACEOF | |
11526 | rm -f conftest.$ac_objext | |
11527 | if { (ac_try="$ac_compile" | |
11528 | case "(($ac_try" in | |
11529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11530 | *) ac_try_echo=$ac_try;; | |
11531 | esac | |
11532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11533 | $as_echo "$ac_try_echo") >&5 | |
11534 | (eval "$ac_compile") 2>conftest.er1 | |
11535 | ac_status=$? | |
11536 | grep -v '^ *+' conftest.er1 >conftest.err | |
11537 | rm -f conftest.er1 | |
11538 | cat conftest.err >&5 | |
11539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11540 | (exit $ac_status); } && { | |
11541 | test -z "$ac_c_werror_flag" || | |
11542 | test ! -s conftest.err | |
11543 | } && test -s conftest.$ac_objext; then | |
11544 | ac_header_compiler=yes | |
11545 | else | |
11546 | $as_echo "$as_me: failed program was:" >&5 | |
11547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11548 | ||
11549 | ac_header_compiler=no | |
11550 | fi | |
11551 | ||
11552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11553 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11554 | $as_echo "$ac_header_compiler" >&6; } | |
11555 | ||
11556 | # Is the header present? | |
11557 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11558 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | /* confdefs.h. */ | |
11561 | _ACEOF | |
11562 | cat confdefs.h >>conftest.$ac_ext | |
11563 | cat >>conftest.$ac_ext <<_ACEOF | |
11564 | /* end confdefs.h. */ | |
11565 | #include <$ac_header> | |
11566 | _ACEOF | |
11567 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11568 | case "(($ac_try" in | |
11569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11570 | *) ac_try_echo=$ac_try;; | |
11571 | esac | |
11572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11573 | $as_echo "$ac_try_echo") >&5 | |
11574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11575 | ac_status=$? | |
11576 | grep -v '^ *+' conftest.er1 >conftest.err | |
11577 | rm -f conftest.er1 | |
11578 | cat conftest.err >&5 | |
11579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11580 | (exit $ac_status); } >/dev/null && { | |
11581 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11582 | test ! -s conftest.err | |
11583 | }; then | |
11584 | ac_header_preproc=yes | |
11585 | else | |
11586 | $as_echo "$as_me: failed program was:" >&5 | |
11587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11588 | ||
11589 | ac_header_preproc=no | |
11590 | fi | |
11591 | ||
11592 | rm -f conftest.err conftest.$ac_ext | |
11593 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11594 | $as_echo "$ac_header_preproc" >&6; } | |
11595 | ||
11596 | # So? What about this header? | |
11597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11598 | yes:no: ) | |
11599 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11600 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11601 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11602 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11603 | ac_header_preproc=yes | |
11604 | ;; | |
11605 | no:yes:* ) | |
11606 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11607 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11608 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11609 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11610 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11611 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11612 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11613 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11614 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11615 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11617 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11618 | ||
11619 | ;; | |
11620 | esac | |
11621 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11622 | $as_echo_n "checking for $ac_header... " >&6; } | |
11623 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11624 | $as_echo_n "(cached) " >&6 | |
11625 | else | |
11626 | eval "$as_ac_Header=\$ac_header_preproc" | |
11627 | fi | |
11628 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11629 | $as_echo "$as_val"'` | |
11630 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11631 | $as_echo "$ac_res" >&6; } | |
11632 | ||
11633 | fi | |
11634 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11635 | $as_echo "$as_val"'` | |
11636 | if test "x$as_val" = x""yes; then | |
11637 | cat >>confdefs.h <<_ACEOF | |
11638 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11639 | _ACEOF | |
11640 | ||
11641 | else | |
11642 | $bailout | |
11643 | fi | |
11644 | ||
11645 | done | |
11646 | ||
11647 | check_lib_no_libs dlm dlm_lock -lpthread | |
11648 | if test $NOTFOUND = 0; then | |
11649 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11650 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11651 | DLM_LIBS="-ldlm -lpthread" | |
11652 | HAVE_DLM=yes | |
11653 | fi | |
11654 | elif test $pkg_failed = untried; then | |
b5c2529b ZK |
11655 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11656 | $as_echo "no" >&6; } | |
a946372e AK |
11657 | NOTFOUND=0 |
11658 | ||
11659 | for ac_header in libdlm.h | |
11660 | do | |
11661 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11662 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11663 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11664 | $as_echo_n "checking for $ac_header... " >&6; } | |
11665 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11666 | $as_echo_n "(cached) " >&6 | |
11667 | fi | |
11668 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11669 | $as_echo "$as_val"'` | |
11670 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11671 | $as_echo "$ac_res" >&6; } | |
11672 | else | |
11673 | # Is the header compilable? | |
11674 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11675 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11676 | cat >conftest.$ac_ext <<_ACEOF | |
11677 | /* confdefs.h. */ | |
11678 | _ACEOF | |
11679 | cat confdefs.h >>conftest.$ac_ext | |
11680 | cat >>conftest.$ac_ext <<_ACEOF | |
11681 | /* end confdefs.h. */ | |
11682 | $ac_includes_default | |
11683 | #include <$ac_header> | |
11684 | _ACEOF | |
11685 | rm -f conftest.$ac_objext | |
11686 | if { (ac_try="$ac_compile" | |
11687 | case "(($ac_try" in | |
11688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11689 | *) ac_try_echo=$ac_try;; | |
11690 | esac | |
11691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11692 | $as_echo "$ac_try_echo") >&5 | |
11693 | (eval "$ac_compile") 2>conftest.er1 | |
11694 | ac_status=$? | |
11695 | grep -v '^ *+' conftest.er1 >conftest.err | |
11696 | rm -f conftest.er1 | |
11697 | cat conftest.err >&5 | |
11698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11699 | (exit $ac_status); } && { | |
11700 | test -z "$ac_c_werror_flag" || | |
11701 | test ! -s conftest.err | |
11702 | } && test -s conftest.$ac_objext; then | |
11703 | ac_header_compiler=yes | |
11704 | else | |
11705 | $as_echo "$as_me: failed program was:" >&5 | |
11706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11707 | ||
11708 | ac_header_compiler=no | |
11709 | fi | |
11710 | ||
11711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11712 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11713 | $as_echo "$ac_header_compiler" >&6; } | |
11714 | ||
11715 | # Is the header present? | |
11716 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11717 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11718 | cat >conftest.$ac_ext <<_ACEOF | |
11719 | /* confdefs.h. */ | |
11720 | _ACEOF | |
11721 | cat confdefs.h >>conftest.$ac_ext | |
11722 | cat >>conftest.$ac_ext <<_ACEOF | |
11723 | /* end confdefs.h. */ | |
11724 | #include <$ac_header> | |
11725 | _ACEOF | |
11726 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11727 | case "(($ac_try" in | |
11728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11729 | *) ac_try_echo=$ac_try;; | |
11730 | esac | |
11731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11732 | $as_echo "$ac_try_echo") >&5 | |
11733 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11734 | ac_status=$? | |
11735 | grep -v '^ *+' conftest.er1 >conftest.err | |
11736 | rm -f conftest.er1 | |
11737 | cat conftest.err >&5 | |
11738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11739 | (exit $ac_status); } >/dev/null && { | |
11740 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11741 | test ! -s conftest.err | |
11742 | }; then | |
11743 | ac_header_preproc=yes | |
11744 | else | |
11745 | $as_echo "$as_me: failed program was:" >&5 | |
11746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11747 | ||
11748 | ac_header_preproc=no | |
11749 | fi | |
11750 | ||
11751 | rm -f conftest.err conftest.$ac_ext | |
11752 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11753 | $as_echo "$ac_header_preproc" >&6; } | |
11754 | ||
11755 | # So? What about this header? | |
11756 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11757 | yes:no: ) | |
11758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11759 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11760 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11761 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11762 | ac_header_preproc=yes | |
11763 | ;; | |
11764 | no:yes:* ) | |
11765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11766 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11768 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11770 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11772 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11774 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11775 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11776 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11777 | ||
11778 | ;; | |
11779 | esac | |
11780 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11781 | $as_echo_n "checking for $ac_header... " >&6; } | |
11782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11783 | $as_echo_n "(cached) " >&6 | |
11784 | else | |
11785 | eval "$as_ac_Header=\$ac_header_preproc" | |
11786 | fi | |
11787 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11788 | $as_echo "$as_val"'` | |
11789 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11790 | $as_echo "$ac_res" >&6; } | |
11791 | ||
11792 | fi | |
11793 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11794 | $as_echo "$as_val"'` | |
11795 | if test "x$as_val" = x""yes; then | |
11796 | cat >>confdefs.h <<_ACEOF | |
11797 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11798 | _ACEOF | |
11799 | ||
11800 | else | |
11801 | $bailout | |
11802 | fi | |
11803 | ||
11804 | done | |
11805 | ||
11806 | check_lib_no_libs dlm dlm_lock -lpthread | |
11807 | if test $NOTFOUND = 0; then | |
11808 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11809 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11810 | DLM_LIBS="-ldlm -lpthread" | |
11811 | HAVE_DLM=yes | |
11812 | fi | |
11813 | else | |
11814 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11815 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11816 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11817 | $as_echo "yes" >&6; } | |
11818 | HAVE_DLM=yes | |
11819 | fi | |
11820 | fi | |
11821 | ||
11822 | if test x$CLVMD = xall; then | |
8c222979 | 11823 | CLVMD=none |
a946372e AK |
11824 | if test x$HAVE_CCS = xyes && \ |
11825 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
11826 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
11827 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
11828 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
11829 | fi |
11830 | if test x$HAVE_CMAN = xyes && \ | |
11831 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
11832 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
11833 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
11834 | CLVMD="$CLVMD,cman" | |
a946372e AK |
11835 | fi |
11836 | if test x$HAVE_COROSYNC = xyes && \ | |
11837 | test x$HAVE_QUORUM = xyes && \ | |
11838 | test x$HAVE_CPG = xyes && \ | |
11839 | test x$HAVE_DLM = xyes && \ | |
11840 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
11841 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
11842 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
11843 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
11844 | fi |
11845 | if test x$HAVE_COROSYNC = xyes && \ | |
11846 | test x$HAVE_CPG = xyes && \ | |
11847 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
11848 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
11849 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
11850 | CLVMD="$CLVMD,openais" | |
11851 | fi | |
11852 | if test x$CLVMD = xnone; then | |
11853 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
11854 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 11855 | fi |
a946372e AK |
11856 | fi |
11857 | ||
11858 | ################################################################################ | |
66fd4529 AK |
11859 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11860 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11861 | # Check whether --enable-cmirrord was given. | |
11862 | if test "${enable_cmirrord+set}" = set; then | |
11863 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11864 | else | |
11865 | CMIRRORD=no | |
11866 | fi | |
11867 | ||
11868 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11869 | $as_echo "$CMIRRORD" >&6; } | |
11870 | ||
11871 | BUILD_CMIRRORD=$CMIRRORD | |
11872 | ||
11873 | ################################################################################ | |
11874 | ||
11875 | ||
11876 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11877 | ||
11878 | # Check whether --with-cmirrord-pidfile was given. | |
11879 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11880 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11881 | #define CMIRRORD_PIDFILE "$withval" | |
11882 | _ACEOF | |
11883 | ||
11884 | else | |
11885 | cat >>confdefs.h <<_ACEOF | |
11886 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11887 | _ACEOF | |
11888 | ||
a946372e AK |
11889 | fi |
11890 | ||
66fd4529 | 11891 | fi |
a946372e | 11892 | |
66fd4529 AK |
11893 | ################################################################################ |
11894 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
11895 | if test x$PKGCONFIG_INIT != x1; then |
11896 | pkg_config_init | |
11897 | fi | |
11898 | ||
11899 | pkg_failed=no | |
11900 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
11901 | $as_echo_n "checking for SACKPT... " >&6; } | |
11902 | ||
11903 | if test -n "$SACKPT_CFLAGS"; then | |
11904 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
11905 | elif test -n "$PKG_CONFIG"; then | |
11906 | if test -n "$PKG_CONFIG" && \ | |
11907 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11908 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11909 | ac_status=$? | |
11910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11911 | (exit $ac_status); }; then | |
11912 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
11913 | else | |
11914 | pkg_failed=yes | |
11915 | fi | |
11916 | else | |
11917 | pkg_failed=untried | |
11918 | fi | |
11919 | if test -n "$SACKPT_LIBS"; then | |
11920 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
11921 | elif test -n "$PKG_CONFIG"; then | |
11922 | if test -n "$PKG_CONFIG" && \ | |
11923 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11924 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11925 | ac_status=$? | |
11926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11927 | (exit $ac_status); }; then | |
11928 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
11929 | else | |
11930 | pkg_failed=yes | |
11931 | fi | |
11932 | else | |
11933 | pkg_failed=untried | |
11934 | fi | |
11935 | ||
11936 | ||
11937 | ||
11938 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
11939 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11940 | $as_echo "no" >&6; } | |
90c80887 AK |
11941 | |
11942 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11943 | _pkg_short_errors_supported=yes | |
11944 | else | |
11945 | _pkg_short_errors_supported=no | |
11946 | fi | |
11947 | if test $_pkg_short_errors_supported = yes; then | |
11948 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
11949 | else | |
11950 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
11951 | fi | |
11952 | # Put the nasty error message in config.log where it belongs | |
11953 | echo "$SACKPT_PKG_ERRORS" >&5 | |
11954 | ||
11955 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
11956 | ||
11957 | $SACKPT_PKG_ERRORS | |
11958 | ||
11959 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11960 | installed software in a non-standard prefix. | |
11961 | ||
11962 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11963 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
b5c2529b | 11964 | See the pkg-config man page for more details." >&5 |
90c80887 AK |
11965 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
11966 | ||
11967 | $SACKPT_PKG_ERRORS | |
11968 | ||
11969 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11970 | installed software in a non-standard prefix. | |
11971 | ||
11972 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11973 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
b5c2529b | 11974 | See the pkg-config man page for more details." >&2;} |
90c80887 AK |
11975 | { (exit 1); exit 1; }; } |
11976 | elif test $pkg_failed = untried; then | |
b5c2529b ZK |
11977 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11978 | $as_echo "no" >&6; } | |
90c80887 AK |
11979 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
11980 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11981 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11982 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11983 | path to pkg-config. | |
11984 | ||
11985 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11986 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11987 | See the pkg-config man page for more details. | |
11988 | ||
11989 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11990 | See \`config.log' for more details." >&5 | |
11991 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11992 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11993 | path to pkg-config. | |
11994 | ||
11995 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11996 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11997 | See the pkg-config man page for more details. | |
11998 | ||
11999 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12000 | See \`config.log' for more details." >&2;} | |
12001 | { (exit 1); exit 1; }; }; } | |
12002 | else | |
12003 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
12004 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
12005 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12006 | $as_echo "yes" >&6; } | |
b5c2529b | 12007 | |
90c80887 AK |
12008 | fi |
12009 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
12010 | |
12011 | pkg_failed=no | |
12012 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
12013 | $as_echo_n "checking for CPG... " >&6; } | |
12014 | ||
12015 | if test -n "$CPG_CFLAGS"; then | |
12016 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
12017 | elif test -n "$PKG_CONFIG"; then | |
12018 | if test -n "$PKG_CONFIG" && \ | |
12019 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
12020 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
12021 | ac_status=$? | |
12022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12023 | (exit $ac_status); }; then | |
12024 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
12025 | else | |
12026 | pkg_failed=yes | |
12027 | fi | |
12028 | else | |
12029 | pkg_failed=untried | |
12030 | fi | |
12031 | if test -n "$CPG_LIBS"; then | |
12032 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
12033 | elif test -n "$PKG_CONFIG"; then | |
12034 | if test -n "$PKG_CONFIG" && \ | |
12035 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
12036 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
12037 | ac_status=$? | |
12038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12039 | (exit $ac_status); }; then | |
12040 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
12041 | else | |
12042 | pkg_failed=yes | |
12043 | fi | |
12044 | else | |
12045 | pkg_failed=untried | |
12046 | fi | |
12047 | ||
12048 | ||
12049 | ||
12050 | if test $pkg_failed = yes; then | |
b5c2529b ZK |
12051 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12052 | $as_echo "no" >&6; } | |
a946372e AK |
12053 | |
12054 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12055 | _pkg_short_errors_supported=yes | |
12056 | else | |
12057 | _pkg_short_errors_supported=no | |
12058 | fi | |
12059 | if test $_pkg_short_errors_supported = yes; then | |
12060 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
12061 | else | |
12062 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
12063 | fi | |
12064 | # Put the nasty error message in config.log where it belongs | |
12065 | echo "$CPG_PKG_ERRORS" >&5 | |
12066 | ||
90c80887 AK |
12067 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
12068 | ||
12069 | $CPG_PKG_ERRORS | |
12070 | ||
12071 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12072 | installed software in a non-standard prefix. | |
12073 | ||
12074 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12075 | and CPG_LIBS to avoid the need to call pkg-config. | |
b5c2529b | 12076 | See the pkg-config man page for more details." >&5 |
90c80887 AK |
12077 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
12078 | ||
12079 | $CPG_PKG_ERRORS | |
12080 | ||
12081 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12082 | installed software in a non-standard prefix. | |
12083 | ||
12084 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12085 | and CPG_LIBS to avoid the need to call pkg-config. | |
b5c2529b | 12086 | See the pkg-config man page for more details." >&2;} |
90c80887 | 12087 | { (exit 1); exit 1; }; } |
a946372e | 12088 | elif test $pkg_failed = untried; then |
b5c2529b ZK |
12089 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12090 | $as_echo "no" >&6; } | |
90c80887 AK |
12091 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12092 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12093 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
12094 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12095 | path to pkg-config. | |
12096 | ||
12097 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12098 | and CPG_LIBS to avoid the need to call pkg-config. | |
12099 | See the pkg-config man page for more details. | |
12100 | ||
12101 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12102 | See \`config.log' for more details." >&5 | |
12103 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
12104 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12105 | path to pkg-config. | |
12106 | ||
12107 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12108 | and CPG_LIBS to avoid the need to call pkg-config. | |
12109 | See the pkg-config man page for more details. | |
12110 | ||
12111 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12112 | See \`config.log' for more details." >&2;} | |
12113 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
12114 | else |
12115 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
12116 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
12117 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12118 | $as_echo "yes" >&6; } | |
b5c2529b | 12119 | |
a946372e | 12120 | fi |
90c80887 | 12121 | fi |
a946372e AK |
12122 | fi |
12123 | ||
12124 | ################################################################################ | |
12125 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
12126 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
12127 | # Check whether --enable-debug was given. | |
12128 | if test "${enable_debug+set}" = set; then | |
12129 | enableval=$enable_debug; DEBUG=$enableval | |
12130 | else | |
12131 | DEBUG=no | |
12132 | fi | |
12133 | ||
12134 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
12135 | $as_echo "$DEBUG" >&6; } | |
12136 | ||
12137 | if test x$DEBUG = xyes; then | |
12138 | COPTIMISE_FLAG= | |
12139 | else | |
12140 | CSCOPE_CMD= | |
12141 | fi | |
12142 | ||
12143 | ################################################################################ | |
12144 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
12145 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
12146 | ||
12147 | # Check whether --with-optimisation was given. | |
12148 | if test "${with_optimisation+set}" = set; then | |
12149 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
12150 | fi | |
12151 | ||
12152 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
12153 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
12154 | ||
12155 | ################################################################################ | |
12156 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
12157 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
12158 | # Check whether --enable-profiling was given. | |
12159 | if test "${enable_profiling+set}" = set; then | |
5556819a | 12160 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 12161 | else |
5556819a | 12162 | PROFILING=no |
fddafd51 ZK |
12163 | fi |
12164 | ||
ec6a6fbe AK |
12165 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
12166 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
12167 | |
12168 | if test "x$PROFILING" = xyes; then | |
12169 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
12170 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 12171 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
12172 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12173 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12174 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 12175 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12176 | else |
12177 | case $LCOV in | |
12178 | [\\/]* | ?:[\\/]*) | |
12179 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
12180 | ;; | |
12181 | *) | |
12182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12183 | for as_dir in $PATH | |
12184 | do | |
12185 | IFS=$as_save_IFS | |
12186 | test -z "$as_dir" && as_dir=. | |
12187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12189 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12190 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12191 | break 2 |
12192 | fi | |
12193 | done | |
12194 | done | |
12195 | IFS=$as_save_IFS | |
12196 | ||
12197 | ;; | |
12198 | esac | |
12199 | fi | |
12200 | LCOV=$ac_cv_path_LCOV | |
12201 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
12202 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
12203 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 12204 | else |
ec6a6fbe AK |
12205 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12206 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12207 | fi |
12208 | ||
12209 | ||
5556819a | 12210 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 12211 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
12212 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12213 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12214 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 12215 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12216 | else |
12217 | case $GENHTML in | |
12218 | [\\/]* | ?:[\\/]*) | |
12219 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
12220 | ;; | |
12221 | *) | |
12222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12223 | for as_dir in $PATH | |
12224 | do | |
12225 | IFS=$as_save_IFS | |
12226 | test -z "$as_dir" && as_dir=. | |
12227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12229 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12230 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12231 | break 2 |
12232 | fi | |
12233 | done | |
12234 | done | |
12235 | IFS=$as_save_IFS | |
12236 | ||
12237 | ;; | |
12238 | esac | |
12239 | fi | |
12240 | GENHTML=$ac_cv_path_GENHTML | |
12241 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
12242 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
12243 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 12244 | else |
ec6a6fbe AK |
12245 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12246 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12247 | fi |
12248 | ||
12249 | ||
fd4728e1 | 12250 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
12251 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
12252 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
12253 | { (exit 1); exit 1; }; } |
12254 | fi | |
fd4728e1 ZK |
12255 | # Extract the first word of "genpng", so it can be a program name with args. |
12256 | set dummy genpng; ac_word=$2 | |
12257 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12258 | $as_echo_n "checking for $ac_word... " >&6; } | |
12259 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
12260 | $as_echo_n "(cached) " >&6 | |
12261 | else | |
12262 | case $GENPNG in | |
12263 | [\\/]* | ?:[\\/]*) | |
12264 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
12265 | ;; | |
12266 | *) | |
12267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12268 | for as_dir in $PATH | |
12269 | do | |
12270 | IFS=$as_save_IFS | |
12271 | test -z "$as_dir" && as_dir=. | |
12272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12274 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
12275 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12276 | break 2 | |
12277 | fi | |
12278 | done | |
12279 | done | |
12280 | IFS=$as_save_IFS | |
12281 | ||
12282 | ;; | |
12283 | esac | |
12284 | fi | |
12285 | GENPNG=$ac_cv_path_GENPNG | |
12286 | if test -n "$GENPNG"; then | |
12287 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
12288 | $as_echo "$GENPNG" >&6; } | |
12289 | else | |
12290 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12291 | $as_echo "no" >&6; } | |
12292 | fi | |
12293 | ||
12294 | ||
12295 | if test -n "$GENPNG"; then | |
12296 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
12297 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
12298 | if $GENPNG --help > /dev/null 2>&1 ; then | |
12299 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
12300 | $as_echo "ok" >&6; } | |
12301 | GENHTML="$GENHTML --frames" | |
12302 | else | |
12303 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
12304 | $as_echo "not supported" >&6; } | |
12305 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
12306 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
12307 | GENPNG= | |
12308 | fi | |
12309 | fi | |
5556819a | 12310 | fi |
d0191583 JM |
12311 | |
12312 | ################################################################################ | |
ec6a6fbe AK |
12313 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
12314 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
12315 | # Check whether --enable-devmapper was given. |
12316 | if test "${enable_devmapper+set}" = set; then | |
12317 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
12318 | fi |
12319 | ||
ec6a6fbe AK |
12320 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
12321 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
12322 | |
12323 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
12324 | |
12325 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 12326 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
12327 | _ACEOF |
12328 | ||
12329 | fi | |
12330 | ||
a5f46f6a AK |
12331 | ################################################################################ |
12332 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
12333 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
12334 | # Check whether --enable-udev_sync was given. | |
12335 | if test "${enable_udev_sync+set}" = set; then | |
12336 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
12337 | else | |
12338 | UDEV_SYNC=no | |
12339 | fi | |
12340 | ||
12341 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
12342 | $as_echo "$UDEV_SYNC" >&6; } | |
12343 | ||
90c80887 AK |
12344 | if test x$UDEV_SYNC = xyes; then |
12345 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
12346 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
12347 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
12348 | $as_echo_n "(cached) " >&6 | |
12349 | else | |
12350 | ac_check_lib_save_LIBS=$LIBS | |
12351 | LIBS="-ludev $LIBS" | |
12352 | cat >conftest.$ac_ext <<_ACEOF | |
12353 | /* confdefs.h. */ | |
12354 | _ACEOF | |
12355 | cat confdefs.h >>conftest.$ac_ext | |
12356 | cat >>conftest.$ac_ext <<_ACEOF | |
12357 | /* end confdefs.h. */ | |
12358 | ||
12359 | /* Override any GCC internal prototype to avoid an error. | |
12360 | Use char because int might match the return type of a GCC | |
12361 | builtin and then its argument prototype would still apply. */ | |
12362 | #ifdef __cplusplus | |
12363 | extern "C" | |
12364 | #endif | |
12365 | char udev_queue_get_udev_is_active (); | |
12366 | int | |
12367 | main () | |
12368 | { | |
12369 | return udev_queue_get_udev_is_active (); | |
12370 | ; | |
12371 | return 0; | |
12372 | } | |
12373 | _ACEOF | |
12374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12375 | if { (ac_try="$ac_link" | |
12376 | case "(($ac_try" in | |
12377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12378 | *) ac_try_echo=$ac_try;; | |
12379 | esac | |
12380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12381 | $as_echo "$ac_try_echo") >&5 | |
12382 | (eval "$ac_link") 2>conftest.er1 | |
12383 | ac_status=$? | |
12384 | grep -v '^ *+' conftest.er1 >conftest.err | |
12385 | rm -f conftest.er1 | |
12386 | cat conftest.err >&5 | |
12387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12388 | (exit $ac_status); } && { | |
12389 | test -z "$ac_c_werror_flag" || | |
12390 | test ! -s conftest.err | |
12391 | } && test -s conftest$ac_exeext && { | |
12392 | test "$cross_compiling" = yes || | |
12393 | $as_test_x conftest$ac_exeext | |
12394 | }; then | |
12395 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
12396 | else | |
12397 | $as_echo "$as_me: failed program was:" >&5 | |
12398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12399 | ||
12400 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
12401 | fi | |
12402 | ||
12403 | rm -rf conftest.dSYM | |
12404 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12405 | conftest$ac_exeext conftest.$ac_ext | |
12406 | LIBS=$ac_check_lib_save_LIBS | |
12407 | fi | |
12408 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
12409 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
12410 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 12411 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 12412 | else |
5161ecb9 PR |
12413 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
12414 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
12415 | { (exit 1); exit 1; }; } | |
90c80887 AK |
12416 | fi |
12417 | ||
12418 | ||
90c80887 | 12419 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 12420 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
12421 | _ACEOF |
12422 | ||
90c80887 AK |
12423 | fi |
12424 | ||
5161ecb9 PR |
12425 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
12426 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
12427 | # Check whether --enable-udev_rules was given. | |
12428 | if test "${enable_udev_rules+set}" = set; then | |
12429 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
12430 | else | |
12431 | UDEV_RULES=$UDEV_SYNC | |
12432 | fi | |
12433 | ||
12434 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
12435 | $as_echo "$UDEV_RULES" >&6; } | |
12436 | ||
93bd259b AK |
12437 | ################################################################################ |
12438 | # Check whether --enable-compat was given. | |
12439 | if test "${enable_compat+set}" = set; then | |
12440 | enableval=$enable_compat; DM_COMPAT=$enableval | |
12441 | else | |
12442 | DM_COMPAT=no | |
12443 | fi | |
12444 | ||
12445 | ||
95eaa683 AK |
12446 | ################################################################################ |
12447 | # Check whether --enable-units-compat was given. | |
12448 | if test "${enable_units_compat+set}" = set; then | |
12449 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
12450 | else | |
12451 | UNITS_COMPAT=no | |
12452 | fi | |
12453 | ||
12454 | ||
12455 | if test x$UNITS_COMPAT = xyes; then | |
12456 | ||
12457 | cat >>confdefs.h <<\_ACEOF | |
12458 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
12459 | _ACEOF | |
12460 | ||
12461 | fi | |
12462 | ||
93bd259b AK |
12463 | ################################################################################ |
12464 | # Check whether --enable-ioctl was given. | |
12465 | if test "${enable_ioctl+set}" = set; then | |
12466 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
12467 | fi | |
12468 | ||
12469 | ||
d0191583 | 12470 | ################################################################################ |
ec6a6fbe AK |
12471 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
12472 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
12473 | # Check whether --enable-o_direct was given. |
12474 | if test "${enable_o_direct+set}" = set; then | |
12475 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 12476 | fi |
ad6254c5 | 12477 | |
ec6a6fbe AK |
12478 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
12479 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 12480 | |
d0191583 | 12481 | if test x$ODIRECT = xyes; then |
ad6254c5 | 12482 | |
d0191583 JM |
12483 | cat >>confdefs.h <<\_ACEOF |
12484 | #define O_DIRECT_SUPPORT 1 | |
12485 | _ACEOF | |
ad6254c5 | 12486 | |
d0191583 | 12487 | fi |
ad6254c5 | 12488 | |
572fefeb AK |
12489 | ################################################################################ |
12490 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
12491 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
12492 | # Check whether --enable-applib was given. | |
12493 | if test "${enable_applib+set}" = set; then | |
12494 | enableval=$enable_applib; APPLIB=$enableval | |
12495 | else | |
12496 | APPLIB=no | |
12497 | fi | |
12498 | ||
12499 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12500 | $as_echo "$APPLIB" >&6; } | |
12501 | ||
12502 | test x$APPLIB = xyes \ | |
12503 | && LVM2APP_LIB=-llvm2app \ | |
12504 | || LVM2APP_LIB= | |
12505 | ||
d0191583 | 12506 | ################################################################################ |
ec6a6fbe AK |
12507 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12508 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12509 | # Check whether --enable-cmdlib was given. |
12510 | if test "${enable_cmdlib+set}" = set; then | |
12511 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12512 | else |
d0191583 JM |
12513 | CMDLIB=no |
12514 | fi | |
8a2fc586 | 12515 | |
ec6a6fbe AK |
12516 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12517 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12518 | |
2a9a80c9 | 12519 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12520 | && LVM2CMD_LIB=-llvm2cmd \ |
12521 | || LVM2CMD_LIB= | |
12522 | ||
93bd259b AK |
12523 | ################################################################################ |
12524 | # Check whether --enable-pkgconfig was given. | |
12525 | if test "${enable_pkgconfig+set}" = set; then | |
12526 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12527 | else | |
12528 | PKGCONFIG=no | |
12529 | fi | |
12530 | ||
2a9a80c9 | 12531 | |
23b059e7 ZK |
12532 | ################################################################################ |
12533 | # Check whether --enable-write_install was given. | |
12534 | if test "${enable_write_install+set}" = set; then | |
12535 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
12536 | else | |
12537 | WRITE_INSTALL=no | |
12538 | fi | |
12539 | ||
12540 | ||
d0191583 | 12541 | ################################################################################ |
ec6a6fbe AK |
12542 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12543 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12544 | # Check whether --enable-fsadm was given. |
12545 | if test "${enable_fsadm+set}" = set; then | |
12546 | enableval=$enable_fsadm; FSADM=$enableval | |
12547 | fi | |
8a2fc586 | 12548 | |
ec6a6fbe AK |
12549 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12550 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12551 | |
d0191583 | 12552 | ################################################################################ |
ec6a6fbe AK |
12553 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12554 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12555 | # Check whether --enable-dmeventd was given. |
12556 | if test "${enable_dmeventd+set}" = set; then | |
12557 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12558 | fi | |
ad6254c5 | 12559 | |
ec6a6fbe AK |
12560 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12561 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12562 | |
93bd259b AK |
12563 | BUILD_DMEVENTD=$DMEVENTD |
12564 | ||
2a9a80c9 PR |
12565 | if test x$DMEVENTD = xyes; then |
12566 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12567 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12568 | " >&5 |
ec6a6fbe | 12569 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12570 | " >&2;} |
d0191583 | 12571 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12572 | fi |
12573 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12574 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12575 | " >&5 |
ec6a6fbe | 12576 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12577 | " >&2;} |
12578 | { (exit 1); exit 1; }; } | |
12579 | fi | |
ad6254c5 | 12580 | fi |
7a197a62 | 12581 | |
d0191583 JM |
12582 | if test x$DMEVENTD = xyes; then |
12583 | ||
12584 | cat >>confdefs.h <<\_ACEOF | |
12585 | #define DMEVENTD 1 | |
ad6254c5 AK |
12586 | _ACEOF |
12587 | ||
ad6254c5 | 12588 | fi |
93bd259b AK |
12589 | |
12590 | ################################################################################ | |
12591 | ||
ec6a6fbe AK |
12592 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12593 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12594 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12595 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12596 | else |
12597 | ac_check_lib_save_LIBS=$LIBS | |
12598 | LIBS="-lc $LIBS" | |
12599 | cat >conftest.$ac_ext <<_ACEOF | |
12600 | /* confdefs.h. */ | |
12601 | _ACEOF | |
12602 | cat confdefs.h >>conftest.$ac_ext | |
12603 | cat >>conftest.$ac_ext <<_ACEOF | |
12604 | /* end confdefs.h. */ | |
12605 | ||
12606 | /* Override any GCC internal prototype to avoid an error. | |
12607 | Use char because int might match the return type of a GCC | |
12608 | builtin and then its argument prototype would still apply. */ | |
12609 | #ifdef __cplusplus | |
12610 | extern "C" | |
12611 | #endif | |
12612 | char getline (); | |
12613 | int | |
12614 | main () | |
12615 | { | |
12616 | return getline (); | |
12617 | ; | |
12618 | return 0; | |
12619 | } | |
12620 | _ACEOF | |
12621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12622 | if { (ac_try="$ac_link" | |
12623 | case "(($ac_try" in | |
12624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12625 | *) ac_try_echo=$ac_try;; | |
12626 | esac | |
ec6a6fbe AK |
12627 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12628 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12629 | (eval "$ac_link") 2>conftest.er1 |
12630 | ac_status=$? | |
12631 | grep -v '^ *+' conftest.er1 >conftest.err | |
12632 | rm -f conftest.er1 | |
12633 | cat conftest.err >&5 | |
ec6a6fbe | 12634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12635 | (exit $ac_status); } && { |
12636 | test -z "$ac_c_werror_flag" || | |
12637 | test ! -s conftest.err | |
ec6a6fbe AK |
12638 | } && test -s conftest$ac_exeext && { |
12639 | test "$cross_compiling" = yes || | |
12640 | $as_test_x conftest$ac_exeext | |
12641 | }; then | |
93bd259b AK |
12642 | ac_cv_lib_c_getline=yes |
12643 | else | |
ec6a6fbe | 12644 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12645 | sed 's/^/| /' conftest.$ac_ext >&5 |
12646 | ||
12647 | ac_cv_lib_c_getline=no | |
12648 | fi | |
12649 | ||
ec6a6fbe | 12650 | rm -rf conftest.dSYM |
93bd259b AK |
12651 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12652 | conftest$ac_exeext conftest.$ac_ext | |
12653 | LIBS=$ac_check_lib_save_LIBS | |
12654 | fi | |
ec6a6fbe AK |
12655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12656 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12657 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12658 | |
12659 | cat >>confdefs.h <<\_ACEOF | |
12660 | #define HAVE_GETLINE 1 | |
12661 | _ACEOF | |
12662 | ||
12663 | fi | |
12664 | ||
12665 | ||
12666 | ################################################################################ | |
12667 | ||
ec6a6fbe AK |
12668 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12669 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12670 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12671 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12672 | else |
12673 | ac_check_lib_save_LIBS=$LIBS | |
12674 | LIBS="-lc $LIBS" | |
12675 | cat >conftest.$ac_ext <<_ACEOF | |
12676 | /* confdefs.h. */ | |
12677 | _ACEOF | |
12678 | cat confdefs.h >>conftest.$ac_ext | |
12679 | cat >>conftest.$ac_ext <<_ACEOF | |
12680 | /* end confdefs.h. */ | |
12681 | ||
12682 | /* Override any GCC internal prototype to avoid an error. | |
12683 | Use char because int might match the return type of a GCC | |
12684 | builtin and then its argument prototype would still apply. */ | |
12685 | #ifdef __cplusplus | |
12686 | extern "C" | |
12687 | #endif | |
12688 | char canonicalize_file_name (); | |
12689 | int | |
12690 | main () | |
12691 | { | |
12692 | return canonicalize_file_name (); | |
12693 | ; | |
12694 | return 0; | |
12695 | } | |
12696 | _ACEOF | |
12697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12698 | if { (ac_try="$ac_link" | |
12699 | case "(($ac_try" in | |
12700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12701 | *) ac_try_echo=$ac_try;; | |
12702 | esac | |
ec6a6fbe AK |
12703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12704 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12705 | (eval "$ac_link") 2>conftest.er1 |
12706 | ac_status=$? | |
12707 | grep -v '^ *+' conftest.er1 >conftest.err | |
12708 | rm -f conftest.er1 | |
12709 | cat conftest.err >&5 | |
ec6a6fbe | 12710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12711 | (exit $ac_status); } && { |
12712 | test -z "$ac_c_werror_flag" || | |
12713 | test ! -s conftest.err | |
ec6a6fbe AK |
12714 | } && test -s conftest$ac_exeext && { |
12715 | test "$cross_compiling" = yes || | |
12716 | $as_test_x conftest$ac_exeext | |
12717 | }; then | |
93bd259b AK |
12718 | ac_cv_lib_c_canonicalize_file_name=yes |
12719 | else | |
ec6a6fbe | 12720 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12721 | sed 's/^/| /' conftest.$ac_ext >&5 |
12722 | ||
12723 | ac_cv_lib_c_canonicalize_file_name=no | |
12724 | fi | |
12725 | ||
ec6a6fbe | 12726 | rm -rf conftest.dSYM |
93bd259b AK |
12727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12728 | conftest$ac_exeext conftest.$ac_ext | |
12729 | LIBS=$ac_check_lib_save_LIBS | |
12730 | fi | |
ec6a6fbe AK |
12731 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12732 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12733 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12734 | |
12735 | cat >>confdefs.h <<\_ACEOF | |
12736 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12737 | _ACEOF | |
12738 | ||
12739 | fi | |
12740 | ||
12741 | ||
d0191583 JM |
12742 | ################################################################################ |
12743 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12744 | then exec_prefix=""; | |
12745 | fi; | |
ad6254c5 | 12746 | |
ad6254c5 | 12747 | ################################################################################ |
ec6a6fbe AK |
12748 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12749 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12750 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12751 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12752 | else |
12753 | ac_check_lib_save_LIBS=$LIBS | |
12754 | LIBS="-ldl $LIBS" | |
12755 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12756 | /* confdefs.h. */ |
12757 | _ACEOF | |
12758 | cat confdefs.h >>conftest.$ac_ext | |
12759 | cat >>conftest.$ac_ext <<_ACEOF | |
12760 | /* end confdefs.h. */ | |
12761 | ||
7a197a62 AK |
12762 | /* Override any GCC internal prototype to avoid an error. |
12763 | Use char because int might match the return type of a GCC | |
12764 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12765 | #ifdef __cplusplus |
12766 | extern "C" | |
12767 | #endif | |
ad6254c5 AK |
12768 | char dlopen (); |
12769 | int | |
12770 | main () | |
12771 | { | |
7a197a62 | 12772 | return dlopen (); |
ad6254c5 AK |
12773 | ; |
12774 | return 0; | |
12775 | } | |
12776 | _ACEOF | |
12777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12778 | if { (ac_try="$ac_link" |
12779 | case "(($ac_try" in | |
12780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12781 | *) ac_try_echo=$ac_try;; | |
12782 | esac | |
ec6a6fbe AK |
12783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12784 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12785 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12786 | ac_status=$? |
8a2fc586 AK |
12787 | grep -v '^ *+' conftest.er1 >conftest.err |
12788 | rm -f conftest.er1 | |
12789 | cat conftest.err >&5 | |
ec6a6fbe | 12790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12791 | (exit $ac_status); } && { |
12792 | test -z "$ac_c_werror_flag" || | |
12793 | test ! -s conftest.err | |
ec6a6fbe AK |
12794 | } && test -s conftest$ac_exeext && { |
12795 | test "$cross_compiling" = yes || | |
12796 | $as_test_x conftest$ac_exeext | |
12797 | }; then | |
ad6254c5 AK |
12798 | ac_cv_lib_dl_dlopen=yes |
12799 | else | |
ec6a6fbe | 12800 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12801 | sed 's/^/| /' conftest.$ac_ext >&5 |
12802 | ||
7a197a62 | 12803 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12804 | fi |
7a197a62 | 12805 | |
ec6a6fbe | 12806 | rm -rf conftest.dSYM |
25fbec5b | 12807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12808 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12809 | LIBS=$ac_check_lib_save_LIBS |
12810 | fi | |
ec6a6fbe AK |
12811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12812 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12813 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 12814 | |
72b2cb61 AK |
12815 | |
12816 | cat >>confdefs.h <<\_ACEOF | |
12817 | #define HAVE_LIBDL 1 | |
12818 | _ACEOF | |
12819 | ||
19a2c6e0 ZK |
12820 | DL_LIBS="-ldl" |
12821 | HAVE_LIBDL=yes | |
ad6254c5 | 12822 | else |
19a2c6e0 ZK |
12823 | |
12824 | DL_LIBS= | |
ad6254c5 AK |
12825 | HAVE_LIBDL=no |
12826 | fi | |
12827 | ||
19a2c6e0 | 12828 | |
ad6254c5 AK |
12829 | ################################################################################ |
12830 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12831 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12832 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12833 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12834 | " >&5 |
ec6a6fbe | 12835 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12836 | " >&2;} |
12837 | { (exit 1); exit 1; }; } | |
12838 | fi | |
12839 | ||
f30875db ZK |
12840 | ################################################################################ |
12841 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
12842 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
12843 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
12844 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
12845 | $as_echo_n "(cached) " >&6 | |
12846 | else | |
12847 | ac_check_lib_save_LIBS=$LIBS | |
12848 | LIBS="-lpthread $LIBS" | |
12849 | cat >conftest.$ac_ext <<_ACEOF | |
12850 | /* confdefs.h. */ | |
12851 | _ACEOF | |
12852 | cat confdefs.h >>conftest.$ac_ext | |
12853 | cat >>conftest.$ac_ext <<_ACEOF | |
12854 | /* end confdefs.h. */ | |
12855 | ||
12856 | /* Override any GCC internal prototype to avoid an error. | |
12857 | Use char because int might match the return type of a GCC | |
12858 | builtin and then its argument prototype would still apply. */ | |
12859 | #ifdef __cplusplus | |
12860 | extern "C" | |
12861 | #endif | |
12862 | char pthread_mutex_lock (); | |
12863 | int | |
12864 | main () | |
12865 | { | |
12866 | return pthread_mutex_lock (); | |
12867 | ; | |
12868 | return 0; | |
12869 | } | |
12870 | _ACEOF | |
12871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12872 | if { (ac_try="$ac_link" | |
12873 | case "(($ac_try" in | |
12874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12875 | *) ac_try_echo=$ac_try;; | |
12876 | esac | |
12877 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12878 | $as_echo "$ac_try_echo") >&5 | |
12879 | (eval "$ac_link") 2>conftest.er1 | |
12880 | ac_status=$? | |
12881 | grep -v '^ *+' conftest.er1 >conftest.err | |
12882 | rm -f conftest.er1 | |
12883 | cat conftest.err >&5 | |
12884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12885 | (exit $ac_status); } && { | |
12886 | test -z "$ac_c_werror_flag" || | |
12887 | test ! -s conftest.err | |
12888 | } && test -s conftest$ac_exeext && { | |
12889 | test "$cross_compiling" = yes || | |
12890 | $as_test_x conftest$ac_exeext | |
12891 | }; then | |
12892 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
12893 | else | |
12894 | $as_echo "$as_me: failed program was:" >&5 | |
12895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12896 | ||
12897 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
12898 | fi | |
12899 | ||
12900 | rm -rf conftest.dSYM | |
12901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12902 | conftest$ac_exeext conftest.$ac_ext | |
12903 | LIBS=$ac_check_lib_save_LIBS | |
12904 | fi | |
12905 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
12906 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
12907 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
12908 | PTHREAD_LIBS="-lpthread" | |
12909 | else | |
12910 | hard_bailout | |
12911 | fi | |
12912 | ||
12913 | fi | |
12914 | ||
d0191583 | 12915 | ################################################################################ |
ec6a6fbe AK |
12916 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12917 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12918 | # Check whether --enable-selinux was given. |
12919 | if test "${enable_selinux+set}" = set; then | |
12920 | enableval=$enable_selinux; SELINUX=$enableval | |
12921 | fi | |
12922 | ||
ec6a6fbe AK |
12923 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12924 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12925 | |
ad6254c5 AK |
12926 | ################################################################################ |
12927 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12928 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12929 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12930 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12931 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12932 | else |
12933 | ac_check_lib_save_LIBS=$LIBS | |
12934 | LIBS="-lsepol $LIBS" | |
12935 | cat >conftest.$ac_ext <<_ACEOF | |
12936 | /* confdefs.h. */ | |
12937 | _ACEOF | |
12938 | cat confdefs.h >>conftest.$ac_ext | |
12939 | cat >>conftest.$ac_ext <<_ACEOF | |
12940 | /* end confdefs.h. */ | |
12941 | ||
7a197a62 AK |
12942 | /* Override any GCC internal prototype to avoid an error. |
12943 | Use char because int might match the return type of a GCC | |
12944 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12945 | #ifdef __cplusplus |
12946 | extern "C" | |
12947 | #endif | |
8a2fc586 AK |
12948 | char sepol_check_context (); |
12949 | int | |
12950 | main () | |
12951 | { | |
7a197a62 | 12952 | return sepol_check_context (); |
8a2fc586 AK |
12953 | ; |
12954 | return 0; | |
12955 | } | |
12956 | _ACEOF | |
12957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12958 | if { (ac_try="$ac_link" |
12959 | case "(($ac_try" in | |
12960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12961 | *) ac_try_echo=$ac_try;; | |
12962 | esac | |
ec6a6fbe AK |
12963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12964 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12965 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12966 | ac_status=$? |
12967 | grep -v '^ *+' conftest.er1 >conftest.err | |
12968 | rm -f conftest.er1 | |
12969 | cat conftest.err >&5 | |
ec6a6fbe | 12970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12971 | (exit $ac_status); } && { |
12972 | test -z "$ac_c_werror_flag" || | |
12973 | test ! -s conftest.err | |
ec6a6fbe AK |
12974 | } && test -s conftest$ac_exeext && { |
12975 | test "$cross_compiling" = yes || | |
12976 | $as_test_x conftest$ac_exeext | |
12977 | }; then | |
8a2fc586 AK |
12978 | ac_cv_lib_sepol_sepol_check_context=yes |
12979 | else | |
ec6a6fbe | 12980 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12981 | sed 's/^/| /' conftest.$ac_ext >&5 |
12982 | ||
7a197a62 | 12983 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12984 | fi |
7a197a62 | 12985 | |
ec6a6fbe | 12986 | rm -rf conftest.dSYM |
25fbec5b | 12987 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12988 | conftest$ac_exeext conftest.$ac_ext |
12989 | LIBS=$ac_check_lib_save_LIBS | |
12990 | fi | |
ec6a6fbe AK |
12991 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12992 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12993 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 12994 | |
d0191583 JM |
12995 | |
12996 | cat >>confdefs.h <<\_ACEOF | |
12997 | #define HAVE_SEPOL 1 | |
12998 | _ACEOF | |
12999 | ||
f8f6ec92 ZK |
13000 | SELINUX_LIBS="-lsepol" |
13001 | fi | |
13002 | ||
8a2fc586 | 13003 | |
ec6a6fbe AK |
13004 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
13005 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 13006 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 13007 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13008 | else |
13009 | ac_check_lib_save_LIBS=$LIBS | |
13010 | LIBS="-lselinux $LIBS" | |
13011 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13012 | /* confdefs.h. */ |
13013 | _ACEOF | |
13014 | cat confdefs.h >>conftest.$ac_ext | |
13015 | cat >>conftest.$ac_ext <<_ACEOF | |
13016 | /* end confdefs.h. */ | |
13017 | ||
7a197a62 AK |
13018 | /* Override any GCC internal prototype to avoid an error. |
13019 | Use char because int might match the return type of a GCC | |
13020 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13021 | #ifdef __cplusplus |
13022 | extern "C" | |
13023 | #endif | |
ad6254c5 AK |
13024 | char is_selinux_enabled (); |
13025 | int | |
13026 | main () | |
13027 | { | |
7a197a62 | 13028 | return is_selinux_enabled (); |
ad6254c5 AK |
13029 | ; |
13030 | return 0; | |
13031 | } | |
13032 | _ACEOF | |
13033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13034 | if { (ac_try="$ac_link" |
13035 | case "(($ac_try" in | |
13036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13037 | *) ac_try_echo=$ac_try;; | |
13038 | esac | |
ec6a6fbe AK |
13039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13040 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13041 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13042 | ac_status=$? |
8a2fc586 AK |
13043 | grep -v '^ *+' conftest.er1 >conftest.err |
13044 | rm -f conftest.er1 | |
13045 | cat conftest.err >&5 | |
ec6a6fbe | 13046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13047 | (exit $ac_status); } && { |
13048 | test -z "$ac_c_werror_flag" || | |
13049 | test ! -s conftest.err | |
ec6a6fbe AK |
13050 | } && test -s conftest$ac_exeext && { |
13051 | test "$cross_compiling" = yes || | |
13052 | $as_test_x conftest$ac_exeext | |
13053 | }; then | |
ad6254c5 AK |
13054 | ac_cv_lib_selinux_is_selinux_enabled=yes |
13055 | else | |
ec6a6fbe | 13056 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13057 | sed 's/^/| /' conftest.$ac_ext >&5 |
13058 | ||
7a197a62 | 13059 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 13060 | fi |
7a197a62 | 13061 | |
ec6a6fbe | 13062 | rm -rf conftest.dSYM |
25fbec5b | 13063 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13064 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13065 | LIBS=$ac_check_lib_save_LIBS |
13066 | fi | |
ec6a6fbe AK |
13067 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
13068 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
13069 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 13070 | |
72b2cb61 | 13071 | |
f8f6ec92 ZK |
13072 | for ac_header in selinux/selinux.h |
13073 | do | |
13074 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13075 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13076 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13077 | $as_echo_n "checking for $ac_header... " >&6; } | |
13078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 13079 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
13080 | fi |
13081 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13082 | $as_echo "$as_val"'` | |
13083 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13084 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13085 | else |
f8f6ec92 ZK |
13086 | # Is the header compilable? |
13087 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13088 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
13089 | cat >conftest.$ac_ext <<_ACEOF |
13090 | /* confdefs.h. */ | |
13091 | _ACEOF | |
13092 | cat confdefs.h >>conftest.$ac_ext | |
13093 | cat >>conftest.$ac_ext <<_ACEOF | |
13094 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
13095 | $ac_includes_default |
13096 | #include <$ac_header> | |
66e941e8 | 13097 | _ACEOF |
f8f6ec92 ZK |
13098 | rm -f conftest.$ac_objext |
13099 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
13100 | case "(($ac_try" in |
13101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13102 | *) ac_try_echo=$ac_try;; | |
13103 | esac | |
ec6a6fbe AK |
13104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13105 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 13106 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
13107 | ac_status=$? |
13108 | grep -v '^ *+' conftest.er1 >conftest.err | |
13109 | rm -f conftest.er1 | |
13110 | cat conftest.err >&5 | |
ec6a6fbe | 13111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13112 | (exit $ac_status); } && { |
13113 | test -z "$ac_c_werror_flag" || | |
13114 | test ! -s conftest.err | |
f8f6ec92 ZK |
13115 | } && test -s conftest.$ac_objext; then |
13116 | ac_header_compiler=yes | |
13117 | else | |
13118 | $as_echo "$as_me: failed program was:" >&5 | |
13119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13120 | ||
13121 | ac_header_compiler=no | |
13122 | fi | |
13123 | ||
13124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13125 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13126 | $as_echo "$ac_header_compiler" >&6; } | |
13127 | ||
13128 | # Is the header present? | |
13129 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13130 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13131 | cat >conftest.$ac_ext <<_ACEOF | |
13132 | /* confdefs.h. */ | |
13133 | _ACEOF | |
13134 | cat confdefs.h >>conftest.$ac_ext | |
13135 | cat >>conftest.$ac_ext <<_ACEOF | |
13136 | /* end confdefs.h. */ | |
13137 | #include <$ac_header> | |
13138 | _ACEOF | |
13139 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13140 | case "(($ac_try" in | |
13141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13142 | *) ac_try_echo=$ac_try;; | |
13143 | esac | |
13144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13145 | $as_echo "$ac_try_echo") >&5 | |
13146 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13147 | ac_status=$? | |
13148 | grep -v '^ *+' conftest.er1 >conftest.err | |
13149 | rm -f conftest.er1 | |
13150 | cat conftest.err >&5 | |
13151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13152 | (exit $ac_status); } >/dev/null && { | |
13153 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13154 | test ! -s conftest.err | |
ec6a6fbe | 13155 | }; then |
f8f6ec92 | 13156 | ac_header_preproc=yes |
66e941e8 | 13157 | else |
ec6a6fbe | 13158 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
13159 | sed 's/^/| /' conftest.$ac_ext >&5 |
13160 | ||
f8f6ec92 ZK |
13161 | ac_header_preproc=no |
13162 | fi | |
13163 | ||
13164 | rm -f conftest.err conftest.$ac_ext | |
13165 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13166 | $as_echo "$ac_header_preproc" >&6; } | |
13167 | ||
13168 | # So? What about this header? | |
13169 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13170 | yes:no: ) | |
13171 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13172 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13174 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13175 | ac_header_preproc=yes | |
13176 | ;; | |
13177 | no:yes:* ) | |
13178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13179 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13181 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13183 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13185 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13187 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13189 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 13190 | |
f8f6ec92 ZK |
13191 | ;; |
13192 | esac | |
13193 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13194 | $as_echo_n "checking for $ac_header... " >&6; } | |
13195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13196 | $as_echo_n "(cached) " >&6 | |
13197 | else | |
13198 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 13199 | fi |
f8f6ec92 ZK |
13200 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13201 | $as_echo "$as_val"'` | |
13202 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13203 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13204 | |
66e941e8 | 13205 | fi |
f8f6ec92 ZK |
13206 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13207 | $as_echo "$as_val"'` | |
13208 | if test "x$as_val" = x""yes; then | |
13209 | cat >>confdefs.h <<_ACEOF | |
13210 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13211 | _ACEOF | |
13212 | ||
66e941e8 | 13213 | else |
f8f6ec92 | 13214 | hard_bailout |
66e941e8 | 13215 | fi |
f8f6ec92 ZK |
13216 | |
13217 | done | |
13218 | ||
13219 | ||
13220 | cat >>confdefs.h <<\_ACEOF | |
13221 | #define HAVE_SELINUX 1 | |
13222 | _ACEOF | |
13223 | ||
13224 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 13225 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
13226 | HAVE_SELINUX=yes |
13227 | else | |
13228 | ||
13229 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
13230 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
13231 | SELINUX_LIBS= | |
f7f0854e | 13232 | SELINUX_PC= |
f8f6ec92 | 13233 | HAVE_SELINUX=no |
66e941e8 JM |
13234 | fi |
13235 | ||
ad6254c5 AK |
13236 | fi |
13237 | ||
8b1a3214 AK |
13238 | ################################################################################ |
13239 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
13240 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
13241 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 13242 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 13243 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
13244 | else |
13245 | ac_check_lib_save_LIBS=$LIBS | |
13246 | LIBS="-lrt $LIBS" | |
13247 | cat >conftest.$ac_ext <<_ACEOF | |
13248 | /* confdefs.h. */ | |
13249 | _ACEOF | |
13250 | cat confdefs.h >>conftest.$ac_ext | |
13251 | cat >>conftest.$ac_ext <<_ACEOF | |
13252 | /* end confdefs.h. */ | |
13253 | ||
7a197a62 AK |
13254 | /* Override any GCC internal prototype to avoid an error. |
13255 | Use char because int might match the return type of a GCC | |
13256 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
13257 | #ifdef __cplusplus |
13258 | extern "C" | |
13259 | #endif | |
8b1a3214 AK |
13260 | char clock_gettime (); |
13261 | int | |
13262 | main () | |
13263 | { | |
7a197a62 | 13264 | return clock_gettime (); |
8b1a3214 AK |
13265 | ; |
13266 | return 0; | |
13267 | } | |
13268 | _ACEOF | |
13269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13270 | if { (ac_try="$ac_link" |
13271 | case "(($ac_try" in | |
13272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13273 | *) ac_try_echo=$ac_try;; | |
13274 | esac | |
ec6a6fbe AK |
13275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13276 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13277 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13278 | ac_status=$? |
13279 | grep -v '^ *+' conftest.er1 >conftest.err | |
13280 | rm -f conftest.er1 | |
13281 | cat conftest.err >&5 | |
ec6a6fbe | 13282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13283 | (exit $ac_status); } && { |
13284 | test -z "$ac_c_werror_flag" || | |
13285 | test ! -s conftest.err | |
ec6a6fbe AK |
13286 | } && test -s conftest$ac_exeext && { |
13287 | test "$cross_compiling" = yes || | |
13288 | $as_test_x conftest$ac_exeext | |
13289 | }; then | |
8b1a3214 AK |
13290 | ac_cv_lib_rt_clock_gettime=yes |
13291 | else | |
ec6a6fbe | 13292 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13293 | sed 's/^/| /' conftest.$ac_ext >&5 |
13294 | ||
7a197a62 | 13295 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13296 | fi |
7a197a62 | 13297 | |
ec6a6fbe | 13298 | rm -rf conftest.dSYM |
25fbec5b | 13299 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13300 | conftest$ac_exeext conftest.$ac_ext |
13301 | LIBS=$ac_check_lib_save_LIBS | |
13302 | fi | |
ec6a6fbe AK |
13303 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13304 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13305 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13306 | HAVE_REALTIME=yes |
13307 | else | |
13308 | HAVE_REALTIME=no | |
13309 | fi | |
13310 | ||
8b1a3214 AK |
13311 | |
13312 | if test x$HAVE_REALTIME = xyes; then | |
13313 | ||
13314 | cat >>confdefs.h <<\_ACEOF | |
13315 | #define HAVE_REALTIME 1 | |
13316 | _ACEOF | |
13317 | ||
13318 | LIBS="-lrt $LIBS" | |
13319 | else | |
ec6a6fbe AK |
13320 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13321 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13322 | fi |
13323 | fi | |
13324 | ||
ad6254c5 AK |
13325 | ################################################################################ |
13326 | ||
13327 | for ac_header in getopt.h | |
13328 | do | |
ec6a6fbe | 13329 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13331 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13332 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13334 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13335 | fi |
ec6a6fbe AK |
13336 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13337 | $as_echo "$as_val"'` | |
13338 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13339 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13340 | else |
13341 | # Is the header compilable? | |
ec6a6fbe AK |
13342 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13343 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13344 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13345 | /* confdefs.h. */ |
13346 | _ACEOF | |
13347 | cat confdefs.h >>conftest.$ac_ext | |
13348 | cat >>conftest.$ac_ext <<_ACEOF | |
13349 | /* end confdefs.h. */ | |
13350 | $ac_includes_default | |
13351 | #include <$ac_header> | |
13352 | _ACEOF | |
13353 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13354 | if { (ac_try="$ac_compile" |
13355 | case "(($ac_try" in | |
13356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13357 | *) ac_try_echo=$ac_try;; | |
13358 | esac | |
ec6a6fbe AK |
13359 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13360 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13361 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13362 | ac_status=$? |
8a2fc586 AK |
13363 | grep -v '^ *+' conftest.er1 >conftest.err |
13364 | rm -f conftest.er1 | |
13365 | cat conftest.err >&5 | |
ec6a6fbe | 13366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13367 | (exit $ac_status); } && { |
13368 | test -z "$ac_c_werror_flag" || | |
13369 | test ! -s conftest.err | |
13370 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13371 | ac_header_compiler=yes |
13372 | else | |
ec6a6fbe | 13373 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13374 | sed 's/^/| /' conftest.$ac_ext >&5 |
13375 | ||
7a197a62 | 13376 | ac_header_compiler=no |
ad6254c5 | 13377 | fi |
7a197a62 AK |
13378 | |
13379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13380 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13381 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13382 | |
13383 | # Is the header present? | |
ec6a6fbe AK |
13384 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13385 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13386 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13387 | /* confdefs.h. */ |
13388 | _ACEOF | |
13389 | cat confdefs.h >>conftest.$ac_ext | |
13390 | cat >>conftest.$ac_ext <<_ACEOF | |
13391 | /* end confdefs.h. */ | |
13392 | #include <$ac_header> | |
13393 | _ACEOF | |
7a197a62 AK |
13394 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13395 | case "(($ac_try" in | |
13396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13397 | *) ac_try_echo=$ac_try;; | |
13398 | esac | |
ec6a6fbe AK |
13399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13400 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13401 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13402 | ac_status=$? |
13403 | grep -v '^ *+' conftest.er1 >conftest.err | |
13404 | rm -f conftest.er1 | |
13405 | cat conftest.err >&5 | |
ec6a6fbe | 13406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13407 | (exit $ac_status); } >/dev/null && { |
13408 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13409 | test ! -s conftest.err | |
13410 | }; then | |
ad6254c5 AK |
13411 | ac_header_preproc=yes |
13412 | else | |
ec6a6fbe | 13413 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13414 | sed 's/^/| /' conftest.$ac_ext >&5 |
13415 | ||
13416 | ac_header_preproc=no | |
13417 | fi | |
7a197a62 | 13418 | |
ad6254c5 | 13419 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13420 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13421 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13422 | |
13423 | # So? What about this header? | |
8a2fc586 AK |
13424 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13425 | yes:no: ) | |
ec6a6fbe AK |
13426 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13427 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13428 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13429 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13430 | ac_header_preproc=yes |
ad6254c5 | 13431 | ;; |
8a2fc586 | 13432 | no:yes:* ) |
ec6a6fbe AK |
13433 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13434 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13436 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13437 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13438 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13439 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13440 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13441 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13442 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13443 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13444 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13445 | |
ad6254c5 AK |
13446 | ;; |
13447 | esac | |
ec6a6fbe AK |
13448 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13449 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13450 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13451 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13452 | else |
8a2fc586 | 13453 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13454 | fi |
ec6a6fbe AK |
13455 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13456 | $as_echo "$as_val"'` | |
13457 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13458 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13459 | |
13460 | fi | |
ec6a6fbe AK |
13461 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13462 | $as_echo "$as_val"'` | |
13463 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13464 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13465 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13466 | _ACEOF |
72b2cb61 AK |
13467 | |
13468 | cat >>confdefs.h <<\_ACEOF | |
13469 | #define HAVE_GETOPTLONG 1 | |
13470 | _ACEOF | |
13471 | ||
ad6254c5 AK |
13472 | fi |
13473 | ||
13474 | done | |
13475 | ||
13476 | ||
13477 | ################################################################################ | |
06e459df | 13478 | if test x$READLINE != xno; then |
539f4a77 ZK |
13479 | lvm_saved_libs=$LIBS |
13480 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
13481 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13482 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13483 | $as_echo_n "(cached) " >&6 | |
13484 | else | |
13485 | ac_func_search_save_LIBS=$LIBS | |
13486 | cat >conftest.$ac_ext <<_ACEOF | |
13487 | /* confdefs.h. */ | |
13488 | _ACEOF | |
13489 | cat confdefs.h >>conftest.$ac_ext | |
13490 | cat >>conftest.$ac_ext <<_ACEOF | |
13491 | /* end confdefs.h. */ | |
bc1024f8 | 13492 | |
539f4a77 ZK |
13493 | /* Override any GCC internal prototype to avoid an error. |
13494 | Use char because int might match the return type of a GCC | |
13495 | builtin and then its argument prototype would still apply. */ | |
13496 | #ifdef __cplusplus | |
13497 | extern "C" | |
13498 | #endif | |
13499 | char tgetent (); | |
13500 | int | |
13501 | main () | |
13502 | { | |
13503 | return tgetent (); | |
13504 | ; | |
13505 | return 0; | |
13506 | } | |
13507 | _ACEOF | |
13508 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
13509 | if test -z "$ac_lib"; then | |
13510 | ac_res="none required" | |
13511 | else | |
13512 | ac_res=-l$ac_lib | |
13513 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13514 | fi | |
13515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13516 | if { (ac_try="$ac_link" | |
13517 | case "(($ac_try" in | |
13518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13519 | *) ac_try_echo=$ac_try;; | |
13520 | esac | |
13521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13522 | $as_echo "$ac_try_echo") >&5 | |
13523 | (eval "$ac_link") 2>conftest.er1 | |
13524 | ac_status=$? | |
13525 | grep -v '^ *+' conftest.er1 >conftest.err | |
13526 | rm -f conftest.er1 | |
13527 | cat conftest.err >&5 | |
13528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13529 | (exit $ac_status); } && { | |
13530 | test -z "$ac_c_werror_flag" || | |
13531 | test ! -s conftest.err | |
13532 | } && test -s conftest$ac_exeext && { | |
13533 | test "$cross_compiling" = yes || | |
13534 | $as_test_x conftest$ac_exeext | |
13535 | }; then | |
13536 | ac_cv_search_tgetent=$ac_res | |
13537 | else | |
13538 | $as_echo "$as_me: failed program was:" >&5 | |
13539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13540 | ||
13541 | ||
13542 | fi | |
13543 | ||
13544 | rm -rf conftest.dSYM | |
13545 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13546 | conftest$ac_exeext | |
13547 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13548 | break | |
13549 | fi | |
13550 | done | |
13551 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13552 | : | |
13553 | else | |
13554 | ac_cv_search_tgetent=no | |
13555 | fi | |
13556 | rm conftest.$ac_ext | |
13557 | LIBS=$ac_func_search_save_LIBS | |
13558 | fi | |
13559 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
13560 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13561 | ac_res=$ac_cv_search_tgetent | |
13562 | if test "$ac_res" != no; then | |
13563 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13564 | READLINE_LIBS=$ac_cv_search_tgetent | |
13565 | else | |
13566 | ||
13567 | if test "$READLINE" = yes; then | |
13568 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
13569 | --enable-readline option (which is enabled by default). Either disable readline | |
13570 | support with --disable-readline or download and install termcap from: | |
13571 | ftp.gnu.org/gnu/termcap | |
13572 | Note: if you are using precompiled packages you will also need the development | |
13573 | package as well (which may be called termcap-devel or something similar). | |
13574 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13575 | not found either - but you could try installing that as well." >&5 | |
13576 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
13577 | --enable-readline option (which is enabled by default). Either disable readline | |
13578 | support with --disable-readline or download and install termcap from: | |
13579 | ftp.gnu.org/gnu/termcap | |
13580 | Note: if you are using precompiled packages you will also need the development | |
13581 | package as well (which may be called termcap-devel or something similar). | |
13582 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13583 | not found either - but you could try installing that as well." >&2;} | |
13584 | { (exit 1); exit 1; }; } | |
13585 | fi | |
13586 | fi | |
13587 | ||
13588 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 13589 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 13590 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13591 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13592 | else |
13593 | ac_check_lib_save_LIBS=$LIBS | |
13594 | LIBS="-lreadline $LIBS" | |
13595 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13596 | /* confdefs.h. */ |
13597 | _ACEOF | |
13598 | cat confdefs.h >>conftest.$ac_ext | |
13599 | cat >>conftest.$ac_ext <<_ACEOF | |
13600 | /* end confdefs.h. */ | |
13601 | ||
7a197a62 AK |
13602 | /* Override any GCC internal prototype to avoid an error. |
13603 | Use char because int might match the return type of a GCC | |
13604 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13605 | #ifdef __cplusplus |
13606 | extern "C" | |
13607 | #endif | |
ad6254c5 AK |
13608 | char readline (); |
13609 | int | |
13610 | main () | |
13611 | { | |
7a197a62 | 13612 | return readline (); |
ad6254c5 AK |
13613 | ; |
13614 | return 0; | |
13615 | } | |
13616 | _ACEOF | |
13617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13618 | if { (ac_try="$ac_link" |
13619 | case "(($ac_try" in | |
13620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13621 | *) ac_try_echo=$ac_try;; | |
13622 | esac | |
ec6a6fbe AK |
13623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13624 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13625 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13626 | ac_status=$? |
8a2fc586 AK |
13627 | grep -v '^ *+' conftest.er1 >conftest.err |
13628 | rm -f conftest.er1 | |
13629 | cat conftest.err >&5 | |
ec6a6fbe | 13630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13631 | (exit $ac_status); } && { |
13632 | test -z "$ac_c_werror_flag" || | |
13633 | test ! -s conftest.err | |
ec6a6fbe AK |
13634 | } && test -s conftest$ac_exeext && { |
13635 | test "$cross_compiling" = yes || | |
13636 | $as_test_x conftest$ac_exeext | |
13637 | }; then | |
ad6254c5 AK |
13638 | ac_cv_lib_readline_readline=yes |
13639 | else | |
ec6a6fbe | 13640 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13641 | sed 's/^/| /' conftest.$ac_ext >&5 |
13642 | ||
7a197a62 | 13643 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13644 | fi |
7a197a62 | 13645 | |
ec6a6fbe | 13646 | rm -rf conftest.dSYM |
25fbec5b | 13647 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13648 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13649 | LIBS=$ac_check_lib_save_LIBS |
13650 | fi | |
ec6a6fbe AK |
13651 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13652 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13653 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
13654 | |
13655 | ||
13656 | cat >>confdefs.h <<\_ACEOF | |
13657 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
13658 | _ACEOF |
13659 | ||
539f4a77 ZK |
13660 | LIBS=$lvm_saved_libs |
13661 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
13662 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
13663 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
13664 | $as_echo_n "(cached) " >&6 | |
13665 | else | |
13666 | ac_check_lib_save_LIBS=$LIBS | |
13667 | LIBS="-lreadline $LIBS" | |
13668 | cat >conftest.$ac_ext <<_ACEOF | |
13669 | /* confdefs.h. */ | |
13670 | _ACEOF | |
13671 | cat confdefs.h >>conftest.$ac_ext | |
13672 | cat >>conftest.$ac_ext <<_ACEOF | |
13673 | /* end confdefs.h. */ | |
bc1024f8 | 13674 | |
539f4a77 ZK |
13675 | /* Override any GCC internal prototype to avoid an error. |
13676 | Use char because int might match the return type of a GCC | |
13677 | builtin and then its argument prototype would still apply. */ | |
13678 | #ifdef __cplusplus | |
13679 | extern "C" | |
13680 | #endif | |
13681 | char rl_line_buffer (); | |
13682 | int | |
13683 | main () | |
13684 | { | |
13685 | return rl_line_buffer (); | |
13686 | ; | |
13687 | return 0; | |
13688 | } | |
13689 | _ACEOF | |
13690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13691 | if { (ac_try="$ac_link" | |
13692 | case "(($ac_try" in | |
13693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13694 | *) ac_try_echo=$ac_try;; | |
13695 | esac | |
13696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13697 | $as_echo "$ac_try_echo") >&5 | |
13698 | (eval "$ac_link") 2>conftest.er1 | |
13699 | ac_status=$? | |
13700 | grep -v '^ *+' conftest.er1 >conftest.err | |
13701 | rm -f conftest.er1 | |
13702 | cat conftest.err >&5 | |
13703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13704 | (exit $ac_status); } && { | |
13705 | test -z "$ac_c_werror_flag" || | |
13706 | test ! -s conftest.err | |
13707 | } && test -s conftest$ac_exeext && { | |
13708 | test "$cross_compiling" = yes || | |
13709 | $as_test_x conftest$ac_exeext | |
13710 | }; then | |
13711 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 13712 | else |
539f4a77 ZK |
13713 | $as_echo "$as_me: failed program was:" >&5 |
13714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13715 | ||
13716 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
13717 | fi |
13718 | ||
539f4a77 ZK |
13719 | rm -rf conftest.dSYM |
13720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13721 | conftest$ac_exeext conftest.$ac_ext | |
13722 | LIBS=$ac_check_lib_save_LIBS | |
13723 | fi | |
13724 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
13725 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
13726 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
13727 | READLINE_LIBS="-lreadline" | |
13728 | else | |
13729 | ||
13730 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
13731 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
13732 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
13733 | ||
13734 | fi | |
13735 | ||
13736 | else | |
13737 | ||
13738 | READLINE_LIBS= | |
13739 | if test "$READLINE" = yes; then | |
13740 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
13741 | --enable-readline option (which is enabled by default). Either disable readline |
13742 | support with --disable-readline or download and install readline from: | |
13743 | ftp.gnu.org/gnu/readline | |
13744 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13745 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 13746 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13747 | --enable-readline option (which is enabled by default). Either disable readline |
13748 | support with --disable-readline or download and install readline from: | |
13749 | ftp.gnu.org/gnu/readline | |
13750 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13751 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 13752 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
13753 | fi |
13754 | fi | |
13755 | ||
13756 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
13757 | |
13758 | for ac_func in rl_completion_matches | |
13759 | do | |
ec6a6fbe AK |
13760 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13761 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13762 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13763 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13764 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13765 | else |
13766 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13767 | /* confdefs.h. */ |
13768 | _ACEOF | |
13769 | cat confdefs.h >>conftest.$ac_ext | |
13770 | cat >>conftest.$ac_ext <<_ACEOF | |
13771 | /* end confdefs.h. */ | |
bc1024f8 | 13772 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13774 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13775 | |
ad6254c5 | 13776 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13777 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13779 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13780 | |
ad6254c5 AK |
13781 | #ifdef __STDC__ |
13782 | # include <limits.h> | |
13783 | #else | |
13784 | # include <assert.h> | |
13785 | #endif | |
8a2fc586 | 13786 | |
bc1024f8 | 13787 | #undef $ac_func |
8a2fc586 | 13788 | |
7a197a62 AK |
13789 | /* Override any GCC internal prototype to avoid an error. |
13790 | Use char because int might match the return type of a GCC | |
13791 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13792 | #ifdef __cplusplus |
13793 | extern "C" | |
ad6254c5 | 13794 | #endif |
bc1024f8 | 13795 | char $ac_func (); |
ad6254c5 AK |
13796 | /* The GNU C library defines this for functions which it implements |
13797 | to always fail with ENOSYS. Some functions are actually named | |
13798 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13799 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13800 | choke me |
ad6254c5 AK |
13801 | #endif |
13802 | ||
13803 | int | |
13804 | main () | |
13805 | { | |
bc1024f8 | 13806 | return $ac_func (); |
ad6254c5 AK |
13807 | ; |
13808 | return 0; | |
13809 | } | |
13810 | _ACEOF | |
13811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13812 | if { (ac_try="$ac_link" |
13813 | case "(($ac_try" in | |
13814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13815 | *) ac_try_echo=$ac_try;; | |
13816 | esac | |
ec6a6fbe AK |
13817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13818 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13819 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13820 | ac_status=$? |
8a2fc586 AK |
13821 | grep -v '^ *+' conftest.er1 >conftest.err |
13822 | rm -f conftest.er1 | |
13823 | cat conftest.err >&5 | |
ec6a6fbe | 13824 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13825 | (exit $ac_status); } && { |
13826 | test -z "$ac_c_werror_flag" || | |
13827 | test ! -s conftest.err | |
ec6a6fbe AK |
13828 | } && test -s conftest$ac_exeext && { |
13829 | test "$cross_compiling" = yes || | |
13830 | $as_test_x conftest$ac_exeext | |
13831 | }; then | |
bc1024f8 | 13832 | eval "$as_ac_var=yes" |
ad6254c5 | 13833 | else |
ec6a6fbe | 13834 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13835 | sed 's/^/| /' conftest.$ac_ext >&5 |
13836 | ||
bc1024f8 | 13837 | eval "$as_ac_var=no" |
ad6254c5 | 13838 | fi |
7a197a62 | 13839 | |
ec6a6fbe | 13840 | rm -rf conftest.dSYM |
25fbec5b | 13841 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13842 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13843 | fi |
ec6a6fbe AK |
13844 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13845 | $as_echo "$as_val"'` | |
13846 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13847 | $as_echo "$ac_res" >&6; } | |
13848 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13849 | $as_echo "$as_val"'` | |
13850 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13851 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13852 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13853 | _ACEOF |
13854 | ||
13855 | fi | |
bc1024f8 | 13856 | done |
ad6254c5 | 13857 | |
539f4a77 | 13858 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
13859 | fi |
13860 | ||
13861 | ################################################################################ | |
ec6a6fbe AK |
13862 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13863 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13864 | # Check whether --enable-nls was given. |
ad6254c5 | 13865 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13866 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13867 | else |
13868 | INTL=no | |
7a197a62 AK |
13869 | fi |
13870 | ||
ec6a6fbe AK |
13871 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13872 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13873 | |
13874 | if test x$INTL = xyes; then | |
93bd259b | 13875 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13876 | INTL_PACKAGE="lvm2" |
13877 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13878 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13879 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13880 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13881 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13882 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13883 | else |
13884 | case $MSGFMT in | |
13885 | [\\/]* | ?:[\\/]*) | |
13886 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13887 | ;; | |
13888 | *) | |
13889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13890 | for as_dir in $PATH | |
13891 | do | |
13892 | IFS=$as_save_IFS | |
13893 | test -z "$as_dir" && as_dir=. | |
13894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13896 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13897 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13898 | break 2 |
13899 | fi | |
13900 | done | |
13901 | done | |
7a197a62 | 13902 | IFS=$as_save_IFS |
ad6254c5 AK |
13903 | |
13904 | ;; | |
13905 | esac | |
13906 | fi | |
13907 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13908 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13909 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13910 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13911 | else |
ec6a6fbe AK |
13912 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13913 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13914 | fi |
13915 | ||
7a197a62 | 13916 | |
ad6254c5 | 13917 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13918 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13919 | " >&5 |
ec6a6fbe | 13920 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13921 | " >&2;} |
13922 | { (exit 1); exit 1; }; } | |
13923 | fi; | |
13924 | ||
13925 | ||
7a197a62 | 13926 | # Check whether --with-localedir was given. |
ad6254c5 | 13927 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13928 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13929 | else |
13930 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13931 | fi |
13932 | ||
ad6254c5 AK |
13933 | fi |
13934 | ||
13935 | ################################################################################ | |
13936 | ||
7a197a62 | 13937 | # Check whether --with-confdir was given. |
ad6254c5 | 13938 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13939 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13940 | else |
13941 | CONFDIR='/etc' | |
7a197a62 AK |
13942 | fi |
13943 | ||
ad6254c5 AK |
13944 | |
13945 | ||
7a197a62 | 13946 | # Check whether --with-staticdir was given. |
ad6254c5 | 13947 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13948 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13949 | else |
13950 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13951 | fi |
ad6254c5 | 13952 | |
33f732c5 | 13953 | |
7a197a62 | 13954 | |
68f2de6d AK |
13955 | # Check whether --with-usrlibdir was given. |
13956 | if test "${with_usrlibdir+set}" = set; then | |
13957 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13958 | else | |
13959 | usrlibdir='${prefix}/lib' | |
13960 | fi | |
13961 | ||
13962 | ||
13963 | ||
13964 | # Check whether --with-usrsbindir was given. | |
13965 | if test "${with_usrsbindir+set}" = set; then | |
13966 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13967 | else | |
13968 | usrsbindir='${prefix}/sbin' | |
13969 | fi | |
13970 | ||
13971 | ||
a5f46f6a AK |
13972 | ################################################################################ |
13973 | ||
13974 | # Check whether --with-udev_prefix was given. | |
13975 | if test "${with_udev_prefix+set}" = set; then | |
13976 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13977 | else | |
13978 | udev_prefix='${exec_prefix}' | |
13979 | fi | |
13980 | ||
13981 | ||
78ce7acc AK |
13982 | |
13983 | # Check whether --with-udevdir was given. | |
13984 | if test "${with_udevdir+set}" = set; then | |
13985 | withval=$with_udevdir; udevdir="$withval" | |
13986 | else | |
13987 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13988 | fi | |
13989 | ||
a5f46f6a | 13990 | |
ad6254c5 AK |
13991 | ################################################################################ |
13992 | if test x$READLINE = xyes; then | |
13993 | ||
13994 | ||
13995 | for ac_header in readline/readline.h readline/history.h | |
13996 | do | |
ec6a6fbe | 13997 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13998 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13999 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14000 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14002 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14003 | fi |
ec6a6fbe AK |
14004 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14005 | $as_echo "$as_val"'` | |
14006 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14007 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14008 | else |
14009 | # Is the header compilable? | |
ec6a6fbe AK |
14010 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14011 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14012 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14013 | /* confdefs.h. */ |
14014 | _ACEOF | |
14015 | cat confdefs.h >>conftest.$ac_ext | |
14016 | cat >>conftest.$ac_ext <<_ACEOF | |
14017 | /* end confdefs.h. */ | |
14018 | $ac_includes_default | |
14019 | #include <$ac_header> | |
14020 | _ACEOF | |
14021 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14022 | if { (ac_try="$ac_compile" |
14023 | case "(($ac_try" in | |
14024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14025 | *) ac_try_echo=$ac_try;; | |
14026 | esac | |
ec6a6fbe AK |
14027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14028 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14029 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14030 | ac_status=$? |
8a2fc586 AK |
14031 | grep -v '^ *+' conftest.er1 >conftest.err |
14032 | rm -f conftest.er1 | |
14033 | cat conftest.err >&5 | |
ec6a6fbe | 14034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14035 | (exit $ac_status); } && { |
14036 | test -z "$ac_c_werror_flag" || | |
14037 | test ! -s conftest.err | |
14038 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14039 | ac_header_compiler=yes |
14040 | else | |
ec6a6fbe | 14041 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14042 | sed 's/^/| /' conftest.$ac_ext >&5 |
14043 | ||
7a197a62 | 14044 | ac_header_compiler=no |
ad6254c5 | 14045 | fi |
7a197a62 AK |
14046 | |
14047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14048 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14049 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14050 | |
14051 | # Is the header present? | |
ec6a6fbe AK |
14052 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14053 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14054 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14055 | /* confdefs.h. */ |
14056 | _ACEOF | |
14057 | cat confdefs.h >>conftest.$ac_ext | |
14058 | cat >>conftest.$ac_ext <<_ACEOF | |
14059 | /* end confdefs.h. */ | |
14060 | #include <$ac_header> | |
14061 | _ACEOF | |
7a197a62 AK |
14062 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14063 | case "(($ac_try" in | |
14064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14065 | *) ac_try_echo=$ac_try;; | |
14066 | esac | |
ec6a6fbe AK |
14067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14068 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14069 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14070 | ac_status=$? |
14071 | grep -v '^ *+' conftest.er1 >conftest.err | |
14072 | rm -f conftest.er1 | |
14073 | cat conftest.err >&5 | |
ec6a6fbe | 14074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14075 | (exit $ac_status); } >/dev/null && { |
14076 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14077 | test ! -s conftest.err | |
14078 | }; then | |
ad6254c5 AK |
14079 | ac_header_preproc=yes |
14080 | else | |
ec6a6fbe | 14081 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14082 | sed 's/^/| /' conftest.$ac_ext >&5 |
14083 | ||
14084 | ac_header_preproc=no | |
14085 | fi | |
7a197a62 | 14086 | |
ad6254c5 | 14087 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14088 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14089 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14090 | |
14091 | # So? What about this header? | |
8a2fc586 AK |
14092 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14093 | yes:no: ) | |
ec6a6fbe AK |
14094 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14095 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14097 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14098 | ac_header_preproc=yes |
ad6254c5 | 14099 | ;; |
8a2fc586 | 14100 | no:yes:* ) |
ec6a6fbe AK |
14101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14102 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14104 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14106 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14107 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14108 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14109 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14110 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14111 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14112 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14113 | |
ad6254c5 AK |
14114 | ;; |
14115 | esac | |
ec6a6fbe AK |
14116 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14117 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14119 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14120 | else |
8a2fc586 | 14121 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14122 | fi |
ec6a6fbe AK |
14123 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14124 | $as_echo "$as_val"'` | |
14125 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14126 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14127 | |
14128 | fi | |
ec6a6fbe AK |
14129 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14130 | $as_echo "$as_val"'` | |
14131 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14132 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14133 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14134 | _ACEOF |
14135 | ||
14136 | else | |
ec6a6fbe AK |
14137 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14138 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14139 | { (exit 1); exit 1; }; } |
14140 | fi | |
14141 | ||
14142 | done | |
14143 | ||
14144 | fi | |
14145 | ||
5c7fc7c4 | 14146 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
14147 | |
14148 | ||
14149 | ||
14150 | ||
14151 | ||
14152 | ||
14153 | ||
14154 | ||
14155 | ||
14156 | ||
14157 | 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 | |
14158 | do | |
ec6a6fbe | 14159 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14161 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14162 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14163 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14164 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14165 | fi |
ec6a6fbe AK |
14166 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14167 | $as_echo "$as_val"'` | |
14168 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14169 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14170 | else |
14171 | # Is the header compilable? | |
ec6a6fbe AK |
14172 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14173 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14174 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14175 | /* confdefs.h. */ |
14176 | _ACEOF | |
14177 | cat confdefs.h >>conftest.$ac_ext | |
14178 | cat >>conftest.$ac_ext <<_ACEOF | |
14179 | /* end confdefs.h. */ | |
14180 | $ac_includes_default | |
14181 | #include <$ac_header> | |
14182 | _ACEOF | |
14183 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14184 | if { (ac_try="$ac_compile" |
14185 | case "(($ac_try" in | |
14186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14187 | *) ac_try_echo=$ac_try;; | |
14188 | esac | |
ec6a6fbe AK |
14189 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14190 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14191 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14192 | ac_status=$? |
8a2fc586 AK |
14193 | grep -v '^ *+' conftest.er1 >conftest.err |
14194 | rm -f conftest.er1 | |
14195 | cat conftest.err >&5 | |
ec6a6fbe | 14196 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14197 | (exit $ac_status); } && { |
14198 | test -z "$ac_c_werror_flag" || | |
14199 | test ! -s conftest.err | |
14200 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14201 | ac_header_compiler=yes |
14202 | else | |
ec6a6fbe | 14203 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14204 | sed 's/^/| /' conftest.$ac_ext >&5 |
14205 | ||
7a197a62 | 14206 | ac_header_compiler=no |
ad6254c5 | 14207 | fi |
7a197a62 AK |
14208 | |
14209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14210 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14211 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14212 | |
14213 | # Is the header present? | |
ec6a6fbe AK |
14214 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14215 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14216 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14217 | /* confdefs.h. */ |
14218 | _ACEOF | |
14219 | cat confdefs.h >>conftest.$ac_ext | |
14220 | cat >>conftest.$ac_ext <<_ACEOF | |
14221 | /* end confdefs.h. */ | |
14222 | #include <$ac_header> | |
14223 | _ACEOF | |
7a197a62 AK |
14224 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14225 | case "(($ac_try" in | |
14226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14227 | *) ac_try_echo=$ac_try;; | |
14228 | esac | |
ec6a6fbe AK |
14229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14230 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14231 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14232 | ac_status=$? |
14233 | grep -v '^ *+' conftest.er1 >conftest.err | |
14234 | rm -f conftest.er1 | |
14235 | cat conftest.err >&5 | |
ec6a6fbe | 14236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14237 | (exit $ac_status); } >/dev/null && { |
14238 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14239 | test ! -s conftest.err | |
14240 | }; then | |
ad6254c5 AK |
14241 | ac_header_preproc=yes |
14242 | else | |
ec6a6fbe | 14243 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14244 | sed 's/^/| /' conftest.$ac_ext >&5 |
14245 | ||
14246 | ac_header_preproc=no | |
14247 | fi | |
7a197a62 | 14248 | |
ad6254c5 | 14249 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14250 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14251 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14252 | |
14253 | # So? What about this header? | |
8a2fc586 AK |
14254 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14255 | yes:no: ) | |
ec6a6fbe AK |
14256 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14257 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14258 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14259 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14260 | ac_header_preproc=yes |
ad6254c5 | 14261 | ;; |
8a2fc586 | 14262 | no:yes:* ) |
ec6a6fbe AK |
14263 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14264 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14265 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14266 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14267 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14268 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14269 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14270 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14271 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14272 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14273 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14274 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14275 | |
ad6254c5 AK |
14276 | ;; |
14277 | esac | |
ec6a6fbe AK |
14278 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14279 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14280 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14281 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14282 | else |
8a2fc586 | 14283 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14284 | fi |
ec6a6fbe AK |
14285 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14286 | $as_echo "$as_val"'` | |
14287 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14288 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14289 | |
14290 | fi | |
ec6a6fbe AK |
14291 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14292 | $as_echo "$as_val"'` | |
14293 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14294 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14295 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14296 | _ACEOF |
14297 | ||
14298 | else | |
ec6a6fbe AK |
14299 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14300 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14301 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14302 | fi |
14303 | ||
ad6254c5 AK |
14304 | done |
14305 | ||
14306 | ||
795ca3e5 | 14307 | |
8106cdd5 | 14308 | |
ad6254c5 AK |
14309 | |
14310 | ||
14311 | for ac_func in dup2 getmntent memmove select socket | |
14312 | do | |
ec6a6fbe AK |
14313 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14314 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14315 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14316 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14317 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14318 | else |
ad6254c5 | 14319 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14320 | /* confdefs.h. */ |
14321 | _ACEOF | |
14322 | cat confdefs.h >>conftest.$ac_ext | |
14323 | cat >>conftest.$ac_ext <<_ACEOF | |
14324 | /* end confdefs.h. */ | |
8a2fc586 AK |
14325 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14327 | #define $ac_func innocuous_$ac_func | |
14328 | ||
795ca3e5 | 14329 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
14330 | which can conflict with char $ac_func (); below. |
14331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14332 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14333 | |
ad6254c5 AK |
14334 | #ifdef __STDC__ |
14335 | # include <limits.h> | |
14336 | #else | |
14337 | # include <assert.h> | |
14338 | #endif | |
8a2fc586 AK |
14339 | |
14340 | #undef $ac_func | |
14341 | ||
7a197a62 AK |
14342 | /* Override any GCC internal prototype to avoid an error. |
14343 | Use char because int might match the return type of a GCC | |
14344 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14345 | #ifdef __cplusplus |
14346 | extern "C" | |
ad6254c5 | 14347 | #endif |
ad6254c5 | 14348 | char $ac_func (); |
795ca3e5 AK |
14349 | /* The GNU C library defines this for functions which it implements |
14350 | to always fail with ENOSYS. Some functions are actually named | |
14351 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14352 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 14353 | choke me |
795ca3e5 AK |
14354 | #endif |
14355 | ||
ad6254c5 AK |
14356 | int |
14357 | main () | |
14358 | { | |
7a197a62 | 14359 | return $ac_func (); |
ad6254c5 AK |
14360 | ; |
14361 | return 0; | |
14362 | } | |
14363 | _ACEOF | |
14364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14365 | if { (ac_try="$ac_link" |
14366 | case "(($ac_try" in | |
14367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14368 | *) ac_try_echo=$ac_try;; | |
14369 | esac | |
ec6a6fbe AK |
14370 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14371 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14372 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14373 | ac_status=$? |
8a2fc586 AK |
14374 | grep -v '^ *+' conftest.er1 >conftest.err |
14375 | rm -f conftest.er1 | |
14376 | cat conftest.err >&5 | |
ec6a6fbe | 14377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14378 | (exit $ac_status); } && { |
14379 | test -z "$ac_c_werror_flag" || | |
14380 | test ! -s conftest.err | |
ec6a6fbe AK |
14381 | } && test -s conftest$ac_exeext && { |
14382 | test "$cross_compiling" = yes || | |
14383 | $as_test_x conftest$ac_exeext | |
14384 | }; then | |
ad6254c5 | 14385 | eval "$as_ac_var=yes" |
795ca3e5 | 14386 | else |
ec6a6fbe | 14387 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14388 | sed 's/^/| /' conftest.$ac_ext >&5 |
14389 | ||
7a197a62 | 14390 | eval "$as_ac_var=no" |
80992638 | 14391 | fi |
7a197a62 | 14392 | |
ec6a6fbe | 14393 | rm -rf conftest.dSYM |
25fbec5b | 14394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14395 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 14396 | fi |
ec6a6fbe AK |
14397 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14398 | $as_echo "$as_val"'` | |
14399 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14400 | $as_echo "$ac_res" >&6; } | |
14401 | as_val=`eval 'as_val=${'$as_ac_var'} | |
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_func" | $as_tr_cpp` 1 |
ad6254c5 | 14406 | _ACEOF |
80992638 AK |
14407 | |
14408 | else | |
ec6a6fbe AK |
14409 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14410 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14411 | { (exit 1); exit 1; }; } |
8106cdd5 | 14412 | fi |
ad6254c5 | 14413 | done |
795ca3e5 | 14414 | |
25fbec5b AK |
14415 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
14416 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
14417 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
14418 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 14419 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 14420 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
14421 | else |
14422 | ac_func_search_save_LIBS=$LIBS | |
14423 | cat >conftest.$ac_ext <<_ACEOF | |
14424 | /* confdefs.h. */ | |
14425 | _ACEOF | |
14426 | cat confdefs.h >>conftest.$ac_ext | |
14427 | cat >>conftest.$ac_ext <<_ACEOF | |
14428 | /* end confdefs.h. */ | |
80992638 | 14429 | |
7a197a62 AK |
14430 | /* Override any GCC internal prototype to avoid an error. |
14431 | Use char because int might match the return type of a GCC | |
ad6254c5 | 14432 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
14433 | #ifdef __cplusplus |
14434 | extern "C" | |
14435 | #endif | |
25fbec5b | 14436 | char getmntent (); |
ad6254c5 AK |
14437 | int |
14438 | main () | |
14439 | { | |
25fbec5b | 14440 | return getmntent (); |
ad6254c5 AK |
14441 | ; |
14442 | return 0; | |
14443 | } | |
14444 | _ACEOF | |
25fbec5b AK |
14445 | for ac_lib in '' sun seq gen; do |
14446 | if test -z "$ac_lib"; then | |
14447 | ac_res="none required" | |
14448 | else | |
14449 | ac_res=-l$ac_lib | |
14450 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14451 | fi | |
14452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14453 | if { (ac_try="$ac_link" |
14454 | case "(($ac_try" in | |
14455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14456 | *) ac_try_echo=$ac_try;; | |
14457 | esac | |
ec6a6fbe AK |
14458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14459 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14460 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14461 | ac_status=$? |
8a2fc586 AK |
14462 | grep -v '^ *+' conftest.er1 >conftest.err |
14463 | rm -f conftest.er1 | |
14464 | cat conftest.err >&5 | |
ec6a6fbe | 14465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14466 | (exit $ac_status); } && { |
14467 | test -z "$ac_c_werror_flag" || | |
14468 | test ! -s conftest.err | |
ec6a6fbe AK |
14469 | } && test -s conftest$ac_exeext && { |
14470 | test "$cross_compiling" = yes || | |
14471 | $as_test_x conftest$ac_exeext | |
14472 | }; then | |
25fbec5b | 14473 | ac_cv_search_getmntent=$ac_res |
80992638 | 14474 | else |
ec6a6fbe | 14475 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14476 | sed 's/^/| /' conftest.$ac_ext >&5 |
14477 | ||
25fbec5b | 14478 | |
795ca3e5 AK |
14479 | fi |
14480 | ||
ec6a6fbe | 14481 | rm -rf conftest.dSYM |
25fbec5b AK |
14482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14483 | conftest$ac_exeext | |
14484 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14485 | break | |
795ca3e5 | 14486 | fi |
25fbec5b AK |
14487 | done |
14488 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14489 | : | |
14490 | else | |
14491 | ac_cv_search_getmntent=no | |
14492 | fi | |
14493 | rm conftest.$ac_ext | |
14494 | LIBS=$ac_func_search_save_LIBS | |
14495 | fi | |
ec6a6fbe AK |
14496 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14497 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14498 | ac_res=$ac_cv_search_getmntent |
14499 | if test "$ac_res" != no; then | |
14500 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14501 | ac_cv_func_getmntent=yes | |
14502 | ||
14503 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14504 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14505 | _ACEOF |
795ca3e5 | 14506 | |
25fbec5b AK |
14507 | else |
14508 | ac_cv_func_getmntent=no | |
795ca3e5 | 14509 | fi |
795ca3e5 AK |
14510 | |
14511 | ||
ad6254c5 AK |
14512 | # AC_FUNC_REALLOC |
14513 | ||
14514 | ||
14515 | for ac_header in sys/select.h sys/socket.h | |
14516 | do | |
ec6a6fbe | 14517 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14518 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14519 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14520 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14521 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14522 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14523 | fi |
ec6a6fbe AK |
14524 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14525 | $as_echo "$as_val"'` | |
14526 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14527 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14528 | else |
ad6254c5 | 14529 | # Is the header compilable? |
ec6a6fbe AK |
14530 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14531 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14532 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14533 | /* confdefs.h. */ |
14534 | _ACEOF | |
14535 | cat confdefs.h >>conftest.$ac_ext | |
14536 | cat >>conftest.$ac_ext <<_ACEOF | |
14537 | /* end confdefs.h. */ | |
14538 | $ac_includes_default | |
14539 | #include <$ac_header> | |
14540 | _ACEOF | |
14541 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14542 | if { (ac_try="$ac_compile" |
14543 | case "(($ac_try" in | |
14544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14545 | *) ac_try_echo=$ac_try;; | |
14546 | esac | |
ec6a6fbe AK |
14547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14548 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14549 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14550 | ac_status=$? |
8a2fc586 AK |
14551 | grep -v '^ *+' conftest.er1 >conftest.err |
14552 | rm -f conftest.er1 | |
14553 | cat conftest.err >&5 | |
ec6a6fbe | 14554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14555 | (exit $ac_status); } && { |
14556 | test -z "$ac_c_werror_flag" || | |
14557 | test ! -s conftest.err | |
14558 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14559 | ac_header_compiler=yes |
80992638 | 14560 | else |
ec6a6fbe | 14561 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14562 | sed 's/^/| /' conftest.$ac_ext >&5 |
14563 | ||
7a197a62 | 14564 | ac_header_compiler=no |
ad6254c5 | 14565 | fi |
7a197a62 AK |
14566 | |
14567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14568 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14569 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14570 | |
14571 | # Is the header present? | |
ec6a6fbe AK |
14572 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14573 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14574 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14575 | /* confdefs.h. */ |
14576 | _ACEOF | |
14577 | cat confdefs.h >>conftest.$ac_ext | |
14578 | cat >>conftest.$ac_ext <<_ACEOF | |
14579 | /* end confdefs.h. */ | |
14580 | #include <$ac_header> | |
14581 | _ACEOF | |
7a197a62 AK |
14582 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14583 | case "(($ac_try" in | |
14584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14585 | *) ac_try_echo=$ac_try;; | |
14586 | esac | |
ec6a6fbe AK |
14587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14588 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14589 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14590 | ac_status=$? |
14591 | grep -v '^ *+' conftest.er1 >conftest.err | |
14592 | rm -f conftest.er1 | |
14593 | cat conftest.err >&5 | |
ec6a6fbe | 14594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14595 | (exit $ac_status); } >/dev/null && { |
14596 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14597 | test ! -s conftest.err | |
14598 | }; then | |
ad6254c5 AK |
14599 | ac_header_preproc=yes |
14600 | else | |
ec6a6fbe | 14601 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14602 | sed 's/^/| /' conftest.$ac_ext >&5 |
14603 | ||
14604 | ac_header_preproc=no | |
14605 | fi | |
7a197a62 | 14606 | |
ad6254c5 | 14607 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14608 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14609 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14610 | |
14611 | # So? What about this header? | |
8a2fc586 AK |
14612 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14613 | yes:no: ) | |
ec6a6fbe AK |
14614 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14615 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14617 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14618 | ac_header_preproc=yes |
ad6254c5 | 14619 | ;; |
8a2fc586 | 14620 | no:yes:* ) |
ec6a6fbe AK |
14621 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14622 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14624 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14626 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14628 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14630 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14632 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14633 | |
ad6254c5 AK |
14634 | ;; |
14635 | esac | |
ec6a6fbe AK |
14636 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14637 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14639 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14640 | else |
8a2fc586 | 14641 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14642 | fi |
ec6a6fbe AK |
14643 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14644 | $as_echo "$as_val"'` | |
14645 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14646 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14647 | |
795ca3e5 | 14648 | fi |
ec6a6fbe AK |
14649 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14650 | $as_echo "$as_val"'` | |
14651 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14652 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14653 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14654 | _ACEOF |
14655 | ||
795ca3e5 AK |
14656 | fi |
14657 | ||
ad6254c5 AK |
14658 | done |
14659 | ||
ec6a6fbe AK |
14660 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14661 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14662 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14663 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14664 | else |
ad6254c5 | 14665 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14666 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14667 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14668 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14669 | /* confdefs.h. */ |
14670 | _ACEOF | |
14671 | cat confdefs.h >>conftest.$ac_ext | |
14672 | cat >>conftest.$ac_ext <<_ACEOF | |
14673 | /* end confdefs.h. */ | |
14674 | $ac_includes_default | |
25fbec5b | 14675 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14676 | # include <sys/select.h> |
14677 | #endif | |
25fbec5b | 14678 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14679 | # include <sys/socket.h> |
14680 | #endif | |
14681 | ||
14682 | int | |
14683 | main () | |
14684 | { | |
14685 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14686 | $ac_arg234, $ac_arg234, $ac_arg234, |
14687 | $ac_arg5); | |
ad6254c5 AK |
14688 | ; |
14689 | return 0; | |
14690 | } | |
14691 | _ACEOF | |
14692 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14693 | if { (ac_try="$ac_compile" |
14694 | case "(($ac_try" in | |
14695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14696 | *) ac_try_echo=$ac_try;; | |
14697 | esac | |
ec6a6fbe AK |
14698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14699 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14700 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14701 | ac_status=$? |
8a2fc586 AK |
14702 | grep -v '^ *+' conftest.er1 >conftest.err |
14703 | rm -f conftest.er1 | |
14704 | cat conftest.err >&5 | |
ec6a6fbe | 14705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14706 | (exit $ac_status); } && { |
14707 | test -z "$ac_c_werror_flag" || | |
14708 | test ! -s conftest.err | |
14709 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14710 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14711 | else | |
ec6a6fbe | 14712 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14713 | sed 's/^/| /' conftest.$ac_ext >&5 |
14714 | ||
7a197a62 | 14715 | |
ad6254c5 | 14716 | fi |
7a197a62 AK |
14717 | |
14718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14719 | done |
14720 | done | |
14721 | done | |
14722 | # Provide a safe default value. | |
14723 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14724 | ||
26e7f2e0 | 14725 | fi |
ec6a6fbe AK |
14726 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14727 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14728 | ac_save_IFS=$IFS; IFS=',' |
14729 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14730 | IFS=$ac_save_IFS | |
14731 | shift | |
14732 | ||
14733 | cat >>confdefs.h <<_ACEOF | |
14734 | #define SELECT_TYPE_ARG1 $1 | |
14735 | _ACEOF | |
14736 | ||
14737 | ||
14738 | cat >>confdefs.h <<_ACEOF | |
14739 | #define SELECT_TYPE_ARG234 ($2) | |
14740 | _ACEOF | |
14741 | ||
14742 | ||
14743 | cat >>confdefs.h <<_ACEOF | |
14744 | #define SELECT_TYPE_ARG5 ($3) | |
14745 | _ACEOF | |
14746 | ||
80992638 | 14747 | rm -f conftest* |
80992638 | 14748 | |
8106cdd5 | 14749 | fi |
ad6254c5 | 14750 | |
ad6254c5 AK |
14751 | if test x$CLUSTER != xnone; then |
14752 | ||
14753 | ||
14754 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14755 | do |
ec6a6fbe | 14756 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14758 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14759 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14761 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14762 | fi |
ec6a6fbe AK |
14763 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14764 | $as_echo "$as_val"'` | |
14765 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14766 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14767 | else |
14768 | # Is the header compilable? | |
ec6a6fbe AK |
14769 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14770 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14771 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14772 | /* confdefs.h. */ |
14773 | _ACEOF | |
14774 | cat confdefs.h >>conftest.$ac_ext | |
14775 | cat >>conftest.$ac_ext <<_ACEOF | |
14776 | /* end confdefs.h. */ | |
14777 | $ac_includes_default | |
14778 | #include <$ac_header> | |
14779 | _ACEOF | |
14780 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14781 | if { (ac_try="$ac_compile" |
14782 | case "(($ac_try" in | |
14783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14784 | *) ac_try_echo=$ac_try;; | |
14785 | esac | |
ec6a6fbe AK |
14786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14787 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14788 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14789 | ac_status=$? |
8a2fc586 AK |
14790 | grep -v '^ *+' conftest.er1 >conftest.err |
14791 | rm -f conftest.er1 | |
14792 | cat conftest.err >&5 | |
ec6a6fbe | 14793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14794 | (exit $ac_status); } && { |
14795 | test -z "$ac_c_werror_flag" || | |
14796 | test ! -s conftest.err | |
14797 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14798 | ac_header_compiler=yes |
14799 | else | |
ec6a6fbe | 14800 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14801 | sed 's/^/| /' conftest.$ac_ext >&5 |
14802 | ||
7a197a62 | 14803 | ac_header_compiler=no |
ad6254c5 | 14804 | fi |
7a197a62 AK |
14805 | |
14806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14807 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14808 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14809 | |
14810 | # Is the header present? | |
ec6a6fbe AK |
14811 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14812 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14813 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14814 | /* confdefs.h. */ |
14815 | _ACEOF | |
14816 | cat confdefs.h >>conftest.$ac_ext | |
14817 | cat >>conftest.$ac_ext <<_ACEOF | |
14818 | /* end confdefs.h. */ | |
14819 | #include <$ac_header> | |
14820 | _ACEOF | |
7a197a62 AK |
14821 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14822 | case "(($ac_try" in | |
14823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14824 | *) ac_try_echo=$ac_try;; | |
14825 | esac | |
ec6a6fbe AK |
14826 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14827 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14828 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14829 | ac_status=$? |
14830 | grep -v '^ *+' conftest.er1 >conftest.err | |
14831 | rm -f conftest.er1 | |
14832 | cat conftest.err >&5 | |
ec6a6fbe | 14833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14834 | (exit $ac_status); } >/dev/null && { |
14835 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14836 | test ! -s conftest.err | |
14837 | }; then | |
ad6254c5 AK |
14838 | ac_header_preproc=yes |
14839 | else | |
ec6a6fbe | 14840 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14841 | sed 's/^/| /' conftest.$ac_ext >&5 |
14842 | ||
14843 | ac_header_preproc=no | |
14844 | fi | |
7a197a62 | 14845 | |
ad6254c5 | 14846 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14847 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14848 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14849 | |
14850 | # So? What about this header? | |
8a2fc586 AK |
14851 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14852 | yes:no: ) | |
ec6a6fbe AK |
14853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14854 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14856 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14857 | ac_header_preproc=yes |
ad6254c5 | 14858 | ;; |
8a2fc586 | 14859 | no:yes:* ) |
ec6a6fbe AK |
14860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14861 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14863 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14865 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14867 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14869 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14871 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14872 | |
ad6254c5 AK |
14873 | ;; |
14874 | esac | |
ec6a6fbe AK |
14875 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14876 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14878 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14879 | else |
8a2fc586 | 14880 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14881 | fi |
ec6a6fbe AK |
14882 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14883 | $as_echo "$as_val"'` | |
14884 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14885 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14886 | |
14887 | fi | |
ec6a6fbe AK |
14888 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14889 | $as_echo "$as_val"'` | |
14890 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14891 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14892 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14893 | _ACEOF |
14894 | ||
80992638 | 14895 | else |
ec6a6fbe AK |
14896 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14897 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14898 | { (exit 1); exit 1; }; } |
b896caa1 | 14899 | fi |
ad6254c5 | 14900 | |
b896caa1 AK |
14901 | done |
14902 | ||
14903 | ||
ad6254c5 AK |
14904 | for ac_func in socket |
14905 | do | |
ec6a6fbe AK |
14906 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14907 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14908 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14909 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14910 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14911 | else |
ad6254c5 | 14912 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14913 | /* confdefs.h. */ |
14914 | _ACEOF | |
14915 | cat confdefs.h >>conftest.$ac_ext | |
14916 | cat >>conftest.$ac_ext <<_ACEOF | |
14917 | /* end confdefs.h. */ | |
8a2fc586 AK |
14918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14920 | #define $ac_func innocuous_$ac_func | |
14921 | ||
ad6254c5 AK |
14922 | /* System header to define __stub macros and hopefully few prototypes, |
14923 | which can conflict with char $ac_func (); below. | |
14924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14925 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14926 | |
ad6254c5 AK |
14927 | #ifdef __STDC__ |
14928 | # include <limits.h> | |
14929 | #else | |
14930 | # include <assert.h> | |
14931 | #endif | |
8a2fc586 AK |
14932 | |
14933 | #undef $ac_func | |
14934 | ||
7a197a62 AK |
14935 | /* Override any GCC internal prototype to avoid an error. |
14936 | Use char because int might match the return type of a GCC | |
14937 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14938 | #ifdef __cplusplus |
14939 | extern "C" | |
ad6254c5 | 14940 | #endif |
ad6254c5 AK |
14941 | char $ac_func (); |
14942 | /* The GNU C library defines this for functions which it implements | |
14943 | to always fail with ENOSYS. Some functions are actually named | |
14944 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14945 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14946 | choke me |
ad6254c5 AK |
14947 | #endif |
14948 | ||
14949 | int | |
14950 | main () | |
14951 | { | |
7a197a62 | 14952 | return $ac_func (); |
ad6254c5 AK |
14953 | ; |
14954 | return 0; | |
14955 | } | |
14956 | _ACEOF | |
14957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14958 | if { (ac_try="$ac_link" |
14959 | case "(($ac_try" in | |
14960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14961 | *) ac_try_echo=$ac_try;; | |
14962 | esac | |
ec6a6fbe AK |
14963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14964 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14965 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14966 | ac_status=$? |
8a2fc586 AK |
14967 | grep -v '^ *+' conftest.er1 >conftest.err |
14968 | rm -f conftest.er1 | |
14969 | cat conftest.err >&5 | |
ec6a6fbe | 14970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14971 | (exit $ac_status); } && { |
14972 | test -z "$ac_c_werror_flag" || | |
14973 | test ! -s conftest.err | |
ec6a6fbe AK |
14974 | } && test -s conftest$ac_exeext && { |
14975 | test "$cross_compiling" = yes || | |
14976 | $as_test_x conftest$ac_exeext | |
14977 | }; then | |
ad6254c5 AK |
14978 | eval "$as_ac_var=yes" |
14979 | else | |
ec6a6fbe | 14980 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14981 | sed 's/^/| /' conftest.$ac_ext >&5 |
14982 | ||
7a197a62 | 14983 | eval "$as_ac_var=no" |
ad6254c5 | 14984 | fi |
7a197a62 | 14985 | |
ec6a6fbe | 14986 | rm -rf conftest.dSYM |
25fbec5b | 14987 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14988 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14989 | fi |
ec6a6fbe AK |
14990 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14991 | $as_echo "$as_val"'` | |
14992 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14993 | $as_echo "$ac_res" >&6; } | |
14994 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14995 | $as_echo "$as_val"'` | |
14996 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14997 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14998 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14999 | _ACEOF |
15000 | ||
15001 | else | |
ec6a6fbe AK |
15002 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15003 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
15004 | { (exit 1); exit 1; }; } |
15005 | fi | |
15006 | done | |
15007 | ||
15008 | fi | |
15009 | ||
15010 | if test x$HAVE_LIBDL = xyes; then | |
15011 | ||
15012 | for ac_header in dlfcn.h | |
15013 | do | |
ec6a6fbe | 15014 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15016 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15017 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15018 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15019 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15020 | fi |
ec6a6fbe AK |
15021 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15022 | $as_echo "$as_val"'` | |
15023 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15024 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15025 | else |
15026 | # Is the header compilable? | |
ec6a6fbe AK |
15027 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15028 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15029 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15030 | /* confdefs.h. */ |
15031 | _ACEOF | |
15032 | cat confdefs.h >>conftest.$ac_ext | |
15033 | cat >>conftest.$ac_ext <<_ACEOF | |
15034 | /* end confdefs.h. */ | |
15035 | $ac_includes_default | |
15036 | #include <$ac_header> | |
15037 | _ACEOF | |
15038 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15039 | if { (ac_try="$ac_compile" |
15040 | case "(($ac_try" in | |
15041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15042 | *) ac_try_echo=$ac_try;; | |
15043 | esac | |
ec6a6fbe AK |
15044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15045 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15046 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15047 | ac_status=$? |
8a2fc586 AK |
15048 | grep -v '^ *+' conftest.er1 >conftest.err |
15049 | rm -f conftest.er1 | |
15050 | cat conftest.err >&5 | |
ec6a6fbe | 15051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15052 | (exit $ac_status); } && { |
15053 | test -z "$ac_c_werror_flag" || | |
15054 | test ! -s conftest.err | |
15055 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15056 | ac_header_compiler=yes |
15057 | else | |
ec6a6fbe | 15058 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15059 | sed 's/^/| /' conftest.$ac_ext >&5 |
15060 | ||
7a197a62 | 15061 | ac_header_compiler=no |
ad6254c5 | 15062 | fi |
7a197a62 AK |
15063 | |
15064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15065 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15066 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15067 | |
15068 | # Is the header present? | |
ec6a6fbe AK |
15069 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15070 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15071 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15072 | /* confdefs.h. */ |
15073 | _ACEOF | |
15074 | cat confdefs.h >>conftest.$ac_ext | |
15075 | cat >>conftest.$ac_ext <<_ACEOF | |
15076 | /* end confdefs.h. */ | |
15077 | #include <$ac_header> | |
15078 | _ACEOF | |
7a197a62 AK |
15079 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15080 | case "(($ac_try" in | |
15081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15082 | *) ac_try_echo=$ac_try;; | |
15083 | esac | |
ec6a6fbe AK |
15084 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15085 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15086 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15087 | ac_status=$? |
15088 | grep -v '^ *+' conftest.er1 >conftest.err | |
15089 | rm -f conftest.er1 | |
15090 | cat conftest.err >&5 | |
ec6a6fbe | 15091 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15092 | (exit $ac_status); } >/dev/null && { |
15093 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15094 | test ! -s conftest.err | |
15095 | }; then | |
ad6254c5 AK |
15096 | ac_header_preproc=yes |
15097 | else | |
ec6a6fbe | 15098 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15099 | sed 's/^/| /' conftest.$ac_ext >&5 |
15100 | ||
15101 | ac_header_preproc=no | |
15102 | fi | |
7a197a62 | 15103 | |
ad6254c5 | 15104 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15105 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15106 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15107 | |
15108 | # So? What about this header? | |
8a2fc586 AK |
15109 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15110 | yes:no: ) | |
ec6a6fbe AK |
15111 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15112 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15113 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15114 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15115 | ac_header_preproc=yes |
ad6254c5 | 15116 | ;; |
8a2fc586 | 15117 | no:yes:* ) |
ec6a6fbe AK |
15118 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15119 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15120 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15121 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15123 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15125 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15126 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15127 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15128 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15129 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15130 | |
ad6254c5 AK |
15131 | ;; |
15132 | esac | |
ec6a6fbe AK |
15133 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15134 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15136 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15137 | else |
8a2fc586 | 15138 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 15139 | fi |
ec6a6fbe AK |
15140 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15141 | $as_echo "$as_val"'` | |
15142 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15143 | $as_echo "$ac_res" >&6; } | |
80992638 | 15144 | |
8106cdd5 | 15145 | fi |
ec6a6fbe AK |
15146 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15147 | $as_echo "$as_val"'` | |
15148 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15149 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15150 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15151 | _ACEOF |
795ca3e5 AK |
15152 | |
15153 | else | |
ec6a6fbe AK |
15154 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15155 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15156 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
15157 | fi |
15158 | ||
ad6254c5 | 15159 | done |
80992638 | 15160 | |
ad6254c5 | 15161 | fi |
80992638 | 15162 | |
ad6254c5 | 15163 | if test x$INTL = xyes; then |
83912faa | 15164 | |
ad6254c5 AK |
15165 | for ac_header in libintl.h |
15166 | do | |
ec6a6fbe | 15167 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15168 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15169 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15170 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15172 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15173 | fi |
ec6a6fbe AK |
15174 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15175 | $as_echo "$as_val"'` | |
15176 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15177 | $as_echo "$ac_res" >&6; } | |
83912faa | 15178 | else |
ad6254c5 | 15179 | # Is the header compilable? |
ec6a6fbe AK |
15180 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15181 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15182 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15183 | /* confdefs.h. */ |
15184 | _ACEOF | |
15185 | cat confdefs.h >>conftest.$ac_ext | |
15186 | cat >>conftest.$ac_ext <<_ACEOF | |
15187 | /* end confdefs.h. */ | |
15188 | $ac_includes_default | |
15189 | #include <$ac_header> | |
15190 | _ACEOF | |
15191 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15192 | if { (ac_try="$ac_compile" |
15193 | case "(($ac_try" in | |
15194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15195 | *) ac_try_echo=$ac_try;; | |
15196 | esac | |
ec6a6fbe AK |
15197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15198 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15199 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15200 | ac_status=$? |
8a2fc586 AK |
15201 | grep -v '^ *+' conftest.er1 >conftest.err |
15202 | rm -f conftest.er1 | |
15203 | cat conftest.err >&5 | |
ec6a6fbe | 15204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15205 | (exit $ac_status); } && { |
15206 | test -z "$ac_c_werror_flag" || | |
15207 | test ! -s conftest.err | |
15208 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15209 | ac_header_compiler=yes |
15210 | else | |
ec6a6fbe | 15211 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15212 | sed 's/^/| /' conftest.$ac_ext >&5 |
15213 | ||
7a197a62 | 15214 | ac_header_compiler=no |
ad6254c5 | 15215 | fi |
7a197a62 AK |
15216 | |
15217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15218 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15219 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15220 | |
15221 | # Is the header present? | |
ec6a6fbe AK |
15222 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15223 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15224 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15225 | /* confdefs.h. */ |
15226 | _ACEOF | |
15227 | cat confdefs.h >>conftest.$ac_ext | |
15228 | cat >>conftest.$ac_ext <<_ACEOF | |
15229 | /* end confdefs.h. */ | |
15230 | #include <$ac_header> | |
15231 | _ACEOF | |
7a197a62 AK |
15232 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15233 | case "(($ac_try" in | |
15234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15235 | *) ac_try_echo=$ac_try;; | |
15236 | esac | |
ec6a6fbe AK |
15237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15238 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15240 | ac_status=$? |
15241 | grep -v '^ *+' conftest.er1 >conftest.err | |
15242 | rm -f conftest.er1 | |
15243 | cat conftest.err >&5 | |
ec6a6fbe | 15244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15245 | (exit $ac_status); } >/dev/null && { |
15246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15247 | test ! -s conftest.err | |
15248 | }; then | |
ad6254c5 AK |
15249 | ac_header_preproc=yes |
15250 | else | |
ec6a6fbe | 15251 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15252 | sed 's/^/| /' conftest.$ac_ext >&5 |
15253 | ||
15254 | ac_header_preproc=no | |
15255 | fi | |
7a197a62 | 15256 | |
ad6254c5 | 15257 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15258 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15259 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15260 | |
15261 | # So? What about this header? | |
8a2fc586 AK |
15262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15263 | yes:no: ) | |
ec6a6fbe AK |
15264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15265 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15267 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15268 | ac_header_preproc=yes |
ad6254c5 | 15269 | ;; |
8a2fc586 | 15270 | no:yes:* ) |
ec6a6fbe AK |
15271 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15272 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15273 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15274 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15275 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15276 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15277 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15278 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15280 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15282 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15283 | |
ad6254c5 AK |
15284 | ;; |
15285 | esac | |
ec6a6fbe AK |
15286 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15287 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15288 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15289 | $as_echo_n "(cached) " >&6 |
80992638 | 15290 | else |
8a2fc586 | 15291 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 15292 | fi |
ec6a6fbe AK |
15293 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15294 | $as_echo "$as_val"'` | |
15295 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15296 | $as_echo "$ac_res" >&6; } | |
83912faa | 15297 | |
69792976 | 15298 | fi |
ec6a6fbe AK |
15299 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15300 | $as_echo "$as_val"'` | |
15301 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15302 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15303 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15304 | _ACEOF |
69792976 | 15305 | |
69792976 | 15306 | else |
ec6a6fbe AK |
15307 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15308 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15309 | { (exit 1); exit 1; }; } |
80992638 AK |
15310 | fi |
15311 | ||
ad6254c5 | 15312 | done |
69792976 | 15313 | |
ad6254c5 AK |
15314 | fi |
15315 | ||
a5f46f6a AK |
15316 | if test x$UDEV_SYNC = xyes; then |
15317 | ||
15318 | ||
15319 | for ac_header in sys/ipc.h sys/sem.h | |
15320 | do | |
15321 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15323 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15324 | $as_echo_n "checking for $ac_header... " >&6; } | |
15325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15326 | $as_echo_n "(cached) " >&6 | |
15327 | fi | |
15328 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15329 | $as_echo "$as_val"'` | |
15330 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15331 | $as_echo "$ac_res" >&6; } | |
15332 | else | |
15333 | # Is the header compilable? | |
15334 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15335 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15336 | cat >conftest.$ac_ext <<_ACEOF | |
15337 | /* confdefs.h. */ | |
15338 | _ACEOF | |
15339 | cat confdefs.h >>conftest.$ac_ext | |
15340 | cat >>conftest.$ac_ext <<_ACEOF | |
15341 | /* end confdefs.h. */ | |
15342 | $ac_includes_default | |
15343 | #include <$ac_header> | |
15344 | _ACEOF | |
15345 | rm -f conftest.$ac_objext | |
15346 | if { (ac_try="$ac_compile" | |
15347 | case "(($ac_try" in | |
15348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15349 | *) ac_try_echo=$ac_try;; | |
15350 | esac | |
15351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15352 | $as_echo "$ac_try_echo") >&5 | |
15353 | (eval "$ac_compile") 2>conftest.er1 | |
15354 | ac_status=$? | |
15355 | grep -v '^ *+' conftest.er1 >conftest.err | |
15356 | rm -f conftest.er1 | |
15357 | cat conftest.err >&5 | |
15358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15359 | (exit $ac_status); } && { | |
15360 | test -z "$ac_c_werror_flag" || | |
15361 | test ! -s conftest.err | |
15362 | } && test -s conftest.$ac_objext; then | |
15363 | ac_header_compiler=yes | |
15364 | else | |
15365 | $as_echo "$as_me: failed program was:" >&5 | |
15366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15367 | ||
15368 | ac_header_compiler=no | |
15369 | fi | |
15370 | ||
15371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15372 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15373 | $as_echo "$ac_header_compiler" >&6; } | |
15374 | ||
15375 | # Is the header present? | |
15376 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15377 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15378 | cat >conftest.$ac_ext <<_ACEOF | |
15379 | /* confdefs.h. */ | |
15380 | _ACEOF | |
15381 | cat confdefs.h >>conftest.$ac_ext | |
15382 | cat >>conftest.$ac_ext <<_ACEOF | |
15383 | /* end confdefs.h. */ | |
15384 | #include <$ac_header> | |
15385 | _ACEOF | |
15386 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15387 | case "(($ac_try" in | |
15388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15389 | *) ac_try_echo=$ac_try;; | |
15390 | esac | |
15391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15392 | $as_echo "$ac_try_echo") >&5 | |
15393 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15394 | ac_status=$? | |
15395 | grep -v '^ *+' conftest.er1 >conftest.err | |
15396 | rm -f conftest.er1 | |
15397 | cat conftest.err >&5 | |
15398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15399 | (exit $ac_status); } >/dev/null && { | |
15400 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15401 | test ! -s conftest.err | |
15402 | }; then | |
15403 | ac_header_preproc=yes | |
15404 | else | |
15405 | $as_echo "$as_me: failed program was:" >&5 | |
15406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15407 | ||
15408 | ac_header_preproc=no | |
15409 | fi | |
15410 | ||
15411 | rm -f conftest.err conftest.$ac_ext | |
15412 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15413 | $as_echo "$ac_header_preproc" >&6; } | |
15414 | ||
15415 | # So? What about this header? | |
15416 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15417 | yes:no: ) | |
15418 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15419 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15420 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15421 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15422 | ac_header_preproc=yes | |
15423 | ;; | |
15424 | no:yes:* ) | |
15425 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15426 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15427 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15428 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15430 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15432 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15433 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15434 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15436 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15437 | ||
15438 | ;; | |
15439 | esac | |
15440 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15441 | $as_echo_n "checking for $ac_header... " >&6; } | |
15442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15443 | $as_echo_n "(cached) " >&6 | |
15444 | else | |
15445 | eval "$as_ac_Header=\$ac_header_preproc" | |
15446 | fi | |
15447 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15448 | $as_echo "$as_val"'` | |
15449 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15450 | $as_echo "$ac_res" >&6; } | |
15451 | ||
15452 | fi | |
15453 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15454 | $as_echo "$as_val"'` | |
15455 | if test "x$as_val" = x""yes; then | |
15456 | cat >>confdefs.h <<_ACEOF | |
15457 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15458 | _ACEOF | |
15459 | ||
15460 | else | |
15461 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15462 | $as_echo "$as_me: error: bailing out" >&2;} | |
15463 | { (exit 1); exit 1; }; } | |
15464 | fi | |
15465 | ||
15466 | done | |
15467 | ||
15468 | fi | |
15469 | ||
a653923f AK |
15470 | ################################################################################ |
15471 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15472 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15473 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15474 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15475 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15476 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15477 | else |
15478 | case $MODPROBE_CMD in | |
15479 | [\\/]* | ?:[\\/]*) | |
15480 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15481 | ;; | |
15482 | *) | |
15483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15484 | for as_dir in $PATH | |
15485 | do | |
15486 | IFS=$as_save_IFS | |
15487 | test -z "$as_dir" && as_dir=. | |
15488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15490 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15491 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15492 | break 2 |
15493 | fi | |
15494 | done | |
15495 | done | |
7a197a62 | 15496 | IFS=$as_save_IFS |
72b2cb61 AK |
15497 | |
15498 | ;; | |
15499 | esac | |
15500 | fi | |
15501 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15502 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15503 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15504 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15505 | else |
ec6a6fbe AK |
15506 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15507 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15508 | fi |
15509 | ||
a653923f | 15510 | |
7a197a62 | 15511 | |
a653923f | 15512 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15513 | |
15514 | cat >>confdefs.h <<_ACEOF | |
15515 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15516 | _ACEOF | |
15517 | ||
a653923f AK |
15518 | fi |
15519 | ||
b5c2529b | 15520 | |
a9b601e2 ZK |
15521 | lvm_exec_prefix=$exec_prefix |
15522 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
15523 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
15524 | ||
b5c2529b | 15525 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 15526 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
15527 | _ACEOF |
15528 | ||
15529 | ||
15530 | if test "$CLVMD" != none; then | |
15531 | clvmd_prefix=$ac_default_prefix | |
15532 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
15533 | ||
15534 | cat >>confdefs.h <<_ACEOF | |
15535 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
15536 | _ACEOF | |
15537 | ||
15538 | fi | |
15539 | ||
80992638 | 15540 | ################################################################################ |
93bd259b AK |
15541 | |
15542 | ||
15543 | if test "$BUILD_DMEVENTD" = yes; then | |
15544 | ||
15545 | # Check whether --with-dmeventd-pidfile was given. | |
15546 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15547 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15548 | #define DMEVENTD_PIDFILE "$withval" | |
15549 | _ACEOF | |
15550 | ||
15551 | else | |
15552 | cat >>confdefs.h <<_ACEOF | |
15553 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15554 | _ACEOF | |
15555 | ||
15556 | fi | |
15557 | ||
15558 | fi | |
15559 | ||
15560 | ||
15561 | ||
15562 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
15563 | |
15564 | # Check whether --with-dmeventd-path was given. | |
15565 | if test "${with_dmeventd_path+set}" = set; then | |
15566 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15567 | #define DMEVENTD_PATH "$withval" | |
15568 | _ACEOF | |
15569 | ||
15570 | else | |
15571 | cat >>confdefs.h <<_ACEOF | |
a9b601e2 | 15572 | #define DMEVENTD_PATH "$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
15573 | _ACEOF |
15574 | ||
15575 | fi | |
15576 | ||
15577 | fi | |
15578 | ||
3399ae32 AK |
15579 | ################################################################################ |
15580 | ||
15581 | ||
15582 | ||
15583 | # Check whether --with-default-system-dir was given. | |
15584 | if test "${with_default_system_dir+set}" = set; then | |
15585 | withval=$with_default_system_dir; DEFAULT_SYS_DIR="$withval" | |
15586 | else | |
15587 | DEFAULT_SYS_DIR="/etc/lvm" | |
15588 | fi | |
15589 | ||
15590 | cat >>confdefs.h <<_ACEOF | |
15591 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
15592 | _ACEOF | |
15593 | ||
15594 | ||
15595 | ||
15596 | ||
15597 | ||
15598 | # Check whether --with-default-archive-subdir was given. | |
15599 | if test "${with_default_archive_subdir+set}" = set; then | |
15600 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR="$withval" | |
15601 | else | |
15602 | DEFAULT_ARCHIVE_SUBDIR="archive" | |
15603 | fi | |
15604 | ||
15605 | cat >>confdefs.h <<_ACEOF | |
15606 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
15607 | _ACEOF | |
15608 | ||
15609 | ||
15610 | ||
15611 | ||
15612 | ||
15613 | # Check whether --with-default-backup-subdir was given. | |
15614 | if test "${with_default_backup_subdir+set}" = set; then | |
15615 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR="$withval" | |
15616 | else | |
15617 | DEFAULT_BACKUP_SUBDIR="backup" | |
15618 | fi | |
15619 | ||
15620 | cat >>confdefs.h <<_ACEOF | |
15621 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
15622 | _ACEOF | |
15623 | ||
15624 | ||
15625 | ||
15626 | ||
15627 | ||
15628 | # Check whether --with-default-cache-subdir was given. | |
15629 | if test "${with_default_cache_subdir+set}" = set; then | |
15630 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR="$withval" | |
15631 | else | |
15632 | DEFAULT_CACHE_SUBDIR="cache" | |
15633 | fi | |
15634 | ||
15635 | cat >>confdefs.h <<_ACEOF | |
15636 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
15637 | _ACEOF | |
15638 | ||
15639 | ||
15640 | ||
15641 | ||
15642 | ||
15643 | # Check whether --with-default-locking-dir was given. | |
15644 | if test "${with_default_locking_dir+set}" = set; then | |
15645 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR="$withval" | |
15646 | else | |
15647 | DEFAULT_LOCK_DIR="/var/lock/lvm" | |
15648 | fi | |
15649 | ||
15650 | cat >>confdefs.h <<_ACEOF | |
15651 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
15652 | _ACEOF | |
15653 | ||
15654 | ||
93bd259b | 15655 | ################################################################################ |
ec6a6fbe AK |
15656 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15657 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15658 | |
15659 | # Check whether --with-interface was given. | |
15660 | if test "${with_interface+set}" = set; then | |
15661 | withval=$with_interface; interface="$withval" | |
15662 | else | |
15663 | interface=ioctl | |
15664 | fi | |
15665 | ||
15666 | if [ "x$interface" != xioctl ]; | |
15667 | then | |
ec6a6fbe AK |
15668 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15669 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15670 | { (exit 1); exit 1; }; } |
15671 | fi | |
ec6a6fbe AK |
15672 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15673 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15674 | |
15675 | ################################################################################ | |
db8b5af9 | 15676 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15677 | |
15678 | cat >>confdefs.h <<_ACEOF | |
15679 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15680 | _ACEOF | |
15681 | ||
15682 | ||
db8b5af9 | 15683 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15684 | |
db8b5af9 | 15685 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15686 | |
db8b5af9 | 15687 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 15688 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15689 | VER=`echo "$VER" | $AWK '{print $1}'` |
15690 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15691 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15692 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15693 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15694 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15695 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15696 | |
80992638 | 15697 | ################################################################################ |
fae0c576 | 15698 | |
83912faa | 15699 | |
795ca3e5 AK |
15700 | |
15701 | ||
15702 | ||
15703 | ||
15704 | ||
15705 | ||
5a52dca9 | 15706 | |
8ef2b021 | 15707 | |
199e490e | 15708 | |
69792976 AK |
15709 | |
15710 | ||
15711 | ||
d0191583 | 15712 | |
69792976 | 15713 | |
8106cdd5 AK |
15714 | |
15715 | ||
15716 | ||
15717 | ||
15718 | ||
d68a82ec | 15719 | |
036f273a | 15720 | |
7d1552c9 | 15721 | |
8106cdd5 | 15722 | |
0a62c911 | 15723 | |
8106cdd5 | 15724 | |
4a7f3eb2 | 15725 | |
4922197a AK |
15726 | |
15727 | ||
d8ac0fbc | 15728 | |
1a9ea74d | 15729 | |
8a2fc586 AK |
15730 | |
15731 | ||
d0191583 | 15732 | |
93bd259b AK |
15733 | |
15734 | ||
15735 | ||
15736 | ||
15737 | ||
d0191583 JM |
15738 | |
15739 | ||
15740 | ||
15741 | ||
15742 | ||
8a2fc586 | 15743 | |
19a2c6e0 | 15744 | |
f7f0854e ZK |
15745 | |
15746 | ||
3ceb7608 | 15747 | |
8ce0cbda | 15748 | |
8b1a3214 | 15749 | |
ec6a6fbe AK |
15750 | |
15751 | ||
15752 | ||
15753 | ||
e2997b73 AK |
15754 | |
15755 | ||
15756 | ||
15757 | ||
15758 | ||
15759 | ||
a946372e AK |
15760 | |
15761 | ||
15762 | ||
15763 | ||
15764 | ||
15765 | ||
15766 | ||
15767 | ||
15768 | ||
15769 | ||
15770 | ||
ec6a6fbe | 15771 | |
33f732c5 | 15772 | |
66e941e8 | 15773 | |
d3c8211f | 15774 | |
7e3fe830 | 15775 | |
a5f46f6a AK |
15776 | |
15777 | ||
15778 | ||
572fefeb | 15779 | |
90c80887 | 15780 | |
3399ae32 AK |
15781 | |
15782 | ||
15783 | ||
15784 | ||
15785 | ||
90c80887 | 15786 | |
bf456146 | 15787 | |
e1b8a236 | 15788 | |
0878503f | 15789 | |
8fea97b7 | 15790 | |
68f2de6d AK |
15791 | |
15792 | ||
80992638 | 15793 | ################################################################################ |
8fea97b7 | 15794 | 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 doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/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 | 15795 | |
ad6254c5 | 15796 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15797 | # This file is a shell script that caches the results of configure |
15798 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15799 | # scripts and configure runs, see configure's option --config-cache. |
15800 | # It is not useful on other systems. If it contains results you don't | |
15801 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15802 | # |
ad6254c5 AK |
15803 | # config.status only pays attention to the cache file if you give it |
15804 | # the --recheck option to rerun configure. | |
795ca3e5 | 15805 | # |
ad6254c5 AK |
15806 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15807 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15808 | # following values. | |
15809 | ||
15810 | _ACEOF | |
15811 | ||
795ca3e5 AK |
15812 | # The following way of writing the cache mishandles newlines in values, |
15813 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15814 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15815 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15816 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15817 | ( |
15818 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15819 | eval ac_val=\$$ac_var | |
15820 | case $ac_val in #( | |
15821 | *${as_nl}*) | |
15822 | case $ac_var in #( | |
ec6a6fbe AK |
15823 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15824 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15825 | esac |
15826 | case $ac_var in #( | |
15827 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15828 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15829 | *) $as_unset $ac_var ;; |
15830 | esac ;; | |
15831 | esac | |
15832 | done | |
15833 | ||
ad6254c5 | 15834 | (set) 2>&1 | |
7a197a62 AK |
15835 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15836 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15837 | # `set' does not quote correctly, so add quotes (double-quote |
15838 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15839 | sed -n \ | |
8a2fc586 AK |
15840 | "s/'/'\\\\''/g; |
15841 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15842 | ;; #( |
ad6254c5 AK |
15843 | *) |
15844 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15845 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15846 | ;; |
7a197a62 AK |
15847 | esac | |
15848 | sort | |
15849 | ) | | |
ad6254c5 | 15850 | sed ' |
7a197a62 | 15851 | /^ac_cv_env_/b end |
ad6254c5 | 15852 | t clear |
7a197a62 | 15853 | :clear |
ad6254c5 AK |
15854 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15855 | t end | |
7a197a62 AK |
15856 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15857 | :end' >>confcache | |
15858 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15859 | if test -w "$cache_file"; then | |
15860 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15861 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15862 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15863 | cat confcache >$cache_file |
795ca3e5 | 15864 | else |
ec6a6fbe AK |
15865 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15866 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15867 | fi |
15868 | fi | |
15869 | rm -f confcache | |
15870 | ||
795ca3e5 AK |
15871 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15872 | # Let make expand exec_prefix. | |
15873 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15874 | ||
72b2cb61 | 15875 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15876 | |
15877 | ac_libobjs= | |
15878 | ac_ltlibobjs= | |
15879 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15880 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15881 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15882 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15883 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15884 | # will be set to the directory where LIBOBJS objects are built. | |
15885 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15886 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15887 | done |
15888 | LIBOBJS=$ac_libobjs | |
80992638 | 15889 | |
ad6254c5 AK |
15890 | LTLIBOBJS=$ac_ltlibobjs |
15891 | ||
15892 | ||
15893 | ||
15894 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15895 | ac_write_fail=0 |
ad6254c5 AK |
15896 | ac_clean_files_save=$ac_clean_files |
15897 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15898 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15899 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15900 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15901 | #! $SHELL |
15902 | # Generated by $as_me. | |
795ca3e5 | 15903 | # Run this file to recreate the current configuration. |
795ca3e5 | 15904 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15905 | # configure, is in config.log if it exists. |
15906 | ||
15907 | debug=false | |
15908 | ac_cs_recheck=false | |
15909 | ac_cs_silent=false | |
15910 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15911 | _ACEOF | |
15912 | ||
ec6a6fbe | 15913 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15914 | ## --------------------- ## |
15915 | ## M4sh Initialization. ## | |
15916 | ## --------------------- ## | |
15917 | ||
25fbec5b AK |
15918 | # Be more Bourne compatible |
15919 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15920 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15921 | emulate sh | |
15922 | NULLCMD=: | |
ec6a6fbe | 15923 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15924 | # is contrary to our usage. Disable this feature. |
15925 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15926 | setopt NO_GLOB_SUBST |
15927 | else | |
25fbec5b AK |
15928 | case `(set -o) 2>/dev/null` in |
15929 | *posix*) set -o posix ;; | |
15930 | esac | |
15931 | ||
7a197a62 | 15932 | fi |
25fbec5b AK |
15933 | |
15934 | ||
7a197a62 AK |
15935 | |
15936 | ||
15937 | # PATH needs CR | |
15938 | # Avoid depending upon Character Ranges. | |
15939 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15940 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15941 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15942 | as_cr_digits='0123456789' | |
15943 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15944 | ||
ec6a6fbe AK |
15945 | as_nl=' |
15946 | ' | |
15947 | export as_nl | |
15948 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15949 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15950 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15951 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15952 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15953 | as_echo='printf %s\n' | |
15954 | as_echo_n='printf %s' | |
15955 | else | |
15956 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15957 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15958 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15959 | else |
ec6a6fbe AK |
15960 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15961 | as_echo_n_body='eval | |
15962 | arg=$1; | |
15963 | case $arg in | |
15964 | *"$as_nl"*) | |
15965 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15966 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15967 | esac; | |
15968 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15969 | ' | |
15970 | export as_echo_n_body | |
15971 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15972 | fi |
ec6a6fbe AK |
15973 | export as_echo_body |
15974 | as_echo='sh -c $as_echo_body as_echo' | |
15975 | fi | |
15976 | ||
15977 | # The user is always right. | |
15978 | if test "${PATH_SEPARATOR+set}" != set; then | |
15979 | PATH_SEPARATOR=: | |
15980 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15981 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15982 | PATH_SEPARATOR=';' | |
15983 | } | |
ad6254c5 AK |
15984 | fi |
15985 | ||
15986 | # Support unset when possible. | |
8a2fc586 | 15987 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15988 | as_unset=unset |
15989 | else | |
15990 | as_unset=false | |
15991 | fi | |
8106cdd5 | 15992 | |
ad6254c5 | 15993 | |
7a197a62 AK |
15994 | # IFS |
15995 | # We need space, tab and new line, in precisely that order. Quoting is | |
15996 | # there to prevent editors from complaining about space-tab. | |
15997 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15998 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15999 | IFS=" "" $as_nl" |
16000 | ||
16001 | # Find who we are. Look in the path if we contain no directory separator. | |
16002 | case $0 in | |
16003 | *[\\/]* ) as_myself=$0 ;; | |
16004 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16005 | for as_dir in $PATH | |
16006 | do | |
16007 | IFS=$as_save_IFS | |
16008 | test -z "$as_dir" && as_dir=. | |
16009 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16010 | done | |
16011 | IFS=$as_save_IFS | |
16012 | ||
16013 | ;; | |
16014 | esac | |
16015 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16016 | # in which case we are not to be found in the path. | |
16017 | if test "x$as_myself" = x; then | |
16018 | as_myself=$0 | |
16019 | fi | |
16020 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 16021 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
16022 | { (exit 1); exit 1; } |
16023 | fi | |
16024 | ||
ad6254c5 | 16025 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
16026 | for as_var in ENV MAIL MAILPATH |
16027 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
16028 | done | |
ad6254c5 AK |
16029 | PS1='$ ' |
16030 | PS2='> ' | |
16031 | PS4='+ ' | |
16032 | ||
16033 | # NLS nuisances. | |
ec6a6fbe AK |
16034 | LC_ALL=C |
16035 | export LC_ALL | |
16036 | LANGUAGE=C | |
16037 | export LANGUAGE | |
8106cdd5 | 16038 | |
ad6254c5 | 16039 | # Required to use basename. |
7a197a62 AK |
16040 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16041 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
16042 | as_expr=expr |
16043 | else | |
16044 | as_expr=false | |
16045 | fi | |
8106cdd5 | 16046 | |
7a197a62 | 16047 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
16048 | as_basename=basename |
16049 | else | |
16050 | as_basename=false | |
16051 | fi | |
16052 | ||
16053 | ||
16054 | # Name of the executable. | |
7a197a62 | 16055 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
16056 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16057 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 16058 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16059 | $as_echo X/"$0" | |
7a197a62 AK |
16060 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
16061 | s//\1/ | |
16062 | q | |
16063 | } | |
16064 | /^X\/\(\/\/\)$/{ | |
16065 | s//\1/ | |
16066 | q | |
16067 | } | |
16068 | /^X\/\(\/\).*/{ | |
16069 | s//\1/ | |
16070 | q | |
16071 | } | |
16072 | s/.*/./; q'` | |
ad6254c5 | 16073 | |
7a197a62 AK |
16074 | # CDPATH. |
16075 | $as_unset CDPATH | |
ad6254c5 AK |
16076 | |
16077 | ||
ad6254c5 | 16078 | |
ad6254c5 AK |
16079 | as_lineno_1=$LINENO |
16080 | as_lineno_2=$LINENO | |
ad6254c5 | 16081 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 16082 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 16083 | |
ad6254c5 AK |
16084 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
16085 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
16086 | # line-number line after each line using $LINENO; the second 'sed' |
16087 | # does the real work. The second script uses 'N' to pair each | |
16088 | # line-number line with the line containing $LINENO, and appends | |
16089 | # trailing '-' during substitution so that $LINENO is not a special | |
16090 | # case at line end. | |
ad6254c5 | 16091 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
16092 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
16093 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
16094 | sed -n ' | |
16095 | p | |
16096 | /[$]LINENO/= | |
16097 | ' <$as_myself | | |
ad6254c5 | 16098 | sed ' |
7a197a62 AK |
16099 | s/[$]LINENO.*/&-/ |
16100 | t lineno | |
16101 | b | |
16102 | :lineno | |
ad6254c5 | 16103 | N |
7a197a62 AK |
16104 | :loop |
16105 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 16106 | t loop |
7a197a62 | 16107 | s/-\n.*// |
ad6254c5 | 16108 | ' >$as_me.lineno && |
7a197a62 | 16109 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 16110 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
16111 | { (exit 1); exit 1; }; } |
16112 | ||
16113 | # Don't try to exec as it changes $[0], causing all sort of problems | |
16114 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
16115 | # original and so on. Autoconf is especially sensitive to this). |
16116 | . "./$as_me.lineno" | |
ad6254c5 AK |
16117 | # Exit status is that of the last command. |
16118 | exit | |
16119 | } | |
16120 | ||
16121 | ||
7a197a62 AK |
16122 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16123 | as_dirname=dirname | |
16124 | else | |
16125 | as_dirname=false | |
16126 | fi | |
16127 | ||
16128 | ECHO_C= ECHO_N= ECHO_T= | |
16129 | case `echo -n x` in | |
16130 | -n*) | |
16131 | case `echo 'x\c'` in | |
16132 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16133 | *) ECHO_C='\c';; | |
16134 | esac;; | |
16135 | *) | |
16136 | ECHO_N='-n';; | |
ad6254c5 | 16137 | esac |
7a197a62 AK |
16138 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
16140 | as_expr=expr |
16141 | else | |
16142 | as_expr=false | |
16143 | fi | |
80992638 | 16144 | |
ad6254c5 | 16145 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
16146 | if test -d conf$$.dir; then |
16147 | rm -f conf$$.dir/conf$$.file | |
16148 | else | |
16149 | rm -f conf$$.dir | |
ec6a6fbe AK |
16150 | mkdir conf$$.dir 2>/dev/null |
16151 | fi | |
16152 | if (echo >conf$$.file) 2>/dev/null; then | |
16153 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16154 | as_ln_s='ln -s' | |
16155 | # ... but there are two gotchas: | |
16156 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16157 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16158 | # In both cases, we have to default to `cp -p'. | |
16159 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16160 | as_ln_s='cp -p' | |
16161 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16162 | as_ln_s=ln | |
16163 | else | |
ad6254c5 | 16164 | as_ln_s='cp -p' |
ec6a6fbe | 16165 | fi |
ad6254c5 AK |
16166 | else |
16167 | as_ln_s='cp -p' | |
16168 | fi | |
7a197a62 AK |
16169 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16170 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 16171 | |
ad6254c5 AK |
16172 | if mkdir -p . 2>/dev/null; then |
16173 | as_mkdir_p=: | |
16174 | else | |
8a2fc586 | 16175 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
16176 | as_mkdir_p=false |
16177 | fi | |
16178 | ||
25fbec5b AK |
16179 | if test -x / >/dev/null 2>&1; then |
16180 | as_test_x='test -x' | |
7a197a62 | 16181 | else |
25fbec5b AK |
16182 | if ls -dL / >/dev/null 2>&1; then |
16183 | as_ls_L_option=L | |
16184 | else | |
16185 | as_ls_L_option= | |
16186 | fi | |
16187 | as_test_x=' | |
16188 | eval sh -c '\'' | |
16189 | if test -d "$1"; then | |
ec6a6fbe | 16190 | test -d "$1/."; |
25fbec5b AK |
16191 | else |
16192 | case $1 in | |
ec6a6fbe | 16193 | -*)set "./$1";; |
25fbec5b AK |
16194 | esac; |
16195 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
16196 | ???[sx]*):;;*)false;;esac;fi | |
16197 | '\'' sh | |
16198 | ' | |
7a197a62 | 16199 | fi |
25fbec5b | 16200 | as_executable_p=$as_test_x |
ad6254c5 AK |
16201 | |
16202 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 16203 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16204 | |
16205 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 16206 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
16207 | |
16208 | ||
ad6254c5 AK |
16209 | exec 6>&1 |
16210 | ||
7a197a62 | 16211 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 16212 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
16213 | # values after options handling. |
16214 | ac_log=" | |
ad6254c5 | 16215 | This file was extended by $as_me, which was |
ec6a6fbe | 16216 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
16217 | |
16218 | CONFIG_FILES = $CONFIG_FILES | |
16219 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16220 | CONFIG_LINKS = $CONFIG_LINKS | |
16221 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16222 | $ $0 $@ | |
16223 | ||
7a197a62 AK |
16224 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16225 | " | |
16226 | ||
ad6254c5 AK |
16227 | _ACEOF |
16228 | ||
ec6a6fbe AK |
16229 | case $ac_config_files in *" |
16230 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16231 | esac | |
16232 | ||
16233 | case $ac_config_headers in *" | |
16234 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16235 | esac | |
16236 | ||
16237 | ||
16238 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 16239 | # Files that config.status was made for. |
68f2de6d AK |
16240 | config_files="$ac_config_files" |
16241 | config_headers="$ac_config_headers" | |
ad6254c5 | 16242 | |
7a197a62 | 16243 | _ACEOF |
ad6254c5 | 16244 | |
ec6a6fbe | 16245 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16246 | ac_cs_usage="\ |
16247 | \`$as_me' instantiates files from templates according to the | |
16248 | current configuration. | |
16249 | ||
ec6a6fbe | 16250 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
16251 | |
16252 | -h, --help print this help, then exit | |
25fbec5b | 16253 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
16254 | -q, --quiet, --silent |
16255 | do not print progress messages | |
ad6254c5 AK |
16256 | -d, --debug don't remove temporary files |
16257 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
16258 | --file=FILE[:TEMPLATE] |
16259 | instantiate the configuration file FILE | |
16260 | --header=FILE[:TEMPLATE] | |
16261 | instantiate the configuration header FILE | |
ad6254c5 AK |
16262 | |
16263 | Configuration files: | |
16264 | $config_files | |
16265 | ||
72b2cb61 AK |
16266 | Configuration headers: |
16267 | $config_headers | |
16268 | ||
ad6254c5 | 16269 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 16270 | |
7a197a62 | 16271 | _ACEOF |
ec6a6fbe | 16272 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16273 | ac_cs_version="\\ |
16274 | config.status | |
ec6a6fbe AK |
16275 | configured by $0, generated by GNU Autoconf 2.63, |
16276 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 16277 | |
ec6a6fbe | 16278 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
16279 | This config.status script is free software; the Free Software Foundation |
16280 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
16281 | |
16282 | ac_pwd='$ac_pwd' | |
16283 | srcdir='$srcdir' | |
16284 | INSTALL='$INSTALL' | |
fddafd51 | 16285 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
16286 | AWK='$AWK' |
16287 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
16288 | _ACEOF |
16289 | ||
ec6a6fbe AK |
16290 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16291 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
16292 | ac_need_defaults=: |
16293 | while test $# != 0 | |
16294 | do | |
16295 | case $1 in | |
16296 | --*=*) | |
7a197a62 AK |
16297 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16298 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
16299 | ac_shift=: |
16300 | ;; | |
7a197a62 | 16301 | *) |
ad6254c5 AK |
16302 | ac_option=$1 |
16303 | ac_optarg=$2 | |
16304 | ac_shift=shift | |
16305 | ;; | |
ad6254c5 AK |
16306 | esac |
16307 | ||
16308 | case $ac_option in | |
16309 | # Handling of the options. | |
ad6254c5 AK |
16310 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16311 | ac_cs_recheck=: ;; | |
7a197a62 | 16312 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 16313 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 16314 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
16315 | debug=: ;; |
16316 | --file | --fil | --fi | --f ) | |
16317 | $ac_shift | |
ec6a6fbe AK |
16318 | case $ac_optarg in |
16319 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16320 | esac | |
16321 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
16322 | ac_need_defaults=false;; |
16323 | --header | --heade | --head | --hea ) | |
16324 | $ac_shift | |
ec6a6fbe AK |
16325 | case $ac_optarg in |
16326 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16327 | esac | |
16328 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 16329 | ac_need_defaults=false;; |
7a197a62 AK |
16330 | --he | --h) |
16331 | # Conflict between --help and --header | |
ec6a6fbe | 16332 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
16333 | Try \`$0 --help' for more information." >&2 |
16334 | { (exit 1); exit 1; }; };; | |
16335 | --help | --hel | -h ) | |
ec6a6fbe | 16336 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
16337 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16338 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16339 | ac_cs_silent=: ;; | |
16340 | ||
16341 | # This is an error. | |
ec6a6fbe | 16342 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 16343 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
16344 | { (exit 1); exit 1; }; } ;; |
16345 | ||
7a197a62 AK |
16346 | *) ac_config_targets="$ac_config_targets $1" |
16347 | ac_need_defaults=false ;; | |
ad6254c5 AK |
16348 | |
16349 | esac | |
16350 | shift | |
16351 | done | |
16352 | ||
16353 | ac_configure_extra_args= | |
16354 | ||
16355 | if $ac_cs_silent; then | |
16356 | exec 6>/dev/null | |
16357 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16358 | fi | |
16359 | ||
16360 | _ACEOF | |
ec6a6fbe | 16361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 16362 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
16363 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16364 | shift | |
16365 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16366 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 16367 | export CONFIG_SHELL |
ec6a6fbe | 16368 | exec "\$@" |
ad6254c5 AK |
16369 | fi |
16370 | ||
16371 | _ACEOF | |
ec6a6fbe | 16372 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16373 | exec 5>>config.log |
16374 | { | |
16375 | echo | |
16376 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16377 | ## Running $as_me. ## | |
16378 | _ASBOX | |
ec6a6fbe | 16379 | $as_echo "$ac_log" |
7a197a62 | 16380 | } >&5 |
ad6254c5 | 16381 | |
7a197a62 | 16382 | _ACEOF |
ec6a6fbe | 16383 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 16384 | _ACEOF |
ad6254c5 | 16385 | |
ec6a6fbe | 16386 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16387 | |
16388 | # Handling of arguments. | |
ad6254c5 AK |
16389 | for ac_config_target in $ac_config_targets |
16390 | do | |
7a197a62 AK |
16391 | case $ac_config_target in |
16392 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16393 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16394 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16395 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16396 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16397 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16398 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16399 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16400 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 16401 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
16402 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16403 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16404 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 16405 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 16406 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
16407 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16408 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16409 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16410 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16411 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16412 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 16413 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 16414 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16415 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16416 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16417 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16418 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16419 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16420 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16421 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16422 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 16423 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 16424 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16425 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16426 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16427 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16428 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16429 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16430 | |
ec6a6fbe AK |
16431 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16432 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16433 | { (exit 1); exit 1; }; };; |
80992638 | 16434 | esac |
ad6254c5 AK |
16435 | done |
16436 | ||
7a197a62 | 16437 | |
ad6254c5 AK |
16438 | # If the user did not use the arguments to specify the items to instantiate, |
16439 | # then the envvar interface is used. Set only those that are not. | |
16440 | # We use the long form for the default assignment because of an extremely | |
16441 | # bizarre bug on SunOS 4.1.3. | |
16442 | if $ac_need_defaults; then | |
16443 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16444 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16445 | fi |
16446 | ||
16447 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16448 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16449 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16450 | # Hook for its removal unless debugging. |
16451 | # Note that there is a small window in which the directory will not be cleaned: | |
16452 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16453 | $debug || |
16454 | { | |
7a197a62 AK |
16455 | tmp= |
16456 | trap 'exit_status=$? | |
16457 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16458 | ' 0 | |
ad6254c5 AK |
16459 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16460 | } | |
ad6254c5 AK |
16461 | # Create a (secure) tmp directory for tmp files. |
16462 | ||
16463 | { | |
7a197a62 | 16464 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16465 | test -n "$tmp" && test -d "$tmp" |
16466 | } || | |
16467 | { | |
7a197a62 AK |
16468 | tmp=./conf$$-$RANDOM |
16469 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16470 | } || |
16471 | { | |
ec6a6fbe | 16472 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16473 | { (exit 1); exit 1; } |
16474 | } | |
16475 | ||
ec6a6fbe AK |
16476 | # Set up the scripts for CONFIG_FILES section. |
16477 | # No need to generate them if there are no CONFIG_FILES. | |
16478 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16479 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16480 | |
68f2de6d | 16481 | |
ec6a6fbe AK |
16482 | ac_cr='\r' |
16483 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16484 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16485 | ac_cs_awk_cr='\\r' | |
16486 | else | |
16487 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16488 | fi |
7a197a62 | 16489 | |
ec6a6fbe | 16490 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16491 | _ACEOF |
7a197a62 | 16492 | |
8106cdd5 | 16493 | |
ec6a6fbe AK |
16494 | { |
16495 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16496 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16497 | echo "_ACEOF" | |
16498 | } >conf$$subs.sh || | |
16499 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16500 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16501 | { (exit 1); exit 1; }; } | |
16502 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16503 | ac_delim='%!_!# ' |
16504 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16505 | . ./conf$$subs.sh || |
16506 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16507 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16508 | { (exit 1); exit 1; }; } | |
16509 | ||
16510 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16511 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16512 | break |
16513 | elif $ac_last_try; then | |
ec6a6fbe AK |
16514 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16515 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16516 | { (exit 1); exit 1; }; } |
16517 | else | |
16518 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16519 | fi | |
16520 | done | |
ec6a6fbe AK |
16521 | rm -f conf$$subs.sh |
16522 | ||
16523 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16524 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16525 | _ACEOF | |
16526 | sed -n ' | |
16527 | h | |
16528 | s/^/S["/; s/!.*/"]=/ | |
16529 | p | |
16530 | g | |
16531 | s/^[^!]*!// | |
16532 | :repl | |
16533 | t repl | |
16534 | s/'"$ac_delim"'$// | |
16535 | t delim | |
16536 | :nl | |
16537 | h | |
16538 | s/\(.\{148\}\).*/\1/ | |
16539 | t more1 | |
16540 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16541 | p | |
16542 | n | |
16543 | b repl | |
16544 | :more1 | |
16545 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16546 | p | |
16547 | g | |
16548 | s/.\{148\}// | |
16549 | t nl | |
16550 | :delim | |
16551 | h | |
16552 | s/\(.\{148\}\).*/\1/ | |
16553 | t more2 | |
16554 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16555 | p | |
16556 | b | |
16557 | :more2 | |
16558 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16559 | p | |
16560 | g | |
16561 | s/.\{148\}// | |
16562 | t delim | |
16563 | ' <conf$$subs.awk | sed ' | |
16564 | /^[^""]/{ | |
16565 | N | |
16566 | s/\n// | |
16567 | } | |
16568 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16569 | rm -f conf$$subs.awk | |
16570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16571 | _ACAWK | |
16572 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16573 | for (key in S) S_is_set[key] = 1 | |
16574 | FS = "\a" | |
7a197a62 | 16575 | |
ec6a6fbe AK |
16576 | } |
16577 | { | |
16578 | line = $ 0 | |
16579 | nfields = split(line, field, "@") | |
16580 | substed = 0 | |
16581 | len = length(field[1]) | |
16582 | for (i = 2; i < nfields; i++) { | |
16583 | key = field[i] | |
16584 | keylen = length(key) | |
16585 | if (S_is_set[key]) { | |
16586 | value = S[key] | |
16587 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16588 | len += length(value) + length(field[++i]) | |
16589 | substed = 1 | |
16590 | } else | |
16591 | len += 1 + keylen | |
16592 | } | |
16593 | ||
16594 | print line | |
16595 | } | |
fddafd51 | 16596 | |
ec6a6fbe | 16597 | _ACAWK |
1995c9ff | 16598 | _ACEOF |
ec6a6fbe AK |
16599 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16600 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16601 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16602 | else | |
16603 | cat | |
16604 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16605 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16606 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16607 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16608 | _ACEOF |
16609 | ||
7a197a62 AK |
16610 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16611 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16612 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16613 | # (actually we leave an empty line to preserve line numbers). | |
16614 | if test "x$srcdir" = x.; then | |
16615 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16616 | s/:*\$(srcdir):*/:/ | |
16617 | s/:*\${srcdir}:*/:/ | |
16618 | s/:*@srcdir@:*/:/ | |
16619 | s/^\([^=]*=[ ]*\):*/\1/ | |
16620 | s/:*$// | |
16621 | s/^[^=]*=[ ]*$// | |
16622 | }' | |
16623 | fi | |
16624 | ||
ec6a6fbe | 16625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16626 | fi # test -n "$CONFIG_FILES" |
16627 | ||
ec6a6fbe AK |
16628 | # Set up the scripts for CONFIG_HEADERS section. |
16629 | # No need to generate them if there are no CONFIG_HEADERS. | |
16630 | # This happens for instance with `./config.status Makefile'. | |
16631 | if test -n "$CONFIG_HEADERS"; then | |
16632 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16633 | BEGIN { | |
16634 | _ACEOF | |
16635 | ||
16636 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16637 | # here-document in config.status, that substitutes the proper values into | |
16638 | # config.h.in to produce config.h. | |
16639 | ||
16640 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16641 | # handling of long lines. | |
16642 | ac_delim='%!_!# ' | |
16643 | for ac_last_try in false false :; do | |
16644 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16645 | if test -z "$ac_t"; then | |
16646 | break | |
16647 | elif $ac_last_try; then | |
16648 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16649 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16650 | { (exit 1); exit 1; }; } | |
16651 | else | |
16652 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16653 | fi | |
16654 | done | |
16655 | ||
16656 | # For the awk script, D is an array of macro values keyed by name, | |
16657 | # likewise P contains macro parameters if any. Preserve backslash | |
16658 | # newline sequences. | |
16659 | ||
16660 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16661 | sed -n ' | |
16662 | s/.\{148\}/&'"$ac_delim"'/g | |
16663 | t rset | |
16664 | :rset | |
16665 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16666 | t def | |
16667 | d | |
16668 | :def | |
16669 | s/\\$// | |
16670 | t bsnl | |
16671 | s/["\\]/\\&/g | |
16672 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16673 | D["\1"]=" \3"/p | |
16674 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16675 | d | |
16676 | :bsnl | |
16677 | s/["\\]/\\&/g | |
16678 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16679 | D["\1"]=" \3\\\\\\n"\\/p | |
16680 | t cont | |
16681 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16682 | t cont | |
16683 | d | |
16684 | :cont | |
16685 | n | |
16686 | s/.\{148\}/&'"$ac_delim"'/g | |
16687 | t clear | |
16688 | :clear | |
16689 | s/\\$// | |
16690 | t bsnlc | |
16691 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16692 | d | |
16693 | :bsnlc | |
16694 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16695 | b cont | |
16696 | ' <confdefs.h | sed ' | |
16697 | s/'"$ac_delim"'/"\\\ | |
16698 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16699 | ||
16700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16701 | for (key in D) D_is_set[key] = 1 | |
16702 | FS = "\a" | |
16703 | } | |
16704 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16705 | line = \$ 0 | |
16706 | split(line, arg, " ") | |
16707 | if (arg[1] == "#") { | |
16708 | defundef = arg[2] | |
16709 | mac1 = arg[3] | |
16710 | } else { | |
16711 | defundef = substr(arg[1], 2) | |
16712 | mac1 = arg[2] | |
16713 | } | |
16714 | split(mac1, mac2, "(") #) | |
16715 | macro = mac2[1] | |
16716 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16717 | if (D_is_set[macro]) { | |
16718 | # Preserve the white space surrounding the "#". | |
16719 | print prefix "define", macro P[macro] D[macro] | |
16720 | next | |
16721 | } else { | |
16722 | # Replace #undef with comments. This is necessary, for example, | |
16723 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16724 | # on some systems where configure will not decide to define it. | |
16725 | if (defundef == "undef") { | |
16726 | print "/*", prefix defundef, macro, "*/" | |
16727 | next | |
16728 | } | |
16729 | } | |
16730 | } | |
16731 | { print } | |
16732 | _ACAWK | |
16733 | _ACEOF | |
16734 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16735 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16736 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16737 | { (exit 1); exit 1; }; } | |
16738 | fi # test -n "$CONFIG_HEADERS" | |
16739 | ||
7a197a62 | 16740 | |
ec6a6fbe AK |
16741 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16742 | shift | |
16743 | for ac_tag | |
7a197a62 AK |
16744 | do |
16745 | case $ac_tag in | |
16746 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16747 | esac | |
16748 | case $ac_mode$ac_tag in | |
16749 | :[FHL]*:*);; | |
ec6a6fbe AK |
16750 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16751 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16752 | { (exit 1); exit 1; }; };; |
16753 | :[FH]-) ac_tag=-:-;; | |
16754 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16755 | esac | |
16756 | ac_save_IFS=$IFS | |
16757 | IFS=: | |
16758 | set x $ac_tag | |
16759 | IFS=$ac_save_IFS | |
16760 | shift | |
16761 | ac_file=$1 | |
16762 | shift | |
16763 | ||
16764 | case $ac_mode in | |
16765 | :L) ac_source=$1;; | |
16766 | :[FH]) | |
16767 | ac_file_inputs= | |
16768 | for ac_f | |
16769 | do | |
16770 | case $ac_f in | |
16771 | -) ac_f="$tmp/stdin";; | |
16772 | *) # Look for the file first in the build tree, then in the source tree | |
16773 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16774 | # because $ac_f cannot contain `:'. | |
16775 | test -f "$ac_f" || | |
16776 | case $ac_f in | |
16777 | [\\/$]*) false;; | |
16778 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16779 | esac || | |
ec6a6fbe AK |
16780 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16781 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16782 | { (exit 1); exit 1; }; };; |
16783 | esac | |
ec6a6fbe AK |
16784 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16785 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16786 | done |
16787 | ||
16788 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16789 | # use $as_me), people would be surprised to read: | |
16790 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16791 | configure_input='Generated from '` |
16792 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16793 | `' by configure.' | |
7a197a62 AK |
16794 | if test x"$ac_file" != x-; then |
16795 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16796 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16797 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16798 | fi |
ec6a6fbe AK |
16799 | # Neutralize special characters interpreted by sed in replacement strings. |
16800 | case $configure_input in #( | |
16801 | *\&* | *\|* | *\\* ) | |
16802 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16803 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16804 | *) ac_sed_conf_input=$configure_input;; | |
16805 | esac | |
7a197a62 AK |
16806 | |
16807 | case $ac_tag in | |
ec6a6fbe AK |
16808 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16809 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16810 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16811 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16812 | esac |
16813 | ;; | |
80992638 | 16814 | esac |
8106cdd5 | 16815 | |
7a197a62 | 16816 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16817 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16818 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16819 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16820 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16821 | $as_echo X"$ac_file" | |
7a197a62 AK |
16822 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16823 | s//\1/ | |
16824 | q | |
16825 | } | |
16826 | /^X\(\/\/\)[^/].*/{ | |
16827 | s//\1/ | |
16828 | q | |
16829 | } | |
16830 | /^X\(\/\/\)$/{ | |
16831 | s//\1/ | |
16832 | q | |
16833 | } | |
16834 | /^X\(\/\).*/{ | |
16835 | s//\1/ | |
16836 | q | |
16837 | } | |
16838 | s/.*/./; q'` | |
16839 | { as_dir="$ac_dir" | |
16840 | case $as_dir in #( | |
16841 | -*) as_dir=./$as_dir;; | |
16842 | esac | |
16843 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16844 | as_dirs= |
7a197a62 AK |
16845 | while :; do |
16846 | case $as_dir in #( | |
ec6a6fbe | 16847 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16848 | *) as_qdir=$as_dir;; |
16849 | esac | |
16850 | as_dirs="'$as_qdir' $as_dirs" | |
16851 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16852 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16853 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16854 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16855 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16856 | $as_echo X"$as_dir" | |
7a197a62 AK |
16857 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16858 | s//\1/ | |
16859 | q | |
16860 | } | |
16861 | /^X\(\/\/\)[^/].*/{ | |
16862 | s//\1/ | |
16863 | q | |
16864 | } | |
16865 | /^X\(\/\/\)$/{ | |
16866 | s//\1/ | |
16867 | q | |
16868 | } | |
16869 | /^X\(\/\).*/{ | |
16870 | s//\1/ | |
16871 | q | |
16872 | } | |
16873 | s/.*/./; q'` | |
16874 | test -d "$as_dir" && break | |
ad6254c5 | 16875 | done |
7a197a62 | 16876 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16877 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16878 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16879 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16880 | ac_builddir=. |
16881 | ||
7a197a62 AK |
16882 | case "$ac_dir" in |
16883 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16884 | *) | |
ec6a6fbe | 16885 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16886 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16887 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16888 | case $ac_top_builddir_sub in |
16889 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16890 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16891 | esac ;; | |
16892 | esac | |
16893 | ac_abs_top_builddir=$ac_pwd | |
16894 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16895 | # for backward compatibility: | |
16896 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16897 | |
16898 | case $srcdir in | |
7a197a62 | 16899 | .) # We are building in place. |
ad6254c5 | 16900 | ac_srcdir=. |
7a197a62 AK |
16901 | ac_top_srcdir=$ac_top_builddir_sub |
16902 | ac_abs_top_srcdir=$ac_pwd ;; | |
16903 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16904 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16905 | ac_top_srcdir=$srcdir |
16906 | ac_abs_top_srcdir=$srcdir ;; | |
16907 | *) # Relative name. | |
16908 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16909 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16910 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16911 | esac |
7a197a62 | 16912 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16913 | |
ad6254c5 | 16914 | |
7a197a62 AK |
16915 | case $ac_mode in |
16916 | :F) | |
16917 | # | |
16918 | # CONFIG_FILE | |
16919 | # | |
ad6254c5 AK |
16920 | |
16921 | case $INSTALL in | |
16922 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16923 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16924 | esac |
fddafd51 ZK |
16925 | ac_MKDIR_P=$MKDIR_P |
16926 | case $MKDIR_P in | |
16927 | [\\/$]* | ?:[\\/]* ) ;; | |
16928 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16929 | esac | |
7a197a62 | 16930 | _ACEOF |
795ca3e5 | 16931 | |
ec6a6fbe | 16932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16933 | # If the template does not know about datarootdir, expand it. |
16934 | # FIXME: This hack should be removed a few years after 2.60. | |
16935 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16936 | ||
ec6a6fbe AK |
16937 | ac_sed_dataroot=' |
16938 | /datarootdir/ { | |
7a197a62 AK |
16939 | p |
16940 | q | |
16941 | } | |
16942 | /@datadir@/p | |
16943 | /@docdir@/p | |
16944 | /@infodir@/p | |
16945 | /@localedir@/p | |
16946 | /@mandir@/p | |
ec6a6fbe AK |
16947 | ' |
16948 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16949 | *datarootdir*) ac_datarootdir_seen=yes;; |
16950 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16951 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16952 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16953 | _ACEOF |
ec6a6fbe | 16954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16955 | ac_datarootdir_hack=' |
16956 | s&@datadir@&$datadir&g | |
16957 | s&@docdir@&$docdir&g | |
16958 | s&@infodir@&$infodir&g | |
16959 | s&@localedir@&$localedir&g | |
16960 | s&@mandir@&$mandir&g | |
16961 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16962 | esac | |
16963 | _ACEOF | |
16964 | ||
16965 | # Neutralize VPATH when `$srcdir' = `.'. | |
16966 | # Shell code in configure.ac might set extrasub. | |
16967 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16969 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16970 | $extrasub |
16971 | _ACEOF | |
ec6a6fbe | 16972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16973 | :t |
16974 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16975 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16976 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16977 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16978 | s&@srcdir@&$ac_srcdir&;t t |
16979 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16980 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16981 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16982 | s&@builddir@&$ac_builddir&;t t | |
16983 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16984 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16985 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16986 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16987 | $ac_datarootdir_hack |
ec6a6fbe AK |
16988 | " |
16989 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16990 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16991 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16992 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16993 | |
16994 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16995 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16996 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16998 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16999 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
17000 | which seems to be undefined. Please make sure it is defined." >&2;} |
17001 | ||
17002 | rm -f "$tmp/stdin" | |
72b2cb61 | 17003 | case $ac_file in |
ec6a6fbe AK |
17004 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
17005 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
17006 | esac \ | |
17007 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
17008 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
17009 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
17010 | ;; |
17011 | :H) | |
17012 | # | |
17013 | # CONFIG_HEADER | |
17014 | # | |
72b2cb61 | 17015 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
17016 | { |
17017 | $as_echo "/* $configure_input */" \ | |
17018 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
17019 | } >"$tmp/config.h" \ | |
17020 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
17021 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
17022 | { (exit 1); exit 1; }; } | |
17023 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
17024 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
17025 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 17026 | else |
ec6a6fbe AK |
17027 | rm -f "$ac_file" |
17028 | mv "$tmp/config.h" "$ac_file" \ | |
17029 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
17030 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
17031 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
17032 | fi |
17033 | else | |
ec6a6fbe AK |
17034 | $as_echo "/* $configure_input */" \ |
17035 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
17036 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
17037 | $as_echo "$as_me: error: could not create -" >&2;} | |
17038 | { (exit 1); exit 1; }; } | |
72b2cb61 | 17039 | fi |
7a197a62 AK |
17040 | ;; |
17041 | ||
17042 | ||
17043 | esac | |
17044 | ||
17045 | done # for ac_tag | |
795ca3e5 | 17046 | |
795ca3e5 | 17047 | |
ad6254c5 AK |
17048 | { (exit 0); exit 0; } |
17049 | _ACEOF | |
795ca3e5 | 17050 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
17051 | ac_clean_files=$ac_clean_files_save |
17052 | ||
ec6a6fbe AK |
17053 | test $ac_write_fail = 0 || |
17054 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
17055 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
17056 | { (exit 1); exit 1; }; } | |
17057 | ||
ad6254c5 AK |
17058 | |
17059 | # configure is writing to config.log, and then calls config.status. | |
17060 | # config.status does its own redirection, appending to config.log. | |
17061 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17062 | # by configure, so config.status won't be able to write to it; its | |
17063 | # output is simply discarded. So we exec the FD to /dev/null, | |
17064 | # effectively closing config.log, so it can be properly (re)opened and | |
17065 | # appended to by config.status. When coming back to configure, we | |
17066 | # need to make the FD available again. | |
17067 | if test "$no_create" != yes; then | |
17068 | ac_cs_success=: | |
17069 | ac_config_status_args= | |
17070 | test "$silent" = yes && | |
17071 | ac_config_status_args="$ac_config_status_args --quiet" | |
17072 | exec 5>/dev/null | |
17073 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17074 | exec 5>>config.log | |
17075 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17076 | # would make configure fail if this is the last instruction. | |
17077 | $ac_cs_success || { (exit 1); exit 1; } | |
17078 | fi | |
ec6a6fbe AK |
17079 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
17080 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17081 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
17082 | fi | |
795ca3e5 | 17083 | |
2dc95e1c AK |
17084 | |
17085 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
17086 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
17087 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 17088 | fi |