]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
649 | LIB_PTHREAD | |
a5f46f6a | 650 | UDEV_RULES |
ec6a6fbe AK |
651 | STATIC_LINK |
652 | STATICDIR | |
653 | SNAPSHOTS | |
654 | POOL | |
655 | PKGCONFIG | |
656 | OWNER | |
657 | MIRRORS | |
658 | LVM_RELEASE_DATE | |
659 | LVM_RELEASE | |
660 | LVM_PATCHLEVEL | |
661 | LVM_MINOR | |
662 | LVM_MAJOR | |
bf456146 | 663 | LVM_LIBAPI |
ec6a6fbe | 664 | LVM_VERSION |
ec6a6fbe AK |
665 | LVM1_FALLBACK |
666 | LVM1 | |
667 | LOCALEDIR | |
668 | LIB_SUFFIX | |
669 | LDDEPS | |
670 | JOBS | |
671 | INTL_PACKAGE | |
672 | INTL | |
673 | HAVE_SELINUX | |
674 | HAVE_REALTIME | |
675 | HAVE_LIBDL | |
676 | GROUP | |
677 | FSADM | |
678 | DM_LIB_PATCHLEVEL | |
679 | DM_LIB_VERSION | |
680 | DM_IOCTLS | |
681 | DM_DEVICE_UID | |
682 | DM_DEVICE_MODE | |
683 | DM_DEVICE_GID | |
684 | DM_COMPAT | |
685 | DMEVENTD | |
686 | DEVMAPPER | |
687 | DEBUG | |
688 | COPTIMISE_FLAG | |
e2997b73 | 689 | CONFDIR |
ec6a6fbe AK |
690 | CMDLIB |
691 | CLVMD | |
692 | CLUSTER | |
693 | CLDWHOLEARCHIVE | |
694 | CLDNOWHOLEARCHIVE | |
695 | CLDFLAGS | |
696 | BUILD_DMEVENTD | |
572fefeb | 697 | APPLIB |
ec6a6fbe AK |
698 | MODPROBE_CMD |
699 | MSGFMT | |
700 | LVM2CMD_LIB | |
572fefeb | 701 | LVM2APP_LIB |
ec6a6fbe AK |
702 | GENHTML |
703 | LCOV | |
e2997b73 AK |
704 | CPG_LIBS |
705 | CPG_CFLAGS | |
706 | CONFDB_LIBS | |
707 | CONFDB_CFLAGS | |
708 | QUORUM_LIBS | |
709 | QUORUM_CFLAGS | |
710 | PKG_CONFIG | |
ec6a6fbe AK |
711 | POW_LIB |
712 | LIBOBJS | |
713 | ALLOCA | |
714 | CSCOPE_CMD | |
715 | CFLOW_CMD | |
716 | RANLIB | |
717 | MKDIR_P | |
718 | SET_MAKE | |
719 | LN_S | |
720 | INSTALL_DATA | |
721 | INSTALL_SCRIPT | |
722 | INSTALL_PROGRAM | |
723 | EGREP | |
724 | GREP | |
725 | CPP | |
726 | OBJEXT | |
727 | EXEEXT | |
728 | ac_ct_CC | |
729 | CPPFLAGS | |
730 | LDFLAGS | |
731 | CFLAGS | |
732 | CC | |
733 | AWK | |
734 | SED | |
735 | target_os | |
736 | target_vendor | |
737 | target_cpu | |
738 | target | |
739 | host_os | |
740 | host_vendor | |
741 | host_cpu | |
742 | host | |
743 | build_os | |
744 | build_vendor | |
745 | build_cpu | |
746 | build | |
747 | target_alias | |
748 | host_alias | |
749 | build_alias | |
750 | LIBS | |
751 | ECHO_T | |
752 | ECHO_N | |
753 | ECHO_C | |
754 | DEFS | |
755 | mandir | |
756 | localedir | |
757 | libdir | |
758 | psdir | |
759 | pdfdir | |
760 | dvidir | |
761 | htmldir | |
762 | infodir | |
763 | docdir | |
764 | oldincludedir | |
765 | includedir | |
766 | localstatedir | |
767 | sharedstatedir | |
768 | sysconfdir | |
769 | datadir | |
770 | datarootdir | |
771 | libexecdir | |
772 | sbindir | |
773 | bindir | |
774 | program_transform_name | |
775 | prefix | |
776 | exec_prefix | |
777 | PACKAGE_BUGREPORT | |
778 | PACKAGE_STRING | |
779 | PACKAGE_VERSION | |
780 | PACKAGE_TARNAME | |
781 | PACKAGE_NAME | |
782 | PATH_SEPARATOR | |
783 | SHELL' | |
ad6254c5 | 784 | ac_subst_files='' |
ec6a6fbe AK |
785 | ac_user_opts=' |
786 | enable_option_checking | |
787 | enable_static_link | |
788 | with_user | |
789 | with_group | |
790 | with_device_uid | |
791 | with_device_gid | |
792 | with_device_mode | |
793 | enable_lvm1_fallback | |
794 | with_lvm1 | |
795 | with_pool | |
796 | with_cluster | |
797 | with_snapshots | |
798 | with_mirrors | |
799 | enable_readline | |
800 | enable_realtime | |
801 | with_clvmd | |
802 | enable_debug | |
803 | with_optimisation | |
804 | enable_profiling | |
805 | enable_devmapper | |
a5f46f6a AK |
806 | enable_udev_sync |
807 | enable_udev_rules | |
ec6a6fbe AK |
808 | enable_compat |
809 | enable_ioctl | |
810 | enable_o_direct | |
572fefeb | 811 | enable_applib |
ec6a6fbe AK |
812 | enable_cmdlib |
813 | enable_pkgconfig | |
814 | enable_fsadm | |
815 | enable_dmeventd | |
816 | enable_selinux | |
817 | enable_nls | |
818 | with_localedir | |
819 | with_confdir | |
820 | with_staticdir | |
821 | with_usrlibdir | |
822 | with_usrsbindir | |
a5f46f6a | 823 | with_udev_prefix |
78ce7acc | 824 | with_udevdir |
ec6a6fbe AK |
825 | with_dmeventd_pidfile |
826 | with_dmeventd_path | |
827 | with_interface | |
828 | ' | |
7a197a62 AK |
829 | ac_precious_vars='build_alias |
830 | host_alias | |
831 | target_alias | |
832 | CC | |
833 | CFLAGS | |
834 | LDFLAGS | |
25fbec5b | 835 | LIBS |
7a197a62 | 836 | CPPFLAGS |
e2997b73 AK |
837 | CPP |
838 | PKG_CONFIG | |
839 | QUORUM_CFLAGS | |
840 | QUORUM_LIBS | |
841 | CONFDB_CFLAGS | |
842 | CONFDB_LIBS | |
843 | CPG_CFLAGS | |
844 | CPG_LIBS' | |
7a197a62 | 845 | |
795ca3e5 AK |
846 | |
847 | # Initialize some variables set by options. | |
ad6254c5 AK |
848 | ac_init_help= |
849 | ac_init_version=false | |
ec6a6fbe AK |
850 | ac_unrecognized_opts= |
851 | ac_unrecognized_sep= | |
795ca3e5 AK |
852 | # The variables have the same names as the options, with |
853 | # dashes changed to underlines. | |
ad6254c5 | 854 | cache_file=/dev/null |
795ca3e5 | 855 | exec_prefix=NONE |
795ca3e5 | 856 | no_create= |
795ca3e5 AK |
857 | no_recursion= |
858 | prefix=NONE | |
859 | program_prefix=NONE | |
860 | program_suffix=NONE | |
861 | program_transform_name=s,x,x, | |
862 | silent= | |
863 | site= | |
864 | srcdir= | |
795ca3e5 AK |
865 | verbose= |
866 | x_includes=NONE | |
867 | x_libraries=NONE | |
ad6254c5 AK |
868 | |
869 | # Installation directory options. | |
870 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
871 | # and all the variables that are supposed to be based on exec_prefix | |
872 | # by default will actually change. | |
873 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 874 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
875 | bindir='${exec_prefix}/bin' |
876 | sbindir='${exec_prefix}/sbin' | |
877 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
878 | datarootdir='${prefix}/share' |
879 | datadir='${datarootdir}' | |
795ca3e5 AK |
880 | sysconfdir='${prefix}/etc' |
881 | sharedstatedir='${prefix}/com' | |
882 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
883 | includedir='${prefix}/include' |
884 | oldincludedir='/usr/include' | |
7a197a62 AK |
885 | docdir='${datarootdir}/doc/${PACKAGE}' |
886 | infodir='${datarootdir}/info' | |
887 | htmldir='${docdir}' | |
888 | dvidir='${docdir}' | |
889 | pdfdir='${docdir}' | |
890 | psdir='${docdir}' | |
891 | libdir='${exec_prefix}/lib' | |
892 | localedir='${datarootdir}/locale' | |
893 | mandir='${datarootdir}/man' | |
795ca3e5 | 894 | |
795ca3e5 | 895 | ac_prev= |
7a197a62 | 896 | ac_dashdash= |
795ca3e5 AK |
897 | for ac_option |
898 | do | |
795ca3e5 AK |
899 | # If the previous option needs an argument, assign it. |
900 | if test -n "$ac_prev"; then | |
7a197a62 | 901 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
902 | ac_prev= |
903 | continue | |
904 | fi | |
905 | ||
7a197a62 AK |
906 | case $ac_option in |
907 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
908 | *) ac_optarg=yes ;; | |
909 | esac | |
795ca3e5 AK |
910 | |
911 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
912 | ||
7a197a62 AK |
913 | case $ac_dashdash$ac_option in |
914 | --) | |
915 | ac_dashdash=yes ;; | |
795ca3e5 AK |
916 | |
917 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
918 | ac_prev=bindir ;; | |
919 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 920 | bindir=$ac_optarg ;; |
795ca3e5 AK |
921 | |
922 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 923 | ac_prev=build_alias ;; |
795ca3e5 | 924 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 925 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
926 | |
927 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
928 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
929 | ac_prev=cache_file ;; | |
930 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
931 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
932 | cache_file=$ac_optarg ;; |
933 | ||
934 | --config-cache | -C) | |
935 | cache_file=config.cache ;; | |
795ca3e5 | 936 | |
7a197a62 | 937 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 938 | ac_prev=datadir ;; |
7a197a62 | 939 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 940 | datadir=$ac_optarg ;; |
795ca3e5 | 941 | |
7a197a62 AK |
942 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
943 | | --dataroo | --dataro | --datar) | |
944 | ac_prev=datarootdir ;; | |
945 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
946 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
947 | datarootdir=$ac_optarg ;; | |
948 | ||
795ca3e5 | 949 | -disable-* | --disable-*) |
ec6a6fbe | 950 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 951 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
953 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 954 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
955 | ac_useropt_orig=$ac_useropt |
956 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
957 | case $ac_user_opts in | |
958 | *" | |
959 | "enable_$ac_useropt" | |
960 | "*) ;; | |
961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
962 | ac_unrecognized_sep=', ';; | |
963 | esac | |
964 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
965 | |
966 | -docdir | --docdir | --docdi | --doc | --do) | |
967 | ac_prev=docdir ;; | |
968 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
969 | docdir=$ac_optarg ;; | |
970 | ||
971 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
972 | ac_prev=dvidir ;; | |
973 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
974 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
975 | |
976 | -enable-* | --enable-*) | |
ec6a6fbe | 977 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 978 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
979 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
980 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 981 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
982 | ac_useropt_orig=$ac_useropt |
983 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
984 | case $ac_user_opts in | |
985 | *" | |
986 | "enable_$ac_useropt" | |
987 | "*) ;; | |
988 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
989 | ac_unrecognized_sep=', ';; | |
990 | esac | |
991 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
992 | |
993 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
994 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
995 | | --exec | --exe | --ex) | |
996 | ac_prev=exec_prefix ;; | |
997 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
998 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
999 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1000 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1001 | |
1002 | -gas | --gas | --ga | --g) | |
1003 | # Obsolete; use --with-gas. | |
1004 | with_gas=yes ;; | |
1005 | ||
ad6254c5 AK |
1006 | -help | --help | --hel | --he | -h) |
1007 | ac_init_help=long ;; | |
1008 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1009 | ac_init_help=recursive ;; | |
1010 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1011 | ac_init_help=short ;; | |
795ca3e5 AK |
1012 | |
1013 | -host | --host | --hos | --ho) | |
ad6254c5 | 1014 | ac_prev=host_alias ;; |
795ca3e5 | 1015 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1016 | host_alias=$ac_optarg ;; |
795ca3e5 | 1017 | |
7a197a62 AK |
1018 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1019 | ac_prev=htmldir ;; | |
1020 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1021 | | --ht=*) | |
1022 | htmldir=$ac_optarg ;; | |
1023 | ||
795ca3e5 AK |
1024 | -includedir | --includedir | --includedi | --included | --include \ |
1025 | | --includ | --inclu | --incl | --inc) | |
1026 | ac_prev=includedir ;; | |
1027 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1028 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1029 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1030 | |
1031 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1032 | ac_prev=infodir ;; | |
1033 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1034 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1035 | |
1036 | -libdir | --libdir | --libdi | --libd) | |
1037 | ac_prev=libdir ;; | |
1038 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1039 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1040 | |
1041 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1042 | | --libexe | --libex | --libe) | |
1043 | ac_prev=libexecdir ;; | |
1044 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1045 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1046 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1047 | |
7a197a62 AK |
1048 | -localedir | --localedir | --localedi | --localed | --locale) |
1049 | ac_prev=localedir ;; | |
1050 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1051 | localedir=$ac_optarg ;; | |
1052 | ||
795ca3e5 | 1053 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1054 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1055 | ac_prev=localstatedir ;; |
1056 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1057 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1058 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1059 | |
1060 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1061 | ac_prev=mandir ;; | |
1062 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1063 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1064 | |
1065 | -nfp | --nfp | --nf) | |
1066 | # Obsolete; use --without-fp. | |
1067 | with_fp=no ;; | |
1068 | ||
1069 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1070 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1071 | no_create=yes ;; |
1072 | ||
1073 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1074 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1075 | no_recursion=yes ;; | |
1076 | ||
1077 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1078 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1079 | | --oldin | --oldi | --old | --ol | --o) | |
1080 | ac_prev=oldincludedir ;; | |
1081 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1082 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1083 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1084 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1085 | |
1086 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1087 | ac_prev=prefix ;; | |
1088 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1089 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1090 | |
1091 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1092 | | --program-pre | --program-pr | --program-p) | |
1093 | ac_prev=program_prefix ;; | |
1094 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1095 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1096 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1097 | |
1098 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1099 | | --program-suf | --program-su | --program-s) | |
1100 | ac_prev=program_suffix ;; | |
1101 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1102 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1103 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1104 | |
1105 | -program-transform-name | --program-transform-name \ | |
1106 | | --program-transform-nam | --program-transform-na \ | |
1107 | | --program-transform-n | --program-transform- \ | |
1108 | | --program-transform | --program-transfor \ | |
1109 | | --program-transfo | --program-transf \ | |
1110 | | --program-trans | --program-tran \ | |
1111 | | --progr-tra | --program-tr | --program-t) | |
1112 | ac_prev=program_transform_name ;; | |
1113 | -program-transform-name=* | --program-transform-name=* \ | |
1114 | | --program-transform-nam=* | --program-transform-na=* \ | |
1115 | | --program-transform-n=* | --program-transform-=* \ | |
1116 | | --program-transform=* | --program-transfor=* \ | |
1117 | | --program-transfo=* | --program-transf=* \ | |
1118 | | --program-trans=* | --program-tran=* \ | |
1119 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1120 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1121 | |
7a197a62 AK |
1122 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1123 | ac_prev=pdfdir ;; | |
1124 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1125 | pdfdir=$ac_optarg ;; | |
1126 | ||
1127 | -psdir | --psdir | --psdi | --psd | --ps) | |
1128 | ac_prev=psdir ;; | |
1129 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1130 | psdir=$ac_optarg ;; | |
1131 | ||
795ca3e5 AK |
1132 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1133 | | -silent | --silent | --silen | --sile | --sil) | |
1134 | silent=yes ;; | |
1135 | ||
1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
ad6254c5 | 1140 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1141 | |
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
ad6254c5 | 1151 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1152 | |
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1156 | site=$ac_optarg ;; |
795ca3e5 AK |
1157 | |
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1161 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1162 | |
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1168 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1169 | |
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1171 | ac_prev=target_alias ;; |
795ca3e5 | 1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1173 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1174 | |
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
ad6254c5 AK |
1178 | -version | --version | --versio | --versi | --vers | -V) |
1179 | ac_init_version=: ;; | |
795ca3e5 AK |
1180 | |
1181 | -with-* | --with-*) | |
ec6a6fbe | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1183 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1185 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1186 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1187 | ac_useropt_orig=$ac_useropt |
1188 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1189 | case $ac_user_opts in | |
1190 | *" | |
1191 | "with_$ac_useropt" | |
1192 | "*) ;; | |
1193 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1194 | ac_unrecognized_sep=', ';; | |
1195 | esac | |
1196 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1197 | |
1198 | -without-* | --without-*) | |
ec6a6fbe | 1199 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1200 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1201 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1202 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1203 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1204 | ac_useropt_orig=$ac_useropt |
1205 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1206 | case $ac_user_opts in | |
1207 | *" | |
1208 | "with_$ac_useropt" | |
1209 | "*) ;; | |
1210 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1211 | ac_unrecognized_sep=', ';; | |
1212 | esac | |
1213 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1214 | |
1215 | --x) | |
1216 | # Obsolete; use --with-x. | |
1217 | with_x=yes ;; | |
1218 | ||
1219 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1220 | | --x-incl | --x-inc | --x-in | --x-i) | |
1221 | ac_prev=x_includes ;; | |
1222 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1223 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1224 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1225 | |
1226 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1227 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1228 | ac_prev=x_libraries ;; | |
1229 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1230 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1231 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1232 | |
ec6a6fbe | 1233 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1234 | Try \`$0 --help' for more information." >&2 |
1235 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1236 | ;; |
1237 | ||
ad6254c5 AK |
1238 | *=*) |
1239 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1240 | # Reject names that are not valid shell variable names. | |
1241 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1242 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1243 | { (exit 1); exit 1; }; } |
7a197a62 | 1244 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1245 | export $ac_envvar ;; |
1246 | ||
795ca3e5 | 1247 | *) |
ad6254c5 | 1248 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1249 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1250 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1251 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1252 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1253 | ;; |
1254 | ||
1255 | esac | |
1256 | done | |
1257 | ||
1258 | if test -n "$ac_prev"; then | |
ad6254c5 | 1259 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1260 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1261 | { (exit 1); exit 1; }; } |
795ca3e5 | 1262 | fi |
795ca3e5 | 1263 | |
ec6a6fbe AK |
1264 | if test -n "$ac_unrecognized_opts"; then |
1265 | case $enable_option_checking in | |
1266 | no) ;; | |
1267 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1268 | { (exit 1); exit 1; }; } ;; | |
1269 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1270 | esac | |
1271 | fi | |
1272 | ||
1273 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1274 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1275 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1276 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1277 | libdir localedir mandir | |
795ca3e5 | 1278 | do |
7a197a62 | 1279 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1280 | # Remove trailing slashes. |
1281 | case $ac_val in | |
1282 | */ ) | |
1283 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1284 | eval $ac_var=\$ac_val;; | |
1285 | esac | |
1286 | # Be sure to have absolute directory names. | |
ad6254c5 | 1287 | case $ac_val in |
7a197a62 AK |
1288 | [\\/$]* | ?:[\\/]* ) continue;; |
1289 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1290 | esac |
ec6a6fbe | 1291 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1292 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1293 | done |
1294 | ||
ad6254c5 AK |
1295 | # There might be people who depend on the old broken behavior: `$host' |
1296 | # used to hold the argument of --host etc. | |
1297 | # FIXME: To remove some day. | |
1298 | build=$build_alias | |
1299 | host=$host_alias | |
1300 | target=$target_alias | |
1301 | ||
1302 | # FIXME: To remove some day. | |
1303 | if test "x$host_alias" != x; then | |
1304 | if test "x$build_alias" = x; then | |
1305 | cross_compiling=maybe | |
ec6a6fbe | 1306 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1307 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1308 | elif test "x$build_alias" != "x$host_alias"; then | |
1309 | cross_compiling=yes | |
1310 | fi | |
1311 | fi | |
8106cdd5 | 1312 | |
ad6254c5 AK |
1313 | ac_tool_prefix= |
1314 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1315 | ||
1316 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1317 | |
795ca3e5 | 1318 | |
7a197a62 AK |
1319 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1320 | ac_ls_di=`ls -di .` && | |
1321 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1322 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1323 | { (exit 1); exit 1; }; } |
1324 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1325 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1326 | { (exit 1); exit 1; }; } |
1327 | ||
1328 | ||
795ca3e5 AK |
1329 | # Find the source files, if location was not specified. |
1330 | if test -z "$srcdir"; then | |
1331 | ac_srcdir_defaulted=yes | |
7a197a62 | 1332 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1333 | ac_confdir=`$as_dirname -- "$as_myself" || |
1334 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1335 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1336 | X"$as_myself" : 'X\(//\)$' \| \ | |
1337 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1338 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\/\)[^/].*/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | /^X\(\/\/\)$/{ | |
1348 | s//\1/ | |
1349 | q | |
1350 | } | |
1351 | /^X\(\/\).*/{ | |
1352 | s//\1/ | |
1353 | q | |
1354 | } | |
1355 | s/.*/./; q'` | |
795ca3e5 | 1356 | srcdir=$ac_confdir |
7a197a62 | 1357 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1358 | srcdir=.. |
1359 | fi | |
1360 | else | |
1361 | ac_srcdir_defaulted=no | |
1362 | fi | |
7a197a62 AK |
1363 | if test ! -r "$srcdir/$ac_unique_file"; then |
1364 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1365 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1366 | { (exit 1); exit 1; }; } |
795ca3e5 | 1367 | fi |
7a197a62 AK |
1368 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1369 | ac_abs_confdir=`( | |
ec6a6fbe | 1370 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1371 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1372 | pwd)` |
1373 | # When building in place, set srcdir=. | |
1374 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1375 | srcdir=. | |
1376 | fi | |
1377 | # Remove unnecessary trailing slashes from srcdir. | |
1378 | # Double slashes in file names in object file debugging info | |
1379 | # mess up M-x gdb in Emacs. | |
1380 | case $srcdir in | |
1381 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1382 | esac | |
1383 | for ac_var in $ac_precious_vars; do | |
1384 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1386 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1387 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1388 | done | |
ad6254c5 AK |
1389 | |
1390 | # | |
1391 | # Report the --help message. | |
1392 | # | |
1393 | if test "$ac_init_help" = "long"; then | |
1394 | # Omit some internal or obsolete options to make the list less imposing. | |
1395 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1396 | cat <<_ACEOF | |
1397 | \`configure' configures this package to adapt to many kinds of systems. | |
1398 | ||
1399 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1400 | ||
1401 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1402 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1403 | ||
1404 | Defaults for the options are specified in brackets. | |
1405 | ||
1406 | Configuration: | |
1407 | -h, --help display this help and exit | |
1408 | --help=short display options specific to this package | |
1409 | --help=recursive display the short help of all the included packages | |
1410 | -V, --version display version information and exit | |
1411 | -q, --quiet, --silent do not print \`checking...' messages | |
1412 | --cache-file=FILE cache test results in FILE [disabled] | |
1413 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1414 | -n, --no-create do not create output files | |
1415 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1416 | ||
ad6254c5 AK |
1417 | Installation directories: |
1418 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1419 | [$ac_default_prefix] |
ad6254c5 | 1420 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1421 | [PREFIX] |
ad6254c5 AK |
1422 | |
1423 | By default, \`make install' will install all the files in | |
1424 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1425 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1426 | for instance \`--prefix=\$HOME'. | |
1427 | ||
1428 | For better control, use the options below. | |
1429 | ||
1430 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1431 | --bindir=DIR user executables [EPREFIX/bin] |
1432 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1433 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1434 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1435 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1436 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1437 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1438 | --includedir=DIR C header files [PREFIX/include] | |
1439 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1440 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1441 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1442 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1443 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1444 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1445 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1446 | --htmldir=DIR html documentation [DOCDIR] | |
1447 | --dvidir=DIR dvi documentation [DOCDIR] | |
1448 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1449 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1450 | _ACEOF |
1451 | ||
1452 | cat <<\_ACEOF | |
1453 | ||
1454 | System types: | |
1455 | --build=BUILD configure for building on BUILD [guessed] | |
1456 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1457 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1458 | _ACEOF | |
1459 | fi | |
1460 | ||
1461 | if test -n "$ac_init_help"; then | |
1462 | ||
1463 | cat <<\_ACEOF | |
1464 | ||
1465 | Optional Features: | |
ec6a6fbe | 1466 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1467 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1468 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1469 | --enable-static_link Use this to link the tools to their libraries |
1470 | statically. Default is dynamic linking | |
ad6254c5 AK |
1471 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1472 | device-mapper is missing from the kernel | |
1b523347 | 1473 | --disable-readline Disable readline support |
3d978351 | 1474 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1475 | --enable-debug Enable debugging |
5556819a | 1476 | --enable-profiling Gather gcov profiling data |
93bd259b | 1477 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1478 | --enable-udev_sync Enable synchronisation with udev processing |
1479 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b AK |
1480 | --enable-compat Enable support for old device-mapper versions |
1481 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 | 1482 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1483 | --enable-applib Build application library |
ad6254c5 | 1484 | --enable-cmdlib Build shared command library |
93bd259b | 1485 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1486 | --enable-fsadm Enable fsadm |
15d91f5a | 1487 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1488 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1489 | --enable-nls Enable Native Language Support |
1490 | ||
1491 | Optional Packages: | |
1492 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1493 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1494 | --with-user=USER Set the owner of installed files [USER=root] |
1495 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1496 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1497 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1498 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1499 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1500 | TYPE=internal | |
1501 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1502 | TYPE=internal | |
1503 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1504 | TYPE=internal | |
1505 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1506 | TYPE=internal | |
1507 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1508 | TYPE=internal | |
ec6a6fbe | 1509 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all |
a266258f | 1510 | TYPE=none |
d0191583 JM |
1511 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1512 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1513 | --with-confdir=DIR Configuration files in DIR [/etc] |
1514 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1515 | --with-usrlibdir=DIR |
1516 | --with-usrsbindir=DIR | |
a5f46f6a | 1517 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1518 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1519 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1520 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1521 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1522 | |
1523 | Some influential environment variables: | |
1524 | CC C compiler command | |
1525 | CFLAGS C compiler flags | |
1526 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1527 | nonstandard directory <lib dir> | |
25fbec5b | 1528 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1529 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1530 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1531 | CPP C preprocessor |
e2997b73 AK |
1532 | PKG_CONFIG path to pkg-config utility |
1533 | QUORUM_CFLAGS | |
1534 | C compiler flags for QUORUM, overriding pkg-config | |
1535 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
1536 | CONFDB_CFLAGS | |
1537 | C compiler flags for CONFDB, overriding pkg-config | |
1538 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1539 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1540 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
ad6254c5 AK |
1541 | |
1542 | Use these variables to override the choices made by `configure' or to help | |
1543 | it to find libraries and programs with nonstandard names/locations. | |
1544 | ||
1545 | _ACEOF | |
7a197a62 | 1546 | ac_status=$? |
ad6254c5 AK |
1547 | fi |
1548 | ||
1549 | if test "$ac_init_help" = "recursive"; then | |
1550 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1551 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1552 | test -d "$ac_dir" || |
1553 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1554 | continue | |
ad6254c5 AK |
1555 | ac_builddir=. |
1556 | ||
7a197a62 AK |
1557 | case "$ac_dir" in |
1558 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1559 | *) | |
ec6a6fbe | 1560 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1561 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1562 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1563 | case $ac_top_builddir_sub in |
1564 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1565 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1566 | esac ;; | |
1567 | esac | |
1568 | ac_abs_top_builddir=$ac_pwd | |
1569 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1570 | # for backward compatibility: | |
1571 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1572 | |
1573 | case $srcdir in | |
7a197a62 | 1574 | .) # We are building in place. |
ad6254c5 | 1575 | ac_srcdir=. |
7a197a62 AK |
1576 | ac_top_srcdir=$ac_top_builddir_sub |
1577 | ac_abs_top_srcdir=$ac_pwd ;; | |
1578 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1579 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1580 | ac_top_srcdir=$srcdir |
1581 | ac_abs_top_srcdir=$srcdir ;; | |
1582 | *) # Relative name. | |
1583 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1584 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1585 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1586 | esac |
7a197a62 AK |
1587 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1588 | ||
1589 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1590 | # Check for guested configure. | |
1591 | if test -f "$ac_srcdir/configure.gnu"; then | |
1592 | echo && | |
1593 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1594 | elif test -f "$ac_srcdir/configure"; then | |
1595 | echo && | |
1596 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1597 | else |
ec6a6fbe | 1598 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1599 | fi || ac_status=$? |
1600 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1601 | done |
1602 | fi | |
1603 | ||
7a197a62 | 1604 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1605 | if $ac_init_version; then |
1606 | cat <<\_ACEOF | |
7a197a62 | 1607 | configure |
ec6a6fbe | 1608 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1609 | |
7a197a62 | 1610 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1611 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1612 | This configure script is free software; the Free Software Foundation |
1613 | gives unlimited permission to copy, distribute and modify it. | |
1614 | _ACEOF | |
7a197a62 | 1615 | exit |
ad6254c5 | 1616 | fi |
7a197a62 | 1617 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1618 | This file contains any messages produced by compilers while |
1619 | running configure, to aid debugging if configure makes a mistake. | |
1620 | ||
1621 | It was created by $as_me, which was | |
ec6a6fbe | 1622 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1623 | |
1624 | $ $0 $@ | |
1625 | ||
1626 | _ACEOF | |
7a197a62 | 1627 | exec 5>>config.log |
ad6254c5 AK |
1628 | { |
1629 | cat <<_ASUNAME | |
1630 | ## --------- ## | |
1631 | ## Platform. ## | |
1632 | ## --------- ## | |
1633 | ||
1634 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1635 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1636 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1637 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1638 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1639 | ||
1640 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1641 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1642 | ||
1643 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1644 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1645 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1646 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1647 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1648 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1649 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1650 | ||
1651 | _ASUNAME | |
1652 | ||
1653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1654 | for as_dir in $PATH | |
1655 | do | |
1656 | IFS=$as_save_IFS | |
1657 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1658 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1659 | done |
7a197a62 | 1660 | IFS=$as_save_IFS |
ad6254c5 AK |
1661 | |
1662 | } >&5 | |
1663 | ||
1664 | cat >&5 <<_ACEOF | |
1665 | ||
1666 | ||
1667 | ## ----------- ## | |
1668 | ## Core tests. ## | |
1669 | ## ----------- ## | |
1670 | ||
1671 | _ACEOF | |
1672 | ||
1673 | ||
1674 | # Keep a trace of the command line. | |
1675 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1676 | # Strip out --silent because we don't want to record it for future runs. | |
1677 | # Also quote any args containing shell meta-characters. | |
1678 | # Make two passes to allow for proper duplicate-argument suppression. | |
1679 | ac_configure_args= | |
1680 | ac_configure_args0= | |
1681 | ac_configure_args1= | |
ad6254c5 AK |
1682 | ac_must_keep_next=false |
1683 | for ac_pass in 1 2 | |
1684 | do | |
1685 | for ac_arg | |
1686 | do | |
1687 | case $ac_arg in | |
1688 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1689 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1690 | | -silent | --silent | --silen | --sile | --sil) | |
1691 | continue ;; | |
7a197a62 | 1692 | *\'*) |
ec6a6fbe | 1693 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1694 | esac |
1695 | case $ac_pass in | |
1696 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1697 | 2) | |
1698 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1699 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1700 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1701 | else |
8a2fc586 AK |
1702 | case $ac_arg in |
1703 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1704 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1705 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1706 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1707 | case "$ac_configure_args0 " in | |
1708 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1709 | esac | |
1710 | ;; | |
1711 | -* ) ac_must_keep_next=true ;; | |
1712 | esac | |
ad6254c5 | 1713 | fi |
7a197a62 | 1714 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1715 | ;; |
1716 | esac | |
1717 | done | |
1718 | done | |
1719 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1720 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1721 | ||
1722 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1723 | # config.log. We remove comments because anyway the quotes in there | |
1724 | # would cause problems or look ugly. | |
7a197a62 AK |
1725 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1726 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1727 | trap 'exit_status=$? |
1728 | # Save into config.log some information that might help in debugging. | |
1729 | { | |
1730 | echo | |
1731 | ||
1732 | cat <<\_ASBOX | |
1733 | ## ---------------- ## | |
1734 | ## Cache variables. ## | |
1735 | ## ---------------- ## | |
1736 | _ASBOX | |
1737 | echo | |
1738 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1739 | ( |
1740 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1741 | eval ac_val=\$$ac_var | |
1742 | case $ac_val in #( | |
1743 | *${as_nl}*) | |
1744 | case $ac_var in #( | |
ec6a6fbe AK |
1745 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1746 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1747 | esac |
1748 | case $ac_var in #( | |
1749 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1750 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1751 | *) $as_unset $ac_var ;; |
1752 | esac ;; | |
1753 | esac | |
1754 | done | |
ad6254c5 | 1755 | (set) 2>&1 | |
7a197a62 AK |
1756 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1757 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1758 | sed -n \ |
7a197a62 AK |
1759 | "s/'\''/'\''\\\\'\'''\''/g; |
1760 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1761 | ;; #( | |
ad6254c5 | 1762 | *) |
7a197a62 | 1763 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1764 | ;; |
7a197a62 AK |
1765 | esac | |
1766 | sort | |
1767 | ) | |
ad6254c5 AK |
1768 | echo |
1769 | ||
1770 | cat <<\_ASBOX | |
1771 | ## ----------------- ## | |
1772 | ## Output variables. ## | |
1773 | ## ----------------- ## | |
1774 | _ASBOX | |
1775 | echo | |
1776 | for ac_var in $ac_subst_vars | |
1777 | do | |
7a197a62 AK |
1778 | eval ac_val=\$$ac_var |
1779 | case $ac_val in | |
ec6a6fbe | 1780 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1781 | esac |
ec6a6fbe | 1782 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1783 | done | sort |
1784 | echo | |
1785 | ||
1786 | if test -n "$ac_subst_files"; then | |
1787 | cat <<\_ASBOX | |
7a197a62 AK |
1788 | ## ------------------- ## |
1789 | ## File substitutions. ## | |
1790 | ## ------------------- ## | |
ad6254c5 AK |
1791 | _ASBOX |
1792 | echo | |
1793 | for ac_var in $ac_subst_files | |
1794 | do | |
7a197a62 AK |
1795 | eval ac_val=\$$ac_var |
1796 | case $ac_val in | |
ec6a6fbe | 1797 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1798 | esac |
ec6a6fbe | 1799 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1800 | done | sort |
1801 | echo | |
1802 | fi | |
1803 | ||
1804 | if test -s confdefs.h; then | |
1805 | cat <<\_ASBOX | |
1806 | ## ----------- ## | |
1807 | ## confdefs.h. ## | |
1808 | ## ----------- ## | |
1809 | _ASBOX | |
1810 | echo | |
7a197a62 | 1811 | cat confdefs.h |
ad6254c5 AK |
1812 | echo |
1813 | fi | |
1814 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1815 | $as_echo "$as_me: caught signal $ac_signal" |
1816 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1817 | } >&5 |
7a197a62 AK |
1818 | rm -f core *.core core.conftest.* && |
1819 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1820 | exit $exit_status |
7a197a62 | 1821 | ' 0 |
ad6254c5 AK |
1822 | for ac_signal in 1 2 13 15; do |
1823 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1824 | done | |
1825 | ac_signal=0 | |
1826 | ||
1827 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1828 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1829 | |
1830 | # Predefined preprocessor variables. | |
1831 | ||
1832 | cat >>confdefs.h <<_ACEOF | |
1833 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1834 | _ACEOF | |
1835 | ||
1836 | ||
1837 | cat >>confdefs.h <<_ACEOF | |
1838 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1839 | _ACEOF | |
1840 | ||
1841 | ||
1842 | cat >>confdefs.h <<_ACEOF | |
1843 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1844 | _ACEOF | |
8106cdd5 | 1845 | |
ad6254c5 AK |
1846 | |
1847 | cat >>confdefs.h <<_ACEOF | |
1848 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1849 | _ACEOF | |
1850 | ||
1851 | ||
1852 | cat >>confdefs.h <<_ACEOF | |
1853 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1854 | _ACEOF | |
1855 | ||
1856 | ||
1857 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1858 | # Prefer an explicitly selected file to automatically selected ones. |
1859 | ac_site_file1=NONE | |
1860 | ac_site_file2=NONE | |
7a197a62 | 1861 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1862 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1863 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1864 | ac_site_file1=$prefix/share/config.site |
1865 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1866 | else |
ec6a6fbe AK |
1867 | ac_site_file1=$ac_default_prefix/share/config.site |
1868 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1869 | fi |
ec6a6fbe | 1870 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1871 | do |
ec6a6fbe | 1872 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1873 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1874 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1875 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1876 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1877 | . "$ac_site_file" |
1878 | fi | |
1879 | done | |
1880 | ||
1881 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1882 | # Some versions of bash will fail to source /dev/null (special |
1883 | # files actually), so we avoid doing that. | |
1884 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1885 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1886 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1887 | case $cache_file in |
7a197a62 AK |
1888 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1889 | *) . "./$cache_file";; | |
ad6254c5 AK |
1890 | esac |
1891 | fi | |
795ca3e5 | 1892 | else |
ec6a6fbe AK |
1893 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1894 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1895 | >$cache_file |
1896 | fi | |
1897 | ||
1898 | # Check that the precious variables saved in the cache have kept the same | |
1899 | # value. | |
1900 | ac_cache_corrupted=false | |
7a197a62 | 1901 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1902 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1903 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1904 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1905 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1906 | case $ac_old_set,$ac_new_set in |
1907 | set,) | |
ec6a6fbe AK |
1908 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1909 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1910 | ac_cache_corrupted=: ;; |
1911 | ,set) | |
ec6a6fbe AK |
1912 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1913 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1914 | ac_cache_corrupted=: ;; |
1915 | ,);; | |
1916 | *) | |
1917 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1918 | # differences in whitespace do not lead to failure. |
1919 | ac_old_val_w=`echo x $ac_old_val` | |
1920 | ac_new_val_w=`echo x $ac_new_val` | |
1921 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1922 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1923 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1924 | ac_cache_corrupted=: | |
1925 | else | |
1926 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1927 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1928 | eval $ac_var=\$ac_old_val | |
1929 | fi | |
1930 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1931 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1932 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1933 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1934 | fi;; |
1935 | esac | |
1936 | # Pass precious variables to config.status. | |
1937 | if test "$ac_new_set" = set; then | |
1938 | case $ac_new_val in | |
ec6a6fbe | 1939 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1940 | *) ac_arg=$ac_var=$ac_new_val ;; |
1941 | esac | |
1942 | case " $ac_configure_args " in | |
1943 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1944 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1945 | esac | |
1946 | fi | |
1947 | done | |
1948 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
1949 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1950 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1951 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1952 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1953 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1954 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1955 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1956 | fi |
1957 | ||
ad6254c5 AK |
1958 | |
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | ||
1971 | ||
1972 | ||
1973 | ||
7a197a62 AK |
1974 | ac_ext=c |
1975 | ac_cpp='$CPP $CPPFLAGS' | |
1976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1979 | |
795ca3e5 AK |
1980 | |
1981 | ||
7a197a62 | 1982 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1983 | |
1984 | ||
80992638 | 1985 | ################################################################################ |
795ca3e5 | 1986 | ac_aux_dir= |
7a197a62 AK |
1987 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1988 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1989 | ac_aux_dir=$ac_dir |
1990 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1991 | break | |
7a197a62 | 1992 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1993 | ac_aux_dir=$ac_dir |
1994 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1995 | break | |
7a197a62 | 1996 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1997 | ac_aux_dir=$ac_dir |
1998 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1999 | break | |
795ca3e5 AK |
2000 | fi |
2001 | done | |
2002 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2003 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2004 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2005 | { (exit 1); exit 1; }; } |
795ca3e5 | 2006 | fi |
7a197a62 AK |
2007 | |
2008 | # These three variables are undocumented and unsupported, | |
2009 | # and are intended to be withdrawn in a future Autoconf release. | |
2010 | # They can cause serious problems if a builder's source tree is in a directory | |
2011 | # whose full name contains unusual characters. | |
2012 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2013 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2014 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2015 | ||
8ce0cbda AK |
2016 | |
2017 | ||
ad6254c5 | 2018 | ################################################################################ |
8ce0cbda | 2019 | # Make sure we can run config.sub. |
7a197a62 | 2020 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2021 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2022 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2023 | { (exit 1); exit 1; }; } |
2024 | ||
ec6a6fbe AK |
2025 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2026 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2027 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2028 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2029 | else |
7a197a62 AK |
2030 | ac_build_alias=$build_alias |
2031 | test "x$ac_build_alias" = x && | |
2032 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2033 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2034 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2035 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2036 | { (exit 1); exit 1; }; } |
7a197a62 | 2037 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2038 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2039 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2040 | { (exit 1); exit 1; }; } |
2041 | ||
2042 | fi | |
ec6a6fbe AK |
2043 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2044 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2045 | case $ac_cv_build in |
2046 | *-*-*) ;; | |
ec6a6fbe AK |
2047 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2048 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2049 | { (exit 1); exit 1; }; };; |
2050 | esac | |
ad6254c5 | 2051 | build=$ac_cv_build |
7a197a62 AK |
2052 | ac_save_IFS=$IFS; IFS='-' |
2053 | set x $ac_cv_build | |
2054 | shift | |
2055 | build_cpu=$1 | |
2056 | build_vendor=$2 | |
2057 | shift; shift | |
2058 | # Remember, the first character of IFS is used to create $*, | |
2059 | # except with old shells: | |
2060 | build_os=$* | |
2061 | IFS=$ac_save_IFS | |
2062 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2063 | |
2064 | ||
ec6a6fbe AK |
2065 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2066 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2067 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2068 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2069 | else |
7a197a62 AK |
2070 | if test "x$host_alias" = x; then |
2071 | ac_cv_host=$ac_cv_build | |
2072 | else | |
2073 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2074 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2075 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2076 | { (exit 1); exit 1; }; } |
7a197a62 | 2077 | fi |
ad6254c5 AK |
2078 | |
2079 | fi | |
ec6a6fbe AK |
2080 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2081 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2082 | case $ac_cv_host in |
2083 | *-*-*) ;; | |
ec6a6fbe AK |
2084 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2085 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2086 | { (exit 1); exit 1; }; };; |
2087 | esac | |
ad6254c5 | 2088 | host=$ac_cv_host |
7a197a62 AK |
2089 | ac_save_IFS=$IFS; IFS='-' |
2090 | set x $ac_cv_host | |
2091 | shift | |
2092 | host_cpu=$1 | |
2093 | host_vendor=$2 | |
2094 | shift; shift | |
2095 | # Remember, the first character of IFS is used to create $*, | |
2096 | # except with old shells: | |
2097 | host_os=$* | |
2098 | IFS=$ac_save_IFS | |
2099 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2100 | |
2101 | ||
ec6a6fbe AK |
2102 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2103 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2104 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2105 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2106 | else |
7a197a62 AK |
2107 | if test "x$target_alias" = x; then |
2108 | ac_cv_target=$ac_cv_host | |
2109 | else | |
2110 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2111 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2112 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2113 | { (exit 1); exit 1; }; } |
7a197a62 | 2114 | fi |
8ce0cbda | 2115 | |
ad6254c5 | 2116 | fi |
ec6a6fbe AK |
2117 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2118 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2119 | case $ac_cv_target in |
2120 | *-*-*) ;; | |
ec6a6fbe AK |
2121 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2122 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2123 | { (exit 1); exit 1; }; };; |
2124 | esac | |
ad6254c5 | 2125 | target=$ac_cv_target |
7a197a62 AK |
2126 | ac_save_IFS=$IFS; IFS='-' |
2127 | set x $ac_cv_target | |
2128 | shift | |
2129 | target_cpu=$1 | |
2130 | target_vendor=$2 | |
2131 | shift; shift | |
2132 | # Remember, the first character of IFS is used to create $*, | |
2133 | # except with old shells: | |
2134 | target_os=$* | |
2135 | IFS=$ac_save_IFS | |
2136 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2137 | |
8ce0cbda | 2138 | |
ad6254c5 AK |
2139 | # The aliases save the names the user supplied, while $host etc. |
2140 | # will get canonicalized. | |
2141 | test -n "$target_alias" && | |
8ce0cbda AK |
2142 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2143 | NONENONEs,x,x, && | |
2144 | program_prefix=${target_alias}- | |
2145 | ||
8ce0cbda AK |
2146 | case "$host_os" in |
2147 | linux*) | |
7f54ef36 | 2148 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2149 | COPTIMISE_FLAG="-O2" |
2150 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2151 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2152 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2153 | LDDEPS="$LDDEPS .export.sym" | |
2154 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2155 | LIB_SUFFIX=so |
8ce0cbda AK |
2156 | DEVMAPPER=yes |
2157 | ODIRECT=yes | |
d0191583 | 2158 | DM_IOCTLS=yes |
8ce0cbda | 2159 | SELINUX=yes |
8b1a3214 | 2160 | REALTIME=yes |
8ce0cbda | 2161 | CLUSTER=internal |
93bd259b | 2162 | FSADM=yes |
d0191583 | 2163 | ;; |
8ce0cbda AK |
2164 | darwin*) |
2165 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2166 | COPTIMISE_FLAG="-O2" | |
2167 | CLDFLAGS="$CLDFLAGS" | |
2168 | CLDWHOLEARCHIVE="-all_load" | |
2169 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2170 | LIB_SUFFIX=dylib |
a653923f | 2171 | DEVMAPPER=yes |
8ce0cbda | 2172 | ODIRECT=no |
d0191583 | 2173 | DM_IOCTLS=no |
8ce0cbda | 2174 | SELINUX=no |
8b1a3214 | 2175 | REALTIME=no |
8ce0cbda | 2176 | CLUSTER=none |
d0191583 JM |
2177 | FSADM=no |
2178 | ;; | |
8ce0cbda AK |
2179 | esac |
2180 | ||
80992638 | 2181 | ################################################################################ |
ec6a6fbe AK |
2182 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2183 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2184 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2185 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2186 | else |
2187 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2188 | for ac_i in 1 2 3 4 5 6 7; do | |
2189 | ac_script="$ac_script$as_nl$ac_script" | |
2190 | done | |
ec6a6fbe | 2191 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2192 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2193 | if test -z "$SED"; then |
5951ef33 | 2194 | ac_path_SED_found=false |
ec6a6fbe AK |
2195 | # Loop through the user's path and test for each of PROGNAME-LIST |
2196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2197 | for as_dir in $PATH |
2198 | do | |
2199 | IFS=$as_save_IFS | |
2200 | test -z "$as_dir" && as_dir=. | |
2201 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2202 | for ac_exec_ext in '' $ac_executable_extensions; do |
2203 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2204 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2205 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2206 | # Check for GNU $ac_path_SED |
2207 | case `"$ac_path_SED" --version 2>&1` in | |
2208 | *GNU*) | |
2209 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2210 | *) | |
2211 | ac_count=0 | |
ec6a6fbe | 2212 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2213 | while : |
2214 | do | |
2215 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2216 | mv "conftest.tmp" "conftest.in" | |
2217 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2218 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2219 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2220 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2221 | ac_count=`expr $ac_count + 1` | |
2222 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2223 | # Best one so far, save it but keep looking for a better one | |
2224 | ac_cv_path_SED="$ac_path_SED" | |
2225 | ac_path_SED_max=$ac_count | |
2226 | fi | |
2227 | # 10*(2^10) chars as input seems more than enough | |
2228 | test $ac_count -gt 10 && break | |
2229 | done | |
2230 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2231 | esac | |
2232 | ||
ec6a6fbe AK |
2233 | $ac_path_SED_found && break 3 |
2234 | done | |
5951ef33 AK |
2235 | done |
2236 | done | |
5951ef33 | 2237 | IFS=$as_save_IFS |
ec6a6fbe AK |
2238 | if test -z "$ac_cv_path_SED"; then |
2239 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2240 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2241 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2242 | fi |
5951ef33 AK |
2243 | else |
2244 | ac_cv_path_SED=$SED | |
2245 | fi | |
2246 | ||
2247 | fi | |
ec6a6fbe AK |
2248 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2249 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2250 | SED="$ac_cv_path_SED" |
2251 | rm -f conftest.sed | |
2252 | ||
ad6254c5 | 2253 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2254 | do |
ad6254c5 | 2255 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2256 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2257 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2258 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2259 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2260 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2261 | else |
2262 | if test -n "$AWK"; then | |
2263 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2264 | else | |
ad6254c5 AK |
2265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2266 | for as_dir in $PATH | |
2267 | do | |
2268 | IFS=$as_save_IFS | |
2269 | test -z "$as_dir" && as_dir=. | |
2270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2272 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2273 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2274 | break 2 |
2275 | fi | |
2276 | done | |
2277 | done | |
7a197a62 | 2278 | IFS=$as_save_IFS |
ad6254c5 | 2279 | |
795ca3e5 AK |
2280 | fi |
2281 | fi | |
ad6254c5 | 2282 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2283 | if test -n "$AWK"; then |
ec6a6fbe AK |
2284 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2285 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2286 | else |
ec6a6fbe AK |
2287 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2288 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2289 | fi |
2290 | ||
7a197a62 | 2291 | |
ad6254c5 AK |
2292 | test -n "$AWK" && break |
2293 | done | |
2294 | ||
2295 | ac_ext=c | |
2296 | ac_cpp='$CPP $CPPFLAGS' | |
2297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2300 | if test -n "$ac_tool_prefix"; then | |
2301 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2302 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2303 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2304 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2305 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2306 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2307 | else |
2308 | if test -n "$CC"; then | |
2309 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2310 | else | |
2311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2312 | for as_dir in $PATH | |
2313 | do | |
2314 | IFS=$as_save_IFS | |
2315 | test -z "$as_dir" && as_dir=. | |
2316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2318 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2319 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2320 | break 2 |
2321 | fi | |
2322 | done | |
8106cdd5 | 2323 | done |
7a197a62 | 2324 | IFS=$as_save_IFS |
8106cdd5 | 2325 | |
ad6254c5 AK |
2326 | fi |
2327 | fi | |
2328 | CC=$ac_cv_prog_CC | |
2329 | if test -n "$CC"; then | |
ec6a6fbe AK |
2330 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2331 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2332 | else |
ec6a6fbe AK |
2333 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2334 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2335 | fi |
2336 | ||
7a197a62 | 2337 | |
ad6254c5 AK |
2338 | fi |
2339 | if test -z "$ac_cv_prog_CC"; then | |
2340 | ac_ct_CC=$CC | |
2341 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2342 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2343 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2344 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2345 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2346 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2347 | else |
2348 | if test -n "$ac_ct_CC"; then | |
2349 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2350 | else | |
2351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2352 | for as_dir in $PATH | |
2353 | do | |
2354 | IFS=$as_save_IFS | |
2355 | test -z "$as_dir" && as_dir=. | |
2356 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2358 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2359 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2360 | break 2 |
2361 | fi | |
2362 | done | |
2363 | done | |
7a197a62 | 2364 | IFS=$as_save_IFS |
ad6254c5 AK |
2365 | |
2366 | fi | |
2367 | fi | |
2368 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2369 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2370 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2371 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2372 | else |
ec6a6fbe AK |
2373 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2374 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2375 | fi |
2376 | ||
7a197a62 AK |
2377 | if test "x$ac_ct_CC" = x; then |
2378 | CC="" | |
2379 | else | |
2380 | case $cross_compiling:$ac_tool_warned in | |
2381 | yes:) | |
ec6a6fbe AK |
2382 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2383 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2384 | ac_tool_warned=yes ;; |
2385 | esac | |
2386 | CC=$ac_ct_CC | |
2387 | fi | |
ad6254c5 AK |
2388 | else |
2389 | CC="$ac_cv_prog_CC" | |
2390 | fi | |
2391 | ||
2392 | if test -z "$CC"; then | |
7a197a62 AK |
2393 | if test -n "$ac_tool_prefix"; then |
2394 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2395 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2396 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2397 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2398 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2399 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2400 | else |
2401 | if test -n "$CC"; then | |
2402 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2403 | else | |
ad6254c5 AK |
2404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2405 | for as_dir in $PATH | |
2406 | do | |
2407 | IFS=$as_save_IFS | |
2408 | test -z "$as_dir" && as_dir=. | |
2409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2411 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2412 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2413 | break 2 |
2414 | fi | |
2415 | done | |
2416 | done | |
7a197a62 | 2417 | IFS=$as_save_IFS |
ad6254c5 | 2418 | |
8106cdd5 AK |
2419 | fi |
2420 | fi | |
ad6254c5 | 2421 | CC=$ac_cv_prog_CC |
8106cdd5 | 2422 | if test -n "$CC"; then |
ec6a6fbe AK |
2423 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2424 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2425 | else |
ec6a6fbe AK |
2426 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2427 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2428 | fi |
2429 | ||
8106cdd5 | 2430 | |
7a197a62 | 2431 | fi |
ad6254c5 | 2432 | fi |
795ca3e5 AK |
2433 | if test -z "$CC"; then |
2434 | # Extract the first word of "cc", so it can be a program name with args. | |
2435 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2436 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2437 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2438 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2439 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2440 | else |
2441 | if test -n "$CC"; then | |
2442 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2443 | else | |
795ca3e5 | 2444 | ac_prog_rejected=no |
ad6254c5 AK |
2445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2446 | for as_dir in $PATH | |
2447 | do | |
2448 | IFS=$as_save_IFS | |
2449 | test -z "$as_dir" && as_dir=. | |
2450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2452 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2453 | ac_prog_rejected=yes | |
2454 | continue | |
2455 | fi | |
2456 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2457 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2458 | break 2 |
2459 | fi | |
2460 | done | |
2461 | done | |
7a197a62 | 2462 | IFS=$as_save_IFS |
ad6254c5 | 2463 | |
795ca3e5 AK |
2464 | if test $ac_prog_rejected = yes; then |
2465 | # We found a bogon in the path, so make sure we never use it. | |
2466 | set dummy $ac_cv_prog_CC | |
2467 | shift | |
ad6254c5 | 2468 | if test $# != 0; then |
795ca3e5 AK |
2469 | # We chose a different compiler from the bogus one. |
2470 | # However, it has the same basename, so the bogon will be chosen | |
2471 | # first if we set CC to just the basename; use the full file name. | |
2472 | shift | |
ad6254c5 | 2473 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2474 | fi |
2475 | fi | |
2476 | fi | |
2477 | fi | |
ad6254c5 | 2478 | CC=$ac_cv_prog_CC |
795ca3e5 | 2479 | if test -n "$CC"; then |
ec6a6fbe AK |
2480 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2481 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2482 | else |
ec6a6fbe AK |
2483 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2484 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2485 | fi |
2486 | ||
7a197a62 | 2487 | |
ad6254c5 AK |
2488 | fi |
2489 | if test -z "$CC"; then | |
2490 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2491 | for ac_prog in cl.exe |
ad6254c5 AK |
2492 | do |
2493 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2494 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2495 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2496 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2497 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2498 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2499 | else |
2500 | if test -n "$CC"; then | |
2501 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2502 | else | |
ad6254c5 AK |
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2504 | for as_dir in $PATH | |
2505 | do | |
2506 | IFS=$as_save_IFS | |
2507 | test -z "$as_dir" && as_dir=. | |
2508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2510 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2511 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2512 | break 2 |
2513 | fi | |
2514 | done | |
2515 | done | |
7a197a62 | 2516 | IFS=$as_save_IFS |
ad6254c5 | 2517 | |
795ca3e5 AK |
2518 | fi |
2519 | fi | |
ad6254c5 | 2520 | CC=$ac_cv_prog_CC |
795ca3e5 | 2521 | if test -n "$CC"; then |
ec6a6fbe AK |
2522 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2523 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2524 | else |
ec6a6fbe AK |
2525 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2526 | $as_echo "no" >&6; } | |
795ca3e5 | 2527 | fi |
ad6254c5 | 2528 | |
7a197a62 | 2529 | |
ad6254c5 AK |
2530 | test -n "$CC" && break |
2531 | done | |
2532 | fi | |
2533 | if test -z "$CC"; then | |
2534 | ac_ct_CC=$CC | |
7a197a62 | 2535 | for ac_prog in cl.exe |
ad6254c5 AK |
2536 | do |
2537 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2538 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2539 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2540 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2541 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2542 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2543 | else |
2544 | if test -n "$ac_ct_CC"; then | |
2545 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2546 | else | |
2547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2548 | for as_dir in $PATH | |
2549 | do | |
2550 | IFS=$as_save_IFS | |
2551 | test -z "$as_dir" && as_dir=. | |
2552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2554 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2555 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2556 | break 2 |
795ca3e5 | 2557 | fi |
ad6254c5 AK |
2558 | done |
2559 | done | |
7a197a62 | 2560 | IFS=$as_save_IFS |
ad6254c5 AK |
2561 | |
2562 | fi | |
2563 | fi | |
2564 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2565 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2566 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2567 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2568 | else |
ec6a6fbe AK |
2569 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2570 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2571 | fi |
2572 | ||
7a197a62 | 2573 | |
ad6254c5 AK |
2574 | test -n "$ac_ct_CC" && break |
2575 | done | |
795ca3e5 | 2576 | |
7a197a62 AK |
2577 | if test "x$ac_ct_CC" = x; then |
2578 | CC="" | |
2579 | else | |
2580 | case $cross_compiling:$ac_tool_warned in | |
2581 | yes:) | |
ec6a6fbe AK |
2582 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2583 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2584 | ac_tool_warned=yes ;; |
2585 | esac | |
2586 | CC=$ac_ct_CC | |
2587 | fi | |
ad6254c5 AK |
2588 | fi |
2589 | ||
2590 | fi | |
2591 | ||
2592 | ||
ec6a6fbe AK |
2593 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2594 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2595 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2596 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2597 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2598 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2599 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2600 | |
2601 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2602 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2603 | set X $ac_compile | |
2604 | ac_compiler=$2 | |
7a197a62 AK |
2605 | { (ac_try="$ac_compiler --version >&5" |
2606 | case "(($ac_try" in | |
2607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2608 | *) ac_try_echo=$ac_try;; | |
2609 | esac | |
ec6a6fbe AK |
2610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2611 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2612 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2613 | ac_status=$? |
ec6a6fbe | 2614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2615 | (exit $ac_status); } |
7a197a62 AK |
2616 | { (ac_try="$ac_compiler -v >&5" |
2617 | case "(($ac_try" in | |
2618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2619 | *) ac_try_echo=$ac_try;; | |
2620 | esac | |
ec6a6fbe AK |
2621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2622 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2623 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2624 | ac_status=$? |
ec6a6fbe | 2625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2626 | (exit $ac_status); } |
7a197a62 AK |
2627 | { (ac_try="$ac_compiler -V >&5" |
2628 | case "(($ac_try" in | |
2629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2630 | *) ac_try_echo=$ac_try;; | |
2631 | esac | |
ec6a6fbe AK |
2632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2633 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2634 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2635 | ac_status=$? |
ec6a6fbe | 2636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2637 | (exit $ac_status); } |
2638 | ||
2639 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2640 | /* confdefs.h. */ |
2641 | _ACEOF | |
2642 | cat confdefs.h >>conftest.$ac_ext | |
2643 | cat >>conftest.$ac_ext <<_ACEOF | |
2644 | /* end confdefs.h. */ | |
2645 | ||
2646 | int | |
2647 | main () | |
2648 | { | |
2649 | ||
2650 | ; | |
2651 | return 0; | |
2652 | } | |
2653 | _ACEOF | |
2654 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2655 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2656 | # Try to create an executable without -o first, disregard a.out. |
2657 | # It will help us diagnose broken compilers, and finding out an intuition | |
2658 | # of exeext. | |
ec6a6fbe AK |
2659 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2660 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2661 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2662 | ||
2663 | # The possible output files: | |
2664 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2665 | ||
7a197a62 AK |
2666 | ac_rmfiles= |
2667 | for ac_file in $ac_files | |
2668 | do | |
2669 | case $ac_file in | |
ec6a6fbe | 2670 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2671 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2672 | esac | |
2673 | done | |
2674 | rm -f $ac_rmfiles | |
2675 | ||
2676 | if { (ac_try="$ac_link_default" | |
2677 | case "(($ac_try" in | |
2678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2679 | *) ac_try_echo=$ac_try;; | |
2680 | esac | |
ec6a6fbe AK |
2681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2682 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2683 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2684 | ac_status=$? |
ec6a6fbe | 2685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2686 | (exit $ac_status); }; then |
7a197a62 AK |
2687 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2688 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2689 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2690 | # so that the user can short-circuit this test for compilers unknown to | |
2691 | # Autoconf. | |
25fbec5b | 2692 | for ac_file in $ac_files '' |
ad6254c5 AK |
2693 | do |
2694 | test -f "$ac_file" || continue | |
2695 | case $ac_file in | |
ec6a6fbe | 2696 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2697 | ;; |
ad6254c5 | 2698 | [ab].out ) |
8a2fc586 AK |
2699 | # We found the default executable, but exeext='' is most |
2700 | # certainly right. | |
2701 | break;; | |
ad6254c5 | 2702 | *.* ) |
7a197a62 AK |
2703 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2704 | then :; else | |
2705 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2706 | fi | |
2707 | # We set ac_cv_exeext here because the later test for it is not | |
2708 | # safe: cross compilers may not add the suffix if given an `-o' | |
2709 | # argument, so we may need to know it at that point already. | |
2710 | # Even if this section looks crufty: it has the advantage of | |
2711 | # actually working. | |
8a2fc586 | 2712 | break;; |
ad6254c5 | 2713 | * ) |
8a2fc586 | 2714 | break;; |
ad6254c5 AK |
2715 | esac |
2716 | done | |
7a197a62 AK |
2717 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2718 | ||
ad6254c5 | 2719 | else |
25fbec5b AK |
2720 | ac_file='' |
2721 | fi | |
2722 | ||
ec6a6fbe AK |
2723 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2724 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2725 | if test -z "$ac_file"; then |
ec6a6fbe | 2726 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2727 | sed 's/^/| /' conftest.$ac_ext >&5 |
2728 | ||
ec6a6fbe AK |
2729 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2731 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2732 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2733 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2734 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2735 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2736 | fi |
2737 | ||
2738 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2739 | |
7a197a62 | 2740 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2741 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2742 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2743 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2744 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2745 | # If not cross compiling, check that we can run a simple program. | |
2746 | if test "$cross_compiling" != yes; then | |
2747 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2748 | { (case "(($ac_try" in |
2749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2750 | *) ac_try_echo=$ac_try;; | |
2751 | esac | |
ec6a6fbe AK |
2752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2753 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2754 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2755 | ac_status=$? |
ec6a6fbe | 2756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2757 | (exit $ac_status); }; }; then |
2758 | cross_compiling=no | |
795ca3e5 | 2759 | else |
ad6254c5 AK |
2760 | if test "$cross_compiling" = maybe; then |
2761 | cross_compiling=yes | |
2762 | else | |
ec6a6fbe AK |
2763 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2765 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2766 | If you meant to cross compile, use \`--host'. |
2767 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2768 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2769 | If you meant to cross compile, use \`--host'. |
2770 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2771 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2772 | fi |
795ca3e5 | 2773 | fi |
80992638 | 2774 | fi |
ec6a6fbe AK |
2775 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2776 | $as_echo "yes" >&6; } | |
ad6254c5 | 2777 | |
ec6a6fbe | 2778 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2779 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2780 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2781 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2782 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2783 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2784 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2785 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2786 | |
ec6a6fbe AK |
2787 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2788 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2789 | if { (ac_try="$ac_link" |
2790 | case "(($ac_try" in | |
2791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2792 | *) ac_try_echo=$ac_try;; | |
2793 | esac | |
ec6a6fbe AK |
2794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2795 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2796 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2797 | ac_status=$? |
ec6a6fbe | 2798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2799 | (exit $ac_status); }; then |
2800 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2801 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2802 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2803 | # `rm'. | |
2804 | for ac_file in conftest.exe conftest conftest.*; do | |
2805 | test -f "$ac_file" || continue | |
2806 | case $ac_file in | |
ec6a6fbe | 2807 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2808 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2809 | break;; |
ad6254c5 AK |
2810 | * ) break;; |
2811 | esac | |
2812 | done | |
80992638 | 2813 | else |
ec6a6fbe AK |
2814 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2815 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2816 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2817 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2818 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2819 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2820 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2821 | fi |
2822 | ||
2823 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2824 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2825 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2826 | |
2827 | rm -f conftest.$ac_ext | |
2828 | EXEEXT=$ac_cv_exeext | |
2829 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2830 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2831 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2832 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2833 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2834 | else |
ad6254c5 | 2835 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2836 | /* confdefs.h. */ |
2837 | _ACEOF | |
2838 | cat confdefs.h >>conftest.$ac_ext | |
2839 | cat >>conftest.$ac_ext <<_ACEOF | |
2840 | /* end confdefs.h. */ | |
2841 | ||
2842 | int | |
2843 | main () | |
2844 | { | |
2845 | ||
2846 | ; | |
2847 | return 0; | |
2848 | } | |
2849 | _ACEOF | |
2850 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2851 | if { (ac_try="$ac_compile" |
2852 | case "(($ac_try" in | |
2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2854 | *) ac_try_echo=$ac_try;; | |
2855 | esac | |
ec6a6fbe AK |
2856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2857 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2858 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2859 | ac_status=$? |
ec6a6fbe | 2860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2861 | (exit $ac_status); }; then |
7a197a62 AK |
2862 | for ac_file in conftest.o conftest.obj conftest.*; do |
2863 | test -f "$ac_file" || continue; | |
ad6254c5 | 2864 | case $ac_file in |
ec6a6fbe | 2865 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2866 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2867 | break;; | |
2868 | esac | |
2869 | done | |
2870 | else | |
ec6a6fbe | 2871 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2872 | sed 's/^/| /' conftest.$ac_ext >&5 |
2873 | ||
ec6a6fbe AK |
2874 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2875 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2876 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2877 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2878 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2879 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2880 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2881 | fi |
2882 | ||
2883 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2884 | fi | |
ec6a6fbe AK |
2885 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2886 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2887 | OBJEXT=$ac_cv_objext |
2888 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2889 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2890 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2891 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2892 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2893 | else |
2894 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2895 | /* confdefs.h. */ |
2896 | _ACEOF | |
2897 | cat confdefs.h >>conftest.$ac_ext | |
2898 | cat >>conftest.$ac_ext <<_ACEOF | |
2899 | /* end confdefs.h. */ | |
2900 | ||
2901 | int | |
2902 | main () | |
2903 | { | |
2904 | #ifndef __GNUC__ | |
2905 | choke me | |
2906 | #endif | |
80992638 | 2907 | |
ad6254c5 AK |
2908 | ; |
2909 | return 0; | |
2910 | } | |
2911 | _ACEOF | |
2912 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2913 | if { (ac_try="$ac_compile" |
2914 | case "(($ac_try" in | |
2915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2916 | *) ac_try_echo=$ac_try;; | |
2917 | esac | |
ec6a6fbe AK |
2918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2919 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2920 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2921 | ac_status=$? |
8a2fc586 AK |
2922 | grep -v '^ *+' conftest.er1 >conftest.err |
2923 | rm -f conftest.er1 | |
2924 | cat conftest.err >&5 | |
ec6a6fbe | 2925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2926 | (exit $ac_status); } && { |
2927 | test -z "$ac_c_werror_flag" || | |
2928 | test ! -s conftest.err | |
2929 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2930 | ac_compiler_gnu=yes |
80992638 | 2931 | else |
ec6a6fbe | 2932 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2933 | sed 's/^/| /' conftest.$ac_ext >&5 |
2934 | ||
7a197a62 | 2935 | ac_compiler_gnu=no |
8106cdd5 | 2936 | fi |
7a197a62 AK |
2937 | |
2938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2939 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2940 | |
ad6254c5 | 2941 | fi |
ec6a6fbe AK |
2942 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2943 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2944 | if test $ac_compiler_gnu = yes; then | |
2945 | GCC=yes | |
2946 | else | |
2947 | GCC= | |
2948 | fi | |
ad6254c5 AK |
2949 | ac_test_CFLAGS=${CFLAGS+set} |
2950 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
2951 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2952 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2953 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 2954 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2955 | else |
7a197a62 AK |
2956 | ac_save_c_werror_flag=$ac_c_werror_flag |
2957 | ac_c_werror_flag=yes | |
2958 | ac_cv_prog_cc_g=no | |
2959 | CFLAGS="-g" | |
2960 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2961 | /* confdefs.h. */ |
2962 | _ACEOF | |
2963 | cat confdefs.h >>conftest.$ac_ext | |
2964 | cat >>conftest.$ac_ext <<_ACEOF | |
2965 | /* end confdefs.h. */ | |
2966 | ||
2967 | int | |
2968 | main () | |
2969 | { | |
2970 | ||
2971 | ; | |
2972 | return 0; | |
2973 | } | |
2974 | _ACEOF | |
2975 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2976 | if { (ac_try="$ac_compile" |
2977 | case "(($ac_try" in | |
2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2979 | *) ac_try_echo=$ac_try;; | |
2980 | esac | |
ec6a6fbe AK |
2981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2982 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2983 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2984 | ac_status=$? |
8a2fc586 AK |
2985 | grep -v '^ *+' conftest.er1 >conftest.err |
2986 | rm -f conftest.er1 | |
2987 | cat conftest.err >&5 | |
ec6a6fbe | 2988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2989 | (exit $ac_status); } && { |
2990 | test -z "$ac_c_werror_flag" || | |
2991 | test ! -s conftest.err | |
2992 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2993 | ac_cv_prog_cc_g=yes |
2994 | else | |
ec6a6fbe | 2995 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2996 | sed 's/^/| /' conftest.$ac_ext >&5 |
2997 | ||
2998 | CFLAGS="" | |
2999 | cat >conftest.$ac_ext <<_ACEOF | |
3000 | /* confdefs.h. */ | |
3001 | _ACEOF | |
3002 | cat confdefs.h >>conftest.$ac_ext | |
3003 | cat >>conftest.$ac_ext <<_ACEOF | |
3004 | /* end confdefs.h. */ | |
3005 | ||
3006 | int | |
3007 | main () | |
3008 | { | |
3009 | ||
3010 | ; | |
3011 | return 0; | |
3012 | } | |
3013 | _ACEOF | |
3014 | rm -f conftest.$ac_objext | |
3015 | if { (ac_try="$ac_compile" | |
3016 | case "(($ac_try" in | |
3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3018 | *) ac_try_echo=$ac_try;; | |
3019 | esac | |
ec6a6fbe AK |
3020 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3021 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3022 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3023 | ac_status=$? |
7a197a62 AK |
3024 | grep -v '^ *+' conftest.er1 >conftest.err |
3025 | rm -f conftest.er1 | |
3026 | cat conftest.err >&5 | |
ec6a6fbe | 3027 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3028 | (exit $ac_status); } && { |
3029 | test -z "$ac_c_werror_flag" || | |
3030 | test ! -s conftest.err | |
3031 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3032 | : |
3033 | else | |
ec6a6fbe | 3034 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3035 | sed 's/^/| /' conftest.$ac_ext >&5 |
3036 | ||
3037 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3038 | CFLAGS="-g" | |
3039 | cat >conftest.$ac_ext <<_ACEOF | |
3040 | /* confdefs.h. */ | |
3041 | _ACEOF | |
3042 | cat confdefs.h >>conftest.$ac_ext | |
3043 | cat >>conftest.$ac_ext <<_ACEOF | |
3044 | /* end confdefs.h. */ | |
3045 | ||
3046 | int | |
3047 | main () | |
3048 | { | |
3049 | ||
3050 | ; | |
3051 | return 0; | |
3052 | } | |
3053 | _ACEOF | |
3054 | rm -f conftest.$ac_objext | |
3055 | if { (ac_try="$ac_compile" | |
3056 | case "(($ac_try" in | |
3057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3058 | *) ac_try_echo=$ac_try;; | |
3059 | esac | |
ec6a6fbe AK |
3060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3061 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3062 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3063 | ac_status=$? |
7a197a62 AK |
3064 | grep -v '^ *+' conftest.er1 >conftest.err |
3065 | rm -f conftest.er1 | |
3066 | cat conftest.err >&5 | |
ec6a6fbe | 3067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3068 | (exit $ac_status); } && { |
3069 | test -z "$ac_c_werror_flag" || | |
3070 | test ! -s conftest.err | |
3071 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3072 | ac_cv_prog_cc_g=yes |
3073 | else | |
ec6a6fbe | 3074 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3075 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3076 | |
7a197a62 AK |
3077 | |
3078 | fi | |
3079 | ||
3080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3081 | fi | |
3082 | ||
3083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3084 | fi |
7a197a62 AK |
3085 | |
3086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3087 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3088 | fi |
ec6a6fbe AK |
3089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3090 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3091 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3092 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3093 | elif test $ac_cv_prog_cc_g = yes; then |
3094 | if test "$GCC" = yes; then | |
3095 | CFLAGS="-g -O2" | |
3096 | else | |
3097 | CFLAGS="-g" | |
3098 | fi | |
3099 | else | |
3100 | if test "$GCC" = yes; then | |
3101 | CFLAGS="-O2" | |
3102 | else | |
3103 | CFLAGS= | |
3104 | fi | |
3105 | fi | |
ec6a6fbe AK |
3106 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3107 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3108 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3109 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3110 | else |
7a197a62 | 3111 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3112 | ac_save_CC=$CC |
3113 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3114 | /* confdefs.h. */ |
3115 | _ACEOF | |
3116 | cat confdefs.h >>conftest.$ac_ext | |
3117 | cat >>conftest.$ac_ext <<_ACEOF | |
3118 | /* end confdefs.h. */ | |
3119 | #include <stdarg.h> | |
3120 | #include <stdio.h> | |
3121 | #include <sys/types.h> | |
3122 | #include <sys/stat.h> | |
3123 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3124 | struct buf { int x; }; | |
3125 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3126 | static char *e (p, i) | |
3127 | char **p; | |
3128 | int i; | |
3129 | { | |
3130 | return p[i]; | |
3131 | } | |
3132 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3133 | { | |
3134 | char *s; | |
3135 | va_list v; | |
3136 | va_start (v,p); | |
3137 | s = g (p, va_arg (v,int)); | |
3138 | va_end (v); | |
3139 | return s; | |
3140 | } | |
8a2fc586 AK |
3141 | |
3142 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3143 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3144 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3145 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3146 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3147 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3148 | that's true only with -std. */ |
8a2fc586 AK |
3149 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3150 | ||
7a197a62 AK |
3151 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3152 | inside strings and character constants. */ | |
3153 | #define FOO(x) 'x' | |
3154 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3155 | ||
ad6254c5 AK |
3156 | int test (int i, double x); |
3157 | struct s1 {int (*f) (int a);}; | |
3158 | struct s2 {int (*f) (double a);}; | |
3159 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3160 | int argc; | |
3161 | char **argv; | |
3162 | int | |
3163 | main () | |
3164 | { | |
3165 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3166 | ; | |
3167 | return 0; | |
3168 | } | |
3169 | _ACEOF | |
7a197a62 AK |
3170 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3171 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3172 | do |
3173 | CC="$ac_save_CC $ac_arg" | |
3174 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3175 | if { (ac_try="$ac_compile" |
3176 | case "(($ac_try" in | |
3177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3178 | *) ac_try_echo=$ac_try;; | |
3179 | esac | |
ec6a6fbe AK |
3180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3181 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3182 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3183 | ac_status=$? |
8a2fc586 AK |
3184 | grep -v '^ *+' conftest.er1 >conftest.err |
3185 | rm -f conftest.er1 | |
3186 | cat conftest.err >&5 | |
ec6a6fbe | 3187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3188 | (exit $ac_status); } && { |
3189 | test -z "$ac_c_werror_flag" || | |
3190 | test ! -s conftest.err | |
3191 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3192 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3193 | else |
ec6a6fbe | 3194 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3195 | sed 's/^/| /' conftest.$ac_ext >&5 |
3196 | ||
7a197a62 | 3197 | |
ad6254c5 | 3198 | fi |
7a197a62 AK |
3199 | |
3200 | rm -f core conftest.err conftest.$ac_objext | |
3201 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3202 | done |
7a197a62 | 3203 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3204 | CC=$ac_save_CC |
3205 | ||
3206 | fi | |
7a197a62 AK |
3207 | # AC_CACHE_VAL |
3208 | case "x$ac_cv_prog_cc_c89" in | |
3209 | x) | |
ec6a6fbe AK |
3210 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3211 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3212 | xno) |
ec6a6fbe AK |
3213 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3214 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3215 | *) |
7a197a62 | 3216 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3217 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3218 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3219 | esac |
3220 | ||
ad6254c5 | 3221 | |
ad6254c5 AK |
3222 | ac_ext=c |
3223 | ac_cpp='$CPP $CPPFLAGS' | |
3224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3227 | |
d0191583 JM |
3228 | |
3229 | ||
3230 | ac_ext=c | |
3231 | ac_cpp='$CPP $CPPFLAGS' | |
3232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3235 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3236 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3237 | # On Suns, sometimes $CPP names a directory. |
3238 | if test -n "$CPP" && test -d "$CPP"; then | |
3239 | CPP= | |
3240 | fi | |
3241 | if test -z "$CPP"; then | |
3242 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3243 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3244 | else |
d0191583 JM |
3245 | # Double quotes because CPP needs to be expanded |
3246 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3247 | do | |
3248 | ac_preproc_ok=false | |
3249 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3250 | do |
d0191583 JM |
3251 | # Use a header file that comes with gcc, so configuring glibc |
3252 | # with a fresh cross-compiler works. | |
3253 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3254 | # <limits.h> exists even on freestanding compilers. | |
3255 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3256 | # not just through cpp. "Syntax error" is here to catch this case. | |
3257 | cat >conftest.$ac_ext <<_ACEOF | |
3258 | /* confdefs.h. */ | |
3259 | _ACEOF | |
3260 | cat confdefs.h >>conftest.$ac_ext | |
3261 | cat >>conftest.$ac_ext <<_ACEOF | |
3262 | /* end confdefs.h. */ | |
3263 | #ifdef __STDC__ | |
3264 | # include <limits.h> | |
3265 | #else | |
3266 | # include <assert.h> | |
3267 | #endif | |
3268 | Syntax error | |
3269 | _ACEOF | |
3270 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3271 | case "(($ac_try" in | |
3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3273 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3274 | esac |
ec6a6fbe AK |
3275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3276 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3277 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3278 | ac_status=$? | |
3279 | grep -v '^ *+' conftest.er1 >conftest.err | |
3280 | rm -f conftest.er1 | |
3281 | cat conftest.err >&5 | |
ec6a6fbe | 3282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3283 | (exit $ac_status); } >/dev/null && { |
3284 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3285 | test ! -s conftest.err | |
3286 | }; then | |
3287 | : | |
3288 | else | |
ec6a6fbe | 3289 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3290 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3291 | |
d0191583 JM |
3292 | # Broken: fails on valid input. |
3293 | continue | |
795ca3e5 | 3294 | fi |
795ca3e5 | 3295 | |
d0191583 | 3296 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3297 | |
d0191583 JM |
3298 | # OK, works on sane cases. Now check whether nonexistent headers |
3299 | # can be detected and how. | |
3300 | cat >conftest.$ac_ext <<_ACEOF | |
3301 | /* confdefs.h. */ | |
3302 | _ACEOF | |
3303 | cat confdefs.h >>conftest.$ac_ext | |
3304 | cat >>conftest.$ac_ext <<_ACEOF | |
3305 | /* end confdefs.h. */ | |
3306 | #include <ac_nonexistent.h> | |
3307 | _ACEOF | |
3308 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3309 | case "(($ac_try" in | |
3310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3311 | *) ac_try_echo=$ac_try;; | |
3312 | esac | |
ec6a6fbe AK |
3313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3314 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3315 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3316 | ac_status=$? | |
3317 | grep -v '^ *+' conftest.er1 >conftest.err | |
3318 | rm -f conftest.er1 | |
3319 | cat conftest.err >&5 | |
ec6a6fbe | 3320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3321 | (exit $ac_status); } >/dev/null && { |
3322 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3323 | test ! -s conftest.err | |
3324 | }; then | |
3325 | # Broken: success on invalid input. | |
3326 | continue | |
3327 | else | |
ec6a6fbe | 3328 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3329 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3330 | |
d0191583 JM |
3331 | # Passes both tests. |
3332 | ac_preproc_ok=: | |
3333 | break | |
3334 | fi | |
795ca3e5 | 3335 | |
d0191583 JM |
3336 | rm -f conftest.err conftest.$ac_ext |
3337 | ||
3338 | done | |
3339 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3340 | rm -f conftest.err conftest.$ac_ext | |
3341 | if $ac_preproc_ok; then | |
3342 | break | |
795ca3e5 AK |
3343 | fi |
3344 | ||
d0191583 JM |
3345 | done |
3346 | ac_cv_prog_CPP=$CPP | |
3347 | ||
3348 | fi | |
3349 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3350 | else |
d0191583 JM |
3351 | ac_cv_prog_CPP=$CPP |
3352 | fi | |
ec6a6fbe AK |
3353 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3354 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3355 | ac_preproc_ok=false |
3356 | for ac_c_preproc_warn_flag in '' yes | |
3357 | do | |
3358 | # Use a header file that comes with gcc, so configuring glibc | |
3359 | # with a fresh cross-compiler works. | |
3360 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3361 | # <limits.h> exists even on freestanding compilers. | |
3362 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3363 | # not just through cpp. "Syntax error" is here to catch this case. | |
3364 | cat >conftest.$ac_ext <<_ACEOF | |
3365 | /* confdefs.h. */ | |
ad6254c5 | 3366 | _ACEOF |
d0191583 JM |
3367 | cat confdefs.h >>conftest.$ac_ext |
3368 | cat >>conftest.$ac_ext <<_ACEOF | |
3369 | /* end confdefs.h. */ | |
3370 | #ifdef __STDC__ | |
3371 | # include <limits.h> | |
3372 | #else | |
3373 | # include <assert.h> | |
3374 | #endif | |
3375 | Syntax error | |
3376 | _ACEOF | |
3377 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3378 | case "(($ac_try" in | |
3379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3380 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3381 | esac |
ec6a6fbe AK |
3382 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3383 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3384 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3385 | ac_status=$? | |
3386 | grep -v '^ *+' conftest.er1 >conftest.err | |
3387 | rm -f conftest.er1 | |
3388 | cat conftest.err >&5 | |
ec6a6fbe | 3389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3390 | (exit $ac_status); } >/dev/null && { |
3391 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3392 | test ! -s conftest.err | |
3393 | }; then | |
3394 | : | |
795ca3e5 | 3395 | else |
ec6a6fbe | 3396 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3397 | sed 's/^/| /' conftest.$ac_ext >&5 |
3398 | ||
3399 | # Broken: fails on valid input. | |
3400 | continue | |
795ca3e5 AK |
3401 | fi |
3402 | ||
d0191583 JM |
3403 | rm -f conftest.err conftest.$ac_ext |
3404 | ||
3405 | # OK, works on sane cases. Now check whether nonexistent headers | |
3406 | # can be detected and how. | |
3407 | cat >conftest.$ac_ext <<_ACEOF | |
3408 | /* confdefs.h. */ | |
3409 | _ACEOF | |
3410 | cat confdefs.h >>conftest.$ac_ext | |
3411 | cat >>conftest.$ac_ext <<_ACEOF | |
3412 | /* end confdefs.h. */ | |
3413 | #include <ac_nonexistent.h> | |
3414 | _ACEOF | |
3415 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3416 | case "(($ac_try" in | |
3417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3418 | *) ac_try_echo=$ac_try;; | |
3419 | esac | |
ec6a6fbe AK |
3420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3421 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3423 | ac_status=$? | |
3424 | grep -v '^ *+' conftest.er1 >conftest.err | |
3425 | rm -f conftest.er1 | |
3426 | cat conftest.err >&5 | |
ec6a6fbe | 3427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3428 | (exit $ac_status); } >/dev/null && { |
3429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3430 | test ! -s conftest.err | |
3431 | }; then | |
3432 | # Broken: success on invalid input. | |
3433 | continue | |
795ca3e5 | 3434 | else |
ec6a6fbe | 3435 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3436 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3437 | |
d0191583 JM |
3438 | # Passes both tests. |
3439 | ac_preproc_ok=: | |
3440 | break | |
795ca3e5 | 3441 | fi |
d0191583 JM |
3442 | |
3443 | rm -f conftest.err conftest.$ac_ext | |
3444 | ||
3445 | done | |
3446 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3447 | rm -f conftest.err conftest.$ac_ext | |
3448 | if $ac_preproc_ok; then | |
3449 | : | |
8106cdd5 | 3450 | else |
ec6a6fbe AK |
3451 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3453 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3454 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3455 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3456 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3457 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3458 | fi |
3459 | ||
d0191583 JM |
3460 | ac_ext=c |
3461 | ac_cpp='$CPP $CPPFLAGS' | |
3462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3465 | ||
7a197a62 | 3466 | |
ec6a6fbe AK |
3467 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3468 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3469 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3470 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3471 | else |
ec6a6fbe | 3472 | if test -z "$GREP"; then |
d0191583 | 3473 | ac_path_GREP_found=false |
ec6a6fbe AK |
3474 | # Loop through the user's path and test for each of PROGNAME-LIST |
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3476 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3477 | do |
3478 | IFS=$as_save_IFS | |
3479 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3480 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3481 | for ac_exec_ext in '' $ac_executable_extensions; do |
3482 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3483 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3484 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3485 | # Check for GNU $ac_path_GREP |
3486 | case `"$ac_path_GREP" --version 2>&1` in | |
3487 | *GNU*) | |
3488 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3489 | *) | |
3490 | ac_count=0 | |
ec6a6fbe | 3491 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3492 | while : |
3493 | do | |
3494 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3495 | mv "conftest.tmp" "conftest.in" | |
3496 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3497 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3498 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3499 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3500 | ac_count=`expr $ac_count + 1` | |
3501 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3502 | # Best one so far, save it but keep looking for a better one | |
3503 | ac_cv_path_GREP="$ac_path_GREP" | |
3504 | ac_path_GREP_max=$ac_count | |
3505 | fi | |
3506 | # 10*(2^10) chars as input seems more than enough | |
3507 | test $ac_count -gt 10 && break | |
3508 | done | |
3509 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3510 | esac | |
3511 | ||
ec6a6fbe AK |
3512 | $ac_path_GREP_found && break 3 |
3513 | done | |
d0191583 | 3514 | done |
ad6254c5 | 3515 | done |
7a197a62 | 3516 | IFS=$as_save_IFS |
ec6a6fbe AK |
3517 | if test -z "$ac_cv_path_GREP"; then |
3518 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3519 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3520 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3521 | fi |
80992638 | 3522 | else |
d0191583 | 3523 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3524 | fi |
8106cdd5 | 3525 | |
80992638 | 3526 | fi |
ec6a6fbe AK |
3527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3528 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3529 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3530 | |
d0191583 | 3531 | |
ec6a6fbe AK |
3532 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3533 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3534 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3535 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3536 | else |
d0191583 JM |
3537 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3538 | then ac_cv_path_EGREP="$GREP -E" | |
3539 | else | |
ec6a6fbe | 3540 | if test -z "$EGREP"; then |
d0191583 | 3541 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3542 | # Loop through the user's path and test for each of PROGNAME-LIST |
3543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3544 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3545 | do |
3546 | IFS=$as_save_IFS | |
3547 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3548 | for ac_prog in egrep; do |
ec6a6fbe AK |
3549 | for ac_exec_ext in '' $ac_executable_extensions; do |
3550 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3551 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3552 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3553 | # Check for GNU $ac_path_EGREP |
3554 | case `"$ac_path_EGREP" --version 2>&1` in | |
3555 | *GNU*) | |
3556 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3557 | *) | |
3558 | ac_count=0 | |
ec6a6fbe | 3559 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3560 | while : |
3561 | do | |
3562 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3563 | mv "conftest.tmp" "conftest.in" | |
3564 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3565 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3566 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3567 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3568 | ac_count=`expr $ac_count + 1` | |
3569 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3570 | # Best one so far, save it but keep looking for a better one | |
3571 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3572 | ac_path_EGREP_max=$ac_count | |
3573 | fi | |
3574 | # 10*(2^10) chars as input seems more than enough | |
3575 | test $ac_count -gt 10 && break | |
3576 | done | |
3577 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3578 | esac |
8a2fc586 | 3579 | |
ec6a6fbe AK |
3580 | $ac_path_EGREP_found && break 3 |
3581 | done | |
d0191583 | 3582 | done |
8a2fc586 | 3583 | done |
7a197a62 | 3584 | IFS=$as_save_IFS |
ec6a6fbe AK |
3585 | if test -z "$ac_cv_path_EGREP"; then |
3586 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3587 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3588 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3589 | fi |
d0191583 JM |
3590 | else |
3591 | ac_cv_path_EGREP=$EGREP | |
3592 | fi | |
ad6254c5 | 3593 | |
d0191583 JM |
3594 | fi |
3595 | fi | |
ec6a6fbe AK |
3596 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3597 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3598 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3599 | |
3600 | ||
d0191583 | 3601 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3602 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3603 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3604 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3605 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3606 | else |
d0191583 | 3607 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3608 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3609 | /* confdefs.h. */ |
3610 | _ACEOF | |
3611 | cat confdefs.h >>conftest.$ac_ext | |
3612 | cat >>conftest.$ac_ext <<_ACEOF | |
3613 | /* end confdefs.h. */ | |
d0191583 JM |
3614 | #include <sgtty.h> |
3615 | Autoconf TIOCGETP | |
ad6254c5 | 3616 | _ACEOF |
d0191583 JM |
3617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3618 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3619 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3620 | else |
d0191583 | 3621 | ac_cv_prog_gcc_traditional=no |
80992638 | 3622 | fi |
d0191583 | 3623 | rm -f conftest* |
ad6254c5 | 3624 | |
8106cdd5 | 3625 | |
d0191583 JM |
3626 | if test $ac_cv_prog_gcc_traditional = no; then |
3627 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3628 | /* confdefs.h. */ |
3629 | _ACEOF | |
3630 | cat confdefs.h >>conftest.$ac_ext | |
3631 | cat >>conftest.$ac_ext <<_ACEOF | |
3632 | /* end confdefs.h. */ | |
d0191583 JM |
3633 | #include <termio.h> |
3634 | Autoconf TCGETA | |
ad6254c5 | 3635 | _ACEOF |
d0191583 JM |
3636 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3637 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3638 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3639 | fi |
d0191583 | 3640 | rm -f conftest* |
795ca3e5 | 3641 | |
d0191583 | 3642 | fi |
795ca3e5 | 3643 | fi |
ec6a6fbe AK |
3644 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3645 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3646 | if test $ac_cv_prog_gcc_traditional = yes; then |
3647 | CC="$CC -traditional" | |
3648 | fi | |
795ca3e5 AK |
3649 | fi |
3650 | ||
d0191583 JM |
3651 | # Find a good install program. We prefer a C program (faster), |
3652 | # so one script is as good as another. But avoid the broken or | |
3653 | # incompatible versions: | |
3654 | # SysV /etc/install, /usr/sbin/install | |
3655 | # SunOS /usr/etc/install | |
3656 | # IRIX /sbin/install | |
3657 | # AIX /bin/install | |
3658 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3659 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3660 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3661 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3662 | # OS/2's system install, which has a completely different semantic | |
3663 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3664 | # Reject install programs that cannot install multiple files. |
3665 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3666 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3667 | if test -z "$INSTALL"; then |
3668 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3669 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3670 | else |
d0191583 JM |
3671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3672 | for as_dir in $PATH | |
3673 | do | |
3674 | IFS=$as_save_IFS | |
3675 | test -z "$as_dir" && as_dir=. | |
3676 | # Account for people who put trailing slashes in PATH elements. | |
3677 | case $as_dir/ in | |
3678 | ./ | .// | /cC/* | \ | |
3679 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3680 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3681 | /usr/ucb/* ) ;; | |
3682 | *) | |
3683 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3684 | # Don't use installbsd from OSF since it installs stuff as root | |
3685 | # by default. | |
3686 | for ac_prog in ginstall scoinst install; do | |
3687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3688 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3689 | if test $ac_prog = install && | |
3690 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3691 | # AIX install. It has an incompatible calling convention. | |
3692 | : | |
3693 | elif test $ac_prog = install && | |
3694 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3695 | # program-specific install script used by HP pwplus--don't use. | |
3696 | : | |
3697 | else | |
ec6a6fbe AK |
3698 | rm -rf conftest.one conftest.two conftest.dir |
3699 | echo one > conftest.one | |
3700 | echo two > conftest.two | |
3701 | mkdir conftest.dir | |
3702 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3703 | test -s conftest.one && test -s conftest.two && | |
3704 | test -s conftest.dir/conftest.one && | |
3705 | test -s conftest.dir/conftest.two | |
3706 | then | |
3707 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3708 | break 3 | |
3709 | fi | |
d0191583 JM |
3710 | fi |
3711 | fi | |
3712 | done | |
3713 | done | |
3714 | ;; | |
3715 | esac | |
ec6a6fbe | 3716 | |
d0191583 JM |
3717 | done |
3718 | IFS=$as_save_IFS | |
80992638 | 3719 | |
ec6a6fbe | 3720 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3721 | |
3722 | fi | |
3723 | if test "${ac_cv_path_install+set}" = set; then | |
3724 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3725 | else |
d0191583 JM |
3726 | # As a last resort, use the slow shell script. Don't cache a |
3727 | # value for INSTALL within a source directory, because that will | |
3728 | # break other packages using the cache if that directory is | |
3729 | # removed, or if the value is a relative name. | |
3730 | INSTALL=$ac_install_sh | |
7a197a62 | 3731 | fi |
d0191583 | 3732 | fi |
ec6a6fbe AK |
3733 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3734 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3735 | |
d0191583 JM |
3736 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3737 | # It thinks the first close brace ends the variable substitution. | |
3738 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3739 | |
d0191583 | 3740 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3741 | |
d0191583 JM |
3742 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3743 | ||
ec6a6fbe AK |
3744 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3745 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3746 | LN_S=$as_ln_s |
3747 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3748 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3749 | $as_echo "yes" >&6; } | |
d0191583 | 3750 | else |
ec6a6fbe AK |
3751 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3752 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3753 | fi |
d0191583 | 3754 | |
ec6a6fbe AK |
3755 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3756 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3757 | set x ${MAKE-make} | |
3758 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3759 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3760 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3761 | else |
d0191583 JM |
3762 | cat >conftest.make <<\_ACEOF |
3763 | SHELL = /bin/sh | |
3764 | all: | |
3765 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3766 | _ACEOF | |
3767 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3768 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3769 | *@@@%%%=?*=@@@%%%*) | |
3770 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3771 | *) | |
3772 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3773 | esac | |
3774 | rm -f conftest.make | |
ad6254c5 | 3775 | fi |
d0191583 | 3776 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3777 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3778 | $as_echo "yes" >&6; } | |
d0191583 JM |
3779 | SET_MAKE= |
3780 | else | |
ec6a6fbe AK |
3781 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3782 | $as_echo "no" >&6; } | |
d0191583 | 3783 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3784 | fi |
8106cdd5 | 3785 | |
ec6a6fbe AK |
3786 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3787 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3788 | if test -z "$MKDIR_P"; then |
3789 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3790 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3791 | else |
3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3793 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3794 | do | |
3795 | IFS=$as_save_IFS | |
3796 | test -z "$as_dir" && as_dir=. | |
3797 | for ac_prog in mkdir gmkdir; do | |
3798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3799 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3800 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3801 | 'mkdir (GNU coreutils) '* | \ | |
3802 | 'mkdir (coreutils) '* | \ | |
3803 | 'mkdir (fileutils) '4.1*) | |
3804 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3805 | break 3;; | |
3806 | esac | |
3807 | done | |
3808 | done | |
3809 | done | |
3810 | IFS=$as_save_IFS | |
3811 | ||
3812 | fi | |
3813 | ||
3814 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3815 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3816 | else | |
3817 | # As a last resort, use the slow shell script. Don't cache a | |
3818 | # value for MKDIR_P within a source directory, because that will | |
3819 | # break other packages using the cache if that directory is | |
3820 | # removed, or if the value is a relative name. | |
3821 | test -d ./--version && rmdir ./--version | |
3822 | MKDIR_P="$ac_install_sh -d" | |
3823 | fi | |
3824 | fi | |
ec6a6fbe AK |
3825 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3826 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3827 | |
d0191583 JM |
3828 | if test -n "$ac_tool_prefix"; then |
3829 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3830 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3831 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3832 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3833 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3834 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3835 | else |
3836 | if test -n "$RANLIB"; then | |
3837 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3838 | else | |
3839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3840 | for as_dir in $PATH | |
3841 | do | |
3842 | IFS=$as_save_IFS | |
3843 | test -z "$as_dir" && as_dir=. | |
3844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3846 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3847 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3848 | break 2 |
3849 | fi | |
3850 | done | |
3851 | done | |
3852 | IFS=$as_save_IFS | |
8106cdd5 | 3853 | |
795ca3e5 | 3854 | fi |
d0191583 JM |
3855 | fi |
3856 | RANLIB=$ac_cv_prog_RANLIB | |
3857 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3858 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3859 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3860 | else |
ec6a6fbe AK |
3861 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3862 | $as_echo "no" >&6; } | |
d0191583 JM |
3863 | fi |
3864 | ||
8106cdd5 | 3865 | |
ad6254c5 | 3866 | fi |
d0191583 JM |
3867 | if test -z "$ac_cv_prog_RANLIB"; then |
3868 | ac_ct_RANLIB=$RANLIB | |
3869 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3870 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3871 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3872 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3873 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3874 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3875 | else |
d0191583 JM |
3876 | if test -n "$ac_ct_RANLIB"; then |
3877 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3878 | else | |
3879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3880 | for as_dir in $PATH | |
8106cdd5 | 3881 | do |
d0191583 JM |
3882 | IFS=$as_save_IFS |
3883 | test -z "$as_dir" && as_dir=. | |
3884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3886 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3887 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3888 | break 2 |
3889 | fi | |
3890 | done | |
3891 | done | |
3892 | IFS=$as_save_IFS | |
3893 | ||
3894 | fi | |
3895 | fi | |
3896 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3897 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3898 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3899 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3900 | else |
ec6a6fbe AK |
3901 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3902 | $as_echo "no" >&6; } | |
d0191583 | 3903 | fi |
ad6254c5 | 3904 | |
d0191583 JM |
3905 | if test "x$ac_ct_RANLIB" = x; then |
3906 | RANLIB=":" | |
3907 | else | |
3908 | case $cross_compiling:$ac_tool_warned in | |
3909 | yes:) | |
ec6a6fbe AK |
3910 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3911 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3912 | ac_tool_warned=yes ;; |
3913 | esac | |
3914 | RANLIB=$ac_ct_RANLIB | |
3915 | fi | |
3916 | else | |
3917 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3918 | fi |
7a197a62 | 3919 | |
d0191583 JM |
3920 | # Extract the first word of "cflow", so it can be a program name with args. |
3921 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3922 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3923 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3924 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3925 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3926 | else |
3927 | case $CFLOW_CMD in | |
3928 | [\\/]* | ?:[\\/]*) | |
3929 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3930 | ;; | |
3931 | *) | |
3932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3933 | for as_dir in $PATH | |
3934 | do | |
3935 | IFS=$as_save_IFS | |
3936 | test -z "$as_dir" && as_dir=. | |
3937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3939 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3940 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3941 | break 2 |
3942 | fi | |
3943 | done | |
3944 | done | |
3945 | IFS=$as_save_IFS | |
ad6254c5 | 3946 | |
d0191583 | 3947 | ;; |
7a197a62 | 3948 | esac |
d0191583 JM |
3949 | fi |
3950 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3951 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
3952 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3953 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 3954 | else |
ec6a6fbe AK |
3955 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3956 | $as_echo "no" >&6; } | |
795ca3e5 | 3957 | fi |
7a197a62 | 3958 | |
ad6254c5 | 3959 | |
d0191583 JM |
3960 | # Extract the first word of "cscope", so it can be a program name with args. |
3961 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
3962 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3963 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3964 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 3965 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3966 | else |
3967 | case $CSCOPE_CMD in | |
3968 | [\\/]* | ?:[\\/]*) | |
3969 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3970 | ;; | |
3971 | *) | |
3972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3973 | for as_dir in $PATH | |
3974 | do | |
3975 | IFS=$as_save_IFS | |
3976 | test -z "$as_dir" && as_dir=. | |
3977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3979 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3980 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3981 | break 2 |
3982 | fi | |
795ca3e5 | 3983 | done |
d0191583 JM |
3984 | done |
3985 | IFS=$as_save_IFS | |
795ca3e5 | 3986 | |
d0191583 JM |
3987 | ;; |
3988 | esac | |
ad6254c5 | 3989 | fi |
d0191583 JM |
3990 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3991 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
3992 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3993 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3994 | else |
ec6a6fbe AK |
3995 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3996 | $as_echo "no" >&6; } | |
795ca3e5 | 3997 | fi |
ad6254c5 | 3998 | |
7a197a62 | 3999 | |
ad6254c5 | 4000 | |
d0191583 JM |
4001 | ################################################################################ |
4002 | ||
4003 | ||
4004 | ||
4005 | ||
4006 | ||
4007 | ac_header_dirent=no | |
4008 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4009 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4010 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4011 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4012 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4013 | $as_echo_n "(cached) " >&6 |
d0191583 | 4014 | else |
ad6254c5 | 4015 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4016 | /* confdefs.h. */ |
4017 | _ACEOF | |
4018 | cat confdefs.h >>conftest.$ac_ext | |
4019 | cat >>conftest.$ac_ext <<_ACEOF | |
4020 | /* end confdefs.h. */ | |
d0191583 JM |
4021 | #include <sys/types.h> |
4022 | #include <$ac_hdr> | |
4023 | ||
4024 | int | |
4025 | main () | |
4026 | { | |
4027 | if ((DIR *) 0) | |
4028 | return 0; | |
4029 | ; | |
4030 | return 0; | |
4031 | } | |
ad6254c5 | 4032 | _ACEOF |
d0191583 JM |
4033 | rm -f conftest.$ac_objext |
4034 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4035 | case "(($ac_try" in |
4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4037 | *) ac_try_echo=$ac_try;; | |
4038 | esac | |
ec6a6fbe AK |
4039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4040 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4041 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4042 | ac_status=$? |
4043 | grep -v '^ *+' conftest.er1 >conftest.err | |
4044 | rm -f conftest.er1 | |
4045 | cat conftest.err >&5 | |
ec6a6fbe | 4046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4047 | (exit $ac_status); } && { |
4048 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4049 | test ! -s conftest.err |
d0191583 JM |
4050 | } && test -s conftest.$ac_objext; then |
4051 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4052 | else |
ec6a6fbe | 4053 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4054 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4055 | |
d0191583 | 4056 | eval "$as_ac_Header=no" |
795ca3e5 | 4057 | fi |
7a197a62 | 4058 | |
d0191583 | 4059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4060 | fi |
ec6a6fbe AK |
4061 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4062 | $as_echo "$as_val"'` | |
4063 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4064 | $as_echo "$ac_res" >&6; } | |
4065 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4066 | $as_echo "$as_val"'` | |
4067 | if test "x$as_val" = x""yes; then | |
d0191583 | 4068 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4069 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4070 | _ACEOF |
795ca3e5 | 4071 | |
d0191583 JM |
4072 | ac_header_dirent=$ac_hdr; break |
4073 | fi | |
ad6254c5 | 4074 | |
d0191583 JM |
4075 | done |
4076 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4077 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4078 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4079 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4080 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4081 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4082 | else |
d0191583 JM |
4083 | ac_func_search_save_LIBS=$LIBS |
4084 | cat >conftest.$ac_ext <<_ACEOF | |
4085 | /* confdefs.h. */ | |
4086 | _ACEOF | |
4087 | cat confdefs.h >>conftest.$ac_ext | |
4088 | cat >>conftest.$ac_ext <<_ACEOF | |
4089 | /* end confdefs.h. */ | |
ad6254c5 | 4090 | |
d0191583 JM |
4091 | /* Override any GCC internal prototype to avoid an error. |
4092 | Use char because int might match the return type of a GCC | |
4093 | builtin and then its argument prototype would still apply. */ | |
4094 | #ifdef __cplusplus | |
4095 | extern "C" | |
4096 | #endif | |
4097 | char opendir (); | |
4098 | int | |
4099 | main () | |
4100 | { | |
4101 | return opendir (); | |
4102 | ; | |
4103 | return 0; | |
4104 | } | |
4105 | _ACEOF | |
4106 | for ac_lib in '' dir; do | |
4107 | if test -z "$ac_lib"; then | |
4108 | ac_res="none required" | |
4109 | else | |
4110 | ac_res=-l$ac_lib | |
4111 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4112 | fi | |
4113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4114 | if { (ac_try="$ac_link" | |
4115 | case "(($ac_try" in | |
4116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4117 | *) ac_try_echo=$ac_try;; | |
4118 | esac | |
ec6a6fbe AK |
4119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4120 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4121 | (eval "$ac_link") 2>conftest.er1 |
4122 | ac_status=$? | |
4123 | grep -v '^ *+' conftest.er1 >conftest.err | |
4124 | rm -f conftest.er1 | |
4125 | cat conftest.err >&5 | |
ec6a6fbe | 4126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4127 | (exit $ac_status); } && { |
4128 | test -z "$ac_c_werror_flag" || | |
4129 | test ! -s conftest.err | |
ec6a6fbe AK |
4130 | } && test -s conftest$ac_exeext && { |
4131 | test "$cross_compiling" = yes || | |
4132 | $as_test_x conftest$ac_exeext | |
4133 | }; then | |
d0191583 JM |
4134 | ac_cv_search_opendir=$ac_res |
4135 | else | |
ec6a6fbe | 4136 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4137 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4138 | |
ad6254c5 | 4139 | |
795ca3e5 | 4140 | fi |
ad6254c5 | 4141 | |
ec6a6fbe | 4142 | rm -rf conftest.dSYM |
d0191583 JM |
4143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4144 | conftest$ac_exeext | |
4145 | if test "${ac_cv_search_opendir+set}" = set; then | |
4146 | break | |
7a197a62 | 4147 | fi |
d0191583 JM |
4148 | done |
4149 | if test "${ac_cv_search_opendir+set}" = set; then | |
4150 | : | |
7a197a62 | 4151 | else |
d0191583 | 4152 | ac_cv_search_opendir=no |
7a197a62 | 4153 | fi |
d0191583 JM |
4154 | rm conftest.$ac_ext |
4155 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4156 | fi |
ec6a6fbe AK |
4157 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4158 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4159 | ac_res=$ac_cv_search_opendir |
4160 | if test "$ac_res" != no; then | |
4161 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4162 | |
d0191583 | 4163 | fi |
7a197a62 | 4164 | |
7a197a62 | 4165 | else |
ec6a6fbe AK |
4166 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4167 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4168 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4169 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4170 | else |
d0191583 JM |
4171 | ac_func_search_save_LIBS=$LIBS |
4172 | cat >conftest.$ac_ext <<_ACEOF | |
4173 | /* confdefs.h. */ | |
4174 | _ACEOF | |
4175 | cat confdefs.h >>conftest.$ac_ext | |
4176 | cat >>conftest.$ac_ext <<_ACEOF | |
4177 | /* end confdefs.h. */ | |
7a197a62 | 4178 | |
d0191583 JM |
4179 | /* Override any GCC internal prototype to avoid an error. |
4180 | Use char because int might match the return type of a GCC | |
4181 | builtin and then its argument prototype would still apply. */ | |
4182 | #ifdef __cplusplus | |
4183 | extern "C" | |
4184 | #endif | |
4185 | char opendir (); | |
4186 | int | |
4187 | main () | |
4188 | { | |
4189 | return opendir (); | |
4190 | ; | |
4191 | return 0; | |
4192 | } | |
4193 | _ACEOF | |
4194 | for ac_lib in '' x; do | |
4195 | if test -z "$ac_lib"; then | |
4196 | ac_res="none required" | |
4197 | else | |
4198 | ac_res=-l$ac_lib | |
4199 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4200 | fi | |
4201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4202 | if { (ac_try="$ac_link" | |
4203 | case "(($ac_try" in | |
4204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4205 | *) ac_try_echo=$ac_try;; | |
4206 | esac | |
ec6a6fbe AK |
4207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4208 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4209 | (eval "$ac_link") 2>conftest.er1 |
4210 | ac_status=$? | |
4211 | grep -v '^ *+' conftest.er1 >conftest.err | |
4212 | rm -f conftest.er1 | |
4213 | cat conftest.err >&5 | |
ec6a6fbe | 4214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4215 | (exit $ac_status); } && { |
4216 | test -z "$ac_c_werror_flag" || | |
4217 | test ! -s conftest.err | |
ec6a6fbe AK |
4218 | } && test -s conftest$ac_exeext && { |
4219 | test "$cross_compiling" = yes || | |
4220 | $as_test_x conftest$ac_exeext | |
4221 | }; then | |
d0191583 JM |
4222 | ac_cv_search_opendir=$ac_res |
4223 | else | |
ec6a6fbe | 4224 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4225 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4226 | |
4227 | ||
4228 | fi | |
4229 | ||
ec6a6fbe | 4230 | rm -rf conftest.dSYM |
d0191583 JM |
4231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4232 | conftest$ac_exeext | |
4233 | if test "${ac_cv_search_opendir+set}" = set; then | |
4234 | break | |
7a197a62 | 4235 | fi |
d0191583 JM |
4236 | done |
4237 | if test "${ac_cv_search_opendir+set}" = set; then | |
4238 | : | |
7a197a62 | 4239 | else |
d0191583 | 4240 | ac_cv_search_opendir=no |
7a197a62 | 4241 | fi |
d0191583 JM |
4242 | rm conftest.$ac_ext |
4243 | LIBS=$ac_func_search_save_LIBS | |
4244 | fi | |
ec6a6fbe AK |
4245 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4246 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4247 | ac_res=$ac_cv_search_opendir |
4248 | if test "$ac_res" != no; then | |
4249 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4250 | |
7a197a62 | 4251 | fi |
7a197a62 | 4252 | |
d0191583 | 4253 | fi |
7a197a62 | 4254 | |
ec6a6fbe AK |
4255 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4256 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4257 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4258 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4259 | else |
4260 | cat >conftest.$ac_ext <<_ACEOF | |
4261 | /* confdefs.h. */ | |
4262 | _ACEOF | |
4263 | cat confdefs.h >>conftest.$ac_ext | |
4264 | cat >>conftest.$ac_ext <<_ACEOF | |
4265 | /* end confdefs.h. */ | |
4266 | #include <stdlib.h> | |
4267 | #include <stdarg.h> | |
4268 | #include <string.h> | |
4269 | #include <float.h> | |
4270 | ||
4271 | int | |
4272 | main () | |
4273 | { | |
4274 | ||
4275 | ; | |
4276 | return 0; | |
4277 | } | |
4278 | _ACEOF | |
4279 | rm -f conftest.$ac_objext | |
4280 | if { (ac_try="$ac_compile" | |
4281 | case "(($ac_try" in | |
4282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4283 | *) ac_try_echo=$ac_try;; | |
4284 | esac | |
ec6a6fbe AK |
4285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4286 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4287 | (eval "$ac_compile") 2>conftest.er1 |
4288 | ac_status=$? | |
4289 | grep -v '^ *+' conftest.er1 >conftest.err | |
4290 | rm -f conftest.er1 | |
4291 | cat conftest.err >&5 | |
ec6a6fbe | 4292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4293 | (exit $ac_status); } && { |
4294 | test -z "$ac_c_werror_flag" || | |
4295 | test ! -s conftest.err | |
4296 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4297 | ac_cv_header_stdc=yes |
4298 | else | |
ec6a6fbe | 4299 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4300 | sed 's/^/| /' conftest.$ac_ext >&5 |
4301 | ||
4302 | ac_cv_header_stdc=no | |
4303 | fi | |
4304 | ||
4305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4306 | ||
4307 | if test $ac_cv_header_stdc = yes; then | |
4308 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4309 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4310 | /* confdefs.h. */ |
4311 | _ACEOF | |
4312 | cat confdefs.h >>conftest.$ac_ext | |
4313 | cat >>conftest.$ac_ext <<_ACEOF | |
4314 | /* end confdefs.h. */ | |
4315 | #include <string.h> | |
8106cdd5 | 4316 | |
ad6254c5 AK |
4317 | _ACEOF |
4318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4319 | $EGREP "memchr" >/dev/null 2>&1; then | |
4320 | : | |
4321 | else | |
4322 | ac_cv_header_stdc=no | |
80992638 | 4323 | fi |
ad6254c5 | 4324 | rm -f conftest* |
795ca3e5 AK |
4325 | |
4326 | fi | |
4327 | ||
ad6254c5 AK |
4328 | if test $ac_cv_header_stdc = yes; then |
4329 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4330 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4331 | /* confdefs.h. */ |
4332 | _ACEOF | |
4333 | cat confdefs.h >>conftest.$ac_ext | |
4334 | cat >>conftest.$ac_ext <<_ACEOF | |
4335 | /* end confdefs.h. */ | |
80992638 | 4336 | #include <stdlib.h> |
ad6254c5 AK |
4337 | |
4338 | _ACEOF | |
80992638 | 4339 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4340 | $EGREP "free" >/dev/null 2>&1; then |
4341 | : | |
795ca3e5 | 4342 | else |
ad6254c5 | 4343 | ac_cv_header_stdc=no |
795ca3e5 | 4344 | fi |
80992638 | 4345 | rm -f conftest* |
8106cdd5 | 4346 | |
795ca3e5 AK |
4347 | fi |
4348 | ||
ad6254c5 AK |
4349 | if test $ac_cv_header_stdc = yes; then |
4350 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4351 | if test "$cross_compiling" = yes; then | |
4352 | : | |
795ca3e5 | 4353 | else |
ad6254c5 | 4354 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4355 | /* confdefs.h. */ |
4356 | _ACEOF | |
4357 | cat confdefs.h >>conftest.$ac_ext | |
4358 | cat >>conftest.$ac_ext <<_ACEOF | |
4359 | /* end confdefs.h. */ | |
4360 | #include <ctype.h> | |
7a197a62 | 4361 | #include <stdlib.h> |
ad6254c5 AK |
4362 | #if ((' ' & 0x0FF) == 0x020) |
4363 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4364 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4365 | #else | |
4366 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4367 | (('a' <= (c) && (c) <= 'i') \ |
4368 | || ('j' <= (c) && (c) <= 'r') \ | |
4369 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4370 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4371 | #endif |
ad6254c5 AK |
4372 | |
4373 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4374 | int | |
4375 | main () | |
4376 | { | |
4377 | int i; | |
4378 | for (i = 0; i < 256; i++) | |
4379 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4380 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4381 | return 2; |
4382 | return 0; | |
ad6254c5 AK |
4383 | } |
4384 | _ACEOF | |
4385 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4386 | if { (ac_try="$ac_link" |
4387 | case "(($ac_try" in | |
4388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4389 | *) ac_try_echo=$ac_try;; | |
4390 | esac | |
ec6a6fbe AK |
4391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4392 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4393 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4394 | ac_status=$? |
ec6a6fbe | 4395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4396 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4397 | { (case "(($ac_try" in |
4398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4399 | *) ac_try_echo=$ac_try;; | |
4400 | esac | |
ec6a6fbe AK |
4401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4402 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4403 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4404 | ac_status=$? |
ec6a6fbe | 4405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4406 | (exit $ac_status); }; }; then |
4407 | : | |
795ca3e5 | 4408 | else |
ec6a6fbe AK |
4409 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4410 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4411 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4412 | |
ad6254c5 AK |
4413 | ( exit $ac_status ) |
4414 | ac_cv_header_stdc=no | |
80992638 | 4415 | fi |
ec6a6fbe | 4416 | rm -rf conftest.dSYM |
7a197a62 | 4417 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4418 | fi |
7a197a62 AK |
4419 | |
4420 | ||
ad6254c5 AK |
4421 | fi |
4422 | fi | |
ec6a6fbe AK |
4423 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4424 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4425 | if test $ac_cv_header_stdc = yes; then |
4426 | ||
4427 | cat >>confdefs.h <<\_ACEOF | |
4428 | #define STDC_HEADERS 1 | |
4429 | _ACEOF | |
795ca3e5 AK |
4430 | |
4431 | fi | |
4432 | ||
ec6a6fbe AK |
4433 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4434 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4435 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4436 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4437 | else |
ad6254c5 | 4438 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4439 | /* confdefs.h. */ |
4440 | _ACEOF | |
4441 | cat confdefs.h >>conftest.$ac_ext | |
4442 | cat >>conftest.$ac_ext <<_ACEOF | |
4443 | /* end confdefs.h. */ | |
80992638 | 4444 | #include <sys/types.h> |
ad6254c5 AK |
4445 | #include <sys/wait.h> |
4446 | #ifndef WEXITSTATUS | |
7a197a62 | 4447 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4448 | #endif |
4449 | #ifndef WIFEXITED | |
4450 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4451 | #endif | |
4452 | ||
4453 | int | |
4454 | main () | |
4455 | { | |
4456 | int s; | |
4457 | wait (&s); | |
4458 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4459 | ; | |
4460 | return 0; | |
4461 | } | |
4462 | _ACEOF | |
4463 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4464 | if { (ac_try="$ac_compile" |
4465 | case "(($ac_try" in | |
4466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4467 | *) ac_try_echo=$ac_try;; | |
4468 | esac | |
ec6a6fbe AK |
4469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4470 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4471 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4472 | ac_status=$? |
8a2fc586 AK |
4473 | grep -v '^ *+' conftest.er1 >conftest.err |
4474 | rm -f conftest.er1 | |
4475 | cat conftest.err >&5 | |
ec6a6fbe | 4476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4477 | (exit $ac_status); } && { |
4478 | test -z "$ac_c_werror_flag" || | |
4479 | test ! -s conftest.err | |
4480 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4481 | ac_cv_header_sys_wait_h=yes |
4482 | else | |
ec6a6fbe | 4483 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4484 | sed 's/^/| /' conftest.$ac_ext >&5 |
4485 | ||
7a197a62 | 4486 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4487 | fi |
7a197a62 AK |
4488 | |
4489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4490 | fi |
ec6a6fbe AK |
4491 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4492 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4493 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4494 | |
ad6254c5 AK |
4495 | cat >>confdefs.h <<\_ACEOF |
4496 | #define HAVE_SYS_WAIT_H 1 | |
4497 | _ACEOF | |
795ca3e5 AK |
4498 | |
4499 | fi | |
4500 | ||
ec6a6fbe AK |
4501 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4502 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4503 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4504 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4505 | else |
ad6254c5 | 4506 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4507 | /* confdefs.h. */ |
4508 | _ACEOF | |
4509 | cat confdefs.h >>conftest.$ac_ext | |
4510 | cat >>conftest.$ac_ext <<_ACEOF | |
4511 | /* end confdefs.h. */ | |
795ca3e5 AK |
4512 | #include <sys/types.h> |
4513 | #include <sys/time.h> | |
4514 | #include <time.h> | |
ad6254c5 AK |
4515 | |
4516 | int | |
4517 | main () | |
4518 | { | |
4519 | if ((struct tm *) 0) | |
4520 | return 0; | |
4521 | ; | |
4522 | return 0; | |
4523 | } | |
4524 | _ACEOF | |
4525 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4526 | if { (ac_try="$ac_compile" |
4527 | case "(($ac_try" in | |
4528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4529 | *) ac_try_echo=$ac_try;; | |
4530 | esac | |
ec6a6fbe AK |
4531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4532 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4533 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4534 | ac_status=$? |
8a2fc586 AK |
4535 | grep -v '^ *+' conftest.er1 >conftest.err |
4536 | rm -f conftest.er1 | |
4537 | cat conftest.err >&5 | |
ec6a6fbe | 4538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4539 | (exit $ac_status); } && { |
4540 | test -z "$ac_c_werror_flag" || | |
4541 | test ! -s conftest.err | |
4542 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4543 | ac_cv_header_time=yes |
4544 | else | |
ec6a6fbe | 4545 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4546 | sed 's/^/| /' conftest.$ac_ext >&5 |
4547 | ||
7a197a62 | 4548 | ac_cv_header_time=no |
795ca3e5 | 4549 | fi |
7a197a62 AK |
4550 | |
4551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4552 | fi |
ec6a6fbe AK |
4553 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4554 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4555 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4556 | |
4557 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4558 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4559 | _ACEOF |
b896caa1 | 4560 | |
8106cdd5 | 4561 | fi |
b896caa1 | 4562 | |
b896caa1 | 4563 | |
d0191583 JM |
4564 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4565 | ||
4566 | ||
4567 | ||
4568 | ||
4569 | ||
4570 | ||
4571 | ||
4572 | ||
4573 | ||
4574 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4575 | inttypes.h stdint.h unistd.h | |
4576 | do | |
ec6a6fbe AK |
4577 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4578 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4579 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4580 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4581 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4582 | else |
4583 | cat >conftest.$ac_ext <<_ACEOF | |
4584 | /* confdefs.h. */ | |
4585 | _ACEOF | |
4586 | cat confdefs.h >>conftest.$ac_ext | |
4587 | cat >>conftest.$ac_ext <<_ACEOF | |
4588 | /* end confdefs.h. */ | |
4589 | $ac_includes_default | |
4590 | ||
4591 | #include <$ac_header> | |
4592 | _ACEOF | |
4593 | rm -f conftest.$ac_objext | |
4594 | if { (ac_try="$ac_compile" | |
4595 | case "(($ac_try" in | |
4596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4597 | *) ac_try_echo=$ac_try;; | |
4598 | esac | |
ec6a6fbe AK |
4599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4600 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4601 | (eval "$ac_compile") 2>conftest.er1 |
4602 | ac_status=$? | |
4603 | grep -v '^ *+' conftest.er1 >conftest.err | |
4604 | rm -f conftest.er1 | |
4605 | cat conftest.err >&5 | |
ec6a6fbe | 4606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4607 | (exit $ac_status); } && { |
4608 | test -z "$ac_c_werror_flag" || | |
4609 | test ! -s conftest.err | |
4610 | } && test -s conftest.$ac_objext; then | |
4611 | eval "$as_ac_Header=yes" | |
4612 | else | |
ec6a6fbe | 4613 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4614 | sed 's/^/| /' conftest.$ac_ext >&5 |
4615 | ||
4616 | eval "$as_ac_Header=no" | |
4617 | fi | |
4618 | ||
4619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4620 | fi | |
ec6a6fbe AK |
4621 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4622 | $as_echo "$as_val"'` | |
4623 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4624 | $as_echo "$ac_res" >&6; } | |
4625 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4626 | $as_echo "$as_val"'` | |
4627 | if test "x$as_val" = x""yes; then | |
d0191583 | 4628 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4629 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4630 | _ACEOF |
4631 | ||
4632 | fi | |
4633 | ||
4634 | done | |
4635 | ||
b896caa1 | 4636 | |
b896caa1 AK |
4637 | |
4638 | ||
795ca3e5 | 4639 | |
8106cdd5 | 4640 | |
80992638 | 4641 | |
795ca3e5 | 4642 | |
a38df97f | 4643 | |
80992638 | 4644 | |
d0191583 JM |
4645 | |
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4651 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4652 | do |
ec6a6fbe | 4653 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4654 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4655 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4656 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4657 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4658 | $as_echo_n "(cached) " >&6 |
d0191583 | 4659 | fi |
ec6a6fbe AK |
4660 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4661 | $as_echo "$as_val"'` | |
4662 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4663 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4664 | else |
d0191583 | 4665 | # Is the header compilable? |
ec6a6fbe AK |
4666 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4667 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4668 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4669 | /* confdefs.h. */ |
4670 | _ACEOF | |
4671 | cat confdefs.h >>conftest.$ac_ext | |
4672 | cat >>conftest.$ac_ext <<_ACEOF | |
4673 | /* end confdefs.h. */ | |
4674 | $ac_includes_default | |
ad6254c5 AK |
4675 | #include <$ac_header> |
4676 | _ACEOF | |
4677 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4678 | if { (ac_try="$ac_compile" |
4679 | case "(($ac_try" in | |
4680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4681 | *) ac_try_echo=$ac_try;; | |
4682 | esac | |
ec6a6fbe AK |
4683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4684 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4685 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4686 | ac_status=$? |
8a2fc586 AK |
4687 | grep -v '^ *+' conftest.er1 >conftest.err |
4688 | rm -f conftest.er1 | |
4689 | cat conftest.err >&5 | |
ec6a6fbe | 4690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4691 | (exit $ac_status); } && { |
4692 | test -z "$ac_c_werror_flag" || | |
4693 | test ! -s conftest.err | |
4694 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4695 | ac_header_compiler=yes |
ad6254c5 | 4696 | else |
ec6a6fbe | 4697 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4698 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4699 | |
d0191583 | 4700 | ac_header_compiler=no |
ad6254c5 | 4701 | fi |
7a197a62 AK |
4702 | |
4703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4704 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4705 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4706 | |
4707 | # Is the header present? | |
ec6a6fbe AK |
4708 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4709 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4710 | cat >conftest.$ac_ext <<_ACEOF |
4711 | /* confdefs.h. */ | |
4712 | _ACEOF | |
4713 | cat confdefs.h >>conftest.$ac_ext | |
4714 | cat >>conftest.$ac_ext <<_ACEOF | |
4715 | /* end confdefs.h. */ | |
4716 | #include <$ac_header> | |
4717 | _ACEOF | |
4718 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4719 | case "(($ac_try" in | |
4720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4721 | *) ac_try_echo=$ac_try;; | |
4722 | esac | |
ec6a6fbe AK |
4723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4724 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4725 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4726 | ac_status=$? | |
4727 | grep -v '^ *+' conftest.er1 >conftest.err | |
4728 | rm -f conftest.er1 | |
4729 | cat conftest.err >&5 | |
ec6a6fbe | 4730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4731 | (exit $ac_status); } >/dev/null && { |
4732 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4733 | test ! -s conftest.err | |
4734 | }; then | |
4735 | ac_header_preproc=yes | |
4736 | else | |
ec6a6fbe | 4737 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4738 | sed 's/^/| /' conftest.$ac_ext >&5 |
4739 | ||
4740 | ac_header_preproc=no | |
4741 | fi | |
4742 | ||
4743 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4744 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4745 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4746 | |
4747 | # So? What about this header? | |
4748 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4749 | yes:no: ) | |
ec6a6fbe AK |
4750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4751 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4753 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4754 | ac_header_preproc=yes |
4755 | ;; | |
4756 | no:yes:* ) | |
ec6a6fbe AK |
4757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4758 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4759 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4760 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4761 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4762 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4764 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4766 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4768 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4769 | |
4770 | ;; | |
4771 | esac | |
ec6a6fbe AK |
4772 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4773 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4774 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4775 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4776 | else |
4777 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4778 | fi |
ec6a6fbe AK |
4779 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4780 | $as_echo "$as_val"'` | |
4781 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4782 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4783 | |
4784 | fi | |
ec6a6fbe AK |
4785 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4786 | $as_echo "$as_val"'` | |
4787 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4788 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4789 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4790 | _ACEOF |
a38df97f | 4791 | |
d0191583 | 4792 | else |
ec6a6fbe AK |
4793 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4794 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4795 | { (exit 1); exit 1; }; } |
80992638 AK |
4796 | fi |
4797 | ||
ad6254c5 AK |
4798 | done |
4799 | ||
7d1552c9 | 4800 | |
d0191583 JM |
4801 | case "$host_os" in |
4802 | linux*) | |
7d1552c9 | 4803 | |
80992638 | 4804 | |
5a52dca9 | 4805 | |
d0191583 | 4806 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4807 | do |
ec6a6fbe | 4808 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4809 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4810 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4811 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4812 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4813 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4814 | fi |
ec6a6fbe AK |
4815 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4816 | $as_echo "$as_val"'` | |
4817 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4818 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4819 | else |
4820 | # Is the header compilable? | |
ec6a6fbe AK |
4821 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4822 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4823 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4824 | /* confdefs.h. */ |
4825 | _ACEOF | |
4826 | cat confdefs.h >>conftest.$ac_ext | |
4827 | cat >>conftest.$ac_ext <<_ACEOF | |
4828 | /* end confdefs.h. */ | |
4829 | $ac_includes_default | |
4830 | #include <$ac_header> | |
4831 | _ACEOF | |
4832 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4833 | if { (ac_try="$ac_compile" |
4834 | case "(($ac_try" in | |
4835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4836 | *) ac_try_echo=$ac_try;; | |
4837 | esac | |
ec6a6fbe AK |
4838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4839 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4840 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4841 | ac_status=$? |
8a2fc586 AK |
4842 | grep -v '^ *+' conftest.er1 >conftest.err |
4843 | rm -f conftest.er1 | |
4844 | cat conftest.err >&5 | |
ec6a6fbe | 4845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4846 | (exit $ac_status); } && { |
4847 | test -z "$ac_c_werror_flag" || | |
4848 | test ! -s conftest.err | |
4849 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4850 | ac_header_compiler=yes |
4851 | else | |
ec6a6fbe | 4852 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4853 | sed 's/^/| /' conftest.$ac_ext >&5 |
4854 | ||
4855 | ac_header_compiler=no | |
4856 | fi | |
4857 | ||
4858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4859 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4860 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4861 | |
4862 | # Is the header present? | |
ec6a6fbe AK |
4863 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4864 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4865 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4866 | /* confdefs.h. */ |
4867 | _ACEOF | |
4868 | cat confdefs.h >>conftest.$ac_ext | |
4869 | cat >>conftest.$ac_ext <<_ACEOF | |
4870 | /* end confdefs.h. */ | |
4871 | #include <$ac_header> | |
4872 | _ACEOF | |
7a197a62 AK |
4873 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4874 | case "(($ac_try" in | |
4875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4876 | *) ac_try_echo=$ac_try;; | |
4877 | esac | |
ec6a6fbe AK |
4878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4879 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4880 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4881 | ac_status=$? |
4882 | grep -v '^ *+' conftest.er1 >conftest.err | |
4883 | rm -f conftest.er1 | |
4884 | cat conftest.err >&5 | |
ec6a6fbe | 4885 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4886 | (exit $ac_status); } >/dev/null && { |
4887 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4888 | test ! -s conftest.err | |
4889 | }; then | |
ad6254c5 AK |
4890 | ac_header_preproc=yes |
4891 | else | |
ec6a6fbe | 4892 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4893 | sed 's/^/| /' conftest.$ac_ext >&5 |
4894 | ||
4895 | ac_header_preproc=no | |
4896 | fi | |
7a197a62 | 4897 | |
ad6254c5 | 4898 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4899 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4900 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4901 | |
4902 | # So? What about this header? | |
8a2fc586 AK |
4903 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4904 | yes:no: ) | |
ec6a6fbe AK |
4905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4906 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4908 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4909 | ac_header_preproc=yes |
ad6254c5 | 4910 | ;; |
8a2fc586 | 4911 | no:yes:* ) |
ec6a6fbe AK |
4912 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4913 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4914 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4915 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4916 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4917 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4918 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4919 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4920 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4921 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4922 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4923 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4924 | |
ad6254c5 AK |
4925 | ;; |
4926 | esac | |
ec6a6fbe AK |
4927 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4928 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4930 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4931 | else |
8a2fc586 | 4932 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4933 | fi |
ec6a6fbe AK |
4934 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4935 | $as_echo "$as_val"'` | |
4936 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4937 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4938 | |
4939 | fi | |
ec6a6fbe AK |
4940 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4941 | $as_echo "$as_val"'` | |
4942 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4943 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4944 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4945 | _ACEOF |
b896caa1 | 4946 | |
d8ac0fbc | 4947 | else |
ec6a6fbe AK |
4948 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4949 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4950 | { (exit 1); exit 1; }; } |
80992638 AK |
4951 | fi |
4952 | ||
ad6254c5 | 4953 | done |
d0191583 JM |
4954 | ;; |
4955 | darwin*) | |
d8ac0fbc | 4956 | |
d8ac0fbc | 4957 | |
d0191583 | 4958 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4959 | do |
ec6a6fbe | 4960 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4961 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4962 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4963 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4964 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4965 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4966 | fi |
ec6a6fbe AK |
4967 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4968 | $as_echo "$as_val"'` | |
4969 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4970 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4971 | else |
4972 | # Is the header compilable? | |
ec6a6fbe AK |
4973 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4974 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4975 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4976 | /* confdefs.h. */ |
4977 | _ACEOF | |
4978 | cat confdefs.h >>conftest.$ac_ext | |
4979 | cat >>conftest.$ac_ext <<_ACEOF | |
4980 | /* end confdefs.h. */ | |
4981 | $ac_includes_default | |
4982 | #include <$ac_header> | |
4983 | _ACEOF | |
4984 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4985 | if { (ac_try="$ac_compile" |
4986 | case "(($ac_try" in | |
4987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4988 | *) ac_try_echo=$ac_try;; | |
4989 | esac | |
ec6a6fbe AK |
4990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4991 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4992 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4993 | ac_status=$? |
8a2fc586 AK |
4994 | grep -v '^ *+' conftest.er1 >conftest.err |
4995 | rm -f conftest.er1 | |
4996 | cat conftest.err >&5 | |
ec6a6fbe | 4997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4998 | (exit $ac_status); } && { |
4999 | test -z "$ac_c_werror_flag" || | |
5000 | test ! -s conftest.err | |
5001 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5002 | ac_header_compiler=yes |
5003 | else | |
ec6a6fbe | 5004 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5005 | sed 's/^/| /' conftest.$ac_ext >&5 |
5006 | ||
7a197a62 | 5007 | ac_header_compiler=no |
ad6254c5 | 5008 | fi |
7a197a62 AK |
5009 | |
5010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5011 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5012 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5013 | |
5014 | # Is the header present? | |
ec6a6fbe AK |
5015 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5016 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5017 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5018 | /* confdefs.h. */ |
5019 | _ACEOF | |
5020 | cat confdefs.h >>conftest.$ac_ext | |
5021 | cat >>conftest.$ac_ext <<_ACEOF | |
5022 | /* end confdefs.h. */ | |
5023 | #include <$ac_header> | |
5024 | _ACEOF | |
7a197a62 AK |
5025 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5026 | case "(($ac_try" in | |
5027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5028 | *) ac_try_echo=$ac_try;; | |
5029 | esac | |
ec6a6fbe AK |
5030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5031 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5032 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5033 | ac_status=$? |
5034 | grep -v '^ *+' conftest.er1 >conftest.err | |
5035 | rm -f conftest.er1 | |
5036 | cat conftest.err >&5 | |
ec6a6fbe | 5037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5038 | (exit $ac_status); } >/dev/null && { |
5039 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5040 | test ! -s conftest.err | |
5041 | }; then | |
ad6254c5 AK |
5042 | ac_header_preproc=yes |
5043 | else | |
ec6a6fbe | 5044 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5045 | sed 's/^/| /' conftest.$ac_ext >&5 |
5046 | ||
5047 | ac_header_preproc=no | |
5048 | fi | |
7a197a62 | 5049 | |
ad6254c5 | 5050 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5051 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5052 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5053 | |
5054 | # So? What about this header? | |
8a2fc586 AK |
5055 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5056 | yes:no: ) | |
ec6a6fbe AK |
5057 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5058 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5059 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5060 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5061 | ac_header_preproc=yes |
ad6254c5 | 5062 | ;; |
8a2fc586 | 5063 | no:yes:* ) |
ec6a6fbe AK |
5064 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5065 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5066 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5067 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5068 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5069 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5070 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5071 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5072 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5073 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5074 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5075 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5076 | |
ad6254c5 AK |
5077 | ;; |
5078 | esac | |
ec6a6fbe AK |
5079 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5080 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5082 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5083 | else |
8a2fc586 | 5084 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5085 | fi |
ec6a6fbe AK |
5086 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5087 | $as_echo "$as_val"'` | |
5088 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5089 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5090 | |
5091 | fi | |
ec6a6fbe AK |
5092 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5093 | $as_echo "$as_val"'` | |
5094 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5095 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5096 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5097 | _ACEOF |
4922197a | 5098 | |
4922197a | 5099 | else |
ec6a6fbe AK |
5100 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5101 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5102 | { (exit 1); exit 1; }; } |
80992638 AK |
5103 | fi |
5104 | ||
ad6254c5 | 5105 | done |
d0191583 JM |
5106 | ;; |
5107 | esac | |
4922197a | 5108 | |
4922197a | 5109 | |
4922197a | 5110 | |
ad6254c5 AK |
5111 | |
5112 | ||
d0191583 JM |
5113 | |
5114 | ||
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | ||
5120 | ||
5121 | ||
5122 | ||
5123 | ||
5124 | ||
5125 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5126 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5127 | sys/types.h unistd.h | |
ad6254c5 | 5128 | do |
ec6a6fbe | 5129 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5131 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5132 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5133 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5134 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5135 | fi |
ec6a6fbe AK |
5136 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5137 | $as_echo "$as_val"'` | |
5138 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5139 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5140 | else |
ad6254c5 | 5141 | # Is the header compilable? |
ec6a6fbe AK |
5142 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5143 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5144 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5145 | /* confdefs.h. */ |
5146 | _ACEOF | |
5147 | cat confdefs.h >>conftest.$ac_ext | |
5148 | cat >>conftest.$ac_ext <<_ACEOF | |
5149 | /* end confdefs.h. */ | |
5150 | $ac_includes_default | |
5151 | #include <$ac_header> | |
5152 | _ACEOF | |
5153 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5154 | if { (ac_try="$ac_compile" |
5155 | case "(($ac_try" in | |
5156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5157 | *) ac_try_echo=$ac_try;; | |
5158 | esac | |
ec6a6fbe AK |
5159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5160 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5161 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5162 | ac_status=$? |
8a2fc586 AK |
5163 | grep -v '^ *+' conftest.er1 >conftest.err |
5164 | rm -f conftest.er1 | |
5165 | cat conftest.err >&5 | |
ec6a6fbe | 5166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5167 | (exit $ac_status); } && { |
5168 | test -z "$ac_c_werror_flag" || | |
5169 | test ! -s conftest.err | |
5170 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5171 | ac_header_compiler=yes |
5172 | else | |
ec6a6fbe | 5173 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5174 | sed 's/^/| /' conftest.$ac_ext >&5 |
5175 | ||
7a197a62 | 5176 | ac_header_compiler=no |
ad6254c5 | 5177 | fi |
7a197a62 AK |
5178 | |
5179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5180 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5181 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5182 | |
5183 | # Is the header present? | |
ec6a6fbe AK |
5184 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5185 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5186 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5187 | /* confdefs.h. */ |
5188 | _ACEOF | |
5189 | cat confdefs.h >>conftest.$ac_ext | |
5190 | cat >>conftest.$ac_ext <<_ACEOF | |
5191 | /* end confdefs.h. */ | |
5192 | #include <$ac_header> | |
5193 | _ACEOF | |
7a197a62 AK |
5194 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5195 | case "(($ac_try" in | |
5196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5197 | *) ac_try_echo=$ac_try;; | |
5198 | esac | |
ec6a6fbe AK |
5199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5200 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5201 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5202 | ac_status=$? |
5203 | grep -v '^ *+' conftest.er1 >conftest.err | |
5204 | rm -f conftest.er1 | |
5205 | cat conftest.err >&5 | |
ec6a6fbe | 5206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5207 | (exit $ac_status); } >/dev/null && { |
5208 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5209 | test ! -s conftest.err | |
5210 | }; then | |
ad6254c5 AK |
5211 | ac_header_preproc=yes |
5212 | else | |
ec6a6fbe | 5213 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5214 | sed 's/^/| /' conftest.$ac_ext >&5 |
5215 | ||
5216 | ac_header_preproc=no | |
5217 | fi | |
7a197a62 | 5218 | |
ad6254c5 | 5219 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5220 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5221 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5222 | |
5223 | # So? What about this header? | |
8a2fc586 AK |
5224 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5225 | yes:no: ) | |
ec6a6fbe AK |
5226 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5227 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5228 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5229 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5230 | ac_header_preproc=yes |
ad6254c5 | 5231 | ;; |
8a2fc586 | 5232 | no:yes:* ) |
ec6a6fbe AK |
5233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5234 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5236 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5238 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5240 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5242 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5243 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5244 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5245 | |
ad6254c5 AK |
5246 | ;; |
5247 | esac | |
ec6a6fbe AK |
5248 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5249 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5250 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5251 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5252 | else |
8a2fc586 | 5253 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5254 | fi |
ec6a6fbe AK |
5255 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5256 | $as_echo "$as_val"'` | |
5257 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5258 | $as_echo "$ac_res" >&6; } | |
80992638 | 5259 | |
ad6254c5 | 5260 | fi |
ec6a6fbe AK |
5261 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5262 | $as_echo "$as_val"'` | |
5263 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5264 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5265 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5266 | _ACEOF |
795ca3e5 | 5267 | |
795ca3e5 | 5268 | else |
ec6a6fbe AK |
5269 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5270 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5271 | { (exit 1); exit 1; }; } |
80992638 AK |
5272 | fi |
5273 | ||
ad6254c5 | 5274 | done |
ad6254c5 | 5275 | |
795ca3e5 | 5276 | |
d0191583 JM |
5277 | |
5278 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5279 | do |
ec6a6fbe | 5280 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5282 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5283 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5284 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5285 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5286 | fi |
ec6a6fbe AK |
5287 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5288 | $as_echo "$as_val"'` | |
5289 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5290 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5291 | else |
5292 | # Is the header compilable? | |
ec6a6fbe AK |
5293 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5294 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5295 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5296 | /* confdefs.h. */ |
5297 | _ACEOF | |
5298 | cat confdefs.h >>conftest.$ac_ext | |
5299 | cat >>conftest.$ac_ext <<_ACEOF | |
5300 | /* end confdefs.h. */ | |
5301 | $ac_includes_default | |
5302 | #include <$ac_header> | |
5303 | _ACEOF | |
5304 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5305 | if { (ac_try="$ac_compile" |
5306 | case "(($ac_try" in | |
5307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5308 | *) ac_try_echo=$ac_try;; | |
5309 | esac | |
ec6a6fbe AK |
5310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5311 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5312 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5313 | ac_status=$? |
8a2fc586 AK |
5314 | grep -v '^ *+' conftest.er1 >conftest.err |
5315 | rm -f conftest.er1 | |
5316 | cat conftest.err >&5 | |
ec6a6fbe | 5317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5318 | (exit $ac_status); } && { |
5319 | test -z "$ac_c_werror_flag" || | |
5320 | test ! -s conftest.err | |
5321 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5322 | ac_header_compiler=yes |
5323 | else | |
ec6a6fbe | 5324 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5325 | sed 's/^/| /' conftest.$ac_ext >&5 |
5326 | ||
7a197a62 | 5327 | ac_header_compiler=no |
ad6254c5 | 5328 | fi |
7a197a62 AK |
5329 | |
5330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5331 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5332 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5333 | |
5334 | # Is the header present? | |
ec6a6fbe AK |
5335 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5336 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5337 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5338 | /* confdefs.h. */ |
5339 | _ACEOF | |
5340 | cat confdefs.h >>conftest.$ac_ext | |
5341 | cat >>conftest.$ac_ext <<_ACEOF | |
5342 | /* end confdefs.h. */ | |
5343 | #include <$ac_header> | |
5344 | _ACEOF | |
7a197a62 AK |
5345 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5346 | case "(($ac_try" in | |
5347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5348 | *) ac_try_echo=$ac_try;; | |
5349 | esac | |
ec6a6fbe AK |
5350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5351 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5352 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5353 | ac_status=$? |
5354 | grep -v '^ *+' conftest.er1 >conftest.err | |
5355 | rm -f conftest.er1 | |
5356 | cat conftest.err >&5 | |
ec6a6fbe | 5357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5358 | (exit $ac_status); } >/dev/null && { |
5359 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5360 | test ! -s conftest.err | |
5361 | }; then | |
ad6254c5 AK |
5362 | ac_header_preproc=yes |
5363 | else | |
ec6a6fbe | 5364 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5365 | sed 's/^/| /' conftest.$ac_ext >&5 |
5366 | ||
5367 | ac_header_preproc=no | |
5368 | fi | |
7a197a62 | 5369 | |
ad6254c5 | 5370 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5371 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5372 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5373 | |
5374 | # So? What about this header? | |
8a2fc586 AK |
5375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5376 | yes:no: ) | |
ec6a6fbe AK |
5377 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5378 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5379 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5380 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5381 | ac_header_preproc=yes |
ad6254c5 | 5382 | ;; |
8a2fc586 | 5383 | no:yes:* ) |
ec6a6fbe AK |
5384 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5385 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5387 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5389 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5390 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5391 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5393 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5395 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5396 | |
ad6254c5 AK |
5397 | ;; |
5398 | esac | |
ec6a6fbe AK |
5399 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5400 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5401 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5402 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5403 | else |
8a2fc586 | 5404 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5405 | fi |
ec6a6fbe AK |
5406 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5407 | $as_echo "$as_val"'` | |
5408 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5409 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5410 | |
ad6254c5 | 5411 | fi |
ec6a6fbe AK |
5412 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5413 | $as_echo "$as_val"'` | |
5414 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5415 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5416 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5417 | _ACEOF |
5418 | ||
80992638 AK |
5419 | fi |
5420 | ||
ad6254c5 | 5421 | done |
d0191583 | 5422 | |
d3c8211f | 5423 | |
80992638 | 5424 | ################################################################################ |
ec6a6fbe AK |
5425 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5426 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5427 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5428 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5429 | else |
ad6254c5 | 5430 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5431 | /* confdefs.h. */ |
5432 | _ACEOF | |
5433 | cat confdefs.h >>conftest.$ac_ext | |
5434 | cat >>conftest.$ac_ext <<_ACEOF | |
5435 | /* end confdefs.h. */ | |
5436 | ||
5437 | int | |
5438 | main () | |
5439 | { | |
5440 | /* FIXME: Include the comments suggested by Paul. */ | |
5441 | #ifndef __cplusplus | |
5442 | /* Ultrix mips cc rejects this. */ | |
5443 | typedef int charset[2]; | |
25fbec5b | 5444 | const charset cs; |
ad6254c5 | 5445 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5446 | char const *const *pcpcc; |
5447 | char **ppc; | |
ad6254c5 AK |
5448 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5449 | struct point {int x, y;}; | |
5450 | static struct point const zero = {0,0}; | |
5451 | /* AIX XL C 1.02.0.0 rejects this. | |
5452 | It does not let you subtract one const X* pointer from another in | |
5453 | an arm of an if-expression whose if-part is not a constant | |
5454 | expression */ | |
5455 | const char *g = "string"; | |
25fbec5b | 5456 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5457 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5458 | ++pcpcc; |
5459 | ppc = (char**) pcpcc; | |
5460 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5461 | { /* SCO 3.2v4 cc rejects this. */ |
5462 | char *t; | |
5463 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5464 | ||
5465 | *t++ = 0; | |
7a197a62 | 5466 | if (s) return 0; |
ad6254c5 AK |
5467 | } |
5468 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5469 | int x[] = {25, 17}; | |
5470 | const int *foo = &x[0]; | |
5471 | ++foo; | |
5472 | } | |
5473 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5474 | typedef const int *iptr; | |
5475 | iptr p = 0; | |
5476 | ++p; | |
5477 | } | |
5478 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5479 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5480 | struct s { int j; const int *ap[3]; }; | |
5481 | struct s *b; b->j = 5; | |
5482 | } | |
5483 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5484 | const int foo = 10; | |
7a197a62 | 5485 | if (!foo) return 0; |
ad6254c5 | 5486 | } |
25fbec5b | 5487 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5488 | #endif |
5489 | ||
5490 | ; | |
5491 | return 0; | |
5492 | } | |
5493 | _ACEOF | |
5494 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5495 | if { (ac_try="$ac_compile" |
5496 | case "(($ac_try" in | |
5497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5498 | *) ac_try_echo=$ac_try;; | |
5499 | esac | |
ec6a6fbe AK |
5500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5501 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5502 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5503 | ac_status=$? |
8a2fc586 AK |
5504 | grep -v '^ *+' conftest.er1 >conftest.err |
5505 | rm -f conftest.er1 | |
5506 | cat conftest.err >&5 | |
ec6a6fbe | 5507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5508 | (exit $ac_status); } && { |
5509 | test -z "$ac_c_werror_flag" || | |
5510 | test ! -s conftest.err | |
5511 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5512 | ac_cv_c_const=yes |
5513 | else | |
ec6a6fbe | 5514 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5515 | sed 's/^/| /' conftest.$ac_ext >&5 |
5516 | ||
7a197a62 | 5517 | ac_cv_c_const=no |
ad6254c5 | 5518 | fi |
7a197a62 AK |
5519 | |
5520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5521 | fi |
ec6a6fbe AK |
5522 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5523 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5524 | if test $ac_cv_c_const = no; then |
80992638 | 5525 | |
ad6254c5 | 5526 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5527 | #define const /**/ |
ad6254c5 | 5528 | _ACEOF |
80992638 | 5529 | |
d3c8211f | 5530 | fi |
d3c8211f | 5531 | |
ec6a6fbe AK |
5532 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5533 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5534 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5535 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5536 | else |
ad6254c5 AK |
5537 | ac_cv_c_inline=no |
5538 | for ac_kw in inline __inline__ __inline; do | |
5539 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5540 | /* confdefs.h. */ |
5541 | _ACEOF | |
5542 | cat confdefs.h >>conftest.$ac_ext | |
5543 | cat >>conftest.$ac_ext <<_ACEOF | |
5544 | /* end confdefs.h. */ | |
5545 | #ifndef __cplusplus | |
5546 | typedef int foo_t; | |
5547 | static $ac_kw foo_t static_foo () {return 0; } | |
5548 | $ac_kw foo_t foo () {return 0; } | |
5549 | #endif | |
80992638 | 5550 | |
ad6254c5 AK |
5551 | _ACEOF |
5552 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5553 | if { (ac_try="$ac_compile" |
5554 | case "(($ac_try" in | |
5555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5556 | *) ac_try_echo=$ac_try;; | |
5557 | esac | |
ec6a6fbe AK |
5558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5559 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5560 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5561 | ac_status=$? |
8a2fc586 AK |
5562 | grep -v '^ *+' conftest.er1 >conftest.err |
5563 | rm -f conftest.er1 | |
5564 | cat conftest.err >&5 | |
ec6a6fbe | 5565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5566 | (exit $ac_status); } && { |
5567 | test -z "$ac_c_werror_flag" || | |
5568 | test ! -s conftest.err | |
5569 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5570 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5571 | else |
ec6a6fbe | 5572 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5573 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5574 | |
7a197a62 | 5575 | |
8ce0cbda | 5576 | fi |
7a197a62 AK |
5577 | |
5578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5579 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5580 | done |
8ce0cbda | 5581 | |
8ce0cbda | 5582 | fi |
ec6a6fbe AK |
5583 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5584 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5585 | |
5586 | ||
ad6254c5 AK |
5587 | case $ac_cv_c_inline in |
5588 | inline | yes) ;; | |
8a2fc586 AK |
5589 | *) |
5590 | case $ac_cv_c_inline in | |
5591 | no) ac_val=;; | |
5592 | *) ac_val=$ac_cv_c_inline;; | |
5593 | esac | |
5594 | cat >>confdefs.h <<_ACEOF | |
5595 | #ifndef __cplusplus | |
5596 | #define inline $ac_val | |
5597 | #endif | |
c1c065a3 | 5598 | _ACEOF |
d0191583 JM |
5599 | ;; |
5600 | esac | |
5601 | ||
ec6a6fbe AK |
5602 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5603 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5604 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5605 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5606 | else |
5607 | cat >conftest.$ac_ext <<_ACEOF | |
5608 | /* confdefs.h. */ | |
5609 | _ACEOF | |
5610 | cat confdefs.h >>conftest.$ac_ext | |
5611 | cat >>conftest.$ac_ext <<_ACEOF | |
5612 | /* end confdefs.h. */ | |
5613 | $ac_includes_default | |
5614 | int | |
5615 | main () | |
5616 | { | |
5617 | static struct stat ac_aggr; | |
5618 | if (ac_aggr.st_rdev) | |
5619 | return 0; | |
5620 | ; | |
5621 | return 0; | |
5622 | } | |
5623 | _ACEOF | |
5624 | rm -f conftest.$ac_objext | |
5625 | if { (ac_try="$ac_compile" | |
5626 | case "(($ac_try" in | |
5627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5628 | *) ac_try_echo=$ac_try;; | |
5629 | esac | |
ec6a6fbe AK |
5630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5631 | $as_echo "$ac_try_echo") >&5 | |
5632 | (eval "$ac_compile") 2>conftest.er1 | |
5633 | ac_status=$? | |
5634 | grep -v '^ *+' conftest.er1 >conftest.err | |
5635 | rm -f conftest.er1 | |
5636 | cat conftest.err >&5 | |
5637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5638 | (exit $ac_status); } && { | |
5639 | test -z "$ac_c_werror_flag" || | |
5640 | test ! -s conftest.err | |
5641 | } && test -s conftest.$ac_objext; then | |
5642 | ac_cv_member_struct_stat_st_rdev=yes | |
5643 | else | |
5644 | $as_echo "$as_me: failed program was:" >&5 | |
5645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5646 | ||
5647 | cat >conftest.$ac_ext <<_ACEOF | |
5648 | /* confdefs.h. */ | |
5649 | _ACEOF | |
5650 | cat confdefs.h >>conftest.$ac_ext | |
5651 | cat >>conftest.$ac_ext <<_ACEOF | |
5652 | /* end confdefs.h. */ | |
5653 | $ac_includes_default | |
5654 | int | |
5655 | main () | |
5656 | { | |
5657 | static struct stat ac_aggr; | |
5658 | if (sizeof ac_aggr.st_rdev) | |
5659 | return 0; | |
5660 | ; | |
5661 | return 0; | |
5662 | } | |
5663 | _ACEOF | |
5664 | rm -f conftest.$ac_objext | |
5665 | if { (ac_try="$ac_compile" | |
5666 | case "(($ac_try" in | |
5667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5668 | *) ac_try_echo=$ac_try;; | |
5669 | esac | |
5670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5671 | $as_echo "$ac_try_echo") >&5 | |
5672 | (eval "$ac_compile") 2>conftest.er1 | |
5673 | ac_status=$? | |
5674 | grep -v '^ *+' conftest.er1 >conftest.err | |
5675 | rm -f conftest.er1 | |
5676 | cat conftest.err >&5 | |
5677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5678 | (exit $ac_status); } && { | |
5679 | test -z "$ac_c_werror_flag" || | |
5680 | test ! -s conftest.err | |
5681 | } && test -s conftest.$ac_objext; then | |
5682 | ac_cv_member_struct_stat_st_rdev=yes | |
5683 | else | |
5684 | $as_echo "$as_me: failed program was:" >&5 | |
5685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5686 | ||
5687 | ac_cv_member_struct_stat_st_rdev=no | |
5688 | fi | |
5689 | ||
5690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5691 | fi | |
5692 | ||
5693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5694 | fi | |
5695 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5696 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5697 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5698 | ||
5699 | cat >>confdefs.h <<_ACEOF | |
5700 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5701 | _ACEOF | |
5702 | ||
5703 | ||
5704 | fi | |
5705 | ||
5706 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5707 | $as_echo_n "checking for off_t... " >&6; } | |
5708 | if test "${ac_cv_type_off_t+set}" = set; then | |
5709 | $as_echo_n "(cached) " >&6 | |
5710 | else | |
5711 | ac_cv_type_off_t=no | |
5712 | cat >conftest.$ac_ext <<_ACEOF | |
5713 | /* confdefs.h. */ | |
5714 | _ACEOF | |
5715 | cat confdefs.h >>conftest.$ac_ext | |
5716 | cat >>conftest.$ac_ext <<_ACEOF | |
5717 | /* end confdefs.h. */ | |
5718 | $ac_includes_default | |
5719 | int | |
5720 | main () | |
5721 | { | |
5722 | if (sizeof (off_t)) | |
5723 | return 0; | |
5724 | ; | |
5725 | return 0; | |
5726 | } | |
5727 | _ACEOF | |
5728 | rm -f conftest.$ac_objext | |
5729 | if { (ac_try="$ac_compile" | |
5730 | case "(($ac_try" in | |
5731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5732 | *) ac_try_echo=$ac_try;; | |
5733 | esac | |
5734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5735 | $as_echo "$ac_try_echo") >&5 | |
5736 | (eval "$ac_compile") 2>conftest.er1 | |
5737 | ac_status=$? | |
5738 | grep -v '^ *+' conftest.er1 >conftest.err | |
5739 | rm -f conftest.er1 | |
5740 | cat conftest.err >&5 | |
5741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5742 | (exit $ac_status); } && { | |
5743 | test -z "$ac_c_werror_flag" || | |
5744 | test ! -s conftest.err | |
5745 | } && test -s conftest.$ac_objext; then | |
5746 | cat >conftest.$ac_ext <<_ACEOF | |
5747 | /* confdefs.h. */ | |
5748 | _ACEOF | |
5749 | cat confdefs.h >>conftest.$ac_ext | |
5750 | cat >>conftest.$ac_ext <<_ACEOF | |
5751 | /* end confdefs.h. */ | |
5752 | $ac_includes_default | |
5753 | int | |
5754 | main () | |
5755 | { | |
5756 | if (sizeof ((off_t))) | |
5757 | return 0; | |
5758 | ; | |
5759 | return 0; | |
5760 | } | |
5761 | _ACEOF | |
5762 | rm -f conftest.$ac_objext | |
5763 | if { (ac_try="$ac_compile" | |
5764 | case "(($ac_try" in | |
5765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5766 | *) ac_try_echo=$ac_try;; | |
5767 | esac | |
5768 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5769 | $as_echo "$ac_try_echo") >&5 | |
5770 | (eval "$ac_compile") 2>conftest.er1 | |
5771 | ac_status=$? | |
5772 | grep -v '^ *+' conftest.er1 >conftest.err | |
5773 | rm -f conftest.er1 | |
5774 | cat conftest.err >&5 | |
5775 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5776 | (exit $ac_status); } && { | |
5777 | test -z "$ac_c_werror_flag" || | |
5778 | test ! -s conftest.err | |
5779 | } && test -s conftest.$ac_objext; then | |
5780 | : | |
5781 | else | |
5782 | $as_echo "$as_me: failed program was:" >&5 | |
5783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5784 | ||
5785 | ac_cv_type_off_t=yes | |
5786 | fi | |
5787 | ||
5788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5789 | else | |
5790 | $as_echo "$as_me: failed program was:" >&5 | |
5791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5792 | ||
5793 | ||
5794 | fi | |
5795 | ||
5796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5797 | fi | |
5798 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5799 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5800 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5801 | : | |
5802 | else | |
5803 | ||
5804 | cat >>confdefs.h <<_ACEOF | |
5805 | #define off_t long int | |
5806 | _ACEOF | |
5807 | ||
5808 | fi | |
5809 | ||
5810 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5811 | $as_echo_n "checking for pid_t... " >&6; } | |
5812 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5813 | $as_echo_n "(cached) " >&6 | |
5814 | else | |
5815 | ac_cv_type_pid_t=no | |
5816 | cat >conftest.$ac_ext <<_ACEOF | |
5817 | /* confdefs.h. */ | |
5818 | _ACEOF | |
5819 | cat confdefs.h >>conftest.$ac_ext | |
5820 | cat >>conftest.$ac_ext <<_ACEOF | |
5821 | /* end confdefs.h. */ | |
5822 | $ac_includes_default | |
5823 | int | |
5824 | main () | |
5825 | { | |
5826 | if (sizeof (pid_t)) | |
5827 | return 0; | |
5828 | ; | |
5829 | return 0; | |
5830 | } | |
5831 | _ACEOF | |
5832 | rm -f conftest.$ac_objext | |
5833 | if { (ac_try="$ac_compile" | |
5834 | case "(($ac_try" in | |
5835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5836 | *) ac_try_echo=$ac_try;; | |
5837 | esac | |
5838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5839 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5840 | (eval "$ac_compile") 2>conftest.er1 |
5841 | ac_status=$? | |
5842 | grep -v '^ *+' conftest.er1 >conftest.err | |
5843 | rm -f conftest.er1 | |
5844 | cat conftest.err >&5 | |
ec6a6fbe | 5845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5846 | (exit $ac_status); } && { |
5847 | test -z "$ac_c_werror_flag" || | |
5848 | test ! -s conftest.err | |
5849 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5850 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5851 | /* confdefs.h. */ |
5852 | _ACEOF | |
5853 | cat confdefs.h >>conftest.$ac_ext | |
5854 | cat >>conftest.$ac_ext <<_ACEOF | |
5855 | /* end confdefs.h. */ | |
5856 | $ac_includes_default | |
5857 | int | |
5858 | main () | |
5859 | { | |
ec6a6fbe AK |
5860 | if (sizeof ((pid_t))) |
5861 | return 0; | |
d0191583 JM |
5862 | ; |
5863 | return 0; | |
5864 | } | |
5865 | _ACEOF | |
5866 | rm -f conftest.$ac_objext | |
5867 | if { (ac_try="$ac_compile" | |
5868 | case "(($ac_try" in | |
5869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5870 | *) ac_try_echo=$ac_try;; | |
5871 | esac | |
ec6a6fbe AK |
5872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5873 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5874 | (eval "$ac_compile") 2>conftest.er1 |
5875 | ac_status=$? | |
5876 | grep -v '^ *+' conftest.er1 >conftest.err | |
5877 | rm -f conftest.er1 | |
5878 | cat conftest.err >&5 | |
ec6a6fbe | 5879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5880 | (exit $ac_status); } && { |
5881 | test -z "$ac_c_werror_flag" || | |
5882 | test ! -s conftest.err | |
5883 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5884 | : |
d0191583 | 5885 | else |
ec6a6fbe | 5886 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5887 | sed 's/^/| /' conftest.$ac_ext >&5 |
5888 | ||
ec6a6fbe | 5889 | ac_cv_type_pid_t=yes |
d0191583 JM |
5890 | fi |
5891 | ||
5892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5893 | else |
5894 | $as_echo "$as_me: failed program was:" >&5 | |
5895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5896 | ||
5897 | ||
d0191583 JM |
5898 | fi |
5899 | ||
5900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5901 | fi | |
ec6a6fbe AK |
5902 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5903 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5904 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5905 | : | |
5906 | else | |
d0191583 JM |
5907 | |
5908 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5909 | #define pid_t int |
d0191583 JM |
5910 | _ACEOF |
5911 | ||
d0191583 | 5912 | fi |
8ce0cbda | 5913 | |
ec6a6fbe AK |
5914 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5915 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5916 | if test "${ac_cv_type_signal+set}" = set; then | |
5917 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5918 | else |
b145d876 ZK |
5919 | cat >conftest.$ac_ext <<_ACEOF |
5920 | /* confdefs.h. */ | |
5921 | _ACEOF | |
5922 | cat confdefs.h >>conftest.$ac_ext | |
5923 | cat >>conftest.$ac_ext <<_ACEOF | |
5924 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5925 | #include <sys/types.h> |
5926 | #include <signal.h> | |
5927 | ||
b145d876 ZK |
5928 | int |
5929 | main () | |
5930 | { | |
ec6a6fbe | 5931 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5932 | ; |
5933 | return 0; | |
5934 | } | |
5935 | _ACEOF | |
5936 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5937 | if { (ac_try="$ac_compile" |
5938 | case "(($ac_try" in | |
5939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5940 | *) ac_try_echo=$ac_try;; | |
5941 | esac | |
ec6a6fbe AK |
5942 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5943 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5944 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5945 | ac_status=$? |
8a2fc586 AK |
5946 | grep -v '^ *+' conftest.er1 >conftest.err |
5947 | rm -f conftest.er1 | |
5948 | cat conftest.err >&5 | |
ec6a6fbe | 5949 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5950 | (exit $ac_status); } && { |
5951 | test -z "$ac_c_werror_flag" || | |
5952 | test ! -s conftest.err | |
5953 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5954 | ac_cv_type_signal=int |
b145d876 | 5955 | else |
ec6a6fbe | 5956 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5957 | sed 's/^/| /' conftest.$ac_ext >&5 |
5958 | ||
ec6a6fbe | 5959 | ac_cv_type_signal=void |
ad6254c5 | 5960 | fi |
b145d876 ZK |
5961 | |
5962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5963 | fi | |
ec6a6fbe AK |
5964 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5965 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 5966 | |
ad6254c5 | 5967 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5968 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 5969 | _ACEOF |
199e490e | 5970 | |
b896caa1 | 5971 | |
ec6a6fbe AK |
5972 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5973 | $as_echo_n "checking for size_t... " >&6; } | |
5974 | if test "${ac_cv_type_size_t+set}" = set; then | |
5975 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5976 | else |
ec6a6fbe AK |
5977 | ac_cv_type_size_t=no |
5978 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
5979 | /* confdefs.h. */ |
5980 | _ACEOF | |
5981 | cat confdefs.h >>conftest.$ac_ext | |
5982 | cat >>conftest.$ac_ext <<_ACEOF | |
5983 | /* end confdefs.h. */ | |
5984 | $ac_includes_default | |
5985 | int | |
5986 | main () | |
5987 | { | |
ec6a6fbe AK |
5988 | if (sizeof (size_t)) |
5989 | return 0; | |
ad6254c5 AK |
5990 | ; |
5991 | return 0; | |
5992 | } | |
5993 | _ACEOF | |
5994 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5995 | if { (ac_try="$ac_compile" |
5996 | case "(($ac_try" in | |
5997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5998 | *) ac_try_echo=$ac_try;; | |
5999 | esac | |
ec6a6fbe AK |
6000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6001 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6002 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6003 | ac_status=$? |
8a2fc586 AK |
6004 | grep -v '^ *+' conftest.er1 >conftest.err |
6005 | rm -f conftest.er1 | |
6006 | cat conftest.err >&5 | |
ec6a6fbe | 6007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6008 | (exit $ac_status); } && { |
6009 | test -z "$ac_c_werror_flag" || | |
6010 | test ! -s conftest.err | |
6011 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6012 | cat >conftest.$ac_ext <<_ACEOF |
6013 | /* confdefs.h. */ | |
6014 | _ACEOF | |
6015 | cat confdefs.h >>conftest.$ac_ext | |
6016 | cat >>conftest.$ac_ext <<_ACEOF | |
6017 | /* end confdefs.h. */ | |
ec6a6fbe | 6018 | $ac_includes_default |
d0191583 JM |
6019 | int |
6020 | main () | |
6021 | { | |
ec6a6fbe AK |
6022 | if (sizeof ((size_t))) |
6023 | return 0; | |
d0191583 JM |
6024 | ; |
6025 | return 0; | |
6026 | } | |
6027 | _ACEOF | |
6028 | rm -f conftest.$ac_objext | |
6029 | if { (ac_try="$ac_compile" | |
6030 | case "(($ac_try" in | |
6031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6032 | *) ac_try_echo=$ac_try;; | |
6033 | esac | |
ec6a6fbe AK |
6034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6035 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6036 | (eval "$ac_compile") 2>conftest.er1 |
6037 | ac_status=$? | |
6038 | grep -v '^ *+' conftest.er1 >conftest.err | |
6039 | rm -f conftest.er1 | |
6040 | cat conftest.err >&5 | |
ec6a6fbe | 6041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6042 | (exit $ac_status); } && { |
6043 | test -z "$ac_c_werror_flag" || | |
6044 | test ! -s conftest.err | |
6045 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6046 | : |
d0191583 | 6047 | else |
ec6a6fbe | 6048 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6049 | sed 's/^/| /' conftest.$ac_ext >&5 |
6050 | ||
ec6a6fbe AK |
6051 | ac_cv_type_size_t=yes |
6052 | fi | |
6053 | ||
6054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6055 | else | |
6056 | $as_echo "$as_me: failed program was:" >&5 | |
6057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6058 | ||
6059 | ||
d0191583 JM |
6060 | fi |
6061 | ||
6062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6063 | fi | |
ec6a6fbe AK |
6064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6065 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6066 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6067 | : | |
6068 | else | |
d0191583 JM |
6069 | |
6070 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6071 | #define size_t unsigned int |
d0191583 JM |
6072 | _ACEOF |
6073 | ||
ec6a6fbe | 6074 | fi |
d0191583 | 6075 | |
ec6a6fbe AK |
6076 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6077 | $as_echo_n "checking for mode_t... " >&6; } | |
6078 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6079 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6080 | else |
ec6a6fbe AK |
6081 | ac_cv_type_mode_t=no |
6082 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6083 | /* confdefs.h. */ |
6084 | _ACEOF | |
6085 | cat confdefs.h >>conftest.$ac_ext | |
6086 | cat >>conftest.$ac_ext <<_ACEOF | |
6087 | /* end confdefs.h. */ | |
6088 | $ac_includes_default | |
6089 | int | |
6090 | main () | |
6091 | { | |
ec6a6fbe AK |
6092 | if (sizeof (mode_t)) |
6093 | return 0; | |
ad6254c5 AK |
6094 | ; |
6095 | return 0; | |
6096 | } | |
6097 | _ACEOF | |
6098 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6099 | if { (ac_try="$ac_compile" |
6100 | case "(($ac_try" in | |
6101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6102 | *) ac_try_echo=$ac_try;; | |
6103 | esac | |
ec6a6fbe AK |
6104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6105 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6106 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6107 | ac_status=$? |
8a2fc586 AK |
6108 | grep -v '^ *+' conftest.er1 >conftest.err |
6109 | rm -f conftest.er1 | |
6110 | cat conftest.err >&5 | |
ec6a6fbe | 6111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6112 | (exit $ac_status); } && { |
6113 | test -z "$ac_c_werror_flag" || | |
6114 | test ! -s conftest.err | |
6115 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6116 | cat >conftest.$ac_ext <<_ACEOF |
6117 | /* confdefs.h. */ | |
6118 | _ACEOF | |
6119 | cat confdefs.h >>conftest.$ac_ext | |
6120 | cat >>conftest.$ac_ext <<_ACEOF | |
6121 | /* end confdefs.h. */ | |
6122 | $ac_includes_default | |
6123 | int | |
6124 | main () | |
6125 | { | |
ec6a6fbe AK |
6126 | if (sizeof ((mode_t))) |
6127 | return 0; | |
ad6254c5 AK |
6128 | ; |
6129 | return 0; | |
6130 | } | |
6131 | _ACEOF | |
6132 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6133 | if { (ac_try="$ac_compile" |
6134 | case "(($ac_try" in | |
6135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6136 | *) ac_try_echo=$ac_try;; | |
6137 | esac | |
ec6a6fbe AK |
6138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6139 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6140 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6141 | ac_status=$? |
8a2fc586 AK |
6142 | grep -v '^ *+' conftest.er1 >conftest.err |
6143 | rm -f conftest.er1 | |
6144 | cat conftest.err >&5 | |
ec6a6fbe | 6145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6146 | (exit $ac_status); } && { |
6147 | test -z "$ac_c_werror_flag" || | |
6148 | test ! -s conftest.err | |
6149 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6150 | : |
6151 | else | |
6152 | $as_echo "$as_me: failed program was:" >&5 | |
6153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6154 | ||
6155 | ac_cv_type_mode_t=yes | |
6156 | fi | |
6157 | ||
6158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6159 | else |
ec6a6fbe | 6160 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6161 | sed 's/^/| /' conftest.$ac_ext >&5 |
6162 | ||
ec6a6fbe | 6163 | |
80992638 | 6164 | fi |
7a197a62 AK |
6165 | |
6166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6167 | fi |
ec6a6fbe AK |
6168 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6169 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6170 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6171 | : |
6172 | else | |
80992638 | 6173 | |
ad6254c5 AK |
6174 | cat >>confdefs.h <<_ACEOF |
6175 | #define mode_t int | |
6176 | _ACEOF | |
6177 | ||
6178 | fi | |
6179 | ||
ec6a6fbe AK |
6180 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6181 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6182 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6183 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6184 | else |
6185 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6186 | /* confdefs.h. */ |
6187 | _ACEOF | |
6188 | cat confdefs.h >>conftest.$ac_ext | |
6189 | cat >>conftest.$ac_ext <<_ACEOF | |
6190 | /* end confdefs.h. */ | |
6191 | $ac_includes_default | |
6192 | int | |
6193 | main () | |
6194 | { | |
6195 | static struct stat ac_aggr; | |
6196 | if (ac_aggr.st_rdev) | |
6197 | return 0; | |
6198 | ; | |
6199 | return 0; | |
6200 | } | |
6201 | _ACEOF | |
6202 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6203 | if { (ac_try="$ac_compile" |
6204 | case "(($ac_try" in | |
6205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6206 | *) ac_try_echo=$ac_try;; | |
6207 | esac | |
ec6a6fbe AK |
6208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6209 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6210 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6211 | ac_status=$? |
8a2fc586 AK |
6212 | grep -v '^ *+' conftest.er1 >conftest.err |
6213 | rm -f conftest.er1 | |
6214 | cat conftest.err >&5 | |
ec6a6fbe | 6215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6216 | (exit $ac_status); } && { |
6217 | test -z "$ac_c_werror_flag" || | |
6218 | test ! -s conftest.err | |
6219 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6220 | ac_cv_member_struct_stat_st_rdev=yes |
6221 | else | |
ec6a6fbe | 6222 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6223 | sed 's/^/| /' conftest.$ac_ext >&5 |
6224 | ||
7a197a62 | 6225 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6226 | /* confdefs.h. */ |
6227 | _ACEOF | |
6228 | cat confdefs.h >>conftest.$ac_ext | |
6229 | cat >>conftest.$ac_ext <<_ACEOF | |
6230 | /* end confdefs.h. */ | |
6231 | $ac_includes_default | |
6232 | int | |
6233 | main () | |
6234 | { | |
6235 | static struct stat ac_aggr; | |
6236 | if (sizeof ac_aggr.st_rdev) | |
6237 | return 0; | |
6238 | ; | |
6239 | return 0; | |
6240 | } | |
6241 | _ACEOF | |
6242 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6243 | if { (ac_try="$ac_compile" |
6244 | case "(($ac_try" in | |
6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6246 | *) ac_try_echo=$ac_try;; | |
6247 | esac | |
ec6a6fbe AK |
6248 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6249 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6250 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6251 | ac_status=$? |
8a2fc586 AK |
6252 | grep -v '^ *+' conftest.er1 >conftest.err |
6253 | rm -f conftest.er1 | |
6254 | cat conftest.err >&5 | |
ec6a6fbe | 6255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6256 | (exit $ac_status); } && { |
6257 | test -z "$ac_c_werror_flag" || | |
6258 | test ! -s conftest.err | |
6259 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6260 | ac_cv_member_struct_stat_st_rdev=yes |
6261 | else | |
ec6a6fbe | 6262 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6263 | sed 's/^/| /' conftest.$ac_ext >&5 |
6264 | ||
7a197a62 | 6265 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6266 | fi |
7a197a62 AK |
6267 | |
6268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6269 | fi |
7a197a62 AK |
6270 | |
6271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6272 | fi |
ec6a6fbe AK |
6273 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6274 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6275 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6276 | |
6277 | cat >>confdefs.h <<_ACEOF | |
6278 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6279 | _ACEOF | |
6280 | ||
6281 | ||
ad6254c5 AK |
6282 | fi |
6283 | ||
ec6a6fbe AK |
6284 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6285 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6286 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6287 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6288 | else |
6289 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6290 | /* confdefs.h. */ |
6291 | _ACEOF | |
6292 | cat confdefs.h >>conftest.$ac_ext | |
6293 | cat >>conftest.$ac_ext <<_ACEOF | |
6294 | /* end confdefs.h. */ | |
6295 | #include <sys/types.h> | |
6296 | #include <time.h> | |
6297 | ||
6298 | int | |
6299 | main () | |
6300 | { | |
25fbec5b AK |
6301 | struct tm tm; |
6302 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6303 | return !p; |
ad6254c5 AK |
6304 | ; |
6305 | return 0; | |
6306 | } | |
6307 | _ACEOF | |
6308 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6309 | if { (ac_try="$ac_compile" |
6310 | case "(($ac_try" in | |
6311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6312 | *) ac_try_echo=$ac_try;; | |
6313 | esac | |
ec6a6fbe AK |
6314 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6315 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6316 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6317 | ac_status=$? |
8a2fc586 AK |
6318 | grep -v '^ *+' conftest.er1 >conftest.err |
6319 | rm -f conftest.er1 | |
6320 | cat conftest.err >&5 | |
ec6a6fbe | 6321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6322 | (exit $ac_status); } && { |
6323 | test -z "$ac_c_werror_flag" || | |
6324 | test ! -s conftest.err | |
6325 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6326 | ac_cv_struct_tm=time.h |
6327 | else | |
ec6a6fbe | 6328 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6329 | sed 's/^/| /' conftest.$ac_ext >&5 |
6330 | ||
7a197a62 | 6331 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6332 | fi |
7a197a62 AK |
6333 | |
6334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6335 | fi |
ec6a6fbe AK |
6336 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6337 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6338 | if test $ac_cv_struct_tm = sys/time.h; then |
6339 | ||
6340 | cat >>confdefs.h <<\_ACEOF | |
6341 | #define TM_IN_SYS_TIME 1 | |
6342 | _ACEOF | |
6343 | ||
6344 | fi | |
809fae91 | 6345 | |
795ca3e5 | 6346 | |
80992638 | 6347 | ################################################################################ |
ad6254c5 AK |
6348 | |
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | ||
d0191583 JM |
6362 | |
6363 | ||
6364 | ||
6365 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6366 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6367 | uname | |
ad6254c5 | 6368 | do |
ec6a6fbe AK |
6369 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6370 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6371 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6372 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6373 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6374 | else |
ad6254c5 | 6375 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6376 | /* confdefs.h. */ |
6377 | _ACEOF | |
6378 | cat confdefs.h >>conftest.$ac_ext | |
6379 | cat >>conftest.$ac_ext <<_ACEOF | |
6380 | /* end confdefs.h. */ | |
8a2fc586 AK |
6381 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6382 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6383 | #define $ac_func innocuous_$ac_func | |
6384 | ||
ad6254c5 AK |
6385 | /* System header to define __stub macros and hopefully few prototypes, |
6386 | which can conflict with char $ac_func (); below. | |
6387 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6388 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6389 | |
ad6254c5 AK |
6390 | #ifdef __STDC__ |
6391 | # include <limits.h> | |
6392 | #else | |
6393 | # include <assert.h> | |
6394 | #endif | |
8a2fc586 AK |
6395 | |
6396 | #undef $ac_func | |
6397 | ||
7a197a62 AK |
6398 | /* Override any GCC internal prototype to avoid an error. |
6399 | Use char because int might match the return type of a GCC | |
6400 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6401 | #ifdef __cplusplus |
6402 | extern "C" | |
ad6254c5 | 6403 | #endif |
ad6254c5 AK |
6404 | char $ac_func (); |
6405 | /* The GNU C library defines this for functions which it implements | |
6406 | to always fail with ENOSYS. Some functions are actually named | |
6407 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6408 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6409 | choke me |
ad6254c5 AK |
6410 | #endif |
6411 | ||
6412 | int | |
6413 | main () | |
6414 | { | |
7a197a62 | 6415 | return $ac_func (); |
ad6254c5 AK |
6416 | ; |
6417 | return 0; | |
6418 | } | |
6419 | _ACEOF | |
6420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6421 | if { (ac_try="$ac_link" |
6422 | case "(($ac_try" in | |
6423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6424 | *) ac_try_echo=$ac_try;; | |
6425 | esac | |
ec6a6fbe AK |
6426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6427 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6428 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6429 | ac_status=$? |
8a2fc586 AK |
6430 | grep -v '^ *+' conftest.er1 >conftest.err |
6431 | rm -f conftest.er1 | |
6432 | cat conftest.err >&5 | |
ec6a6fbe | 6433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6434 | (exit $ac_status); } && { |
6435 | test -z "$ac_c_werror_flag" || | |
6436 | test ! -s conftest.err | |
ec6a6fbe AK |
6437 | } && test -s conftest$ac_exeext && { |
6438 | test "$cross_compiling" = yes || | |
6439 | $as_test_x conftest$ac_exeext | |
6440 | }; then | |
fc54be10 AK |
6441 | eval "$as_ac_var=yes" |
6442 | else | |
ec6a6fbe | 6443 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6444 | sed 's/^/| /' conftest.$ac_ext >&5 |
6445 | ||
6446 | eval "$as_ac_var=no" | |
6447 | fi | |
6448 | ||
ec6a6fbe | 6449 | rm -rf conftest.dSYM |
25fbec5b | 6450 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6451 | conftest$ac_exeext conftest.$ac_ext |
6452 | fi | |
ec6a6fbe AK |
6453 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6454 | $as_echo "$as_val"'` | |
6455 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6456 | $as_echo "$ac_res" >&6; } | |
6457 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6458 | $as_echo "$as_val"'` | |
6459 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6460 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6461 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6462 | _ACEOF |
6463 | ||
6464 | else | |
ec6a6fbe AK |
6465 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6466 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6467 | { (exit 1); exit 1; }; } |
6468 | fi | |
6469 | done | |
795ca3e5 | 6470 | |
ad6254c5 AK |
6471 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6472 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6473 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6474 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6475 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6476 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6477 | else |
6478 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6479 | /* confdefs.h. */ |
6480 | _ACEOF | |
6481 | cat confdefs.h >>conftest.$ac_ext | |
6482 | cat >>conftest.$ac_ext <<_ACEOF | |
6483 | /* end confdefs.h. */ | |
6484 | #include <alloca.h> | |
6485 | int | |
6486 | main () | |
6487 | { | |
6488 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6489 | if (p) return 0; |
ad6254c5 AK |
6490 | ; |
6491 | return 0; | |
6492 | } | |
6493 | _ACEOF | |
6494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6495 | if { (ac_try="$ac_link" |
6496 | case "(($ac_try" in | |
6497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6498 | *) ac_try_echo=$ac_try;; | |
6499 | esac | |
ec6a6fbe AK |
6500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6501 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6502 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6503 | ac_status=$? |
8a2fc586 AK |
6504 | grep -v '^ *+' conftest.er1 >conftest.err |
6505 | rm -f conftest.er1 | |
6506 | cat conftest.err >&5 | |
ec6a6fbe | 6507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6508 | (exit $ac_status); } && { |
6509 | test -z "$ac_c_werror_flag" || | |
6510 | test ! -s conftest.err | |
ec6a6fbe AK |
6511 | } && test -s conftest$ac_exeext && { |
6512 | test "$cross_compiling" = yes || | |
6513 | $as_test_x conftest$ac_exeext | |
6514 | }; then | |
ad6254c5 AK |
6515 | ac_cv_working_alloca_h=yes |
6516 | else | |
ec6a6fbe | 6517 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6518 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6519 | |
7a197a62 | 6520 | ac_cv_working_alloca_h=no |
ad6254c5 | 6521 | fi |
7a197a62 | 6522 | |
ec6a6fbe | 6523 | rm -rf conftest.dSYM |
25fbec5b | 6524 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6525 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6526 | fi |
ec6a6fbe AK |
6527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6528 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6529 | if test $ac_cv_working_alloca_h = yes; then |
6530 | ||
6531 | cat >>confdefs.h <<\_ACEOF | |
6532 | #define HAVE_ALLOCA_H 1 | |
6533 | _ACEOF | |
6534 | ||
6535 | fi | |
6536 | ||
ec6a6fbe AK |
6537 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6538 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6539 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6540 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6541 | else |
6542 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6543 | /* confdefs.h. */ |
6544 | _ACEOF | |
6545 | cat confdefs.h >>conftest.$ac_ext | |
6546 | cat >>conftest.$ac_ext <<_ACEOF | |
6547 | /* end confdefs.h. */ | |
6548 | #ifdef __GNUC__ | |
6549 | # define alloca __builtin_alloca | |
6550 | #else | |
6551 | # ifdef _MSC_VER | |
6552 | # include <malloc.h> | |
6553 | # define alloca _alloca | |
6554 | # else | |
25fbec5b | 6555 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6556 | # include <alloca.h> |
6557 | # else | |
6558 | # ifdef _AIX | |
6559 | #pragma alloca | |
6560 | # else | |
6561 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6562 | char *alloca (); | |
6563 | # endif | |
6564 | # endif | |
6565 | # endif | |
6566 | # endif | |
6567 | #endif | |
6568 | ||
6569 | int | |
6570 | main () | |
6571 | { | |
6572 | char *p = (char *) alloca (1); | |
7a197a62 | 6573 | if (p) return 0; |
ad6254c5 AK |
6574 | ; |
6575 | return 0; | |
6576 | } | |
6577 | _ACEOF | |
6578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6579 | if { (ac_try="$ac_link" |
6580 | case "(($ac_try" in | |
6581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6582 | *) ac_try_echo=$ac_try;; | |
6583 | esac | |
ec6a6fbe AK |
6584 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6585 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6586 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6587 | ac_status=$? |
8a2fc586 AK |
6588 | grep -v '^ *+' conftest.er1 >conftest.err |
6589 | rm -f conftest.er1 | |
6590 | cat conftest.err >&5 | |
ec6a6fbe | 6591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6592 | (exit $ac_status); } && { |
6593 | test -z "$ac_c_werror_flag" || | |
6594 | test ! -s conftest.err | |
ec6a6fbe AK |
6595 | } && test -s conftest$ac_exeext && { |
6596 | test "$cross_compiling" = yes || | |
6597 | $as_test_x conftest$ac_exeext | |
6598 | }; then | |
ad6254c5 AK |
6599 | ac_cv_func_alloca_works=yes |
6600 | else | |
ec6a6fbe | 6601 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6602 | sed 's/^/| /' conftest.$ac_ext >&5 |
6603 | ||
7a197a62 | 6604 | ac_cv_func_alloca_works=no |
ad6254c5 | 6605 | fi |
7a197a62 | 6606 | |
ec6a6fbe | 6607 | rm -rf conftest.dSYM |
25fbec5b | 6608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6609 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6610 | fi |
ec6a6fbe AK |
6611 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6612 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6613 | |
6614 | if test $ac_cv_func_alloca_works = yes; then | |
6615 | ||
6616 | cat >>confdefs.h <<\_ACEOF | |
6617 | #define HAVE_ALLOCA 1 | |
6618 | _ACEOF | |
6619 | ||
6620 | else | |
6621 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6622 | # that cause trouble. Some versions do not even contain alloca or | |
6623 | # contain a buggy version. If you still want to use their alloca, | |
6624 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6625 | ||
7a197a62 | 6626 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6627 | |
6628 | cat >>confdefs.h <<\_ACEOF | |
6629 | #define C_ALLOCA 1 | |
6630 | _ACEOF | |
6631 | ||
6632 | ||
ec6a6fbe AK |
6633 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6634 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6635 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6636 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6637 | else |
6638 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6639 | /* confdefs.h. */ |
6640 | _ACEOF | |
6641 | cat confdefs.h >>conftest.$ac_ext | |
6642 | cat >>conftest.$ac_ext <<_ACEOF | |
6643 | /* end confdefs.h. */ | |
7a197a62 | 6644 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6645 | webecray |
6646 | #else | |
6647 | wenotbecray | |
6648 | #endif | |
6649 | ||
6650 | _ACEOF | |
795ca3e5 | 6651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6652 | $EGREP "webecray" >/dev/null 2>&1; then |
6653 | ac_cv_os_cray=yes | |
6654 | else | |
6655 | ac_cv_os_cray=no | |
795ca3e5 AK |
6656 | fi |
6657 | rm -f conftest* | |
6658 | ||
795ca3e5 | 6659 | fi |
ec6a6fbe AK |
6660 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6661 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6662 | if test $ac_cv_os_cray = yes; then |
6663 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6664 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6665 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6666 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6667 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6668 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6669 | else |
6670 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6671 | /* confdefs.h. */ |
6672 | _ACEOF | |
6673 | cat confdefs.h >>conftest.$ac_ext | |
6674 | cat >>conftest.$ac_ext <<_ACEOF | |
6675 | /* end confdefs.h. */ | |
8a2fc586 AK |
6676 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6678 | #define $ac_func innocuous_$ac_func | |
6679 | ||
ad6254c5 AK |
6680 | /* System header to define __stub macros and hopefully few prototypes, |
6681 | which can conflict with char $ac_func (); below. | |
6682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6683 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6684 | |
ad6254c5 AK |
6685 | #ifdef __STDC__ |
6686 | # include <limits.h> | |
6687 | #else | |
6688 | # include <assert.h> | |
6689 | #endif | |
8a2fc586 AK |
6690 | |
6691 | #undef $ac_func | |
6692 | ||
7a197a62 AK |
6693 | /* Override any GCC internal prototype to avoid an error. |
6694 | Use char because int might match the return type of a GCC | |
6695 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6696 | #ifdef __cplusplus |
6697 | extern "C" | |
ad6254c5 | 6698 | #endif |
ad6254c5 AK |
6699 | char $ac_func (); |
6700 | /* The GNU C library defines this for functions which it implements | |
6701 | to always fail with ENOSYS. Some functions are actually named | |
6702 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6703 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6704 | choke me |
ad6254c5 AK |
6705 | #endif |
6706 | ||
6707 | int | |
6708 | main () | |
6709 | { | |
7a197a62 | 6710 | return $ac_func (); |
ad6254c5 AK |
6711 | ; |
6712 | return 0; | |
6713 | } | |
6714 | _ACEOF | |
6715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6716 | if { (ac_try="$ac_link" |
6717 | case "(($ac_try" in | |
6718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6719 | *) ac_try_echo=$ac_try;; | |
6720 | esac | |
ec6a6fbe AK |
6721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6722 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6723 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6724 | ac_status=$? |
8a2fc586 AK |
6725 | grep -v '^ *+' conftest.er1 >conftest.err |
6726 | rm -f conftest.er1 | |
6727 | cat conftest.err >&5 | |
ec6a6fbe | 6728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6729 | (exit $ac_status); } && { |
6730 | test -z "$ac_c_werror_flag" || | |
6731 | test ! -s conftest.err | |
ec6a6fbe AK |
6732 | } && test -s conftest$ac_exeext && { |
6733 | test "$cross_compiling" = yes || | |
6734 | $as_test_x conftest$ac_exeext | |
6735 | }; then | |
ad6254c5 AK |
6736 | eval "$as_ac_var=yes" |
6737 | else | |
ec6a6fbe | 6738 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6739 | sed 's/^/| /' conftest.$ac_ext >&5 |
6740 | ||
7a197a62 | 6741 | eval "$as_ac_var=no" |
ad6254c5 | 6742 | fi |
7a197a62 | 6743 | |
ec6a6fbe | 6744 | rm -rf conftest.dSYM |
25fbec5b | 6745 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6746 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6747 | fi |
ec6a6fbe AK |
6748 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6749 | $as_echo "$as_val"'` | |
6750 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6751 | $as_echo "$ac_res" >&6; } | |
6752 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6753 | $as_echo "$as_val"'` | |
6754 | if test "x$as_val" = x""yes; then | |
80992638 | 6755 | |
ad6254c5 AK |
6756 | cat >>confdefs.h <<_ACEOF |
6757 | #define CRAY_STACKSEG_END $ac_func | |
6758 | _ACEOF | |
6759 | ||
6760 | break | |
6761 | fi | |
6762 | ||
6763 | done | |
6764 | fi | |
6765 | ||
ec6a6fbe AK |
6766 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6767 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6768 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6769 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6770 | else |
6771 | if test "$cross_compiling" = yes; then | |
6772 | ac_cv_c_stack_direction=0 | |
6773 | else | |
6774 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6775 | /* confdefs.h. */ |
6776 | _ACEOF | |
6777 | cat confdefs.h >>conftest.$ac_ext | |
6778 | cat >>conftest.$ac_ext <<_ACEOF | |
6779 | /* end confdefs.h. */ | |
7a197a62 | 6780 | $ac_includes_default |
ad6254c5 AK |
6781 | int |
6782 | find_stack_direction () | |
6783 | { | |
6784 | static char *addr = 0; | |
6785 | auto char dummy; | |
6786 | if (addr == 0) | |
6787 | { | |
6788 | addr = &dummy; | |
6789 | return find_stack_direction (); | |
6790 | } | |
6791 | else | |
6792 | return (&dummy > addr) ? 1 : -1; | |
6793 | } | |
6794 | ||
6795 | int | |
6796 | main () | |
6797 | { | |
7a197a62 | 6798 | return find_stack_direction () < 0; |
ad6254c5 AK |
6799 | } |
6800 | _ACEOF | |
6801 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6802 | if { (ac_try="$ac_link" |
6803 | case "(($ac_try" in | |
6804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6805 | *) ac_try_echo=$ac_try;; | |
6806 | esac | |
ec6a6fbe AK |
6807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6808 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6809 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6810 | ac_status=$? |
ec6a6fbe | 6811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6812 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6813 | { (case "(($ac_try" in |
6814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6815 | *) ac_try_echo=$ac_try;; | |
6816 | esac | |
ec6a6fbe AK |
6817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6818 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6819 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6820 | ac_status=$? |
ec6a6fbe | 6821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6822 | (exit $ac_status); }; }; then |
6823 | ac_cv_c_stack_direction=1 | |
6824 | else | |
ec6a6fbe AK |
6825 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6826 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6827 | sed 's/^/| /' conftest.$ac_ext >&5 |
6828 | ||
6829 | ( exit $ac_status ) | |
6830 | ac_cv_c_stack_direction=-1 | |
6831 | fi | |
ec6a6fbe | 6832 | rm -rf conftest.dSYM |
7a197a62 | 6833 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6834 | fi |
7a197a62 AK |
6835 | |
6836 | ||
ad6254c5 | 6837 | fi |
ec6a6fbe AK |
6838 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6839 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6840 | |
6841 | cat >>confdefs.h <<_ACEOF | |
6842 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6843 | _ACEOF | |
6844 | ||
6845 | ||
6846 | fi | |
6847 | ||
ec6a6fbe AK |
6848 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6849 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6850 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6851 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6852 | else |
6853 | if test "$cross_compiling" = yes; then | |
6854 | ac_cv_func_closedir_void=yes | |
6855 | else | |
6856 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6857 | /* confdefs.h. */ |
6858 | _ACEOF | |
6859 | cat confdefs.h >>conftest.$ac_ext | |
6860 | cat >>conftest.$ac_ext <<_ACEOF | |
6861 | /* end confdefs.h. */ | |
6862 | $ac_includes_default | |
6863 | #include <$ac_header_dirent> | |
6864 | #ifndef __cplusplus | |
6865 | int closedir (); | |
6866 | #endif | |
6867 | ||
6868 | int | |
6869 | main () | |
6870 | { | |
7a197a62 | 6871 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6872 | ; |
6873 | return 0; | |
6874 | } | |
6875 | _ACEOF | |
6876 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6877 | if { (ac_try="$ac_link" |
6878 | case "(($ac_try" in | |
6879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6880 | *) ac_try_echo=$ac_try;; | |
6881 | esac | |
ec6a6fbe AK |
6882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6883 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6884 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6885 | ac_status=$? |
ec6a6fbe | 6886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6887 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6888 | { (case "(($ac_try" in |
6889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6890 | *) ac_try_echo=$ac_try;; | |
6891 | esac | |
ec6a6fbe AK |
6892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6893 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6894 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6895 | ac_status=$? |
ec6a6fbe | 6896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6897 | (exit $ac_status); }; }; then |
6898 | ac_cv_func_closedir_void=no | |
6899 | else | |
ec6a6fbe AK |
6900 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6901 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6902 | sed 's/^/| /' conftest.$ac_ext >&5 |
6903 | ||
6904 | ( exit $ac_status ) | |
6905 | ac_cv_func_closedir_void=yes | |
6906 | fi | |
ec6a6fbe | 6907 | rm -rf conftest.dSYM |
7a197a62 | 6908 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6909 | fi |
7a197a62 AK |
6910 | |
6911 | ||
ad6254c5 | 6912 | fi |
ec6a6fbe AK |
6913 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6914 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6915 | if test $ac_cv_func_closedir_void = yes; then |
6916 | ||
6917 | cat >>confdefs.h <<\_ACEOF | |
6918 | #define CLOSEDIR_VOID 1 | |
6919 | _ACEOF | |
6920 | ||
6921 | fi | |
6922 | ||
6923 | ||
7a197a62 | 6924 | for ac_header in vfork.h |
ad6254c5 | 6925 | do |
ec6a6fbe | 6926 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6928 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6929 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6930 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6931 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6932 | fi |
ec6a6fbe AK |
6933 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6934 | $as_echo "$as_val"'` | |
6935 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6936 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6937 | else |
6938 | # Is the header compilable? | |
ec6a6fbe AK |
6939 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6940 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6941 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6942 | /* confdefs.h. */ |
6943 | _ACEOF | |
6944 | cat confdefs.h >>conftest.$ac_ext | |
6945 | cat >>conftest.$ac_ext <<_ACEOF | |
6946 | /* end confdefs.h. */ | |
6947 | $ac_includes_default | |
6948 | #include <$ac_header> | |
6949 | _ACEOF | |
6950 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6951 | if { (ac_try="$ac_compile" |
6952 | case "(($ac_try" in | |
6953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6954 | *) ac_try_echo=$ac_try;; | |
6955 | esac | |
ec6a6fbe AK |
6956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6957 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6958 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6959 | ac_status=$? |
8a2fc586 AK |
6960 | grep -v '^ *+' conftest.er1 >conftest.err |
6961 | rm -f conftest.er1 | |
6962 | cat conftest.err >&5 | |
ec6a6fbe | 6963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6964 | (exit $ac_status); } && { |
6965 | test -z "$ac_c_werror_flag" || | |
6966 | test ! -s conftest.err | |
6967 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6968 | ac_header_compiler=yes |
6969 | else | |
ec6a6fbe | 6970 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6971 | sed 's/^/| /' conftest.$ac_ext >&5 |
6972 | ||
7a197a62 | 6973 | ac_header_compiler=no |
ad6254c5 | 6974 | fi |
7a197a62 AK |
6975 | |
6976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
6977 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6978 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6979 | |
6980 | # Is the header present? | |
ec6a6fbe AK |
6981 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6982 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6983 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6984 | /* confdefs.h. */ |
6985 | _ACEOF | |
6986 | cat confdefs.h >>conftest.$ac_ext | |
6987 | cat >>conftest.$ac_ext <<_ACEOF | |
6988 | /* end confdefs.h. */ | |
6989 | #include <$ac_header> | |
6990 | _ACEOF | |
7a197a62 AK |
6991 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6992 | case "(($ac_try" in | |
6993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6994 | *) ac_try_echo=$ac_try;; | |
6995 | esac | |
ec6a6fbe AK |
6996 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6997 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6999 | ac_status=$? |
7000 | grep -v '^ *+' conftest.er1 >conftest.err | |
7001 | rm -f conftest.er1 | |
7002 | cat conftest.err >&5 | |
ec6a6fbe | 7003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7004 | (exit $ac_status); } >/dev/null && { |
7005 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7006 | test ! -s conftest.err | |
7007 | }; then | |
ad6254c5 AK |
7008 | ac_header_preproc=yes |
7009 | else | |
ec6a6fbe | 7010 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7011 | sed 's/^/| /' conftest.$ac_ext >&5 |
7012 | ||
7013 | ac_header_preproc=no | |
7014 | fi | |
7a197a62 | 7015 | |
ad6254c5 | 7016 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7017 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7018 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7019 | |
7020 | # So? What about this header? | |
8a2fc586 AK |
7021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7022 | yes:no: ) | |
ec6a6fbe AK |
7023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7024 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7026 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7027 | ac_header_preproc=yes |
ad6254c5 | 7028 | ;; |
8a2fc586 | 7029 | no:yes:* ) |
ec6a6fbe AK |
7030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7031 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7033 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7035 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7037 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7039 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7041 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7042 | |
ad6254c5 AK |
7043 | ;; |
7044 | esac | |
ec6a6fbe AK |
7045 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7046 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7047 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7048 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7049 | else |
8a2fc586 | 7050 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7051 | fi |
ec6a6fbe AK |
7052 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7053 | $as_echo "$as_val"'` | |
7054 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7055 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7056 | |
795ca3e5 | 7057 | fi |
ec6a6fbe AK |
7058 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7059 | $as_echo "$as_val"'` | |
7060 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7061 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7062 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7063 | _ACEOF |
7064 | ||
7065 | fi | |
7066 | ||
7067 | done | |
795ca3e5 | 7068 | |
ad6254c5 AK |
7069 | |
7070 | ||
7071 | for ac_func in fork vfork | |
7072 | do | |
ec6a6fbe AK |
7073 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7074 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7075 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7076 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7077 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7078 | else |
ad6254c5 | 7079 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7080 | /* confdefs.h. */ |
7081 | _ACEOF | |
7082 | cat confdefs.h >>conftest.$ac_ext | |
7083 | cat >>conftest.$ac_ext <<_ACEOF | |
7084 | /* end confdefs.h. */ | |
8a2fc586 AK |
7085 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7087 | #define $ac_func innocuous_$ac_func | |
7088 | ||
ad6254c5 AK |
7089 | /* System header to define __stub macros and hopefully few prototypes, |
7090 | which can conflict with char $ac_func (); below. | |
7091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7092 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7093 | |
ad6254c5 AK |
7094 | #ifdef __STDC__ |
7095 | # include <limits.h> | |
7096 | #else | |
7097 | # include <assert.h> | |
795ca3e5 | 7098 | #endif |
8a2fc586 AK |
7099 | |
7100 | #undef $ac_func | |
7101 | ||
7a197a62 AK |
7102 | /* Override any GCC internal prototype to avoid an error. |
7103 | Use char because int might match the return type of a GCC | |
7104 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7105 | #ifdef __cplusplus |
ad6254c5 | 7106 | extern "C" |
ad6254c5 | 7107 | #endif |
ad6254c5 AK |
7108 | char $ac_func (); |
7109 | /* The GNU C library defines this for functions which it implements | |
7110 | to always fail with ENOSYS. Some functions are actually named | |
7111 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7112 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7113 | choke me |
795ca3e5 AK |
7114 | #endif |
7115 | ||
ad6254c5 AK |
7116 | int |
7117 | main () | |
7118 | { | |
7a197a62 | 7119 | return $ac_func (); |
ad6254c5 AK |
7120 | ; |
7121 | return 0; | |
7122 | } | |
7123 | _ACEOF | |
7124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7125 | if { (ac_try="$ac_link" |
7126 | case "(($ac_try" in | |
7127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7128 | *) ac_try_echo=$ac_try;; | |
7129 | esac | |
ec6a6fbe AK |
7130 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7131 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7132 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7133 | ac_status=$? |
8a2fc586 AK |
7134 | grep -v '^ *+' conftest.er1 >conftest.err |
7135 | rm -f conftest.er1 | |
7136 | cat conftest.err >&5 | |
ec6a6fbe | 7137 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7138 | (exit $ac_status); } && { |
7139 | test -z "$ac_c_werror_flag" || | |
7140 | test ! -s conftest.err | |
ec6a6fbe AK |
7141 | } && test -s conftest$ac_exeext && { |
7142 | test "$cross_compiling" = yes || | |
7143 | $as_test_x conftest$ac_exeext | |
7144 | }; then | |
ad6254c5 | 7145 | eval "$as_ac_var=yes" |
795ca3e5 | 7146 | else |
ec6a6fbe | 7147 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7148 | sed 's/^/| /' conftest.$ac_ext >&5 |
7149 | ||
7a197a62 | 7150 | eval "$as_ac_var=no" |
795ca3e5 | 7151 | fi |
7a197a62 | 7152 | |
ec6a6fbe | 7153 | rm -rf conftest.dSYM |
25fbec5b | 7154 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7155 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7156 | fi |
ec6a6fbe AK |
7157 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7158 | $as_echo "$as_val"'` | |
7159 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7160 | $as_echo "$ac_res" >&6; } | |
7161 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7162 | $as_echo "$as_val"'` | |
7163 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7164 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7165 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7166 | _ACEOF |
7167 | ||
7168 | fi | |
7169 | done | |
7170 | ||
7171 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7172 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7173 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7174 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7175 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7176 | else |
7177 | if test "$cross_compiling" = yes; then | |
7178 | ac_cv_func_fork_works=cross | |
7179 | else | |
7180 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7181 | /* confdefs.h. */ |
7182 | _ACEOF | |
7183 | cat confdefs.h >>conftest.$ac_ext | |
7184 | cat >>conftest.$ac_ext <<_ACEOF | |
7185 | /* end confdefs.h. */ | |
7186 | $ac_includes_default | |
7187 | int | |
7188 | main () | |
7189 | { | |
7190 | ||
7191 | /* By Ruediger Kuhlmann. */ | |
7192 | return fork () < 0; | |
7193 | ||
7194 | ; | |
7195 | return 0; | |
7196 | } | |
ad6254c5 AK |
7197 | _ACEOF |
7198 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7199 | if { (ac_try="$ac_link" |
7200 | case "(($ac_try" in | |
7201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7202 | *) ac_try_echo=$ac_try;; | |
7203 | esac | |
ec6a6fbe AK |
7204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7205 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7206 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7207 | ac_status=$? |
ec6a6fbe | 7208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7210 | { (case "(($ac_try" in |
7211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7212 | *) ac_try_echo=$ac_try;; | |
7213 | esac | |
ec6a6fbe AK |
7214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7215 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7216 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7217 | ac_status=$? |
ec6a6fbe | 7218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7219 | (exit $ac_status); }; }; then |
7220 | ac_cv_func_fork_works=yes | |
7221 | else | |
ec6a6fbe AK |
7222 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7223 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7224 | sed 's/^/| /' conftest.$ac_ext >&5 |
7225 | ||
7226 | ( exit $ac_status ) | |
7227 | ac_cv_func_fork_works=no | |
7228 | fi | |
ec6a6fbe | 7229 | rm -rf conftest.dSYM |
7a197a62 | 7230 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7231 | fi |
7a197a62 AK |
7232 | |
7233 | ||
ad6254c5 | 7234 | fi |
ec6a6fbe AK |
7235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7236 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7237 | |
7238 | else | |
7239 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7240 | fi | |
7241 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7242 | case $host in | |
7243 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7244 | # Override, as these systems have only a dummy fork() stub | |
7245 | ac_cv_func_fork_works=no | |
7246 | ;; | |
7247 | *) | |
7248 | ac_cv_func_fork_works=yes | |
7249 | ;; | |
7250 | esac | |
ec6a6fbe AK |
7251 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7252 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7253 | fi |
7254 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7255 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7256 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7257 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7258 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7259 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7260 | else |
7261 | if test "$cross_compiling" = yes; then | |
7262 | ac_cv_func_vfork_works=cross | |
7263 | else | |
7264 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7265 | /* confdefs.h. */ |
7266 | _ACEOF | |
7267 | cat confdefs.h >>conftest.$ac_ext | |
7268 | cat >>conftest.$ac_ext <<_ACEOF | |
7269 | /* end confdefs.h. */ | |
7270 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7271 | $ac_includes_default |
ad6254c5 | 7272 | #include <sys/wait.h> |
25fbec5b | 7273 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7274 | # include <vfork.h> |
7275 | #endif | |
7276 | /* On some sparc systems, changes by the child to local and incoming | |
7277 | argument registers are propagated back to the parent. The compiler | |
7278 | is told about this with #include <vfork.h>, but some compilers | |
7279 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7280 | static variable whose address is put into a register that is | |
7281 | clobbered by the vfork. */ | |
7282 | static void | |
7283 | #ifdef __cplusplus | |
7284 | sparc_address_test (int arg) | |
7285 | # else | |
7286 | sparc_address_test (arg) int arg; | |
7287 | #endif | |
7288 | { | |
7289 | static pid_t child; | |
7290 | if (!child) { | |
7291 | child = vfork (); | |
7292 | if (child < 0) { | |
7293 | perror ("vfork"); | |
7294 | _exit(2); | |
7295 | } | |
7296 | if (!child) { | |
7297 | arg = getpid(); | |
7298 | write(-1, "", 0); | |
7299 | _exit (arg); | |
7300 | } | |
7301 | } | |
7302 | } | |
7303 | ||
7304 | int | |
7305 | main () | |
7306 | { | |
7307 | pid_t parent = getpid (); | |
7308 | pid_t child; | |
7309 | ||
7310 | sparc_address_test (0); | |
7311 | ||
7312 | child = vfork (); | |
7313 | ||
7314 | if (child == 0) { | |
7315 | /* Here is another test for sparc vfork register problems. This | |
7316 | test uses lots of local variables, at least as many local | |
7317 | variables as main has allocated so far including compiler | |
7318 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7319 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7320 | reuse the register of parent for one of the local variables, | |
7321 | since it will think that parent can't possibly be used any more | |
7322 | in this routine. Assigning to the local variable will thus | |
7323 | munge parent in the parent process. */ | |
7324 | pid_t | |
7325 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7326 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7327 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7328 | use the same hardware register for all 8 local variables. */ | |
7329 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7330 | || p != p5 || p != p6 || p != p7) | |
7331 | _exit(1); | |
7332 | ||
7333 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7334 | from child file descriptors. If the child closes a descriptor | |
7335 | before it execs or exits, this munges the parent's descriptor | |
7336 | as well. Test for this by closing stdout in the child. */ | |
7337 | _exit(close(fileno(stdout)) != 0); | |
7338 | } else { | |
7339 | int status; | |
7340 | struct stat st; | |
7341 | ||
7342 | while (wait(&status) != child) | |
7343 | ; | |
7a197a62 | 7344 | return ( |
ad6254c5 AK |
7345 | /* Was there some problem with vforking? */ |
7346 | child < 0 | |
7347 | ||
7348 | /* Did the child fail? (This shouldn't happen.) */ | |
7349 | || status | |
7350 | ||
7351 | /* Did the vfork/compiler bug occur? */ | |
7352 | || parent != getpid() | |
7353 | ||
7354 | /* Did the file descriptor bug occur? */ | |
7355 | || fstat(fileno(stdout), &st) != 0 | |
7356 | ); | |
7357 | } | |
7358 | } | |
7359 | _ACEOF | |
7360 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7361 | if { (ac_try="$ac_link" |
7362 | case "(($ac_try" in | |
7363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7364 | *) ac_try_echo=$ac_try;; | |
7365 | esac | |
ec6a6fbe AK |
7366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7367 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7368 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7369 | ac_status=$? |
ec6a6fbe | 7370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7372 | { (case "(($ac_try" in |
7373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7374 | *) ac_try_echo=$ac_try;; | |
7375 | esac | |
ec6a6fbe AK |
7376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7377 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7378 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7379 | ac_status=$? |
ec6a6fbe | 7380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7381 | (exit $ac_status); }; }; then |
7382 | ac_cv_func_vfork_works=yes | |
7383 | else | |
ec6a6fbe AK |
7384 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7385 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7386 | sed 's/^/| /' conftest.$ac_ext >&5 |
7387 | ||
7388 | ( exit $ac_status ) | |
7389 | ac_cv_func_vfork_works=no | |
7390 | fi | |
ec6a6fbe | 7391 | rm -rf conftest.dSYM |
7a197a62 | 7392 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7393 | fi |
7a197a62 AK |
7394 | |
7395 | ||
ad6254c5 | 7396 | fi |
ec6a6fbe AK |
7397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7398 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7399 | |
7400 | fi; | |
7401 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7402 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7403 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7404 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7405 | fi |
7406 | ||
7407 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7408 | ||
7409 | cat >>confdefs.h <<\_ACEOF | |
7410 | #define HAVE_WORKING_VFORK 1 | |
7411 | _ACEOF | |
7412 | ||
7413 | else | |
7414 | ||
7415 | cat >>confdefs.h <<\_ACEOF | |
7416 | #define vfork fork | |
7417 | _ACEOF | |
7418 | ||
7419 | fi | |
7420 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7421 | ||
7422 | cat >>confdefs.h <<\_ACEOF | |
7423 | #define HAVE_WORKING_FORK 1 | |
7424 | _ACEOF | |
7425 | ||
7426 | fi | |
7427 | ||
ec6a6fbe AK |
7428 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7429 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7430 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7431 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7432 | else |
7433 | rm -f conftest.sym conftest.file | |
7434 | echo >conftest.file | |
7435 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7436 | if test "$cross_compiling" = yes; then | |
7437 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7438 | else | |
7439 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7440 | /* confdefs.h. */ |
7441 | _ACEOF | |
7442 | cat confdefs.h >>conftest.$ac_ext | |
7443 | cat >>conftest.$ac_ext <<_ACEOF | |
7444 | /* end confdefs.h. */ | |
7445 | $ac_includes_default | |
7446 | int | |
7447 | main () | |
7448 | { | |
7449 | struct stat sbuf; | |
7450 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7451 | That is better in the sense that it means we will not |
7452 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7453 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7454 | ; |
7455 | return 0; | |
7456 | } | |
7457 | _ACEOF | |
7458 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7459 | if { (ac_try="$ac_link" |
7460 | case "(($ac_try" in | |
7461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7462 | *) ac_try_echo=$ac_try;; | |
7463 | esac | |
ec6a6fbe AK |
7464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7465 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7466 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7467 | ac_status=$? |
ec6a6fbe | 7468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7469 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7470 | { (case "(($ac_try" in |
7471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7472 | *) ac_try_echo=$ac_try;; | |
7473 | esac | |
ec6a6fbe AK |
7474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7475 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7476 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7477 | ac_status=$? |
ec6a6fbe | 7478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7479 | (exit $ac_status); }; }; then |
7480 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7481 | else | |
ec6a6fbe AK |
7482 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7483 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7484 | sed 's/^/| /' conftest.$ac_ext >&5 |
7485 | ||
7486 | ( exit $ac_status ) | |
7487 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7488 | fi | |
ec6a6fbe | 7489 | rm -rf conftest.dSYM |
7a197a62 | 7490 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7491 | fi |
7a197a62 AK |
7492 | |
7493 | ||
ad6254c5 AK |
7494 | else |
7495 | # If the `ln -s' command failed, then we probably don't even | |
7496 | # have an lstat function. | |
7497 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7498 | fi | |
7499 | rm -f conftest.sym conftest.file | |
7500 | ||
7501 | fi | |
ec6a6fbe AK |
7502 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7503 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7504 | |
7505 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7506 | ||
7507 | cat >>confdefs.h <<_ACEOF | |
7508 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7509 | _ACEOF | |
7510 | ||
7511 | ||
7512 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7513 | case " $LIBOBJS " in |
8a2fc586 | 7514 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7515 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7516 | ;; | |
8a2fc586 AK |
7517 | esac |
7518 | ||
ad6254c5 AK |
7519 | fi |
7520 | ||
ec6a6fbe AK |
7521 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7522 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7523 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7524 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7525 | else |
7526 | if test "$cross_compiling" = yes; then | |
7527 | ac_cv_func_lstat_empty_string_bug=yes | |
7528 | else | |
7529 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7530 | /* confdefs.h. */ |
7531 | _ACEOF | |
7532 | cat confdefs.h >>conftest.$ac_ext | |
7533 | cat >>conftest.$ac_ext <<_ACEOF | |
7534 | /* end confdefs.h. */ | |
7535 | $ac_includes_default | |
7536 | int | |
7537 | main () | |
7538 | { | |
7539 | struct stat sbuf; | |
7a197a62 | 7540 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7541 | ; |
7542 | return 0; | |
7543 | } | |
7544 | _ACEOF | |
7545 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7546 | if { (ac_try="$ac_link" |
7547 | case "(($ac_try" in | |
7548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7549 | *) ac_try_echo=$ac_try;; | |
7550 | esac | |
ec6a6fbe AK |
7551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7552 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7553 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7554 | ac_status=$? |
ec6a6fbe | 7555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7557 | { (case "(($ac_try" in |
7558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7559 | *) ac_try_echo=$ac_try;; | |
7560 | esac | |
ec6a6fbe AK |
7561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7562 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7563 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7564 | ac_status=$? |
ec6a6fbe | 7565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7566 | (exit $ac_status); }; }; then |
7a197a62 | 7567 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7568 | else |
ec6a6fbe AK |
7569 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7570 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7571 | sed 's/^/| /' conftest.$ac_ext >&5 |
7572 | ||
7573 | ( exit $ac_status ) | |
7a197a62 | 7574 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7575 | fi |
ec6a6fbe | 7576 | rm -rf conftest.dSYM |
7a197a62 | 7577 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7578 | fi |
7a197a62 AK |
7579 | |
7580 | ||
ad6254c5 | 7581 | fi |
ec6a6fbe AK |
7582 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7583 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7584 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7585 | case " $LIBOBJS " in |
8a2fc586 | 7586 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7587 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7588 | ;; | |
8a2fc586 AK |
7589 | esac |
7590 | ||
ad6254c5 AK |
7591 | |
7592 | cat >>confdefs.h <<_ACEOF | |
7593 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7594 | _ACEOF | |
7595 | ||
7596 | fi | |
7597 | ||
7598 | ||
7599 | for ac_header in stdlib.h | |
7600 | do | |
ec6a6fbe | 7601 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7603 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7604 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7606 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7607 | fi |
ec6a6fbe AK |
7608 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7609 | $as_echo "$as_val"'` | |
7610 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7611 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7612 | else |
7613 | # Is the header compilable? | |
ec6a6fbe AK |
7614 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7615 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7616 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7617 | /* confdefs.h. */ |
7618 | _ACEOF | |
7619 | cat confdefs.h >>conftest.$ac_ext | |
7620 | cat >>conftest.$ac_ext <<_ACEOF | |
7621 | /* end confdefs.h. */ | |
7622 | $ac_includes_default | |
7623 | #include <$ac_header> | |
7624 | _ACEOF | |
7625 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7626 | if { (ac_try="$ac_compile" |
7627 | case "(($ac_try" in | |
7628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7629 | *) ac_try_echo=$ac_try;; | |
7630 | esac | |
ec6a6fbe AK |
7631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7632 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7633 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7634 | ac_status=$? |
8a2fc586 AK |
7635 | grep -v '^ *+' conftest.er1 >conftest.err |
7636 | rm -f conftest.er1 | |
7637 | cat conftest.err >&5 | |
ec6a6fbe | 7638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7639 | (exit $ac_status); } && { |
7640 | test -z "$ac_c_werror_flag" || | |
7641 | test ! -s conftest.err | |
7642 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7643 | ac_header_compiler=yes |
7644 | else | |
ec6a6fbe | 7645 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7646 | sed 's/^/| /' conftest.$ac_ext >&5 |
7647 | ||
7a197a62 | 7648 | ac_header_compiler=no |
ad6254c5 | 7649 | fi |
7a197a62 AK |
7650 | |
7651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7652 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7653 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7654 | |
7655 | # Is the header present? | |
ec6a6fbe AK |
7656 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7657 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7658 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7659 | /* confdefs.h. */ |
7660 | _ACEOF | |
7661 | cat confdefs.h >>conftest.$ac_ext | |
7662 | cat >>conftest.$ac_ext <<_ACEOF | |
7663 | /* end confdefs.h. */ | |
7664 | #include <$ac_header> | |
7665 | _ACEOF | |
7a197a62 AK |
7666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7667 | case "(($ac_try" in | |
7668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7669 | *) ac_try_echo=$ac_try;; | |
7670 | esac | |
ec6a6fbe AK |
7671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7672 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7674 | ac_status=$? |
7675 | grep -v '^ *+' conftest.er1 >conftest.err | |
7676 | rm -f conftest.er1 | |
7677 | cat conftest.err >&5 | |
ec6a6fbe | 7678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7679 | (exit $ac_status); } >/dev/null && { |
7680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7681 | test ! -s conftest.err | |
7682 | }; then | |
ad6254c5 AK |
7683 | ac_header_preproc=yes |
7684 | else | |
ec6a6fbe | 7685 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7686 | sed 's/^/| /' conftest.$ac_ext >&5 |
7687 | ||
7688 | ac_header_preproc=no | |
7689 | fi | |
7a197a62 | 7690 | |
ad6254c5 | 7691 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7692 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7693 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7694 | |
7695 | # So? What about this header? | |
8a2fc586 AK |
7696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7697 | yes:no: ) | |
ec6a6fbe AK |
7698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7699 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7701 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7702 | ac_header_preproc=yes |
ad6254c5 | 7703 | ;; |
8a2fc586 | 7704 | no:yes:* ) |
ec6a6fbe AK |
7705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7706 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7707 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7708 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7710 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7712 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7713 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7714 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7715 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7716 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7717 | |
ad6254c5 AK |
7718 | ;; |
7719 | esac | |
ec6a6fbe AK |
7720 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7721 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7723 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7724 | else |
8a2fc586 | 7725 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7726 | fi |
ec6a6fbe AK |
7727 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7728 | $as_echo "$as_val"'` | |
7729 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7730 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7731 | |
7732 | fi | |
ec6a6fbe AK |
7733 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7734 | $as_echo "$as_val"'` | |
7735 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7736 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7737 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7738 | _ACEOF |
7739 | ||
7740 | fi | |
7741 | ||
7742 | done | |
7743 | ||
ec6a6fbe AK |
7744 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7745 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7746 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7747 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7748 | else |
7749 | if test "$cross_compiling" = yes; then | |
7750 | ac_cv_func_malloc_0_nonnull=no | |
7751 | else | |
7752 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7753 | /* confdefs.h. */ |
7754 | _ACEOF | |
7755 | cat confdefs.h >>conftest.$ac_ext | |
7756 | cat >>conftest.$ac_ext <<_ACEOF | |
7757 | /* end confdefs.h. */ | |
25fbec5b | 7758 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7759 | # include <stdlib.h> |
7760 | #else | |
7761 | char *malloc (); | |
7762 | #endif | |
7763 | ||
7764 | int | |
7765 | main () | |
7766 | { | |
7a197a62 | 7767 | return ! malloc (0); |
ad6254c5 AK |
7768 | ; |
7769 | return 0; | |
7770 | } | |
7771 | _ACEOF | |
7772 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7773 | if { (ac_try="$ac_link" |
7774 | case "(($ac_try" in | |
7775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7776 | *) ac_try_echo=$ac_try;; | |
7777 | esac | |
ec6a6fbe AK |
7778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7779 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7780 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7781 | ac_status=$? |
ec6a6fbe | 7782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7784 | { (case "(($ac_try" in |
7785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7786 | *) ac_try_echo=$ac_try;; | |
7787 | esac | |
ec6a6fbe AK |
7788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7789 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7790 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7791 | ac_status=$? |
ec6a6fbe | 7792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7793 | (exit $ac_status); }; }; then |
7794 | ac_cv_func_malloc_0_nonnull=yes | |
7795 | else | |
ec6a6fbe AK |
7796 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7797 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7798 | sed 's/^/| /' conftest.$ac_ext >&5 |
7799 | ||
7800 | ( exit $ac_status ) | |
7801 | ac_cv_func_malloc_0_nonnull=no | |
7802 | fi | |
ec6a6fbe | 7803 | rm -rf conftest.dSYM |
7a197a62 | 7804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7805 | fi |
7a197a62 AK |
7806 | |
7807 | ||
ad6254c5 | 7808 | fi |
ec6a6fbe AK |
7809 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7810 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7811 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7812 | ||
7813 | cat >>confdefs.h <<\_ACEOF | |
7814 | #define HAVE_MALLOC 1 | |
7815 | _ACEOF | |
7816 | ||
7817 | else | |
7818 | cat >>confdefs.h <<\_ACEOF | |
7819 | #define HAVE_MALLOC 0 | |
7820 | _ACEOF | |
7821 | ||
7a197a62 | 7822 | case " $LIBOBJS " in |
8a2fc586 | 7823 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7824 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7825 | ;; | |
8a2fc586 AK |
7826 | esac |
7827 | ||
ad6254c5 AK |
7828 | |
7829 | cat >>confdefs.h <<\_ACEOF | |
7830 | #define malloc rpl_malloc | |
7831 | _ACEOF | |
7832 | ||
7833 | fi | |
7834 | ||
7835 | ||
7836 | ||
ec6a6fbe AK |
7837 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7838 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7839 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7840 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7841 | else |
7842 | if test "$cross_compiling" = yes; then | |
7843 | ac_cv_func_memcmp_working=no | |
7844 | else | |
7845 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7846 | /* confdefs.h. */ |
7847 | _ACEOF | |
7848 | cat confdefs.h >>conftest.$ac_ext | |
7849 | cat >>conftest.$ac_ext <<_ACEOF | |
7850 | /* end confdefs.h. */ | |
8a2fc586 | 7851 | $ac_includes_default |
ad6254c5 AK |
7852 | int |
7853 | main () | |
7854 | { | |
7855 | ||
7856 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7857 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7858 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7859 | return 1; |
ad6254c5 AK |
7860 | |
7861 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7862 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7863 | William Lewis provided this test program. */ | |
7864 | { | |
7865 | char foo[21]; | |
7866 | char bar[21]; | |
7867 | int i; | |
7868 | for (i = 0; i < 4; i++) | |
7869 | { | |
8a2fc586 AK |
7870 | char *a = foo + i; |
7871 | char *b = bar + i; | |
7872 | strcpy (a, "--------01111111"); | |
7873 | strcpy (b, "--------10000000"); | |
7874 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7875 | return 1; |
ad6254c5 | 7876 | } |
7a197a62 | 7877 | return 0; |
ad6254c5 AK |
7878 | } |
7879 | ||
7880 | ; | |
7881 | return 0; | |
7882 | } | |
7883 | _ACEOF | |
7884 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7885 | if { (ac_try="$ac_link" |
7886 | case "(($ac_try" in | |
7887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7888 | *) ac_try_echo=$ac_try;; | |
7889 | esac | |
ec6a6fbe AK |
7890 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7891 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7892 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7893 | ac_status=$? |
ec6a6fbe | 7894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7895 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7896 | { (case "(($ac_try" in |
7897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7898 | *) ac_try_echo=$ac_try;; | |
7899 | esac | |
ec6a6fbe AK |
7900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7901 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7902 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7903 | ac_status=$? |
ec6a6fbe | 7904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7905 | (exit $ac_status); }; }; then |
7906 | ac_cv_func_memcmp_working=yes | |
7907 | else | |
ec6a6fbe AK |
7908 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7909 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7910 | sed 's/^/| /' conftest.$ac_ext >&5 |
7911 | ||
7912 | ( exit $ac_status ) | |
7913 | ac_cv_func_memcmp_working=no | |
7914 | fi | |
ec6a6fbe | 7915 | rm -rf conftest.dSYM |
7a197a62 | 7916 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7917 | fi |
7a197a62 AK |
7918 | |
7919 | ||
ad6254c5 | 7920 | fi |
ec6a6fbe AK |
7921 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7922 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7923 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7924 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7925 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7926 | ;; | |
8a2fc586 AK |
7927 | esac |
7928 | ||
ad6254c5 AK |
7929 | |
7930 | ||
7931 | ||
7932 | for ac_header in stdlib.h unistd.h | |
7933 | do | |
ec6a6fbe | 7934 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7935 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7936 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7937 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7938 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7939 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7940 | fi |
ec6a6fbe AK |
7941 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7942 | $as_echo "$as_val"'` | |
7943 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7944 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7945 | else |
7946 | # Is the header compilable? | |
ec6a6fbe AK |
7947 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7948 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7949 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7950 | /* confdefs.h. */ |
7951 | _ACEOF | |
7952 | cat confdefs.h >>conftest.$ac_ext | |
7953 | cat >>conftest.$ac_ext <<_ACEOF | |
7954 | /* end confdefs.h. */ | |
7955 | $ac_includes_default | |
7956 | #include <$ac_header> | |
7957 | _ACEOF | |
7958 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7959 | if { (ac_try="$ac_compile" |
7960 | case "(($ac_try" in | |
7961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7962 | *) ac_try_echo=$ac_try;; | |
7963 | esac | |
ec6a6fbe AK |
7964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7965 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7966 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7967 | ac_status=$? |
8a2fc586 AK |
7968 | grep -v '^ *+' conftest.er1 >conftest.err |
7969 | rm -f conftest.er1 | |
7970 | cat conftest.err >&5 | |
ec6a6fbe | 7971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7972 | (exit $ac_status); } && { |
7973 | test -z "$ac_c_werror_flag" || | |
7974 | test ! -s conftest.err | |
7975 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7976 | ac_header_compiler=yes |
7977 | else | |
ec6a6fbe | 7978 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7979 | sed 's/^/| /' conftest.$ac_ext >&5 |
7980 | ||
7a197a62 | 7981 | ac_header_compiler=no |
ad6254c5 | 7982 | fi |
7a197a62 AK |
7983 | |
7984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7985 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7986 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7987 | |
7988 | # Is the header present? | |
ec6a6fbe AK |
7989 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7990 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7991 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7992 | /* confdefs.h. */ |
7993 | _ACEOF | |
7994 | cat confdefs.h >>conftest.$ac_ext | |
7995 | cat >>conftest.$ac_ext <<_ACEOF | |
7996 | /* end confdefs.h. */ | |
7997 | #include <$ac_header> | |
7998 | _ACEOF | |
7a197a62 AK |
7999 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8000 | case "(($ac_try" in | |
8001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8002 | *) ac_try_echo=$ac_try;; | |
8003 | esac | |
ec6a6fbe AK |
8004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8005 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8006 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8007 | ac_status=$? |
8008 | grep -v '^ *+' conftest.er1 >conftest.err | |
8009 | rm -f conftest.er1 | |
8010 | cat conftest.err >&5 | |
ec6a6fbe | 8011 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8012 | (exit $ac_status); } >/dev/null && { |
8013 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8014 | test ! -s conftest.err | |
8015 | }; then | |
ad6254c5 AK |
8016 | ac_header_preproc=yes |
8017 | else | |
ec6a6fbe | 8018 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8019 | sed 's/^/| /' conftest.$ac_ext >&5 |
8020 | ||
8021 | ac_header_preproc=no | |
8022 | fi | |
7a197a62 | 8023 | |
ad6254c5 | 8024 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8025 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8026 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8027 | |
8028 | # So? What about this header? | |
8a2fc586 AK |
8029 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8030 | yes:no: ) | |
ec6a6fbe AK |
8031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8032 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8034 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8035 | ac_header_preproc=yes |
ad6254c5 | 8036 | ;; |
8a2fc586 | 8037 | no:yes:* ) |
ec6a6fbe AK |
8038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8039 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8041 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8042 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8043 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8044 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8045 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8046 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8047 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8048 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8049 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8050 | |
ad6254c5 AK |
8051 | ;; |
8052 | esac | |
ec6a6fbe AK |
8053 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8054 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8055 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8056 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8057 | else |
8a2fc586 | 8058 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8059 | fi |
ec6a6fbe AK |
8060 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8061 | $as_echo "$as_val"'` | |
8062 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8063 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8064 | |
8065 | fi | |
ec6a6fbe AK |
8066 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8067 | $as_echo "$as_val"'` | |
8068 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8069 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8070 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8071 | _ACEOF |
8072 | ||
8073 | fi | |
8074 | ||
8075 | done | |
8076 | ||
8077 | ||
8078 | for ac_func in getpagesize | |
8079 | do | |
ec6a6fbe AK |
8080 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8081 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8082 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8083 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8084 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8085 | else |
8086 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8087 | /* confdefs.h. */ |
8088 | _ACEOF | |
8089 | cat confdefs.h >>conftest.$ac_ext | |
8090 | cat >>conftest.$ac_ext <<_ACEOF | |
8091 | /* end confdefs.h. */ | |
8a2fc586 AK |
8092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8094 | #define $ac_func innocuous_$ac_func | |
8095 | ||
ad6254c5 AK |
8096 | /* System header to define __stub macros and hopefully few prototypes, |
8097 | which can conflict with char $ac_func (); below. | |
8098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8099 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8100 | |
ad6254c5 AK |
8101 | #ifdef __STDC__ |
8102 | # include <limits.h> | |
8103 | #else | |
8104 | # include <assert.h> | |
8105 | #endif | |
8a2fc586 AK |
8106 | |
8107 | #undef $ac_func | |
8108 | ||
7a197a62 AK |
8109 | /* Override any GCC internal prototype to avoid an error. |
8110 | Use char because int might match the return type of a GCC | |
8111 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8112 | #ifdef __cplusplus |
8113 | extern "C" | |
ad6254c5 | 8114 | #endif |
ad6254c5 AK |
8115 | char $ac_func (); |
8116 | /* The GNU C library defines this for functions which it implements | |
8117 | to always fail with ENOSYS. Some functions are actually named | |
8118 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8119 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8120 | choke me |
ad6254c5 AK |
8121 | #endif |
8122 | ||
8123 | int | |
8124 | main () | |
8125 | { | |
7a197a62 | 8126 | return $ac_func (); |
ad6254c5 AK |
8127 | ; |
8128 | return 0; | |
8129 | } | |
8130 | _ACEOF | |
8131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8132 | if { (ac_try="$ac_link" |
8133 | case "(($ac_try" in | |
8134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8135 | *) ac_try_echo=$ac_try;; | |
8136 | esac | |
ec6a6fbe AK |
8137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8138 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8139 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8140 | ac_status=$? |
8a2fc586 AK |
8141 | grep -v '^ *+' conftest.er1 >conftest.err |
8142 | rm -f conftest.er1 | |
8143 | cat conftest.err >&5 | |
ec6a6fbe | 8144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8145 | (exit $ac_status); } && { |
8146 | test -z "$ac_c_werror_flag" || | |
8147 | test ! -s conftest.err | |
ec6a6fbe AK |
8148 | } && test -s conftest$ac_exeext && { |
8149 | test "$cross_compiling" = yes || | |
8150 | $as_test_x conftest$ac_exeext | |
8151 | }; then | |
ad6254c5 AK |
8152 | eval "$as_ac_var=yes" |
8153 | else | |
ec6a6fbe | 8154 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8155 | sed 's/^/| /' conftest.$ac_ext >&5 |
8156 | ||
7a197a62 | 8157 | eval "$as_ac_var=no" |
ad6254c5 | 8158 | fi |
7a197a62 | 8159 | |
ec6a6fbe | 8160 | rm -rf conftest.dSYM |
25fbec5b | 8161 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8162 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8163 | fi |
ec6a6fbe AK |
8164 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8165 | $as_echo "$as_val"'` | |
8166 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8167 | $as_echo "$ac_res" >&6; } | |
8168 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8169 | $as_echo "$as_val"'` | |
8170 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8171 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8172 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8173 | _ACEOF |
8174 | ||
8175 | fi | |
8176 | done | |
8177 | ||
ec6a6fbe AK |
8178 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8179 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8180 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8181 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8182 | else |
8183 | if test "$cross_compiling" = yes; then | |
8184 | ac_cv_func_mmap_fixed_mapped=no | |
8185 | else | |
8186 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8187 | /* confdefs.h. */ |
8188 | _ACEOF | |
8189 | cat confdefs.h >>conftest.$ac_ext | |
8190 | cat >>conftest.$ac_ext <<_ACEOF | |
8191 | /* end confdefs.h. */ | |
8192 | $ac_includes_default | |
8193 | /* malloc might have been renamed as rpl_malloc. */ | |
8194 | #undef malloc | |
8195 | ||
8196 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8197 | Here is a matrix of mmap possibilities: | |
8198 | mmap private not fixed | |
8199 | mmap private fixed at somewhere currently unmapped | |
8200 | mmap private fixed at somewhere already mapped | |
8201 | mmap shared not fixed | |
8202 | mmap shared fixed at somewhere currently unmapped | |
8203 | mmap shared fixed at somewhere already mapped | |
8204 | For private mappings, we should verify that changes cannot be read() | |
8205 | back from the file, nor mmap's back from the file at a different | |
8206 | address. (There have been systems where private was not correctly | |
8207 | implemented like the infamous i386 svr4.0, and systems where the | |
8208 | VM page cache was not coherent with the file system buffer cache | |
8209 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8210 | For shared mappings, we should conversely verify that changes get | |
8211 | propagated back to all the places they're supposed to be. | |
8212 | ||
8213 | Grep wants private fixed already mapped. | |
8214 | The main things grep needs to know about mmap are: | |
8215 | * does it exist and is it safe to write into the mmap'd area | |
8216 | * how to use it (BSD variants) */ | |
8217 | ||
8218 | #include <fcntl.h> | |
8219 | #include <sys/mman.h> | |
8220 | ||
25fbec5b | 8221 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8222 | char *malloc (); |
8223 | #endif | |
8224 | ||
8225 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8226 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8227 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8228 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8229 | # define HAVE_SYS_PARAM_H 1 |
8230 | # endif | |
8231 | ||
8232 | # ifdef _SC_PAGESIZE | |
8233 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8234 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8235 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8236 | # include <sys/param.h> |
8237 | # ifdef EXEC_PAGESIZE | |
8238 | # define getpagesize() EXEC_PAGESIZE | |
8239 | # else /* no EXEC_PAGESIZE */ | |
8240 | # ifdef NBPG | |
8241 | # define getpagesize() NBPG * CLSIZE | |
8242 | # ifndef CLSIZE | |
8243 | # define CLSIZE 1 | |
8244 | # endif /* no CLSIZE */ | |
8245 | # else /* no NBPG */ | |
8246 | # ifdef NBPC | |
8247 | # define getpagesize() NBPC | |
8248 | # else /* no NBPC */ | |
8249 | # ifdef PAGESIZE | |
8250 | # define getpagesize() PAGESIZE | |
8251 | # endif /* PAGESIZE */ | |
8252 | # endif /* no NBPC */ | |
8253 | # endif /* no NBPG */ | |
8254 | # endif /* no EXEC_PAGESIZE */ | |
8255 | # else /* no HAVE_SYS_PARAM_H */ | |
8256 | # define getpagesize() 8192 /* punt totally */ | |
8257 | # endif /* no HAVE_SYS_PARAM_H */ | |
8258 | # endif /* no _SC_PAGESIZE */ | |
8259 | ||
8260 | #endif /* no HAVE_GETPAGESIZE */ | |
8261 | ||
8262 | int | |
8263 | main () | |
8264 | { | |
8265 | char *data, *data2, *data3; | |
8266 | int i, pagesize; | |
8267 | int fd; | |
8268 | ||
8269 | pagesize = getpagesize (); | |
8270 | ||
8271 | /* First, make a file with some known garbage in it. */ | |
8272 | data = (char *) malloc (pagesize); | |
8273 | if (!data) | |
7a197a62 | 8274 | return 1; |
ad6254c5 AK |
8275 | for (i = 0; i < pagesize; ++i) |
8276 | *(data + i) = rand (); | |
8277 | umask (0); | |
8278 | fd = creat ("conftest.mmap", 0600); | |
8279 | if (fd < 0) | |
7a197a62 | 8280 | return 1; |
ad6254c5 | 8281 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8282 | return 1; |
ad6254c5 AK |
8283 | close (fd); |
8284 | ||
8285 | /* Next, try to mmap the file at a fixed address which already has | |
8286 | something else allocated at it. If we can, also make sure that | |
8287 | we see the same garbage. */ | |
8288 | fd = open ("conftest.mmap", O_RDWR); | |
8289 | if (fd < 0) | |
7a197a62 | 8290 | return 1; |
ad6254c5 AK |
8291 | data2 = (char *) malloc (2 * pagesize); |
8292 | if (!data2) | |
7a197a62 AK |
8293 | return 1; |
8294 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8295 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8296 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8297 | return 1; |
ad6254c5 AK |
8298 | for (i = 0; i < pagesize; ++i) |
8299 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8300 | return 1; |
ad6254c5 AK |
8301 | |
8302 | /* Finally, make sure that changes to the mapped area do not | |
8303 | percolate back to the file as seen by read(). (This is a bug on | |
8304 | some variants of i386 svr4.0.) */ | |
8305 | for (i = 0; i < pagesize; ++i) | |
8306 | *(data2 + i) = *(data2 + i) + 1; | |
8307 | data3 = (char *) malloc (pagesize); | |
8308 | if (!data3) | |
7a197a62 | 8309 | return 1; |
ad6254c5 | 8310 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8311 | return 1; |
ad6254c5 AK |
8312 | for (i = 0; i < pagesize; ++i) |
8313 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8314 | return 1; |
ad6254c5 | 8315 | close (fd); |
7a197a62 | 8316 | return 0; |
ad6254c5 AK |
8317 | } |
8318 | _ACEOF | |
8319 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8320 | if { (ac_try="$ac_link" |
8321 | case "(($ac_try" in | |
8322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8323 | *) ac_try_echo=$ac_try;; | |
8324 | esac | |
ec6a6fbe AK |
8325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8326 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8327 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8328 | ac_status=$? |
ec6a6fbe | 8329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8330 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8331 | { (case "(($ac_try" in |
8332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8333 | *) ac_try_echo=$ac_try;; | |
8334 | esac | |
ec6a6fbe AK |
8335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8336 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8337 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8338 | ac_status=$? |
ec6a6fbe | 8339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8340 | (exit $ac_status); }; }; then |
8341 | ac_cv_func_mmap_fixed_mapped=yes | |
8342 | else | |
ec6a6fbe AK |
8343 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8344 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8345 | sed 's/^/| /' conftest.$ac_ext >&5 |
8346 | ||
8347 | ( exit $ac_status ) | |
8348 | ac_cv_func_mmap_fixed_mapped=no | |
8349 | fi | |
ec6a6fbe | 8350 | rm -rf conftest.dSYM |
7a197a62 | 8351 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8352 | fi |
7a197a62 AK |
8353 | |
8354 | ||
ad6254c5 | 8355 | fi |
ec6a6fbe AK |
8356 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8357 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8358 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8359 | ||
8360 | cat >>confdefs.h <<\_ACEOF | |
8361 | #define HAVE_MMAP 1 | |
8362 | _ACEOF | |
8363 | ||
8364 | fi | |
8365 | rm -f conftest.mmap | |
8366 | ||
ec6a6fbe AK |
8367 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8368 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8369 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8370 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8371 | else |
8372 | if test "$cross_compiling" = yes; then | |
8373 | ac_cv_func_stat_empty_string_bug=yes | |
8374 | else | |
8375 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8376 | /* confdefs.h. */ |
8377 | _ACEOF | |
8378 | cat confdefs.h >>conftest.$ac_ext | |
8379 | cat >>conftest.$ac_ext <<_ACEOF | |
8380 | /* end confdefs.h. */ | |
8381 | $ac_includes_default | |
8382 | int | |
8383 | main () | |
8384 | { | |
8385 | struct stat sbuf; | |
7a197a62 | 8386 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8387 | ; |
8388 | return 0; | |
8389 | } | |
8390 | _ACEOF | |
8391 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8392 | if { (ac_try="$ac_link" |
8393 | case "(($ac_try" in | |
8394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8395 | *) ac_try_echo=$ac_try;; | |
8396 | esac | |
ec6a6fbe AK |
8397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8398 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8399 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8400 | ac_status=$? |
ec6a6fbe | 8401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8403 | { (case "(($ac_try" in |
8404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8405 | *) ac_try_echo=$ac_try;; | |
8406 | esac | |
ec6a6fbe AK |
8407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8408 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8409 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8410 | ac_status=$? |
ec6a6fbe | 8411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8412 | (exit $ac_status); }; }; then |
7a197a62 | 8413 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8414 | else |
ec6a6fbe AK |
8415 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8416 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8417 | sed 's/^/| /' conftest.$ac_ext >&5 |
8418 | ||
8419 | ( exit $ac_status ) | |
7a197a62 | 8420 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8421 | fi |
ec6a6fbe | 8422 | rm -rf conftest.dSYM |
7a197a62 | 8423 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8424 | fi |
7a197a62 AK |
8425 | |
8426 | ||
ad6254c5 | 8427 | fi |
ec6a6fbe AK |
8428 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8429 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8430 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8431 | case " $LIBOBJS " in |
8a2fc586 | 8432 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8433 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8434 | ;; | |
8a2fc586 AK |
8435 | esac |
8436 | ||
ad6254c5 AK |
8437 | |
8438 | cat >>confdefs.h <<_ACEOF | |
8439 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8440 | _ACEOF | |
8441 | ||
8442 | fi | |
8443 | ||
ec6a6fbe AK |
8444 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8445 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8446 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8447 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8448 | else |
8449 | if test "$cross_compiling" = yes; then | |
8450 | ac_cv_func_strtod=no | |
8451 | else | |
8452 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8453 | /* confdefs.h. */ |
8454 | _ACEOF | |
8455 | cat confdefs.h >>conftest.$ac_ext | |
8456 | cat >>conftest.$ac_ext <<_ACEOF | |
8457 | /* end confdefs.h. */ | |
8458 | ||
7a197a62 AK |
8459 | $ac_includes_default |
8460 | #ifndef strtod | |
ad6254c5 | 8461 | double strtod (); |
7a197a62 | 8462 | #endif |
ad6254c5 AK |
8463 | int |
8464 | main() | |
8465 | { | |
8466 | { | |
8467 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8468 | char *string = " +69"; | |
8469 | char *term; | |
8470 | double value; | |
8471 | value = strtod (string, &term); | |
8472 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8473 | return 1; |
ad6254c5 AK |
8474 | } |
8475 | ||
8476 | { | |
8477 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8478 | terminating character under some conditions. */ | |
8479 | char *string = "NaN"; | |
8480 | char *term; | |
8481 | strtod (string, &term); | |
8482 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8483 | return 1; |
ad6254c5 | 8484 | } |
7a197a62 | 8485 | return 0; |
ad6254c5 AK |
8486 | } |
8487 | ||
8488 | _ACEOF | |
8489 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8490 | if { (ac_try="$ac_link" |
8491 | case "(($ac_try" in | |
8492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8493 | *) ac_try_echo=$ac_try;; | |
8494 | esac | |
ec6a6fbe AK |
8495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8496 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8497 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8498 | ac_status=$? |
ec6a6fbe | 8499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8501 | { (case "(($ac_try" in |
8502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8503 | *) ac_try_echo=$ac_try;; | |
8504 | esac | |
ec6a6fbe AK |
8505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8506 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8507 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8508 | ac_status=$? |
ec6a6fbe | 8509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8510 | (exit $ac_status); }; }; then |
8511 | ac_cv_func_strtod=yes | |
8512 | else | |
ec6a6fbe AK |
8513 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8514 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
8516 | ||
8517 | ( exit $ac_status ) | |
8518 | ac_cv_func_strtod=no | |
8519 | fi | |
ec6a6fbe | 8520 | rm -rf conftest.dSYM |
7a197a62 | 8521 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8522 | fi |
7a197a62 AK |
8523 | |
8524 | ||
ad6254c5 | 8525 | fi |
ec6a6fbe AK |
8526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8527 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8528 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8529 | case " $LIBOBJS " in |
8a2fc586 | 8530 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8531 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8532 | ;; | |
8a2fc586 AK |
8533 | esac |
8534 | ||
ec6a6fbe AK |
8535 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8536 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8537 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8538 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8539 | else |
8540 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8541 | /* confdefs.h. */ |
8542 | _ACEOF | |
8543 | cat confdefs.h >>conftest.$ac_ext | |
8544 | cat >>conftest.$ac_ext <<_ACEOF | |
8545 | /* end confdefs.h. */ | |
8a2fc586 AK |
8546 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8548 | #define pow innocuous_pow | |
8549 | ||
ad6254c5 AK |
8550 | /* System header to define __stub macros and hopefully few prototypes, |
8551 | which can conflict with char pow (); below. | |
8552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8553 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8554 | |
ad6254c5 AK |
8555 | #ifdef __STDC__ |
8556 | # include <limits.h> | |
8557 | #else | |
8558 | # include <assert.h> | |
8559 | #endif | |
8a2fc586 AK |
8560 | |
8561 | #undef pow | |
8562 | ||
7a197a62 AK |
8563 | /* Override any GCC internal prototype to avoid an error. |
8564 | Use char because int might match the return type of a GCC | |
8565 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8566 | #ifdef __cplusplus |
8567 | extern "C" | |
ad6254c5 | 8568 | #endif |
ad6254c5 AK |
8569 | char pow (); |
8570 | /* The GNU C library defines this for functions which it implements | |
8571 | to always fail with ENOSYS. Some functions are actually named | |
8572 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8573 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8574 | choke me |
ad6254c5 AK |
8575 | #endif |
8576 | ||
8577 | int | |
8578 | main () | |
8579 | { | |
7a197a62 | 8580 | return pow (); |
ad6254c5 AK |
8581 | ; |
8582 | return 0; | |
8583 | } | |
8584 | _ACEOF | |
8585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8586 | if { (ac_try="$ac_link" |
8587 | case "(($ac_try" in | |
8588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8589 | *) ac_try_echo=$ac_try;; | |
8590 | esac | |
ec6a6fbe AK |
8591 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8592 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8593 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8594 | ac_status=$? |
8a2fc586 AK |
8595 | grep -v '^ *+' conftest.er1 >conftest.err |
8596 | rm -f conftest.er1 | |
8597 | cat conftest.err >&5 | |
ec6a6fbe | 8598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8599 | (exit $ac_status); } && { |
8600 | test -z "$ac_c_werror_flag" || | |
8601 | test ! -s conftest.err | |
ec6a6fbe AK |
8602 | } && test -s conftest$ac_exeext && { |
8603 | test "$cross_compiling" = yes || | |
8604 | $as_test_x conftest$ac_exeext | |
8605 | }; then | |
ad6254c5 AK |
8606 | ac_cv_func_pow=yes |
8607 | else | |
ec6a6fbe | 8608 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8609 | sed 's/^/| /' conftest.$ac_ext >&5 |
8610 | ||
7a197a62 | 8611 | ac_cv_func_pow=no |
ad6254c5 | 8612 | fi |
7a197a62 | 8613 | |
ec6a6fbe | 8614 | rm -rf conftest.dSYM |
25fbec5b | 8615 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8616 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8617 | fi |
ec6a6fbe AK |
8618 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8619 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8620 | |
8621 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8622 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8623 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8624 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8625 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8626 | else |
8627 | ac_check_lib_save_LIBS=$LIBS | |
8628 | LIBS="-lm $LIBS" | |
8629 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8630 | /* confdefs.h. */ |
8631 | _ACEOF | |
8632 | cat confdefs.h >>conftest.$ac_ext | |
8633 | cat >>conftest.$ac_ext <<_ACEOF | |
8634 | /* end confdefs.h. */ | |
8635 | ||
7a197a62 AK |
8636 | /* Override any GCC internal prototype to avoid an error. |
8637 | Use char because int might match the return type of a GCC | |
8638 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8639 | #ifdef __cplusplus |
8640 | extern "C" | |
8641 | #endif | |
ad6254c5 AK |
8642 | char pow (); |
8643 | int | |
8644 | main () | |
8645 | { | |
7a197a62 | 8646 | return pow (); |
ad6254c5 AK |
8647 | ; |
8648 | return 0; | |
8649 | } | |
8650 | _ACEOF | |
8651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8652 | if { (ac_try="$ac_link" |
8653 | case "(($ac_try" in | |
8654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8655 | *) ac_try_echo=$ac_try;; | |
8656 | esac | |
ec6a6fbe AK |
8657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8658 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8659 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8660 | ac_status=$? |
8a2fc586 AK |
8661 | grep -v '^ *+' conftest.er1 >conftest.err |
8662 | rm -f conftest.er1 | |
8663 | cat conftest.err >&5 | |
ec6a6fbe | 8664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8665 | (exit $ac_status); } && { |
8666 | test -z "$ac_c_werror_flag" || | |
8667 | test ! -s conftest.err | |
ec6a6fbe AK |
8668 | } && test -s conftest$ac_exeext && { |
8669 | test "$cross_compiling" = yes || | |
8670 | $as_test_x conftest$ac_exeext | |
8671 | }; then | |
ad6254c5 AK |
8672 | ac_cv_lib_m_pow=yes |
8673 | else | |
ec6a6fbe | 8674 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8675 | sed 's/^/| /' conftest.$ac_ext >&5 |
8676 | ||
7a197a62 | 8677 | ac_cv_lib_m_pow=no |
ad6254c5 | 8678 | fi |
7a197a62 | 8679 | |
ec6a6fbe | 8680 | rm -rf conftest.dSYM |
25fbec5b | 8681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8682 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8683 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8684 | fi |
ec6a6fbe AK |
8685 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8686 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8687 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8688 | POW_LIB=-lm |
8689 | else | |
ec6a6fbe AK |
8690 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8691 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8692 | fi |
72b2cb61 | 8693 | |
d0191583 | 8694 | fi |
72b2cb61 | 8695 | |
ad6254c5 AK |
8696 | fi |
8697 | ||
ad6254c5 | 8698 | |
d0191583 JM |
8699 | for ac_func in vprintf |
8700 | do | |
ec6a6fbe AK |
8701 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8702 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8703 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8704 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8705 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8706 | else |
d0191583 JM |
8707 | cat >conftest.$ac_ext <<_ACEOF |
8708 | /* confdefs.h. */ | |
8709 | _ACEOF | |
8710 | cat confdefs.h >>conftest.$ac_ext | |
8711 | cat >>conftest.$ac_ext <<_ACEOF | |
8712 | /* end confdefs.h. */ | |
8713 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8715 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8716 | |
d0191583 JM |
8717 | /* System header to define __stub macros and hopefully few prototypes, |
8718 | which can conflict with char $ac_func (); below. | |
8719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8720 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8721 | |
d0191583 JM |
8722 | #ifdef __STDC__ |
8723 | # include <limits.h> | |
8724 | #else | |
8725 | # include <assert.h> | |
8726 | #endif | |
ad6254c5 | 8727 | |
d0191583 | 8728 | #undef $ac_func |
72b2cb61 | 8729 | |
d0191583 JM |
8730 | /* Override any GCC internal prototype to avoid an error. |
8731 | Use char because int might match the return type of a GCC | |
8732 | builtin and then its argument prototype would still apply. */ | |
8733 | #ifdef __cplusplus | |
8734 | extern "C" | |
8735 | #endif | |
8736 | char $ac_func (); | |
8737 | /* The GNU C library defines this for functions which it implements | |
8738 | to always fail with ENOSYS. Some functions are actually named | |
8739 | something starting with __ and the normal name is an alias. */ | |
8740 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8741 | choke me | |
8742 | #endif | |
8743 | ||
8744 | int | |
8745 | main () | |
8746 | { | |
8747 | return $ac_func (); | |
8748 | ; | |
8749 | return 0; | |
8750 | } | |
72b2cb61 | 8751 | _ACEOF |
d0191583 JM |
8752 | rm -f conftest.$ac_objext conftest$ac_exeext |
8753 | if { (ac_try="$ac_link" | |
8754 | case "(($ac_try" in | |
8755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8756 | *) ac_try_echo=$ac_try;; | |
8757 | esac | |
ec6a6fbe AK |
8758 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8759 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8760 | (eval "$ac_link") 2>conftest.er1 |
8761 | ac_status=$? | |
8762 | grep -v '^ *+' conftest.er1 >conftest.err | |
8763 | rm -f conftest.er1 | |
8764 | cat conftest.err >&5 | |
ec6a6fbe | 8765 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8766 | (exit $ac_status); } && { |
8767 | test -z "$ac_c_werror_flag" || | |
8768 | test ! -s conftest.err | |
ec6a6fbe AK |
8769 | } && test -s conftest$ac_exeext && { |
8770 | test "$cross_compiling" = yes || | |
8771 | $as_test_x conftest$ac_exeext | |
8772 | }; then | |
d0191583 JM |
8773 | eval "$as_ac_var=yes" |
8774 | else | |
ec6a6fbe | 8775 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8776 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8777 | |
d0191583 | 8778 | eval "$as_ac_var=no" |
ad6254c5 AK |
8779 | fi |
8780 | ||
ec6a6fbe | 8781 | rm -rf conftest.dSYM |
d0191583 JM |
8782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8783 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8784 | fi |
ec6a6fbe AK |
8785 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8786 | $as_echo "$as_val"'` | |
8787 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8788 | $as_echo "$ac_res" >&6; } | |
8789 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8790 | $as_echo "$as_val"'` | |
8791 | if test "x$as_val" = x""yes; then | |
d0191583 | 8792 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8793 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8794 | _ACEOF |
7a197a62 | 8795 | |
ec6a6fbe AK |
8796 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8797 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8798 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8799 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8800 | else |
d0191583 JM |
8801 | cat >conftest.$ac_ext <<_ACEOF |
8802 | /* confdefs.h. */ | |
8803 | _ACEOF | |
8804 | cat confdefs.h >>conftest.$ac_ext | |
8805 | cat >>conftest.$ac_ext <<_ACEOF | |
8806 | /* end confdefs.h. */ | |
8807 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8809 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8810 | |
d0191583 JM |
8811 | /* System header to define __stub macros and hopefully few prototypes, |
8812 | which can conflict with char _doprnt (); below. | |
8813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8814 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8815 | |
d0191583 JM |
8816 | #ifdef __STDC__ |
8817 | # include <limits.h> | |
8818 | #else | |
8819 | # include <assert.h> | |
8820 | #endif | |
72b2cb61 | 8821 | |
d0191583 JM |
8822 | #undef _doprnt |
8823 | ||
8824 | /* Override any GCC internal prototype to avoid an error. | |
8825 | Use char because int might match the return type of a GCC | |
8826 | builtin and then its argument prototype would still apply. */ | |
8827 | #ifdef __cplusplus | |
8828 | extern "C" | |
8829 | #endif | |
8830 | char _doprnt (); | |
8831 | /* The GNU C library defines this for functions which it implements | |
8832 | to always fail with ENOSYS. Some functions are actually named | |
8833 | something starting with __ and the normal name is an alias. */ | |
8834 | #if defined __stub__doprnt || defined __stub____doprnt | |
8835 | choke me | |
8836 | #endif | |
8837 | ||
8838 | int | |
8839 | main () | |
8840 | { | |
8841 | return _doprnt (); | |
8842 | ; | |
8843 | return 0; | |
8844 | } | |
72b2cb61 | 8845 | _ACEOF |
d0191583 JM |
8846 | rm -f conftest.$ac_objext conftest$ac_exeext |
8847 | if { (ac_try="$ac_link" | |
8848 | case "(($ac_try" in | |
8849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8850 | *) ac_try_echo=$ac_try;; | |
8851 | esac | |
ec6a6fbe AK |
8852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8853 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8854 | (eval "$ac_link") 2>conftest.er1 |
8855 | ac_status=$? | |
8856 | grep -v '^ *+' conftest.er1 >conftest.err | |
8857 | rm -f conftest.er1 | |
8858 | cat conftest.err >&5 | |
ec6a6fbe | 8859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8860 | (exit $ac_status); } && { |
8861 | test -z "$ac_c_werror_flag" || | |
8862 | test ! -s conftest.err | |
ec6a6fbe AK |
8863 | } && test -s conftest$ac_exeext && { |
8864 | test "$cross_compiling" = yes || | |
8865 | $as_test_x conftest$ac_exeext | |
8866 | }; then | |
d0191583 JM |
8867 | ac_cv_func__doprnt=yes |
8868 | else | |
ec6a6fbe | 8869 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8870 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8871 | |
d0191583 | 8872 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8873 | fi |
8874 | ||
ec6a6fbe | 8875 | rm -rf conftest.dSYM |
d0191583 JM |
8876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8877 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8878 | fi |
ec6a6fbe AK |
8879 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8880 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8881 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8882 | |
d0191583 JM |
8883 | cat >>confdefs.h <<\_ACEOF |
8884 | #define HAVE_DOPRNT 1 | |
8885 | _ACEOF | |
ad6254c5 | 8886 | |
7a197a62 AK |
8887 | fi |
8888 | ||
d0191583 JM |
8889 | fi |
8890 | done | |
8b1a3214 | 8891 | |
ad6254c5 | 8892 | |
7a197a62 | 8893 | |
9c961554 | 8894 | ################################################################################ |
ec6a6fbe AK |
8895 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8896 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8897 | # Check whether --enable-static_link was given. |
8898 | if test "${enable_static_link+set}" = set; then | |
8899 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8900 | else | |
8901 | STATIC_LINK=no | |
8902 | fi | |
8903 | ||
ec6a6fbe AK |
8904 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8905 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8906 | |
d0191583 | 8907 | ################################################################################ |
ad6254c5 | 8908 | |
ad6254c5 AK |
8909 | |
8910 | ################################################################################ | |
ec6a6fbe AK |
8911 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8912 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8913 | OWNER="root" |
8914 | ||
8915 | ||
8916 | # Check whether --with-user was given. | |
8917 | if test "${with_user+set}" = set; then | |
8918 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8919 | fi |
8920 | ||
ec6a6fbe AK |
8921 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8922 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8923 | |
d0191583 JM |
8924 | if test x$OWNER != x; then |
8925 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8926 | fi |
8927 | ||
8928 | ################################################################################ | |
ec6a6fbe AK |
8929 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8930 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8931 | GROUP="root" |
ad6254c5 | 8932 | |
d0191583 JM |
8933 | # Check whether --with-group was given. |
8934 | if test "${with_group+set}" = set; then | |
8935 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8936 | fi |
8937 | ||
ec6a6fbe AK |
8938 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8939 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8940 | |
8941 | if test x$GROUP != x; then | |
8942 | GROUP="-g $GROUP" | |
8943 | fi | |
ad6254c5 | 8944 | |
24bbc4d7 | 8945 | ################################################################################ |
ec6a6fbe AK |
8946 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
8947 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
8948 | |
8949 | ||
8950 | # Check whether --with-device-uid was given. | |
8951 | if test "${with_device_uid+set}" = set; then | |
8952 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8953 | else | |
8954 | DM_DEVICE_UID="0" | |
8955 | fi | |
8956 | ||
ec6a6fbe AK |
8957 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
8958 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
8959 | |
8960 | ################################################################################ | |
ec6a6fbe AK |
8961 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
8962 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
8963 | |
8964 | ||
8965 | # Check whether --with-device-gid was given. | |
8966 | if test "${with_device_gid+set}" = set; then | |
8967 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8968 | else | |
8969 | DM_DEVICE_GID="0" | |
8970 | fi | |
8971 | ||
ec6a6fbe AK |
8972 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
8973 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 8974 | |
93bd259b | 8975 | ################################################################################ |
ec6a6fbe AK |
8976 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
8977 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
8978 | |
8979 | ||
8980 | # Check whether --with-device-mode was given. | |
8981 | if test "${with_device_mode+set}" = set; then | |
8982 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8983 | else | |
8984 | DM_DEVICE_MODE="0600" | |
8985 | fi | |
8986 | ||
ec6a6fbe AK |
8987 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
8988 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 8989 | |
ad6254c5 | 8990 | ################################################################################ |
ec6a6fbe AK |
8991 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8992 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
8993 | # Check whether --enable-lvm1_fallback was given. |
8994 | if test "${enable_lvm1_fallback+set}" = set; then | |
8995 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8996 | else | |
8997 | LVM1_FALLBACK=no | |
7a197a62 AK |
8998 | fi |
8999 | ||
ec6a6fbe AK |
9000 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9001 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9002 | |
d0191583 | 9003 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9004 | |
9005 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9006 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9007 | _ACEOF |
9008 | ||
ad6254c5 AK |
9009 | fi |
9010 | ||
9011 | ################################################################################ | |
ec6a6fbe AK |
9012 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9013 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9014 | |
9015 | # Check whether --with-lvm1 was given. | |
9016 | if test "${with_lvm1+set}" = set; then | |
9017 | withval=$with_lvm1; LVM1="$withval" | |
9018 | else | |
9019 | LVM1="internal" | |
7a197a62 AK |
9020 | fi |
9021 | ||
ec6a6fbe AK |
9022 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9023 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9024 | |
d0191583 | 9025 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9026 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9027 | " >&5 |
ec6a6fbe | 9028 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9029 | " >&2;} |
9030 | { (exit 1); exit 1; }; } | |
9031 | fi; | |
9032 | ||
9033 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9034 | |
9035 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9036 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9037 | _ACEOF |
9038 | ||
ad6254c5 AK |
9039 | fi |
9040 | ||
9041 | ################################################################################ | |
ec6a6fbe AK |
9042 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9043 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9044 | |
9045 | # Check whether --with-pool was given. | |
9046 | if test "${with_pool+set}" = set; then | |
9047 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9048 | else |
d0191583 | 9049 | POOL="internal" |
7a197a62 AK |
9050 | fi |
9051 | ||
ec6a6fbe AK |
9052 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9053 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9054 | |
d0191583 | 9055 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9056 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9057 | " >&5 |
ec6a6fbe | 9058 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9059 | " >&2;} |
9060 | { (exit 1); exit 1; }; } | |
9061 | fi; | |
7a197a62 | 9062 | |
d0191583 JM |
9063 | if test x$POOL = xinternal; then |
9064 | ||
9065 | cat >>confdefs.h <<\_ACEOF | |
9066 | #define POOL_INTERNAL 1 | |
9067 | _ACEOF | |
9068 | ||
9069 | fi | |
ad6254c5 | 9070 | |
06f62ad1 | 9071 | ################################################################################ |
ec6a6fbe AK |
9072 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9073 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9074 | |
9075 | # Check whether --with-cluster was given. | |
9076 | if test "${with_cluster+set}" = set; then | |
9077 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9078 | fi |
9079 | ||
ec6a6fbe AK |
9080 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9081 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9082 | |
d0191583 | 9083 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9084 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9085 | " >&5 |
ec6a6fbe | 9086 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9087 | " >&2;} |
9088 | { (exit 1); exit 1; }; } | |
d0191583 | 9089 | fi; |
06f62ad1 | 9090 | |
d0191583 | 9091 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9092 | |
9093 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9094 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9095 | _ACEOF |
9096 | ||
15d91f5a | 9097 | fi |
ad6254c5 AK |
9098 | |
9099 | ################################################################################ | |
ec6a6fbe AK |
9100 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9101 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9102 | |
d0191583 JM |
9103 | # Check whether --with-snapshots was given. |
9104 | if test "${with_snapshots+set}" = set; then | |
9105 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9106 | else | |
9107 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9108 | fi |
9109 | ||
ec6a6fbe AK |
9110 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9111 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9112 | |
d0191583 | 9113 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9114 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9115 | " >&5 |
ec6a6fbe | 9116 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9117 | " >&2;} |
9118 | { (exit 1); exit 1; }; } | |
9119 | fi; | |
9120 | ||
9121 | if test x$SNAPSHOTS = xinternal; then | |
9122 | ||
9123 | cat >>confdefs.h <<\_ACEOF | |
9124 | #define SNAPSHOT_INTERNAL 1 | |
9125 | _ACEOF | |
ad6254c5 | 9126 | |
ad6254c5 | 9127 | fi |
7a197a62 | 9128 | |
d0191583 | 9129 | ################################################################################ |
ec6a6fbe AK |
9130 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9131 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9132 | |
9133 | # Check whether --with-mirrors was given. | |
9134 | if test "${with_mirrors+set}" = set; then | |
9135 | withval=$with_mirrors; MIRRORS="$withval" | |
9136 | else | |
9137 | MIRRORS="internal" | |
ad6254c5 | 9138 | fi |
ad6254c5 | 9139 | |
ec6a6fbe AK |
9140 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9141 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9142 | |
d0191583 | 9143 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9144 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9145 | " >&5 |
ec6a6fbe | 9146 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9147 | " >&2;} |
9148 | { (exit 1); exit 1; }; } | |
9149 | fi; | |
ad6254c5 | 9150 | |
d0191583 | 9151 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9152 | |
d0191583 JM |
9153 | cat >>confdefs.h <<\_ACEOF |
9154 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9155 | _ACEOF |
8a2fc586 | 9156 | |
d0191583 | 9157 | fi |
8a2fc586 | 9158 | |
d0191583 | 9159 | ################################################################################ |
ec6a6fbe AK |
9160 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9161 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9162 | # Check whether --enable-readline was given. |
9163 | if test "${enable_readline+set}" = set; then | |
9164 | enableval=$enable_readline; READLINE=$enableval | |
9165 | else | |
06e459df | 9166 | READLINE=maybe |
d0191583 | 9167 | fi |
8a2fc586 | 9168 | |
ec6a6fbe AK |
9169 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9170 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9171 | |
d0191583 | 9172 | ################################################################################ |
ec6a6fbe AK |
9173 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9174 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9175 | # Check whether --enable-realtime was given. |
9176 | if test "${enable_realtime+set}" = set; then | |
9177 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9178 | fi |
ad6254c5 | 9179 | |
ec6a6fbe AK |
9180 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9181 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9182 | |
9183 | ################################################################################ | |
ec6a6fbe AK |
9184 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
9185 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
9186 | |
9187 | # Check whether --with-clvmd was given. | |
9188 | if test "${with_clvmd+set}" = set; then | |
9189 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 9190 | else |
d0191583 JM |
9191 | CLVMD="none" |
9192 | fi | |
8a2fc586 | 9193 | |
d0191583 JM |
9194 | if test x$CLVMD = xyes; then |
9195 | CLVMD=all | |
9196 | fi | |
ec6a6fbe AK |
9197 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
9198 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 9199 | |
d0191583 JM |
9200 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
9201 | CLUSTER=internal | |
9202 | fi | |
8a2fc586 | 9203 | |
f15a2320 | 9204 | if [ "x$CLVMD" = xall -o `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then |
e2997b73 AK |
9205 | |
9206 | ||
9207 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9208 | if test -n "$ac_tool_prefix"; then | |
9209 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9210 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9211 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9212 | $as_echo_n "checking for $ac_word... " >&6; } | |
9213 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9214 | $as_echo_n "(cached) " >&6 | |
9215 | else | |
9216 | case $PKG_CONFIG in | |
9217 | [\\/]* | ?:[\\/]*) | |
9218 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9219 | ;; | |
9220 | *) | |
9221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9222 | for as_dir in $PATH | |
9223 | do | |
9224 | IFS=$as_save_IFS | |
9225 | test -z "$as_dir" && as_dir=. | |
9226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9228 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9229 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9230 | break 2 | |
9231 | fi | |
9232 | done | |
9233 | done | |
9234 | IFS=$as_save_IFS | |
9235 | ||
9236 | ;; | |
9237 | esac | |
9238 | fi | |
9239 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9240 | if test -n "$PKG_CONFIG"; then | |
9241 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9242 | $as_echo "$PKG_CONFIG" >&6; } | |
9243 | else | |
9244 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9245 | $as_echo "no" >&6; } | |
9246 | fi | |
9247 | ||
9248 | ||
9249 | fi | |
9250 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9251 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9252 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9253 | set dummy pkg-config; ac_word=$2 | |
9254 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9255 | $as_echo_n "checking for $ac_word... " >&6; } | |
9256 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9257 | $as_echo_n "(cached) " >&6 | |
9258 | else | |
9259 | case $ac_pt_PKG_CONFIG in | |
9260 | [\\/]* | ?:[\\/]*) | |
9261 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9262 | ;; | |
9263 | *) | |
9264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9265 | for as_dir in $PATH | |
9266 | do | |
9267 | IFS=$as_save_IFS | |
9268 | test -z "$as_dir" && as_dir=. | |
9269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9271 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9272 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9273 | break 2 | |
9274 | fi | |
9275 | done | |
9276 | done | |
9277 | IFS=$as_save_IFS | |
9278 | ||
9279 | ;; | |
9280 | esac | |
9281 | fi | |
9282 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9283 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9284 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9285 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9286 | else | |
9287 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9288 | $as_echo "no" >&6; } | |
9289 | fi | |
9290 | ||
9291 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9292 | PKG_CONFIG="" | |
9293 | else | |
9294 | case $cross_compiling:$ac_tool_warned in | |
9295 | yes:) | |
9296 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9298 | ac_tool_warned=yes ;; | |
9299 | esac | |
9300 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9301 | fi | |
9302 | else | |
9303 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9304 | fi | |
9305 | ||
9306 | fi | |
9307 | if test -n "$PKG_CONFIG"; then | |
9308 | _pkg_min_version=0.9.0 | |
9309 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9310 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9311 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9312 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9313 | $as_echo "yes" >&6; } | |
9314 | else | |
9315 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9316 | $as_echo "no" >&6; } | |
9317 | PKG_CONFIG="" | |
9318 | fi | |
9319 | ||
9320 | fi | |
9321 | ||
9322 | pkg_failed=no | |
9323 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
9324 | $as_echo_n "checking for QUORUM... " >&6; } | |
9325 | ||
9326 | if test -n "$QUORUM_CFLAGS"; then | |
9327 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
9328 | elif test -n "$PKG_CONFIG"; then | |
9329 | if test -n "$PKG_CONFIG" && \ | |
9330 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9331 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9332 | ac_status=$? | |
9333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9334 | (exit $ac_status); }; then | |
9335 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
9336 | else | |
9337 | pkg_failed=yes | |
9338 | fi | |
9339 | else | |
9340 | pkg_failed=untried | |
9341 | fi | |
9342 | if test -n "$QUORUM_LIBS"; then | |
9343 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
9344 | elif test -n "$PKG_CONFIG"; then | |
9345 | if test -n "$PKG_CONFIG" && \ | |
9346 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9347 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9348 | ac_status=$? | |
9349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9350 | (exit $ac_status); }; then | |
9351 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
9352 | else | |
9353 | pkg_failed=yes | |
9354 | fi | |
9355 | else | |
9356 | pkg_failed=untried | |
9357 | fi | |
9358 | ||
9359 | ||
9360 | ||
9361 | if test $pkg_failed = yes; then | |
9362 | ||
9363 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9364 | _pkg_short_errors_supported=yes | |
9365 | else | |
9366 | _pkg_short_errors_supported=no | |
9367 | fi | |
9368 | if test $_pkg_short_errors_supported = yes; then | |
9369 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
9370 | else | |
9371 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
9372 | fi | |
9373 | # Put the nasty error message in config.log where it belongs | |
9374 | echo "$QUORUM_PKG_ERRORS" >&5 | |
9375 | ||
9376 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9377 | $as_echo "no" >&6; } | |
9378 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9379 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9380 | QUORUM_LIBS="-lquorum" | |
9381 | elif test $pkg_failed = untried; then | |
9382 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9383 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9384 | QUORUM_LIBS="-lquorum" | |
9385 | else | |
9386 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
9387 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
9388 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9389 | $as_echo "yes" >&6; } | |
9390 | : | |
9391 | fi | |
9392 | ||
9393 | pkg_failed=no | |
9394 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
9395 | $as_echo_n "checking for CONFDB... " >&6; } | |
9396 | ||
9397 | if test -n "$CONFDB_CFLAGS"; then | |
9398 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
9399 | elif test -n "$PKG_CONFIG"; then | |
9400 | if test -n "$PKG_CONFIG" && \ | |
9401 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9402 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9403 | ac_status=$? | |
9404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9405 | (exit $ac_status); }; then | |
9406 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
9407 | else | |
9408 | pkg_failed=yes | |
9409 | fi | |
9410 | else | |
9411 | pkg_failed=untried | |
9412 | fi | |
9413 | if test -n "$CONFDB_LIBS"; then | |
9414 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
9415 | elif test -n "$PKG_CONFIG"; then | |
9416 | if test -n "$PKG_CONFIG" && \ | |
9417 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9418 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9419 | ac_status=$? | |
9420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9421 | (exit $ac_status); }; then | |
9422 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
9423 | else | |
9424 | pkg_failed=yes | |
9425 | fi | |
9426 | else | |
9427 | pkg_failed=untried | |
9428 | fi | |
9429 | ||
9430 | ||
9431 | ||
9432 | if test $pkg_failed = yes; then | |
9433 | ||
9434 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9435 | _pkg_short_errors_supported=yes | |
9436 | else | |
9437 | _pkg_short_errors_supported=no | |
9438 | fi | |
9439 | if test $_pkg_short_errors_supported = yes; then | |
9440 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
9441 | else | |
9442 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
9443 | fi | |
9444 | # Put the nasty error message in config.log where it belongs | |
9445 | echo "$CONFDB_PKG_ERRORS" >&5 | |
9446 | ||
9447 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9448 | $as_echo "no" >&6; } | |
9449 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9450 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9451 | CONFDB_LIBS="-lconfdb" | |
9452 | elif test $pkg_failed = untried; then | |
9453 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9454 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9455 | CONFDB_LIBS="-lconfdb" | |
9456 | else | |
9457 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
9458 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
9459 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9460 | $as_echo "yes" >&6; } | |
9461 | : | |
9462 | fi | |
9463 | ||
9464 | pkg_failed=no | |
9465 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
9466 | $as_echo_n "checking for CPG... " >&6; } | |
9467 | ||
9468 | if test -n "$CPG_CFLAGS"; then | |
9469 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
9470 | elif test -n "$PKG_CONFIG"; then | |
9471 | if test -n "$PKG_CONFIG" && \ | |
9472 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9473 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9474 | ac_status=$? | |
9475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9476 | (exit $ac_status); }; then | |
9477 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
9478 | else | |
9479 | pkg_failed=yes | |
9480 | fi | |
9481 | else | |
9482 | pkg_failed=untried | |
9483 | fi | |
9484 | if test -n "$CPG_LIBS"; then | |
9485 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
9486 | elif test -n "$PKG_CONFIG"; then | |
9487 | if test -n "$PKG_CONFIG" && \ | |
9488 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9489 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9490 | ac_status=$? | |
9491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9492 | (exit $ac_status); }; then | |
9493 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
9494 | else | |
9495 | pkg_failed=yes | |
9496 | fi | |
9497 | else | |
9498 | pkg_failed=untried | |
9499 | fi | |
9500 | ||
9501 | ||
9502 | ||
9503 | if test $pkg_failed = yes; then | |
9504 | ||
9505 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9506 | _pkg_short_errors_supported=yes | |
9507 | else | |
9508 | _pkg_short_errors_supported=no | |
9509 | fi | |
9510 | if test $_pkg_short_errors_supported = yes; then | |
9511 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
9512 | else | |
9513 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
9514 | fi | |
9515 | # Put the nasty error message in config.log where it belongs | |
9516 | echo "$CPG_PKG_ERRORS" >&5 | |
9517 | ||
9518 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9519 | $as_echo "no" >&6; } | |
9520 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9521 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9522 | CPG_LIBS="-lcpg" | |
9523 | elif test $pkg_failed = untried; then | |
9524 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9525 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9526 | CPG_LIBS="-lcpg" | |
9527 | else | |
9528 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
9529 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
9530 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9531 | $as_echo "yes" >&6; } | |
9532 | : | |
9533 | fi | |
9534 | fi | |
9535 | ||
d0191583 | 9536 | ################################################################################ |
ec6a6fbe AK |
9537 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
9538 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
d0191583 JM |
9539 | # Check whether --enable-debug was given. |
9540 | if test "${enable_debug+set}" = set; then | |
9541 | enableval=$enable_debug; DEBUG=$enableval | |
9542 | else | |
9543 | DEBUG=no | |
9544 | fi | |
8a2fc586 | 9545 | |
ec6a6fbe AK |
9546 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
9547 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 | 9548 | |
d0191583 JM |
9549 | if test x$DEBUG = xyes; then |
9550 | COPTIMISE_FLAG= | |
fc54be10 | 9551 | else |
d0191583 JM |
9552 | CSCOPE_CMD= |
9553 | fi | |
fc54be10 | 9554 | |
d0191583 | 9555 | ################################################################################ |
ec6a6fbe AK |
9556 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
9557 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
d0191583 JM |
9558 | |
9559 | # Check whether --with-optimisation was given. | |
9560 | if test "${with_optimisation+set}" = set; then | |
9561 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
9562 | fi | |
9563 | ||
ec6a6fbe AK |
9564 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
9565 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
9566 | |
9567 | ################################################################################ | |
ec6a6fbe AK |
9568 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
9569 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
fddafd51 ZK |
9570 | # Check whether --enable-profiling was given. |
9571 | if test "${enable_profiling+set}" = set; then | |
5556819a | 9572 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 9573 | else |
5556819a | 9574 | PROFILING=no |
fddafd51 ZK |
9575 | fi |
9576 | ||
ec6a6fbe AK |
9577 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
9578 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
9579 | |
9580 | if test "x$PROFILING" = xyes; then | |
9581 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
9582 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 9583 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
9584 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9585 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9586 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 9587 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9588 | else |
9589 | case $LCOV in | |
9590 | [\\/]* | ?:[\\/]*) | |
9591 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
9592 | ;; | |
9593 | *) | |
9594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9595 | for as_dir in $PATH | |
9596 | do | |
9597 | IFS=$as_save_IFS | |
9598 | test -z "$as_dir" && as_dir=. | |
9599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9600 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9601 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9602 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9603 | break 2 |
9604 | fi | |
9605 | done | |
9606 | done | |
9607 | IFS=$as_save_IFS | |
9608 | ||
b145d876 | 9609 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
9610 | ;; |
9611 | esac | |
9612 | fi | |
9613 | LCOV=$ac_cv_path_LCOV | |
9614 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
9615 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
9616 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 9617 | else |
ec6a6fbe AK |
9618 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9619 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9620 | fi |
9621 | ||
9622 | ||
5556819a | 9623 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 9624 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
9625 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9626 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9627 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 9628 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9629 | else |
9630 | case $GENHTML in | |
9631 | [\\/]* | ?:[\\/]*) | |
9632 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
9633 | ;; | |
9634 | *) | |
9635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9636 | for as_dir in $PATH | |
9637 | do | |
9638 | IFS=$as_save_IFS | |
9639 | test -z "$as_dir" && as_dir=. | |
9640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9642 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9643 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9644 | break 2 |
9645 | fi | |
9646 | done | |
9647 | done | |
9648 | IFS=$as_save_IFS | |
9649 | ||
b145d876 | 9650 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
9651 | ;; |
9652 | esac | |
9653 | fi | |
9654 | GENHTML=$ac_cv_path_GENHTML | |
9655 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
9656 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
9657 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 9658 | else |
ec6a6fbe AK |
9659 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9660 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9661 | fi |
9662 | ||
9663 | ||
b145d876 | 9664 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
9665 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
9666 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
9667 | { (exit 1); exit 1; }; } |
9668 | fi | |
5556819a | 9669 | fi |
d0191583 JM |
9670 | |
9671 | ################################################################################ | |
ec6a6fbe AK |
9672 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
9673 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
9674 | # Check whether --enable-devmapper was given. |
9675 | if test "${enable_devmapper+set}" = set; then | |
9676 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
9677 | fi |
9678 | ||
ec6a6fbe AK |
9679 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
9680 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
9681 | |
9682 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
9683 | |
9684 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9685 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
9686 | _ACEOF |
9687 | ||
9688 | fi | |
9689 | ||
a5f46f6a AK |
9690 | ################################################################################ |
9691 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
9692 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
9693 | # Check whether --enable-udev_sync was given. | |
9694 | if test "${enable_udev_sync+set}" = set; then | |
9695 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
9696 | else | |
9697 | UDEV_SYNC=no | |
9698 | fi | |
9699 | ||
9700 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
9701 | $as_echo "$UDEV_SYNC" >&6; } | |
9702 | ||
9703 | if test x$UDEV_SYNC = xyes; then | |
9704 | ||
9705 | cat >>confdefs.h <<\_ACEOF | |
9706 | #define UDEV_SYNC_SUPPORT 1 | |
9707 | _ACEOF | |
9708 | ||
9709 | fi | |
9710 | ||
9711 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
9712 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
9713 | # Check whether --enable-udev_rules was given. | |
9714 | if test "${enable_udev_rules+set}" = set; then | |
9715 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
9716 | else | |
9717 | UDEV_RULES=$UDEV_SYNC | |
9718 | fi | |
9719 | ||
9720 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
9721 | $as_echo "$UDEV_RULES" >&6; } | |
9722 | ||
93bd259b AK |
9723 | ################################################################################ |
9724 | # Check whether --enable-compat was given. | |
9725 | if test "${enable_compat+set}" = set; then | |
9726 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9727 | else | |
9728 | DM_COMPAT=no | |
9729 | fi | |
9730 | ||
9731 | ||
9732 | ################################################################################ | |
9733 | # Check whether --enable-ioctl was given. | |
9734 | if test "${enable_ioctl+set}" = set; then | |
9735 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
9736 | fi | |
9737 | ||
9738 | ||
d0191583 | 9739 | ################################################################################ |
ec6a6fbe AK |
9740 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
9741 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
9742 | # Check whether --enable-o_direct was given. |
9743 | if test "${enable_o_direct+set}" = set; then | |
9744 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 9745 | fi |
ad6254c5 | 9746 | |
ec6a6fbe AK |
9747 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
9748 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 9749 | |
d0191583 | 9750 | if test x$ODIRECT = xyes; then |
ad6254c5 | 9751 | |
d0191583 JM |
9752 | cat >>confdefs.h <<\_ACEOF |
9753 | #define O_DIRECT_SUPPORT 1 | |
9754 | _ACEOF | |
ad6254c5 | 9755 | |
d0191583 | 9756 | fi |
ad6254c5 | 9757 | |
572fefeb AK |
9758 | ################################################################################ |
9759 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
9760 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9761 | # Check whether --enable-applib was given. | |
9762 | if test "${enable_applib+set}" = set; then | |
9763 | enableval=$enable_applib; APPLIB=$enableval | |
9764 | else | |
9765 | APPLIB=no | |
9766 | fi | |
9767 | ||
9768 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
9769 | $as_echo "$APPLIB" >&6; } | |
9770 | ||
9771 | test x$APPLIB = xyes \ | |
9772 | && LVM2APP_LIB=-llvm2app \ | |
9773 | || LVM2APP_LIB= | |
9774 | ||
d0191583 | 9775 | ################################################################################ |
ec6a6fbe AK |
9776 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
9777 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
9778 | # Check whether --enable-cmdlib was given. |
9779 | if test "${enable_cmdlib+set}" = set; then | |
9780 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 9781 | else |
d0191583 JM |
9782 | CMDLIB=no |
9783 | fi | |
8a2fc586 | 9784 | |
ec6a6fbe AK |
9785 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
9786 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 9787 | |
2a9a80c9 | 9788 | test x$CMDLIB = xyes \ |
d179cc7a JM |
9789 | && LVM2CMD_LIB=-llvm2cmd \ |
9790 | || LVM2CMD_LIB= | |
9791 | ||
93bd259b AK |
9792 | ################################################################################ |
9793 | # Check whether --enable-pkgconfig was given. | |
9794 | if test "${enable_pkgconfig+set}" = set; then | |
9795 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
9796 | else | |
9797 | PKGCONFIG=no | |
9798 | fi | |
9799 | ||
2a9a80c9 | 9800 | |
d0191583 | 9801 | ################################################################################ |
ec6a6fbe AK |
9802 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
9803 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
9804 | # Check whether --enable-fsadm was given. |
9805 | if test "${enable_fsadm+set}" = set; then | |
9806 | enableval=$enable_fsadm; FSADM=$enableval | |
9807 | fi | |
8a2fc586 | 9808 | |
ec6a6fbe AK |
9809 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
9810 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 9811 | |
d0191583 | 9812 | ################################################################################ |
ec6a6fbe AK |
9813 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
9814 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
9815 | # Check whether --enable-dmeventd was given. |
9816 | if test "${enable_dmeventd+set}" = set; then | |
9817 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9818 | fi | |
ad6254c5 | 9819 | |
ec6a6fbe AK |
9820 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
9821 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9822 | |
93bd259b AK |
9823 | BUILD_DMEVENTD=$DMEVENTD |
9824 | ||
2a9a80c9 PR |
9825 | if test x$DMEVENTD = xyes; then |
9826 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 9827 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9828 | " >&5 |
ec6a6fbe | 9829 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9830 | " >&2;} |
d0191583 | 9831 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
9832 | fi |
9833 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 9834 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 9835 | " >&5 |
ec6a6fbe | 9836 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
9837 | " >&2;} |
9838 | { (exit 1); exit 1; }; } | |
9839 | fi | |
ad6254c5 | 9840 | fi |
7a197a62 | 9841 | |
d0191583 JM |
9842 | if test x$DMEVENTD = xyes; then |
9843 | ||
9844 | cat >>confdefs.h <<\_ACEOF | |
9845 | #define DMEVENTD 1 | |
ad6254c5 AK |
9846 | _ACEOF |
9847 | ||
ad6254c5 | 9848 | fi |
93bd259b AK |
9849 | |
9850 | ################################################################################ | |
9851 | ||
ec6a6fbe AK |
9852 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
9853 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 9854 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 9855 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9856 | else |
9857 | ac_check_lib_save_LIBS=$LIBS | |
9858 | LIBS="-lc $LIBS" | |
9859 | cat >conftest.$ac_ext <<_ACEOF | |
9860 | /* confdefs.h. */ | |
9861 | _ACEOF | |
9862 | cat confdefs.h >>conftest.$ac_ext | |
9863 | cat >>conftest.$ac_ext <<_ACEOF | |
9864 | /* end confdefs.h. */ | |
9865 | ||
9866 | /* Override any GCC internal prototype to avoid an error. | |
9867 | Use char because int might match the return type of a GCC | |
9868 | builtin and then its argument prototype would still apply. */ | |
9869 | #ifdef __cplusplus | |
9870 | extern "C" | |
9871 | #endif | |
9872 | char getline (); | |
9873 | int | |
9874 | main () | |
9875 | { | |
9876 | return getline (); | |
9877 | ; | |
9878 | return 0; | |
9879 | } | |
9880 | _ACEOF | |
9881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9882 | if { (ac_try="$ac_link" | |
9883 | case "(($ac_try" in | |
9884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9885 | *) ac_try_echo=$ac_try;; | |
9886 | esac | |
ec6a6fbe AK |
9887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9888 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9889 | (eval "$ac_link") 2>conftest.er1 |
9890 | ac_status=$? | |
9891 | grep -v '^ *+' conftest.er1 >conftest.err | |
9892 | rm -f conftest.er1 | |
9893 | cat conftest.err >&5 | |
ec6a6fbe | 9894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9895 | (exit $ac_status); } && { |
9896 | test -z "$ac_c_werror_flag" || | |
9897 | test ! -s conftest.err | |
ec6a6fbe AK |
9898 | } && test -s conftest$ac_exeext && { |
9899 | test "$cross_compiling" = yes || | |
9900 | $as_test_x conftest$ac_exeext | |
9901 | }; then | |
93bd259b AK |
9902 | ac_cv_lib_c_getline=yes |
9903 | else | |
ec6a6fbe | 9904 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9905 | sed 's/^/| /' conftest.$ac_ext >&5 |
9906 | ||
9907 | ac_cv_lib_c_getline=no | |
9908 | fi | |
9909 | ||
ec6a6fbe | 9910 | rm -rf conftest.dSYM |
93bd259b AK |
9911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9912 | conftest$ac_exeext conftest.$ac_ext | |
9913 | LIBS=$ac_check_lib_save_LIBS | |
9914 | fi | |
ec6a6fbe AK |
9915 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
9916 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9917 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
9918 | |
9919 | cat >>confdefs.h <<\_ACEOF | |
9920 | #define HAVE_GETLINE 1 | |
9921 | _ACEOF | |
9922 | ||
9923 | fi | |
9924 | ||
9925 | ||
9926 | ################################################################################ | |
9927 | ||
ec6a6fbe AK |
9928 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
9929 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 9930 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 9931 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9932 | else |
9933 | ac_check_lib_save_LIBS=$LIBS | |
9934 | LIBS="-lc $LIBS" | |
9935 | cat >conftest.$ac_ext <<_ACEOF | |
9936 | /* confdefs.h. */ | |
9937 | _ACEOF | |
9938 | cat confdefs.h >>conftest.$ac_ext | |
9939 | cat >>conftest.$ac_ext <<_ACEOF | |
9940 | /* end confdefs.h. */ | |
9941 | ||
9942 | /* Override any GCC internal prototype to avoid an error. | |
9943 | Use char because int might match the return type of a GCC | |
9944 | builtin and then its argument prototype would still apply. */ | |
9945 | #ifdef __cplusplus | |
9946 | extern "C" | |
9947 | #endif | |
9948 | char canonicalize_file_name (); | |
9949 | int | |
9950 | main () | |
9951 | { | |
9952 | return canonicalize_file_name (); | |
9953 | ; | |
9954 | return 0; | |
9955 | } | |
9956 | _ACEOF | |
9957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9958 | if { (ac_try="$ac_link" | |
9959 | case "(($ac_try" in | |
9960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9961 | *) ac_try_echo=$ac_try;; | |
9962 | esac | |
ec6a6fbe AK |
9963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9964 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9965 | (eval "$ac_link") 2>conftest.er1 |
9966 | ac_status=$? | |
9967 | grep -v '^ *+' conftest.er1 >conftest.err | |
9968 | rm -f conftest.er1 | |
9969 | cat conftest.err >&5 | |
ec6a6fbe | 9970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9971 | (exit $ac_status); } && { |
9972 | test -z "$ac_c_werror_flag" || | |
9973 | test ! -s conftest.err | |
ec6a6fbe AK |
9974 | } && test -s conftest$ac_exeext && { |
9975 | test "$cross_compiling" = yes || | |
9976 | $as_test_x conftest$ac_exeext | |
9977 | }; then | |
93bd259b AK |
9978 | ac_cv_lib_c_canonicalize_file_name=yes |
9979 | else | |
ec6a6fbe | 9980 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9981 | sed 's/^/| /' conftest.$ac_ext >&5 |
9982 | ||
9983 | ac_cv_lib_c_canonicalize_file_name=no | |
9984 | fi | |
9985 | ||
ec6a6fbe | 9986 | rm -rf conftest.dSYM |
93bd259b AK |
9987 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9988 | conftest$ac_exeext conftest.$ac_ext | |
9989 | LIBS=$ac_check_lib_save_LIBS | |
9990 | fi | |
ec6a6fbe AK |
9991 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
9992 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9993 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
9994 | |
9995 | cat >>confdefs.h <<\_ACEOF | |
9996 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9997 | _ACEOF | |
9998 | ||
9999 | fi | |
10000 | ||
10001 | ||
d0191583 JM |
10002 | ################################################################################ |
10003 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
10004 | then exec_prefix=""; | |
10005 | fi; | |
ad6254c5 AK |
10006 | |
10007 | ################################################################################ | |
06e459df | 10008 | if test x$READLINE != xno; then |
ec6a6fbe AK |
10009 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
10010 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 10011 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 10012 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10013 | else |
10014 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 10015 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10016 | /* confdefs.h. */ |
10017 | _ACEOF | |
10018 | cat confdefs.h >>conftest.$ac_ext | |
10019 | cat >>conftest.$ac_ext <<_ACEOF | |
10020 | /* end confdefs.h. */ | |
10021 | ||
7a197a62 AK |
10022 | /* Override any GCC internal prototype to avoid an error. |
10023 | Use char because int might match the return type of a GCC | |
10024 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10025 | #ifdef __cplusplus |
10026 | extern "C" | |
10027 | #endif | |
ad6254c5 AK |
10028 | char tgetent (); |
10029 | int | |
10030 | main () | |
10031 | { | |
7a197a62 | 10032 | return tgetent (); |
ad6254c5 AK |
10033 | ; |
10034 | return 0; | |
10035 | } | |
10036 | _ACEOF | |
18dcfb69 | 10037 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
10038 | if test -z "$ac_lib"; then |
10039 | ac_res="none required" | |
10040 | else | |
10041 | ac_res=-l$ac_lib | |
10042 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10043 | fi | |
10044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10045 | if { (ac_try="$ac_link" | |
10046 | case "(($ac_try" in | |
10047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10048 | *) ac_try_echo=$ac_try;; | |
10049 | esac | |
ec6a6fbe AK |
10050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10051 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10052 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10053 | ac_status=$? |
8a2fc586 AK |
10054 | grep -v '^ *+' conftest.er1 >conftest.err |
10055 | rm -f conftest.er1 | |
10056 | cat conftest.err >&5 | |
ec6a6fbe | 10057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10058 | (exit $ac_status); } && { |
10059 | test -z "$ac_c_werror_flag" || | |
10060 | test ! -s conftest.err | |
ec6a6fbe AK |
10061 | } && test -s conftest$ac_exeext && { |
10062 | test "$cross_compiling" = yes || | |
10063 | $as_test_x conftest$ac_exeext | |
10064 | }; then | |
7a197a62 | 10065 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 10066 | else |
ec6a6fbe | 10067 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10068 | sed 's/^/| /' conftest.$ac_ext >&5 |
10069 | ||
ad6254c5 | 10070 | |
7a197a62 | 10071 | fi |
ad6254c5 | 10072 | |
ec6a6fbe | 10073 | rm -rf conftest.dSYM |
25fbec5b | 10074 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
10075 | conftest$ac_exeext |
10076 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10077 | break | |
ad6254c5 | 10078 | fi |
7a197a62 AK |
10079 | done |
10080 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10081 | : | |
10082 | else | |
10083 | ac_cv_search_tgetent=no | |
ad6254c5 | 10084 | fi |
7a197a62 | 10085 | rm conftest.$ac_ext |
ad6254c5 AK |
10086 | LIBS=$ac_func_search_save_LIBS |
10087 | fi | |
ec6a6fbe AK |
10088 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
10089 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
10090 | ac_res=$ac_cv_search_tgetent |
10091 | if test "$ac_res" != no; then | |
10092 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 10093 | tg_found=yes |
ad6254c5 | 10094 | else |
06e459df JM |
10095 | tg_found=no |
10096 | fi | |
10097 | ||
10098 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 10099 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
10100 | --enable-readline option (which is enabled by default). Either disable readline |
10101 | support with --disable-readline or download and install termcap from: | |
10102 | ftp.gnu.org/gnu/termcap | |
10103 | Note: if you are using precompiled packages you will also need the development | |
10104 | package as well (which may be called termcap-devel or something similar). | |
10105 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10106 | not found either - but you could try installing that as well. | |
10107 | " >&5 | |
ec6a6fbe | 10108 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
10109 | --enable-readline option (which is enabled by default). Either disable readline |
10110 | support with --disable-readline or download and install termcap from: | |
10111 | ftp.gnu.org/gnu/termcap | |
10112 | Note: if you are using precompiled packages you will also need the development | |
10113 | package as well (which may be called termcap-devel or something similar). | |
10114 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10115 | not found either - but you could try installing that as well. | |
10116 | " >&2;} | |
10117 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
10118 | fi |
10119 | ||
10120 | ################################################################################ | |
ec6a6fbe AK |
10121 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10122 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 10123 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 10124 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10125 | else |
10126 | ac_check_lib_save_LIBS=$LIBS | |
10127 | LIBS="-ldl $LIBS" | |
10128 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10129 | /* confdefs.h. */ |
10130 | _ACEOF | |
10131 | cat confdefs.h >>conftest.$ac_ext | |
10132 | cat >>conftest.$ac_ext <<_ACEOF | |
10133 | /* end confdefs.h. */ | |
10134 | ||
7a197a62 AK |
10135 | /* Override any GCC internal prototype to avoid an error. |
10136 | Use char because int might match the return type of a GCC | |
10137 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10138 | #ifdef __cplusplus |
10139 | extern "C" | |
10140 | #endif | |
ad6254c5 AK |
10141 | char dlopen (); |
10142 | int | |
10143 | main () | |
10144 | { | |
7a197a62 | 10145 | return dlopen (); |
ad6254c5 AK |
10146 | ; |
10147 | return 0; | |
10148 | } | |
10149 | _ACEOF | |
10150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10151 | if { (ac_try="$ac_link" |
10152 | case "(($ac_try" in | |
10153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10154 | *) ac_try_echo=$ac_try;; | |
10155 | esac | |
ec6a6fbe AK |
10156 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10157 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10158 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10159 | ac_status=$? |
8a2fc586 AK |
10160 | grep -v '^ *+' conftest.er1 >conftest.err |
10161 | rm -f conftest.er1 | |
10162 | cat conftest.err >&5 | |
ec6a6fbe | 10163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10164 | (exit $ac_status); } && { |
10165 | test -z "$ac_c_werror_flag" || | |
10166 | test ! -s conftest.err | |
ec6a6fbe AK |
10167 | } && test -s conftest$ac_exeext && { |
10168 | test "$cross_compiling" = yes || | |
10169 | $as_test_x conftest$ac_exeext | |
10170 | }; then | |
ad6254c5 AK |
10171 | ac_cv_lib_dl_dlopen=yes |
10172 | else | |
ec6a6fbe | 10173 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10174 | sed 's/^/| /' conftest.$ac_ext >&5 |
10175 | ||
7a197a62 | 10176 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 10177 | fi |
7a197a62 | 10178 | |
ec6a6fbe | 10179 | rm -rf conftest.dSYM |
25fbec5b | 10180 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10181 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10182 | LIBS=$ac_check_lib_save_LIBS |
10183 | fi | |
ec6a6fbe AK |
10184 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10185 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10186 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
10187 | HAVE_LIBDL=yes |
10188 | else | |
10189 | HAVE_LIBDL=no | |
10190 | fi | |
10191 | ||
10192 | ||
7e9e9502 | 10193 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
10194 | |
10195 | cat >>confdefs.h <<\_ACEOF | |
10196 | #define HAVE_LIBDL 1 | |
10197 | _ACEOF | |
10198 | ||
ad6254c5 AK |
10199 | LIBS="-ldl $LIBS" |
10200 | else | |
10201 | HAVE_LIBDL=no | |
10202 | fi | |
10203 | ||
10204 | ################################################################################ | |
10205 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
10206 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
10207 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 10208 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 10209 | " >&5 |
ec6a6fbe | 10210 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
10211 | " >&2;} |
10212 | { (exit 1); exit 1; }; } | |
10213 | fi | |
10214 | ||
d0191583 | 10215 | ################################################################################ |
ec6a6fbe AK |
10216 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
10217 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
10218 | # Check whether --enable-selinux was given. |
10219 | if test "${enable_selinux+set}" = set; then | |
10220 | enableval=$enable_selinux; SELINUX=$enableval | |
10221 | fi | |
10222 | ||
ec6a6fbe AK |
10223 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
10224 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 10225 | |
ad6254c5 AK |
10226 | ################################################################################ |
10227 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
10228 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
10229 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 10230 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 10231 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
10232 | else |
10233 | ac_check_lib_save_LIBS=$LIBS | |
10234 | LIBS="-lsepol $LIBS" | |
10235 | cat >conftest.$ac_ext <<_ACEOF | |
10236 | /* confdefs.h. */ | |
10237 | _ACEOF | |
10238 | cat confdefs.h >>conftest.$ac_ext | |
10239 | cat >>conftest.$ac_ext <<_ACEOF | |
10240 | /* end confdefs.h. */ | |
10241 | ||
7a197a62 AK |
10242 | /* Override any GCC internal prototype to avoid an error. |
10243 | Use char because int might match the return type of a GCC | |
10244 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
10245 | #ifdef __cplusplus |
10246 | extern "C" | |
10247 | #endif | |
8a2fc586 AK |
10248 | char sepol_check_context (); |
10249 | int | |
10250 | main () | |
10251 | { | |
7a197a62 | 10252 | return sepol_check_context (); |
8a2fc586 AK |
10253 | ; |
10254 | return 0; | |
10255 | } | |
10256 | _ACEOF | |
10257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10258 | if { (ac_try="$ac_link" |
10259 | case "(($ac_try" in | |
10260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10261 | *) ac_try_echo=$ac_try;; | |
10262 | esac | |
ec6a6fbe AK |
10263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10264 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10265 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
10266 | ac_status=$? |
10267 | grep -v '^ *+' conftest.er1 >conftest.err | |
10268 | rm -f conftest.er1 | |
10269 | cat conftest.err >&5 | |
ec6a6fbe | 10270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10271 | (exit $ac_status); } && { |
10272 | test -z "$ac_c_werror_flag" || | |
10273 | test ! -s conftest.err | |
ec6a6fbe AK |
10274 | } && test -s conftest$ac_exeext && { |
10275 | test "$cross_compiling" = yes || | |
10276 | $as_test_x conftest$ac_exeext | |
10277 | }; then | |
8a2fc586 AK |
10278 | ac_cv_lib_sepol_sepol_check_context=yes |
10279 | else | |
ec6a6fbe | 10280 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
10281 | sed 's/^/| /' conftest.$ac_ext >&5 |
10282 | ||
7a197a62 | 10283 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 10284 | fi |
7a197a62 | 10285 | |
ec6a6fbe | 10286 | rm -rf conftest.dSYM |
25fbec5b | 10287 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
10288 | conftest$ac_exeext conftest.$ac_ext |
10289 | LIBS=$ac_check_lib_save_LIBS | |
10290 | fi | |
ec6a6fbe AK |
10291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
10292 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
10293 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
10294 | HAVE_SEPOL=yes |
10295 | else | |
10296 | HAVE_SEPOL=no | |
10297 | fi | |
10298 | ||
8a2fc586 AK |
10299 | |
10300 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
10301 | |
10302 | cat >>confdefs.h <<\_ACEOF | |
10303 | #define HAVE_SEPOL 1 | |
10304 | _ACEOF | |
10305 | ||
8a2fc586 AK |
10306 | LIBS="-lsepol $LIBS" |
10307 | fi | |
10308 | ||
ec6a6fbe AK |
10309 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
10310 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 10311 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 10312 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10313 | else |
10314 | ac_check_lib_save_LIBS=$LIBS | |
10315 | LIBS="-lselinux $LIBS" | |
10316 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10317 | /* confdefs.h. */ |
10318 | _ACEOF | |
10319 | cat confdefs.h >>conftest.$ac_ext | |
10320 | cat >>conftest.$ac_ext <<_ACEOF | |
10321 | /* end confdefs.h. */ | |
10322 | ||
7a197a62 AK |
10323 | /* Override any GCC internal prototype to avoid an error. |
10324 | Use char because int might match the return type of a GCC | |
10325 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10326 | #ifdef __cplusplus |
10327 | extern "C" | |
10328 | #endif | |
ad6254c5 AK |
10329 | char is_selinux_enabled (); |
10330 | int | |
10331 | main () | |
10332 | { | |
7a197a62 | 10333 | return is_selinux_enabled (); |
ad6254c5 AK |
10334 | ; |
10335 | return 0; | |
10336 | } | |
10337 | _ACEOF | |
10338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10339 | if { (ac_try="$ac_link" |
10340 | case "(($ac_try" in | |
10341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10342 | *) ac_try_echo=$ac_try;; | |
10343 | esac | |
ec6a6fbe AK |
10344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10345 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10346 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10347 | ac_status=$? |
8a2fc586 AK |
10348 | grep -v '^ *+' conftest.er1 >conftest.err |
10349 | rm -f conftest.er1 | |
10350 | cat conftest.err >&5 | |
ec6a6fbe | 10351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10352 | (exit $ac_status); } && { |
10353 | test -z "$ac_c_werror_flag" || | |
10354 | test ! -s conftest.err | |
ec6a6fbe AK |
10355 | } && test -s conftest$ac_exeext && { |
10356 | test "$cross_compiling" = yes || | |
10357 | $as_test_x conftest$ac_exeext | |
10358 | }; then | |
ad6254c5 AK |
10359 | ac_cv_lib_selinux_is_selinux_enabled=yes |
10360 | else | |
ec6a6fbe | 10361 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10362 | sed 's/^/| /' conftest.$ac_ext >&5 |
10363 | ||
7a197a62 | 10364 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 10365 | fi |
7a197a62 | 10366 | |
ec6a6fbe | 10367 | rm -rf conftest.dSYM |
25fbec5b | 10368 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10369 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10370 | LIBS=$ac_check_lib_save_LIBS |
10371 | fi | |
ec6a6fbe AK |
10372 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
10373 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
10374 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
10375 | HAVE_SELINUX=yes |
10376 | else | |
10377 | HAVE_SELINUX=no | |
10378 | fi | |
10379 | ||
ad6254c5 AK |
10380 | |
10381 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
10382 | |
10383 | cat >>confdefs.h <<\_ACEOF | |
10384 | #define HAVE_SELINUX 1 | |
10385 | _ACEOF | |
10386 | ||
ad6254c5 AK |
10387 | LIBS="-lselinux $LIBS" |
10388 | else | |
ec6a6fbe AK |
10389 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
10390 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
10391 | fi |
10392 | ||
d0191583 | 10393 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
10394 | # fails on at least Debian unstable due to unsatisfied references |
10395 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
10396 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
10397 | lvm_saved_libs=$LIBS | |
10398 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
10399 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
10400 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 10401 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 10402 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
10403 | else |
10404 | ac_func_search_save_LIBS=$LIBS | |
10405 | cat >conftest.$ac_ext <<_ACEOF | |
10406 | /* confdefs.h. */ | |
10407 | _ACEOF | |
10408 | cat confdefs.h >>conftest.$ac_ext | |
10409 | cat >>conftest.$ac_ext <<_ACEOF | |
10410 | /* end confdefs.h. */ | |
10411 | ||
10412 | /* Override any GCC internal prototype to avoid an error. | |
10413 | Use char because int might match the return type of a GCC | |
10414 | builtin and then its argument prototype would still apply. */ | |
10415 | #ifdef __cplusplus | |
10416 | extern "C" | |
10417 | #endif | |
10418 | char pthread_mutex_lock (); | |
10419 | int | |
10420 | main () | |
10421 | { | |
10422 | return pthread_mutex_lock (); | |
10423 | ; | |
10424 | return 0; | |
10425 | } | |
10426 | _ACEOF | |
10427 | for ac_lib in '' pthread; do | |
10428 | if test -z "$ac_lib"; then | |
10429 | ac_res="none required" | |
10430 | else | |
10431 | ac_res=-l$ac_lib | |
10432 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10433 | fi | |
10434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10435 | if { (ac_try="$ac_link" | |
10436 | case "(($ac_try" in | |
10437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10438 | *) ac_try_echo=$ac_try;; | |
10439 | esac | |
ec6a6fbe AK |
10440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10441 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
10442 | (eval "$ac_link") 2>conftest.er1 |
10443 | ac_status=$? | |
10444 | grep -v '^ *+' conftest.er1 >conftest.err | |
10445 | rm -f conftest.er1 | |
10446 | cat conftest.err >&5 | |
ec6a6fbe | 10447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10448 | (exit $ac_status); } && { |
10449 | test -z "$ac_c_werror_flag" || | |
10450 | test ! -s conftest.err | |
ec6a6fbe AK |
10451 | } && test -s conftest$ac_exeext && { |
10452 | test "$cross_compiling" = yes || | |
10453 | $as_test_x conftest$ac_exeext | |
10454 | }; then | |
66e941e8 JM |
10455 | ac_cv_search_pthread_mutex_lock=$ac_res |
10456 | else | |
ec6a6fbe | 10457 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
10458 | sed 's/^/| /' conftest.$ac_ext >&5 |
10459 | ||
10460 | ||
10461 | fi | |
10462 | ||
ec6a6fbe | 10463 | rm -rf conftest.dSYM |
25fbec5b | 10464 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
10465 | conftest$ac_exeext |
10466 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10467 | break | |
10468 | fi | |
10469 | done | |
10470 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10471 | : | |
10472 | else | |
10473 | ac_cv_search_pthread_mutex_lock=no | |
10474 | fi | |
10475 | rm conftest.$ac_ext | |
10476 | LIBS=$ac_func_search_save_LIBS | |
10477 | fi | |
ec6a6fbe AK |
10478 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
10479 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
10480 | ac_res=$ac_cv_search_pthread_mutex_lock |
10481 | if test "$ac_res" != no; then | |
10482 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10483 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
10484 | LIB_PTHREAD=-lpthread | |
10485 | fi | |
10486 | ||
10487 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
10488 | fi |
10489 | fi | |
10490 | ||
8b1a3214 AK |
10491 | ################################################################################ |
10492 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
10493 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
10494 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 10495 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 10496 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
10497 | else |
10498 | ac_check_lib_save_LIBS=$LIBS | |
10499 | LIBS="-lrt $LIBS" | |
10500 | cat >conftest.$ac_ext <<_ACEOF | |
10501 | /* confdefs.h. */ | |
10502 | _ACEOF | |
10503 | cat confdefs.h >>conftest.$ac_ext | |
10504 | cat >>conftest.$ac_ext <<_ACEOF | |
10505 | /* end confdefs.h. */ | |
10506 | ||
7a197a62 AK |
10507 | /* Override any GCC internal prototype to avoid an error. |
10508 | Use char because int might match the return type of a GCC | |
10509 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
10510 | #ifdef __cplusplus |
10511 | extern "C" | |
10512 | #endif | |
8b1a3214 AK |
10513 | char clock_gettime (); |
10514 | int | |
10515 | main () | |
10516 | { | |
7a197a62 | 10517 | return clock_gettime (); |
8b1a3214 AK |
10518 | ; |
10519 | return 0; | |
10520 | } | |
10521 | _ACEOF | |
10522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10523 | if { (ac_try="$ac_link" |
10524 | case "(($ac_try" in | |
10525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10526 | *) ac_try_echo=$ac_try;; | |
10527 | esac | |
ec6a6fbe AK |
10528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10529 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10530 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
10531 | ac_status=$? |
10532 | grep -v '^ *+' conftest.er1 >conftest.err | |
10533 | rm -f conftest.er1 | |
10534 | cat conftest.err >&5 | |
ec6a6fbe | 10535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10536 | (exit $ac_status); } && { |
10537 | test -z "$ac_c_werror_flag" || | |
10538 | test ! -s conftest.err | |
ec6a6fbe AK |
10539 | } && test -s conftest$ac_exeext && { |
10540 | test "$cross_compiling" = yes || | |
10541 | $as_test_x conftest$ac_exeext | |
10542 | }; then | |
8b1a3214 AK |
10543 | ac_cv_lib_rt_clock_gettime=yes |
10544 | else | |
ec6a6fbe | 10545 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
10546 | sed 's/^/| /' conftest.$ac_ext >&5 |
10547 | ||
7a197a62 | 10548 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 10549 | fi |
7a197a62 | 10550 | |
ec6a6fbe | 10551 | rm -rf conftest.dSYM |
25fbec5b | 10552 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
10553 | conftest$ac_exeext conftest.$ac_ext |
10554 | LIBS=$ac_check_lib_save_LIBS | |
10555 | fi | |
ec6a6fbe AK |
10556 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
10557 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
10558 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
10559 | HAVE_REALTIME=yes |
10560 | else | |
10561 | HAVE_REALTIME=no | |
10562 | fi | |
10563 | ||
8b1a3214 AK |
10564 | |
10565 | if test x$HAVE_REALTIME = xyes; then | |
10566 | ||
10567 | cat >>confdefs.h <<\_ACEOF | |
10568 | #define HAVE_REALTIME 1 | |
10569 | _ACEOF | |
10570 | ||
10571 | LIBS="-lrt $LIBS" | |
10572 | else | |
ec6a6fbe AK |
10573 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
10574 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
10575 | fi |
10576 | fi | |
10577 | ||
ad6254c5 AK |
10578 | ################################################################################ |
10579 | ||
10580 | for ac_header in getopt.h | |
10581 | do | |
ec6a6fbe | 10582 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10583 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10584 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10585 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10587 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10588 | fi |
ec6a6fbe AK |
10589 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10590 | $as_echo "$as_val"'` | |
10591 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10592 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10593 | else |
10594 | # Is the header compilable? | |
ec6a6fbe AK |
10595 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10596 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10597 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10598 | /* confdefs.h. */ |
10599 | _ACEOF | |
10600 | cat confdefs.h >>conftest.$ac_ext | |
10601 | cat >>conftest.$ac_ext <<_ACEOF | |
10602 | /* end confdefs.h. */ | |
10603 | $ac_includes_default | |
10604 | #include <$ac_header> | |
10605 | _ACEOF | |
10606 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10607 | if { (ac_try="$ac_compile" |
10608 | case "(($ac_try" in | |
10609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10610 | *) ac_try_echo=$ac_try;; | |
10611 | esac | |
ec6a6fbe AK |
10612 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10613 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10614 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10615 | ac_status=$? |
8a2fc586 AK |
10616 | grep -v '^ *+' conftest.er1 >conftest.err |
10617 | rm -f conftest.er1 | |
10618 | cat conftest.err >&5 | |
ec6a6fbe | 10619 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10620 | (exit $ac_status); } && { |
10621 | test -z "$ac_c_werror_flag" || | |
10622 | test ! -s conftest.err | |
10623 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10624 | ac_header_compiler=yes |
10625 | else | |
ec6a6fbe | 10626 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10627 | sed 's/^/| /' conftest.$ac_ext >&5 |
10628 | ||
7a197a62 | 10629 | ac_header_compiler=no |
ad6254c5 | 10630 | fi |
7a197a62 AK |
10631 | |
10632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10633 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10634 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10635 | |
10636 | # Is the header present? | |
ec6a6fbe AK |
10637 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10638 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10639 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10640 | /* confdefs.h. */ |
10641 | _ACEOF | |
10642 | cat confdefs.h >>conftest.$ac_ext | |
10643 | cat >>conftest.$ac_ext <<_ACEOF | |
10644 | /* end confdefs.h. */ | |
10645 | #include <$ac_header> | |
10646 | _ACEOF | |
7a197a62 AK |
10647 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10648 | case "(($ac_try" in | |
10649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10650 | *) ac_try_echo=$ac_try;; | |
10651 | esac | |
ec6a6fbe AK |
10652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10653 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10654 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10655 | ac_status=$? |
10656 | grep -v '^ *+' conftest.er1 >conftest.err | |
10657 | rm -f conftest.er1 | |
10658 | cat conftest.err >&5 | |
ec6a6fbe | 10659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10660 | (exit $ac_status); } >/dev/null && { |
10661 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10662 | test ! -s conftest.err | |
10663 | }; then | |
ad6254c5 AK |
10664 | ac_header_preproc=yes |
10665 | else | |
ec6a6fbe | 10666 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10667 | sed 's/^/| /' conftest.$ac_ext >&5 |
10668 | ||
10669 | ac_header_preproc=no | |
10670 | fi | |
7a197a62 | 10671 | |
ad6254c5 | 10672 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10673 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10674 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10675 | |
10676 | # So? What about this header? | |
8a2fc586 AK |
10677 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10678 | yes:no: ) | |
ec6a6fbe AK |
10679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10680 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10682 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10683 | ac_header_preproc=yes |
ad6254c5 | 10684 | ;; |
8a2fc586 | 10685 | no:yes:* ) |
ec6a6fbe AK |
10686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10687 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10689 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10691 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10693 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10695 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10697 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10698 | |
ad6254c5 AK |
10699 | ;; |
10700 | esac | |
ec6a6fbe AK |
10701 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10702 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10703 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10704 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10705 | else |
8a2fc586 | 10706 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10707 | fi |
ec6a6fbe AK |
10708 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10709 | $as_echo "$as_val"'` | |
10710 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10711 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10712 | |
10713 | fi | |
ec6a6fbe AK |
10714 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10715 | $as_echo "$as_val"'` | |
10716 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10717 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10718 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10719 | _ACEOF |
72b2cb61 AK |
10720 | |
10721 | cat >>confdefs.h <<\_ACEOF | |
10722 | #define HAVE_GETOPTLONG 1 | |
10723 | _ACEOF | |
10724 | ||
ad6254c5 AK |
10725 | fi |
10726 | ||
10727 | done | |
10728 | ||
10729 | ||
10730 | ################################################################################ | |
06e459df | 10731 | if test x$READLINE != xno; then |
bc1024f8 JM |
10732 | rl_found=yes |
10733 | ||
ec6a6fbe AK |
10734 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10735 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 10736 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 10737 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10738 | else |
10739 | ac_check_lib_save_LIBS=$LIBS | |
10740 | LIBS="-lreadline $LIBS" | |
10741 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10742 | /* confdefs.h. */ |
10743 | _ACEOF | |
10744 | cat confdefs.h >>conftest.$ac_ext | |
10745 | cat >>conftest.$ac_ext <<_ACEOF | |
10746 | /* end confdefs.h. */ | |
10747 | ||
7a197a62 AK |
10748 | /* Override any GCC internal prototype to avoid an error. |
10749 | Use char because int might match the return type of a GCC | |
10750 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10751 | #ifdef __cplusplus |
10752 | extern "C" | |
10753 | #endif | |
ad6254c5 AK |
10754 | char readline (); |
10755 | int | |
10756 | main () | |
10757 | { | |
7a197a62 | 10758 | return readline (); |
ad6254c5 AK |
10759 | ; |
10760 | return 0; | |
10761 | } | |
10762 | _ACEOF | |
10763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10764 | if { (ac_try="$ac_link" |
10765 | case "(($ac_try" in | |
10766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10767 | *) ac_try_echo=$ac_try;; | |
10768 | esac | |
ec6a6fbe AK |
10769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10770 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10771 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10772 | ac_status=$? |
8a2fc586 AK |
10773 | grep -v '^ *+' conftest.er1 >conftest.err |
10774 | rm -f conftest.er1 | |
10775 | cat conftest.err >&5 | |
ec6a6fbe | 10776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10777 | (exit $ac_status); } && { |
10778 | test -z "$ac_c_werror_flag" || | |
10779 | test ! -s conftest.err | |
ec6a6fbe AK |
10780 | } && test -s conftest$ac_exeext && { |
10781 | test "$cross_compiling" = yes || | |
10782 | $as_test_x conftest$ac_exeext | |
10783 | }; then | |
ad6254c5 AK |
10784 | ac_cv_lib_readline_readline=yes |
10785 | else | |
ec6a6fbe | 10786 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10787 | sed 's/^/| /' conftest.$ac_ext >&5 |
10788 | ||
7a197a62 | 10789 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10790 | fi |
7a197a62 | 10791 | |
ec6a6fbe | 10792 | rm -rf conftest.dSYM |
25fbec5b | 10793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10794 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10795 | LIBS=$ac_check_lib_save_LIBS |
10796 | fi | |
ec6a6fbe AK |
10797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10798 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
10799 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
10800 | cat >>confdefs.h <<_ACEOF |
10801 | #define HAVE_LIBREADLINE 1 | |
10802 | _ACEOF | |
10803 | ||
10804 | LIBS="-lreadline $LIBS" | |
10805 | ||
ad6254c5 | 10806 | else |
06e459df JM |
10807 | rl_found=no |
10808 | fi | |
10809 | ||
10810 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 10811 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10812 | --enable-readline option (which is enabled by default). Either disable readline |
10813 | support with --disable-readline or download and install readline from: | |
10814 | ftp.gnu.org/gnu/readline | |
10815 | Note: if you are using precompiled packages you will also need the development | |
10816 | package as well (which may be called readline-devel or something similar). | |
10817 | " >&5 | |
ec6a6fbe | 10818 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10819 | --enable-readline option (which is enabled by default). Either disable readline |
10820 | support with --disable-readline or download and install readline from: | |
10821 | ftp.gnu.org/gnu/readline | |
10822 | Note: if you are using precompiled packages you will also need the development | |
10823 | package as well (which may be called readline-devel or something similar). | |
10824 | " >&2;} | |
10825 | { (exit 1); exit 1; }; } | |
06e459df | 10826 | if test $rl_found = yes; then |
bc1024f8 JM |
10827 | |
10828 | for ac_func in rl_completion_matches | |
10829 | do | |
ec6a6fbe AK |
10830 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10831 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10832 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 10833 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10834 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10835 | else |
10836 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10837 | /* confdefs.h. */ |
10838 | _ACEOF | |
10839 | cat confdefs.h >>conftest.$ac_ext | |
10840 | cat >>conftest.$ac_ext <<_ACEOF | |
10841 | /* end confdefs.h. */ | |
bc1024f8 | 10842 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 10843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 10844 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 10845 | |
ad6254c5 | 10846 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 10847 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
10848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10849 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10850 | |
ad6254c5 AK |
10851 | #ifdef __STDC__ |
10852 | # include <limits.h> | |
10853 | #else | |
10854 | # include <assert.h> | |
10855 | #endif | |
8a2fc586 | 10856 | |
bc1024f8 | 10857 | #undef $ac_func |
8a2fc586 | 10858 | |
7a197a62 AK |
10859 | /* Override any GCC internal prototype to avoid an error. |
10860 | Use char because int might match the return type of a GCC | |
10861 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10862 | #ifdef __cplusplus |
10863 | extern "C" | |
ad6254c5 | 10864 | #endif |
bc1024f8 | 10865 | char $ac_func (); |
ad6254c5 AK |
10866 | /* The GNU C library defines this for functions which it implements |
10867 | to always fail with ENOSYS. Some functions are actually named | |
10868 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 10869 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10870 | choke me |
ad6254c5 AK |
10871 | #endif |
10872 | ||
10873 | int | |
10874 | main () | |
10875 | { | |
bc1024f8 | 10876 | return $ac_func (); |
ad6254c5 AK |
10877 | ; |
10878 | return 0; | |
10879 | } | |
10880 | _ACEOF | |
10881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10882 | if { (ac_try="$ac_link" |
10883 | case "(($ac_try" in | |
10884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10885 | *) ac_try_echo=$ac_try;; | |
10886 | esac | |
ec6a6fbe AK |
10887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10888 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10889 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10890 | ac_status=$? |
8a2fc586 AK |
10891 | grep -v '^ *+' conftest.er1 >conftest.err |
10892 | rm -f conftest.er1 | |
10893 | cat conftest.err >&5 | |
ec6a6fbe | 10894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10895 | (exit $ac_status); } && { |
10896 | test -z "$ac_c_werror_flag" || | |
10897 | test ! -s conftest.err | |
ec6a6fbe AK |
10898 | } && test -s conftest$ac_exeext && { |
10899 | test "$cross_compiling" = yes || | |
10900 | $as_test_x conftest$ac_exeext | |
10901 | }; then | |
bc1024f8 | 10902 | eval "$as_ac_var=yes" |
ad6254c5 | 10903 | else |
ec6a6fbe | 10904 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10905 | sed 's/^/| /' conftest.$ac_ext >&5 |
10906 | ||
bc1024f8 | 10907 | eval "$as_ac_var=no" |
ad6254c5 | 10908 | fi |
7a197a62 | 10909 | |
ec6a6fbe | 10910 | rm -rf conftest.dSYM |
25fbec5b | 10911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10912 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10913 | fi |
ec6a6fbe AK |
10914 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10915 | $as_echo "$as_val"'` | |
10916 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10917 | $as_echo "$ac_res" >&6; } | |
10918 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10919 | $as_echo "$as_val"'` | |
10920 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 10921 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10922 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
10923 | _ACEOF |
10924 | ||
10925 | fi | |
bc1024f8 | 10926 | done |
ad6254c5 | 10927 | |
d179cc7a JM |
10928 | |
10929 | cat >>confdefs.h <<\_ACEOF | |
10930 | #define READLINE_SUPPORT 1 | |
10931 | _ACEOF | |
10932 | ||
06e459df | 10933 | fi |
ad6254c5 AK |
10934 | fi |
10935 | ||
10936 | ################################################################################ | |
ec6a6fbe AK |
10937 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10938 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 10939 | # Check whether --enable-nls was given. |
ad6254c5 | 10940 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10941 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10942 | else |
10943 | INTL=no | |
7a197a62 AK |
10944 | fi |
10945 | ||
ec6a6fbe AK |
10946 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
10947 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
10948 | |
10949 | if test x$INTL = xyes; then | |
93bd259b | 10950 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10951 | INTL_PACKAGE="lvm2" |
10952 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10953 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
10954 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10955 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 10956 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 10957 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10958 | else |
10959 | case $MSGFMT in | |
10960 | [\\/]* | ?:[\\/]*) | |
10961 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10962 | ;; | |
10963 | *) | |
10964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10965 | for as_dir in $PATH | |
10966 | do | |
10967 | IFS=$as_save_IFS | |
10968 | test -z "$as_dir" && as_dir=. | |
10969 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10970 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10971 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 10972 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10973 | break 2 |
10974 | fi | |
10975 | done | |
10976 | done | |
7a197a62 | 10977 | IFS=$as_save_IFS |
ad6254c5 AK |
10978 | |
10979 | ;; | |
10980 | esac | |
10981 | fi | |
10982 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10983 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
10984 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10985 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 10986 | else |
ec6a6fbe AK |
10987 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10988 | $as_echo "no" >&6; } | |
ad6254c5 AK |
10989 | fi |
10990 | ||
7a197a62 | 10991 | |
ad6254c5 | 10992 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 10993 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10994 | " >&5 |
ec6a6fbe | 10995 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10996 | " >&2;} |
10997 | { (exit 1); exit 1; }; } | |
10998 | fi; | |
10999 | ||
11000 | ||
7a197a62 | 11001 | # Check whether --with-localedir was given. |
ad6254c5 | 11002 | if test "${with_localedir+set}" = set; then |
7a197a62 | 11003 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
11004 | else |
11005 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
11006 | fi |
11007 | ||
ad6254c5 AK |
11008 | fi |
11009 | ||
11010 | ################################################################################ | |
11011 | ||
7a197a62 | 11012 | # Check whether --with-confdir was given. |
ad6254c5 | 11013 | if test "${with_confdir+set}" = set; then |
7a197a62 | 11014 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
11015 | else |
11016 | CONFDIR='/etc' | |
7a197a62 AK |
11017 | fi |
11018 | ||
ad6254c5 AK |
11019 | |
11020 | ||
7a197a62 | 11021 | # Check whether --with-staticdir was given. |
ad6254c5 | 11022 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 11023 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
11024 | else |
11025 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 11026 | fi |
ad6254c5 | 11027 | |
33f732c5 | 11028 | |
7a197a62 | 11029 | |
68f2de6d AK |
11030 | # Check whether --with-usrlibdir was given. |
11031 | if test "${with_usrlibdir+set}" = set; then | |
11032 | withval=$with_usrlibdir; usrlibdir="$withval" | |
11033 | else | |
11034 | usrlibdir='${prefix}/lib' | |
11035 | fi | |
11036 | ||
11037 | ||
11038 | ||
11039 | # Check whether --with-usrsbindir was given. | |
11040 | if test "${with_usrsbindir+set}" = set; then | |
11041 | withval=$with_usrsbindir; usrsbindir="$withval" | |
11042 | else | |
11043 | usrsbindir='${prefix}/sbin' | |
11044 | fi | |
11045 | ||
11046 | ||
a5f46f6a AK |
11047 | ################################################################################ |
11048 | ||
11049 | # Check whether --with-udev_prefix was given. | |
11050 | if test "${with_udev_prefix+set}" = set; then | |
11051 | withval=$with_udev_prefix; udev_prefix="$withval" | |
11052 | else | |
11053 | udev_prefix='${exec_prefix}' | |
11054 | fi | |
11055 | ||
11056 | ||
78ce7acc AK |
11057 | |
11058 | # Check whether --with-udevdir was given. | |
11059 | if test "${with_udevdir+set}" = set; then | |
11060 | withval=$with_udevdir; udevdir="$withval" | |
11061 | else | |
11062 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
11063 | fi | |
11064 | ||
a5f46f6a | 11065 | |
ad6254c5 AK |
11066 | ################################################################################ |
11067 | if test x$READLINE = xyes; then | |
11068 | ||
11069 | ||
11070 | for ac_header in readline/readline.h readline/history.h | |
11071 | do | |
ec6a6fbe | 11072 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11074 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11075 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11077 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11078 | fi |
ec6a6fbe AK |
11079 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11080 | $as_echo "$as_val"'` | |
11081 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11082 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11083 | else |
11084 | # Is the header compilable? | |
ec6a6fbe AK |
11085 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11086 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11087 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11088 | /* confdefs.h. */ |
11089 | _ACEOF | |
11090 | cat confdefs.h >>conftest.$ac_ext | |
11091 | cat >>conftest.$ac_ext <<_ACEOF | |
11092 | /* end confdefs.h. */ | |
11093 | $ac_includes_default | |
11094 | #include <$ac_header> | |
11095 | _ACEOF | |
11096 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11097 | if { (ac_try="$ac_compile" |
11098 | case "(($ac_try" in | |
11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11100 | *) ac_try_echo=$ac_try;; | |
11101 | esac | |
ec6a6fbe AK |
11102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11103 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11104 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11105 | ac_status=$? |
8a2fc586 AK |
11106 | grep -v '^ *+' conftest.er1 >conftest.err |
11107 | rm -f conftest.er1 | |
11108 | cat conftest.err >&5 | |
ec6a6fbe | 11109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11110 | (exit $ac_status); } && { |
11111 | test -z "$ac_c_werror_flag" || | |
11112 | test ! -s conftest.err | |
11113 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11114 | ac_header_compiler=yes |
11115 | else | |
ec6a6fbe | 11116 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11117 | sed 's/^/| /' conftest.$ac_ext >&5 |
11118 | ||
7a197a62 | 11119 | ac_header_compiler=no |
ad6254c5 | 11120 | fi |
7a197a62 AK |
11121 | |
11122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11123 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11124 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11125 | |
11126 | # Is the header present? | |
ec6a6fbe AK |
11127 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11128 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11129 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11130 | /* confdefs.h. */ |
11131 | _ACEOF | |
11132 | cat confdefs.h >>conftest.$ac_ext | |
11133 | cat >>conftest.$ac_ext <<_ACEOF | |
11134 | /* end confdefs.h. */ | |
11135 | #include <$ac_header> | |
11136 | _ACEOF | |
7a197a62 AK |
11137 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11138 | case "(($ac_try" in | |
11139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11140 | *) ac_try_echo=$ac_try;; | |
11141 | esac | |
ec6a6fbe AK |
11142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11143 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11144 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11145 | ac_status=$? |
11146 | grep -v '^ *+' conftest.er1 >conftest.err | |
11147 | rm -f conftest.er1 | |
11148 | cat conftest.err >&5 | |
ec6a6fbe | 11149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11150 | (exit $ac_status); } >/dev/null && { |
11151 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11152 | test ! -s conftest.err | |
11153 | }; then | |
ad6254c5 AK |
11154 | ac_header_preproc=yes |
11155 | else | |
ec6a6fbe | 11156 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11157 | sed 's/^/| /' conftest.$ac_ext >&5 |
11158 | ||
11159 | ac_header_preproc=no | |
11160 | fi | |
7a197a62 | 11161 | |
ad6254c5 | 11162 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11163 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11164 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11165 | |
11166 | # So? What about this header? | |
8a2fc586 AK |
11167 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11168 | yes:no: ) | |
ec6a6fbe AK |
11169 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11170 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11171 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11172 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11173 | ac_header_preproc=yes |
ad6254c5 | 11174 | ;; |
8a2fc586 | 11175 | no:yes:* ) |
ec6a6fbe AK |
11176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11177 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11179 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11181 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11183 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11185 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11187 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11188 | |
ad6254c5 AK |
11189 | ;; |
11190 | esac | |
ec6a6fbe AK |
11191 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11192 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11193 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11194 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11195 | else |
8a2fc586 | 11196 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11197 | fi |
ec6a6fbe AK |
11198 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11199 | $as_echo "$as_val"'` | |
11200 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11201 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11202 | |
11203 | fi | |
ec6a6fbe AK |
11204 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11205 | $as_echo "$as_val"'` | |
11206 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11207 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11208 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11209 | _ACEOF |
11210 | ||
11211 | else | |
ec6a6fbe AK |
11212 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11213 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11214 | { (exit 1); exit 1; }; } |
11215 | fi | |
11216 | ||
11217 | done | |
11218 | ||
11219 | fi | |
11220 | ||
5c7fc7c4 | 11221 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
11222 | |
11223 | ||
11224 | ||
11225 | ||
11226 | ||
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | ||
11232 | 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 | |
11233 | do | |
ec6a6fbe | 11234 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11235 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11236 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11237 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11238 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11239 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11240 | fi |
ec6a6fbe AK |
11241 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11242 | $as_echo "$as_val"'` | |
11243 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11244 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11245 | else |
11246 | # Is the header compilable? | |
ec6a6fbe AK |
11247 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11248 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11249 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11250 | /* confdefs.h. */ |
11251 | _ACEOF | |
11252 | cat confdefs.h >>conftest.$ac_ext | |
11253 | cat >>conftest.$ac_ext <<_ACEOF | |
11254 | /* end confdefs.h. */ | |
11255 | $ac_includes_default | |
11256 | #include <$ac_header> | |
11257 | _ACEOF | |
11258 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11259 | if { (ac_try="$ac_compile" |
11260 | case "(($ac_try" in | |
11261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11262 | *) ac_try_echo=$ac_try;; | |
11263 | esac | |
ec6a6fbe AK |
11264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11265 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11266 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11267 | ac_status=$? |
8a2fc586 AK |
11268 | grep -v '^ *+' conftest.er1 >conftest.err |
11269 | rm -f conftest.er1 | |
11270 | cat conftest.err >&5 | |
ec6a6fbe | 11271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11272 | (exit $ac_status); } && { |
11273 | test -z "$ac_c_werror_flag" || | |
11274 | test ! -s conftest.err | |
11275 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11276 | ac_header_compiler=yes |
11277 | else | |
ec6a6fbe | 11278 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11279 | sed 's/^/| /' conftest.$ac_ext >&5 |
11280 | ||
7a197a62 | 11281 | ac_header_compiler=no |
ad6254c5 | 11282 | fi |
7a197a62 AK |
11283 | |
11284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11285 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11286 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11287 | |
11288 | # Is the header present? | |
ec6a6fbe AK |
11289 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11290 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11291 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11292 | /* confdefs.h. */ |
11293 | _ACEOF | |
11294 | cat confdefs.h >>conftest.$ac_ext | |
11295 | cat >>conftest.$ac_ext <<_ACEOF | |
11296 | /* end confdefs.h. */ | |
11297 | #include <$ac_header> | |
11298 | _ACEOF | |
7a197a62 AK |
11299 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11300 | case "(($ac_try" in | |
11301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11302 | *) ac_try_echo=$ac_try;; | |
11303 | esac | |
ec6a6fbe AK |
11304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11305 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11306 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11307 | ac_status=$? |
11308 | grep -v '^ *+' conftest.er1 >conftest.err | |
11309 | rm -f conftest.er1 | |
11310 | cat conftest.err >&5 | |
ec6a6fbe | 11311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11312 | (exit $ac_status); } >/dev/null && { |
11313 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11314 | test ! -s conftest.err | |
11315 | }; then | |
ad6254c5 AK |
11316 | ac_header_preproc=yes |
11317 | else | |
ec6a6fbe | 11318 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11319 | sed 's/^/| /' conftest.$ac_ext >&5 |
11320 | ||
11321 | ac_header_preproc=no | |
11322 | fi | |
7a197a62 | 11323 | |
ad6254c5 | 11324 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11325 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11326 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11327 | |
11328 | # So? What about this header? | |
8a2fc586 AK |
11329 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11330 | yes:no: ) | |
ec6a6fbe AK |
11331 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11332 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11333 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11334 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11335 | ac_header_preproc=yes |
ad6254c5 | 11336 | ;; |
8a2fc586 | 11337 | no:yes:* ) |
ec6a6fbe AK |
11338 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11339 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11340 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11341 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11342 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11343 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11344 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11345 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11346 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11347 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11348 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11349 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11350 | |
ad6254c5 AK |
11351 | ;; |
11352 | esac | |
ec6a6fbe AK |
11353 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11354 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11355 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11356 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11357 | else |
8a2fc586 | 11358 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11359 | fi |
ec6a6fbe AK |
11360 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11361 | $as_echo "$as_val"'` | |
11362 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11363 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11364 | |
11365 | fi | |
ec6a6fbe AK |
11366 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11367 | $as_echo "$as_val"'` | |
11368 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11369 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11370 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11371 | _ACEOF |
11372 | ||
11373 | else | |
ec6a6fbe AK |
11374 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11375 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11376 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11377 | fi |
11378 | ||
ad6254c5 AK |
11379 | done |
11380 | ||
11381 | ||
795ca3e5 | 11382 | |
8106cdd5 | 11383 | |
ad6254c5 AK |
11384 | |
11385 | ||
11386 | for ac_func in dup2 getmntent memmove select socket | |
11387 | do | |
ec6a6fbe AK |
11388 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11389 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11390 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11391 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11392 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11393 | else |
ad6254c5 | 11394 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11395 | /* confdefs.h. */ |
11396 | _ACEOF | |
11397 | cat confdefs.h >>conftest.$ac_ext | |
11398 | cat >>conftest.$ac_ext <<_ACEOF | |
11399 | /* end confdefs.h. */ | |
8a2fc586 AK |
11400 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11402 | #define $ac_func innocuous_$ac_func | |
11403 | ||
795ca3e5 | 11404 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
11405 | which can conflict with char $ac_func (); below. |
11406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11407 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11408 | |
ad6254c5 AK |
11409 | #ifdef __STDC__ |
11410 | # include <limits.h> | |
11411 | #else | |
11412 | # include <assert.h> | |
11413 | #endif | |
8a2fc586 AK |
11414 | |
11415 | #undef $ac_func | |
11416 | ||
7a197a62 AK |
11417 | /* Override any GCC internal prototype to avoid an error. |
11418 | Use char because int might match the return type of a GCC | |
11419 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11420 | #ifdef __cplusplus |
11421 | extern "C" | |
ad6254c5 | 11422 | #endif |
ad6254c5 | 11423 | char $ac_func (); |
795ca3e5 AK |
11424 | /* The GNU C library defines this for functions which it implements |
11425 | to always fail with ENOSYS. Some functions are actually named | |
11426 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11427 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 11428 | choke me |
795ca3e5 AK |
11429 | #endif |
11430 | ||
ad6254c5 AK |
11431 | int |
11432 | main () | |
11433 | { | |
7a197a62 | 11434 | return $ac_func (); |
ad6254c5 AK |
11435 | ; |
11436 | return 0; | |
11437 | } | |
11438 | _ACEOF | |
11439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11440 | if { (ac_try="$ac_link" |
11441 | case "(($ac_try" in | |
11442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11443 | *) ac_try_echo=$ac_try;; | |
11444 | esac | |
ec6a6fbe AK |
11445 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11446 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11447 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11448 | ac_status=$? |
8a2fc586 AK |
11449 | grep -v '^ *+' conftest.er1 >conftest.err |
11450 | rm -f conftest.er1 | |
11451 | cat conftest.err >&5 | |
ec6a6fbe | 11452 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11453 | (exit $ac_status); } && { |
11454 | test -z "$ac_c_werror_flag" || | |
11455 | test ! -s conftest.err | |
ec6a6fbe AK |
11456 | } && test -s conftest$ac_exeext && { |
11457 | test "$cross_compiling" = yes || | |
11458 | $as_test_x conftest$ac_exeext | |
11459 | }; then | |
ad6254c5 | 11460 | eval "$as_ac_var=yes" |
795ca3e5 | 11461 | else |
ec6a6fbe | 11462 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11463 | sed 's/^/| /' conftest.$ac_ext >&5 |
11464 | ||
7a197a62 | 11465 | eval "$as_ac_var=no" |
80992638 | 11466 | fi |
7a197a62 | 11467 | |
ec6a6fbe | 11468 | rm -rf conftest.dSYM |
25fbec5b | 11469 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11470 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 11471 | fi |
ec6a6fbe AK |
11472 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11473 | $as_echo "$as_val"'` | |
11474 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11475 | $as_echo "$ac_res" >&6; } | |
11476 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11477 | $as_echo "$as_val"'` | |
11478 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11479 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11480 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 11481 | _ACEOF |
80992638 AK |
11482 | |
11483 | else | |
ec6a6fbe AK |
11484 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11485 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11486 | { (exit 1); exit 1; }; } |
8106cdd5 | 11487 | fi |
ad6254c5 | 11488 | done |
795ca3e5 | 11489 | |
25fbec5b AK |
11490 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
11491 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
11492 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
11493 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 11494 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 11495 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
11496 | else |
11497 | ac_func_search_save_LIBS=$LIBS | |
11498 | cat >conftest.$ac_ext <<_ACEOF | |
11499 | /* confdefs.h. */ | |
11500 | _ACEOF | |
11501 | cat confdefs.h >>conftest.$ac_ext | |
11502 | cat >>conftest.$ac_ext <<_ACEOF | |
11503 | /* end confdefs.h. */ | |
80992638 | 11504 | |
7a197a62 AK |
11505 | /* Override any GCC internal prototype to avoid an error. |
11506 | Use char because int might match the return type of a GCC | |
ad6254c5 | 11507 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
11508 | #ifdef __cplusplus |
11509 | extern "C" | |
11510 | #endif | |
25fbec5b | 11511 | char getmntent (); |
ad6254c5 AK |
11512 | int |
11513 | main () | |
11514 | { | |
25fbec5b | 11515 | return getmntent (); |
ad6254c5 AK |
11516 | ; |
11517 | return 0; | |
11518 | } | |
11519 | _ACEOF | |
25fbec5b AK |
11520 | for ac_lib in '' sun seq gen; do |
11521 | if test -z "$ac_lib"; then | |
11522 | ac_res="none required" | |
11523 | else | |
11524 | ac_res=-l$ac_lib | |
11525 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11526 | fi | |
11527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11528 | if { (ac_try="$ac_link" |
11529 | case "(($ac_try" in | |
11530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11531 | *) ac_try_echo=$ac_try;; | |
11532 | esac | |
ec6a6fbe AK |
11533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11534 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11535 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11536 | ac_status=$? |
8a2fc586 AK |
11537 | grep -v '^ *+' conftest.er1 >conftest.err |
11538 | rm -f conftest.er1 | |
11539 | cat conftest.err >&5 | |
ec6a6fbe | 11540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11541 | (exit $ac_status); } && { |
11542 | test -z "$ac_c_werror_flag" || | |
11543 | test ! -s conftest.err | |
ec6a6fbe AK |
11544 | } && test -s conftest$ac_exeext && { |
11545 | test "$cross_compiling" = yes || | |
11546 | $as_test_x conftest$ac_exeext | |
11547 | }; then | |
25fbec5b | 11548 | ac_cv_search_getmntent=$ac_res |
80992638 | 11549 | else |
ec6a6fbe | 11550 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11551 | sed 's/^/| /' conftest.$ac_ext >&5 |
11552 | ||
25fbec5b | 11553 | |
795ca3e5 AK |
11554 | fi |
11555 | ||
ec6a6fbe | 11556 | rm -rf conftest.dSYM |
25fbec5b AK |
11557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11558 | conftest$ac_exeext | |
11559 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11560 | break | |
795ca3e5 | 11561 | fi |
25fbec5b AK |
11562 | done |
11563 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11564 | : | |
11565 | else | |
11566 | ac_cv_search_getmntent=no | |
11567 | fi | |
11568 | rm conftest.$ac_ext | |
11569 | LIBS=$ac_func_search_save_LIBS | |
11570 | fi | |
ec6a6fbe AK |
11571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
11572 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
11573 | ac_res=$ac_cv_search_getmntent |
11574 | if test "$ac_res" != no; then | |
11575 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11576 | ac_cv_func_getmntent=yes | |
11577 | ||
11578 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 11579 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 11580 | _ACEOF |
795ca3e5 | 11581 | |
25fbec5b AK |
11582 | else |
11583 | ac_cv_func_getmntent=no | |
795ca3e5 | 11584 | fi |
795ca3e5 AK |
11585 | |
11586 | ||
ad6254c5 AK |
11587 | # AC_FUNC_REALLOC |
11588 | ||
11589 | ||
11590 | for ac_header in sys/select.h sys/socket.h | |
11591 | do | |
ec6a6fbe | 11592 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11594 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11595 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11597 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11598 | fi |
ec6a6fbe AK |
11599 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11600 | $as_echo "$as_val"'` | |
11601 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11602 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 11603 | else |
ad6254c5 | 11604 | # Is the header compilable? |
ec6a6fbe AK |
11605 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11606 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11607 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11608 | /* confdefs.h. */ |
11609 | _ACEOF | |
11610 | cat confdefs.h >>conftest.$ac_ext | |
11611 | cat >>conftest.$ac_ext <<_ACEOF | |
11612 | /* end confdefs.h. */ | |
11613 | $ac_includes_default | |
11614 | #include <$ac_header> | |
11615 | _ACEOF | |
11616 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11617 | if { (ac_try="$ac_compile" |
11618 | case "(($ac_try" in | |
11619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11620 | *) ac_try_echo=$ac_try;; | |
11621 | esac | |
ec6a6fbe AK |
11622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11623 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11624 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11625 | ac_status=$? |
8a2fc586 AK |
11626 | grep -v '^ *+' conftest.er1 >conftest.err |
11627 | rm -f conftest.er1 | |
11628 | cat conftest.err >&5 | |
ec6a6fbe | 11629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11630 | (exit $ac_status); } && { |
11631 | test -z "$ac_c_werror_flag" || | |
11632 | test ! -s conftest.err | |
11633 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 11634 | ac_header_compiler=yes |
80992638 | 11635 | else |
ec6a6fbe | 11636 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11637 | sed 's/^/| /' conftest.$ac_ext >&5 |
11638 | ||
7a197a62 | 11639 | ac_header_compiler=no |
ad6254c5 | 11640 | fi |
7a197a62 AK |
11641 | |
11642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11643 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11644 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11645 | |
11646 | # Is the header present? | |
ec6a6fbe AK |
11647 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11648 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11649 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11650 | /* confdefs.h. */ |
11651 | _ACEOF | |
11652 | cat confdefs.h >>conftest.$ac_ext | |
11653 | cat >>conftest.$ac_ext <<_ACEOF | |
11654 | /* end confdefs.h. */ | |
11655 | #include <$ac_header> | |
11656 | _ACEOF | |
7a197a62 AK |
11657 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11658 | case "(($ac_try" in | |
11659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11660 | *) ac_try_echo=$ac_try;; | |
11661 | esac | |
ec6a6fbe AK |
11662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11663 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11664 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11665 | ac_status=$? |
11666 | grep -v '^ *+' conftest.er1 >conftest.err | |
11667 | rm -f conftest.er1 | |
11668 | cat conftest.err >&5 | |
ec6a6fbe | 11669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11670 | (exit $ac_status); } >/dev/null && { |
11671 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11672 | test ! -s conftest.err | |
11673 | }; then | |
ad6254c5 AK |
11674 | ac_header_preproc=yes |
11675 | else | |
ec6a6fbe | 11676 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11677 | sed 's/^/| /' conftest.$ac_ext >&5 |
11678 | ||
11679 | ac_header_preproc=no | |
11680 | fi | |
7a197a62 | 11681 | |
ad6254c5 | 11682 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11683 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11684 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11685 | |
11686 | # So? What about this header? | |
8a2fc586 AK |
11687 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11688 | yes:no: ) | |
ec6a6fbe AK |
11689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11690 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11692 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11693 | ac_header_preproc=yes |
ad6254c5 | 11694 | ;; |
8a2fc586 | 11695 | no:yes:* ) |
ec6a6fbe AK |
11696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11697 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11699 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11701 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11703 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11704 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11705 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11706 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11707 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11708 | |
ad6254c5 AK |
11709 | ;; |
11710 | esac | |
ec6a6fbe AK |
11711 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11712 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11713 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11714 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11715 | else |
8a2fc586 | 11716 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 11717 | fi |
ec6a6fbe AK |
11718 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11719 | $as_echo "$as_val"'` | |
11720 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11721 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 11722 | |
795ca3e5 | 11723 | fi |
ec6a6fbe AK |
11724 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11725 | $as_echo "$as_val"'` | |
11726 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11727 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11728 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11729 | _ACEOF |
11730 | ||
795ca3e5 AK |
11731 | fi |
11732 | ||
ad6254c5 AK |
11733 | done |
11734 | ||
ec6a6fbe AK |
11735 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11736 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 11737 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 11738 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 11739 | else |
ad6254c5 | 11740 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 11741 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
11742 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11743 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11744 | /* confdefs.h. */ |
11745 | _ACEOF | |
11746 | cat confdefs.h >>conftest.$ac_ext | |
11747 | cat >>conftest.$ac_ext <<_ACEOF | |
11748 | /* end confdefs.h. */ | |
11749 | $ac_includes_default | |
25fbec5b | 11750 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
11751 | # include <sys/select.h> |
11752 | #endif | |
25fbec5b | 11753 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
11754 | # include <sys/socket.h> |
11755 | #endif | |
11756 | ||
11757 | int | |
11758 | main () | |
11759 | { | |
11760 | extern int select ($ac_arg1, | |
8a2fc586 AK |
11761 | $ac_arg234, $ac_arg234, $ac_arg234, |
11762 | $ac_arg5); | |
ad6254c5 AK |
11763 | ; |
11764 | return 0; | |
11765 | } | |
11766 | _ACEOF | |
11767 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11768 | if { (ac_try="$ac_compile" |
11769 | case "(($ac_try" in | |
11770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11771 | *) ac_try_echo=$ac_try;; | |
11772 | esac | |
ec6a6fbe AK |
11773 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11774 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11775 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11776 | ac_status=$? |
8a2fc586 AK |
11777 | grep -v '^ *+' conftest.er1 >conftest.err |
11778 | rm -f conftest.er1 | |
11779 | cat conftest.err >&5 | |
ec6a6fbe | 11780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11781 | (exit $ac_status); } && { |
11782 | test -z "$ac_c_werror_flag" || | |
11783 | test ! -s conftest.err | |
11784 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11785 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11786 | else | |
ec6a6fbe | 11787 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11788 | sed 's/^/| /' conftest.$ac_ext >&5 |
11789 | ||
7a197a62 | 11790 | |
ad6254c5 | 11791 | fi |
7a197a62 AK |
11792 | |
11793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
11794 | done |
11795 | done | |
11796 | done | |
11797 | # Provide a safe default value. | |
11798 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11799 | ||
26e7f2e0 | 11800 | fi |
ec6a6fbe AK |
11801 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11802 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11803 | ac_save_IFS=$IFS; IFS=',' |
11804 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11805 | IFS=$ac_save_IFS | |
11806 | shift | |
11807 | ||
11808 | cat >>confdefs.h <<_ACEOF | |
11809 | #define SELECT_TYPE_ARG1 $1 | |
11810 | _ACEOF | |
11811 | ||
11812 | ||
11813 | cat >>confdefs.h <<_ACEOF | |
11814 | #define SELECT_TYPE_ARG234 ($2) | |
11815 | _ACEOF | |
11816 | ||
11817 | ||
11818 | cat >>confdefs.h <<_ACEOF | |
11819 | #define SELECT_TYPE_ARG5 ($3) | |
11820 | _ACEOF | |
11821 | ||
80992638 | 11822 | rm -f conftest* |
80992638 | 11823 | |
8106cdd5 | 11824 | fi |
ad6254c5 | 11825 | |
ad6254c5 AK |
11826 | if test x$CLUSTER != xnone; then |
11827 | ||
11828 | ||
11829 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11830 | do |
ec6a6fbe | 11831 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11832 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11833 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11834 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11835 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11836 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11837 | fi |
ec6a6fbe AK |
11838 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11839 | $as_echo "$as_val"'` | |
11840 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11841 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11842 | else |
11843 | # Is the header compilable? | |
ec6a6fbe AK |
11844 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11845 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11846 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11847 | /* confdefs.h. */ |
11848 | _ACEOF | |
11849 | cat confdefs.h >>conftest.$ac_ext | |
11850 | cat >>conftest.$ac_ext <<_ACEOF | |
11851 | /* end confdefs.h. */ | |
11852 | $ac_includes_default | |
11853 | #include <$ac_header> | |
11854 | _ACEOF | |
11855 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11856 | if { (ac_try="$ac_compile" |
11857 | case "(($ac_try" in | |
11858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11859 | *) ac_try_echo=$ac_try;; | |
11860 | esac | |
ec6a6fbe AK |
11861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11862 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11863 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11864 | ac_status=$? |
8a2fc586 AK |
11865 | grep -v '^ *+' conftest.er1 >conftest.err |
11866 | rm -f conftest.er1 | |
11867 | cat conftest.err >&5 | |
ec6a6fbe | 11868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11869 | (exit $ac_status); } && { |
11870 | test -z "$ac_c_werror_flag" || | |
11871 | test ! -s conftest.err | |
11872 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11873 | ac_header_compiler=yes |
11874 | else | |
ec6a6fbe | 11875 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11876 | sed 's/^/| /' conftest.$ac_ext >&5 |
11877 | ||
7a197a62 | 11878 | ac_header_compiler=no |
ad6254c5 | 11879 | fi |
7a197a62 AK |
11880 | |
11881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11882 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11883 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11884 | |
11885 | # Is the header present? | |
ec6a6fbe AK |
11886 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11887 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11888 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11889 | /* confdefs.h. */ |
11890 | _ACEOF | |
11891 | cat confdefs.h >>conftest.$ac_ext | |
11892 | cat >>conftest.$ac_ext <<_ACEOF | |
11893 | /* end confdefs.h. */ | |
11894 | #include <$ac_header> | |
11895 | _ACEOF | |
7a197a62 AK |
11896 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11897 | case "(($ac_try" in | |
11898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11899 | *) ac_try_echo=$ac_try;; | |
11900 | esac | |
ec6a6fbe AK |
11901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11902 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11903 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11904 | ac_status=$? |
11905 | grep -v '^ *+' conftest.er1 >conftest.err | |
11906 | rm -f conftest.er1 | |
11907 | cat conftest.err >&5 | |
ec6a6fbe | 11908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11909 | (exit $ac_status); } >/dev/null && { |
11910 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11911 | test ! -s conftest.err | |
11912 | }; then | |
ad6254c5 AK |
11913 | ac_header_preproc=yes |
11914 | else | |
ec6a6fbe | 11915 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11916 | sed 's/^/| /' conftest.$ac_ext >&5 |
11917 | ||
11918 | ac_header_preproc=no | |
11919 | fi | |
7a197a62 | 11920 | |
ad6254c5 | 11921 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11922 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11923 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11924 | |
11925 | # So? What about this header? | |
8a2fc586 AK |
11926 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11927 | yes:no: ) | |
ec6a6fbe AK |
11928 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11929 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11930 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11931 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11932 | ac_header_preproc=yes |
ad6254c5 | 11933 | ;; |
8a2fc586 | 11934 | no:yes:* ) |
ec6a6fbe AK |
11935 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11936 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11937 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11938 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11939 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11940 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11941 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11942 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11943 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11944 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11945 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11946 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11947 | |
ad6254c5 AK |
11948 | ;; |
11949 | esac | |
ec6a6fbe AK |
11950 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11951 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11952 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11953 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11954 | else |
8a2fc586 | 11955 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11956 | fi |
ec6a6fbe AK |
11957 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11958 | $as_echo "$as_val"'` | |
11959 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11960 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11961 | |
11962 | fi | |
ec6a6fbe AK |
11963 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11964 | $as_echo "$as_val"'` | |
11965 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11966 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11967 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11968 | _ACEOF |
11969 | ||
80992638 | 11970 | else |
ec6a6fbe AK |
11971 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11972 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11973 | { (exit 1); exit 1; }; } |
b896caa1 | 11974 | fi |
ad6254c5 | 11975 | |
b896caa1 AK |
11976 | done |
11977 | ||
11978 | ||
ad6254c5 AK |
11979 | for ac_func in socket |
11980 | do | |
ec6a6fbe AK |
11981 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11982 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11983 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11984 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11985 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11986 | else |
ad6254c5 | 11987 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11988 | /* confdefs.h. */ |
11989 | _ACEOF | |
11990 | cat confdefs.h >>conftest.$ac_ext | |
11991 | cat >>conftest.$ac_ext <<_ACEOF | |
11992 | /* end confdefs.h. */ | |
8a2fc586 AK |
11993 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11995 | #define $ac_func innocuous_$ac_func | |
11996 | ||
ad6254c5 AK |
11997 | /* System header to define __stub macros and hopefully few prototypes, |
11998 | which can conflict with char $ac_func (); below. | |
11999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12000 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 12001 | |
ad6254c5 AK |
12002 | #ifdef __STDC__ |
12003 | # include <limits.h> | |
12004 | #else | |
12005 | # include <assert.h> | |
12006 | #endif | |
8a2fc586 AK |
12007 | |
12008 | #undef $ac_func | |
12009 | ||
7a197a62 AK |
12010 | /* Override any GCC internal prototype to avoid an error. |
12011 | Use char because int might match the return type of a GCC | |
12012 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12013 | #ifdef __cplusplus |
12014 | extern "C" | |
ad6254c5 | 12015 | #endif |
ad6254c5 AK |
12016 | char $ac_func (); |
12017 | /* The GNU C library defines this for functions which it implements | |
12018 | to always fail with ENOSYS. Some functions are actually named | |
12019 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 12020 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 12021 | choke me |
ad6254c5 AK |
12022 | #endif |
12023 | ||
12024 | int | |
12025 | main () | |
12026 | { | |
7a197a62 | 12027 | return $ac_func (); |
ad6254c5 AK |
12028 | ; |
12029 | return 0; | |
12030 | } | |
12031 | _ACEOF | |
12032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12033 | if { (ac_try="$ac_link" |
12034 | case "(($ac_try" in | |
12035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12036 | *) ac_try_echo=$ac_try;; | |
12037 | esac | |
ec6a6fbe AK |
12038 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12039 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12040 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12041 | ac_status=$? |
8a2fc586 AK |
12042 | grep -v '^ *+' conftest.er1 >conftest.err |
12043 | rm -f conftest.er1 | |
12044 | cat conftest.err >&5 | |
ec6a6fbe | 12045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12046 | (exit $ac_status); } && { |
12047 | test -z "$ac_c_werror_flag" || | |
12048 | test ! -s conftest.err | |
ec6a6fbe AK |
12049 | } && test -s conftest$ac_exeext && { |
12050 | test "$cross_compiling" = yes || | |
12051 | $as_test_x conftest$ac_exeext | |
12052 | }; then | |
ad6254c5 AK |
12053 | eval "$as_ac_var=yes" |
12054 | else | |
ec6a6fbe | 12055 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12056 | sed 's/^/| /' conftest.$ac_ext >&5 |
12057 | ||
7a197a62 | 12058 | eval "$as_ac_var=no" |
ad6254c5 | 12059 | fi |
7a197a62 | 12060 | |
ec6a6fbe | 12061 | rm -rf conftest.dSYM |
25fbec5b | 12062 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12063 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 12064 | fi |
ec6a6fbe AK |
12065 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12066 | $as_echo "$as_val"'` | |
12067 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12068 | $as_echo "$ac_res" >&6; } | |
12069 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12070 | $as_echo "$as_val"'` | |
12071 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12072 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12073 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
12074 | _ACEOF |
12075 | ||
12076 | else | |
ec6a6fbe AK |
12077 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12078 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
12079 | { (exit 1); exit 1; }; } |
12080 | fi | |
12081 | done | |
12082 | ||
12083 | fi | |
12084 | ||
12085 | if test x$HAVE_LIBDL = xyes; then | |
12086 | ||
12087 | for ac_header in dlfcn.h | |
12088 | do | |
ec6a6fbe | 12089 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12091 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12092 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12093 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12094 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12095 | fi |
ec6a6fbe AK |
12096 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12097 | $as_echo "$as_val"'` | |
12098 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12099 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
12100 | else |
12101 | # Is the header compilable? | |
ec6a6fbe AK |
12102 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12103 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12104 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12105 | /* confdefs.h. */ |
12106 | _ACEOF | |
12107 | cat confdefs.h >>conftest.$ac_ext | |
12108 | cat >>conftest.$ac_ext <<_ACEOF | |
12109 | /* end confdefs.h. */ | |
12110 | $ac_includes_default | |
12111 | #include <$ac_header> | |
12112 | _ACEOF | |
12113 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12114 | if { (ac_try="$ac_compile" |
12115 | case "(($ac_try" in | |
12116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12117 | *) ac_try_echo=$ac_try;; | |
12118 | esac | |
ec6a6fbe AK |
12119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12120 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12121 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12122 | ac_status=$? |
8a2fc586 AK |
12123 | grep -v '^ *+' conftest.er1 >conftest.err |
12124 | rm -f conftest.er1 | |
12125 | cat conftest.err >&5 | |
ec6a6fbe | 12126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12127 | (exit $ac_status); } && { |
12128 | test -z "$ac_c_werror_flag" || | |
12129 | test ! -s conftest.err | |
12130 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12131 | ac_header_compiler=yes |
12132 | else | |
ec6a6fbe | 12133 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12134 | sed 's/^/| /' conftest.$ac_ext >&5 |
12135 | ||
7a197a62 | 12136 | ac_header_compiler=no |
ad6254c5 | 12137 | fi |
7a197a62 AK |
12138 | |
12139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12140 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12141 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12142 | |
12143 | # Is the header present? | |
ec6a6fbe AK |
12144 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12145 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12146 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12147 | /* confdefs.h. */ |
12148 | _ACEOF | |
12149 | cat confdefs.h >>conftest.$ac_ext | |
12150 | cat >>conftest.$ac_ext <<_ACEOF | |
12151 | /* end confdefs.h. */ | |
12152 | #include <$ac_header> | |
12153 | _ACEOF | |
7a197a62 AK |
12154 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12155 | case "(($ac_try" in | |
12156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12157 | *) ac_try_echo=$ac_try;; | |
12158 | esac | |
ec6a6fbe AK |
12159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12160 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12161 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12162 | ac_status=$? |
12163 | grep -v '^ *+' conftest.er1 >conftest.err | |
12164 | rm -f conftest.er1 | |
12165 | cat conftest.err >&5 | |
ec6a6fbe | 12166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12167 | (exit $ac_status); } >/dev/null && { |
12168 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12169 | test ! -s conftest.err | |
12170 | }; then | |
ad6254c5 AK |
12171 | ac_header_preproc=yes |
12172 | else | |
ec6a6fbe | 12173 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12174 | sed 's/^/| /' conftest.$ac_ext >&5 |
12175 | ||
12176 | ac_header_preproc=no | |
12177 | fi | |
7a197a62 | 12178 | |
ad6254c5 | 12179 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12180 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12181 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12182 | |
12183 | # So? What about this header? | |
8a2fc586 AK |
12184 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12185 | yes:no: ) | |
ec6a6fbe AK |
12186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12187 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12189 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12190 | ac_header_preproc=yes |
ad6254c5 | 12191 | ;; |
8a2fc586 | 12192 | no:yes:* ) |
ec6a6fbe AK |
12193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12194 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12196 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12197 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12198 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12200 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12202 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12203 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12204 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12205 | |
ad6254c5 AK |
12206 | ;; |
12207 | esac | |
ec6a6fbe AK |
12208 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12209 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12210 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12211 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12212 | else |
8a2fc586 | 12213 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 12214 | fi |
ec6a6fbe AK |
12215 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12216 | $as_echo "$as_val"'` | |
12217 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12218 | $as_echo "$ac_res" >&6; } | |
80992638 | 12219 | |
8106cdd5 | 12220 | fi |
ec6a6fbe AK |
12221 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12222 | $as_echo "$as_val"'` | |
12223 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12224 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12225 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12226 | _ACEOF |
795ca3e5 AK |
12227 | |
12228 | else | |
ec6a6fbe AK |
12229 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12230 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12231 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
12232 | fi |
12233 | ||
ad6254c5 | 12234 | done |
80992638 | 12235 | |
ad6254c5 | 12236 | fi |
80992638 | 12237 | |
ad6254c5 | 12238 | if test x$INTL = xyes; then |
83912faa | 12239 | |
ad6254c5 AK |
12240 | for ac_header in libintl.h |
12241 | do | |
ec6a6fbe | 12242 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12244 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12245 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12247 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12248 | fi |
ec6a6fbe AK |
12249 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12250 | $as_echo "$as_val"'` | |
12251 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12252 | $as_echo "$ac_res" >&6; } | |
83912faa | 12253 | else |
ad6254c5 | 12254 | # Is the header compilable? |
ec6a6fbe AK |
12255 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12256 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12257 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12258 | /* confdefs.h. */ |
12259 | _ACEOF | |
12260 | cat confdefs.h >>conftest.$ac_ext | |
12261 | cat >>conftest.$ac_ext <<_ACEOF | |
12262 | /* end confdefs.h. */ | |
12263 | $ac_includes_default | |
12264 | #include <$ac_header> | |
12265 | _ACEOF | |
12266 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12267 | if { (ac_try="$ac_compile" |
12268 | case "(($ac_try" in | |
12269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12270 | *) ac_try_echo=$ac_try;; | |
12271 | esac | |
ec6a6fbe AK |
12272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12273 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12274 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12275 | ac_status=$? |
8a2fc586 AK |
12276 | grep -v '^ *+' conftest.er1 >conftest.err |
12277 | rm -f conftest.er1 | |
12278 | cat conftest.err >&5 | |
ec6a6fbe | 12279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12280 | (exit $ac_status); } && { |
12281 | test -z "$ac_c_werror_flag" || | |
12282 | test ! -s conftest.err | |
12283 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12284 | ac_header_compiler=yes |
12285 | else | |
ec6a6fbe | 12286 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12287 | sed 's/^/| /' conftest.$ac_ext >&5 |
12288 | ||
7a197a62 | 12289 | ac_header_compiler=no |
ad6254c5 | 12290 | fi |
7a197a62 AK |
12291 | |
12292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12293 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12294 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12295 | |
12296 | # Is the header present? | |
ec6a6fbe AK |
12297 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12298 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12299 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12300 | /* confdefs.h. */ |
12301 | _ACEOF | |
12302 | cat confdefs.h >>conftest.$ac_ext | |
12303 | cat >>conftest.$ac_ext <<_ACEOF | |
12304 | /* end confdefs.h. */ | |
12305 | #include <$ac_header> | |
12306 | _ACEOF | |
7a197a62 AK |
12307 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12308 | case "(($ac_try" in | |
12309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12310 | *) ac_try_echo=$ac_try;; | |
12311 | esac | |
ec6a6fbe AK |
12312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12313 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12314 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12315 | ac_status=$? |
12316 | grep -v '^ *+' conftest.er1 >conftest.err | |
12317 | rm -f conftest.er1 | |
12318 | cat conftest.err >&5 | |
ec6a6fbe | 12319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12320 | (exit $ac_status); } >/dev/null && { |
12321 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12322 | test ! -s conftest.err | |
12323 | }; then | |
ad6254c5 AK |
12324 | ac_header_preproc=yes |
12325 | else | |
ec6a6fbe | 12326 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12327 | sed 's/^/| /' conftest.$ac_ext >&5 |
12328 | ||
12329 | ac_header_preproc=no | |
12330 | fi | |
7a197a62 | 12331 | |
ad6254c5 | 12332 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12333 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12334 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12335 | |
12336 | # So? What about this header? | |
8a2fc586 AK |
12337 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12338 | yes:no: ) | |
ec6a6fbe AK |
12339 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12340 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12341 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12342 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12343 | ac_header_preproc=yes |
ad6254c5 | 12344 | ;; |
8a2fc586 | 12345 | no:yes:* ) |
ec6a6fbe AK |
12346 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12347 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12348 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12349 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12350 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12351 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12352 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12353 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12355 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12356 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12357 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12358 | |
ad6254c5 AK |
12359 | ;; |
12360 | esac | |
ec6a6fbe AK |
12361 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12362 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12364 | $as_echo_n "(cached) " >&6 |
80992638 | 12365 | else |
8a2fc586 | 12366 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 12367 | fi |
ec6a6fbe AK |
12368 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12369 | $as_echo "$as_val"'` | |
12370 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12371 | $as_echo "$ac_res" >&6; } | |
83912faa | 12372 | |
69792976 | 12373 | fi |
ec6a6fbe AK |
12374 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12375 | $as_echo "$as_val"'` | |
12376 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12377 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12378 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12379 | _ACEOF |
69792976 | 12380 | |
69792976 | 12381 | else |
ec6a6fbe AK |
12382 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12383 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12384 | { (exit 1); exit 1; }; } |
80992638 AK |
12385 | fi |
12386 | ||
ad6254c5 | 12387 | done |
69792976 | 12388 | |
ad6254c5 AK |
12389 | fi |
12390 | ||
ad6254c5 AK |
12391 | if test x$HAVE_SELINUX = xyes; then |
12392 | ||
12393 | for ac_header in selinux/selinux.h | |
12394 | do | |
ec6a6fbe | 12395 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12396 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12397 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12398 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12399 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12400 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12401 | fi |
ec6a6fbe AK |
12402 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12403 | $as_echo "$as_val"'` | |
12404 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12405 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12406 | else |
ad6254c5 | 12407 | # Is the header compilable? |
ec6a6fbe AK |
12408 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12409 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12410 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12411 | /* confdefs.h. */ |
12412 | _ACEOF | |
12413 | cat confdefs.h >>conftest.$ac_ext | |
12414 | cat >>conftest.$ac_ext <<_ACEOF | |
12415 | /* end confdefs.h. */ | |
12416 | $ac_includes_default | |
12417 | #include <$ac_header> | |
12418 | _ACEOF | |
12419 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12420 | if { (ac_try="$ac_compile" |
12421 | case "(($ac_try" in | |
12422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12423 | *) ac_try_echo=$ac_try;; | |
12424 | esac | |
ec6a6fbe AK |
12425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12426 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12427 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12428 | ac_status=$? |
8a2fc586 AK |
12429 | grep -v '^ *+' conftest.er1 >conftest.err |
12430 | rm -f conftest.er1 | |
12431 | cat conftest.err >&5 | |
ec6a6fbe | 12432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12433 | (exit $ac_status); } && { |
12434 | test -z "$ac_c_werror_flag" || | |
12435 | test ! -s conftest.err | |
12436 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12437 | ac_header_compiler=yes |
12438 | else | |
ec6a6fbe | 12439 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12440 | sed 's/^/| /' conftest.$ac_ext >&5 |
12441 | ||
7a197a62 | 12442 | ac_header_compiler=no |
ad6254c5 | 12443 | fi |
7a197a62 AK |
12444 | |
12445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12446 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12447 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12448 | |
12449 | # Is the header present? | |
ec6a6fbe AK |
12450 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12451 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12452 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12453 | /* confdefs.h. */ |
12454 | _ACEOF | |
12455 | cat confdefs.h >>conftest.$ac_ext | |
12456 | cat >>conftest.$ac_ext <<_ACEOF | |
12457 | /* end confdefs.h. */ | |
12458 | #include <$ac_header> | |
12459 | _ACEOF | |
7a197a62 AK |
12460 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12461 | case "(($ac_try" in | |
12462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12463 | *) ac_try_echo=$ac_try;; | |
12464 | esac | |
ec6a6fbe AK |
12465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12466 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12467 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12468 | ac_status=$? |
12469 | grep -v '^ *+' conftest.er1 >conftest.err | |
12470 | rm -f conftest.er1 | |
12471 | cat conftest.err >&5 | |
ec6a6fbe | 12472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12473 | (exit $ac_status); } >/dev/null && { |
12474 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12475 | test ! -s conftest.err | |
12476 | }; then | |
ad6254c5 AK |
12477 | ac_header_preproc=yes |
12478 | else | |
ec6a6fbe | 12479 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12480 | sed 's/^/| /' conftest.$ac_ext >&5 |
12481 | ||
12482 | ac_header_preproc=no | |
12483 | fi | |
7a197a62 | 12484 | |
ad6254c5 | 12485 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12486 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12487 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12488 | |
12489 | # So? What about this header? | |
8a2fc586 AK |
12490 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12491 | yes:no: ) | |
ec6a6fbe AK |
12492 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12493 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12494 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12495 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12496 | ac_header_preproc=yes |
ad6254c5 | 12497 | ;; |
8a2fc586 | 12498 | no:yes:* ) |
ec6a6fbe AK |
12499 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12500 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12501 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12502 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12503 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12504 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12505 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12506 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12507 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12508 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12509 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12510 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12511 | |
ad6254c5 AK |
12512 | ;; |
12513 | esac | |
ec6a6fbe AK |
12514 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12515 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12516 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12517 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12518 | else |
8a2fc586 | 12519 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 12520 | fi |
ec6a6fbe AK |
12521 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12522 | $as_echo "$as_val"'` | |
12523 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12524 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12525 | |
ad6254c5 | 12526 | fi |
ec6a6fbe AK |
12527 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12528 | $as_echo "$as_val"'` | |
12529 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12530 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12531 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12532 | _ACEOF |
0a62c911 | 12533 | |
0a62c911 | 12534 | else |
ec6a6fbe AK |
12535 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12536 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12537 | { (exit 1); exit 1; }; } |
80992638 AK |
12538 | fi |
12539 | ||
ad6254c5 | 12540 | done |
0a62c911 | 12541 | |
ad6254c5 | 12542 | fi |
0a62c911 | 12543 | |
a5f46f6a AK |
12544 | if test x$UDEV_SYNC = xyes; then |
12545 | ||
12546 | ||
12547 | for ac_header in sys/ipc.h sys/sem.h | |
12548 | do | |
12549 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12550 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12551 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12552 | $as_echo_n "checking for $ac_header... " >&6; } | |
12553 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12554 | $as_echo_n "(cached) " >&6 | |
12555 | fi | |
12556 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12557 | $as_echo "$as_val"'` | |
12558 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12559 | $as_echo "$ac_res" >&6; } | |
12560 | else | |
12561 | # Is the header compilable? | |
12562 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12563 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12564 | cat >conftest.$ac_ext <<_ACEOF | |
12565 | /* confdefs.h. */ | |
12566 | _ACEOF | |
12567 | cat confdefs.h >>conftest.$ac_ext | |
12568 | cat >>conftest.$ac_ext <<_ACEOF | |
12569 | /* end confdefs.h. */ | |
12570 | $ac_includes_default | |
12571 | #include <$ac_header> | |
12572 | _ACEOF | |
12573 | rm -f conftest.$ac_objext | |
12574 | if { (ac_try="$ac_compile" | |
12575 | case "(($ac_try" in | |
12576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12577 | *) ac_try_echo=$ac_try;; | |
12578 | esac | |
12579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12580 | $as_echo "$ac_try_echo") >&5 | |
12581 | (eval "$ac_compile") 2>conftest.er1 | |
12582 | ac_status=$? | |
12583 | grep -v '^ *+' conftest.er1 >conftest.err | |
12584 | rm -f conftest.er1 | |
12585 | cat conftest.err >&5 | |
12586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12587 | (exit $ac_status); } && { | |
12588 | test -z "$ac_c_werror_flag" || | |
12589 | test ! -s conftest.err | |
12590 | } && test -s conftest.$ac_objext; then | |
12591 | ac_header_compiler=yes | |
12592 | else | |
12593 | $as_echo "$as_me: failed program was:" >&5 | |
12594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12595 | ||
12596 | ac_header_compiler=no | |
12597 | fi | |
12598 | ||
12599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12600 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12601 | $as_echo "$ac_header_compiler" >&6; } | |
12602 | ||
12603 | # Is the header present? | |
12604 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12605 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | /* confdefs.h. */ | |
12608 | _ACEOF | |
12609 | cat confdefs.h >>conftest.$ac_ext | |
12610 | cat >>conftest.$ac_ext <<_ACEOF | |
12611 | /* end confdefs.h. */ | |
12612 | #include <$ac_header> | |
12613 | _ACEOF | |
12614 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12615 | case "(($ac_try" in | |
12616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12617 | *) ac_try_echo=$ac_try;; | |
12618 | esac | |
12619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12620 | $as_echo "$ac_try_echo") >&5 | |
12621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12622 | ac_status=$? | |
12623 | grep -v '^ *+' conftest.er1 >conftest.err | |
12624 | rm -f conftest.er1 | |
12625 | cat conftest.err >&5 | |
12626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12627 | (exit $ac_status); } >/dev/null && { | |
12628 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12629 | test ! -s conftest.err | |
12630 | }; then | |
12631 | ac_header_preproc=yes | |
12632 | else | |
12633 | $as_echo "$as_me: failed program was:" >&5 | |
12634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12635 | ||
12636 | ac_header_preproc=no | |
12637 | fi | |
12638 | ||
12639 | rm -f conftest.err conftest.$ac_ext | |
12640 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12641 | $as_echo "$ac_header_preproc" >&6; } | |
12642 | ||
12643 | # So? What about this header? | |
12644 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12645 | yes:no: ) | |
12646 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12647 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12648 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12649 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12650 | ac_header_preproc=yes | |
12651 | ;; | |
12652 | no:yes:* ) | |
12653 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12654 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12655 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12656 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12657 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12658 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12659 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12660 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12661 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12662 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12663 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12664 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12665 | ||
12666 | ;; | |
12667 | esac | |
12668 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12669 | $as_echo_n "checking for $ac_header... " >&6; } | |
12670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12671 | $as_echo_n "(cached) " >&6 | |
12672 | else | |
12673 | eval "$as_ac_Header=\$ac_header_preproc" | |
12674 | fi | |
12675 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12676 | $as_echo "$as_val"'` | |
12677 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12678 | $as_echo "$ac_res" >&6; } | |
12679 | ||
12680 | fi | |
12681 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12682 | $as_echo "$as_val"'` | |
12683 | if test "x$as_val" = x""yes; then | |
12684 | cat >>confdefs.h <<_ACEOF | |
12685 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12686 | _ACEOF | |
12687 | ||
12688 | else | |
12689 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
12690 | $as_echo "$as_me: error: bailing out" >&2;} | |
12691 | { (exit 1); exit 1; }; } | |
12692 | fi | |
12693 | ||
12694 | done | |
12695 | ||
12696 | fi | |
12697 | ||
a653923f AK |
12698 | ################################################################################ |
12699 | # Extract the first word of "modprobe", so it can be a program name with args. | |
12700 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
12701 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12702 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 12703 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 12704 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
12705 | else |
12706 | case $MODPROBE_CMD in | |
12707 | [\\/]* | ?:[\\/]*) | |
12708 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
12709 | ;; | |
12710 | *) | |
12711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12712 | for as_dir in $PATH | |
12713 | do | |
12714 | IFS=$as_save_IFS | |
12715 | test -z "$as_dir" && as_dir=. | |
12716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 12717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 12718 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 12719 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
12720 | break 2 |
12721 | fi | |
12722 | done | |
12723 | done | |
7a197a62 | 12724 | IFS=$as_save_IFS |
72b2cb61 AK |
12725 | |
12726 | ;; | |
12727 | esac | |
12728 | fi | |
12729 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 12730 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
12731 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
12732 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 12733 | else |
ec6a6fbe AK |
12734 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12735 | $as_echo "no" >&6; } | |
72b2cb61 AK |
12736 | fi |
12737 | ||
a653923f | 12738 | |
7a197a62 | 12739 | |
a653923f | 12740 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
12741 | |
12742 | cat >>confdefs.h <<_ACEOF | |
12743 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
12744 | _ACEOF | |
12745 | ||
a653923f AK |
12746 | fi |
12747 | ||
80992638 | 12748 | ################################################################################ |
93bd259b AK |
12749 | |
12750 | ||
12751 | if test "$BUILD_DMEVENTD" = yes; then | |
12752 | ||
12753 | # Check whether --with-dmeventd-pidfile was given. | |
12754 | if test "${with_dmeventd_pidfile+set}" = set; then | |
12755 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
12756 | #define DMEVENTD_PIDFILE "$withval" | |
12757 | _ACEOF | |
12758 | ||
12759 | else | |
12760 | cat >>confdefs.h <<_ACEOF | |
12761 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
12762 | _ACEOF | |
12763 | ||
12764 | fi | |
12765 | ||
12766 | fi | |
12767 | ||
12768 | ||
12769 | ||
12770 | if test "$BUILD_DMEVENTD" = yes; then | |
12771 | dmeventd_prefix="$exec_prefix" | |
12772 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12773 | dmeventd_prefix="$prefix" | |
12774 | fi | |
12775 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12776 | dmeventd_prefix="" | |
12777 | fi | |
12778 | ||
12779 | # Check whether --with-dmeventd-path was given. | |
12780 | if test "${with_dmeventd_path+set}" = set; then | |
12781 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
12782 | #define DMEVENTD_PATH "$withval" | |
12783 | _ACEOF | |
12784 | ||
12785 | else | |
12786 | cat >>confdefs.h <<_ACEOF | |
12787 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
12788 | _ACEOF | |
12789 | ||
12790 | fi | |
12791 | ||
12792 | fi | |
12793 | ||
12794 | ################################################################################ | |
ec6a6fbe AK |
12795 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
12796 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
12797 | |
12798 | # Check whether --with-interface was given. | |
12799 | if test "${with_interface+set}" = set; then | |
12800 | withval=$with_interface; interface="$withval" | |
12801 | else | |
12802 | interface=ioctl | |
12803 | fi | |
12804 | ||
12805 | if [ "x$interface" != xioctl ]; | |
12806 | then | |
ec6a6fbe AK |
12807 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
12808 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
12809 | { (exit 1); exit 1; }; } |
12810 | fi | |
ec6a6fbe AK |
12811 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
12812 | $as_echo "$interface" >&6; } | |
93bd259b AK |
12813 | |
12814 | ################################################################################ | |
2c44337b | 12815 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
12816 | |
12817 | cat >>confdefs.h <<_ACEOF | |
12818 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
12819 | _ACEOF | |
12820 | ||
12821 | ||
ec6a6fbe | 12822 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 12823 | |
d0191583 | 12824 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 12825 | |
ec6a6fbe | 12826 | VER=`cat VERSION` |
bf456146 | 12827 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
12828 | VER=`echo "$VER" | $AWK '{print $1}'` |
12829 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
12830 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
12831 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
12832 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
12833 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
12834 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 12835 | |
80992638 | 12836 | ################################################################################ |
fae0c576 | 12837 | |
83912faa | 12838 | |
795ca3e5 AK |
12839 | |
12840 | ||
12841 | ||
12842 | ||
12843 | ||
12844 | ||
5a52dca9 | 12845 | |
8ef2b021 | 12846 | |
199e490e | 12847 | |
69792976 AK |
12848 | |
12849 | ||
12850 | ||
d0191583 | 12851 | |
69792976 | 12852 | |
8106cdd5 AK |
12853 | |
12854 | ||
12855 | ||
12856 | ||
12857 | ||
d68a82ec | 12858 | |
036f273a | 12859 | |
7d1552c9 | 12860 | |
8106cdd5 | 12861 | |
0a62c911 | 12862 | |
8106cdd5 | 12863 | |
4a7f3eb2 | 12864 | |
4922197a AK |
12865 | |
12866 | ||
d8ac0fbc | 12867 | |
1a9ea74d | 12868 | |
8a2fc586 AK |
12869 | |
12870 | ||
d0191583 | 12871 | |
93bd259b AK |
12872 | |
12873 | ||
12874 | ||
12875 | ||
12876 | ||
d0191583 JM |
12877 | |
12878 | ||
12879 | ||
12880 | ||
12881 | ||
8a2fc586 | 12882 | |
8ce0cbda | 12883 | |
8b1a3214 | 12884 | |
ec6a6fbe AK |
12885 | |
12886 | ||
12887 | ||
12888 | ||
e2997b73 AK |
12889 | |
12890 | ||
12891 | ||
12892 | ||
12893 | ||
12894 | ||
ec6a6fbe | 12895 | |
33f732c5 | 12896 | |
66e941e8 | 12897 | |
d3c8211f | 12898 | |
7e3fe830 | 12899 | |
a5f46f6a AK |
12900 | |
12901 | ||
12902 | ||
572fefeb | 12903 | |
bf456146 | 12904 | |
68f2de6d AK |
12905 | |
12906 | ||
80992638 | 12907 | ################################################################################ |
a5f46f6a | 12908 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 12909 | |
ad6254c5 | 12910 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12911 | # This file is a shell script that caches the results of configure |
12912 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12913 | # scripts and configure runs, see configure's option --config-cache. |
12914 | # It is not useful on other systems. If it contains results you don't | |
12915 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12916 | # |
ad6254c5 AK |
12917 | # config.status only pays attention to the cache file if you give it |
12918 | # the --recheck option to rerun configure. | |
795ca3e5 | 12919 | # |
ad6254c5 AK |
12920 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12921 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12922 | # following values. | |
12923 | ||
12924 | _ACEOF | |
12925 | ||
795ca3e5 AK |
12926 | # The following way of writing the cache mishandles newlines in values, |
12927 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12928 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12929 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12930 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12931 | ( |
12932 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12933 | eval ac_val=\$$ac_var | |
12934 | case $ac_val in #( | |
12935 | *${as_nl}*) | |
12936 | case $ac_var in #( | |
ec6a6fbe AK |
12937 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
12938 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
12939 | esac |
12940 | case $ac_var in #( | |
12941 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 12942 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
12943 | *) $as_unset $ac_var ;; |
12944 | esac ;; | |
12945 | esac | |
12946 | done | |
12947 | ||
ad6254c5 | 12948 | (set) 2>&1 | |
7a197a62 AK |
12949 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12950 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12951 | # `set' does not quote correctly, so add quotes (double-quote |
12952 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12953 | sed -n \ | |
8a2fc586 AK |
12954 | "s/'/'\\\\''/g; |
12955 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12956 | ;; #( |
ad6254c5 AK |
12957 | *) |
12958 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12959 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12960 | ;; |
7a197a62 AK |
12961 | esac | |
12962 | sort | |
12963 | ) | | |
ad6254c5 | 12964 | sed ' |
7a197a62 | 12965 | /^ac_cv_env_/b end |
ad6254c5 | 12966 | t clear |
7a197a62 | 12967 | :clear |
ad6254c5 AK |
12968 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12969 | t end | |
7a197a62 AK |
12970 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12971 | :end' >>confcache | |
12972 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12973 | if test -w "$cache_file"; then | |
12974 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
12975 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12976 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12977 | cat confcache >$cache_file |
795ca3e5 | 12978 | else |
ec6a6fbe AK |
12979 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12980 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12981 | fi |
12982 | fi | |
12983 | rm -f confcache | |
12984 | ||
795ca3e5 AK |
12985 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12986 | # Let make expand exec_prefix. | |
12987 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12988 | ||
72b2cb61 | 12989 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12990 | |
12991 | ac_libobjs= | |
12992 | ac_ltlibobjs= | |
12993 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12994 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12995 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 12996 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12997 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12998 | # will be set to the directory where LIBOBJS objects are built. | |
12999 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13000 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
13001 | done |
13002 | LIBOBJS=$ac_libobjs | |
80992638 | 13003 | |
ad6254c5 AK |
13004 | LTLIBOBJS=$ac_ltlibobjs |
13005 | ||
13006 | ||
13007 | ||
13008 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 13009 | ac_write_fail=0 |
ad6254c5 AK |
13010 | ac_clean_files_save=$ac_clean_files |
13011 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
13012 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
13013 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13014 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
13015 | #! $SHELL |
13016 | # Generated by $as_me. | |
795ca3e5 | 13017 | # Run this file to recreate the current configuration. |
795ca3e5 | 13018 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
13019 | # configure, is in config.log if it exists. |
13020 | ||
13021 | debug=false | |
13022 | ac_cs_recheck=false | |
13023 | ac_cs_silent=false | |
13024 | SHELL=\${CONFIG_SHELL-$SHELL} | |
13025 | _ACEOF | |
13026 | ||
ec6a6fbe | 13027 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13028 | ## --------------------- ## |
13029 | ## M4sh Initialization. ## | |
13030 | ## --------------------- ## | |
13031 | ||
25fbec5b AK |
13032 | # Be more Bourne compatible |
13033 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
13034 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
13035 | emulate sh | |
13036 | NULLCMD=: | |
ec6a6fbe | 13037 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
13038 | # is contrary to our usage. Disable this feature. |
13039 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
13040 | setopt NO_GLOB_SUBST |
13041 | else | |
25fbec5b AK |
13042 | case `(set -o) 2>/dev/null` in |
13043 | *posix*) set -o posix ;; | |
13044 | esac | |
13045 | ||
7a197a62 | 13046 | fi |
25fbec5b AK |
13047 | |
13048 | ||
7a197a62 AK |
13049 | |
13050 | ||
13051 | # PATH needs CR | |
13052 | # Avoid depending upon Character Ranges. | |
13053 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13054 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13055 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13056 | as_cr_digits='0123456789' | |
13057 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13058 | ||
ec6a6fbe AK |
13059 | as_nl=' |
13060 | ' | |
13061 | export as_nl | |
13062 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13063 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13064 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13065 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13066 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13067 | as_echo='printf %s\n' | |
13068 | as_echo_n='printf %s' | |
13069 | else | |
13070 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13071 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13072 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 13073 | else |
ec6a6fbe AK |
13074 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
13075 | as_echo_n_body='eval | |
13076 | arg=$1; | |
13077 | case $arg in | |
13078 | *"$as_nl"*) | |
13079 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13080 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13081 | esac; | |
13082 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13083 | ' | |
13084 | export as_echo_n_body | |
13085 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 13086 | fi |
ec6a6fbe AK |
13087 | export as_echo_body |
13088 | as_echo='sh -c $as_echo_body as_echo' | |
13089 | fi | |
13090 | ||
13091 | # The user is always right. | |
13092 | if test "${PATH_SEPARATOR+set}" != set; then | |
13093 | PATH_SEPARATOR=: | |
13094 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13095 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13096 | PATH_SEPARATOR=';' | |
13097 | } | |
ad6254c5 AK |
13098 | fi |
13099 | ||
13100 | # Support unset when possible. | |
8a2fc586 | 13101 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
13102 | as_unset=unset |
13103 | else | |
13104 | as_unset=false | |
13105 | fi | |
8106cdd5 | 13106 | |
ad6254c5 | 13107 | |
7a197a62 AK |
13108 | # IFS |
13109 | # We need space, tab and new line, in precisely that order. Quoting is | |
13110 | # there to prevent editors from complaining about space-tab. | |
13111 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13112 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
13113 | IFS=" "" $as_nl" |
13114 | ||
13115 | # Find who we are. Look in the path if we contain no directory separator. | |
13116 | case $0 in | |
13117 | *[\\/]* ) as_myself=$0 ;; | |
13118 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13119 | for as_dir in $PATH | |
13120 | do | |
13121 | IFS=$as_save_IFS | |
13122 | test -z "$as_dir" && as_dir=. | |
13123 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13124 | done | |
13125 | IFS=$as_save_IFS | |
13126 | ||
13127 | ;; | |
13128 | esac | |
13129 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13130 | # in which case we are not to be found in the path. | |
13131 | if test "x$as_myself" = x; then | |
13132 | as_myself=$0 | |
13133 | fi | |
13134 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 13135 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
13136 | { (exit 1); exit 1; } |
13137 | fi | |
13138 | ||
ad6254c5 | 13139 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
13140 | for as_var in ENV MAIL MAILPATH |
13141 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
13142 | done | |
ad6254c5 AK |
13143 | PS1='$ ' |
13144 | PS2='> ' | |
13145 | PS4='+ ' | |
13146 | ||
13147 | # NLS nuisances. | |
ec6a6fbe AK |
13148 | LC_ALL=C |
13149 | export LC_ALL | |
13150 | LANGUAGE=C | |
13151 | export LANGUAGE | |
8106cdd5 | 13152 | |
ad6254c5 | 13153 | # Required to use basename. |
7a197a62 AK |
13154 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13155 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
13156 | as_expr=expr |
13157 | else | |
13158 | as_expr=false | |
13159 | fi | |
8106cdd5 | 13160 | |
7a197a62 | 13161 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
13162 | as_basename=basename |
13163 | else | |
13164 | as_basename=false | |
13165 | fi | |
13166 | ||
13167 | ||
13168 | # Name of the executable. | |
7a197a62 | 13169 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
13170 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13171 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 13172 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13173 | $as_echo X/"$0" | |
7a197a62 AK |
13174 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13175 | s//\1/ | |
13176 | q | |
13177 | } | |
13178 | /^X\/\(\/\/\)$/{ | |
13179 | s//\1/ | |
13180 | q | |
13181 | } | |
13182 | /^X\/\(\/\).*/{ | |
13183 | s//\1/ | |
13184 | q | |
13185 | } | |
13186 | s/.*/./; q'` | |
ad6254c5 | 13187 | |
7a197a62 AK |
13188 | # CDPATH. |
13189 | $as_unset CDPATH | |
ad6254c5 AK |
13190 | |
13191 | ||
ad6254c5 | 13192 | |
ad6254c5 AK |
13193 | as_lineno_1=$LINENO |
13194 | as_lineno_2=$LINENO | |
ad6254c5 | 13195 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 13196 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 13197 | |
ad6254c5 AK |
13198 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13199 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
13200 | # line-number line after each line using $LINENO; the second 'sed' |
13201 | # does the real work. The second script uses 'N' to pair each | |
13202 | # line-number line with the line containing $LINENO, and appends | |
13203 | # trailing '-' during substitution so that $LINENO is not a special | |
13204 | # case at line end. | |
ad6254c5 | 13205 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
13206 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
13207 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
13208 | sed -n ' | |
13209 | p | |
13210 | /[$]LINENO/= | |
13211 | ' <$as_myself | | |
ad6254c5 | 13212 | sed ' |
7a197a62 AK |
13213 | s/[$]LINENO.*/&-/ |
13214 | t lineno | |
13215 | b | |
13216 | :lineno | |
ad6254c5 | 13217 | N |
7a197a62 AK |
13218 | :loop |
13219 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 13220 | t loop |
7a197a62 | 13221 | s/-\n.*// |
ad6254c5 | 13222 | ' >$as_me.lineno && |
7a197a62 | 13223 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 13224 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
13225 | { (exit 1); exit 1; }; } |
13226 | ||
13227 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13228 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
13229 | # original and so on. Autoconf is especially sensitive to this). |
13230 | . "./$as_me.lineno" | |
ad6254c5 AK |
13231 | # Exit status is that of the last command. |
13232 | exit | |
13233 | } | |
13234 | ||
13235 | ||
7a197a62 AK |
13236 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13237 | as_dirname=dirname | |
13238 | else | |
13239 | as_dirname=false | |
13240 | fi | |
13241 | ||
13242 | ECHO_C= ECHO_N= ECHO_T= | |
13243 | case `echo -n x` in | |
13244 | -n*) | |
13245 | case `echo 'x\c'` in | |
13246 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13247 | *) ECHO_C='\c';; | |
13248 | esac;; | |
13249 | *) | |
13250 | ECHO_N='-n';; | |
ad6254c5 | 13251 | esac |
7a197a62 AK |
13252 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13253 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
13254 | as_expr=expr |
13255 | else | |
13256 | as_expr=false | |
13257 | fi | |
80992638 | 13258 | |
ad6254c5 | 13259 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
13260 | if test -d conf$$.dir; then |
13261 | rm -f conf$$.dir/conf$$.file | |
13262 | else | |
13263 | rm -f conf$$.dir | |
ec6a6fbe AK |
13264 | mkdir conf$$.dir 2>/dev/null |
13265 | fi | |
13266 | if (echo >conf$$.file) 2>/dev/null; then | |
13267 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13268 | as_ln_s='ln -s' | |
13269 | # ... but there are two gotchas: | |
13270 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13271 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13272 | # In both cases, we have to default to `cp -p'. | |
13273 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13274 | as_ln_s='cp -p' | |
13275 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13276 | as_ln_s=ln | |
13277 | else | |
ad6254c5 | 13278 | as_ln_s='cp -p' |
ec6a6fbe | 13279 | fi |
ad6254c5 AK |
13280 | else |
13281 | as_ln_s='cp -p' | |
13282 | fi | |
7a197a62 AK |
13283 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13284 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 13285 | |
ad6254c5 AK |
13286 | if mkdir -p . 2>/dev/null; then |
13287 | as_mkdir_p=: | |
13288 | else | |
8a2fc586 | 13289 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
13290 | as_mkdir_p=false |
13291 | fi | |
13292 | ||
25fbec5b AK |
13293 | if test -x / >/dev/null 2>&1; then |
13294 | as_test_x='test -x' | |
7a197a62 | 13295 | else |
25fbec5b AK |
13296 | if ls -dL / >/dev/null 2>&1; then |
13297 | as_ls_L_option=L | |
13298 | else | |
13299 | as_ls_L_option= | |
13300 | fi | |
13301 | as_test_x=' | |
13302 | eval sh -c '\'' | |
13303 | if test -d "$1"; then | |
ec6a6fbe | 13304 | test -d "$1/."; |
25fbec5b AK |
13305 | else |
13306 | case $1 in | |
ec6a6fbe | 13307 | -*)set "./$1";; |
25fbec5b AK |
13308 | esac; |
13309 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
13310 | ???[sx]*):;;*)false;;esac;fi | |
13311 | '\'' sh | |
13312 | ' | |
7a197a62 | 13313 | fi |
25fbec5b | 13314 | as_executable_p=$as_test_x |
ad6254c5 AK |
13315 | |
13316 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 13317 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13318 | |
13319 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 13320 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13321 | |
13322 | ||
ad6254c5 AK |
13323 | exec 6>&1 |
13324 | ||
7a197a62 | 13325 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 13326 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
13327 | # values after options handling. |
13328 | ac_log=" | |
ad6254c5 | 13329 | This file was extended by $as_me, which was |
ec6a6fbe | 13330 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
13331 | |
13332 | CONFIG_FILES = $CONFIG_FILES | |
13333 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13334 | CONFIG_LINKS = $CONFIG_LINKS | |
13335 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13336 | $ $0 $@ | |
13337 | ||
7a197a62 AK |
13338 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13339 | " | |
13340 | ||
ad6254c5 AK |
13341 | _ACEOF |
13342 | ||
ec6a6fbe AK |
13343 | case $ac_config_files in *" |
13344 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13345 | esac | |
13346 | ||
13347 | case $ac_config_headers in *" | |
13348 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13349 | esac | |
13350 | ||
13351 | ||
13352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 13353 | # Files that config.status was made for. |
68f2de6d AK |
13354 | config_files="$ac_config_files" |
13355 | config_headers="$ac_config_headers" | |
ad6254c5 | 13356 | |
7a197a62 | 13357 | _ACEOF |
ad6254c5 | 13358 | |
ec6a6fbe | 13359 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13360 | ac_cs_usage="\ |
13361 | \`$as_me' instantiates files from templates according to the | |
13362 | current configuration. | |
13363 | ||
ec6a6fbe | 13364 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
13365 | |
13366 | -h, --help print this help, then exit | |
25fbec5b | 13367 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
13368 | -q, --quiet, --silent |
13369 | do not print progress messages | |
ad6254c5 AK |
13370 | -d, --debug don't remove temporary files |
13371 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
13372 | --file=FILE[:TEMPLATE] |
13373 | instantiate the configuration file FILE | |
13374 | --header=FILE[:TEMPLATE] | |
13375 | instantiate the configuration header FILE | |
ad6254c5 AK |
13376 | |
13377 | Configuration files: | |
13378 | $config_files | |
13379 | ||
72b2cb61 AK |
13380 | Configuration headers: |
13381 | $config_headers | |
13382 | ||
ad6254c5 | 13383 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 13384 | |
7a197a62 | 13385 | _ACEOF |
ec6a6fbe | 13386 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13387 | ac_cs_version="\\ |
13388 | config.status | |
ec6a6fbe AK |
13389 | configured by $0, generated by GNU Autoconf 2.63, |
13390 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 13391 | |
ec6a6fbe | 13392 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
13393 | This config.status script is free software; the Free Software Foundation |
13394 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
13395 | |
13396 | ac_pwd='$ac_pwd' | |
13397 | srcdir='$srcdir' | |
13398 | INSTALL='$INSTALL' | |
fddafd51 | 13399 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
13400 | AWK='$AWK' |
13401 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
13402 | _ACEOF |
13403 | ||
ec6a6fbe AK |
13404 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13405 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
13406 | ac_need_defaults=: |
13407 | while test $# != 0 | |
13408 | do | |
13409 | case $1 in | |
13410 | --*=*) | |
7a197a62 AK |
13411 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13412 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
13413 | ac_shift=: |
13414 | ;; | |
7a197a62 | 13415 | *) |
ad6254c5 AK |
13416 | ac_option=$1 |
13417 | ac_optarg=$2 | |
13418 | ac_shift=shift | |
13419 | ;; | |
ad6254c5 AK |
13420 | esac |
13421 | ||
13422 | case $ac_option in | |
13423 | # Handling of the options. | |
ad6254c5 AK |
13424 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13425 | ac_cs_recheck=: ;; | |
7a197a62 | 13426 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 13427 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 13428 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
13429 | debug=: ;; |
13430 | --file | --fil | --fi | --f ) | |
13431 | $ac_shift | |
ec6a6fbe AK |
13432 | case $ac_optarg in |
13433 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13434 | esac | |
13435 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
13436 | ac_need_defaults=false;; |
13437 | --header | --heade | --head | --hea ) | |
13438 | $ac_shift | |
ec6a6fbe AK |
13439 | case $ac_optarg in |
13440 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13441 | esac | |
13442 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 13443 | ac_need_defaults=false;; |
7a197a62 AK |
13444 | --he | --h) |
13445 | # Conflict between --help and --header | |
ec6a6fbe | 13446 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
13447 | Try \`$0 --help' for more information." >&2 |
13448 | { (exit 1); exit 1; }; };; | |
13449 | --help | --hel | -h ) | |
ec6a6fbe | 13450 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
13451 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13452 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13453 | ac_cs_silent=: ;; | |
13454 | ||
13455 | # This is an error. | |
ec6a6fbe | 13456 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 13457 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
13458 | { (exit 1); exit 1; }; } ;; |
13459 | ||
7a197a62 AK |
13460 | *) ac_config_targets="$ac_config_targets $1" |
13461 | ac_need_defaults=false ;; | |
ad6254c5 AK |
13462 | |
13463 | esac | |
13464 | shift | |
13465 | done | |
13466 | ||
13467 | ac_configure_extra_args= | |
13468 | ||
13469 | if $ac_cs_silent; then | |
13470 | exec 6>/dev/null | |
13471 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13472 | fi | |
13473 | ||
13474 | _ACEOF | |
ec6a6fbe | 13475 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 13476 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
13477 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13478 | shift | |
13479 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13480 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 13481 | export CONFIG_SHELL |
ec6a6fbe | 13482 | exec "\$@" |
ad6254c5 AK |
13483 | fi |
13484 | ||
13485 | _ACEOF | |
ec6a6fbe | 13486 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13487 | exec 5>>config.log |
13488 | { | |
13489 | echo | |
13490 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13491 | ## Running $as_me. ## | |
13492 | _ASBOX | |
ec6a6fbe | 13493 | $as_echo "$ac_log" |
7a197a62 | 13494 | } >&5 |
ad6254c5 | 13495 | |
7a197a62 | 13496 | _ACEOF |
ec6a6fbe | 13497 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 13498 | _ACEOF |
ad6254c5 | 13499 | |
ec6a6fbe | 13500 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13501 | |
13502 | # Handling of arguments. | |
ad6254c5 AK |
13503 | for ac_config_target in $ac_config_targets |
13504 | do | |
7a197a62 AK |
13505 | case $ac_config_target in |
13506 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
13507 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13508 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
13509 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
13510 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
13511 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
13512 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 13513 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
13514 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
13515 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 13516 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
13517 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
13518 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
13519 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
13520 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
13521 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
13522 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 13523 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 13524 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
13525 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
13526 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 13527 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 13528 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
13529 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
13530 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 13531 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 13532 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 13533 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 13534 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 13535 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 13536 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 13537 | |
ec6a6fbe AK |
13538 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13539 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 13540 | { (exit 1); exit 1; }; };; |
80992638 | 13541 | esac |
ad6254c5 AK |
13542 | done |
13543 | ||
7a197a62 | 13544 | |
ad6254c5 AK |
13545 | # If the user did not use the arguments to specify the items to instantiate, |
13546 | # then the envvar interface is used. Set only those that are not. | |
13547 | # We use the long form for the default assignment because of an extremely | |
13548 | # bizarre bug on SunOS 4.1.3. | |
13549 | if $ac_need_defaults; then | |
13550 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 13551 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
13552 | fi |
13553 | ||
13554 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 13555 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 13556 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
13557 | # Hook for its removal unless debugging. |
13558 | # Note that there is a small window in which the directory will not be cleaned: | |
13559 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
13560 | $debug || |
13561 | { | |
7a197a62 AK |
13562 | tmp= |
13563 | trap 'exit_status=$? | |
13564 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13565 | ' 0 | |
ad6254c5 AK |
13566 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13567 | } | |
ad6254c5 AK |
13568 | # Create a (secure) tmp directory for tmp files. |
13569 | ||
13570 | { | |
7a197a62 | 13571 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
13572 | test -n "$tmp" && test -d "$tmp" |
13573 | } || | |
13574 | { | |
7a197a62 AK |
13575 | tmp=./conf$$-$RANDOM |
13576 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
13577 | } || |
13578 | { | |
ec6a6fbe | 13579 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
13580 | { (exit 1); exit 1; } |
13581 | } | |
13582 | ||
ec6a6fbe AK |
13583 | # Set up the scripts for CONFIG_FILES section. |
13584 | # No need to generate them if there are no CONFIG_FILES. | |
13585 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 13586 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 13587 | |
68f2de6d | 13588 | |
ec6a6fbe AK |
13589 | ac_cr='\r' |
13590 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13591 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13592 | ac_cs_awk_cr='\\r' | |
13593 | else | |
13594 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 13595 | fi |
7a197a62 | 13596 | |
ec6a6fbe | 13597 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 13598 | _ACEOF |
7a197a62 | 13599 | |
8106cdd5 | 13600 | |
ec6a6fbe AK |
13601 | { |
13602 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13603 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13604 | echo "_ACEOF" | |
13605 | } >conf$$subs.sh || | |
13606 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13607 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13608 | { (exit 1); exit 1; }; } | |
13609 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
13610 | ac_delim='%!_!# ' |
13611 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
13612 | . ./conf$$subs.sh || |
13613 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13614 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13615 | { (exit 1); exit 1; }; } | |
13616 | ||
13617 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13618 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
13619 | break |
13620 | elif $ac_last_try; then | |
ec6a6fbe AK |
13621 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13622 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
13623 | { (exit 1); exit 1; }; } |
13624 | else | |
13625 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13626 | fi | |
13627 | done | |
ec6a6fbe AK |
13628 | rm -f conf$$subs.sh |
13629 | ||
13630 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13631 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13632 | _ACEOF | |
13633 | sed -n ' | |
13634 | h | |
13635 | s/^/S["/; s/!.*/"]=/ | |
13636 | p | |
13637 | g | |
13638 | s/^[^!]*!// | |
13639 | :repl | |
13640 | t repl | |
13641 | s/'"$ac_delim"'$// | |
13642 | t delim | |
13643 | :nl | |
13644 | h | |
13645 | s/\(.\{148\}\).*/\1/ | |
13646 | t more1 | |
13647 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13648 | p | |
13649 | n | |
13650 | b repl | |
13651 | :more1 | |
13652 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13653 | p | |
13654 | g | |
13655 | s/.\{148\}// | |
13656 | t nl | |
13657 | :delim | |
13658 | h | |
13659 | s/\(.\{148\}\).*/\1/ | |
13660 | t more2 | |
13661 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13662 | p | |
13663 | b | |
13664 | :more2 | |
13665 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13666 | p | |
13667 | g | |
13668 | s/.\{148\}// | |
13669 | t delim | |
13670 | ' <conf$$subs.awk | sed ' | |
13671 | /^[^""]/{ | |
13672 | N | |
13673 | s/\n// | |
13674 | } | |
13675 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13676 | rm -f conf$$subs.awk | |
13677 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13678 | _ACAWK | |
13679 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13680 | for (key in S) S_is_set[key] = 1 | |
13681 | FS = "\a" | |
7a197a62 | 13682 | |
ec6a6fbe AK |
13683 | } |
13684 | { | |
13685 | line = $ 0 | |
13686 | nfields = split(line, field, "@") | |
13687 | substed = 0 | |
13688 | len = length(field[1]) | |
13689 | for (i = 2; i < nfields; i++) { | |
13690 | key = field[i] | |
13691 | keylen = length(key) | |
13692 | if (S_is_set[key]) { | |
13693 | value = S[key] | |
13694 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13695 | len += length(value) + length(field[++i]) | |
13696 | substed = 1 | |
13697 | } else | |
13698 | len += 1 + keylen | |
13699 | } | |
13700 | ||
13701 | print line | |
13702 | } | |
fddafd51 | 13703 | |
ec6a6fbe | 13704 | _ACAWK |
1995c9ff | 13705 | _ACEOF |
ec6a6fbe AK |
13706 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13707 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13708 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13709 | else | |
13710 | cat | |
13711 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13712 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
13713 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
13714 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13715 | _ACEOF |
13716 | ||
7a197a62 AK |
13717 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13718 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13719 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13720 | # (actually we leave an empty line to preserve line numbers). | |
13721 | if test "x$srcdir" = x.; then | |
13722 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13723 | s/:*\$(srcdir):*/:/ | |
13724 | s/:*\${srcdir}:*/:/ | |
13725 | s/:*@srcdir@:*/:/ | |
13726 | s/^\([^=]*=[ ]*\):*/\1/ | |
13727 | s/:*$// | |
13728 | s/^[^=]*=[ ]*$// | |
13729 | }' | |
13730 | fi | |
13731 | ||
ec6a6fbe | 13732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13733 | fi # test -n "$CONFIG_FILES" |
13734 | ||
ec6a6fbe AK |
13735 | # Set up the scripts for CONFIG_HEADERS section. |
13736 | # No need to generate them if there are no CONFIG_HEADERS. | |
13737 | # This happens for instance with `./config.status Makefile'. | |
13738 | if test -n "$CONFIG_HEADERS"; then | |
13739 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13740 | BEGIN { | |
13741 | _ACEOF | |
13742 | ||
13743 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13744 | # here-document in config.status, that substitutes the proper values into | |
13745 | # config.h.in to produce config.h. | |
13746 | ||
13747 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13748 | # handling of long lines. | |
13749 | ac_delim='%!_!# ' | |
13750 | for ac_last_try in false false :; do | |
13751 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13752 | if test -z "$ac_t"; then | |
13753 | break | |
13754 | elif $ac_last_try; then | |
13755 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
13756 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
13757 | { (exit 1); exit 1; }; } | |
13758 | else | |
13759 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13760 | fi | |
13761 | done | |
13762 | ||
13763 | # For the awk script, D is an array of macro values keyed by name, | |
13764 | # likewise P contains macro parameters if any. Preserve backslash | |
13765 | # newline sequences. | |
13766 | ||
13767 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13768 | sed -n ' | |
13769 | s/.\{148\}/&'"$ac_delim"'/g | |
13770 | t rset | |
13771 | :rset | |
13772 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13773 | t def | |
13774 | d | |
13775 | :def | |
13776 | s/\\$// | |
13777 | t bsnl | |
13778 | s/["\\]/\\&/g | |
13779 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13780 | D["\1"]=" \3"/p | |
13781 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13782 | d | |
13783 | :bsnl | |
13784 | s/["\\]/\\&/g | |
13785 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13786 | D["\1"]=" \3\\\\\\n"\\/p | |
13787 | t cont | |
13788 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13789 | t cont | |
13790 | d | |
13791 | :cont | |
13792 | n | |
13793 | s/.\{148\}/&'"$ac_delim"'/g | |
13794 | t clear | |
13795 | :clear | |
13796 | s/\\$// | |
13797 | t bsnlc | |
13798 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13799 | d | |
13800 | :bsnlc | |
13801 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13802 | b cont | |
13803 | ' <confdefs.h | sed ' | |
13804 | s/'"$ac_delim"'/"\\\ | |
13805 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13806 | ||
13807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13808 | for (key in D) D_is_set[key] = 1 | |
13809 | FS = "\a" | |
13810 | } | |
13811 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13812 | line = \$ 0 | |
13813 | split(line, arg, " ") | |
13814 | if (arg[1] == "#") { | |
13815 | defundef = arg[2] | |
13816 | mac1 = arg[3] | |
13817 | } else { | |
13818 | defundef = substr(arg[1], 2) | |
13819 | mac1 = arg[2] | |
13820 | } | |
13821 | split(mac1, mac2, "(") #) | |
13822 | macro = mac2[1] | |
13823 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13824 | if (D_is_set[macro]) { | |
13825 | # Preserve the white space surrounding the "#". | |
13826 | print prefix "define", macro P[macro] D[macro] | |
13827 | next | |
13828 | } else { | |
13829 | # Replace #undef with comments. This is necessary, for example, | |
13830 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13831 | # on some systems where configure will not decide to define it. | |
13832 | if (defundef == "undef") { | |
13833 | print "/*", prefix defundef, macro, "*/" | |
13834 | next | |
13835 | } | |
13836 | } | |
13837 | } | |
13838 | { print } | |
13839 | _ACAWK | |
13840 | _ACEOF | |
13841 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13842 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
13843 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
13844 | { (exit 1); exit 1; }; } | |
13845 | fi # test -n "$CONFIG_HEADERS" | |
13846 | ||
7a197a62 | 13847 | |
ec6a6fbe AK |
13848 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
13849 | shift | |
13850 | for ac_tag | |
7a197a62 AK |
13851 | do |
13852 | case $ac_tag in | |
13853 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13854 | esac | |
13855 | case $ac_mode$ac_tag in | |
13856 | :[FHL]*:*);; | |
ec6a6fbe AK |
13857 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
13858 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
13859 | { (exit 1); exit 1; }; };; |
13860 | :[FH]-) ac_tag=-:-;; | |
13861 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13862 | esac | |
13863 | ac_save_IFS=$IFS | |
13864 | IFS=: | |
13865 | set x $ac_tag | |
13866 | IFS=$ac_save_IFS | |
13867 | shift | |
13868 | ac_file=$1 | |
13869 | shift | |
13870 | ||
13871 | case $ac_mode in | |
13872 | :L) ac_source=$1;; | |
13873 | :[FH]) | |
13874 | ac_file_inputs= | |
13875 | for ac_f | |
13876 | do | |
13877 | case $ac_f in | |
13878 | -) ac_f="$tmp/stdin";; | |
13879 | *) # Look for the file first in the build tree, then in the source tree | |
13880 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13881 | # because $ac_f cannot contain `:'. | |
13882 | test -f "$ac_f" || | |
13883 | case $ac_f in | |
13884 | [\\/$]*) false;; | |
13885 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13886 | esac || | |
ec6a6fbe AK |
13887 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
13888 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
13889 | { (exit 1); exit 1; }; };; |
13890 | esac | |
ec6a6fbe AK |
13891 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
13892 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
13893 | done |
13894 | ||
13895 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13896 | # use $as_me), people would be surprised to read: | |
13897 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
13898 | configure_input='Generated from '` |
13899 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13900 | `' by configure.' | |
7a197a62 AK |
13901 | if test x"$ac_file" != x-; then |
13902 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
13903 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
13904 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 13905 | fi |
ec6a6fbe AK |
13906 | # Neutralize special characters interpreted by sed in replacement strings. |
13907 | case $configure_input in #( | |
13908 | *\&* | *\|* | *\\* ) | |
13909 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13910 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13911 | *) ac_sed_conf_input=$configure_input;; | |
13912 | esac | |
7a197a62 AK |
13913 | |
13914 | case $ac_tag in | |
ec6a6fbe AK |
13915 | *:-:* | *:-) cat >"$tmp/stdin" \ |
13916 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13917 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13918 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
13919 | esac |
13920 | ;; | |
80992638 | 13921 | esac |
8106cdd5 | 13922 | |
7a197a62 | 13923 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 13924 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13925 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13926 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 13927 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13928 | $as_echo X"$ac_file" | |
7a197a62 AK |
13929 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13930 | s//\1/ | |
13931 | q | |
13932 | } | |
13933 | /^X\(\/\/\)[^/].*/{ | |
13934 | s//\1/ | |
13935 | q | |
13936 | } | |
13937 | /^X\(\/\/\)$/{ | |
13938 | s//\1/ | |
13939 | q | |
13940 | } | |
13941 | /^X\(\/\).*/{ | |
13942 | s//\1/ | |
13943 | q | |
13944 | } | |
13945 | s/.*/./; q'` | |
13946 | { as_dir="$ac_dir" | |
13947 | case $as_dir in #( | |
13948 | -*) as_dir=./$as_dir;; | |
13949 | esac | |
13950 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13951 | as_dirs= |
7a197a62 AK |
13952 | while :; do |
13953 | case $as_dir in #( | |
ec6a6fbe | 13954 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
13955 | *) as_qdir=$as_dir;; |
13956 | esac | |
13957 | as_dirs="'$as_qdir' $as_dirs" | |
13958 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13959 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13960 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13961 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13962 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13963 | $as_echo X"$as_dir" | |
7a197a62 AK |
13964 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13965 | s//\1/ | |
13966 | q | |
13967 | } | |
13968 | /^X\(\/\/\)[^/].*/{ | |
13969 | s//\1/ | |
13970 | q | |
13971 | } | |
13972 | /^X\(\/\/\)$/{ | |
13973 | s//\1/ | |
13974 | q | |
13975 | } | |
13976 | /^X\(\/\).*/{ | |
13977 | s//\1/ | |
13978 | q | |
13979 | } | |
13980 | s/.*/./; q'` | |
13981 | test -d "$as_dir" && break | |
ad6254c5 | 13982 | done |
7a197a62 | 13983 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
13984 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13985 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13986 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13987 | ac_builddir=. |
13988 | ||
7a197a62 AK |
13989 | case "$ac_dir" in |
13990 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13991 | *) | |
ec6a6fbe | 13992 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 13993 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 13994 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
13995 | case $ac_top_builddir_sub in |
13996 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13997 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13998 | esac ;; | |
13999 | esac | |
14000 | ac_abs_top_builddir=$ac_pwd | |
14001 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14002 | # for backward compatibility: | |
14003 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
14004 | |
14005 | case $srcdir in | |
7a197a62 | 14006 | .) # We are building in place. |
ad6254c5 | 14007 | ac_srcdir=. |
7a197a62 AK |
14008 | ac_top_srcdir=$ac_top_builddir_sub |
14009 | ac_abs_top_srcdir=$ac_pwd ;; | |
14010 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 14011 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
14012 | ac_top_srcdir=$srcdir |
14013 | ac_abs_top_srcdir=$srcdir ;; | |
14014 | *) # Relative name. | |
14015 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14016 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14017 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 14018 | esac |
7a197a62 | 14019 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 14020 | |
ad6254c5 | 14021 | |
7a197a62 AK |
14022 | case $ac_mode in |
14023 | :F) | |
14024 | # | |
14025 | # CONFIG_FILE | |
14026 | # | |
ad6254c5 AK |
14027 | |
14028 | case $INSTALL in | |
14029 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 14030 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 14031 | esac |
fddafd51 ZK |
14032 | ac_MKDIR_P=$MKDIR_P |
14033 | case $MKDIR_P in | |
14034 | [\\/$]* | ?:[\\/]* ) ;; | |
14035 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14036 | esac | |
7a197a62 | 14037 | _ACEOF |
795ca3e5 | 14038 | |
ec6a6fbe | 14039 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
14040 | # If the template does not know about datarootdir, expand it. |
14041 | # FIXME: This hack should be removed a few years after 2.60. | |
14042 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
14043 | ||
ec6a6fbe AK |
14044 | ac_sed_dataroot=' |
14045 | /datarootdir/ { | |
7a197a62 AK |
14046 | p |
14047 | q | |
14048 | } | |
14049 | /@datadir@/p | |
14050 | /@docdir@/p | |
14051 | /@infodir@/p | |
14052 | /@localedir@/p | |
14053 | /@mandir@/p | |
ec6a6fbe AK |
14054 | ' |
14055 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
14056 | *datarootdir*) ac_datarootdir_seen=yes;; |
14057 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
14058 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14059 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 14060 | _ACEOF |
ec6a6fbe | 14061 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
14062 | ac_datarootdir_hack=' |
14063 | s&@datadir@&$datadir&g | |
14064 | s&@docdir@&$docdir&g | |
14065 | s&@infodir@&$infodir&g | |
14066 | s&@localedir@&$localedir&g | |
14067 | s&@mandir@&$mandir&g | |
14068 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14069 | esac | |
14070 | _ACEOF | |
14071 | ||
14072 | # Neutralize VPATH when `$srcdir' = `.'. | |
14073 | # Shell code in configure.ac might set extrasub. | |
14074 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
14075 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14076 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
14077 | $extrasub |
14078 | _ACEOF | |
ec6a6fbe | 14079 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
14080 | :t |
14081 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 14082 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 14083 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 14084 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
14085 | s&@srcdir@&$ac_srcdir&;t t |
14086 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14087 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14088 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14089 | s&@builddir@&$ac_builddir&;t t | |
14090 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14091 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14092 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 14093 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 14094 | $ac_datarootdir_hack |
ec6a6fbe AK |
14095 | " |
14096 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
14097 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14098 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14099 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
14100 | |
14101 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
14102 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14103 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 14104 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 14105 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 14106 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
14107 | which seems to be undefined. Please make sure it is defined." >&2;} |
14108 | ||
14109 | rm -f "$tmp/stdin" | |
72b2cb61 | 14110 | case $ac_file in |
ec6a6fbe AK |
14111 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
14112 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
14113 | esac \ | |
14114 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14115 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14116 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
14117 | ;; |
14118 | :H) | |
14119 | # | |
14120 | # CONFIG_HEADER | |
14121 | # | |
72b2cb61 | 14122 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
14123 | { |
14124 | $as_echo "/* $configure_input */" \ | |
14125 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14126 | } >"$tmp/config.h" \ | |
14127 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14128 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14129 | { (exit 1); exit 1; }; } | |
14130 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
14131 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
14132 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 14133 | else |
ec6a6fbe AK |
14134 | rm -f "$ac_file" |
14135 | mv "$tmp/config.h" "$ac_file" \ | |
14136 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14137 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14138 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
14139 | fi |
14140 | else | |
ec6a6fbe AK |
14141 | $as_echo "/* $configure_input */" \ |
14142 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
14143 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
14144 | $as_echo "$as_me: error: could not create -" >&2;} | |
14145 | { (exit 1); exit 1; }; } | |
72b2cb61 | 14146 | fi |
7a197a62 AK |
14147 | ;; |
14148 | ||
14149 | ||
14150 | esac | |
14151 | ||
14152 | done # for ac_tag | |
795ca3e5 | 14153 | |
795ca3e5 | 14154 | |
ad6254c5 AK |
14155 | { (exit 0); exit 0; } |
14156 | _ACEOF | |
795ca3e5 | 14157 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
14158 | ac_clean_files=$ac_clean_files_save |
14159 | ||
ec6a6fbe AK |
14160 | test $ac_write_fail = 0 || |
14161 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
14162 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
14163 | { (exit 1); exit 1; }; } | |
14164 | ||
ad6254c5 AK |
14165 | |
14166 | # configure is writing to config.log, and then calls config.status. | |
14167 | # config.status does its own redirection, appending to config.log. | |
14168 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14169 | # by configure, so config.status won't be able to write to it; its | |
14170 | # output is simply discarded. So we exec the FD to /dev/null, | |
14171 | # effectively closing config.log, so it can be properly (re)opened and | |
14172 | # appended to by config.status. When coming back to configure, we | |
14173 | # need to make the FD available again. | |
14174 | if test "$no_create" != yes; then | |
14175 | ac_cs_success=: | |
14176 | ac_config_status_args= | |
14177 | test "$silent" = yes && | |
14178 | ac_config_status_args="$ac_config_status_args --quiet" | |
14179 | exec 5>/dev/null | |
14180 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14181 | exec 5>>config.log | |
14182 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14183 | # would make configure fail if this is the last instruction. | |
14184 | $ac_cs_success || { (exit 1); exit 1; } | |
14185 | fi | |
ec6a6fbe AK |
14186 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
14187 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14188 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
14189 | fi | |
795ca3e5 | 14190 | |
2dc95e1c AK |
14191 | |
14192 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
14193 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
14194 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 14195 | fi |