]>
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 AK |
641 | usrlibdir |
642 | tmpdir | |
643 | kernelvsn | |
644 | missingkernel | |
645 | kerneldir | |
646 | interface | |
647 | LIB_PTHREAD | |
648 | STATIC_LINK | |
649 | STATICDIR | |
650 | SNAPSHOTS | |
651 | POOL | |
652 | PKGCONFIG | |
653 | OWNER | |
654 | MIRRORS | |
655 | LVM_RELEASE_DATE | |
656 | LVM_RELEASE | |
657 | LVM_PATCHLEVEL | |
658 | LVM_MINOR | |
659 | LVM_MAJOR | |
660 | LVM_VERSION | |
661 | CONFDIR | |
662 | LVM1_FALLBACK | |
663 | LVM1 | |
664 | LOCALEDIR | |
665 | LIB_SUFFIX | |
666 | LDDEPS | |
667 | JOBS | |
668 | INTL_PACKAGE | |
669 | INTL | |
670 | HAVE_SELINUX | |
671 | HAVE_REALTIME | |
672 | HAVE_LIBDL | |
673 | GROUP | |
674 | FSADM | |
675 | DM_LIB_PATCHLEVEL | |
676 | DM_LIB_VERSION | |
677 | DM_IOCTLS | |
678 | DM_DEVICE_UID | |
679 | DM_DEVICE_MODE | |
680 | DM_DEVICE_GID | |
681 | DM_COMPAT | |
682 | DMEVENTD | |
683 | DEVMAPPER | |
684 | DEBUG | |
685 | COPTIMISE_FLAG | |
686 | CMDLIB | |
687 | CLVMD | |
688 | CLUSTER | |
689 | CLDWHOLEARCHIVE | |
690 | CLDNOWHOLEARCHIVE | |
691 | CLDFLAGS | |
692 | BUILD_DMEVENTD | |
693 | MODPROBE_CMD | |
694 | MSGFMT | |
695 | LVM2CMD_LIB | |
696 | GENHTML | |
697 | LCOV | |
698 | POW_LIB | |
699 | LIBOBJS | |
700 | ALLOCA | |
701 | CSCOPE_CMD | |
702 | CFLOW_CMD | |
703 | RANLIB | |
704 | MKDIR_P | |
705 | SET_MAKE | |
706 | LN_S | |
707 | INSTALL_DATA | |
708 | INSTALL_SCRIPT | |
709 | INSTALL_PROGRAM | |
710 | EGREP | |
711 | GREP | |
712 | CPP | |
713 | OBJEXT | |
714 | EXEEXT | |
715 | ac_ct_CC | |
716 | CPPFLAGS | |
717 | LDFLAGS | |
718 | CFLAGS | |
719 | CC | |
720 | AWK | |
721 | SED | |
722 | target_os | |
723 | target_vendor | |
724 | target_cpu | |
725 | target | |
726 | host_os | |
727 | host_vendor | |
728 | host_cpu | |
729 | host | |
730 | build_os | |
731 | build_vendor | |
732 | build_cpu | |
733 | build | |
734 | target_alias | |
735 | host_alias | |
736 | build_alias | |
737 | LIBS | |
738 | ECHO_T | |
739 | ECHO_N | |
740 | ECHO_C | |
741 | DEFS | |
742 | mandir | |
743 | localedir | |
744 | libdir | |
745 | psdir | |
746 | pdfdir | |
747 | dvidir | |
748 | htmldir | |
749 | infodir | |
750 | docdir | |
751 | oldincludedir | |
752 | includedir | |
753 | localstatedir | |
754 | sharedstatedir | |
755 | sysconfdir | |
756 | datadir | |
757 | datarootdir | |
758 | libexecdir | |
759 | sbindir | |
760 | bindir | |
761 | program_transform_name | |
762 | prefix | |
763 | exec_prefix | |
764 | PACKAGE_BUGREPORT | |
765 | PACKAGE_STRING | |
766 | PACKAGE_VERSION | |
767 | PACKAGE_TARNAME | |
768 | PACKAGE_NAME | |
769 | PATH_SEPARATOR | |
770 | SHELL' | |
ad6254c5 | 771 | ac_subst_files='' |
ec6a6fbe AK |
772 | ac_user_opts=' |
773 | enable_option_checking | |
774 | enable_static_link | |
775 | with_user | |
776 | with_group | |
777 | with_device_uid | |
778 | with_device_gid | |
779 | with_device_mode | |
780 | enable_lvm1_fallback | |
781 | with_lvm1 | |
782 | with_pool | |
783 | with_cluster | |
784 | with_snapshots | |
785 | with_mirrors | |
786 | enable_readline | |
787 | enable_realtime | |
788 | with_clvmd | |
789 | enable_debug | |
790 | with_optimisation | |
791 | enable_profiling | |
792 | enable_devmapper | |
793 | enable_compat | |
794 | enable_ioctl | |
795 | enable_o_direct | |
796 | enable_cmdlib | |
797 | enable_pkgconfig | |
798 | enable_fsadm | |
799 | enable_dmeventd | |
800 | enable_selinux | |
801 | enable_nls | |
802 | with_localedir | |
803 | with_confdir | |
804 | with_staticdir | |
805 | with_usrlibdir | |
806 | with_usrsbindir | |
807 | with_dmeventd_pidfile | |
808 | with_dmeventd_path | |
809 | with_interface | |
810 | ' | |
7a197a62 AK |
811 | ac_precious_vars='build_alias |
812 | host_alias | |
813 | target_alias | |
814 | CC | |
815 | CFLAGS | |
816 | LDFLAGS | |
25fbec5b | 817 | LIBS |
7a197a62 AK |
818 | CPPFLAGS |
819 | CPP' | |
820 | ||
795ca3e5 AK |
821 | |
822 | # Initialize some variables set by options. | |
ad6254c5 AK |
823 | ac_init_help= |
824 | ac_init_version=false | |
ec6a6fbe AK |
825 | ac_unrecognized_opts= |
826 | ac_unrecognized_sep= | |
795ca3e5 AK |
827 | # The variables have the same names as the options, with |
828 | # dashes changed to underlines. | |
ad6254c5 | 829 | cache_file=/dev/null |
795ca3e5 | 830 | exec_prefix=NONE |
795ca3e5 | 831 | no_create= |
795ca3e5 AK |
832 | no_recursion= |
833 | prefix=NONE | |
834 | program_prefix=NONE | |
835 | program_suffix=NONE | |
836 | program_transform_name=s,x,x, | |
837 | silent= | |
838 | site= | |
839 | srcdir= | |
795ca3e5 AK |
840 | verbose= |
841 | x_includes=NONE | |
842 | x_libraries=NONE | |
ad6254c5 AK |
843 | |
844 | # Installation directory options. | |
845 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
846 | # and all the variables that are supposed to be based on exec_prefix | |
847 | # by default will actually change. | |
848 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 849 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
850 | bindir='${exec_prefix}/bin' |
851 | sbindir='${exec_prefix}/sbin' | |
852 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
853 | datarootdir='${prefix}/share' |
854 | datadir='${datarootdir}' | |
795ca3e5 AK |
855 | sysconfdir='${prefix}/etc' |
856 | sharedstatedir='${prefix}/com' | |
857 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
858 | includedir='${prefix}/include' |
859 | oldincludedir='/usr/include' | |
7a197a62 AK |
860 | docdir='${datarootdir}/doc/${PACKAGE}' |
861 | infodir='${datarootdir}/info' | |
862 | htmldir='${docdir}' | |
863 | dvidir='${docdir}' | |
864 | pdfdir='${docdir}' | |
865 | psdir='${docdir}' | |
866 | libdir='${exec_prefix}/lib' | |
867 | localedir='${datarootdir}/locale' | |
868 | mandir='${datarootdir}/man' | |
795ca3e5 | 869 | |
795ca3e5 | 870 | ac_prev= |
7a197a62 | 871 | ac_dashdash= |
795ca3e5 AK |
872 | for ac_option |
873 | do | |
795ca3e5 AK |
874 | # If the previous option needs an argument, assign it. |
875 | if test -n "$ac_prev"; then | |
7a197a62 | 876 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
877 | ac_prev= |
878 | continue | |
879 | fi | |
880 | ||
7a197a62 AK |
881 | case $ac_option in |
882 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
883 | *) ac_optarg=yes ;; | |
884 | esac | |
795ca3e5 AK |
885 | |
886 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
887 | ||
7a197a62 AK |
888 | case $ac_dashdash$ac_option in |
889 | --) | |
890 | ac_dashdash=yes ;; | |
795ca3e5 AK |
891 | |
892 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
893 | ac_prev=bindir ;; | |
894 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 895 | bindir=$ac_optarg ;; |
795ca3e5 AK |
896 | |
897 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 898 | ac_prev=build_alias ;; |
795ca3e5 | 899 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 900 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
901 | |
902 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
903 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
904 | ac_prev=cache_file ;; | |
905 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
906 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
907 | cache_file=$ac_optarg ;; |
908 | ||
909 | --config-cache | -C) | |
910 | cache_file=config.cache ;; | |
795ca3e5 | 911 | |
7a197a62 | 912 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 913 | ac_prev=datadir ;; |
7a197a62 | 914 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 915 | datadir=$ac_optarg ;; |
795ca3e5 | 916 | |
7a197a62 AK |
917 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
918 | | --dataroo | --dataro | --datar) | |
919 | ac_prev=datarootdir ;; | |
920 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
921 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
922 | datarootdir=$ac_optarg ;; | |
923 | ||
795ca3e5 | 924 | -disable-* | --disable-*) |
ec6a6fbe | 925 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 926 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
927 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
928 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 929 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
930 | ac_useropt_orig=$ac_useropt |
931 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
932 | case $ac_user_opts in | |
933 | *" | |
934 | "enable_$ac_useropt" | |
935 | "*) ;; | |
936 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
937 | ac_unrecognized_sep=', ';; | |
938 | esac | |
939 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
940 | |
941 | -docdir | --docdir | --docdi | --doc | --do) | |
942 | ac_prev=docdir ;; | |
943 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
944 | docdir=$ac_optarg ;; | |
945 | ||
946 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
947 | ac_prev=dvidir ;; | |
948 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
949 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
950 | |
951 | -enable-* | --enable-*) | |
ec6a6fbe | 952 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 953 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
955 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 956 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
957 | ac_useropt_orig=$ac_useropt |
958 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
959 | case $ac_user_opts in | |
960 | *" | |
961 | "enable_$ac_useropt" | |
962 | "*) ;; | |
963 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
964 | ac_unrecognized_sep=', ';; | |
965 | esac | |
966 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
967 | |
968 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
969 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
970 | | --exec | --exe | --ex) | |
971 | ac_prev=exec_prefix ;; | |
972 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
973 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
974 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 975 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
976 | |
977 | -gas | --gas | --ga | --g) | |
978 | # Obsolete; use --with-gas. | |
979 | with_gas=yes ;; | |
980 | ||
ad6254c5 AK |
981 | -help | --help | --hel | --he | -h) |
982 | ac_init_help=long ;; | |
983 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
984 | ac_init_help=recursive ;; | |
985 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
986 | ac_init_help=short ;; | |
795ca3e5 AK |
987 | |
988 | -host | --host | --hos | --ho) | |
ad6254c5 | 989 | ac_prev=host_alias ;; |
795ca3e5 | 990 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 991 | host_alias=$ac_optarg ;; |
795ca3e5 | 992 | |
7a197a62 AK |
993 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
994 | ac_prev=htmldir ;; | |
995 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
996 | | --ht=*) | |
997 | htmldir=$ac_optarg ;; | |
998 | ||
795ca3e5 AK |
999 | -includedir | --includedir | --includedi | --included | --include \ |
1000 | | --includ | --inclu | --incl | --inc) | |
1001 | ac_prev=includedir ;; | |
1002 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1003 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1004 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1005 | |
1006 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1007 | ac_prev=infodir ;; | |
1008 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1009 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1010 | |
1011 | -libdir | --libdir | --libdi | --libd) | |
1012 | ac_prev=libdir ;; | |
1013 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1014 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1015 | |
1016 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1017 | | --libexe | --libex | --libe) | |
1018 | ac_prev=libexecdir ;; | |
1019 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1020 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1021 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1022 | |
7a197a62 AK |
1023 | -localedir | --localedir | --localedi | --localed | --locale) |
1024 | ac_prev=localedir ;; | |
1025 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1026 | localedir=$ac_optarg ;; | |
1027 | ||
795ca3e5 | 1028 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1029 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1030 | ac_prev=localstatedir ;; |
1031 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1032 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1033 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1034 | |
1035 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1036 | ac_prev=mandir ;; | |
1037 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1038 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1039 | |
1040 | -nfp | --nfp | --nf) | |
1041 | # Obsolete; use --without-fp. | |
1042 | with_fp=no ;; | |
1043 | ||
1044 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1045 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1046 | no_create=yes ;; |
1047 | ||
1048 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1049 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1050 | no_recursion=yes ;; | |
1051 | ||
1052 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1053 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1054 | | --oldin | --oldi | --old | --ol | --o) | |
1055 | ac_prev=oldincludedir ;; | |
1056 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1057 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1058 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1059 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1060 | |
1061 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1062 | ac_prev=prefix ;; | |
1063 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1064 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1065 | |
1066 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1067 | | --program-pre | --program-pr | --program-p) | |
1068 | ac_prev=program_prefix ;; | |
1069 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1070 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1071 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1072 | |
1073 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1074 | | --program-suf | --program-su | --program-s) | |
1075 | ac_prev=program_suffix ;; | |
1076 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1077 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1078 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1079 | |
1080 | -program-transform-name | --program-transform-name \ | |
1081 | | --program-transform-nam | --program-transform-na \ | |
1082 | | --program-transform-n | --program-transform- \ | |
1083 | | --program-transform | --program-transfor \ | |
1084 | | --program-transfo | --program-transf \ | |
1085 | | --program-trans | --program-tran \ | |
1086 | | --progr-tra | --program-tr | --program-t) | |
1087 | ac_prev=program_transform_name ;; | |
1088 | -program-transform-name=* | --program-transform-name=* \ | |
1089 | | --program-transform-nam=* | --program-transform-na=* \ | |
1090 | | --program-transform-n=* | --program-transform-=* \ | |
1091 | | --program-transform=* | --program-transfor=* \ | |
1092 | | --program-transfo=* | --program-transf=* \ | |
1093 | | --program-trans=* | --program-tran=* \ | |
1094 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1095 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1096 | |
7a197a62 AK |
1097 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1098 | ac_prev=pdfdir ;; | |
1099 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1100 | pdfdir=$ac_optarg ;; | |
1101 | ||
1102 | -psdir | --psdir | --psdi | --psd | --ps) | |
1103 | ac_prev=psdir ;; | |
1104 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1105 | psdir=$ac_optarg ;; | |
1106 | ||
795ca3e5 AK |
1107 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1108 | | -silent | --silent | --silen | --sile | --sil) | |
1109 | silent=yes ;; | |
1110 | ||
1111 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1112 | ac_prev=sbindir ;; | |
1113 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1114 | | --sbi=* | --sb=*) | |
ad6254c5 | 1115 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1116 | |
1117 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1118 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1119 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1120 | | --sha | --sh) | |
1121 | ac_prev=sharedstatedir ;; | |
1122 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1123 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1124 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1125 | | --sha=* | --sh=*) | |
ad6254c5 | 1126 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1127 | |
1128 | -site | --site | --sit) | |
1129 | ac_prev=site ;; | |
1130 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1131 | site=$ac_optarg ;; |
795ca3e5 AK |
1132 | |
1133 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1134 | ac_prev=srcdir ;; | |
1135 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1136 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1137 | |
1138 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1139 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1140 | ac_prev=sysconfdir ;; | |
1141 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1142 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1143 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1144 | |
1145 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1146 | ac_prev=target_alias ;; |
795ca3e5 | 1147 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1148 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1149 | |
1150 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1151 | verbose=yes ;; | |
1152 | ||
ad6254c5 AK |
1153 | -version | --version | --versio | --versi | --vers | -V) |
1154 | ac_init_version=: ;; | |
795ca3e5 AK |
1155 | |
1156 | -with-* | --with-*) | |
ec6a6fbe | 1157 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1158 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1159 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1160 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1161 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1162 | ac_useropt_orig=$ac_useropt |
1163 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1164 | case $ac_user_opts in | |
1165 | *" | |
1166 | "with_$ac_useropt" | |
1167 | "*) ;; | |
1168 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1169 | ac_unrecognized_sep=', ';; | |
1170 | esac | |
1171 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1172 | |
1173 | -without-* | --without-*) | |
ec6a6fbe | 1174 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1175 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1176 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1177 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1178 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1179 | ac_useropt_orig=$ac_useropt |
1180 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1181 | case $ac_user_opts in | |
1182 | *" | |
1183 | "with_$ac_useropt" | |
1184 | "*) ;; | |
1185 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1186 | ac_unrecognized_sep=', ';; | |
1187 | esac | |
1188 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1189 | |
1190 | --x) | |
1191 | # Obsolete; use --with-x. | |
1192 | with_x=yes ;; | |
1193 | ||
1194 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1195 | | --x-incl | --x-inc | --x-in | --x-i) | |
1196 | ac_prev=x_includes ;; | |
1197 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1198 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1199 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1202 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1203 | ac_prev=x_libraries ;; | |
1204 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1205 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1206 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1207 | |
ec6a6fbe | 1208 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1209 | Try \`$0 --help' for more information." >&2 |
1210 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1211 | ;; |
1212 | ||
ad6254c5 AK |
1213 | *=*) |
1214 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1215 | # Reject names that are not valid shell variable names. | |
1216 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1217 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1218 | { (exit 1); exit 1; }; } |
7a197a62 | 1219 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1220 | export $ac_envvar ;; |
1221 | ||
795ca3e5 | 1222 | *) |
ad6254c5 | 1223 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1224 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1225 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1226 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1227 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1228 | ;; |
1229 | ||
1230 | esac | |
1231 | done | |
1232 | ||
1233 | if test -n "$ac_prev"; then | |
ad6254c5 | 1234 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1235 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1236 | { (exit 1); exit 1; }; } |
795ca3e5 | 1237 | fi |
795ca3e5 | 1238 | |
ec6a6fbe AK |
1239 | if test -n "$ac_unrecognized_opts"; then |
1240 | case $enable_option_checking in | |
1241 | no) ;; | |
1242 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1243 | { (exit 1); exit 1; }; } ;; | |
1244 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1245 | esac | |
1246 | fi | |
1247 | ||
1248 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1249 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1250 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1251 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1252 | libdir localedir mandir | |
795ca3e5 | 1253 | do |
7a197a62 | 1254 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1255 | # Remove trailing slashes. |
1256 | case $ac_val in | |
1257 | */ ) | |
1258 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1259 | eval $ac_var=\$ac_val;; | |
1260 | esac | |
1261 | # Be sure to have absolute directory names. | |
ad6254c5 | 1262 | case $ac_val in |
7a197a62 AK |
1263 | [\\/$]* | ?:[\\/]* ) continue;; |
1264 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1265 | esac |
ec6a6fbe | 1266 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1267 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1268 | done |
1269 | ||
ad6254c5 AK |
1270 | # There might be people who depend on the old broken behavior: `$host' |
1271 | # used to hold the argument of --host etc. | |
1272 | # FIXME: To remove some day. | |
1273 | build=$build_alias | |
1274 | host=$host_alias | |
1275 | target=$target_alias | |
1276 | ||
1277 | # FIXME: To remove some day. | |
1278 | if test "x$host_alias" != x; then | |
1279 | if test "x$build_alias" = x; then | |
1280 | cross_compiling=maybe | |
ec6a6fbe | 1281 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1282 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1283 | elif test "x$build_alias" != "x$host_alias"; then | |
1284 | cross_compiling=yes | |
1285 | fi | |
1286 | fi | |
8106cdd5 | 1287 | |
ad6254c5 AK |
1288 | ac_tool_prefix= |
1289 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1290 | ||
1291 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1292 | |
795ca3e5 | 1293 | |
7a197a62 AK |
1294 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1295 | ac_ls_di=`ls -di .` && | |
1296 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1297 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1298 | { (exit 1); exit 1; }; } |
1299 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1300 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1301 | { (exit 1); exit 1; }; } |
1302 | ||
1303 | ||
795ca3e5 AK |
1304 | # Find the source files, if location was not specified. |
1305 | if test -z "$srcdir"; then | |
1306 | ac_srcdir_defaulted=yes | |
7a197a62 | 1307 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1308 | ac_confdir=`$as_dirname -- "$as_myself" || |
1309 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1310 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1311 | X"$as_myself" : 'X\(//\)$' \| \ | |
1312 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1313 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1314 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1315 | s//\1/ | |
1316 | q | |
1317 | } | |
1318 | /^X\(\/\/\)[^/].*/{ | |
1319 | s//\1/ | |
1320 | q | |
1321 | } | |
1322 | /^X\(\/\/\)$/{ | |
1323 | s//\1/ | |
1324 | q | |
1325 | } | |
1326 | /^X\(\/\).*/{ | |
1327 | s//\1/ | |
1328 | q | |
1329 | } | |
1330 | s/.*/./; q'` | |
795ca3e5 | 1331 | srcdir=$ac_confdir |
7a197a62 | 1332 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1333 | srcdir=.. |
1334 | fi | |
1335 | else | |
1336 | ac_srcdir_defaulted=no | |
1337 | fi | |
7a197a62 AK |
1338 | if test ! -r "$srcdir/$ac_unique_file"; then |
1339 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1340 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1341 | { (exit 1); exit 1; }; } |
795ca3e5 | 1342 | fi |
7a197a62 AK |
1343 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1344 | ac_abs_confdir=`( | |
ec6a6fbe | 1345 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1346 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1347 | pwd)` |
1348 | # When building in place, set srcdir=. | |
1349 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1350 | srcdir=. | |
1351 | fi | |
1352 | # Remove unnecessary trailing slashes from srcdir. | |
1353 | # Double slashes in file names in object file debugging info | |
1354 | # mess up M-x gdb in Emacs. | |
1355 | case $srcdir in | |
1356 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1357 | esac | |
1358 | for ac_var in $ac_precious_vars; do | |
1359 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1360 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1361 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1362 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1363 | done | |
ad6254c5 AK |
1364 | |
1365 | # | |
1366 | # Report the --help message. | |
1367 | # | |
1368 | if test "$ac_init_help" = "long"; then | |
1369 | # Omit some internal or obsolete options to make the list less imposing. | |
1370 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1371 | cat <<_ACEOF | |
1372 | \`configure' configures this package to adapt to many kinds of systems. | |
1373 | ||
1374 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1375 | ||
1376 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1377 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1378 | ||
1379 | Defaults for the options are specified in brackets. | |
1380 | ||
1381 | Configuration: | |
1382 | -h, --help display this help and exit | |
1383 | --help=short display options specific to this package | |
1384 | --help=recursive display the short help of all the included packages | |
1385 | -V, --version display version information and exit | |
1386 | -q, --quiet, --silent do not print \`checking...' messages | |
1387 | --cache-file=FILE cache test results in FILE [disabled] | |
1388 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1389 | -n, --no-create do not create output files | |
1390 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1391 | ||
ad6254c5 AK |
1392 | Installation directories: |
1393 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1394 | [$ac_default_prefix] |
ad6254c5 | 1395 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1396 | [PREFIX] |
ad6254c5 AK |
1397 | |
1398 | By default, \`make install' will install all the files in | |
1399 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1400 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1401 | for instance \`--prefix=\$HOME'. | |
1402 | ||
1403 | For better control, use the options below. | |
1404 | ||
1405 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1406 | --bindir=DIR user executables [EPREFIX/bin] |
1407 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1408 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1409 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1410 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1411 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1412 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1413 | --includedir=DIR C header files [PREFIX/include] | |
1414 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1415 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1416 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1417 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1418 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1419 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1420 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1421 | --htmldir=DIR html documentation [DOCDIR] | |
1422 | --dvidir=DIR dvi documentation [DOCDIR] | |
1423 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1424 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1425 | _ACEOF |
1426 | ||
1427 | cat <<\_ACEOF | |
1428 | ||
1429 | System types: | |
1430 | --build=BUILD configure for building on BUILD [guessed] | |
1431 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1432 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1433 | _ACEOF | |
1434 | fi | |
1435 | ||
1436 | if test -n "$ac_init_help"; then | |
1437 | ||
1438 | cat <<\_ACEOF | |
1439 | ||
1440 | Optional Features: | |
ec6a6fbe | 1441 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1442 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1443 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1444 | --enable-static_link Use this to link the tools to their libraries |
1445 | statically. Default is dynamic linking | |
ad6254c5 AK |
1446 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1447 | device-mapper is missing from the kernel | |
1b523347 | 1448 | --disable-readline Disable readline support |
3d978351 | 1449 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1450 | --enable-debug Enable debugging |
5556819a | 1451 | --enable-profiling Gather gcov profiling data |
93bd259b AK |
1452 | --disable-devmapper Disable LVM2 device-mapper interaction |
1453 | --enable-compat Enable support for old device-mapper versions | |
1454 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 AK |
1455 | --disable-o_direct Disable O_DIRECT |
1456 | --enable-cmdlib Build shared command library | |
93bd259b | 1457 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1458 | --enable-fsadm Enable fsadm |
15d91f5a | 1459 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1460 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1461 | --enable-nls Enable Native Language Support |
1462 | ||
1463 | Optional Packages: | |
1464 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1465 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1466 | --with-user=USER Set the owner of installed files [USER=root] |
1467 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1468 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1469 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1470 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1471 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1472 | TYPE=internal | |
1473 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1474 | TYPE=internal | |
1475 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1476 | TYPE=internal | |
1477 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1478 | TYPE=internal | |
1479 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1480 | TYPE=internal | |
ec6a6fbe | 1481 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all |
a266258f | 1482 | TYPE=none |
d0191583 JM |
1483 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1484 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1485 | --with-confdir=DIR Configuration files in DIR /etc |
1486 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
68f2de6d AK |
1487 | --with-usrlibdir=DIR |
1488 | --with-usrsbindir=DIR | |
93bd259b AK |
1489 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
1490 | --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd] | |
1491 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1492 | |
1493 | Some influential environment variables: | |
1494 | CC C compiler command | |
1495 | CFLAGS C compiler flags | |
1496 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1497 | nonstandard directory <lib dir> | |
25fbec5b | 1498 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1499 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1500 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1501 | CPP C preprocessor |
1502 | ||
1503 | Use these variables to override the choices made by `configure' or to help | |
1504 | it to find libraries and programs with nonstandard names/locations. | |
1505 | ||
1506 | _ACEOF | |
7a197a62 | 1507 | ac_status=$? |
ad6254c5 AK |
1508 | fi |
1509 | ||
1510 | if test "$ac_init_help" = "recursive"; then | |
1511 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1512 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1513 | test -d "$ac_dir" || |
1514 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1515 | continue | |
ad6254c5 AK |
1516 | ac_builddir=. |
1517 | ||
7a197a62 AK |
1518 | case "$ac_dir" in |
1519 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1520 | *) | |
ec6a6fbe | 1521 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1522 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1523 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1524 | case $ac_top_builddir_sub in |
1525 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1526 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1527 | esac ;; | |
1528 | esac | |
1529 | ac_abs_top_builddir=$ac_pwd | |
1530 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1531 | # for backward compatibility: | |
1532 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1533 | |
1534 | case $srcdir in | |
7a197a62 | 1535 | .) # We are building in place. |
ad6254c5 | 1536 | ac_srcdir=. |
7a197a62 AK |
1537 | ac_top_srcdir=$ac_top_builddir_sub |
1538 | ac_abs_top_srcdir=$ac_pwd ;; | |
1539 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1540 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1541 | ac_top_srcdir=$srcdir |
1542 | ac_abs_top_srcdir=$srcdir ;; | |
1543 | *) # Relative name. | |
1544 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1545 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1546 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1547 | esac |
7a197a62 AK |
1548 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1549 | ||
1550 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1551 | # Check for guested configure. | |
1552 | if test -f "$ac_srcdir/configure.gnu"; then | |
1553 | echo && | |
1554 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1555 | elif test -f "$ac_srcdir/configure"; then | |
1556 | echo && | |
1557 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1558 | else |
ec6a6fbe | 1559 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1560 | fi || ac_status=$? |
1561 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1562 | done |
1563 | fi | |
1564 | ||
7a197a62 | 1565 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1566 | if $ac_init_version; then |
1567 | cat <<\_ACEOF | |
7a197a62 | 1568 | configure |
ec6a6fbe | 1569 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1570 | |
7a197a62 | 1571 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1572 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1573 | This configure script is free software; the Free Software Foundation |
1574 | gives unlimited permission to copy, distribute and modify it. | |
1575 | _ACEOF | |
7a197a62 | 1576 | exit |
ad6254c5 | 1577 | fi |
7a197a62 | 1578 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1579 | This file contains any messages produced by compilers while |
1580 | running configure, to aid debugging if configure makes a mistake. | |
1581 | ||
1582 | It was created by $as_me, which was | |
ec6a6fbe | 1583 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1584 | |
1585 | $ $0 $@ | |
1586 | ||
1587 | _ACEOF | |
7a197a62 | 1588 | exec 5>>config.log |
ad6254c5 AK |
1589 | { |
1590 | cat <<_ASUNAME | |
1591 | ## --------- ## | |
1592 | ## Platform. ## | |
1593 | ## --------- ## | |
1594 | ||
1595 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1596 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1597 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1598 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1599 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1600 | ||
1601 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1602 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1603 | ||
1604 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1605 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1606 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1607 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1608 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1609 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1610 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1611 | ||
1612 | _ASUNAME | |
1613 | ||
1614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1615 | for as_dir in $PATH | |
1616 | do | |
1617 | IFS=$as_save_IFS | |
1618 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1619 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1620 | done |
7a197a62 | 1621 | IFS=$as_save_IFS |
ad6254c5 AK |
1622 | |
1623 | } >&5 | |
1624 | ||
1625 | cat >&5 <<_ACEOF | |
1626 | ||
1627 | ||
1628 | ## ----------- ## | |
1629 | ## Core tests. ## | |
1630 | ## ----------- ## | |
1631 | ||
1632 | _ACEOF | |
1633 | ||
1634 | ||
1635 | # Keep a trace of the command line. | |
1636 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1637 | # Strip out --silent because we don't want to record it for future runs. | |
1638 | # Also quote any args containing shell meta-characters. | |
1639 | # Make two passes to allow for proper duplicate-argument suppression. | |
1640 | ac_configure_args= | |
1641 | ac_configure_args0= | |
1642 | ac_configure_args1= | |
ad6254c5 AK |
1643 | ac_must_keep_next=false |
1644 | for ac_pass in 1 2 | |
1645 | do | |
1646 | for ac_arg | |
1647 | do | |
1648 | case $ac_arg in | |
1649 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1650 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1651 | | -silent | --silent | --silen | --sile | --sil) | |
1652 | continue ;; | |
7a197a62 | 1653 | *\'*) |
ec6a6fbe | 1654 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1655 | esac |
1656 | case $ac_pass in | |
1657 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1658 | 2) | |
1659 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1660 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1661 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1662 | else |
8a2fc586 AK |
1663 | case $ac_arg in |
1664 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1665 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1666 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1667 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1668 | case "$ac_configure_args0 " in | |
1669 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1670 | esac | |
1671 | ;; | |
1672 | -* ) ac_must_keep_next=true ;; | |
1673 | esac | |
ad6254c5 | 1674 | fi |
7a197a62 | 1675 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1676 | ;; |
1677 | esac | |
1678 | done | |
1679 | done | |
1680 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1681 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1682 | ||
1683 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1684 | # config.log. We remove comments because anyway the quotes in there | |
1685 | # would cause problems or look ugly. | |
7a197a62 AK |
1686 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1687 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1688 | trap 'exit_status=$? |
1689 | # Save into config.log some information that might help in debugging. | |
1690 | { | |
1691 | echo | |
1692 | ||
1693 | cat <<\_ASBOX | |
1694 | ## ---------------- ## | |
1695 | ## Cache variables. ## | |
1696 | ## ---------------- ## | |
1697 | _ASBOX | |
1698 | echo | |
1699 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1700 | ( |
1701 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1702 | eval ac_val=\$$ac_var | |
1703 | case $ac_val in #( | |
1704 | *${as_nl}*) | |
1705 | case $ac_var in #( | |
ec6a6fbe AK |
1706 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1707 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1708 | esac |
1709 | case $ac_var in #( | |
1710 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1711 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1712 | *) $as_unset $ac_var ;; |
1713 | esac ;; | |
1714 | esac | |
1715 | done | |
ad6254c5 | 1716 | (set) 2>&1 | |
7a197a62 AK |
1717 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1718 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1719 | sed -n \ |
7a197a62 AK |
1720 | "s/'\''/'\''\\\\'\'''\''/g; |
1721 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1722 | ;; #( | |
ad6254c5 | 1723 | *) |
7a197a62 | 1724 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1725 | ;; |
7a197a62 AK |
1726 | esac | |
1727 | sort | |
1728 | ) | |
ad6254c5 AK |
1729 | echo |
1730 | ||
1731 | cat <<\_ASBOX | |
1732 | ## ----------------- ## | |
1733 | ## Output variables. ## | |
1734 | ## ----------------- ## | |
1735 | _ASBOX | |
1736 | echo | |
1737 | for ac_var in $ac_subst_vars | |
1738 | do | |
7a197a62 AK |
1739 | eval ac_val=\$$ac_var |
1740 | case $ac_val in | |
ec6a6fbe | 1741 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1742 | esac |
ec6a6fbe | 1743 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1744 | done | sort |
1745 | echo | |
1746 | ||
1747 | if test -n "$ac_subst_files"; then | |
1748 | cat <<\_ASBOX | |
7a197a62 AK |
1749 | ## ------------------- ## |
1750 | ## File substitutions. ## | |
1751 | ## ------------------- ## | |
ad6254c5 AK |
1752 | _ASBOX |
1753 | echo | |
1754 | for ac_var in $ac_subst_files | |
1755 | do | |
7a197a62 AK |
1756 | eval ac_val=\$$ac_var |
1757 | case $ac_val in | |
ec6a6fbe | 1758 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1759 | esac |
ec6a6fbe | 1760 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1761 | done | sort |
1762 | echo | |
1763 | fi | |
1764 | ||
1765 | if test -s confdefs.h; then | |
1766 | cat <<\_ASBOX | |
1767 | ## ----------- ## | |
1768 | ## confdefs.h. ## | |
1769 | ## ----------- ## | |
1770 | _ASBOX | |
1771 | echo | |
7a197a62 | 1772 | cat confdefs.h |
ad6254c5 AK |
1773 | echo |
1774 | fi | |
1775 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1776 | $as_echo "$as_me: caught signal $ac_signal" |
1777 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1778 | } >&5 |
7a197a62 AK |
1779 | rm -f core *.core core.conftest.* && |
1780 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1781 | exit $exit_status |
7a197a62 | 1782 | ' 0 |
ad6254c5 AK |
1783 | for ac_signal in 1 2 13 15; do |
1784 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1785 | done | |
1786 | ac_signal=0 | |
1787 | ||
1788 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1789 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1790 | |
1791 | # Predefined preprocessor variables. | |
1792 | ||
1793 | cat >>confdefs.h <<_ACEOF | |
1794 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1795 | _ACEOF | |
1796 | ||
1797 | ||
1798 | cat >>confdefs.h <<_ACEOF | |
1799 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1800 | _ACEOF | |
1801 | ||
1802 | ||
1803 | cat >>confdefs.h <<_ACEOF | |
1804 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1805 | _ACEOF | |
8106cdd5 | 1806 | |
ad6254c5 AK |
1807 | |
1808 | cat >>confdefs.h <<_ACEOF | |
1809 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1810 | _ACEOF | |
1811 | ||
1812 | ||
1813 | cat >>confdefs.h <<_ACEOF | |
1814 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1815 | _ACEOF | |
1816 | ||
1817 | ||
1818 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1819 | # Prefer an explicitly selected file to automatically selected ones. |
1820 | ac_site_file1=NONE | |
1821 | ac_site_file2=NONE | |
7a197a62 | 1822 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1823 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1824 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1825 | ac_site_file1=$prefix/share/config.site |
1826 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1827 | else |
ec6a6fbe AK |
1828 | ac_site_file1=$ac_default_prefix/share/config.site |
1829 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1830 | fi |
ec6a6fbe | 1831 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1832 | do |
ec6a6fbe | 1833 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1834 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1835 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1836 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1837 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1838 | . "$ac_site_file" |
1839 | fi | |
1840 | done | |
1841 | ||
1842 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1843 | # Some versions of bash will fail to source /dev/null (special |
1844 | # files actually), so we avoid doing that. | |
1845 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1846 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1847 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1848 | case $cache_file in |
7a197a62 AK |
1849 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1850 | *) . "./$cache_file";; | |
ad6254c5 AK |
1851 | esac |
1852 | fi | |
795ca3e5 | 1853 | else |
ec6a6fbe AK |
1854 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1855 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1856 | >$cache_file |
1857 | fi | |
1858 | ||
1859 | # Check that the precious variables saved in the cache have kept the same | |
1860 | # value. | |
1861 | ac_cache_corrupted=false | |
7a197a62 | 1862 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1863 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1864 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1865 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1866 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1867 | case $ac_old_set,$ac_new_set in |
1868 | set,) | |
ec6a6fbe AK |
1869 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1870 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1871 | ac_cache_corrupted=: ;; |
1872 | ,set) | |
ec6a6fbe AK |
1873 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1874 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1875 | ac_cache_corrupted=: ;; |
1876 | ,);; | |
1877 | *) | |
1878 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1879 | # differences in whitespace do not lead to failure. |
1880 | ac_old_val_w=`echo x $ac_old_val` | |
1881 | ac_new_val_w=`echo x $ac_new_val` | |
1882 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1883 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1884 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1885 | ac_cache_corrupted=: | |
1886 | else | |
1887 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1888 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1889 | eval $ac_var=\$ac_old_val | |
1890 | fi | |
1891 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1892 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1893 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1894 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1895 | fi;; |
1896 | esac | |
1897 | # Pass precious variables to config.status. | |
1898 | if test "$ac_new_set" = set; then | |
1899 | case $ac_new_val in | |
ec6a6fbe | 1900 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1901 | *) ac_arg=$ac_var=$ac_new_val ;; |
1902 | esac | |
1903 | case " $ac_configure_args " in | |
1904 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1905 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1906 | esac | |
1907 | fi | |
1908 | done | |
1909 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
1910 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1912 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1913 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1914 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1915 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1916 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1917 | fi |
1918 | ||
ad6254c5 AK |
1919 | |
1920 | ||
1921 | ||
1922 | ||
1923 | ||
1924 | ||
1925 | ||
1926 | ||
1927 | ||
1928 | ||
1929 | ||
1930 | ||
1931 | ||
1932 | ||
1933 | ||
1934 | ||
7a197a62 AK |
1935 | ac_ext=c |
1936 | ac_cpp='$CPP $CPPFLAGS' | |
1937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1940 | |
795ca3e5 AK |
1941 | |
1942 | ||
7a197a62 | 1943 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1944 | |
1945 | ||
80992638 | 1946 | ################################################################################ |
795ca3e5 | 1947 | ac_aux_dir= |
7a197a62 AK |
1948 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1949 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1950 | ac_aux_dir=$ac_dir |
1951 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1952 | break | |
7a197a62 | 1953 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1954 | ac_aux_dir=$ac_dir |
1955 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1956 | break | |
7a197a62 | 1957 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1958 | ac_aux_dir=$ac_dir |
1959 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1960 | break | |
795ca3e5 AK |
1961 | fi |
1962 | done | |
1963 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
1964 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1965 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1966 | { (exit 1); exit 1; }; } |
795ca3e5 | 1967 | fi |
7a197a62 AK |
1968 | |
1969 | # These three variables are undocumented and unsupported, | |
1970 | # and are intended to be withdrawn in a future Autoconf release. | |
1971 | # They can cause serious problems if a builder's source tree is in a directory | |
1972 | # whose full name contains unusual characters. | |
1973 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1974 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1975 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1976 | ||
8ce0cbda AK |
1977 | |
1978 | ||
ad6254c5 | 1979 | ################################################################################ |
8ce0cbda | 1980 | # Make sure we can run config.sub. |
7a197a62 | 1981 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
1982 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1983 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1984 | { (exit 1); exit 1; }; } |
1985 | ||
ec6a6fbe AK |
1986 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
1987 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 1988 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 1989 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1990 | else |
7a197a62 AK |
1991 | ac_build_alias=$build_alias |
1992 | test "x$ac_build_alias" = x && | |
1993 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1994 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
1995 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1996 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1997 | { (exit 1); exit 1; }; } |
7a197a62 | 1998 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
1999 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2000 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2001 | { (exit 1); exit 1; }; } |
2002 | ||
2003 | fi | |
ec6a6fbe AK |
2004 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2005 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2006 | case $ac_cv_build in |
2007 | *-*-*) ;; | |
ec6a6fbe AK |
2008 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2009 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2010 | { (exit 1); exit 1; }; };; |
2011 | esac | |
ad6254c5 | 2012 | build=$ac_cv_build |
7a197a62 AK |
2013 | ac_save_IFS=$IFS; IFS='-' |
2014 | set x $ac_cv_build | |
2015 | shift | |
2016 | build_cpu=$1 | |
2017 | build_vendor=$2 | |
2018 | shift; shift | |
2019 | # Remember, the first character of IFS is used to create $*, | |
2020 | # except with old shells: | |
2021 | build_os=$* | |
2022 | IFS=$ac_save_IFS | |
2023 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2024 | |
2025 | ||
ec6a6fbe AK |
2026 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2027 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2028 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2029 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2030 | else |
7a197a62 AK |
2031 | if test "x$host_alias" = x; then |
2032 | ac_cv_host=$ac_cv_build | |
2033 | else | |
2034 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2035 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2036 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2037 | { (exit 1); exit 1; }; } |
7a197a62 | 2038 | fi |
ad6254c5 AK |
2039 | |
2040 | fi | |
ec6a6fbe AK |
2041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2042 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2043 | case $ac_cv_host in |
2044 | *-*-*) ;; | |
ec6a6fbe AK |
2045 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2046 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2047 | { (exit 1); exit 1; }; };; |
2048 | esac | |
ad6254c5 | 2049 | host=$ac_cv_host |
7a197a62 AK |
2050 | ac_save_IFS=$IFS; IFS='-' |
2051 | set x $ac_cv_host | |
2052 | shift | |
2053 | host_cpu=$1 | |
2054 | host_vendor=$2 | |
2055 | shift; shift | |
2056 | # Remember, the first character of IFS is used to create $*, | |
2057 | # except with old shells: | |
2058 | host_os=$* | |
2059 | IFS=$ac_save_IFS | |
2060 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2061 | |
2062 | ||
ec6a6fbe AK |
2063 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2064 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2065 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2066 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2067 | else |
7a197a62 AK |
2068 | if test "x$target_alias" = x; then |
2069 | ac_cv_target=$ac_cv_host | |
2070 | else | |
2071 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2072 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2073 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2074 | { (exit 1); exit 1; }; } |
7a197a62 | 2075 | fi |
8ce0cbda | 2076 | |
ad6254c5 | 2077 | fi |
ec6a6fbe AK |
2078 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2079 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2080 | case $ac_cv_target in |
2081 | *-*-*) ;; | |
ec6a6fbe AK |
2082 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2083 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2084 | { (exit 1); exit 1; }; };; |
2085 | esac | |
ad6254c5 | 2086 | target=$ac_cv_target |
7a197a62 AK |
2087 | ac_save_IFS=$IFS; IFS='-' |
2088 | set x $ac_cv_target | |
2089 | shift | |
2090 | target_cpu=$1 | |
2091 | target_vendor=$2 | |
2092 | shift; shift | |
2093 | # Remember, the first character of IFS is used to create $*, | |
2094 | # except with old shells: | |
2095 | target_os=$* | |
2096 | IFS=$ac_save_IFS | |
2097 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2098 | |
8ce0cbda | 2099 | |
ad6254c5 AK |
2100 | # The aliases save the names the user supplied, while $host etc. |
2101 | # will get canonicalized. | |
2102 | test -n "$target_alias" && | |
8ce0cbda AK |
2103 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2104 | NONENONEs,x,x, && | |
2105 | program_prefix=${target_alias}- | |
2106 | ||
8ce0cbda AK |
2107 | case "$host_os" in |
2108 | linux*) | |
8ce0cbda AK |
2109 | COPTIMISE_FLAG="-O2" |
2110 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2111 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2112 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2113 | LDDEPS="$LDDEPS .export.sym" | |
2114 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2115 | LIB_SUFFIX=so |
8ce0cbda AK |
2116 | DEVMAPPER=yes |
2117 | ODIRECT=yes | |
d0191583 | 2118 | DM_IOCTLS=yes |
8ce0cbda | 2119 | SELINUX=yes |
8b1a3214 | 2120 | REALTIME=yes |
8ce0cbda | 2121 | CLUSTER=internal |
93bd259b | 2122 | FSADM=yes |
d0191583 | 2123 | ;; |
8ce0cbda AK |
2124 | darwin*) |
2125 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2126 | COPTIMISE_FLAG="-O2" | |
2127 | CLDFLAGS="$CLDFLAGS" | |
2128 | CLDWHOLEARCHIVE="-all_load" | |
2129 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2130 | LIB_SUFFIX=dylib |
a653923f | 2131 | DEVMAPPER=yes |
8ce0cbda | 2132 | ODIRECT=no |
d0191583 | 2133 | DM_IOCTLS=no |
8ce0cbda | 2134 | SELINUX=no |
8b1a3214 | 2135 | REALTIME=no |
8ce0cbda | 2136 | CLUSTER=none |
d0191583 JM |
2137 | FSADM=no |
2138 | ;; | |
8ce0cbda AK |
2139 | esac |
2140 | ||
80992638 | 2141 | ################################################################################ |
ec6a6fbe AK |
2142 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2143 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2144 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2145 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2146 | else |
2147 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2148 | for ac_i in 1 2 3 4 5 6 7; do | |
2149 | ac_script="$ac_script$as_nl$ac_script" | |
2150 | done | |
ec6a6fbe | 2151 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2152 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2153 | if test -z "$SED"; then |
5951ef33 | 2154 | ac_path_SED_found=false |
ec6a6fbe AK |
2155 | # Loop through the user's path and test for each of PROGNAME-LIST |
2156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2157 | for as_dir in $PATH |
2158 | do | |
2159 | IFS=$as_save_IFS | |
2160 | test -z "$as_dir" && as_dir=. | |
2161 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2162 | for ac_exec_ext in '' $ac_executable_extensions; do |
2163 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2164 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2165 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2166 | # Check for GNU $ac_path_SED |
2167 | case `"$ac_path_SED" --version 2>&1` in | |
2168 | *GNU*) | |
2169 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2170 | *) | |
2171 | ac_count=0 | |
ec6a6fbe | 2172 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2173 | while : |
2174 | do | |
2175 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2176 | mv "conftest.tmp" "conftest.in" | |
2177 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2178 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2179 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2180 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2181 | ac_count=`expr $ac_count + 1` | |
2182 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2183 | # Best one so far, save it but keep looking for a better one | |
2184 | ac_cv_path_SED="$ac_path_SED" | |
2185 | ac_path_SED_max=$ac_count | |
2186 | fi | |
2187 | # 10*(2^10) chars as input seems more than enough | |
2188 | test $ac_count -gt 10 && break | |
2189 | done | |
2190 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2191 | esac | |
2192 | ||
ec6a6fbe AK |
2193 | $ac_path_SED_found && break 3 |
2194 | done | |
5951ef33 AK |
2195 | done |
2196 | done | |
5951ef33 | 2197 | IFS=$as_save_IFS |
ec6a6fbe AK |
2198 | if test -z "$ac_cv_path_SED"; then |
2199 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2200 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2201 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2202 | fi |
5951ef33 AK |
2203 | else |
2204 | ac_cv_path_SED=$SED | |
2205 | fi | |
2206 | ||
2207 | fi | |
ec6a6fbe AK |
2208 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2209 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2210 | SED="$ac_cv_path_SED" |
2211 | rm -f conftest.sed | |
2212 | ||
ad6254c5 | 2213 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2214 | do |
ad6254c5 | 2215 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2216 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2217 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2218 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2219 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2220 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2221 | else |
2222 | if test -n "$AWK"; then | |
2223 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2224 | else | |
ad6254c5 AK |
2225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2226 | for as_dir in $PATH | |
2227 | do | |
2228 | IFS=$as_save_IFS | |
2229 | test -z "$as_dir" && as_dir=. | |
2230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2232 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2233 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2234 | break 2 |
2235 | fi | |
2236 | done | |
2237 | done | |
7a197a62 | 2238 | IFS=$as_save_IFS |
ad6254c5 | 2239 | |
795ca3e5 AK |
2240 | fi |
2241 | fi | |
ad6254c5 | 2242 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2243 | if test -n "$AWK"; then |
ec6a6fbe AK |
2244 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2245 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2246 | else |
ec6a6fbe AK |
2247 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2248 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2249 | fi |
2250 | ||
7a197a62 | 2251 | |
ad6254c5 AK |
2252 | test -n "$AWK" && break |
2253 | done | |
2254 | ||
2255 | ac_ext=c | |
2256 | ac_cpp='$CPP $CPPFLAGS' | |
2257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2260 | if test -n "$ac_tool_prefix"; then | |
2261 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2262 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2263 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2264 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2265 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2266 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2267 | else |
2268 | if test -n "$CC"; then | |
2269 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2270 | else | |
2271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2272 | for as_dir in $PATH | |
2273 | do | |
2274 | IFS=$as_save_IFS | |
2275 | test -z "$as_dir" && as_dir=. | |
2276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2278 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2279 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2280 | break 2 |
2281 | fi | |
2282 | done | |
8106cdd5 | 2283 | done |
7a197a62 | 2284 | IFS=$as_save_IFS |
8106cdd5 | 2285 | |
ad6254c5 AK |
2286 | fi |
2287 | fi | |
2288 | CC=$ac_cv_prog_CC | |
2289 | if test -n "$CC"; then | |
ec6a6fbe AK |
2290 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2291 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2292 | else |
ec6a6fbe AK |
2293 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2294 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2295 | fi |
2296 | ||
7a197a62 | 2297 | |
ad6254c5 AK |
2298 | fi |
2299 | if test -z "$ac_cv_prog_CC"; then | |
2300 | ac_ct_CC=$CC | |
2301 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2302 | set dummy 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_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2306 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2307 | else |
2308 | if test -n "$ac_ct_CC"; then | |
2309 | ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 | |
2323 | done | |
7a197a62 | 2324 | IFS=$as_save_IFS |
ad6254c5 AK |
2325 | |
2326 | fi | |
2327 | fi | |
2328 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2329 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2330 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2331 | $as_echo "$ac_ct_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 AK |
2337 | if test "x$ac_ct_CC" = x; then |
2338 | CC="" | |
2339 | else | |
2340 | case $cross_compiling:$ac_tool_warned in | |
2341 | yes:) | |
ec6a6fbe AK |
2342 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2343 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2344 | ac_tool_warned=yes ;; |
2345 | esac | |
2346 | CC=$ac_ct_CC | |
2347 | fi | |
ad6254c5 AK |
2348 | else |
2349 | CC="$ac_cv_prog_CC" | |
2350 | fi | |
2351 | ||
2352 | if test -z "$CC"; then | |
7a197a62 AK |
2353 | if test -n "$ac_tool_prefix"; then |
2354 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2355 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2356 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2357 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2358 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2359 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2360 | else |
2361 | if test -n "$CC"; then | |
2362 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2363 | else | |
ad6254c5 AK |
2364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2365 | for as_dir in $PATH | |
2366 | do | |
2367 | IFS=$as_save_IFS | |
2368 | test -z "$as_dir" && as_dir=. | |
2369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2371 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2372 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2373 | break 2 |
2374 | fi | |
2375 | done | |
2376 | done | |
7a197a62 | 2377 | IFS=$as_save_IFS |
ad6254c5 | 2378 | |
8106cdd5 AK |
2379 | fi |
2380 | fi | |
ad6254c5 | 2381 | CC=$ac_cv_prog_CC |
8106cdd5 | 2382 | if test -n "$CC"; then |
ec6a6fbe AK |
2383 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2384 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2385 | else |
ec6a6fbe AK |
2386 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2387 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2388 | fi |
2389 | ||
8106cdd5 | 2390 | |
7a197a62 | 2391 | fi |
ad6254c5 | 2392 | fi |
795ca3e5 AK |
2393 | if test -z "$CC"; then |
2394 | # Extract the first word of "cc", so it can be a program name with args. | |
2395 | set dummy 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 |
795ca3e5 AK |
2400 | else |
2401 | if test -n "$CC"; then | |
2402 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2403 | else | |
795ca3e5 | 2404 | ac_prog_rejected=no |
ad6254c5 AK |
2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2406 | for as_dir in $PATH | |
2407 | do | |
2408 | IFS=$as_save_IFS | |
2409 | test -z "$as_dir" && as_dir=. | |
2410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2412 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2413 | ac_prog_rejected=yes | |
2414 | continue | |
2415 | fi | |
2416 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2417 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2418 | break 2 |
2419 | fi | |
2420 | done | |
2421 | done | |
7a197a62 | 2422 | IFS=$as_save_IFS |
ad6254c5 | 2423 | |
795ca3e5 AK |
2424 | if test $ac_prog_rejected = yes; then |
2425 | # We found a bogon in the path, so make sure we never use it. | |
2426 | set dummy $ac_cv_prog_CC | |
2427 | shift | |
ad6254c5 | 2428 | if test $# != 0; then |
795ca3e5 AK |
2429 | # We chose a different compiler from the bogus one. |
2430 | # However, it has the same basename, so the bogon will be chosen | |
2431 | # first if we set CC to just the basename; use the full file name. | |
2432 | shift | |
ad6254c5 | 2433 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2434 | fi |
2435 | fi | |
2436 | fi | |
2437 | fi | |
ad6254c5 | 2438 | CC=$ac_cv_prog_CC |
795ca3e5 | 2439 | if test -n "$CC"; then |
ec6a6fbe AK |
2440 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2441 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2442 | else |
ec6a6fbe AK |
2443 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2444 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2445 | fi |
2446 | ||
7a197a62 | 2447 | |
ad6254c5 AK |
2448 | fi |
2449 | if test -z "$CC"; then | |
2450 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2451 | for ac_prog in cl.exe |
ad6254c5 AK |
2452 | do |
2453 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2454 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2455 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2456 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2457 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2458 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2459 | else |
2460 | if test -n "$CC"; then | |
2461 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2462 | else | |
ad6254c5 AK |
2463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2464 | for as_dir in $PATH | |
2465 | do | |
2466 | IFS=$as_save_IFS | |
2467 | test -z "$as_dir" && as_dir=. | |
2468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2470 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2471 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2472 | break 2 |
2473 | fi | |
2474 | done | |
2475 | done | |
7a197a62 | 2476 | IFS=$as_save_IFS |
ad6254c5 | 2477 | |
795ca3e5 AK |
2478 | fi |
2479 | fi | |
ad6254c5 | 2480 | CC=$ac_cv_prog_CC |
795ca3e5 | 2481 | if test -n "$CC"; then |
ec6a6fbe AK |
2482 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2483 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2484 | else |
ec6a6fbe AK |
2485 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2486 | $as_echo "no" >&6; } | |
795ca3e5 | 2487 | fi |
ad6254c5 | 2488 | |
7a197a62 | 2489 | |
ad6254c5 AK |
2490 | test -n "$CC" && break |
2491 | done | |
2492 | fi | |
2493 | if test -z "$CC"; then | |
2494 | ac_ct_CC=$CC | |
7a197a62 | 2495 | for ac_prog in cl.exe |
ad6254c5 AK |
2496 | do |
2497 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2498 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2499 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2500 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2501 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2502 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2503 | else |
2504 | if test -n "$ac_ct_CC"; then | |
2505 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2506 | else | |
2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2508 | for as_dir in $PATH | |
2509 | do | |
2510 | IFS=$as_save_IFS | |
2511 | test -z "$as_dir" && as_dir=. | |
2512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2514 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2515 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2516 | break 2 |
795ca3e5 | 2517 | fi |
ad6254c5 AK |
2518 | done |
2519 | done | |
7a197a62 | 2520 | IFS=$as_save_IFS |
ad6254c5 AK |
2521 | |
2522 | fi | |
2523 | fi | |
2524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2525 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2526 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2527 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2528 | else |
ec6a6fbe AK |
2529 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2530 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2531 | fi |
2532 | ||
7a197a62 | 2533 | |
ad6254c5 AK |
2534 | test -n "$ac_ct_CC" && break |
2535 | done | |
795ca3e5 | 2536 | |
7a197a62 AK |
2537 | if test "x$ac_ct_CC" = x; then |
2538 | CC="" | |
2539 | else | |
2540 | case $cross_compiling:$ac_tool_warned in | |
2541 | yes:) | |
ec6a6fbe AK |
2542 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2543 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2544 | ac_tool_warned=yes ;; |
2545 | esac | |
2546 | CC=$ac_ct_CC | |
2547 | fi | |
ad6254c5 AK |
2548 | fi |
2549 | ||
2550 | fi | |
2551 | ||
2552 | ||
ec6a6fbe AK |
2553 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2555 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2556 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2557 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2558 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2559 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2560 | |
2561 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2562 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2563 | set X $ac_compile | |
2564 | ac_compiler=$2 | |
7a197a62 AK |
2565 | { (ac_try="$ac_compiler --version >&5" |
2566 | case "(($ac_try" in | |
2567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2568 | *) ac_try_echo=$ac_try;; | |
2569 | esac | |
ec6a6fbe AK |
2570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2571 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2572 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2573 | ac_status=$? |
ec6a6fbe | 2574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2575 | (exit $ac_status); } |
7a197a62 AK |
2576 | { (ac_try="$ac_compiler -v >&5" |
2577 | case "(($ac_try" in | |
2578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2579 | *) ac_try_echo=$ac_try;; | |
2580 | esac | |
ec6a6fbe AK |
2581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2582 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2583 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2584 | ac_status=$? |
ec6a6fbe | 2585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2586 | (exit $ac_status); } |
7a197a62 AK |
2587 | { (ac_try="$ac_compiler -V >&5" |
2588 | case "(($ac_try" in | |
2589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2590 | *) ac_try_echo=$ac_try;; | |
2591 | esac | |
ec6a6fbe AK |
2592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2593 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2594 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2595 | ac_status=$? |
ec6a6fbe | 2596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2597 | (exit $ac_status); } |
2598 | ||
2599 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2600 | /* confdefs.h. */ |
2601 | _ACEOF | |
2602 | cat confdefs.h >>conftest.$ac_ext | |
2603 | cat >>conftest.$ac_ext <<_ACEOF | |
2604 | /* end confdefs.h. */ | |
2605 | ||
2606 | int | |
2607 | main () | |
2608 | { | |
2609 | ||
2610 | ; | |
2611 | return 0; | |
2612 | } | |
2613 | _ACEOF | |
2614 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2615 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2616 | # Try to create an executable without -o first, disregard a.out. |
2617 | # It will help us diagnose broken compilers, and finding out an intuition | |
2618 | # of exeext. | |
ec6a6fbe AK |
2619 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2620 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2621 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2622 | ||
2623 | # The possible output files: | |
2624 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2625 | ||
7a197a62 AK |
2626 | ac_rmfiles= |
2627 | for ac_file in $ac_files | |
2628 | do | |
2629 | case $ac_file in | |
ec6a6fbe | 2630 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2631 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2632 | esac | |
2633 | done | |
2634 | rm -f $ac_rmfiles | |
2635 | ||
2636 | if { (ac_try="$ac_link_default" | |
2637 | case "(($ac_try" in | |
2638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2639 | *) ac_try_echo=$ac_try;; | |
2640 | esac | |
ec6a6fbe AK |
2641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2642 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2643 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2644 | ac_status=$? |
ec6a6fbe | 2645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2646 | (exit $ac_status); }; then |
7a197a62 AK |
2647 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2648 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2649 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2650 | # so that the user can short-circuit this test for compilers unknown to | |
2651 | # Autoconf. | |
25fbec5b | 2652 | for ac_file in $ac_files '' |
ad6254c5 AK |
2653 | do |
2654 | test -f "$ac_file" || continue | |
2655 | case $ac_file in | |
ec6a6fbe | 2656 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2657 | ;; |
ad6254c5 | 2658 | [ab].out ) |
8a2fc586 AK |
2659 | # We found the default executable, but exeext='' is most |
2660 | # certainly right. | |
2661 | break;; | |
ad6254c5 | 2662 | *.* ) |
7a197a62 AK |
2663 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2664 | then :; else | |
2665 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2666 | fi | |
2667 | # We set ac_cv_exeext here because the later test for it is not | |
2668 | # safe: cross compilers may not add the suffix if given an `-o' | |
2669 | # argument, so we may need to know it at that point already. | |
2670 | # Even if this section looks crufty: it has the advantage of | |
2671 | # actually working. | |
8a2fc586 | 2672 | break;; |
ad6254c5 | 2673 | * ) |
8a2fc586 | 2674 | break;; |
ad6254c5 AK |
2675 | esac |
2676 | done | |
7a197a62 AK |
2677 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2678 | ||
ad6254c5 | 2679 | else |
25fbec5b AK |
2680 | ac_file='' |
2681 | fi | |
2682 | ||
ec6a6fbe AK |
2683 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2684 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2685 | if test -z "$ac_file"; then |
ec6a6fbe | 2686 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2687 | sed 's/^/| /' conftest.$ac_ext >&5 |
2688 | ||
ec6a6fbe AK |
2689 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2690 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2691 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2692 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2693 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2694 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2695 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2696 | fi |
2697 | ||
2698 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2699 | |
7a197a62 | 2700 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2701 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2702 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2703 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2704 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2705 | # If not cross compiling, check that we can run a simple program. | |
2706 | if test "$cross_compiling" != yes; then | |
2707 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2708 | { (case "(($ac_try" in |
2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2710 | *) ac_try_echo=$ac_try;; | |
2711 | esac | |
ec6a6fbe AK |
2712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2713 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2714 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2715 | ac_status=$? |
ec6a6fbe | 2716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2717 | (exit $ac_status); }; }; then |
2718 | cross_compiling=no | |
795ca3e5 | 2719 | else |
ad6254c5 AK |
2720 | if test "$cross_compiling" = maybe; then |
2721 | cross_compiling=yes | |
2722 | else | |
ec6a6fbe AK |
2723 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2724 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2725 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2726 | If you meant to cross compile, use \`--host'. |
2727 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2728 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2729 | If you meant to cross compile, use \`--host'. |
2730 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2731 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2732 | fi |
795ca3e5 | 2733 | fi |
80992638 | 2734 | fi |
ec6a6fbe AK |
2735 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2736 | $as_echo "yes" >&6; } | |
ad6254c5 | 2737 | |
ec6a6fbe | 2738 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2739 | ac_clean_files=$ac_clean_files_save |
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 we are cross compiling" >&5 |
2743 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2744 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2745 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2746 | |
ec6a6fbe AK |
2747 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2748 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2749 | if { (ac_try="$ac_link" |
2750 | case "(($ac_try" in | |
2751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2752 | *) ac_try_echo=$ac_try;; | |
2753 | esac | |
ec6a6fbe AK |
2754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2755 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2756 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2757 | ac_status=$? |
ec6a6fbe | 2758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2759 | (exit $ac_status); }; then |
2760 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2761 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2762 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2763 | # `rm'. | |
2764 | for ac_file in conftest.exe conftest conftest.*; do | |
2765 | test -f "$ac_file" || continue | |
2766 | case $ac_file in | |
ec6a6fbe | 2767 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2768 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2769 | break;; |
ad6254c5 AK |
2770 | * ) break;; |
2771 | esac | |
2772 | done | |
80992638 | 2773 | else |
ec6a6fbe AK |
2774 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2775 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2776 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2777 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2778 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2779 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2780 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2781 | fi |
2782 | ||
2783 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2784 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2785 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2786 | |
2787 | rm -f conftest.$ac_ext | |
2788 | EXEEXT=$ac_cv_exeext | |
2789 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2790 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2791 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2792 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2793 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2794 | else |
ad6254c5 | 2795 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2796 | /* confdefs.h. */ |
2797 | _ACEOF | |
2798 | cat confdefs.h >>conftest.$ac_ext | |
2799 | cat >>conftest.$ac_ext <<_ACEOF | |
2800 | /* end confdefs.h. */ | |
2801 | ||
2802 | int | |
2803 | main () | |
2804 | { | |
2805 | ||
2806 | ; | |
2807 | return 0; | |
2808 | } | |
2809 | _ACEOF | |
2810 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2811 | if { (ac_try="$ac_compile" |
2812 | case "(($ac_try" in | |
2813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2814 | *) ac_try_echo=$ac_try;; | |
2815 | esac | |
ec6a6fbe AK |
2816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2817 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2818 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2819 | ac_status=$? |
ec6a6fbe | 2820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2821 | (exit $ac_status); }; then |
7a197a62 AK |
2822 | for ac_file in conftest.o conftest.obj conftest.*; do |
2823 | test -f "$ac_file" || continue; | |
ad6254c5 | 2824 | case $ac_file in |
ec6a6fbe | 2825 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2826 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2827 | break;; | |
2828 | esac | |
2829 | done | |
2830 | else | |
ec6a6fbe | 2831 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2832 | sed 's/^/| /' conftest.$ac_ext >&5 |
2833 | ||
ec6a6fbe AK |
2834 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2836 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2837 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2838 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2839 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2840 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2841 | fi |
2842 | ||
2843 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2844 | fi | |
ec6a6fbe AK |
2845 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2846 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2847 | OBJEXT=$ac_cv_objext |
2848 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2849 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2850 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2851 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2852 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2853 | else |
2854 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2855 | /* confdefs.h. */ |
2856 | _ACEOF | |
2857 | cat confdefs.h >>conftest.$ac_ext | |
2858 | cat >>conftest.$ac_ext <<_ACEOF | |
2859 | /* end confdefs.h. */ | |
2860 | ||
2861 | int | |
2862 | main () | |
2863 | { | |
2864 | #ifndef __GNUC__ | |
2865 | choke me | |
2866 | #endif | |
80992638 | 2867 | |
ad6254c5 AK |
2868 | ; |
2869 | return 0; | |
2870 | } | |
2871 | _ACEOF | |
2872 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2873 | if { (ac_try="$ac_compile" |
2874 | case "(($ac_try" in | |
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2876 | *) ac_try_echo=$ac_try;; | |
2877 | esac | |
ec6a6fbe AK |
2878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2879 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2880 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2881 | ac_status=$? |
8a2fc586 AK |
2882 | grep -v '^ *+' conftest.er1 >conftest.err |
2883 | rm -f conftest.er1 | |
2884 | cat conftest.err >&5 | |
ec6a6fbe | 2885 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2886 | (exit $ac_status); } && { |
2887 | test -z "$ac_c_werror_flag" || | |
2888 | test ! -s conftest.err | |
2889 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2890 | ac_compiler_gnu=yes |
80992638 | 2891 | else |
ec6a6fbe | 2892 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2893 | sed 's/^/| /' conftest.$ac_ext >&5 |
2894 | ||
7a197a62 | 2895 | ac_compiler_gnu=no |
8106cdd5 | 2896 | fi |
7a197a62 AK |
2897 | |
2898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2899 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2900 | |
ad6254c5 | 2901 | fi |
ec6a6fbe AK |
2902 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2903 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2904 | if test $ac_compiler_gnu = yes; then | |
2905 | GCC=yes | |
2906 | else | |
2907 | GCC= | |
2908 | fi | |
ad6254c5 AK |
2909 | ac_test_CFLAGS=${CFLAGS+set} |
2910 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
2911 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2912 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2913 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 2914 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2915 | else |
7a197a62 AK |
2916 | ac_save_c_werror_flag=$ac_c_werror_flag |
2917 | ac_c_werror_flag=yes | |
2918 | ac_cv_prog_cc_g=no | |
2919 | CFLAGS="-g" | |
2920 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2921 | /* confdefs.h. */ |
2922 | _ACEOF | |
2923 | cat confdefs.h >>conftest.$ac_ext | |
2924 | cat >>conftest.$ac_ext <<_ACEOF | |
2925 | /* end confdefs.h. */ | |
2926 | ||
2927 | int | |
2928 | main () | |
2929 | { | |
2930 | ||
2931 | ; | |
2932 | return 0; | |
2933 | } | |
2934 | _ACEOF | |
2935 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2936 | if { (ac_try="$ac_compile" |
2937 | case "(($ac_try" in | |
2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2939 | *) ac_try_echo=$ac_try;; | |
2940 | esac | |
ec6a6fbe AK |
2941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2942 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2943 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2944 | ac_status=$? |
8a2fc586 AK |
2945 | grep -v '^ *+' conftest.er1 >conftest.err |
2946 | rm -f conftest.er1 | |
2947 | cat conftest.err >&5 | |
ec6a6fbe | 2948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2949 | (exit $ac_status); } && { |
2950 | test -z "$ac_c_werror_flag" || | |
2951 | test ! -s conftest.err | |
2952 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2953 | ac_cv_prog_cc_g=yes |
2954 | else | |
ec6a6fbe | 2955 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2956 | sed 's/^/| /' conftest.$ac_ext >&5 |
2957 | ||
2958 | CFLAGS="" | |
2959 | cat >conftest.$ac_ext <<_ACEOF | |
2960 | /* confdefs.h. */ | |
2961 | _ACEOF | |
2962 | cat confdefs.h >>conftest.$ac_ext | |
2963 | cat >>conftest.$ac_ext <<_ACEOF | |
2964 | /* end confdefs.h. */ | |
2965 | ||
2966 | int | |
2967 | main () | |
2968 | { | |
2969 | ||
2970 | ; | |
2971 | return 0; | |
2972 | } | |
2973 | _ACEOF | |
2974 | rm -f conftest.$ac_objext | |
2975 | if { (ac_try="$ac_compile" | |
2976 | case "(($ac_try" in | |
2977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2978 | *) ac_try_echo=$ac_try;; | |
2979 | esac | |
ec6a6fbe AK |
2980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2981 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2982 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2983 | ac_status=$? |
7a197a62 AK |
2984 | grep -v '^ *+' conftest.er1 >conftest.err |
2985 | rm -f conftest.er1 | |
2986 | cat conftest.err >&5 | |
ec6a6fbe | 2987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2988 | (exit $ac_status); } && { |
2989 | test -z "$ac_c_werror_flag" || | |
2990 | test ! -s conftest.err | |
2991 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2992 | : |
2993 | else | |
ec6a6fbe | 2994 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2995 | sed 's/^/| /' conftest.$ac_ext >&5 |
2996 | ||
2997 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2998 | CFLAGS="-g" | |
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 |
ad6254c5 | 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 | |
795ca3e5 AK |
3032 | ac_cv_prog_cc_g=yes |
3033 | else | |
ec6a6fbe | 3034 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3035 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3036 | |
7a197a62 AK |
3037 | |
3038 | fi | |
3039 | ||
3040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3041 | fi | |
3042 | ||
3043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3044 | fi |
7a197a62 AK |
3045 | |
3046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3047 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3048 | fi |
ec6a6fbe AK |
3049 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3050 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3051 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3052 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3053 | elif test $ac_cv_prog_cc_g = yes; then |
3054 | if test "$GCC" = yes; then | |
3055 | CFLAGS="-g -O2" | |
3056 | else | |
3057 | CFLAGS="-g" | |
3058 | fi | |
3059 | else | |
3060 | if test "$GCC" = yes; then | |
3061 | CFLAGS="-O2" | |
3062 | else | |
3063 | CFLAGS= | |
3064 | fi | |
3065 | fi | |
ec6a6fbe AK |
3066 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3067 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3068 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3069 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3070 | else |
7a197a62 | 3071 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3072 | ac_save_CC=$CC |
3073 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3074 | /* confdefs.h. */ |
3075 | _ACEOF | |
3076 | cat confdefs.h >>conftest.$ac_ext | |
3077 | cat >>conftest.$ac_ext <<_ACEOF | |
3078 | /* end confdefs.h. */ | |
3079 | #include <stdarg.h> | |
3080 | #include <stdio.h> | |
3081 | #include <sys/types.h> | |
3082 | #include <sys/stat.h> | |
3083 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3084 | struct buf { int x; }; | |
3085 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3086 | static char *e (p, i) | |
3087 | char **p; | |
3088 | int i; | |
3089 | { | |
3090 | return p[i]; | |
3091 | } | |
3092 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3093 | { | |
3094 | char *s; | |
3095 | va_list v; | |
3096 | va_start (v,p); | |
3097 | s = g (p, va_arg (v,int)); | |
3098 | va_end (v); | |
3099 | return s; | |
3100 | } | |
8a2fc586 AK |
3101 | |
3102 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3103 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3104 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3105 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3106 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3107 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3108 | that's true only with -std. */ |
8a2fc586 AK |
3109 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3110 | ||
7a197a62 AK |
3111 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3112 | inside strings and character constants. */ | |
3113 | #define FOO(x) 'x' | |
3114 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3115 | ||
ad6254c5 AK |
3116 | int test (int i, double x); |
3117 | struct s1 {int (*f) (int a);}; | |
3118 | struct s2 {int (*f) (double a);}; | |
3119 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3120 | int argc; | |
3121 | char **argv; | |
3122 | int | |
3123 | main () | |
3124 | { | |
3125 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3126 | ; | |
3127 | return 0; | |
3128 | } | |
3129 | _ACEOF | |
7a197a62 AK |
3130 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3131 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3132 | do |
3133 | CC="$ac_save_CC $ac_arg" | |
3134 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3135 | if { (ac_try="$ac_compile" |
3136 | case "(($ac_try" in | |
3137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3138 | *) ac_try_echo=$ac_try;; | |
3139 | esac | |
ec6a6fbe AK |
3140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3141 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3142 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3143 | ac_status=$? |
8a2fc586 AK |
3144 | grep -v '^ *+' conftest.er1 >conftest.err |
3145 | rm -f conftest.er1 | |
3146 | cat conftest.err >&5 | |
ec6a6fbe | 3147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3148 | (exit $ac_status); } && { |
3149 | test -z "$ac_c_werror_flag" || | |
3150 | test ! -s conftest.err | |
3151 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3152 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3153 | else |
ec6a6fbe | 3154 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3155 | sed 's/^/| /' conftest.$ac_ext >&5 |
3156 | ||
7a197a62 | 3157 | |
ad6254c5 | 3158 | fi |
7a197a62 AK |
3159 | |
3160 | rm -f core conftest.err conftest.$ac_objext | |
3161 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3162 | done |
7a197a62 | 3163 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3164 | CC=$ac_save_CC |
3165 | ||
3166 | fi | |
7a197a62 AK |
3167 | # AC_CACHE_VAL |
3168 | case "x$ac_cv_prog_cc_c89" in | |
3169 | x) | |
ec6a6fbe AK |
3170 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3171 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3172 | xno) |
ec6a6fbe AK |
3173 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3174 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3175 | *) |
7a197a62 | 3176 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3177 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3178 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3179 | esac |
3180 | ||
ad6254c5 | 3181 | |
ad6254c5 AK |
3182 | ac_ext=c |
3183 | ac_cpp='$CPP $CPPFLAGS' | |
3184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3187 | |
d0191583 JM |
3188 | |
3189 | ||
3190 | ac_ext=c | |
3191 | ac_cpp='$CPP $CPPFLAGS' | |
3192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3195 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3196 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3197 | # On Suns, sometimes $CPP names a directory. |
3198 | if test -n "$CPP" && test -d "$CPP"; then | |
3199 | CPP= | |
3200 | fi | |
3201 | if test -z "$CPP"; then | |
3202 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3203 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3204 | else |
d0191583 JM |
3205 | # Double quotes because CPP needs to be expanded |
3206 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3207 | do | |
3208 | ac_preproc_ok=false | |
3209 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3210 | do |
d0191583 JM |
3211 | # Use a header file that comes with gcc, so configuring glibc |
3212 | # with a fresh cross-compiler works. | |
3213 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3214 | # <limits.h> exists even on freestanding compilers. | |
3215 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3216 | # not just through cpp. "Syntax error" is here to catch this case. | |
3217 | cat >conftest.$ac_ext <<_ACEOF | |
3218 | /* confdefs.h. */ | |
3219 | _ACEOF | |
3220 | cat confdefs.h >>conftest.$ac_ext | |
3221 | cat >>conftest.$ac_ext <<_ACEOF | |
3222 | /* end confdefs.h. */ | |
3223 | #ifdef __STDC__ | |
3224 | # include <limits.h> | |
3225 | #else | |
3226 | # include <assert.h> | |
3227 | #endif | |
3228 | Syntax error | |
3229 | _ACEOF | |
3230 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3231 | case "(($ac_try" in | |
3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3233 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3234 | esac |
ec6a6fbe AK |
3235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3236 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3237 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3238 | ac_status=$? | |
3239 | grep -v '^ *+' conftest.er1 >conftest.err | |
3240 | rm -f conftest.er1 | |
3241 | cat conftest.err >&5 | |
ec6a6fbe | 3242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3243 | (exit $ac_status); } >/dev/null && { |
3244 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3245 | test ! -s conftest.err | |
3246 | }; then | |
3247 | : | |
3248 | else | |
ec6a6fbe | 3249 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3250 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3251 | |
d0191583 JM |
3252 | # Broken: fails on valid input. |
3253 | continue | |
795ca3e5 | 3254 | fi |
795ca3e5 | 3255 | |
d0191583 | 3256 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3257 | |
d0191583 JM |
3258 | # OK, works on sane cases. Now check whether nonexistent headers |
3259 | # can be detected and how. | |
3260 | cat >conftest.$ac_ext <<_ACEOF | |
3261 | /* confdefs.h. */ | |
3262 | _ACEOF | |
3263 | cat confdefs.h >>conftest.$ac_ext | |
3264 | cat >>conftest.$ac_ext <<_ACEOF | |
3265 | /* end confdefs.h. */ | |
3266 | #include <ac_nonexistent.h> | |
3267 | _ACEOF | |
3268 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3269 | case "(($ac_try" in | |
3270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3271 | *) ac_try_echo=$ac_try;; | |
3272 | esac | |
ec6a6fbe AK |
3273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3274 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3276 | ac_status=$? | |
3277 | grep -v '^ *+' conftest.er1 >conftest.err | |
3278 | rm -f conftest.er1 | |
3279 | cat conftest.err >&5 | |
ec6a6fbe | 3280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3281 | (exit $ac_status); } >/dev/null && { |
3282 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3283 | test ! -s conftest.err | |
3284 | }; then | |
3285 | # Broken: success on invalid input. | |
3286 | continue | |
3287 | else | |
ec6a6fbe | 3288 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3289 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3290 | |
d0191583 JM |
3291 | # Passes both tests. |
3292 | ac_preproc_ok=: | |
3293 | break | |
3294 | fi | |
795ca3e5 | 3295 | |
d0191583 JM |
3296 | rm -f conftest.err conftest.$ac_ext |
3297 | ||
3298 | done | |
3299 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3300 | rm -f conftest.err conftest.$ac_ext | |
3301 | if $ac_preproc_ok; then | |
3302 | break | |
795ca3e5 AK |
3303 | fi |
3304 | ||
d0191583 JM |
3305 | done |
3306 | ac_cv_prog_CPP=$CPP | |
3307 | ||
3308 | fi | |
3309 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3310 | else |
d0191583 JM |
3311 | ac_cv_prog_CPP=$CPP |
3312 | fi | |
ec6a6fbe AK |
3313 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3314 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3315 | ac_preproc_ok=false |
3316 | for ac_c_preproc_warn_flag in '' yes | |
3317 | do | |
3318 | # Use a header file that comes with gcc, so configuring glibc | |
3319 | # with a fresh cross-compiler works. | |
3320 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3321 | # <limits.h> exists even on freestanding compilers. | |
3322 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3323 | # not just through cpp. "Syntax error" is here to catch this case. | |
3324 | cat >conftest.$ac_ext <<_ACEOF | |
3325 | /* confdefs.h. */ | |
ad6254c5 | 3326 | _ACEOF |
d0191583 JM |
3327 | cat confdefs.h >>conftest.$ac_ext |
3328 | cat >>conftest.$ac_ext <<_ACEOF | |
3329 | /* end confdefs.h. */ | |
3330 | #ifdef __STDC__ | |
3331 | # include <limits.h> | |
3332 | #else | |
3333 | # include <assert.h> | |
3334 | #endif | |
3335 | Syntax error | |
3336 | _ACEOF | |
3337 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3338 | case "(($ac_try" in | |
3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3340 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3341 | esac |
ec6a6fbe AK |
3342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3343 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3345 | ac_status=$? | |
3346 | grep -v '^ *+' conftest.er1 >conftest.err | |
3347 | rm -f conftest.er1 | |
3348 | cat conftest.err >&5 | |
ec6a6fbe | 3349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3350 | (exit $ac_status); } >/dev/null && { |
3351 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3352 | test ! -s conftest.err | |
3353 | }; then | |
3354 | : | |
795ca3e5 | 3355 | else |
ec6a6fbe | 3356 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
3358 | ||
3359 | # Broken: fails on valid input. | |
3360 | continue | |
795ca3e5 AK |
3361 | fi |
3362 | ||
d0191583 JM |
3363 | rm -f conftest.err conftest.$ac_ext |
3364 | ||
3365 | # OK, works on sane cases. Now check whether nonexistent headers | |
3366 | # can be detected and how. | |
3367 | cat >conftest.$ac_ext <<_ACEOF | |
3368 | /* confdefs.h. */ | |
3369 | _ACEOF | |
3370 | cat confdefs.h >>conftest.$ac_ext | |
3371 | cat >>conftest.$ac_ext <<_ACEOF | |
3372 | /* end confdefs.h. */ | |
3373 | #include <ac_nonexistent.h> | |
3374 | _ACEOF | |
3375 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3376 | case "(($ac_try" in | |
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3378 | *) ac_try_echo=$ac_try;; | |
3379 | esac | |
ec6a6fbe AK |
3380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3381 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3383 | ac_status=$? | |
3384 | grep -v '^ *+' conftest.er1 >conftest.err | |
3385 | rm -f conftest.er1 | |
3386 | cat conftest.err >&5 | |
ec6a6fbe | 3387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3388 | (exit $ac_status); } >/dev/null && { |
3389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3390 | test ! -s conftest.err | |
3391 | }; then | |
3392 | # Broken: success on invalid input. | |
3393 | continue | |
795ca3e5 | 3394 | else |
ec6a6fbe | 3395 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3396 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3397 | |
d0191583 JM |
3398 | # Passes both tests. |
3399 | ac_preproc_ok=: | |
3400 | break | |
795ca3e5 | 3401 | fi |
d0191583 JM |
3402 | |
3403 | rm -f conftest.err conftest.$ac_ext | |
3404 | ||
3405 | done | |
3406 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3407 | rm -f conftest.err conftest.$ac_ext | |
3408 | if $ac_preproc_ok; then | |
3409 | : | |
8106cdd5 | 3410 | else |
ec6a6fbe AK |
3411 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3413 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3414 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3415 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3416 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3417 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3418 | fi |
3419 | ||
d0191583 JM |
3420 | ac_ext=c |
3421 | ac_cpp='$CPP $CPPFLAGS' | |
3422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3425 | ||
7a197a62 | 3426 | |
ec6a6fbe AK |
3427 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3428 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3429 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3430 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3431 | else |
ec6a6fbe | 3432 | if test -z "$GREP"; then |
d0191583 | 3433 | ac_path_GREP_found=false |
ec6a6fbe AK |
3434 | # Loop through the user's path and test for each of PROGNAME-LIST |
3435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3436 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3437 | do |
3438 | IFS=$as_save_IFS | |
3439 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3440 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3441 | for ac_exec_ext in '' $ac_executable_extensions; do |
3442 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3443 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3444 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3445 | # Check for GNU $ac_path_GREP |
3446 | case `"$ac_path_GREP" --version 2>&1` in | |
3447 | *GNU*) | |
3448 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3449 | *) | |
3450 | ac_count=0 | |
ec6a6fbe | 3451 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3452 | while : |
3453 | do | |
3454 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3455 | mv "conftest.tmp" "conftest.in" | |
3456 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3457 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3458 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3459 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3460 | ac_count=`expr $ac_count + 1` | |
3461 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3462 | # Best one so far, save it but keep looking for a better one | |
3463 | ac_cv_path_GREP="$ac_path_GREP" | |
3464 | ac_path_GREP_max=$ac_count | |
3465 | fi | |
3466 | # 10*(2^10) chars as input seems more than enough | |
3467 | test $ac_count -gt 10 && break | |
3468 | done | |
3469 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3470 | esac | |
3471 | ||
ec6a6fbe AK |
3472 | $ac_path_GREP_found && break 3 |
3473 | done | |
d0191583 | 3474 | done |
ad6254c5 | 3475 | done |
7a197a62 | 3476 | IFS=$as_save_IFS |
ec6a6fbe AK |
3477 | if test -z "$ac_cv_path_GREP"; then |
3478 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3479 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3480 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3481 | fi |
80992638 | 3482 | else |
d0191583 | 3483 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3484 | fi |
8106cdd5 | 3485 | |
80992638 | 3486 | fi |
ec6a6fbe AK |
3487 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3488 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3489 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3490 | |
d0191583 | 3491 | |
ec6a6fbe AK |
3492 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3493 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3494 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3495 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3496 | else |
d0191583 JM |
3497 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3498 | then ac_cv_path_EGREP="$GREP -E" | |
3499 | else | |
ec6a6fbe | 3500 | if test -z "$EGREP"; then |
d0191583 | 3501 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3502 | # Loop through the user's path and test for each of PROGNAME-LIST |
3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3504 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3505 | do |
3506 | IFS=$as_save_IFS | |
3507 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3508 | for ac_prog in egrep; do |
ec6a6fbe AK |
3509 | for ac_exec_ext in '' $ac_executable_extensions; do |
3510 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3511 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3512 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3513 | # Check for GNU $ac_path_EGREP |
3514 | case `"$ac_path_EGREP" --version 2>&1` in | |
3515 | *GNU*) | |
3516 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3517 | *) | |
3518 | ac_count=0 | |
ec6a6fbe | 3519 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3520 | while : |
3521 | do | |
3522 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3523 | mv "conftest.tmp" "conftest.in" | |
3524 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3525 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3526 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3527 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3528 | ac_count=`expr $ac_count + 1` | |
3529 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3530 | # Best one so far, save it but keep looking for a better one | |
3531 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3532 | ac_path_EGREP_max=$ac_count | |
3533 | fi | |
3534 | # 10*(2^10) chars as input seems more than enough | |
3535 | test $ac_count -gt 10 && break | |
3536 | done | |
3537 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3538 | esac |
8a2fc586 | 3539 | |
ec6a6fbe AK |
3540 | $ac_path_EGREP_found && break 3 |
3541 | done | |
d0191583 | 3542 | done |
8a2fc586 | 3543 | done |
7a197a62 | 3544 | IFS=$as_save_IFS |
ec6a6fbe AK |
3545 | if test -z "$ac_cv_path_EGREP"; then |
3546 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3547 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3548 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3549 | fi |
d0191583 JM |
3550 | else |
3551 | ac_cv_path_EGREP=$EGREP | |
3552 | fi | |
ad6254c5 | 3553 | |
d0191583 JM |
3554 | fi |
3555 | fi | |
ec6a6fbe AK |
3556 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3557 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3558 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3559 | |
3560 | ||
d0191583 | 3561 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3562 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3563 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3564 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3565 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3566 | else |
d0191583 | 3567 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3568 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3569 | /* confdefs.h. */ |
3570 | _ACEOF | |
3571 | cat confdefs.h >>conftest.$ac_ext | |
3572 | cat >>conftest.$ac_ext <<_ACEOF | |
3573 | /* end confdefs.h. */ | |
d0191583 JM |
3574 | #include <sgtty.h> |
3575 | Autoconf TIOCGETP | |
ad6254c5 | 3576 | _ACEOF |
d0191583 JM |
3577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3578 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3579 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3580 | else |
d0191583 | 3581 | ac_cv_prog_gcc_traditional=no |
80992638 | 3582 | fi |
d0191583 | 3583 | rm -f conftest* |
ad6254c5 | 3584 | |
8106cdd5 | 3585 | |
d0191583 JM |
3586 | if test $ac_cv_prog_gcc_traditional = no; then |
3587 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3588 | /* confdefs.h. */ |
3589 | _ACEOF | |
3590 | cat confdefs.h >>conftest.$ac_ext | |
3591 | cat >>conftest.$ac_ext <<_ACEOF | |
3592 | /* end confdefs.h. */ | |
d0191583 JM |
3593 | #include <termio.h> |
3594 | Autoconf TCGETA | |
ad6254c5 | 3595 | _ACEOF |
d0191583 JM |
3596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3597 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3598 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3599 | fi |
d0191583 | 3600 | rm -f conftest* |
795ca3e5 | 3601 | |
d0191583 | 3602 | fi |
795ca3e5 | 3603 | fi |
ec6a6fbe AK |
3604 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3605 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3606 | if test $ac_cv_prog_gcc_traditional = yes; then |
3607 | CC="$CC -traditional" | |
3608 | fi | |
795ca3e5 AK |
3609 | fi |
3610 | ||
d0191583 JM |
3611 | # Find a good install program. We prefer a C program (faster), |
3612 | # so one script is as good as another. But avoid the broken or | |
3613 | # incompatible versions: | |
3614 | # SysV /etc/install, /usr/sbin/install | |
3615 | # SunOS /usr/etc/install | |
3616 | # IRIX /sbin/install | |
3617 | # AIX /bin/install | |
3618 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3619 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3620 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3621 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3622 | # OS/2's system install, which has a completely different semantic | |
3623 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3624 | # Reject install programs that cannot install multiple files. |
3625 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3626 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3627 | if test -z "$INSTALL"; then |
3628 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3629 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3630 | else |
d0191583 JM |
3631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3632 | for as_dir in $PATH | |
3633 | do | |
3634 | IFS=$as_save_IFS | |
3635 | test -z "$as_dir" && as_dir=. | |
3636 | # Account for people who put trailing slashes in PATH elements. | |
3637 | case $as_dir/ in | |
3638 | ./ | .// | /cC/* | \ | |
3639 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3640 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3641 | /usr/ucb/* ) ;; | |
3642 | *) | |
3643 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3644 | # Don't use installbsd from OSF since it installs stuff as root | |
3645 | # by default. | |
3646 | for ac_prog in ginstall scoinst install; do | |
3647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3648 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3649 | if test $ac_prog = install && | |
3650 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3651 | # AIX install. It has an incompatible calling convention. | |
3652 | : | |
3653 | elif test $ac_prog = install && | |
3654 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3655 | # program-specific install script used by HP pwplus--don't use. | |
3656 | : | |
3657 | else | |
ec6a6fbe AK |
3658 | rm -rf conftest.one conftest.two conftest.dir |
3659 | echo one > conftest.one | |
3660 | echo two > conftest.two | |
3661 | mkdir conftest.dir | |
3662 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3663 | test -s conftest.one && test -s conftest.two && | |
3664 | test -s conftest.dir/conftest.one && | |
3665 | test -s conftest.dir/conftest.two | |
3666 | then | |
3667 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3668 | break 3 | |
3669 | fi | |
d0191583 JM |
3670 | fi |
3671 | fi | |
3672 | done | |
3673 | done | |
3674 | ;; | |
3675 | esac | |
ec6a6fbe | 3676 | |
d0191583 JM |
3677 | done |
3678 | IFS=$as_save_IFS | |
80992638 | 3679 | |
ec6a6fbe | 3680 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3681 | |
3682 | fi | |
3683 | if test "${ac_cv_path_install+set}" = set; then | |
3684 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3685 | else |
d0191583 JM |
3686 | # As a last resort, use the slow shell script. Don't cache a |
3687 | # value for INSTALL within a source directory, because that will | |
3688 | # break other packages using the cache if that directory is | |
3689 | # removed, or if the value is a relative name. | |
3690 | INSTALL=$ac_install_sh | |
7a197a62 | 3691 | fi |
d0191583 | 3692 | fi |
ec6a6fbe AK |
3693 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3694 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3695 | |
d0191583 JM |
3696 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3697 | # It thinks the first close brace ends the variable substitution. | |
3698 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3699 | |
d0191583 | 3700 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3701 | |
d0191583 JM |
3702 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3703 | ||
ec6a6fbe AK |
3704 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3705 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3706 | LN_S=$as_ln_s |
3707 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3708 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3709 | $as_echo "yes" >&6; } | |
d0191583 | 3710 | else |
ec6a6fbe AK |
3711 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3712 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3713 | fi |
d0191583 | 3714 | |
ec6a6fbe AK |
3715 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3716 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3717 | set x ${MAKE-make} | |
3718 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3719 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3720 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3721 | else |
d0191583 JM |
3722 | cat >conftest.make <<\_ACEOF |
3723 | SHELL = /bin/sh | |
3724 | all: | |
3725 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3726 | _ACEOF | |
3727 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3728 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3729 | *@@@%%%=?*=@@@%%%*) | |
3730 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3731 | *) | |
3732 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3733 | esac | |
3734 | rm -f conftest.make | |
ad6254c5 | 3735 | fi |
d0191583 | 3736 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3737 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3738 | $as_echo "yes" >&6; } | |
d0191583 JM |
3739 | SET_MAKE= |
3740 | else | |
ec6a6fbe AK |
3741 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3742 | $as_echo "no" >&6; } | |
d0191583 | 3743 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3744 | fi |
8106cdd5 | 3745 | |
ec6a6fbe AK |
3746 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3747 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3748 | if test -z "$MKDIR_P"; then |
3749 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3750 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3751 | else |
3752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3753 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3754 | do | |
3755 | IFS=$as_save_IFS | |
3756 | test -z "$as_dir" && as_dir=. | |
3757 | for ac_prog in mkdir gmkdir; do | |
3758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3759 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3760 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3761 | 'mkdir (GNU coreutils) '* | \ | |
3762 | 'mkdir (coreutils) '* | \ | |
3763 | 'mkdir (fileutils) '4.1*) | |
3764 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3765 | break 3;; | |
3766 | esac | |
3767 | done | |
3768 | done | |
3769 | done | |
3770 | IFS=$as_save_IFS | |
3771 | ||
3772 | fi | |
3773 | ||
3774 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3775 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3776 | else | |
3777 | # As a last resort, use the slow shell script. Don't cache a | |
3778 | # value for MKDIR_P within a source directory, because that will | |
3779 | # break other packages using the cache if that directory is | |
3780 | # removed, or if the value is a relative name. | |
3781 | test -d ./--version && rmdir ./--version | |
3782 | MKDIR_P="$ac_install_sh -d" | |
3783 | fi | |
3784 | fi | |
ec6a6fbe AK |
3785 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3786 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3787 | |
d0191583 JM |
3788 | if test -n "$ac_tool_prefix"; then |
3789 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3790 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3791 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3792 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3793 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3794 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3795 | else |
3796 | if test -n "$RANLIB"; then | |
3797 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3798 | else | |
3799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3800 | for as_dir in $PATH | |
3801 | do | |
3802 | IFS=$as_save_IFS | |
3803 | test -z "$as_dir" && as_dir=. | |
3804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3806 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3807 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3808 | break 2 |
3809 | fi | |
3810 | done | |
3811 | done | |
3812 | IFS=$as_save_IFS | |
8106cdd5 | 3813 | |
795ca3e5 | 3814 | fi |
d0191583 JM |
3815 | fi |
3816 | RANLIB=$ac_cv_prog_RANLIB | |
3817 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3818 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3819 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3820 | else |
ec6a6fbe AK |
3821 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3822 | $as_echo "no" >&6; } | |
d0191583 JM |
3823 | fi |
3824 | ||
8106cdd5 | 3825 | |
ad6254c5 | 3826 | fi |
d0191583 JM |
3827 | if test -z "$ac_cv_prog_RANLIB"; then |
3828 | ac_ct_RANLIB=$RANLIB | |
3829 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3830 | set dummy 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_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3834 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3835 | else |
d0191583 JM |
3836 | if test -n "$ac_ct_RANLIB"; then |
3837 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3838 | else | |
3839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3840 | for as_dir in $PATH | |
8106cdd5 | 3841 | do |
d0191583 JM |
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_ac_ct_RANLIB="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 | |
3853 | ||
3854 | fi | |
3855 | fi | |
3856 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3857 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3858 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3859 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3860 | else |
ec6a6fbe AK |
3861 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3862 | $as_echo "no" >&6; } | |
d0191583 | 3863 | fi |
ad6254c5 | 3864 | |
d0191583 JM |
3865 | if test "x$ac_ct_RANLIB" = x; then |
3866 | RANLIB=":" | |
3867 | else | |
3868 | case $cross_compiling:$ac_tool_warned in | |
3869 | yes:) | |
ec6a6fbe AK |
3870 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3871 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3872 | ac_tool_warned=yes ;; |
3873 | esac | |
3874 | RANLIB=$ac_ct_RANLIB | |
3875 | fi | |
3876 | else | |
3877 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3878 | fi |
7a197a62 | 3879 | |
d0191583 JM |
3880 | # Extract the first word of "cflow", so it can be a program name with args. |
3881 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3882 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3883 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3884 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3885 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3886 | else |
3887 | case $CFLOW_CMD in | |
3888 | [\\/]* | ?:[\\/]*) | |
3889 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3890 | ;; | |
3891 | *) | |
3892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 | for as_dir in $PATH | |
3894 | do | |
3895 | IFS=$as_save_IFS | |
3896 | test -z "$as_dir" && as_dir=. | |
3897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3899 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3900 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3901 | break 2 |
3902 | fi | |
3903 | done | |
3904 | done | |
3905 | IFS=$as_save_IFS | |
ad6254c5 | 3906 | |
d0191583 | 3907 | ;; |
7a197a62 | 3908 | esac |
d0191583 JM |
3909 | fi |
3910 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3911 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
3912 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3913 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 3914 | else |
ec6a6fbe AK |
3915 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3916 | $as_echo "no" >&6; } | |
795ca3e5 | 3917 | fi |
7a197a62 | 3918 | |
ad6254c5 | 3919 | |
d0191583 JM |
3920 | # Extract the first word of "cscope", so it can be a program name with args. |
3921 | set dummy cscope; 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_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 3925 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3926 | else |
3927 | case $CSCOPE_CMD in | |
3928 | [\\/]* | ?:[\\/]*) | |
3929 | ac_cv_path_CSCOPE_CMD="$CSCOPE_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_CSCOPE_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 | |
795ca3e5 | 3943 | done |
d0191583 JM |
3944 | done |
3945 | IFS=$as_save_IFS | |
795ca3e5 | 3946 | |
d0191583 JM |
3947 | ;; |
3948 | esac | |
ad6254c5 | 3949 | fi |
d0191583 JM |
3950 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3951 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
3952 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3953 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3954 | else |
ec6a6fbe AK |
3955 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3956 | $as_echo "no" >&6; } | |
795ca3e5 | 3957 | fi |
ad6254c5 | 3958 | |
7a197a62 | 3959 | |
ad6254c5 | 3960 | |
d0191583 JM |
3961 | ################################################################################ |
3962 | ||
3963 | ||
3964 | ||
3965 | ||
3966 | ||
3967 | ac_header_dirent=no | |
3968 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
3969 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3970 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3971 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 3972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3973 | $as_echo_n "(cached) " >&6 |
d0191583 | 3974 | else |
ad6254c5 | 3975 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3976 | /* confdefs.h. */ |
3977 | _ACEOF | |
3978 | cat confdefs.h >>conftest.$ac_ext | |
3979 | cat >>conftest.$ac_ext <<_ACEOF | |
3980 | /* end confdefs.h. */ | |
d0191583 JM |
3981 | #include <sys/types.h> |
3982 | #include <$ac_hdr> | |
3983 | ||
3984 | int | |
3985 | main () | |
3986 | { | |
3987 | if ((DIR *) 0) | |
3988 | return 0; | |
3989 | ; | |
3990 | return 0; | |
3991 | } | |
ad6254c5 | 3992 | _ACEOF |
d0191583 JM |
3993 | rm -f conftest.$ac_objext |
3994 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3995 | case "(($ac_try" in |
3996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3997 | *) ac_try_echo=$ac_try;; | |
3998 | esac | |
ec6a6fbe AK |
3999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4000 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4001 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4002 | ac_status=$? |
4003 | grep -v '^ *+' conftest.er1 >conftest.err | |
4004 | rm -f conftest.er1 | |
4005 | cat conftest.err >&5 | |
ec6a6fbe | 4006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4007 | (exit $ac_status); } && { |
4008 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4009 | test ! -s conftest.err |
d0191583 JM |
4010 | } && test -s conftest.$ac_objext; then |
4011 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4012 | else |
ec6a6fbe | 4013 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4014 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4015 | |
d0191583 | 4016 | eval "$as_ac_Header=no" |
795ca3e5 | 4017 | fi |
7a197a62 | 4018 | |
d0191583 | 4019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4020 | fi |
ec6a6fbe AK |
4021 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4022 | $as_echo "$as_val"'` | |
4023 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4024 | $as_echo "$ac_res" >&6; } | |
4025 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4026 | $as_echo "$as_val"'` | |
4027 | if test "x$as_val" = x""yes; then | |
d0191583 | 4028 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4029 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4030 | _ACEOF |
795ca3e5 | 4031 | |
d0191583 JM |
4032 | ac_header_dirent=$ac_hdr; break |
4033 | fi | |
ad6254c5 | 4034 | |
d0191583 JM |
4035 | done |
4036 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4037 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4038 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4039 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4040 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4041 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4042 | else |
d0191583 JM |
4043 | ac_func_search_save_LIBS=$LIBS |
4044 | cat >conftest.$ac_ext <<_ACEOF | |
4045 | /* confdefs.h. */ | |
4046 | _ACEOF | |
4047 | cat confdefs.h >>conftest.$ac_ext | |
4048 | cat >>conftest.$ac_ext <<_ACEOF | |
4049 | /* end confdefs.h. */ | |
ad6254c5 | 4050 | |
d0191583 JM |
4051 | /* Override any GCC internal prototype to avoid an error. |
4052 | Use char because int might match the return type of a GCC | |
4053 | builtin and then its argument prototype would still apply. */ | |
4054 | #ifdef __cplusplus | |
4055 | extern "C" | |
4056 | #endif | |
4057 | char opendir (); | |
4058 | int | |
4059 | main () | |
4060 | { | |
4061 | return opendir (); | |
4062 | ; | |
4063 | return 0; | |
4064 | } | |
4065 | _ACEOF | |
4066 | for ac_lib in '' dir; do | |
4067 | if test -z "$ac_lib"; then | |
4068 | ac_res="none required" | |
4069 | else | |
4070 | ac_res=-l$ac_lib | |
4071 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4072 | fi | |
4073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4074 | if { (ac_try="$ac_link" | |
4075 | case "(($ac_try" in | |
4076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4077 | *) ac_try_echo=$ac_try;; | |
4078 | esac | |
ec6a6fbe AK |
4079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4080 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4081 | (eval "$ac_link") 2>conftest.er1 |
4082 | ac_status=$? | |
4083 | grep -v '^ *+' conftest.er1 >conftest.err | |
4084 | rm -f conftest.er1 | |
4085 | cat conftest.err >&5 | |
ec6a6fbe | 4086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4087 | (exit $ac_status); } && { |
4088 | test -z "$ac_c_werror_flag" || | |
4089 | test ! -s conftest.err | |
ec6a6fbe AK |
4090 | } && test -s conftest$ac_exeext && { |
4091 | test "$cross_compiling" = yes || | |
4092 | $as_test_x conftest$ac_exeext | |
4093 | }; then | |
d0191583 JM |
4094 | ac_cv_search_opendir=$ac_res |
4095 | else | |
ec6a6fbe | 4096 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4097 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4098 | |
ad6254c5 | 4099 | |
795ca3e5 | 4100 | fi |
ad6254c5 | 4101 | |
ec6a6fbe | 4102 | rm -rf conftest.dSYM |
d0191583 JM |
4103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4104 | conftest$ac_exeext | |
4105 | if test "${ac_cv_search_opendir+set}" = set; then | |
4106 | break | |
7a197a62 | 4107 | fi |
d0191583 JM |
4108 | done |
4109 | if test "${ac_cv_search_opendir+set}" = set; then | |
4110 | : | |
7a197a62 | 4111 | else |
d0191583 | 4112 | ac_cv_search_opendir=no |
7a197a62 | 4113 | fi |
d0191583 JM |
4114 | rm conftest.$ac_ext |
4115 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4116 | fi |
ec6a6fbe AK |
4117 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4118 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4119 | ac_res=$ac_cv_search_opendir |
4120 | if test "$ac_res" != no; then | |
4121 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4122 | |
d0191583 | 4123 | fi |
7a197a62 | 4124 | |
7a197a62 | 4125 | else |
ec6a6fbe AK |
4126 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4127 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4128 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4129 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4130 | else |
d0191583 JM |
4131 | ac_func_search_save_LIBS=$LIBS |
4132 | cat >conftest.$ac_ext <<_ACEOF | |
4133 | /* confdefs.h. */ | |
4134 | _ACEOF | |
4135 | cat confdefs.h >>conftest.$ac_ext | |
4136 | cat >>conftest.$ac_ext <<_ACEOF | |
4137 | /* end confdefs.h. */ | |
7a197a62 | 4138 | |
d0191583 JM |
4139 | /* Override any GCC internal prototype to avoid an error. |
4140 | Use char because int might match the return type of a GCC | |
4141 | builtin and then its argument prototype would still apply. */ | |
4142 | #ifdef __cplusplus | |
4143 | extern "C" | |
4144 | #endif | |
4145 | char opendir (); | |
4146 | int | |
4147 | main () | |
4148 | { | |
4149 | return opendir (); | |
4150 | ; | |
4151 | return 0; | |
4152 | } | |
4153 | _ACEOF | |
4154 | for ac_lib in '' x; do | |
4155 | if test -z "$ac_lib"; then | |
4156 | ac_res="none required" | |
4157 | else | |
4158 | ac_res=-l$ac_lib | |
4159 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4160 | fi | |
4161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4162 | if { (ac_try="$ac_link" | |
4163 | case "(($ac_try" in | |
4164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4165 | *) ac_try_echo=$ac_try;; | |
4166 | esac | |
ec6a6fbe AK |
4167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4168 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4169 | (eval "$ac_link") 2>conftest.er1 |
4170 | ac_status=$? | |
4171 | grep -v '^ *+' conftest.er1 >conftest.err | |
4172 | rm -f conftest.er1 | |
4173 | cat conftest.err >&5 | |
ec6a6fbe | 4174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4175 | (exit $ac_status); } && { |
4176 | test -z "$ac_c_werror_flag" || | |
4177 | test ! -s conftest.err | |
ec6a6fbe AK |
4178 | } && test -s conftest$ac_exeext && { |
4179 | test "$cross_compiling" = yes || | |
4180 | $as_test_x conftest$ac_exeext | |
4181 | }; then | |
d0191583 JM |
4182 | ac_cv_search_opendir=$ac_res |
4183 | else | |
ec6a6fbe | 4184 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4185 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4186 | |
4187 | ||
4188 | fi | |
4189 | ||
ec6a6fbe | 4190 | rm -rf conftest.dSYM |
d0191583 JM |
4191 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4192 | conftest$ac_exeext | |
4193 | if test "${ac_cv_search_opendir+set}" = set; then | |
4194 | break | |
7a197a62 | 4195 | fi |
d0191583 JM |
4196 | done |
4197 | if test "${ac_cv_search_opendir+set}" = set; then | |
4198 | : | |
7a197a62 | 4199 | else |
d0191583 | 4200 | ac_cv_search_opendir=no |
7a197a62 | 4201 | fi |
d0191583 JM |
4202 | rm conftest.$ac_ext |
4203 | LIBS=$ac_func_search_save_LIBS | |
4204 | fi | |
ec6a6fbe AK |
4205 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4206 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4207 | ac_res=$ac_cv_search_opendir |
4208 | if test "$ac_res" != no; then | |
4209 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4210 | |
7a197a62 | 4211 | fi |
7a197a62 | 4212 | |
d0191583 | 4213 | fi |
7a197a62 | 4214 | |
ec6a6fbe AK |
4215 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4216 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4217 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4218 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4219 | else |
4220 | cat >conftest.$ac_ext <<_ACEOF | |
4221 | /* confdefs.h. */ | |
4222 | _ACEOF | |
4223 | cat confdefs.h >>conftest.$ac_ext | |
4224 | cat >>conftest.$ac_ext <<_ACEOF | |
4225 | /* end confdefs.h. */ | |
4226 | #include <stdlib.h> | |
4227 | #include <stdarg.h> | |
4228 | #include <string.h> | |
4229 | #include <float.h> | |
4230 | ||
4231 | int | |
4232 | main () | |
4233 | { | |
4234 | ||
4235 | ; | |
4236 | return 0; | |
4237 | } | |
4238 | _ACEOF | |
4239 | rm -f conftest.$ac_objext | |
4240 | if { (ac_try="$ac_compile" | |
4241 | case "(($ac_try" in | |
4242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4243 | *) ac_try_echo=$ac_try;; | |
4244 | esac | |
ec6a6fbe AK |
4245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4246 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4247 | (eval "$ac_compile") 2>conftest.er1 |
4248 | ac_status=$? | |
4249 | grep -v '^ *+' conftest.er1 >conftest.err | |
4250 | rm -f conftest.er1 | |
4251 | cat conftest.err >&5 | |
ec6a6fbe | 4252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4253 | (exit $ac_status); } && { |
4254 | test -z "$ac_c_werror_flag" || | |
4255 | test ! -s conftest.err | |
4256 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4257 | ac_cv_header_stdc=yes |
4258 | else | |
ec6a6fbe | 4259 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4260 | sed 's/^/| /' conftest.$ac_ext >&5 |
4261 | ||
4262 | ac_cv_header_stdc=no | |
4263 | fi | |
4264 | ||
4265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4266 | ||
4267 | if test $ac_cv_header_stdc = yes; then | |
4268 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4269 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4270 | /* confdefs.h. */ |
4271 | _ACEOF | |
4272 | cat confdefs.h >>conftest.$ac_ext | |
4273 | cat >>conftest.$ac_ext <<_ACEOF | |
4274 | /* end confdefs.h. */ | |
4275 | #include <string.h> | |
8106cdd5 | 4276 | |
ad6254c5 AK |
4277 | _ACEOF |
4278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4279 | $EGREP "memchr" >/dev/null 2>&1; then | |
4280 | : | |
4281 | else | |
4282 | ac_cv_header_stdc=no | |
80992638 | 4283 | fi |
ad6254c5 | 4284 | rm -f conftest* |
795ca3e5 AK |
4285 | |
4286 | fi | |
4287 | ||
ad6254c5 AK |
4288 | if test $ac_cv_header_stdc = yes; then |
4289 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4290 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4291 | /* confdefs.h. */ |
4292 | _ACEOF | |
4293 | cat confdefs.h >>conftest.$ac_ext | |
4294 | cat >>conftest.$ac_ext <<_ACEOF | |
4295 | /* end confdefs.h. */ | |
80992638 | 4296 | #include <stdlib.h> |
ad6254c5 AK |
4297 | |
4298 | _ACEOF | |
80992638 | 4299 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4300 | $EGREP "free" >/dev/null 2>&1; then |
4301 | : | |
795ca3e5 | 4302 | else |
ad6254c5 | 4303 | ac_cv_header_stdc=no |
795ca3e5 | 4304 | fi |
80992638 | 4305 | rm -f conftest* |
8106cdd5 | 4306 | |
795ca3e5 AK |
4307 | fi |
4308 | ||
ad6254c5 AK |
4309 | if test $ac_cv_header_stdc = yes; then |
4310 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4311 | if test "$cross_compiling" = yes; then | |
4312 | : | |
795ca3e5 | 4313 | else |
ad6254c5 | 4314 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4315 | /* confdefs.h. */ |
4316 | _ACEOF | |
4317 | cat confdefs.h >>conftest.$ac_ext | |
4318 | cat >>conftest.$ac_ext <<_ACEOF | |
4319 | /* end confdefs.h. */ | |
4320 | #include <ctype.h> | |
7a197a62 | 4321 | #include <stdlib.h> |
ad6254c5 AK |
4322 | #if ((' ' & 0x0FF) == 0x020) |
4323 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4324 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4325 | #else | |
4326 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4327 | (('a' <= (c) && (c) <= 'i') \ |
4328 | || ('j' <= (c) && (c) <= 'r') \ | |
4329 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4330 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4331 | #endif |
ad6254c5 AK |
4332 | |
4333 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4334 | int | |
4335 | main () | |
4336 | { | |
4337 | int i; | |
4338 | for (i = 0; i < 256; i++) | |
4339 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4340 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4341 | return 2; |
4342 | return 0; | |
ad6254c5 AK |
4343 | } |
4344 | _ACEOF | |
4345 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4346 | if { (ac_try="$ac_link" |
4347 | case "(($ac_try" in | |
4348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4349 | *) ac_try_echo=$ac_try;; | |
4350 | esac | |
ec6a6fbe AK |
4351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4352 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4353 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4354 | ac_status=$? |
ec6a6fbe | 4355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4356 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4357 | { (case "(($ac_try" in |
4358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4359 | *) ac_try_echo=$ac_try;; | |
4360 | esac | |
ec6a6fbe AK |
4361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4362 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4363 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4364 | ac_status=$? |
ec6a6fbe | 4365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4366 | (exit $ac_status); }; }; then |
4367 | : | |
795ca3e5 | 4368 | else |
ec6a6fbe AK |
4369 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4370 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4371 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4372 | |
ad6254c5 AK |
4373 | ( exit $ac_status ) |
4374 | ac_cv_header_stdc=no | |
80992638 | 4375 | fi |
ec6a6fbe | 4376 | rm -rf conftest.dSYM |
7a197a62 | 4377 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4378 | fi |
7a197a62 AK |
4379 | |
4380 | ||
ad6254c5 AK |
4381 | fi |
4382 | fi | |
ec6a6fbe AK |
4383 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4384 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4385 | if test $ac_cv_header_stdc = yes; then |
4386 | ||
4387 | cat >>confdefs.h <<\_ACEOF | |
4388 | #define STDC_HEADERS 1 | |
4389 | _ACEOF | |
795ca3e5 AK |
4390 | |
4391 | fi | |
4392 | ||
ec6a6fbe AK |
4393 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4394 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4395 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4396 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4397 | else |
ad6254c5 | 4398 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4399 | /* confdefs.h. */ |
4400 | _ACEOF | |
4401 | cat confdefs.h >>conftest.$ac_ext | |
4402 | cat >>conftest.$ac_ext <<_ACEOF | |
4403 | /* end confdefs.h. */ | |
80992638 | 4404 | #include <sys/types.h> |
ad6254c5 AK |
4405 | #include <sys/wait.h> |
4406 | #ifndef WEXITSTATUS | |
7a197a62 | 4407 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4408 | #endif |
4409 | #ifndef WIFEXITED | |
4410 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4411 | #endif | |
4412 | ||
4413 | int | |
4414 | main () | |
4415 | { | |
4416 | int s; | |
4417 | wait (&s); | |
4418 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4419 | ; | |
4420 | return 0; | |
4421 | } | |
4422 | _ACEOF | |
4423 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4424 | if { (ac_try="$ac_compile" |
4425 | case "(($ac_try" in | |
4426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4427 | *) ac_try_echo=$ac_try;; | |
4428 | esac | |
ec6a6fbe AK |
4429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4430 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4431 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4432 | ac_status=$? |
8a2fc586 AK |
4433 | grep -v '^ *+' conftest.er1 >conftest.err |
4434 | rm -f conftest.er1 | |
4435 | cat conftest.err >&5 | |
ec6a6fbe | 4436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4437 | (exit $ac_status); } && { |
4438 | test -z "$ac_c_werror_flag" || | |
4439 | test ! -s conftest.err | |
4440 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4441 | ac_cv_header_sys_wait_h=yes |
4442 | else | |
ec6a6fbe | 4443 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4444 | sed 's/^/| /' conftest.$ac_ext >&5 |
4445 | ||
7a197a62 | 4446 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4447 | fi |
7a197a62 AK |
4448 | |
4449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4450 | fi |
ec6a6fbe AK |
4451 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4452 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4453 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4454 | |
ad6254c5 AK |
4455 | cat >>confdefs.h <<\_ACEOF |
4456 | #define HAVE_SYS_WAIT_H 1 | |
4457 | _ACEOF | |
795ca3e5 AK |
4458 | |
4459 | fi | |
4460 | ||
ec6a6fbe AK |
4461 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4462 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4463 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4464 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4465 | else |
ad6254c5 | 4466 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4467 | /* confdefs.h. */ |
4468 | _ACEOF | |
4469 | cat confdefs.h >>conftest.$ac_ext | |
4470 | cat >>conftest.$ac_ext <<_ACEOF | |
4471 | /* end confdefs.h. */ | |
795ca3e5 AK |
4472 | #include <sys/types.h> |
4473 | #include <sys/time.h> | |
4474 | #include <time.h> | |
ad6254c5 AK |
4475 | |
4476 | int | |
4477 | main () | |
4478 | { | |
4479 | if ((struct tm *) 0) | |
4480 | return 0; | |
4481 | ; | |
4482 | return 0; | |
4483 | } | |
4484 | _ACEOF | |
4485 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4486 | if { (ac_try="$ac_compile" |
4487 | case "(($ac_try" in | |
4488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4489 | *) ac_try_echo=$ac_try;; | |
4490 | esac | |
ec6a6fbe AK |
4491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4492 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4493 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4494 | ac_status=$? |
8a2fc586 AK |
4495 | grep -v '^ *+' conftest.er1 >conftest.err |
4496 | rm -f conftest.er1 | |
4497 | cat conftest.err >&5 | |
ec6a6fbe | 4498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4499 | (exit $ac_status); } && { |
4500 | test -z "$ac_c_werror_flag" || | |
4501 | test ! -s conftest.err | |
4502 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4503 | ac_cv_header_time=yes |
4504 | else | |
ec6a6fbe | 4505 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4506 | sed 's/^/| /' conftest.$ac_ext >&5 |
4507 | ||
7a197a62 | 4508 | ac_cv_header_time=no |
795ca3e5 | 4509 | fi |
7a197a62 AK |
4510 | |
4511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4512 | fi |
ec6a6fbe AK |
4513 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4514 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4515 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4516 | |
4517 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4518 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4519 | _ACEOF |
b896caa1 | 4520 | |
8106cdd5 | 4521 | fi |
b896caa1 | 4522 | |
b896caa1 | 4523 | |
d0191583 JM |
4524 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4535 | inttypes.h stdint.h unistd.h | |
4536 | do | |
ec6a6fbe AK |
4537 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4538 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4539 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4540 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4541 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4542 | else |
4543 | cat >conftest.$ac_ext <<_ACEOF | |
4544 | /* confdefs.h. */ | |
4545 | _ACEOF | |
4546 | cat confdefs.h >>conftest.$ac_ext | |
4547 | cat >>conftest.$ac_ext <<_ACEOF | |
4548 | /* end confdefs.h. */ | |
4549 | $ac_includes_default | |
4550 | ||
4551 | #include <$ac_header> | |
4552 | _ACEOF | |
4553 | rm -f conftest.$ac_objext | |
4554 | if { (ac_try="$ac_compile" | |
4555 | case "(($ac_try" in | |
4556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4557 | *) ac_try_echo=$ac_try;; | |
4558 | esac | |
ec6a6fbe AK |
4559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4560 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4561 | (eval "$ac_compile") 2>conftest.er1 |
4562 | ac_status=$? | |
4563 | grep -v '^ *+' conftest.er1 >conftest.err | |
4564 | rm -f conftest.er1 | |
4565 | cat conftest.err >&5 | |
ec6a6fbe | 4566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4567 | (exit $ac_status); } && { |
4568 | test -z "$ac_c_werror_flag" || | |
4569 | test ! -s conftest.err | |
4570 | } && test -s conftest.$ac_objext; then | |
4571 | eval "$as_ac_Header=yes" | |
4572 | else | |
ec6a6fbe | 4573 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4574 | sed 's/^/| /' conftest.$ac_ext >&5 |
4575 | ||
4576 | eval "$as_ac_Header=no" | |
4577 | fi | |
4578 | ||
4579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4580 | fi | |
ec6a6fbe AK |
4581 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4582 | $as_echo "$as_val"'` | |
4583 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4584 | $as_echo "$ac_res" >&6; } | |
4585 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4586 | $as_echo "$as_val"'` | |
4587 | if test "x$as_val" = x""yes; then | |
d0191583 | 4588 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4589 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4590 | _ACEOF |
4591 | ||
4592 | fi | |
4593 | ||
4594 | done | |
4595 | ||
b896caa1 | 4596 | |
b896caa1 AK |
4597 | |
4598 | ||
795ca3e5 | 4599 | |
8106cdd5 | 4600 | |
80992638 | 4601 | |
795ca3e5 | 4602 | |
a38df97f | 4603 | |
80992638 | 4604 | |
d0191583 JM |
4605 | |
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4611 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4612 | do |
ec6a6fbe | 4613 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4615 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4616 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4617 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4618 | $as_echo_n "(cached) " >&6 |
d0191583 | 4619 | fi |
ec6a6fbe AK |
4620 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4621 | $as_echo "$as_val"'` | |
4622 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4623 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4624 | else |
d0191583 | 4625 | # Is the header compilable? |
ec6a6fbe AK |
4626 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4627 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4628 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4629 | /* confdefs.h. */ |
4630 | _ACEOF | |
4631 | cat confdefs.h >>conftest.$ac_ext | |
4632 | cat >>conftest.$ac_ext <<_ACEOF | |
4633 | /* end confdefs.h. */ | |
4634 | $ac_includes_default | |
ad6254c5 AK |
4635 | #include <$ac_header> |
4636 | _ACEOF | |
4637 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4638 | if { (ac_try="$ac_compile" |
4639 | case "(($ac_try" in | |
4640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4641 | *) ac_try_echo=$ac_try;; | |
4642 | esac | |
ec6a6fbe AK |
4643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4644 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4645 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4646 | ac_status=$? |
8a2fc586 AK |
4647 | grep -v '^ *+' conftest.er1 >conftest.err |
4648 | rm -f conftest.er1 | |
4649 | cat conftest.err >&5 | |
ec6a6fbe | 4650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4651 | (exit $ac_status); } && { |
4652 | test -z "$ac_c_werror_flag" || | |
4653 | test ! -s conftest.err | |
4654 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4655 | ac_header_compiler=yes |
ad6254c5 | 4656 | else |
ec6a6fbe | 4657 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4658 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4659 | |
d0191583 | 4660 | ac_header_compiler=no |
ad6254c5 | 4661 | fi |
7a197a62 AK |
4662 | |
4663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4664 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4665 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4666 | |
4667 | # Is the header present? | |
ec6a6fbe AK |
4668 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4669 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4670 | cat >conftest.$ac_ext <<_ACEOF |
4671 | /* confdefs.h. */ | |
4672 | _ACEOF | |
4673 | cat confdefs.h >>conftest.$ac_ext | |
4674 | cat >>conftest.$ac_ext <<_ACEOF | |
4675 | /* end confdefs.h. */ | |
4676 | #include <$ac_header> | |
4677 | _ACEOF | |
4678 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
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 | |
d0191583 JM |
4685 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4686 | ac_status=$? | |
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 |
d0191583 JM |
4691 | (exit $ac_status); } >/dev/null && { |
4692 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4693 | test ! -s conftest.err | |
4694 | }; then | |
4695 | ac_header_preproc=yes | |
4696 | else | |
ec6a6fbe | 4697 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4698 | sed 's/^/| /' conftest.$ac_ext >&5 |
4699 | ||
4700 | ac_header_preproc=no | |
4701 | fi | |
4702 | ||
4703 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4704 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4705 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4706 | |
4707 | # So? What about this header? | |
4708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4709 | yes:no: ) | |
ec6a6fbe AK |
4710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4711 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4712 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4713 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4714 | ac_header_preproc=yes |
4715 | ;; | |
4716 | no:yes:* ) | |
ec6a6fbe AK |
4717 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4718 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4719 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4720 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4721 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4722 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4723 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4724 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4725 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4726 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4727 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4728 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4729 | |
4730 | ;; | |
4731 | esac | |
ec6a6fbe AK |
4732 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4733 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4735 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4736 | else |
4737 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4738 | fi |
ec6a6fbe AK |
4739 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4740 | $as_echo "$as_val"'` | |
4741 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4742 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4743 | |
4744 | fi | |
ec6a6fbe AK |
4745 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4746 | $as_echo "$as_val"'` | |
4747 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4748 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4749 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4750 | _ACEOF |
a38df97f | 4751 | |
d0191583 | 4752 | else |
ec6a6fbe AK |
4753 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4754 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4755 | { (exit 1); exit 1; }; } |
80992638 AK |
4756 | fi |
4757 | ||
ad6254c5 AK |
4758 | done |
4759 | ||
7d1552c9 | 4760 | |
d0191583 JM |
4761 | case "$host_os" in |
4762 | linux*) | |
7d1552c9 | 4763 | |
80992638 | 4764 | |
5a52dca9 | 4765 | |
d0191583 | 4766 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4767 | do |
ec6a6fbe | 4768 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4770 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4771 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4772 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4773 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4774 | fi |
ec6a6fbe AK |
4775 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4776 | $as_echo "$as_val"'` | |
4777 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4778 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4779 | else |
4780 | # Is the header compilable? | |
ec6a6fbe AK |
4781 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4782 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4783 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4784 | /* confdefs.h. */ |
4785 | _ACEOF | |
4786 | cat confdefs.h >>conftest.$ac_ext | |
4787 | cat >>conftest.$ac_ext <<_ACEOF | |
4788 | /* end confdefs.h. */ | |
4789 | $ac_includes_default | |
4790 | #include <$ac_header> | |
4791 | _ACEOF | |
4792 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4793 | if { (ac_try="$ac_compile" |
4794 | case "(($ac_try" in | |
4795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4796 | *) ac_try_echo=$ac_try;; | |
4797 | esac | |
ec6a6fbe AK |
4798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4799 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4800 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4801 | ac_status=$? |
8a2fc586 AK |
4802 | grep -v '^ *+' conftest.er1 >conftest.err |
4803 | rm -f conftest.er1 | |
4804 | cat conftest.err >&5 | |
ec6a6fbe | 4805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4806 | (exit $ac_status); } && { |
4807 | test -z "$ac_c_werror_flag" || | |
4808 | test ! -s conftest.err | |
4809 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4810 | ac_header_compiler=yes |
4811 | else | |
ec6a6fbe | 4812 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4813 | sed 's/^/| /' conftest.$ac_ext >&5 |
4814 | ||
4815 | ac_header_compiler=no | |
4816 | fi | |
4817 | ||
4818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4819 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4820 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4821 | |
4822 | # Is the header present? | |
ec6a6fbe AK |
4823 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4824 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4825 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4826 | /* confdefs.h. */ |
4827 | _ACEOF | |
4828 | cat confdefs.h >>conftest.$ac_ext | |
4829 | cat >>conftest.$ac_ext <<_ACEOF | |
4830 | /* end confdefs.h. */ | |
4831 | #include <$ac_header> | |
4832 | _ACEOF | |
7a197a62 AK |
4833 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4841 | ac_status=$? |
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); } >/dev/null && { |
4847 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4848 | test ! -s conftest.err | |
4849 | }; then | |
ad6254c5 AK |
4850 | ac_header_preproc=yes |
4851 | else | |
ec6a6fbe | 4852 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4853 | sed 's/^/| /' conftest.$ac_ext >&5 |
4854 | ||
4855 | ac_header_preproc=no | |
4856 | fi | |
7a197a62 | 4857 | |
ad6254c5 | 4858 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4859 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4860 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4861 | |
4862 | # So? What about this header? | |
8a2fc586 AK |
4863 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4864 | yes:no: ) | |
ec6a6fbe AK |
4865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4866 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4868 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4869 | ac_header_preproc=yes |
ad6254c5 | 4870 | ;; |
8a2fc586 | 4871 | no:yes:* ) |
ec6a6fbe AK |
4872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4873 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4875 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4877 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4879 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4881 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4883 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4884 | |
ad6254c5 AK |
4885 | ;; |
4886 | esac | |
ec6a6fbe AK |
4887 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4888 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4890 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4891 | else |
8a2fc586 | 4892 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4893 | fi |
ec6a6fbe AK |
4894 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4895 | $as_echo "$as_val"'` | |
4896 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4897 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4898 | |
4899 | fi | |
ec6a6fbe AK |
4900 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4901 | $as_echo "$as_val"'` | |
4902 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4903 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4904 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4905 | _ACEOF |
b896caa1 | 4906 | |
d8ac0fbc | 4907 | else |
ec6a6fbe AK |
4908 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4909 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4910 | { (exit 1); exit 1; }; } |
80992638 AK |
4911 | fi |
4912 | ||
ad6254c5 | 4913 | done |
d0191583 JM |
4914 | ;; |
4915 | darwin*) | |
d8ac0fbc | 4916 | |
d8ac0fbc | 4917 | |
d0191583 | 4918 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4919 | do |
ec6a6fbe | 4920 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4922 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4923 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4925 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4926 | fi |
ec6a6fbe AK |
4927 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4928 | $as_echo "$as_val"'` | |
4929 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4930 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4931 | else |
4932 | # Is the header compilable? | |
ec6a6fbe AK |
4933 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4934 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4935 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4936 | /* confdefs.h. */ |
4937 | _ACEOF | |
4938 | cat confdefs.h >>conftest.$ac_ext | |
4939 | cat >>conftest.$ac_ext <<_ACEOF | |
4940 | /* end confdefs.h. */ | |
4941 | $ac_includes_default | |
4942 | #include <$ac_header> | |
4943 | _ACEOF | |
4944 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4945 | if { (ac_try="$ac_compile" |
4946 | case "(($ac_try" in | |
4947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4948 | *) ac_try_echo=$ac_try;; | |
4949 | esac | |
ec6a6fbe AK |
4950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4951 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4952 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4953 | ac_status=$? |
8a2fc586 AK |
4954 | grep -v '^ *+' conftest.er1 >conftest.err |
4955 | rm -f conftest.er1 | |
4956 | cat conftest.err >&5 | |
ec6a6fbe | 4957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4958 | (exit $ac_status); } && { |
4959 | test -z "$ac_c_werror_flag" || | |
4960 | test ! -s conftest.err | |
4961 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4962 | ac_header_compiler=yes |
4963 | else | |
ec6a6fbe | 4964 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
4966 | ||
7a197a62 | 4967 | ac_header_compiler=no |
ad6254c5 | 4968 | fi |
7a197a62 AK |
4969 | |
4970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4971 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4972 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4973 | |
4974 | # Is the header present? | |
ec6a6fbe AK |
4975 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4976 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4977 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4978 | /* confdefs.h. */ |
4979 | _ACEOF | |
4980 | cat confdefs.h >>conftest.$ac_ext | |
4981 | cat >>conftest.$ac_ext <<_ACEOF | |
4982 | /* end confdefs.h. */ | |
4983 | #include <$ac_header> | |
4984 | _ACEOF | |
7a197a62 AK |
4985 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4993 | ac_status=$? |
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); } >/dev/null && { |
4999 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5000 | test ! -s conftest.err | |
5001 | }; then | |
ad6254c5 AK |
5002 | ac_header_preproc=yes |
5003 | else | |
ec6a6fbe | 5004 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5005 | sed 's/^/| /' conftest.$ac_ext >&5 |
5006 | ||
5007 | ac_header_preproc=no | |
5008 | fi | |
7a197a62 | 5009 | |
ad6254c5 | 5010 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5011 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5012 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5013 | |
5014 | # So? What about this header? | |
8a2fc586 AK |
5015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5016 | yes:no: ) | |
ec6a6fbe AK |
5017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5018 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5020 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5021 | ac_header_preproc=yes |
ad6254c5 | 5022 | ;; |
8a2fc586 | 5023 | no:yes:* ) |
ec6a6fbe AK |
5024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5025 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5027 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5029 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5031 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5033 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5035 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5036 | |
ad6254c5 AK |
5037 | ;; |
5038 | esac | |
ec6a6fbe AK |
5039 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5040 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5041 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5042 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5043 | else |
8a2fc586 | 5044 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5045 | fi |
ec6a6fbe AK |
5046 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5047 | $as_echo "$as_val"'` | |
5048 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5049 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5050 | |
5051 | fi | |
ec6a6fbe AK |
5052 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5053 | $as_echo "$as_val"'` | |
5054 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5055 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5056 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5057 | _ACEOF |
4922197a | 5058 | |
4922197a | 5059 | else |
ec6a6fbe AK |
5060 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5061 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5062 | { (exit 1); exit 1; }; } |
80992638 AK |
5063 | fi |
5064 | ||
ad6254c5 | 5065 | done |
d0191583 JM |
5066 | ;; |
5067 | esac | |
4922197a | 5068 | |
4922197a | 5069 | |
4922197a | 5070 | |
ad6254c5 AK |
5071 | |
5072 | ||
d0191583 JM |
5073 | |
5074 | ||
5075 | ||
5076 | ||
5077 | ||
5078 | ||
5079 | ||
5080 | ||
5081 | ||
5082 | ||
5083 | ||
5084 | ||
5085 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5086 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5087 | sys/types.h unistd.h | |
ad6254c5 | 5088 | do |
ec6a6fbe | 5089 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5091 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5092 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5093 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5094 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5095 | fi |
ec6a6fbe AK |
5096 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5097 | $as_echo "$as_val"'` | |
5098 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5099 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5100 | else |
ad6254c5 | 5101 | # Is the header compilable? |
ec6a6fbe AK |
5102 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5103 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5104 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5105 | /* confdefs.h. */ |
5106 | _ACEOF | |
5107 | cat confdefs.h >>conftest.$ac_ext | |
5108 | cat >>conftest.$ac_ext <<_ACEOF | |
5109 | /* end confdefs.h. */ | |
5110 | $ac_includes_default | |
5111 | #include <$ac_header> | |
5112 | _ACEOF | |
5113 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5114 | if { (ac_try="$ac_compile" |
5115 | case "(($ac_try" in | |
5116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5117 | *) ac_try_echo=$ac_try;; | |
5118 | esac | |
ec6a6fbe AK |
5119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5120 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5121 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5122 | ac_status=$? |
8a2fc586 AK |
5123 | grep -v '^ *+' conftest.er1 >conftest.err |
5124 | rm -f conftest.er1 | |
5125 | cat conftest.err >&5 | |
ec6a6fbe | 5126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5127 | (exit $ac_status); } && { |
5128 | test -z "$ac_c_werror_flag" || | |
5129 | test ! -s conftest.err | |
5130 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5131 | ac_header_compiler=yes |
5132 | else | |
ec6a6fbe | 5133 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5134 | sed 's/^/| /' conftest.$ac_ext >&5 |
5135 | ||
7a197a62 | 5136 | ac_header_compiler=no |
ad6254c5 | 5137 | fi |
7a197a62 AK |
5138 | |
5139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5140 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5141 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5142 | |
5143 | # Is the header present? | |
ec6a6fbe AK |
5144 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5145 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5146 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5147 | /* confdefs.h. */ |
5148 | _ACEOF | |
5149 | cat confdefs.h >>conftest.$ac_ext | |
5150 | cat >>conftest.$ac_ext <<_ACEOF | |
5151 | /* end confdefs.h. */ | |
5152 | #include <$ac_header> | |
5153 | _ACEOF | |
7a197a62 AK |
5154 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5162 | ac_status=$? |
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); } >/dev/null && { |
5168 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5169 | test ! -s conftest.err | |
5170 | }; then | |
ad6254c5 AK |
5171 | ac_header_preproc=yes |
5172 | else | |
ec6a6fbe | 5173 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5174 | sed 's/^/| /' conftest.$ac_ext >&5 |
5175 | ||
5176 | ac_header_preproc=no | |
5177 | fi | |
7a197a62 | 5178 | |
ad6254c5 | 5179 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5180 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5181 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5182 | |
5183 | # So? What about this header? | |
8a2fc586 AK |
5184 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5185 | yes:no: ) | |
ec6a6fbe AK |
5186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5187 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5189 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5190 | ac_header_preproc=yes |
ad6254c5 | 5191 | ;; |
8a2fc586 | 5192 | no:yes:* ) |
ec6a6fbe AK |
5193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5194 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5196 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5197 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5198 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5200 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5202 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5203 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5204 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5205 | |
ad6254c5 AK |
5206 | ;; |
5207 | esac | |
ec6a6fbe AK |
5208 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5209 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5210 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5211 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5212 | else |
8a2fc586 | 5213 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5214 | fi |
ec6a6fbe AK |
5215 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5216 | $as_echo "$as_val"'` | |
5217 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5218 | $as_echo "$ac_res" >&6; } | |
80992638 | 5219 | |
ad6254c5 | 5220 | fi |
ec6a6fbe AK |
5221 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5222 | $as_echo "$as_val"'` | |
5223 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5224 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5225 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5226 | _ACEOF |
795ca3e5 | 5227 | |
795ca3e5 | 5228 | else |
ec6a6fbe AK |
5229 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5230 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5231 | { (exit 1); exit 1; }; } |
80992638 AK |
5232 | fi |
5233 | ||
ad6254c5 | 5234 | done |
ad6254c5 | 5235 | |
795ca3e5 | 5236 | |
d0191583 JM |
5237 | |
5238 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5239 | do |
ec6a6fbe | 5240 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5242 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5243 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5244 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5245 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5246 | fi |
ec6a6fbe AK |
5247 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5248 | $as_echo "$as_val"'` | |
5249 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5250 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5251 | else |
5252 | # Is the header compilable? | |
ec6a6fbe AK |
5253 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5254 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5255 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5256 | /* confdefs.h. */ |
5257 | _ACEOF | |
5258 | cat confdefs.h >>conftest.$ac_ext | |
5259 | cat >>conftest.$ac_ext <<_ACEOF | |
5260 | /* end confdefs.h. */ | |
5261 | $ac_includes_default | |
5262 | #include <$ac_header> | |
5263 | _ACEOF | |
5264 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5265 | if { (ac_try="$ac_compile" |
5266 | case "(($ac_try" in | |
5267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5268 | *) ac_try_echo=$ac_try;; | |
5269 | esac | |
ec6a6fbe AK |
5270 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5271 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5272 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5273 | ac_status=$? |
8a2fc586 AK |
5274 | grep -v '^ *+' conftest.er1 >conftest.err |
5275 | rm -f conftest.er1 | |
5276 | cat conftest.err >&5 | |
ec6a6fbe | 5277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5278 | (exit $ac_status); } && { |
5279 | test -z "$ac_c_werror_flag" || | |
5280 | test ! -s conftest.err | |
5281 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5282 | ac_header_compiler=yes |
5283 | else | |
ec6a6fbe | 5284 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5285 | sed 's/^/| /' conftest.$ac_ext >&5 |
5286 | ||
7a197a62 | 5287 | ac_header_compiler=no |
ad6254c5 | 5288 | fi |
7a197a62 AK |
5289 | |
5290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5291 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5292 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5293 | |
5294 | # Is the header present? | |
ec6a6fbe AK |
5295 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5296 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5297 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5298 | /* confdefs.h. */ |
5299 | _ACEOF | |
5300 | cat confdefs.h >>conftest.$ac_ext | |
5301 | cat >>conftest.$ac_ext <<_ACEOF | |
5302 | /* end confdefs.h. */ | |
5303 | #include <$ac_header> | |
5304 | _ACEOF | |
7a197a62 AK |
5305 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5313 | ac_status=$? |
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); } >/dev/null && { |
5319 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5320 | test ! -s conftest.err | |
5321 | }; then | |
ad6254c5 AK |
5322 | ac_header_preproc=yes |
5323 | else | |
ec6a6fbe | 5324 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5325 | sed 's/^/| /' conftest.$ac_ext >&5 |
5326 | ||
5327 | ac_header_preproc=no | |
5328 | fi | |
7a197a62 | 5329 | |
ad6254c5 | 5330 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5331 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5332 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5333 | |
5334 | # So? What about this header? | |
8a2fc586 AK |
5335 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5336 | yes:no: ) | |
ec6a6fbe AK |
5337 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5338 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5339 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5340 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5341 | ac_header_preproc=yes |
ad6254c5 | 5342 | ;; |
8a2fc586 | 5343 | no:yes:* ) |
ec6a6fbe AK |
5344 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5345 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5346 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5347 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5348 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5349 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5350 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5351 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5352 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5353 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5355 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5356 | |
ad6254c5 AK |
5357 | ;; |
5358 | esac | |
ec6a6fbe AK |
5359 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5360 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5361 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5362 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5363 | else |
8a2fc586 | 5364 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5365 | fi |
ec6a6fbe AK |
5366 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5367 | $as_echo "$as_val"'` | |
5368 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5369 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5370 | |
ad6254c5 | 5371 | fi |
ec6a6fbe AK |
5372 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5373 | $as_echo "$as_val"'` | |
5374 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5375 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5376 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5377 | _ACEOF |
5378 | ||
80992638 AK |
5379 | fi |
5380 | ||
ad6254c5 | 5381 | done |
d0191583 | 5382 | |
d3c8211f | 5383 | |
80992638 | 5384 | ################################################################################ |
ec6a6fbe AK |
5385 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5386 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5387 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5388 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5389 | else |
ad6254c5 | 5390 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5391 | /* confdefs.h. */ |
5392 | _ACEOF | |
5393 | cat confdefs.h >>conftest.$ac_ext | |
5394 | cat >>conftest.$ac_ext <<_ACEOF | |
5395 | /* end confdefs.h. */ | |
5396 | ||
5397 | int | |
5398 | main () | |
5399 | { | |
5400 | /* FIXME: Include the comments suggested by Paul. */ | |
5401 | #ifndef __cplusplus | |
5402 | /* Ultrix mips cc rejects this. */ | |
5403 | typedef int charset[2]; | |
25fbec5b | 5404 | const charset cs; |
ad6254c5 | 5405 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5406 | char const *const *pcpcc; |
5407 | char **ppc; | |
ad6254c5 AK |
5408 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5409 | struct point {int x, y;}; | |
5410 | static struct point const zero = {0,0}; | |
5411 | /* AIX XL C 1.02.0.0 rejects this. | |
5412 | It does not let you subtract one const X* pointer from another in | |
5413 | an arm of an if-expression whose if-part is not a constant | |
5414 | expression */ | |
5415 | const char *g = "string"; | |
25fbec5b | 5416 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5417 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5418 | ++pcpcc; |
5419 | ppc = (char**) pcpcc; | |
5420 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5421 | { /* SCO 3.2v4 cc rejects this. */ |
5422 | char *t; | |
5423 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5424 | ||
5425 | *t++ = 0; | |
7a197a62 | 5426 | if (s) return 0; |
ad6254c5 AK |
5427 | } |
5428 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5429 | int x[] = {25, 17}; | |
5430 | const int *foo = &x[0]; | |
5431 | ++foo; | |
5432 | } | |
5433 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5434 | typedef const int *iptr; | |
5435 | iptr p = 0; | |
5436 | ++p; | |
5437 | } | |
5438 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5439 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5440 | struct s { int j; const int *ap[3]; }; | |
5441 | struct s *b; b->j = 5; | |
5442 | } | |
5443 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5444 | const int foo = 10; | |
7a197a62 | 5445 | if (!foo) return 0; |
ad6254c5 | 5446 | } |
25fbec5b | 5447 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5448 | #endif |
5449 | ||
5450 | ; | |
5451 | return 0; | |
5452 | } | |
5453 | _ACEOF | |
5454 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5455 | if { (ac_try="$ac_compile" |
5456 | case "(($ac_try" in | |
5457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5458 | *) ac_try_echo=$ac_try;; | |
5459 | esac | |
ec6a6fbe AK |
5460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5461 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5462 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5463 | ac_status=$? |
8a2fc586 AK |
5464 | grep -v '^ *+' conftest.er1 >conftest.err |
5465 | rm -f conftest.er1 | |
5466 | cat conftest.err >&5 | |
ec6a6fbe | 5467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5468 | (exit $ac_status); } && { |
5469 | test -z "$ac_c_werror_flag" || | |
5470 | test ! -s conftest.err | |
5471 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5472 | ac_cv_c_const=yes |
5473 | else | |
ec6a6fbe | 5474 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5475 | sed 's/^/| /' conftest.$ac_ext >&5 |
5476 | ||
7a197a62 | 5477 | ac_cv_c_const=no |
ad6254c5 | 5478 | fi |
7a197a62 AK |
5479 | |
5480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5481 | fi |
ec6a6fbe AK |
5482 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5483 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5484 | if test $ac_cv_c_const = no; then |
80992638 | 5485 | |
ad6254c5 | 5486 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5487 | #define const /**/ |
ad6254c5 | 5488 | _ACEOF |
80992638 | 5489 | |
d3c8211f | 5490 | fi |
d3c8211f | 5491 | |
ec6a6fbe AK |
5492 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5493 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5494 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5495 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5496 | else |
ad6254c5 AK |
5497 | ac_cv_c_inline=no |
5498 | for ac_kw in inline __inline__ __inline; do | |
5499 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5500 | /* confdefs.h. */ |
5501 | _ACEOF | |
5502 | cat confdefs.h >>conftest.$ac_ext | |
5503 | cat >>conftest.$ac_ext <<_ACEOF | |
5504 | /* end confdefs.h. */ | |
5505 | #ifndef __cplusplus | |
5506 | typedef int foo_t; | |
5507 | static $ac_kw foo_t static_foo () {return 0; } | |
5508 | $ac_kw foo_t foo () {return 0; } | |
5509 | #endif | |
80992638 | 5510 | |
ad6254c5 AK |
5511 | _ACEOF |
5512 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5513 | if { (ac_try="$ac_compile" |
5514 | case "(($ac_try" in | |
5515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5516 | *) ac_try_echo=$ac_try;; | |
5517 | esac | |
ec6a6fbe AK |
5518 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5519 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5520 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5521 | ac_status=$? |
8a2fc586 AK |
5522 | grep -v '^ *+' conftest.er1 >conftest.err |
5523 | rm -f conftest.er1 | |
5524 | cat conftest.err >&5 | |
ec6a6fbe | 5525 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5526 | (exit $ac_status); } && { |
5527 | test -z "$ac_c_werror_flag" || | |
5528 | test ! -s conftest.err | |
5529 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5530 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5531 | else |
ec6a6fbe | 5532 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5533 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5534 | |
7a197a62 | 5535 | |
8ce0cbda | 5536 | fi |
7a197a62 AK |
5537 | |
5538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5539 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5540 | done |
8ce0cbda | 5541 | |
8ce0cbda | 5542 | fi |
ec6a6fbe AK |
5543 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5544 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5545 | |
5546 | ||
ad6254c5 AK |
5547 | case $ac_cv_c_inline in |
5548 | inline | yes) ;; | |
8a2fc586 AK |
5549 | *) |
5550 | case $ac_cv_c_inline in | |
5551 | no) ac_val=;; | |
5552 | *) ac_val=$ac_cv_c_inline;; | |
5553 | esac | |
5554 | cat >>confdefs.h <<_ACEOF | |
5555 | #ifndef __cplusplus | |
5556 | #define inline $ac_val | |
5557 | #endif | |
c1c065a3 | 5558 | _ACEOF |
d0191583 JM |
5559 | ;; |
5560 | esac | |
5561 | ||
ec6a6fbe AK |
5562 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5563 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5564 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5565 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5566 | else |
5567 | cat >conftest.$ac_ext <<_ACEOF | |
5568 | /* confdefs.h. */ | |
5569 | _ACEOF | |
5570 | cat confdefs.h >>conftest.$ac_ext | |
5571 | cat >>conftest.$ac_ext <<_ACEOF | |
5572 | /* end confdefs.h. */ | |
5573 | $ac_includes_default | |
5574 | int | |
5575 | main () | |
5576 | { | |
5577 | static struct stat ac_aggr; | |
5578 | if (ac_aggr.st_rdev) | |
5579 | return 0; | |
5580 | ; | |
5581 | return 0; | |
5582 | } | |
5583 | _ACEOF | |
5584 | rm -f conftest.$ac_objext | |
5585 | if { (ac_try="$ac_compile" | |
5586 | case "(($ac_try" in | |
5587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5588 | *) ac_try_echo=$ac_try;; | |
5589 | esac | |
ec6a6fbe AK |
5590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5591 | $as_echo "$ac_try_echo") >&5 | |
5592 | (eval "$ac_compile") 2>conftest.er1 | |
5593 | ac_status=$? | |
5594 | grep -v '^ *+' conftest.er1 >conftest.err | |
5595 | rm -f conftest.er1 | |
5596 | cat conftest.err >&5 | |
5597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5598 | (exit $ac_status); } && { | |
5599 | test -z "$ac_c_werror_flag" || | |
5600 | test ! -s conftest.err | |
5601 | } && test -s conftest.$ac_objext; then | |
5602 | ac_cv_member_struct_stat_st_rdev=yes | |
5603 | else | |
5604 | $as_echo "$as_me: failed program was:" >&5 | |
5605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5606 | ||
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 (sizeof 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 | |
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 | ac_cv_member_struct_stat_st_rdev=no | |
5648 | fi | |
5649 | ||
5650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5651 | fi | |
5652 | ||
5653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5654 | fi | |
5655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5656 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5657 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5658 | ||
5659 | cat >>confdefs.h <<_ACEOF | |
5660 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5661 | _ACEOF | |
5662 | ||
5663 | ||
5664 | fi | |
5665 | ||
5666 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5667 | $as_echo_n "checking for off_t... " >&6; } | |
5668 | if test "${ac_cv_type_off_t+set}" = set; then | |
5669 | $as_echo_n "(cached) " >&6 | |
5670 | else | |
5671 | ac_cv_type_off_t=no | |
5672 | cat >conftest.$ac_ext <<_ACEOF | |
5673 | /* confdefs.h. */ | |
5674 | _ACEOF | |
5675 | cat confdefs.h >>conftest.$ac_ext | |
5676 | cat >>conftest.$ac_ext <<_ACEOF | |
5677 | /* end confdefs.h. */ | |
5678 | $ac_includes_default | |
5679 | int | |
5680 | main () | |
5681 | { | |
5682 | if (sizeof (off_t)) | |
5683 | return 0; | |
5684 | ; | |
5685 | return 0; | |
5686 | } | |
5687 | _ACEOF | |
5688 | rm -f conftest.$ac_objext | |
5689 | if { (ac_try="$ac_compile" | |
5690 | case "(($ac_try" in | |
5691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5692 | *) ac_try_echo=$ac_try;; | |
5693 | esac | |
5694 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5695 | $as_echo "$ac_try_echo") >&5 | |
5696 | (eval "$ac_compile") 2>conftest.er1 | |
5697 | ac_status=$? | |
5698 | grep -v '^ *+' conftest.er1 >conftest.err | |
5699 | rm -f conftest.er1 | |
5700 | cat conftest.err >&5 | |
5701 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5702 | (exit $ac_status); } && { | |
5703 | test -z "$ac_c_werror_flag" || | |
5704 | test ! -s conftest.err | |
5705 | } && test -s conftest.$ac_objext; then | |
5706 | cat >conftest.$ac_ext <<_ACEOF | |
5707 | /* confdefs.h. */ | |
5708 | _ACEOF | |
5709 | cat confdefs.h >>conftest.$ac_ext | |
5710 | cat >>conftest.$ac_ext <<_ACEOF | |
5711 | /* end confdefs.h. */ | |
5712 | $ac_includes_default | |
5713 | int | |
5714 | main () | |
5715 | { | |
5716 | if (sizeof ((off_t))) | |
5717 | return 0; | |
5718 | ; | |
5719 | return 0; | |
5720 | } | |
5721 | _ACEOF | |
5722 | rm -f conftest.$ac_objext | |
5723 | if { (ac_try="$ac_compile" | |
5724 | case "(($ac_try" in | |
5725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5726 | *) ac_try_echo=$ac_try;; | |
5727 | esac | |
5728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5729 | $as_echo "$ac_try_echo") >&5 | |
5730 | (eval "$ac_compile") 2>conftest.er1 | |
5731 | ac_status=$? | |
5732 | grep -v '^ *+' conftest.er1 >conftest.err | |
5733 | rm -f conftest.er1 | |
5734 | cat conftest.err >&5 | |
5735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5736 | (exit $ac_status); } && { | |
5737 | test -z "$ac_c_werror_flag" || | |
5738 | test ! -s conftest.err | |
5739 | } && test -s conftest.$ac_objext; then | |
5740 | : | |
5741 | else | |
5742 | $as_echo "$as_me: failed program was:" >&5 | |
5743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5744 | ||
5745 | ac_cv_type_off_t=yes | |
5746 | fi | |
5747 | ||
5748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5749 | else | |
5750 | $as_echo "$as_me: failed program was:" >&5 | |
5751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5752 | ||
5753 | ||
5754 | fi | |
5755 | ||
5756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5757 | fi | |
5758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5759 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5760 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5761 | : | |
5762 | else | |
5763 | ||
5764 | cat >>confdefs.h <<_ACEOF | |
5765 | #define off_t long int | |
5766 | _ACEOF | |
5767 | ||
5768 | fi | |
5769 | ||
5770 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5771 | $as_echo_n "checking for pid_t... " >&6; } | |
5772 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5773 | $as_echo_n "(cached) " >&6 | |
5774 | else | |
5775 | ac_cv_type_pid_t=no | |
5776 | cat >conftest.$ac_ext <<_ACEOF | |
5777 | /* confdefs.h. */ | |
5778 | _ACEOF | |
5779 | cat confdefs.h >>conftest.$ac_ext | |
5780 | cat >>conftest.$ac_ext <<_ACEOF | |
5781 | /* end confdefs.h. */ | |
5782 | $ac_includes_default | |
5783 | int | |
5784 | main () | |
5785 | { | |
5786 | if (sizeof (pid_t)) | |
5787 | return 0; | |
5788 | ; | |
5789 | return 0; | |
5790 | } | |
5791 | _ACEOF | |
5792 | rm -f conftest.$ac_objext | |
5793 | if { (ac_try="$ac_compile" | |
5794 | case "(($ac_try" in | |
5795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5796 | *) ac_try_echo=$ac_try;; | |
5797 | esac | |
5798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5799 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5800 | (eval "$ac_compile") 2>conftest.er1 |
5801 | ac_status=$? | |
5802 | grep -v '^ *+' conftest.er1 >conftest.err | |
5803 | rm -f conftest.er1 | |
5804 | cat conftest.err >&5 | |
ec6a6fbe | 5805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5806 | (exit $ac_status); } && { |
5807 | test -z "$ac_c_werror_flag" || | |
5808 | test ! -s conftest.err | |
5809 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5810 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5811 | /* confdefs.h. */ |
5812 | _ACEOF | |
5813 | cat confdefs.h >>conftest.$ac_ext | |
5814 | cat >>conftest.$ac_ext <<_ACEOF | |
5815 | /* end confdefs.h. */ | |
5816 | $ac_includes_default | |
5817 | int | |
5818 | main () | |
5819 | { | |
ec6a6fbe AK |
5820 | if (sizeof ((pid_t))) |
5821 | return 0; | |
d0191583 JM |
5822 | ; |
5823 | return 0; | |
5824 | } | |
5825 | _ACEOF | |
5826 | rm -f conftest.$ac_objext | |
5827 | if { (ac_try="$ac_compile" | |
5828 | case "(($ac_try" in | |
5829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5830 | *) ac_try_echo=$ac_try;; | |
5831 | esac | |
ec6a6fbe AK |
5832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5833 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5834 | (eval "$ac_compile") 2>conftest.er1 |
5835 | ac_status=$? | |
5836 | grep -v '^ *+' conftest.er1 >conftest.err | |
5837 | rm -f conftest.er1 | |
5838 | cat conftest.err >&5 | |
ec6a6fbe | 5839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5840 | (exit $ac_status); } && { |
5841 | test -z "$ac_c_werror_flag" || | |
5842 | test ! -s conftest.err | |
5843 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5844 | : |
d0191583 | 5845 | else |
ec6a6fbe | 5846 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5847 | sed 's/^/| /' conftest.$ac_ext >&5 |
5848 | ||
ec6a6fbe | 5849 | ac_cv_type_pid_t=yes |
d0191583 JM |
5850 | fi |
5851 | ||
5852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5853 | else |
5854 | $as_echo "$as_me: failed program was:" >&5 | |
5855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5856 | ||
5857 | ||
d0191583 JM |
5858 | fi |
5859 | ||
5860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5861 | fi | |
ec6a6fbe AK |
5862 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5863 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5864 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5865 | : | |
5866 | else | |
d0191583 JM |
5867 | |
5868 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5869 | #define pid_t int |
d0191583 JM |
5870 | _ACEOF |
5871 | ||
d0191583 | 5872 | fi |
8ce0cbda | 5873 | |
ec6a6fbe AK |
5874 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5875 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5876 | if test "${ac_cv_type_signal+set}" = set; then | |
5877 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5878 | else |
b145d876 ZK |
5879 | cat >conftest.$ac_ext <<_ACEOF |
5880 | /* confdefs.h. */ | |
5881 | _ACEOF | |
5882 | cat confdefs.h >>conftest.$ac_ext | |
5883 | cat >>conftest.$ac_ext <<_ACEOF | |
5884 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5885 | #include <sys/types.h> |
5886 | #include <signal.h> | |
5887 | ||
b145d876 ZK |
5888 | int |
5889 | main () | |
5890 | { | |
ec6a6fbe | 5891 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5892 | ; |
5893 | return 0; | |
5894 | } | |
5895 | _ACEOF | |
5896 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5897 | if { (ac_try="$ac_compile" |
5898 | case "(($ac_try" in | |
5899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5900 | *) ac_try_echo=$ac_try;; | |
5901 | esac | |
ec6a6fbe AK |
5902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5903 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5904 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5905 | ac_status=$? |
8a2fc586 AK |
5906 | grep -v '^ *+' conftest.er1 >conftest.err |
5907 | rm -f conftest.er1 | |
5908 | cat conftest.err >&5 | |
ec6a6fbe | 5909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5910 | (exit $ac_status); } && { |
5911 | test -z "$ac_c_werror_flag" || | |
5912 | test ! -s conftest.err | |
5913 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5914 | ac_cv_type_signal=int |
b145d876 | 5915 | else |
ec6a6fbe | 5916 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5917 | sed 's/^/| /' conftest.$ac_ext >&5 |
5918 | ||
ec6a6fbe | 5919 | ac_cv_type_signal=void |
ad6254c5 | 5920 | fi |
b145d876 ZK |
5921 | |
5922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5923 | fi | |
ec6a6fbe AK |
5924 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5925 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 5926 | |
ad6254c5 | 5927 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5928 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 5929 | _ACEOF |
199e490e | 5930 | |
b896caa1 | 5931 | |
ec6a6fbe AK |
5932 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5933 | $as_echo_n "checking for size_t... " >&6; } | |
5934 | if test "${ac_cv_type_size_t+set}" = set; then | |
5935 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5936 | else |
ec6a6fbe AK |
5937 | ac_cv_type_size_t=no |
5938 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
5939 | /* confdefs.h. */ |
5940 | _ACEOF | |
5941 | cat confdefs.h >>conftest.$ac_ext | |
5942 | cat >>conftest.$ac_ext <<_ACEOF | |
5943 | /* end confdefs.h. */ | |
5944 | $ac_includes_default | |
5945 | int | |
5946 | main () | |
5947 | { | |
ec6a6fbe AK |
5948 | if (sizeof (size_t)) |
5949 | return 0; | |
ad6254c5 AK |
5950 | ; |
5951 | return 0; | |
5952 | } | |
5953 | _ACEOF | |
5954 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5955 | if { (ac_try="$ac_compile" |
5956 | case "(($ac_try" in | |
5957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5958 | *) ac_try_echo=$ac_try;; | |
5959 | esac | |
ec6a6fbe AK |
5960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5961 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5962 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5963 | ac_status=$? |
8a2fc586 AK |
5964 | grep -v '^ *+' conftest.er1 >conftest.err |
5965 | rm -f conftest.er1 | |
5966 | cat conftest.err >&5 | |
ec6a6fbe | 5967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5968 | (exit $ac_status); } && { |
5969 | test -z "$ac_c_werror_flag" || | |
5970 | test ! -s conftest.err | |
5971 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
5972 | cat >conftest.$ac_ext <<_ACEOF |
5973 | /* confdefs.h. */ | |
5974 | _ACEOF | |
5975 | cat confdefs.h >>conftest.$ac_ext | |
5976 | cat >>conftest.$ac_ext <<_ACEOF | |
5977 | /* end confdefs.h. */ | |
ec6a6fbe | 5978 | $ac_includes_default |
d0191583 JM |
5979 | int |
5980 | main () | |
5981 | { | |
ec6a6fbe AK |
5982 | if (sizeof ((size_t))) |
5983 | return 0; | |
d0191583 JM |
5984 | ; |
5985 | return 0; | |
5986 | } | |
5987 | _ACEOF | |
5988 | rm -f conftest.$ac_objext | |
5989 | if { (ac_try="$ac_compile" | |
5990 | case "(($ac_try" in | |
5991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5992 | *) ac_try_echo=$ac_try;; | |
5993 | esac | |
ec6a6fbe AK |
5994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5995 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5996 | (eval "$ac_compile") 2>conftest.er1 |
5997 | ac_status=$? | |
5998 | grep -v '^ *+' conftest.er1 >conftest.err | |
5999 | rm -f conftest.er1 | |
6000 | cat conftest.err >&5 | |
ec6a6fbe | 6001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6002 | (exit $ac_status); } && { |
6003 | test -z "$ac_c_werror_flag" || | |
6004 | test ! -s conftest.err | |
6005 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6006 | : |
d0191583 | 6007 | else |
ec6a6fbe | 6008 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6009 | sed 's/^/| /' conftest.$ac_ext >&5 |
6010 | ||
ec6a6fbe AK |
6011 | ac_cv_type_size_t=yes |
6012 | fi | |
6013 | ||
6014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6015 | else | |
6016 | $as_echo "$as_me: failed program was:" >&5 | |
6017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6018 | ||
6019 | ||
d0191583 JM |
6020 | fi |
6021 | ||
6022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6023 | fi | |
ec6a6fbe AK |
6024 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6025 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6026 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6027 | : | |
6028 | else | |
d0191583 JM |
6029 | |
6030 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6031 | #define size_t unsigned int |
d0191583 JM |
6032 | _ACEOF |
6033 | ||
ec6a6fbe | 6034 | fi |
d0191583 | 6035 | |
ec6a6fbe AK |
6036 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6037 | $as_echo_n "checking for mode_t... " >&6; } | |
6038 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6039 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6040 | else |
ec6a6fbe AK |
6041 | ac_cv_type_mode_t=no |
6042 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6043 | /* confdefs.h. */ |
6044 | _ACEOF | |
6045 | cat confdefs.h >>conftest.$ac_ext | |
6046 | cat >>conftest.$ac_ext <<_ACEOF | |
6047 | /* end confdefs.h. */ | |
6048 | $ac_includes_default | |
6049 | int | |
6050 | main () | |
6051 | { | |
ec6a6fbe AK |
6052 | if (sizeof (mode_t)) |
6053 | return 0; | |
ad6254c5 AK |
6054 | ; |
6055 | return 0; | |
6056 | } | |
6057 | _ACEOF | |
6058 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6059 | if { (ac_try="$ac_compile" |
6060 | case "(($ac_try" in | |
6061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6062 | *) ac_try_echo=$ac_try;; | |
6063 | esac | |
ec6a6fbe AK |
6064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6065 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6066 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6067 | ac_status=$? |
8a2fc586 AK |
6068 | grep -v '^ *+' conftest.er1 >conftest.err |
6069 | rm -f conftest.er1 | |
6070 | cat conftest.err >&5 | |
ec6a6fbe | 6071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6072 | (exit $ac_status); } && { |
6073 | test -z "$ac_c_werror_flag" || | |
6074 | test ! -s conftest.err | |
6075 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6076 | cat >conftest.$ac_ext <<_ACEOF |
6077 | /* confdefs.h. */ | |
6078 | _ACEOF | |
6079 | cat confdefs.h >>conftest.$ac_ext | |
6080 | cat >>conftest.$ac_ext <<_ACEOF | |
6081 | /* end confdefs.h. */ | |
6082 | $ac_includes_default | |
6083 | int | |
6084 | main () | |
6085 | { | |
ec6a6fbe AK |
6086 | if (sizeof ((mode_t))) |
6087 | return 0; | |
ad6254c5 AK |
6088 | ; |
6089 | return 0; | |
6090 | } | |
6091 | _ACEOF | |
6092 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6093 | if { (ac_try="$ac_compile" |
6094 | case "(($ac_try" in | |
6095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6096 | *) ac_try_echo=$ac_try;; | |
6097 | esac | |
ec6a6fbe AK |
6098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6099 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6100 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6101 | ac_status=$? |
8a2fc586 AK |
6102 | grep -v '^ *+' conftest.er1 >conftest.err |
6103 | rm -f conftest.er1 | |
6104 | cat conftest.err >&5 | |
ec6a6fbe | 6105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6106 | (exit $ac_status); } && { |
6107 | test -z "$ac_c_werror_flag" || | |
6108 | test ! -s conftest.err | |
6109 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6110 | : |
6111 | else | |
6112 | $as_echo "$as_me: failed program was:" >&5 | |
6113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6114 | ||
6115 | ac_cv_type_mode_t=yes | |
6116 | fi | |
6117 | ||
6118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6119 | else |
ec6a6fbe | 6120 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6121 | sed 's/^/| /' conftest.$ac_ext >&5 |
6122 | ||
ec6a6fbe | 6123 | |
80992638 | 6124 | fi |
7a197a62 AK |
6125 | |
6126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6127 | fi |
ec6a6fbe AK |
6128 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6129 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6130 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6131 | : |
6132 | else | |
80992638 | 6133 | |
ad6254c5 AK |
6134 | cat >>confdefs.h <<_ACEOF |
6135 | #define mode_t int | |
6136 | _ACEOF | |
6137 | ||
6138 | fi | |
6139 | ||
ec6a6fbe AK |
6140 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6141 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6142 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6143 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6144 | else |
6145 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6146 | /* confdefs.h. */ |
6147 | _ACEOF | |
6148 | cat confdefs.h >>conftest.$ac_ext | |
6149 | cat >>conftest.$ac_ext <<_ACEOF | |
6150 | /* end confdefs.h. */ | |
6151 | $ac_includes_default | |
6152 | int | |
6153 | main () | |
6154 | { | |
6155 | static struct stat ac_aggr; | |
6156 | if (ac_aggr.st_rdev) | |
6157 | return 0; | |
6158 | ; | |
6159 | return 0; | |
6160 | } | |
6161 | _ACEOF | |
6162 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6163 | if { (ac_try="$ac_compile" |
6164 | case "(($ac_try" in | |
6165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6166 | *) ac_try_echo=$ac_try;; | |
6167 | esac | |
ec6a6fbe AK |
6168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6169 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6170 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6171 | ac_status=$? |
8a2fc586 AK |
6172 | grep -v '^ *+' conftest.er1 >conftest.err |
6173 | rm -f conftest.er1 | |
6174 | cat conftest.err >&5 | |
ec6a6fbe | 6175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6176 | (exit $ac_status); } && { |
6177 | test -z "$ac_c_werror_flag" || | |
6178 | test ! -s conftest.err | |
6179 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6180 | ac_cv_member_struct_stat_st_rdev=yes |
6181 | else | |
ec6a6fbe | 6182 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6183 | sed 's/^/| /' conftest.$ac_ext >&5 |
6184 | ||
7a197a62 | 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 (sizeof 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 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6226 | fi |
7a197a62 AK |
6227 | |
6228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6229 | fi |
7a197a62 AK |
6230 | |
6231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6232 | fi |
ec6a6fbe AK |
6233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6234 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6235 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6236 | |
6237 | cat >>confdefs.h <<_ACEOF | |
6238 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6239 | _ACEOF | |
6240 | ||
6241 | ||
ad6254c5 AK |
6242 | fi |
6243 | ||
ec6a6fbe AK |
6244 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6245 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6246 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6247 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6248 | else |
6249 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6250 | /* confdefs.h. */ |
6251 | _ACEOF | |
6252 | cat confdefs.h >>conftest.$ac_ext | |
6253 | cat >>conftest.$ac_ext <<_ACEOF | |
6254 | /* end confdefs.h. */ | |
6255 | #include <sys/types.h> | |
6256 | #include <time.h> | |
6257 | ||
6258 | int | |
6259 | main () | |
6260 | { | |
25fbec5b AK |
6261 | struct tm tm; |
6262 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6263 | return !p; |
ad6254c5 AK |
6264 | ; |
6265 | return 0; | |
6266 | } | |
6267 | _ACEOF | |
6268 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6269 | if { (ac_try="$ac_compile" |
6270 | case "(($ac_try" in | |
6271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6272 | *) ac_try_echo=$ac_try;; | |
6273 | esac | |
ec6a6fbe AK |
6274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6275 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6276 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6277 | ac_status=$? |
8a2fc586 AK |
6278 | grep -v '^ *+' conftest.er1 >conftest.err |
6279 | rm -f conftest.er1 | |
6280 | cat conftest.err >&5 | |
ec6a6fbe | 6281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6282 | (exit $ac_status); } && { |
6283 | test -z "$ac_c_werror_flag" || | |
6284 | test ! -s conftest.err | |
6285 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6286 | ac_cv_struct_tm=time.h |
6287 | else | |
ec6a6fbe | 6288 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6289 | sed 's/^/| /' conftest.$ac_ext >&5 |
6290 | ||
7a197a62 | 6291 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6292 | fi |
7a197a62 AK |
6293 | |
6294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6295 | fi |
ec6a6fbe AK |
6296 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6297 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6298 | if test $ac_cv_struct_tm = sys/time.h; then |
6299 | ||
6300 | cat >>confdefs.h <<\_ACEOF | |
6301 | #define TM_IN_SYS_TIME 1 | |
6302 | _ACEOF | |
6303 | ||
6304 | fi | |
809fae91 | 6305 | |
795ca3e5 | 6306 | |
80992638 | 6307 | ################################################################################ |
ad6254c5 AK |
6308 | |
6309 | ||
6310 | ||
6311 | ||
6312 | ||
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | ||
6318 | ||
6319 | ||
6320 | ||
6321 | ||
d0191583 JM |
6322 | |
6323 | ||
6324 | ||
6325 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6326 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6327 | uname | |
ad6254c5 | 6328 | do |
ec6a6fbe AK |
6329 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6330 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6331 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6332 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6333 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6334 | else |
ad6254c5 | 6335 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6336 | /* confdefs.h. */ |
6337 | _ACEOF | |
6338 | cat confdefs.h >>conftest.$ac_ext | |
6339 | cat >>conftest.$ac_ext <<_ACEOF | |
6340 | /* end confdefs.h. */ | |
8a2fc586 AK |
6341 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6342 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6343 | #define $ac_func innocuous_$ac_func | |
6344 | ||
ad6254c5 AK |
6345 | /* System header to define __stub macros and hopefully few prototypes, |
6346 | which can conflict with char $ac_func (); below. | |
6347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6348 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6349 | |
ad6254c5 AK |
6350 | #ifdef __STDC__ |
6351 | # include <limits.h> | |
6352 | #else | |
6353 | # include <assert.h> | |
6354 | #endif | |
8a2fc586 AK |
6355 | |
6356 | #undef $ac_func | |
6357 | ||
7a197a62 AK |
6358 | /* Override any GCC internal prototype to avoid an error. |
6359 | Use char because int might match the return type of a GCC | |
6360 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6361 | #ifdef __cplusplus |
6362 | extern "C" | |
ad6254c5 | 6363 | #endif |
ad6254c5 AK |
6364 | char $ac_func (); |
6365 | /* The GNU C library defines this for functions which it implements | |
6366 | to always fail with ENOSYS. Some functions are actually named | |
6367 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6368 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6369 | choke me |
ad6254c5 AK |
6370 | #endif |
6371 | ||
6372 | int | |
6373 | main () | |
6374 | { | |
7a197a62 | 6375 | return $ac_func (); |
ad6254c5 AK |
6376 | ; |
6377 | return 0; | |
6378 | } | |
6379 | _ACEOF | |
6380 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6381 | if { (ac_try="$ac_link" |
6382 | case "(($ac_try" in | |
6383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6384 | *) ac_try_echo=$ac_try;; | |
6385 | esac | |
ec6a6fbe AK |
6386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6387 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6388 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6389 | ac_status=$? |
8a2fc586 AK |
6390 | grep -v '^ *+' conftest.er1 >conftest.err |
6391 | rm -f conftest.er1 | |
6392 | cat conftest.err >&5 | |
ec6a6fbe | 6393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6394 | (exit $ac_status); } && { |
6395 | test -z "$ac_c_werror_flag" || | |
6396 | test ! -s conftest.err | |
ec6a6fbe AK |
6397 | } && test -s conftest$ac_exeext && { |
6398 | test "$cross_compiling" = yes || | |
6399 | $as_test_x conftest$ac_exeext | |
6400 | }; then | |
fc54be10 AK |
6401 | eval "$as_ac_var=yes" |
6402 | else | |
ec6a6fbe | 6403 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 |
6405 | ||
6406 | eval "$as_ac_var=no" | |
6407 | fi | |
6408 | ||
ec6a6fbe | 6409 | rm -rf conftest.dSYM |
25fbec5b | 6410 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6411 | conftest$ac_exeext conftest.$ac_ext |
6412 | fi | |
ec6a6fbe AK |
6413 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6414 | $as_echo "$as_val"'` | |
6415 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6416 | $as_echo "$ac_res" >&6; } | |
6417 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6418 | $as_echo "$as_val"'` | |
6419 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6420 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6421 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6422 | _ACEOF |
6423 | ||
6424 | else | |
ec6a6fbe AK |
6425 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6426 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6427 | { (exit 1); exit 1; }; } |
6428 | fi | |
6429 | done | |
795ca3e5 | 6430 | |
ad6254c5 AK |
6431 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6432 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6433 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6434 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6435 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6436 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6437 | else |
6438 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6439 | /* confdefs.h. */ |
6440 | _ACEOF | |
6441 | cat confdefs.h >>conftest.$ac_ext | |
6442 | cat >>conftest.$ac_ext <<_ACEOF | |
6443 | /* end confdefs.h. */ | |
6444 | #include <alloca.h> | |
6445 | int | |
6446 | main () | |
6447 | { | |
6448 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6449 | if (p) return 0; |
ad6254c5 AK |
6450 | ; |
6451 | return 0; | |
6452 | } | |
6453 | _ACEOF | |
6454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6455 | if { (ac_try="$ac_link" |
6456 | case "(($ac_try" in | |
6457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6458 | *) ac_try_echo=$ac_try;; | |
6459 | esac | |
ec6a6fbe AK |
6460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6461 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6462 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6463 | ac_status=$? |
8a2fc586 AK |
6464 | grep -v '^ *+' conftest.er1 >conftest.err |
6465 | rm -f conftest.er1 | |
6466 | cat conftest.err >&5 | |
ec6a6fbe | 6467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6468 | (exit $ac_status); } && { |
6469 | test -z "$ac_c_werror_flag" || | |
6470 | test ! -s conftest.err | |
ec6a6fbe AK |
6471 | } && test -s conftest$ac_exeext && { |
6472 | test "$cross_compiling" = yes || | |
6473 | $as_test_x conftest$ac_exeext | |
6474 | }; then | |
ad6254c5 AK |
6475 | ac_cv_working_alloca_h=yes |
6476 | else | |
ec6a6fbe | 6477 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6478 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6479 | |
7a197a62 | 6480 | ac_cv_working_alloca_h=no |
ad6254c5 | 6481 | fi |
7a197a62 | 6482 | |
ec6a6fbe | 6483 | rm -rf conftest.dSYM |
25fbec5b | 6484 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6485 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6486 | fi |
ec6a6fbe AK |
6487 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6488 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6489 | if test $ac_cv_working_alloca_h = yes; then |
6490 | ||
6491 | cat >>confdefs.h <<\_ACEOF | |
6492 | #define HAVE_ALLOCA_H 1 | |
6493 | _ACEOF | |
6494 | ||
6495 | fi | |
6496 | ||
ec6a6fbe AK |
6497 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6498 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6499 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6500 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6501 | else |
6502 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6503 | /* confdefs.h. */ |
6504 | _ACEOF | |
6505 | cat confdefs.h >>conftest.$ac_ext | |
6506 | cat >>conftest.$ac_ext <<_ACEOF | |
6507 | /* end confdefs.h. */ | |
6508 | #ifdef __GNUC__ | |
6509 | # define alloca __builtin_alloca | |
6510 | #else | |
6511 | # ifdef _MSC_VER | |
6512 | # include <malloc.h> | |
6513 | # define alloca _alloca | |
6514 | # else | |
25fbec5b | 6515 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6516 | # include <alloca.h> |
6517 | # else | |
6518 | # ifdef _AIX | |
6519 | #pragma alloca | |
6520 | # else | |
6521 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6522 | char *alloca (); | |
6523 | # endif | |
6524 | # endif | |
6525 | # endif | |
6526 | # endif | |
6527 | #endif | |
6528 | ||
6529 | int | |
6530 | main () | |
6531 | { | |
6532 | char *p = (char *) alloca (1); | |
7a197a62 | 6533 | if (p) return 0; |
ad6254c5 AK |
6534 | ; |
6535 | return 0; | |
6536 | } | |
6537 | _ACEOF | |
6538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6539 | if { (ac_try="$ac_link" |
6540 | case "(($ac_try" in | |
6541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6542 | *) ac_try_echo=$ac_try;; | |
6543 | esac | |
ec6a6fbe AK |
6544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6545 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6546 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6547 | ac_status=$? |
8a2fc586 AK |
6548 | grep -v '^ *+' conftest.er1 >conftest.err |
6549 | rm -f conftest.er1 | |
6550 | cat conftest.err >&5 | |
ec6a6fbe | 6551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6552 | (exit $ac_status); } && { |
6553 | test -z "$ac_c_werror_flag" || | |
6554 | test ! -s conftest.err | |
ec6a6fbe AK |
6555 | } && test -s conftest$ac_exeext && { |
6556 | test "$cross_compiling" = yes || | |
6557 | $as_test_x conftest$ac_exeext | |
6558 | }; then | |
ad6254c5 AK |
6559 | ac_cv_func_alloca_works=yes |
6560 | else | |
ec6a6fbe | 6561 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6562 | sed 's/^/| /' conftest.$ac_ext >&5 |
6563 | ||
7a197a62 | 6564 | ac_cv_func_alloca_works=no |
ad6254c5 | 6565 | fi |
7a197a62 | 6566 | |
ec6a6fbe | 6567 | rm -rf conftest.dSYM |
25fbec5b | 6568 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6569 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6570 | fi |
ec6a6fbe AK |
6571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6572 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6573 | |
6574 | if test $ac_cv_func_alloca_works = yes; then | |
6575 | ||
6576 | cat >>confdefs.h <<\_ACEOF | |
6577 | #define HAVE_ALLOCA 1 | |
6578 | _ACEOF | |
6579 | ||
6580 | else | |
6581 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6582 | # that cause trouble. Some versions do not even contain alloca or | |
6583 | # contain a buggy version. If you still want to use their alloca, | |
6584 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6585 | ||
7a197a62 | 6586 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6587 | |
6588 | cat >>confdefs.h <<\_ACEOF | |
6589 | #define C_ALLOCA 1 | |
6590 | _ACEOF | |
6591 | ||
6592 | ||
ec6a6fbe AK |
6593 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6594 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6595 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6596 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6597 | else |
6598 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6599 | /* confdefs.h. */ |
6600 | _ACEOF | |
6601 | cat confdefs.h >>conftest.$ac_ext | |
6602 | cat >>conftest.$ac_ext <<_ACEOF | |
6603 | /* end confdefs.h. */ | |
7a197a62 | 6604 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6605 | webecray |
6606 | #else | |
6607 | wenotbecray | |
6608 | #endif | |
6609 | ||
6610 | _ACEOF | |
795ca3e5 | 6611 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6612 | $EGREP "webecray" >/dev/null 2>&1; then |
6613 | ac_cv_os_cray=yes | |
6614 | else | |
6615 | ac_cv_os_cray=no | |
795ca3e5 AK |
6616 | fi |
6617 | rm -f conftest* | |
6618 | ||
795ca3e5 | 6619 | fi |
ec6a6fbe AK |
6620 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6621 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6622 | if test $ac_cv_os_cray = yes; then |
6623 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6624 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6625 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6626 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6627 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6628 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6629 | else |
6630 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6631 | /* confdefs.h. */ |
6632 | _ACEOF | |
6633 | cat confdefs.h >>conftest.$ac_ext | |
6634 | cat >>conftest.$ac_ext <<_ACEOF | |
6635 | /* end confdefs.h. */ | |
8a2fc586 AK |
6636 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6637 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6638 | #define $ac_func innocuous_$ac_func | |
6639 | ||
ad6254c5 AK |
6640 | /* System header to define __stub macros and hopefully few prototypes, |
6641 | which can conflict with char $ac_func (); below. | |
6642 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6643 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6644 | |
ad6254c5 AK |
6645 | #ifdef __STDC__ |
6646 | # include <limits.h> | |
6647 | #else | |
6648 | # include <assert.h> | |
6649 | #endif | |
8a2fc586 AK |
6650 | |
6651 | #undef $ac_func | |
6652 | ||
7a197a62 AK |
6653 | /* Override any GCC internal prototype to avoid an error. |
6654 | Use char because int might match the return type of a GCC | |
6655 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6656 | #ifdef __cplusplus |
6657 | extern "C" | |
ad6254c5 | 6658 | #endif |
ad6254c5 AK |
6659 | char $ac_func (); |
6660 | /* The GNU C library defines this for functions which it implements | |
6661 | to always fail with ENOSYS. Some functions are actually named | |
6662 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6663 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6664 | choke me |
ad6254c5 AK |
6665 | #endif |
6666 | ||
6667 | int | |
6668 | main () | |
6669 | { | |
7a197a62 | 6670 | return $ac_func (); |
ad6254c5 AK |
6671 | ; |
6672 | return 0; | |
6673 | } | |
6674 | _ACEOF | |
6675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6676 | if { (ac_try="$ac_link" |
6677 | case "(($ac_try" in | |
6678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6679 | *) ac_try_echo=$ac_try;; | |
6680 | esac | |
ec6a6fbe AK |
6681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6682 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6683 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6684 | ac_status=$? |
8a2fc586 AK |
6685 | grep -v '^ *+' conftest.er1 >conftest.err |
6686 | rm -f conftest.er1 | |
6687 | cat conftest.err >&5 | |
ec6a6fbe | 6688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6689 | (exit $ac_status); } && { |
6690 | test -z "$ac_c_werror_flag" || | |
6691 | test ! -s conftest.err | |
ec6a6fbe AK |
6692 | } && test -s conftest$ac_exeext && { |
6693 | test "$cross_compiling" = yes || | |
6694 | $as_test_x conftest$ac_exeext | |
6695 | }; then | |
ad6254c5 AK |
6696 | eval "$as_ac_var=yes" |
6697 | else | |
ec6a6fbe | 6698 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6699 | sed 's/^/| /' conftest.$ac_ext >&5 |
6700 | ||
7a197a62 | 6701 | eval "$as_ac_var=no" |
ad6254c5 | 6702 | fi |
7a197a62 | 6703 | |
ec6a6fbe | 6704 | rm -rf conftest.dSYM |
25fbec5b | 6705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6706 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6707 | fi |
ec6a6fbe AK |
6708 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6709 | $as_echo "$as_val"'` | |
6710 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6711 | $as_echo "$ac_res" >&6; } | |
6712 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6713 | $as_echo "$as_val"'` | |
6714 | if test "x$as_val" = x""yes; then | |
80992638 | 6715 | |
ad6254c5 AK |
6716 | cat >>confdefs.h <<_ACEOF |
6717 | #define CRAY_STACKSEG_END $ac_func | |
6718 | _ACEOF | |
6719 | ||
6720 | break | |
6721 | fi | |
6722 | ||
6723 | done | |
6724 | fi | |
6725 | ||
ec6a6fbe AK |
6726 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6727 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6728 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6729 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6730 | else |
6731 | if test "$cross_compiling" = yes; then | |
6732 | ac_cv_c_stack_direction=0 | |
6733 | else | |
6734 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6735 | /* confdefs.h. */ |
6736 | _ACEOF | |
6737 | cat confdefs.h >>conftest.$ac_ext | |
6738 | cat >>conftest.$ac_ext <<_ACEOF | |
6739 | /* end confdefs.h. */ | |
7a197a62 | 6740 | $ac_includes_default |
ad6254c5 AK |
6741 | int |
6742 | find_stack_direction () | |
6743 | { | |
6744 | static char *addr = 0; | |
6745 | auto char dummy; | |
6746 | if (addr == 0) | |
6747 | { | |
6748 | addr = &dummy; | |
6749 | return find_stack_direction (); | |
6750 | } | |
6751 | else | |
6752 | return (&dummy > addr) ? 1 : -1; | |
6753 | } | |
6754 | ||
6755 | int | |
6756 | main () | |
6757 | { | |
7a197a62 | 6758 | return find_stack_direction () < 0; |
ad6254c5 AK |
6759 | } |
6760 | _ACEOF | |
6761 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6762 | if { (ac_try="$ac_link" |
6763 | case "(($ac_try" in | |
6764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6765 | *) ac_try_echo=$ac_try;; | |
6766 | esac | |
ec6a6fbe AK |
6767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6768 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6769 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6770 | ac_status=$? |
ec6a6fbe | 6771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6772 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6773 | { (case "(($ac_try" in |
6774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6775 | *) ac_try_echo=$ac_try;; | |
6776 | esac | |
ec6a6fbe AK |
6777 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6778 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6779 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6780 | ac_status=$? |
ec6a6fbe | 6781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6782 | (exit $ac_status); }; }; then |
6783 | ac_cv_c_stack_direction=1 | |
6784 | else | |
ec6a6fbe AK |
6785 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6786 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6787 | sed 's/^/| /' conftest.$ac_ext >&5 |
6788 | ||
6789 | ( exit $ac_status ) | |
6790 | ac_cv_c_stack_direction=-1 | |
6791 | fi | |
ec6a6fbe | 6792 | rm -rf conftest.dSYM |
7a197a62 | 6793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6794 | fi |
7a197a62 AK |
6795 | |
6796 | ||
ad6254c5 | 6797 | fi |
ec6a6fbe AK |
6798 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6799 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6800 | |
6801 | cat >>confdefs.h <<_ACEOF | |
6802 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6803 | _ACEOF | |
6804 | ||
6805 | ||
6806 | fi | |
6807 | ||
ec6a6fbe AK |
6808 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6809 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6810 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6811 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6812 | else |
6813 | if test "$cross_compiling" = yes; then | |
6814 | ac_cv_func_closedir_void=yes | |
6815 | else | |
6816 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6817 | /* confdefs.h. */ |
6818 | _ACEOF | |
6819 | cat confdefs.h >>conftest.$ac_ext | |
6820 | cat >>conftest.$ac_ext <<_ACEOF | |
6821 | /* end confdefs.h. */ | |
6822 | $ac_includes_default | |
6823 | #include <$ac_header_dirent> | |
6824 | #ifndef __cplusplus | |
6825 | int closedir (); | |
6826 | #endif | |
6827 | ||
6828 | int | |
6829 | main () | |
6830 | { | |
7a197a62 | 6831 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6832 | ; |
6833 | return 0; | |
6834 | } | |
6835 | _ACEOF | |
6836 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6837 | if { (ac_try="$ac_link" |
6838 | case "(($ac_try" in | |
6839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6840 | *) ac_try_echo=$ac_try;; | |
6841 | esac | |
ec6a6fbe AK |
6842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6843 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6844 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6845 | ac_status=$? |
ec6a6fbe | 6846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6848 | { (case "(($ac_try" in |
6849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6850 | *) ac_try_echo=$ac_try;; | |
6851 | esac | |
ec6a6fbe AK |
6852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6853 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6854 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6855 | ac_status=$? |
ec6a6fbe | 6856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6857 | (exit $ac_status); }; }; then |
6858 | ac_cv_func_closedir_void=no | |
6859 | else | |
ec6a6fbe AK |
6860 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6861 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6862 | sed 's/^/| /' conftest.$ac_ext >&5 |
6863 | ||
6864 | ( exit $ac_status ) | |
6865 | ac_cv_func_closedir_void=yes | |
6866 | fi | |
ec6a6fbe | 6867 | rm -rf conftest.dSYM |
7a197a62 | 6868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6869 | fi |
7a197a62 AK |
6870 | |
6871 | ||
ad6254c5 | 6872 | fi |
ec6a6fbe AK |
6873 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6874 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6875 | if test $ac_cv_func_closedir_void = yes; then |
6876 | ||
6877 | cat >>confdefs.h <<\_ACEOF | |
6878 | #define CLOSEDIR_VOID 1 | |
6879 | _ACEOF | |
6880 | ||
6881 | fi | |
6882 | ||
6883 | ||
7a197a62 | 6884 | for ac_header in vfork.h |
ad6254c5 | 6885 | do |
ec6a6fbe | 6886 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6888 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6889 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6890 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6891 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6892 | fi |
ec6a6fbe AK |
6893 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6894 | $as_echo "$as_val"'` | |
6895 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6896 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6897 | else |
6898 | # Is the header compilable? | |
ec6a6fbe AK |
6899 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6900 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6901 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6902 | /* confdefs.h. */ |
6903 | _ACEOF | |
6904 | cat confdefs.h >>conftest.$ac_ext | |
6905 | cat >>conftest.$ac_ext <<_ACEOF | |
6906 | /* end confdefs.h. */ | |
6907 | $ac_includes_default | |
6908 | #include <$ac_header> | |
6909 | _ACEOF | |
6910 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6911 | if { (ac_try="$ac_compile" |
6912 | case "(($ac_try" in | |
6913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6914 | *) ac_try_echo=$ac_try;; | |
6915 | esac | |
ec6a6fbe AK |
6916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6917 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6918 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6919 | ac_status=$? |
8a2fc586 AK |
6920 | grep -v '^ *+' conftest.er1 >conftest.err |
6921 | rm -f conftest.er1 | |
6922 | cat conftest.err >&5 | |
ec6a6fbe | 6923 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6924 | (exit $ac_status); } && { |
6925 | test -z "$ac_c_werror_flag" || | |
6926 | test ! -s conftest.err | |
6927 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6928 | ac_header_compiler=yes |
6929 | else | |
ec6a6fbe | 6930 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6931 | sed 's/^/| /' conftest.$ac_ext >&5 |
6932 | ||
7a197a62 | 6933 | ac_header_compiler=no |
ad6254c5 | 6934 | fi |
7a197a62 AK |
6935 | |
6936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
6937 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6938 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6939 | |
6940 | # Is the header present? | |
ec6a6fbe AK |
6941 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6942 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6943 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6944 | /* confdefs.h. */ |
6945 | _ACEOF | |
6946 | cat confdefs.h >>conftest.$ac_ext | |
6947 | cat >>conftest.$ac_ext <<_ACEOF | |
6948 | /* end confdefs.h. */ | |
6949 | #include <$ac_header> | |
6950 | _ACEOF | |
7a197a62 AK |
6951 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6959 | ac_status=$? |
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); } >/dev/null && { |
6965 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6966 | test ! -s conftest.err | |
6967 | }; then | |
ad6254c5 AK |
6968 | ac_header_preproc=yes |
6969 | else | |
ec6a6fbe | 6970 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6971 | sed 's/^/| /' conftest.$ac_ext >&5 |
6972 | ||
6973 | ac_header_preproc=no | |
6974 | fi | |
7a197a62 | 6975 | |
ad6254c5 | 6976 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
6977 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6978 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6979 | |
6980 | # So? What about this header? | |
8a2fc586 AK |
6981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6982 | yes:no: ) | |
ec6a6fbe AK |
6983 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6984 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6986 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6987 | ac_header_preproc=yes |
ad6254c5 | 6988 | ;; |
8a2fc586 | 6989 | no:yes:* ) |
ec6a6fbe AK |
6990 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6991 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6992 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6993 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6994 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6995 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6996 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6997 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6998 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6999 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7001 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7002 | |
ad6254c5 AK |
7003 | ;; |
7004 | esac | |
ec6a6fbe AK |
7005 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7006 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7007 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7008 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7009 | else |
8a2fc586 | 7010 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7011 | fi |
ec6a6fbe AK |
7012 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7013 | $as_echo "$as_val"'` | |
7014 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7015 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7016 | |
795ca3e5 | 7017 | fi |
ec6a6fbe AK |
7018 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7019 | $as_echo "$as_val"'` | |
7020 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7021 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7022 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7023 | _ACEOF |
7024 | ||
7025 | fi | |
7026 | ||
7027 | done | |
795ca3e5 | 7028 | |
ad6254c5 AK |
7029 | |
7030 | ||
7031 | for ac_func in fork vfork | |
7032 | do | |
ec6a6fbe AK |
7033 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7034 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7035 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7036 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7037 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7038 | else |
ad6254c5 | 7039 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7040 | /* confdefs.h. */ |
7041 | _ACEOF | |
7042 | cat confdefs.h >>conftest.$ac_ext | |
7043 | cat >>conftest.$ac_ext <<_ACEOF | |
7044 | /* end confdefs.h. */ | |
8a2fc586 AK |
7045 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7046 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7047 | #define $ac_func innocuous_$ac_func | |
7048 | ||
ad6254c5 AK |
7049 | /* System header to define __stub macros and hopefully few prototypes, |
7050 | which can conflict with char $ac_func (); below. | |
7051 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7052 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7053 | |
ad6254c5 AK |
7054 | #ifdef __STDC__ |
7055 | # include <limits.h> | |
7056 | #else | |
7057 | # include <assert.h> | |
795ca3e5 | 7058 | #endif |
8a2fc586 AK |
7059 | |
7060 | #undef $ac_func | |
7061 | ||
7a197a62 AK |
7062 | /* Override any GCC internal prototype to avoid an error. |
7063 | Use char because int might match the return type of a GCC | |
7064 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7065 | #ifdef __cplusplus |
ad6254c5 | 7066 | extern "C" |
ad6254c5 | 7067 | #endif |
ad6254c5 AK |
7068 | char $ac_func (); |
7069 | /* The GNU C library defines this for functions which it implements | |
7070 | to always fail with ENOSYS. Some functions are actually named | |
7071 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7072 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7073 | choke me |
795ca3e5 AK |
7074 | #endif |
7075 | ||
ad6254c5 AK |
7076 | int |
7077 | main () | |
7078 | { | |
7a197a62 | 7079 | return $ac_func (); |
ad6254c5 AK |
7080 | ; |
7081 | return 0; | |
7082 | } | |
7083 | _ACEOF | |
7084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7085 | if { (ac_try="$ac_link" |
7086 | case "(($ac_try" in | |
7087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7088 | *) ac_try_echo=$ac_try;; | |
7089 | esac | |
ec6a6fbe AK |
7090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7091 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7092 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7093 | ac_status=$? |
8a2fc586 AK |
7094 | grep -v '^ *+' conftest.er1 >conftest.err |
7095 | rm -f conftest.er1 | |
7096 | cat conftest.err >&5 | |
ec6a6fbe | 7097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7098 | (exit $ac_status); } && { |
7099 | test -z "$ac_c_werror_flag" || | |
7100 | test ! -s conftest.err | |
ec6a6fbe AK |
7101 | } && test -s conftest$ac_exeext && { |
7102 | test "$cross_compiling" = yes || | |
7103 | $as_test_x conftest$ac_exeext | |
7104 | }; then | |
ad6254c5 | 7105 | eval "$as_ac_var=yes" |
795ca3e5 | 7106 | else |
ec6a6fbe | 7107 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7108 | sed 's/^/| /' conftest.$ac_ext >&5 |
7109 | ||
7a197a62 | 7110 | eval "$as_ac_var=no" |
795ca3e5 | 7111 | fi |
7a197a62 | 7112 | |
ec6a6fbe | 7113 | rm -rf conftest.dSYM |
25fbec5b | 7114 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7115 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7116 | fi |
ec6a6fbe AK |
7117 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7118 | $as_echo "$as_val"'` | |
7119 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7120 | $as_echo "$ac_res" >&6; } | |
7121 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7122 | $as_echo "$as_val"'` | |
7123 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7124 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7125 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7126 | _ACEOF |
7127 | ||
7128 | fi | |
7129 | done | |
7130 | ||
7131 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7132 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7133 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7134 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7135 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7136 | else |
7137 | if test "$cross_compiling" = yes; then | |
7138 | ac_cv_func_fork_works=cross | |
7139 | else | |
7140 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7141 | /* confdefs.h. */ |
7142 | _ACEOF | |
7143 | cat confdefs.h >>conftest.$ac_ext | |
7144 | cat >>conftest.$ac_ext <<_ACEOF | |
7145 | /* end confdefs.h. */ | |
7146 | $ac_includes_default | |
7147 | int | |
7148 | main () | |
7149 | { | |
7150 | ||
7151 | /* By Ruediger Kuhlmann. */ | |
7152 | return fork () < 0; | |
7153 | ||
7154 | ; | |
7155 | return 0; | |
7156 | } | |
ad6254c5 AK |
7157 | _ACEOF |
7158 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7159 | if { (ac_try="$ac_link" |
7160 | case "(($ac_try" in | |
7161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7162 | *) ac_try_echo=$ac_try;; | |
7163 | esac | |
ec6a6fbe AK |
7164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7165 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7166 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7167 | ac_status=$? |
ec6a6fbe | 7168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7169 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7170 | { (case "(($ac_try" in |
7171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7172 | *) ac_try_echo=$ac_try;; | |
7173 | esac | |
ec6a6fbe AK |
7174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7175 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7176 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7177 | ac_status=$? |
ec6a6fbe | 7178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7179 | (exit $ac_status); }; }; then |
7180 | ac_cv_func_fork_works=yes | |
7181 | else | |
ec6a6fbe AK |
7182 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7183 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7184 | sed 's/^/| /' conftest.$ac_ext >&5 |
7185 | ||
7186 | ( exit $ac_status ) | |
7187 | ac_cv_func_fork_works=no | |
7188 | fi | |
ec6a6fbe | 7189 | rm -rf conftest.dSYM |
7a197a62 | 7190 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7191 | fi |
7a197a62 AK |
7192 | |
7193 | ||
ad6254c5 | 7194 | fi |
ec6a6fbe AK |
7195 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7196 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7197 | |
7198 | else | |
7199 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7200 | fi | |
7201 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7202 | case $host in | |
7203 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7204 | # Override, as these systems have only a dummy fork() stub | |
7205 | ac_cv_func_fork_works=no | |
7206 | ;; | |
7207 | *) | |
7208 | ac_cv_func_fork_works=yes | |
7209 | ;; | |
7210 | esac | |
ec6a6fbe AK |
7211 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7212 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7213 | fi |
7214 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7215 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7216 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7217 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7218 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7219 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7220 | else |
7221 | if test "$cross_compiling" = yes; then | |
7222 | ac_cv_func_vfork_works=cross | |
7223 | else | |
7224 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7225 | /* confdefs.h. */ |
7226 | _ACEOF | |
7227 | cat confdefs.h >>conftest.$ac_ext | |
7228 | cat >>conftest.$ac_ext <<_ACEOF | |
7229 | /* end confdefs.h. */ | |
7230 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7231 | $ac_includes_default |
ad6254c5 | 7232 | #include <sys/wait.h> |
25fbec5b | 7233 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7234 | # include <vfork.h> |
7235 | #endif | |
7236 | /* On some sparc systems, changes by the child to local and incoming | |
7237 | argument registers are propagated back to the parent. The compiler | |
7238 | is told about this with #include <vfork.h>, but some compilers | |
7239 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7240 | static variable whose address is put into a register that is | |
7241 | clobbered by the vfork. */ | |
7242 | static void | |
7243 | #ifdef __cplusplus | |
7244 | sparc_address_test (int arg) | |
7245 | # else | |
7246 | sparc_address_test (arg) int arg; | |
7247 | #endif | |
7248 | { | |
7249 | static pid_t child; | |
7250 | if (!child) { | |
7251 | child = vfork (); | |
7252 | if (child < 0) { | |
7253 | perror ("vfork"); | |
7254 | _exit(2); | |
7255 | } | |
7256 | if (!child) { | |
7257 | arg = getpid(); | |
7258 | write(-1, "", 0); | |
7259 | _exit (arg); | |
7260 | } | |
7261 | } | |
7262 | } | |
7263 | ||
7264 | int | |
7265 | main () | |
7266 | { | |
7267 | pid_t parent = getpid (); | |
7268 | pid_t child; | |
7269 | ||
7270 | sparc_address_test (0); | |
7271 | ||
7272 | child = vfork (); | |
7273 | ||
7274 | if (child == 0) { | |
7275 | /* Here is another test for sparc vfork register problems. This | |
7276 | test uses lots of local variables, at least as many local | |
7277 | variables as main has allocated so far including compiler | |
7278 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7279 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7280 | reuse the register of parent for one of the local variables, | |
7281 | since it will think that parent can't possibly be used any more | |
7282 | in this routine. Assigning to the local variable will thus | |
7283 | munge parent in the parent process. */ | |
7284 | pid_t | |
7285 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7286 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7287 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7288 | use the same hardware register for all 8 local variables. */ | |
7289 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7290 | || p != p5 || p != p6 || p != p7) | |
7291 | _exit(1); | |
7292 | ||
7293 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7294 | from child file descriptors. If the child closes a descriptor | |
7295 | before it execs or exits, this munges the parent's descriptor | |
7296 | as well. Test for this by closing stdout in the child. */ | |
7297 | _exit(close(fileno(stdout)) != 0); | |
7298 | } else { | |
7299 | int status; | |
7300 | struct stat st; | |
7301 | ||
7302 | while (wait(&status) != child) | |
7303 | ; | |
7a197a62 | 7304 | return ( |
ad6254c5 AK |
7305 | /* Was there some problem with vforking? */ |
7306 | child < 0 | |
7307 | ||
7308 | /* Did the child fail? (This shouldn't happen.) */ | |
7309 | || status | |
7310 | ||
7311 | /* Did the vfork/compiler bug occur? */ | |
7312 | || parent != getpid() | |
7313 | ||
7314 | /* Did the file descriptor bug occur? */ | |
7315 | || fstat(fileno(stdout), &st) != 0 | |
7316 | ); | |
7317 | } | |
7318 | } | |
7319 | _ACEOF | |
7320 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7321 | if { (ac_try="$ac_link" |
7322 | case "(($ac_try" in | |
7323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7324 | *) ac_try_echo=$ac_try;; | |
7325 | esac | |
ec6a6fbe AK |
7326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7327 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7328 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7329 | ac_status=$? |
ec6a6fbe | 7330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7332 | { (case "(($ac_try" in |
7333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7334 | *) ac_try_echo=$ac_try;; | |
7335 | esac | |
ec6a6fbe AK |
7336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7337 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7338 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7339 | ac_status=$? |
ec6a6fbe | 7340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7341 | (exit $ac_status); }; }; then |
7342 | ac_cv_func_vfork_works=yes | |
7343 | else | |
ec6a6fbe AK |
7344 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7345 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7346 | sed 's/^/| /' conftest.$ac_ext >&5 |
7347 | ||
7348 | ( exit $ac_status ) | |
7349 | ac_cv_func_vfork_works=no | |
7350 | fi | |
ec6a6fbe | 7351 | rm -rf conftest.dSYM |
7a197a62 | 7352 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7353 | fi |
7a197a62 AK |
7354 | |
7355 | ||
ad6254c5 | 7356 | fi |
ec6a6fbe AK |
7357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7358 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7359 | |
7360 | fi; | |
7361 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7362 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7363 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7364 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7365 | fi |
7366 | ||
7367 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7368 | ||
7369 | cat >>confdefs.h <<\_ACEOF | |
7370 | #define HAVE_WORKING_VFORK 1 | |
7371 | _ACEOF | |
7372 | ||
7373 | else | |
7374 | ||
7375 | cat >>confdefs.h <<\_ACEOF | |
7376 | #define vfork fork | |
7377 | _ACEOF | |
7378 | ||
7379 | fi | |
7380 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7381 | ||
7382 | cat >>confdefs.h <<\_ACEOF | |
7383 | #define HAVE_WORKING_FORK 1 | |
7384 | _ACEOF | |
7385 | ||
7386 | fi | |
7387 | ||
ec6a6fbe AK |
7388 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7389 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7390 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7391 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7392 | else |
7393 | rm -f conftest.sym conftest.file | |
7394 | echo >conftest.file | |
7395 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7396 | if test "$cross_compiling" = yes; then | |
7397 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7398 | else | |
7399 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7400 | /* confdefs.h. */ |
7401 | _ACEOF | |
7402 | cat confdefs.h >>conftest.$ac_ext | |
7403 | cat >>conftest.$ac_ext <<_ACEOF | |
7404 | /* end confdefs.h. */ | |
7405 | $ac_includes_default | |
7406 | int | |
7407 | main () | |
7408 | { | |
7409 | struct stat sbuf; | |
7410 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7411 | That is better in the sense that it means we will not |
7412 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7413 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7414 | ; |
7415 | return 0; | |
7416 | } | |
7417 | _ACEOF | |
7418 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7419 | if { (ac_try="$ac_link" |
7420 | case "(($ac_try" in | |
7421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7422 | *) ac_try_echo=$ac_try;; | |
7423 | esac | |
ec6a6fbe AK |
7424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7425 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7426 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7427 | ac_status=$? |
ec6a6fbe | 7428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7430 | { (case "(($ac_try" in |
7431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7432 | *) ac_try_echo=$ac_try;; | |
7433 | esac | |
ec6a6fbe AK |
7434 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7435 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7436 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7437 | ac_status=$? |
ec6a6fbe | 7438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7439 | (exit $ac_status); }; }; then |
7440 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7441 | else | |
ec6a6fbe AK |
7442 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7443 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7444 | sed 's/^/| /' conftest.$ac_ext >&5 |
7445 | ||
7446 | ( exit $ac_status ) | |
7447 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7448 | fi | |
ec6a6fbe | 7449 | rm -rf conftest.dSYM |
7a197a62 | 7450 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7451 | fi |
7a197a62 AK |
7452 | |
7453 | ||
ad6254c5 AK |
7454 | else |
7455 | # If the `ln -s' command failed, then we probably don't even | |
7456 | # have an lstat function. | |
7457 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7458 | fi | |
7459 | rm -f conftest.sym conftest.file | |
7460 | ||
7461 | fi | |
ec6a6fbe AK |
7462 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7463 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7464 | |
7465 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7466 | ||
7467 | cat >>confdefs.h <<_ACEOF | |
7468 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7469 | _ACEOF | |
7470 | ||
7471 | ||
7472 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7473 | case " $LIBOBJS " in |
8a2fc586 | 7474 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7475 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7476 | ;; | |
8a2fc586 AK |
7477 | esac |
7478 | ||
ad6254c5 AK |
7479 | fi |
7480 | ||
ec6a6fbe AK |
7481 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7482 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7483 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7484 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7485 | else |
7486 | if test "$cross_compiling" = yes; then | |
7487 | ac_cv_func_lstat_empty_string_bug=yes | |
7488 | else | |
7489 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7490 | /* confdefs.h. */ |
7491 | _ACEOF | |
7492 | cat confdefs.h >>conftest.$ac_ext | |
7493 | cat >>conftest.$ac_ext <<_ACEOF | |
7494 | /* end confdefs.h. */ | |
7495 | $ac_includes_default | |
7496 | int | |
7497 | main () | |
7498 | { | |
7499 | struct stat sbuf; | |
7a197a62 | 7500 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7501 | ; |
7502 | return 0; | |
7503 | } | |
7504 | _ACEOF | |
7505 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7506 | if { (ac_try="$ac_link" |
7507 | case "(($ac_try" in | |
7508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7509 | *) ac_try_echo=$ac_try;; | |
7510 | esac | |
ec6a6fbe AK |
7511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7512 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7513 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7514 | ac_status=$? |
ec6a6fbe | 7515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7516 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7517 | { (case "(($ac_try" in |
7518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7519 | *) ac_try_echo=$ac_try;; | |
7520 | esac | |
ec6a6fbe AK |
7521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7522 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7523 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7524 | ac_status=$? |
ec6a6fbe | 7525 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7526 | (exit $ac_status); }; }; then |
7a197a62 | 7527 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7528 | else |
ec6a6fbe AK |
7529 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7530 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7531 | sed 's/^/| /' conftest.$ac_ext >&5 |
7532 | ||
7533 | ( exit $ac_status ) | |
7a197a62 | 7534 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7535 | fi |
ec6a6fbe | 7536 | rm -rf conftest.dSYM |
7a197a62 | 7537 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7538 | fi |
7a197a62 AK |
7539 | |
7540 | ||
ad6254c5 | 7541 | fi |
ec6a6fbe AK |
7542 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7543 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7544 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7545 | case " $LIBOBJS " in |
8a2fc586 | 7546 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7547 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7548 | ;; | |
8a2fc586 AK |
7549 | esac |
7550 | ||
ad6254c5 AK |
7551 | |
7552 | cat >>confdefs.h <<_ACEOF | |
7553 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7554 | _ACEOF | |
7555 | ||
7556 | fi | |
7557 | ||
7558 | ||
7559 | for ac_header in stdlib.h | |
7560 | do | |
ec6a6fbe | 7561 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7563 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7564 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7566 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7567 | fi |
ec6a6fbe AK |
7568 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7569 | $as_echo "$as_val"'` | |
7570 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7571 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7572 | else |
7573 | # Is the header compilable? | |
ec6a6fbe AK |
7574 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7575 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7576 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7577 | /* confdefs.h. */ |
7578 | _ACEOF | |
7579 | cat confdefs.h >>conftest.$ac_ext | |
7580 | cat >>conftest.$ac_ext <<_ACEOF | |
7581 | /* end confdefs.h. */ | |
7582 | $ac_includes_default | |
7583 | #include <$ac_header> | |
7584 | _ACEOF | |
7585 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7586 | if { (ac_try="$ac_compile" |
7587 | case "(($ac_try" in | |
7588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7589 | *) ac_try_echo=$ac_try;; | |
7590 | esac | |
ec6a6fbe AK |
7591 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7592 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7593 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7594 | ac_status=$? |
8a2fc586 AK |
7595 | grep -v '^ *+' conftest.er1 >conftest.err |
7596 | rm -f conftest.er1 | |
7597 | cat conftest.err >&5 | |
ec6a6fbe | 7598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7599 | (exit $ac_status); } && { |
7600 | test -z "$ac_c_werror_flag" || | |
7601 | test ! -s conftest.err | |
7602 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7603 | ac_header_compiler=yes |
7604 | else | |
ec6a6fbe | 7605 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7606 | sed 's/^/| /' conftest.$ac_ext >&5 |
7607 | ||
7a197a62 | 7608 | ac_header_compiler=no |
ad6254c5 | 7609 | fi |
7a197a62 AK |
7610 | |
7611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7612 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7613 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7614 | |
7615 | # Is the header present? | |
ec6a6fbe AK |
7616 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7617 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7618 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7619 | /* confdefs.h. */ |
7620 | _ACEOF | |
7621 | cat confdefs.h >>conftest.$ac_ext | |
7622 | cat >>conftest.$ac_ext <<_ACEOF | |
7623 | /* end confdefs.h. */ | |
7624 | #include <$ac_header> | |
7625 | _ACEOF | |
7a197a62 AK |
7626 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7634 | ac_status=$? |
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); } >/dev/null && { |
7640 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7641 | test ! -s conftest.err | |
7642 | }; then | |
ad6254c5 AK |
7643 | ac_header_preproc=yes |
7644 | else | |
ec6a6fbe | 7645 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7646 | sed 's/^/| /' conftest.$ac_ext >&5 |
7647 | ||
7648 | ac_header_preproc=no | |
7649 | fi | |
7a197a62 | 7650 | |
ad6254c5 | 7651 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7652 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7653 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7654 | |
7655 | # So? What about this header? | |
8a2fc586 AK |
7656 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7657 | yes:no: ) | |
ec6a6fbe AK |
7658 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7659 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7660 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7661 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7662 | ac_header_preproc=yes |
ad6254c5 | 7663 | ;; |
8a2fc586 | 7664 | no:yes:* ) |
ec6a6fbe AK |
7665 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7666 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7667 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7668 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7669 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7670 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7671 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7672 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7674 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7675 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7676 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7677 | |
ad6254c5 AK |
7678 | ;; |
7679 | esac | |
ec6a6fbe AK |
7680 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7681 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7682 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7683 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7684 | else |
8a2fc586 | 7685 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7686 | fi |
ec6a6fbe AK |
7687 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7688 | $as_echo "$as_val"'` | |
7689 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7690 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7691 | |
7692 | fi | |
ec6a6fbe AK |
7693 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7694 | $as_echo "$as_val"'` | |
7695 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7696 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7697 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7698 | _ACEOF |
7699 | ||
7700 | fi | |
7701 | ||
7702 | done | |
7703 | ||
ec6a6fbe AK |
7704 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7705 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7706 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7707 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7708 | else |
7709 | if test "$cross_compiling" = yes; then | |
7710 | ac_cv_func_malloc_0_nonnull=no | |
7711 | else | |
7712 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7713 | /* confdefs.h. */ |
7714 | _ACEOF | |
7715 | cat confdefs.h >>conftest.$ac_ext | |
7716 | cat >>conftest.$ac_ext <<_ACEOF | |
7717 | /* end confdefs.h. */ | |
25fbec5b | 7718 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7719 | # include <stdlib.h> |
7720 | #else | |
7721 | char *malloc (); | |
7722 | #endif | |
7723 | ||
7724 | int | |
7725 | main () | |
7726 | { | |
7a197a62 | 7727 | return ! malloc (0); |
ad6254c5 AK |
7728 | ; |
7729 | return 0; | |
7730 | } | |
7731 | _ACEOF | |
7732 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7733 | if { (ac_try="$ac_link" |
7734 | case "(($ac_try" in | |
7735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7736 | *) ac_try_echo=$ac_try;; | |
7737 | esac | |
ec6a6fbe AK |
7738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7739 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7740 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7741 | ac_status=$? |
ec6a6fbe | 7742 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7744 | { (case "(($ac_try" in |
7745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7746 | *) ac_try_echo=$ac_try;; | |
7747 | esac | |
ec6a6fbe AK |
7748 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7749 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7750 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7751 | ac_status=$? |
ec6a6fbe | 7752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7753 | (exit $ac_status); }; }; then |
7754 | ac_cv_func_malloc_0_nonnull=yes | |
7755 | else | |
ec6a6fbe AK |
7756 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7757 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7758 | sed 's/^/| /' conftest.$ac_ext >&5 |
7759 | ||
7760 | ( exit $ac_status ) | |
7761 | ac_cv_func_malloc_0_nonnull=no | |
7762 | fi | |
ec6a6fbe | 7763 | rm -rf conftest.dSYM |
7a197a62 | 7764 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7765 | fi |
7a197a62 AK |
7766 | |
7767 | ||
ad6254c5 | 7768 | fi |
ec6a6fbe AK |
7769 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7770 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7771 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7772 | ||
7773 | cat >>confdefs.h <<\_ACEOF | |
7774 | #define HAVE_MALLOC 1 | |
7775 | _ACEOF | |
7776 | ||
7777 | else | |
7778 | cat >>confdefs.h <<\_ACEOF | |
7779 | #define HAVE_MALLOC 0 | |
7780 | _ACEOF | |
7781 | ||
7a197a62 | 7782 | case " $LIBOBJS " in |
8a2fc586 | 7783 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7784 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7785 | ;; | |
8a2fc586 AK |
7786 | esac |
7787 | ||
ad6254c5 AK |
7788 | |
7789 | cat >>confdefs.h <<\_ACEOF | |
7790 | #define malloc rpl_malloc | |
7791 | _ACEOF | |
7792 | ||
7793 | fi | |
7794 | ||
7795 | ||
7796 | ||
ec6a6fbe AK |
7797 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7798 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7799 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7800 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7801 | else |
7802 | if test "$cross_compiling" = yes; then | |
7803 | ac_cv_func_memcmp_working=no | |
7804 | else | |
7805 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7806 | /* confdefs.h. */ |
7807 | _ACEOF | |
7808 | cat confdefs.h >>conftest.$ac_ext | |
7809 | cat >>conftest.$ac_ext <<_ACEOF | |
7810 | /* end confdefs.h. */ | |
8a2fc586 | 7811 | $ac_includes_default |
ad6254c5 AK |
7812 | int |
7813 | main () | |
7814 | { | |
7815 | ||
7816 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7817 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7818 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7819 | return 1; |
ad6254c5 AK |
7820 | |
7821 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7822 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7823 | William Lewis provided this test program. */ | |
7824 | { | |
7825 | char foo[21]; | |
7826 | char bar[21]; | |
7827 | int i; | |
7828 | for (i = 0; i < 4; i++) | |
7829 | { | |
8a2fc586 AK |
7830 | char *a = foo + i; |
7831 | char *b = bar + i; | |
7832 | strcpy (a, "--------01111111"); | |
7833 | strcpy (b, "--------10000000"); | |
7834 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7835 | return 1; |
ad6254c5 | 7836 | } |
7a197a62 | 7837 | return 0; |
ad6254c5 AK |
7838 | } |
7839 | ||
7840 | ; | |
7841 | return 0; | |
7842 | } | |
7843 | _ACEOF | |
7844 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7845 | if { (ac_try="$ac_link" |
7846 | case "(($ac_try" in | |
7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7848 | *) ac_try_echo=$ac_try;; | |
7849 | esac | |
ec6a6fbe AK |
7850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7851 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7852 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7853 | ac_status=$? |
ec6a6fbe | 7854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7856 | { (case "(($ac_try" in |
7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7858 | *) ac_try_echo=$ac_try;; | |
7859 | esac | |
ec6a6fbe AK |
7860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7861 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7862 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7863 | ac_status=$? |
ec6a6fbe | 7864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7865 | (exit $ac_status); }; }; then |
7866 | ac_cv_func_memcmp_working=yes | |
7867 | else | |
ec6a6fbe AK |
7868 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7869 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7870 | sed 's/^/| /' conftest.$ac_ext >&5 |
7871 | ||
7872 | ( exit $ac_status ) | |
7873 | ac_cv_func_memcmp_working=no | |
7874 | fi | |
ec6a6fbe | 7875 | rm -rf conftest.dSYM |
7a197a62 | 7876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7877 | fi |
7a197a62 AK |
7878 | |
7879 | ||
ad6254c5 | 7880 | fi |
ec6a6fbe AK |
7881 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7882 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7883 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7884 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7885 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7886 | ;; | |
8a2fc586 AK |
7887 | esac |
7888 | ||
ad6254c5 AK |
7889 | |
7890 | ||
7891 | ||
7892 | for ac_header in stdlib.h unistd.h | |
7893 | do | |
ec6a6fbe | 7894 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7895 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7896 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7897 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7898 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7899 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7900 | fi |
ec6a6fbe AK |
7901 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7902 | $as_echo "$as_val"'` | |
7903 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7904 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7905 | else |
7906 | # Is the header compilable? | |
ec6a6fbe AK |
7907 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7908 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7909 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7910 | /* confdefs.h. */ |
7911 | _ACEOF | |
7912 | cat confdefs.h >>conftest.$ac_ext | |
7913 | cat >>conftest.$ac_ext <<_ACEOF | |
7914 | /* end confdefs.h. */ | |
7915 | $ac_includes_default | |
7916 | #include <$ac_header> | |
7917 | _ACEOF | |
7918 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7919 | if { (ac_try="$ac_compile" |
7920 | case "(($ac_try" in | |
7921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7922 | *) ac_try_echo=$ac_try;; | |
7923 | esac | |
ec6a6fbe AK |
7924 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7925 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7926 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7927 | ac_status=$? |
8a2fc586 AK |
7928 | grep -v '^ *+' conftest.er1 >conftest.err |
7929 | rm -f conftest.er1 | |
7930 | cat conftest.err >&5 | |
ec6a6fbe | 7931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7932 | (exit $ac_status); } && { |
7933 | test -z "$ac_c_werror_flag" || | |
7934 | test ! -s conftest.err | |
7935 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7936 | ac_header_compiler=yes |
7937 | else | |
ec6a6fbe | 7938 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7939 | sed 's/^/| /' conftest.$ac_ext >&5 |
7940 | ||
7a197a62 | 7941 | ac_header_compiler=no |
ad6254c5 | 7942 | fi |
7a197a62 AK |
7943 | |
7944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7945 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7946 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7947 | |
7948 | # Is the header present? | |
ec6a6fbe AK |
7949 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7950 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7951 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7952 | /* confdefs.h. */ |
7953 | _ACEOF | |
7954 | cat confdefs.h >>conftest.$ac_ext | |
7955 | cat >>conftest.$ac_ext <<_ACEOF | |
7956 | /* end confdefs.h. */ | |
7957 | #include <$ac_header> | |
7958 | _ACEOF | |
7a197a62 AK |
7959 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7967 | ac_status=$? |
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); } >/dev/null && { |
7973 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7974 | test ! -s conftest.err | |
7975 | }; then | |
ad6254c5 AK |
7976 | ac_header_preproc=yes |
7977 | else | |
ec6a6fbe | 7978 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7979 | sed 's/^/| /' conftest.$ac_ext >&5 |
7980 | ||
7981 | ac_header_preproc=no | |
7982 | fi | |
7a197a62 | 7983 | |
ad6254c5 | 7984 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7985 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7986 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7987 | |
7988 | # So? What about this header? | |
8a2fc586 AK |
7989 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7990 | yes:no: ) | |
ec6a6fbe AK |
7991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7992 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7994 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7995 | ac_header_preproc=yes |
ad6254c5 | 7996 | ;; |
8a2fc586 | 7997 | no:yes:* ) |
ec6a6fbe AK |
7998 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7999 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8001 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8003 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8005 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8007 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8009 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8010 | |
ad6254c5 AK |
8011 | ;; |
8012 | esac | |
ec6a6fbe AK |
8013 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8014 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8016 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8017 | else |
8a2fc586 | 8018 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8019 | fi |
ec6a6fbe AK |
8020 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8021 | $as_echo "$as_val"'` | |
8022 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8023 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8024 | |
8025 | fi | |
ec6a6fbe AK |
8026 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8027 | $as_echo "$as_val"'` | |
8028 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8029 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8030 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8031 | _ACEOF |
8032 | ||
8033 | fi | |
8034 | ||
8035 | done | |
8036 | ||
8037 | ||
8038 | for ac_func in getpagesize | |
8039 | do | |
ec6a6fbe AK |
8040 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8041 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8042 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8043 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8044 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8045 | else |
8046 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8047 | /* confdefs.h. */ |
8048 | _ACEOF | |
8049 | cat confdefs.h >>conftest.$ac_ext | |
8050 | cat >>conftest.$ac_ext <<_ACEOF | |
8051 | /* end confdefs.h. */ | |
8a2fc586 AK |
8052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8054 | #define $ac_func innocuous_$ac_func | |
8055 | ||
ad6254c5 AK |
8056 | /* System header to define __stub macros and hopefully few prototypes, |
8057 | which can conflict with char $ac_func (); below. | |
8058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8059 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8060 | |
ad6254c5 AK |
8061 | #ifdef __STDC__ |
8062 | # include <limits.h> | |
8063 | #else | |
8064 | # include <assert.h> | |
8065 | #endif | |
8a2fc586 AK |
8066 | |
8067 | #undef $ac_func | |
8068 | ||
7a197a62 AK |
8069 | /* Override any GCC internal prototype to avoid an error. |
8070 | Use char because int might match the return type of a GCC | |
8071 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8072 | #ifdef __cplusplus |
8073 | extern "C" | |
ad6254c5 | 8074 | #endif |
ad6254c5 AK |
8075 | char $ac_func (); |
8076 | /* The GNU C library defines this for functions which it implements | |
8077 | to always fail with ENOSYS. Some functions are actually named | |
8078 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8079 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8080 | choke me |
ad6254c5 AK |
8081 | #endif |
8082 | ||
8083 | int | |
8084 | main () | |
8085 | { | |
7a197a62 | 8086 | return $ac_func (); |
ad6254c5 AK |
8087 | ; |
8088 | return 0; | |
8089 | } | |
8090 | _ACEOF | |
8091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8092 | if { (ac_try="$ac_link" |
8093 | case "(($ac_try" in | |
8094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8095 | *) ac_try_echo=$ac_try;; | |
8096 | esac | |
ec6a6fbe AK |
8097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8098 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8099 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8100 | ac_status=$? |
8a2fc586 AK |
8101 | grep -v '^ *+' conftest.er1 >conftest.err |
8102 | rm -f conftest.er1 | |
8103 | cat conftest.err >&5 | |
ec6a6fbe | 8104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8105 | (exit $ac_status); } && { |
8106 | test -z "$ac_c_werror_flag" || | |
8107 | test ! -s conftest.err | |
ec6a6fbe AK |
8108 | } && test -s conftest$ac_exeext && { |
8109 | test "$cross_compiling" = yes || | |
8110 | $as_test_x conftest$ac_exeext | |
8111 | }; then | |
ad6254c5 AK |
8112 | eval "$as_ac_var=yes" |
8113 | else | |
ec6a6fbe | 8114 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8115 | sed 's/^/| /' conftest.$ac_ext >&5 |
8116 | ||
7a197a62 | 8117 | eval "$as_ac_var=no" |
ad6254c5 | 8118 | fi |
7a197a62 | 8119 | |
ec6a6fbe | 8120 | rm -rf conftest.dSYM |
25fbec5b | 8121 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8122 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8123 | fi |
ec6a6fbe AK |
8124 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8125 | $as_echo "$as_val"'` | |
8126 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8127 | $as_echo "$ac_res" >&6; } | |
8128 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8129 | $as_echo "$as_val"'` | |
8130 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8131 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8132 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8133 | _ACEOF |
8134 | ||
8135 | fi | |
8136 | done | |
8137 | ||
ec6a6fbe AK |
8138 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8139 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8140 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8141 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8142 | else |
8143 | if test "$cross_compiling" = yes; then | |
8144 | ac_cv_func_mmap_fixed_mapped=no | |
8145 | else | |
8146 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8147 | /* confdefs.h. */ |
8148 | _ACEOF | |
8149 | cat confdefs.h >>conftest.$ac_ext | |
8150 | cat >>conftest.$ac_ext <<_ACEOF | |
8151 | /* end confdefs.h. */ | |
8152 | $ac_includes_default | |
8153 | /* malloc might have been renamed as rpl_malloc. */ | |
8154 | #undef malloc | |
8155 | ||
8156 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8157 | Here is a matrix of mmap possibilities: | |
8158 | mmap private not fixed | |
8159 | mmap private fixed at somewhere currently unmapped | |
8160 | mmap private fixed at somewhere already mapped | |
8161 | mmap shared not fixed | |
8162 | mmap shared fixed at somewhere currently unmapped | |
8163 | mmap shared fixed at somewhere already mapped | |
8164 | For private mappings, we should verify that changes cannot be read() | |
8165 | back from the file, nor mmap's back from the file at a different | |
8166 | address. (There have been systems where private was not correctly | |
8167 | implemented like the infamous i386 svr4.0, and systems where the | |
8168 | VM page cache was not coherent with the file system buffer cache | |
8169 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8170 | For shared mappings, we should conversely verify that changes get | |
8171 | propagated back to all the places they're supposed to be. | |
8172 | ||
8173 | Grep wants private fixed already mapped. | |
8174 | The main things grep needs to know about mmap are: | |
8175 | * does it exist and is it safe to write into the mmap'd area | |
8176 | * how to use it (BSD variants) */ | |
8177 | ||
8178 | #include <fcntl.h> | |
8179 | #include <sys/mman.h> | |
8180 | ||
25fbec5b | 8181 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8182 | char *malloc (); |
8183 | #endif | |
8184 | ||
8185 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8186 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8187 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8188 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8189 | # define HAVE_SYS_PARAM_H 1 |
8190 | # endif | |
8191 | ||
8192 | # ifdef _SC_PAGESIZE | |
8193 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8194 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8195 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8196 | # include <sys/param.h> |
8197 | # ifdef EXEC_PAGESIZE | |
8198 | # define getpagesize() EXEC_PAGESIZE | |
8199 | # else /* no EXEC_PAGESIZE */ | |
8200 | # ifdef NBPG | |
8201 | # define getpagesize() NBPG * CLSIZE | |
8202 | # ifndef CLSIZE | |
8203 | # define CLSIZE 1 | |
8204 | # endif /* no CLSIZE */ | |
8205 | # else /* no NBPG */ | |
8206 | # ifdef NBPC | |
8207 | # define getpagesize() NBPC | |
8208 | # else /* no NBPC */ | |
8209 | # ifdef PAGESIZE | |
8210 | # define getpagesize() PAGESIZE | |
8211 | # endif /* PAGESIZE */ | |
8212 | # endif /* no NBPC */ | |
8213 | # endif /* no NBPG */ | |
8214 | # endif /* no EXEC_PAGESIZE */ | |
8215 | # else /* no HAVE_SYS_PARAM_H */ | |
8216 | # define getpagesize() 8192 /* punt totally */ | |
8217 | # endif /* no HAVE_SYS_PARAM_H */ | |
8218 | # endif /* no _SC_PAGESIZE */ | |
8219 | ||
8220 | #endif /* no HAVE_GETPAGESIZE */ | |
8221 | ||
8222 | int | |
8223 | main () | |
8224 | { | |
8225 | char *data, *data2, *data3; | |
8226 | int i, pagesize; | |
8227 | int fd; | |
8228 | ||
8229 | pagesize = getpagesize (); | |
8230 | ||
8231 | /* First, make a file with some known garbage in it. */ | |
8232 | data = (char *) malloc (pagesize); | |
8233 | if (!data) | |
7a197a62 | 8234 | return 1; |
ad6254c5 AK |
8235 | for (i = 0; i < pagesize; ++i) |
8236 | *(data + i) = rand (); | |
8237 | umask (0); | |
8238 | fd = creat ("conftest.mmap", 0600); | |
8239 | if (fd < 0) | |
7a197a62 | 8240 | return 1; |
ad6254c5 | 8241 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8242 | return 1; |
ad6254c5 AK |
8243 | close (fd); |
8244 | ||
8245 | /* Next, try to mmap the file at a fixed address which already has | |
8246 | something else allocated at it. If we can, also make sure that | |
8247 | we see the same garbage. */ | |
8248 | fd = open ("conftest.mmap", O_RDWR); | |
8249 | if (fd < 0) | |
7a197a62 | 8250 | return 1; |
ad6254c5 AK |
8251 | data2 = (char *) malloc (2 * pagesize); |
8252 | if (!data2) | |
7a197a62 AK |
8253 | return 1; |
8254 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8255 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8256 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8257 | return 1; |
ad6254c5 AK |
8258 | for (i = 0; i < pagesize; ++i) |
8259 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8260 | return 1; |
ad6254c5 AK |
8261 | |
8262 | /* Finally, make sure that changes to the mapped area do not | |
8263 | percolate back to the file as seen by read(). (This is a bug on | |
8264 | some variants of i386 svr4.0.) */ | |
8265 | for (i = 0; i < pagesize; ++i) | |
8266 | *(data2 + i) = *(data2 + i) + 1; | |
8267 | data3 = (char *) malloc (pagesize); | |
8268 | if (!data3) | |
7a197a62 | 8269 | return 1; |
ad6254c5 | 8270 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8271 | return 1; |
ad6254c5 AK |
8272 | for (i = 0; i < pagesize; ++i) |
8273 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8274 | return 1; |
ad6254c5 | 8275 | close (fd); |
7a197a62 | 8276 | return 0; |
ad6254c5 AK |
8277 | } |
8278 | _ACEOF | |
8279 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8280 | if { (ac_try="$ac_link" |
8281 | case "(($ac_try" in | |
8282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8283 | *) ac_try_echo=$ac_try;; | |
8284 | esac | |
ec6a6fbe AK |
8285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8286 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8287 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8288 | ac_status=$? |
ec6a6fbe | 8289 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8290 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8291 | { (case "(($ac_try" in |
8292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8293 | *) ac_try_echo=$ac_try;; | |
8294 | esac | |
ec6a6fbe AK |
8295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8296 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8297 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8298 | ac_status=$? |
ec6a6fbe | 8299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8300 | (exit $ac_status); }; }; then |
8301 | ac_cv_func_mmap_fixed_mapped=yes | |
8302 | else | |
ec6a6fbe AK |
8303 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8304 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8305 | sed 's/^/| /' conftest.$ac_ext >&5 |
8306 | ||
8307 | ( exit $ac_status ) | |
8308 | ac_cv_func_mmap_fixed_mapped=no | |
8309 | fi | |
ec6a6fbe | 8310 | rm -rf conftest.dSYM |
7a197a62 | 8311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8312 | fi |
7a197a62 AK |
8313 | |
8314 | ||
ad6254c5 | 8315 | fi |
ec6a6fbe AK |
8316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8317 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8318 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8319 | ||
8320 | cat >>confdefs.h <<\_ACEOF | |
8321 | #define HAVE_MMAP 1 | |
8322 | _ACEOF | |
8323 | ||
8324 | fi | |
8325 | rm -f conftest.mmap | |
8326 | ||
ec6a6fbe AK |
8327 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8328 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8329 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8330 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8331 | else |
8332 | if test "$cross_compiling" = yes; then | |
8333 | ac_cv_func_stat_empty_string_bug=yes | |
8334 | else | |
8335 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8336 | /* confdefs.h. */ |
8337 | _ACEOF | |
8338 | cat confdefs.h >>conftest.$ac_ext | |
8339 | cat >>conftest.$ac_ext <<_ACEOF | |
8340 | /* end confdefs.h. */ | |
8341 | $ac_includes_default | |
8342 | int | |
8343 | main () | |
8344 | { | |
8345 | struct stat sbuf; | |
7a197a62 | 8346 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8347 | ; |
8348 | return 0; | |
8349 | } | |
8350 | _ACEOF | |
8351 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8352 | if { (ac_try="$ac_link" |
8353 | case "(($ac_try" in | |
8354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8355 | *) ac_try_echo=$ac_try;; | |
8356 | esac | |
ec6a6fbe AK |
8357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8358 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8359 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8360 | ac_status=$? |
ec6a6fbe | 8361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8362 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8363 | { (case "(($ac_try" in |
8364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8365 | *) ac_try_echo=$ac_try;; | |
8366 | esac | |
ec6a6fbe AK |
8367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8368 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8369 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8370 | ac_status=$? |
ec6a6fbe | 8371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8372 | (exit $ac_status); }; }; then |
7a197a62 | 8373 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8374 | else |
ec6a6fbe AK |
8375 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8376 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8377 | sed 's/^/| /' conftest.$ac_ext >&5 |
8378 | ||
8379 | ( exit $ac_status ) | |
7a197a62 | 8380 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8381 | fi |
ec6a6fbe | 8382 | rm -rf conftest.dSYM |
7a197a62 | 8383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8384 | fi |
7a197a62 AK |
8385 | |
8386 | ||
ad6254c5 | 8387 | fi |
ec6a6fbe AK |
8388 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8389 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8390 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8391 | case " $LIBOBJS " in |
8a2fc586 | 8392 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8393 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8394 | ;; | |
8a2fc586 AK |
8395 | esac |
8396 | ||
ad6254c5 AK |
8397 | |
8398 | cat >>confdefs.h <<_ACEOF | |
8399 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8400 | _ACEOF | |
8401 | ||
8402 | fi | |
8403 | ||
ec6a6fbe AK |
8404 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8405 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8406 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8407 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8408 | else |
8409 | if test "$cross_compiling" = yes; then | |
8410 | ac_cv_func_strtod=no | |
8411 | else | |
8412 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8413 | /* confdefs.h. */ |
8414 | _ACEOF | |
8415 | cat confdefs.h >>conftest.$ac_ext | |
8416 | cat >>conftest.$ac_ext <<_ACEOF | |
8417 | /* end confdefs.h. */ | |
8418 | ||
7a197a62 AK |
8419 | $ac_includes_default |
8420 | #ifndef strtod | |
ad6254c5 | 8421 | double strtod (); |
7a197a62 | 8422 | #endif |
ad6254c5 AK |
8423 | int |
8424 | main() | |
8425 | { | |
8426 | { | |
8427 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8428 | char *string = " +69"; | |
8429 | char *term; | |
8430 | double value; | |
8431 | value = strtod (string, &term); | |
8432 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8433 | return 1; |
ad6254c5 AK |
8434 | } |
8435 | ||
8436 | { | |
8437 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8438 | terminating character under some conditions. */ | |
8439 | char *string = "NaN"; | |
8440 | char *term; | |
8441 | strtod (string, &term); | |
8442 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8443 | return 1; |
ad6254c5 | 8444 | } |
7a197a62 | 8445 | return 0; |
ad6254c5 AK |
8446 | } |
8447 | ||
8448 | _ACEOF | |
8449 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8450 | if { (ac_try="$ac_link" |
8451 | case "(($ac_try" in | |
8452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8453 | *) ac_try_echo=$ac_try;; | |
8454 | esac | |
ec6a6fbe AK |
8455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8456 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8457 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8458 | ac_status=$? |
ec6a6fbe | 8459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8460 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8461 | { (case "(($ac_try" in |
8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8463 | *) ac_try_echo=$ac_try;; | |
8464 | esac | |
ec6a6fbe AK |
8465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8466 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8467 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8468 | ac_status=$? |
ec6a6fbe | 8469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8470 | (exit $ac_status); }; }; then |
8471 | ac_cv_func_strtod=yes | |
8472 | else | |
ec6a6fbe AK |
8473 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8474 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8475 | sed 's/^/| /' conftest.$ac_ext >&5 |
8476 | ||
8477 | ( exit $ac_status ) | |
8478 | ac_cv_func_strtod=no | |
8479 | fi | |
ec6a6fbe | 8480 | rm -rf conftest.dSYM |
7a197a62 | 8481 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8482 | fi |
7a197a62 AK |
8483 | |
8484 | ||
ad6254c5 | 8485 | fi |
ec6a6fbe AK |
8486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8487 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8488 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8489 | case " $LIBOBJS " in |
8a2fc586 | 8490 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8491 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8492 | ;; | |
8a2fc586 AK |
8493 | esac |
8494 | ||
ec6a6fbe AK |
8495 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8496 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8497 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8498 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8499 | else |
8500 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8501 | /* confdefs.h. */ |
8502 | _ACEOF | |
8503 | cat confdefs.h >>conftest.$ac_ext | |
8504 | cat >>conftest.$ac_ext <<_ACEOF | |
8505 | /* end confdefs.h. */ | |
8a2fc586 AK |
8506 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8507 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8508 | #define pow innocuous_pow | |
8509 | ||
ad6254c5 AK |
8510 | /* System header to define __stub macros and hopefully few prototypes, |
8511 | which can conflict with char pow (); below. | |
8512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8513 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8514 | |
ad6254c5 AK |
8515 | #ifdef __STDC__ |
8516 | # include <limits.h> | |
8517 | #else | |
8518 | # include <assert.h> | |
8519 | #endif | |
8a2fc586 AK |
8520 | |
8521 | #undef pow | |
8522 | ||
7a197a62 AK |
8523 | /* Override any GCC internal prototype to avoid an error. |
8524 | Use char because int might match the return type of a GCC | |
8525 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8526 | #ifdef __cplusplus |
8527 | extern "C" | |
ad6254c5 | 8528 | #endif |
ad6254c5 AK |
8529 | char pow (); |
8530 | /* The GNU C library defines this for functions which it implements | |
8531 | to always fail with ENOSYS. Some functions are actually named | |
8532 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8533 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8534 | choke me |
ad6254c5 AK |
8535 | #endif |
8536 | ||
8537 | int | |
8538 | main () | |
8539 | { | |
7a197a62 | 8540 | return pow (); |
ad6254c5 AK |
8541 | ; |
8542 | return 0; | |
8543 | } | |
8544 | _ACEOF | |
8545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8546 | if { (ac_try="$ac_link" |
8547 | case "(($ac_try" in | |
8548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8549 | *) ac_try_echo=$ac_try;; | |
8550 | esac | |
ec6a6fbe AK |
8551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8552 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8553 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8554 | ac_status=$? |
8a2fc586 AK |
8555 | grep -v '^ *+' conftest.er1 >conftest.err |
8556 | rm -f conftest.er1 | |
8557 | cat conftest.err >&5 | |
ec6a6fbe | 8558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8559 | (exit $ac_status); } && { |
8560 | test -z "$ac_c_werror_flag" || | |
8561 | test ! -s conftest.err | |
ec6a6fbe AK |
8562 | } && test -s conftest$ac_exeext && { |
8563 | test "$cross_compiling" = yes || | |
8564 | $as_test_x conftest$ac_exeext | |
8565 | }; then | |
ad6254c5 AK |
8566 | ac_cv_func_pow=yes |
8567 | else | |
ec6a6fbe | 8568 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8569 | sed 's/^/| /' conftest.$ac_ext >&5 |
8570 | ||
7a197a62 | 8571 | ac_cv_func_pow=no |
ad6254c5 | 8572 | fi |
7a197a62 | 8573 | |
ec6a6fbe | 8574 | rm -rf conftest.dSYM |
25fbec5b | 8575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8576 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8577 | fi |
ec6a6fbe AK |
8578 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8579 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8580 | |
8581 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8582 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8583 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8584 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8585 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8586 | else |
8587 | ac_check_lib_save_LIBS=$LIBS | |
8588 | LIBS="-lm $LIBS" | |
8589 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8590 | /* confdefs.h. */ |
8591 | _ACEOF | |
8592 | cat confdefs.h >>conftest.$ac_ext | |
8593 | cat >>conftest.$ac_ext <<_ACEOF | |
8594 | /* end confdefs.h. */ | |
8595 | ||
7a197a62 AK |
8596 | /* Override any GCC internal prototype to avoid an error. |
8597 | Use char because int might match the return type of a GCC | |
8598 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8599 | #ifdef __cplusplus |
8600 | extern "C" | |
8601 | #endif | |
ad6254c5 AK |
8602 | char pow (); |
8603 | int | |
8604 | main () | |
8605 | { | |
7a197a62 | 8606 | return pow (); |
ad6254c5 AK |
8607 | ; |
8608 | return 0; | |
8609 | } | |
8610 | _ACEOF | |
8611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8612 | if { (ac_try="$ac_link" |
8613 | case "(($ac_try" in | |
8614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8615 | *) ac_try_echo=$ac_try;; | |
8616 | esac | |
ec6a6fbe AK |
8617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8618 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8619 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8620 | ac_status=$? |
8a2fc586 AK |
8621 | grep -v '^ *+' conftest.er1 >conftest.err |
8622 | rm -f conftest.er1 | |
8623 | cat conftest.err >&5 | |
ec6a6fbe | 8624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8625 | (exit $ac_status); } && { |
8626 | test -z "$ac_c_werror_flag" || | |
8627 | test ! -s conftest.err | |
ec6a6fbe AK |
8628 | } && test -s conftest$ac_exeext && { |
8629 | test "$cross_compiling" = yes || | |
8630 | $as_test_x conftest$ac_exeext | |
8631 | }; then | |
ad6254c5 AK |
8632 | ac_cv_lib_m_pow=yes |
8633 | else | |
ec6a6fbe | 8634 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8635 | sed 's/^/| /' conftest.$ac_ext >&5 |
8636 | ||
7a197a62 | 8637 | ac_cv_lib_m_pow=no |
ad6254c5 | 8638 | fi |
7a197a62 | 8639 | |
ec6a6fbe | 8640 | rm -rf conftest.dSYM |
25fbec5b | 8641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8642 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8643 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8644 | fi |
ec6a6fbe AK |
8645 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8646 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8647 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8648 | POW_LIB=-lm |
8649 | else | |
ec6a6fbe AK |
8650 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8651 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8652 | fi |
72b2cb61 | 8653 | |
d0191583 | 8654 | fi |
72b2cb61 | 8655 | |
ad6254c5 AK |
8656 | fi |
8657 | ||
ad6254c5 | 8658 | |
d0191583 JM |
8659 | for ac_func in vprintf |
8660 | do | |
ec6a6fbe AK |
8661 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8662 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8663 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8664 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8665 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8666 | else |
d0191583 JM |
8667 | cat >conftest.$ac_ext <<_ACEOF |
8668 | /* confdefs.h. */ | |
8669 | _ACEOF | |
8670 | cat confdefs.h >>conftest.$ac_ext | |
8671 | cat >>conftest.$ac_ext <<_ACEOF | |
8672 | /* end confdefs.h. */ | |
8673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8675 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8676 | |
d0191583 JM |
8677 | /* System header to define __stub macros and hopefully few prototypes, |
8678 | which can conflict with char $ac_func (); below. | |
8679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8680 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8681 | |
d0191583 JM |
8682 | #ifdef __STDC__ |
8683 | # include <limits.h> | |
8684 | #else | |
8685 | # include <assert.h> | |
8686 | #endif | |
ad6254c5 | 8687 | |
d0191583 | 8688 | #undef $ac_func |
72b2cb61 | 8689 | |
d0191583 JM |
8690 | /* Override any GCC internal prototype to avoid an error. |
8691 | Use char because int might match the return type of a GCC | |
8692 | builtin and then its argument prototype would still apply. */ | |
8693 | #ifdef __cplusplus | |
8694 | extern "C" | |
8695 | #endif | |
8696 | char $ac_func (); | |
8697 | /* The GNU C library defines this for functions which it implements | |
8698 | to always fail with ENOSYS. Some functions are actually named | |
8699 | something starting with __ and the normal name is an alias. */ | |
8700 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8701 | choke me | |
8702 | #endif | |
8703 | ||
8704 | int | |
8705 | main () | |
8706 | { | |
8707 | return $ac_func (); | |
8708 | ; | |
8709 | return 0; | |
8710 | } | |
72b2cb61 | 8711 | _ACEOF |
d0191583 JM |
8712 | rm -f conftest.$ac_objext conftest$ac_exeext |
8713 | if { (ac_try="$ac_link" | |
8714 | case "(($ac_try" in | |
8715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8716 | *) ac_try_echo=$ac_try;; | |
8717 | esac | |
ec6a6fbe AK |
8718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8719 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8720 | (eval "$ac_link") 2>conftest.er1 |
8721 | ac_status=$? | |
8722 | grep -v '^ *+' conftest.er1 >conftest.err | |
8723 | rm -f conftest.er1 | |
8724 | cat conftest.err >&5 | |
ec6a6fbe | 8725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8726 | (exit $ac_status); } && { |
8727 | test -z "$ac_c_werror_flag" || | |
8728 | test ! -s conftest.err | |
ec6a6fbe AK |
8729 | } && test -s conftest$ac_exeext && { |
8730 | test "$cross_compiling" = yes || | |
8731 | $as_test_x conftest$ac_exeext | |
8732 | }; then | |
d0191583 JM |
8733 | eval "$as_ac_var=yes" |
8734 | else | |
ec6a6fbe | 8735 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8736 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8737 | |
d0191583 | 8738 | eval "$as_ac_var=no" |
ad6254c5 AK |
8739 | fi |
8740 | ||
ec6a6fbe | 8741 | rm -rf conftest.dSYM |
d0191583 JM |
8742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8743 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8744 | fi |
ec6a6fbe AK |
8745 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8746 | $as_echo "$as_val"'` | |
8747 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8748 | $as_echo "$ac_res" >&6; } | |
8749 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8750 | $as_echo "$as_val"'` | |
8751 | if test "x$as_val" = x""yes; then | |
d0191583 | 8752 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8753 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8754 | _ACEOF |
7a197a62 | 8755 | |
ec6a6fbe AK |
8756 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8757 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8758 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8759 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8760 | else |
d0191583 JM |
8761 | cat >conftest.$ac_ext <<_ACEOF |
8762 | /* confdefs.h. */ | |
8763 | _ACEOF | |
8764 | cat confdefs.h >>conftest.$ac_ext | |
8765 | cat >>conftest.$ac_ext <<_ACEOF | |
8766 | /* end confdefs.h. */ | |
8767 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8768 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8769 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8770 | |
d0191583 JM |
8771 | /* System header to define __stub macros and hopefully few prototypes, |
8772 | which can conflict with char _doprnt (); below. | |
8773 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8774 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8775 | |
d0191583 JM |
8776 | #ifdef __STDC__ |
8777 | # include <limits.h> | |
8778 | #else | |
8779 | # include <assert.h> | |
8780 | #endif | |
72b2cb61 | 8781 | |
d0191583 JM |
8782 | #undef _doprnt |
8783 | ||
8784 | /* Override any GCC internal prototype to avoid an error. | |
8785 | Use char because int might match the return type of a GCC | |
8786 | builtin and then its argument prototype would still apply. */ | |
8787 | #ifdef __cplusplus | |
8788 | extern "C" | |
8789 | #endif | |
8790 | char _doprnt (); | |
8791 | /* The GNU C library defines this for functions which it implements | |
8792 | to always fail with ENOSYS. Some functions are actually named | |
8793 | something starting with __ and the normal name is an alias. */ | |
8794 | #if defined __stub__doprnt || defined __stub____doprnt | |
8795 | choke me | |
8796 | #endif | |
8797 | ||
8798 | int | |
8799 | main () | |
8800 | { | |
8801 | return _doprnt (); | |
8802 | ; | |
8803 | return 0; | |
8804 | } | |
72b2cb61 | 8805 | _ACEOF |
d0191583 JM |
8806 | rm -f conftest.$ac_objext conftest$ac_exeext |
8807 | if { (ac_try="$ac_link" | |
8808 | case "(($ac_try" in | |
8809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8810 | *) ac_try_echo=$ac_try;; | |
8811 | esac | |
ec6a6fbe AK |
8812 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8813 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8814 | (eval "$ac_link") 2>conftest.er1 |
8815 | ac_status=$? | |
8816 | grep -v '^ *+' conftest.er1 >conftest.err | |
8817 | rm -f conftest.er1 | |
8818 | cat conftest.err >&5 | |
ec6a6fbe | 8819 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8820 | (exit $ac_status); } && { |
8821 | test -z "$ac_c_werror_flag" || | |
8822 | test ! -s conftest.err | |
ec6a6fbe AK |
8823 | } && test -s conftest$ac_exeext && { |
8824 | test "$cross_compiling" = yes || | |
8825 | $as_test_x conftest$ac_exeext | |
8826 | }; then | |
d0191583 JM |
8827 | ac_cv_func__doprnt=yes |
8828 | else | |
ec6a6fbe | 8829 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8830 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8831 | |
d0191583 | 8832 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8833 | fi |
8834 | ||
ec6a6fbe | 8835 | rm -rf conftest.dSYM |
d0191583 JM |
8836 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8837 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8838 | fi |
ec6a6fbe AK |
8839 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8840 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8841 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8842 | |
d0191583 JM |
8843 | cat >>confdefs.h <<\_ACEOF |
8844 | #define HAVE_DOPRNT 1 | |
8845 | _ACEOF | |
ad6254c5 | 8846 | |
7a197a62 AK |
8847 | fi |
8848 | ||
d0191583 JM |
8849 | fi |
8850 | done | |
8b1a3214 | 8851 | |
ad6254c5 | 8852 | |
7a197a62 | 8853 | |
9c961554 | 8854 | ################################################################################ |
ec6a6fbe AK |
8855 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8856 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8857 | # Check whether --enable-static_link was given. |
8858 | if test "${enable_static_link+set}" = set; then | |
8859 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8860 | else | |
8861 | STATIC_LINK=no | |
8862 | fi | |
8863 | ||
ec6a6fbe AK |
8864 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8865 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8866 | |
d0191583 | 8867 | ################################################################################ |
ad6254c5 | 8868 | |
ad6254c5 AK |
8869 | |
8870 | ################################################################################ | |
ec6a6fbe AK |
8871 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8872 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8873 | OWNER="root" |
8874 | ||
8875 | ||
8876 | # Check whether --with-user was given. | |
8877 | if test "${with_user+set}" = set; then | |
8878 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8879 | fi |
8880 | ||
ec6a6fbe AK |
8881 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8882 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8883 | |
d0191583 JM |
8884 | if test x$OWNER != x; then |
8885 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8886 | fi |
8887 | ||
8888 | ################################################################################ | |
ec6a6fbe AK |
8889 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8890 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8891 | GROUP="root" |
ad6254c5 | 8892 | |
d0191583 JM |
8893 | # Check whether --with-group was given. |
8894 | if test "${with_group+set}" = set; then | |
8895 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8896 | fi |
8897 | ||
ec6a6fbe AK |
8898 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8899 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8900 | |
8901 | if test x$GROUP != x; then | |
8902 | GROUP="-g $GROUP" | |
8903 | fi | |
ad6254c5 | 8904 | |
24bbc4d7 | 8905 | ################################################################################ |
ec6a6fbe AK |
8906 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
8907 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
8908 | |
8909 | ||
8910 | # Check whether --with-device-uid was given. | |
8911 | if test "${with_device_uid+set}" = set; then | |
8912 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8913 | else | |
8914 | DM_DEVICE_UID="0" | |
8915 | fi | |
8916 | ||
ec6a6fbe AK |
8917 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
8918 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
8919 | |
8920 | ################################################################################ | |
ec6a6fbe AK |
8921 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
8922 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
8923 | |
8924 | ||
8925 | # Check whether --with-device-gid was given. | |
8926 | if test "${with_device_gid+set}" = set; then | |
8927 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8928 | else | |
8929 | DM_DEVICE_GID="0" | |
8930 | fi | |
8931 | ||
ec6a6fbe AK |
8932 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
8933 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 8934 | |
93bd259b | 8935 | ################################################################################ |
ec6a6fbe AK |
8936 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
8937 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
8938 | |
8939 | ||
8940 | # Check whether --with-device-mode was given. | |
8941 | if test "${with_device_mode+set}" = set; then | |
8942 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8943 | else | |
8944 | DM_DEVICE_MODE="0600" | |
8945 | fi | |
8946 | ||
ec6a6fbe AK |
8947 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
8948 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 8949 | |
ad6254c5 | 8950 | ################################################################################ |
ec6a6fbe AK |
8951 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8952 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
8953 | # Check whether --enable-lvm1_fallback was given. |
8954 | if test "${enable_lvm1_fallback+set}" = set; then | |
8955 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8956 | else | |
8957 | LVM1_FALLBACK=no | |
7a197a62 AK |
8958 | fi |
8959 | ||
ec6a6fbe AK |
8960 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8961 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8962 | |
d0191583 | 8963 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8964 | |
8965 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8966 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8967 | _ACEOF |
8968 | ||
ad6254c5 AK |
8969 | fi |
8970 | ||
8971 | ################################################################################ | |
ec6a6fbe AK |
8972 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8973 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
8974 | |
8975 | # Check whether --with-lvm1 was given. | |
8976 | if test "${with_lvm1+set}" = set; then | |
8977 | withval=$with_lvm1; LVM1="$withval" | |
8978 | else | |
8979 | LVM1="internal" | |
7a197a62 AK |
8980 | fi |
8981 | ||
ec6a6fbe AK |
8982 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
8983 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 8984 | |
d0191583 | 8985 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 8986 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8987 | " >&5 |
ec6a6fbe | 8988 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8989 | " >&2;} |
8990 | { (exit 1); exit 1; }; } | |
8991 | fi; | |
8992 | ||
8993 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8994 | |
8995 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8996 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8997 | _ACEOF |
8998 | ||
ad6254c5 AK |
8999 | fi |
9000 | ||
9001 | ################################################################################ | |
ec6a6fbe AK |
9002 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9003 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9004 | |
9005 | # Check whether --with-pool was given. | |
9006 | if test "${with_pool+set}" = set; then | |
9007 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9008 | else |
d0191583 | 9009 | POOL="internal" |
7a197a62 AK |
9010 | fi |
9011 | ||
ec6a6fbe AK |
9012 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9013 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9014 | |
d0191583 | 9015 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9016 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9017 | " >&5 |
ec6a6fbe | 9018 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9019 | " >&2;} |
9020 | { (exit 1); exit 1; }; } | |
9021 | fi; | |
7a197a62 | 9022 | |
d0191583 JM |
9023 | if test x$POOL = xinternal; then |
9024 | ||
9025 | cat >>confdefs.h <<\_ACEOF | |
9026 | #define POOL_INTERNAL 1 | |
9027 | _ACEOF | |
9028 | ||
9029 | fi | |
ad6254c5 | 9030 | |
06f62ad1 | 9031 | ################################################################################ |
ec6a6fbe AK |
9032 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9033 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9034 | |
9035 | # Check whether --with-cluster was given. | |
9036 | if test "${with_cluster+set}" = set; then | |
9037 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9038 | fi |
9039 | ||
ec6a6fbe AK |
9040 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9041 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9042 | |
d0191583 | 9043 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9044 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9045 | " >&5 |
ec6a6fbe | 9046 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9047 | " >&2;} |
9048 | { (exit 1); exit 1; }; } | |
d0191583 | 9049 | fi; |
06f62ad1 | 9050 | |
d0191583 | 9051 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9052 | |
9053 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9054 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9055 | _ACEOF |
9056 | ||
15d91f5a | 9057 | fi |
ad6254c5 AK |
9058 | |
9059 | ################################################################################ | |
ec6a6fbe AK |
9060 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9061 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9062 | |
d0191583 JM |
9063 | # Check whether --with-snapshots was given. |
9064 | if test "${with_snapshots+set}" = set; then | |
9065 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9066 | else | |
9067 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9068 | fi |
9069 | ||
ec6a6fbe AK |
9070 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9071 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9072 | |
d0191583 | 9073 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9074 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9075 | " >&5 |
ec6a6fbe | 9076 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9077 | " >&2;} |
9078 | { (exit 1); exit 1; }; } | |
9079 | fi; | |
9080 | ||
9081 | if test x$SNAPSHOTS = xinternal; then | |
9082 | ||
9083 | cat >>confdefs.h <<\_ACEOF | |
9084 | #define SNAPSHOT_INTERNAL 1 | |
9085 | _ACEOF | |
ad6254c5 | 9086 | |
ad6254c5 | 9087 | fi |
7a197a62 | 9088 | |
d0191583 | 9089 | ################################################################################ |
ec6a6fbe AK |
9090 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9091 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9092 | |
9093 | # Check whether --with-mirrors was given. | |
9094 | if test "${with_mirrors+set}" = set; then | |
9095 | withval=$with_mirrors; MIRRORS="$withval" | |
9096 | else | |
9097 | MIRRORS="internal" | |
ad6254c5 | 9098 | fi |
ad6254c5 | 9099 | |
ec6a6fbe AK |
9100 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9101 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9102 | |
d0191583 | 9103 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9104 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9105 | " >&5 |
ec6a6fbe | 9106 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9107 | " >&2;} |
9108 | { (exit 1); exit 1; }; } | |
9109 | fi; | |
ad6254c5 | 9110 | |
d0191583 | 9111 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9112 | |
d0191583 JM |
9113 | cat >>confdefs.h <<\_ACEOF |
9114 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9115 | _ACEOF |
8a2fc586 | 9116 | |
d0191583 | 9117 | fi |
8a2fc586 | 9118 | |
d0191583 | 9119 | ################################################################################ |
ec6a6fbe AK |
9120 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9121 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9122 | # Check whether --enable-readline was given. |
9123 | if test "${enable_readline+set}" = set; then | |
9124 | enableval=$enable_readline; READLINE=$enableval | |
9125 | else | |
06e459df | 9126 | READLINE=maybe |
d0191583 | 9127 | fi |
8a2fc586 | 9128 | |
ec6a6fbe AK |
9129 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9130 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9131 | |
d0191583 | 9132 | ################################################################################ |
ec6a6fbe AK |
9133 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9134 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9135 | # Check whether --enable-realtime was given. |
9136 | if test "${enable_realtime+set}" = set; then | |
9137 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9138 | fi |
ad6254c5 | 9139 | |
ec6a6fbe AK |
9140 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9141 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9142 | |
9143 | ################################################################################ | |
ec6a6fbe AK |
9144 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
9145 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
9146 | |
9147 | # Check whether --with-clvmd was given. | |
9148 | if test "${with_clvmd+set}" = set; then | |
9149 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 9150 | else |
d0191583 JM |
9151 | CLVMD="none" |
9152 | fi | |
8a2fc586 | 9153 | |
d0191583 JM |
9154 | if test x$CLVMD = xyes; then |
9155 | CLVMD=all | |
9156 | fi | |
ec6a6fbe AK |
9157 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
9158 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 9159 | |
d0191583 JM |
9160 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
9161 | CLUSTER=internal | |
9162 | fi | |
8a2fc586 | 9163 | |
d0191583 | 9164 | ################################################################################ |
ec6a6fbe AK |
9165 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
9166 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
d0191583 JM |
9167 | # Check whether --enable-debug was given. |
9168 | if test "${enable_debug+set}" = set; then | |
9169 | enableval=$enable_debug; DEBUG=$enableval | |
9170 | else | |
9171 | DEBUG=no | |
9172 | fi | |
8a2fc586 | 9173 | |
ec6a6fbe AK |
9174 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
9175 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 | 9176 | |
d0191583 JM |
9177 | if test x$DEBUG = xyes; then |
9178 | COPTIMISE_FLAG= | |
fc54be10 | 9179 | else |
d0191583 JM |
9180 | CSCOPE_CMD= |
9181 | fi | |
fc54be10 | 9182 | |
d0191583 | 9183 | ################################################################################ |
ec6a6fbe AK |
9184 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
9185 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
d0191583 JM |
9186 | |
9187 | # Check whether --with-optimisation was given. | |
9188 | if test "${with_optimisation+set}" = set; then | |
9189 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
9190 | fi | |
9191 | ||
ec6a6fbe AK |
9192 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
9193 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
9194 | |
9195 | ################################################################################ | |
ec6a6fbe AK |
9196 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
9197 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
fddafd51 ZK |
9198 | # Check whether --enable-profiling was given. |
9199 | if test "${enable_profiling+set}" = set; then | |
5556819a | 9200 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 9201 | else |
5556819a | 9202 | PROFILING=no |
fddafd51 ZK |
9203 | fi |
9204 | ||
ec6a6fbe AK |
9205 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
9206 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
9207 | |
9208 | if test "x$PROFILING" = xyes; then | |
9209 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
9210 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 9211 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
9212 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9213 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9214 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 9215 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9216 | else |
9217 | case $LCOV in | |
9218 | [\\/]* | ?:[\\/]*) | |
9219 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
9220 | ;; | |
9221 | *) | |
9222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9223 | for as_dir in $PATH | |
9224 | do | |
9225 | IFS=$as_save_IFS | |
9226 | test -z "$as_dir" && as_dir=. | |
9227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9229 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9230 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9231 | break 2 |
9232 | fi | |
9233 | done | |
9234 | done | |
9235 | IFS=$as_save_IFS | |
9236 | ||
b145d876 | 9237 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
9238 | ;; |
9239 | esac | |
9240 | fi | |
9241 | LCOV=$ac_cv_path_LCOV | |
9242 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
9243 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
9244 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 9245 | else |
ec6a6fbe AK |
9246 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9247 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9248 | fi |
9249 | ||
9250 | ||
5556819a | 9251 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 9252 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
9253 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9254 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9255 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 9256 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9257 | else |
9258 | case $GENHTML in | |
9259 | [\\/]* | ?:[\\/]*) | |
9260 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
9261 | ;; | |
9262 | *) | |
9263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9264 | for as_dir in $PATH | |
9265 | do | |
9266 | IFS=$as_save_IFS | |
9267 | test -z "$as_dir" && as_dir=. | |
9268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9270 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9271 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9272 | break 2 |
9273 | fi | |
9274 | done | |
9275 | done | |
9276 | IFS=$as_save_IFS | |
9277 | ||
b145d876 | 9278 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
9279 | ;; |
9280 | esac | |
9281 | fi | |
9282 | GENHTML=$ac_cv_path_GENHTML | |
9283 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
9284 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
9285 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 9286 | else |
ec6a6fbe AK |
9287 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9288 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9289 | fi |
9290 | ||
9291 | ||
b145d876 | 9292 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
9293 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
9294 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
9295 | { (exit 1); exit 1; }; } |
9296 | fi | |
5556819a | 9297 | fi |
d0191583 JM |
9298 | |
9299 | ################################################################################ | |
ec6a6fbe AK |
9300 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
9301 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
9302 | # Check whether --enable-devmapper was given. |
9303 | if test "${enable_devmapper+set}" = set; then | |
9304 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
9305 | fi |
9306 | ||
ec6a6fbe AK |
9307 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
9308 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
9309 | |
9310 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
9311 | |
9312 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9313 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
9314 | _ACEOF |
9315 | ||
9316 | fi | |
9317 | ||
93bd259b AK |
9318 | ################################################################################ |
9319 | # Check whether --enable-compat was given. | |
9320 | if test "${enable_compat+set}" = set; then | |
9321 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9322 | else | |
9323 | DM_COMPAT=no | |
9324 | fi | |
9325 | ||
9326 | ||
9327 | ################################################################################ | |
9328 | # Check whether --enable-ioctl was given. | |
9329 | if test "${enable_ioctl+set}" = set; then | |
9330 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
9331 | fi | |
9332 | ||
9333 | ||
d0191583 | 9334 | ################################################################################ |
ec6a6fbe AK |
9335 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
9336 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
9337 | # Check whether --enable-o_direct was given. |
9338 | if test "${enable_o_direct+set}" = set; then | |
9339 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 9340 | fi |
ad6254c5 | 9341 | |
ec6a6fbe AK |
9342 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
9343 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 9344 | |
d0191583 | 9345 | if test x$ODIRECT = xyes; then |
ad6254c5 | 9346 | |
d0191583 JM |
9347 | cat >>confdefs.h <<\_ACEOF |
9348 | #define O_DIRECT_SUPPORT 1 | |
9349 | _ACEOF | |
ad6254c5 | 9350 | |
d0191583 | 9351 | fi |
ad6254c5 | 9352 | |
d0191583 | 9353 | ################################################################################ |
ec6a6fbe AK |
9354 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
9355 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
9356 | # Check whether --enable-cmdlib was given. |
9357 | if test "${enable_cmdlib+set}" = set; then | |
9358 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 9359 | else |
d0191583 JM |
9360 | CMDLIB=no |
9361 | fi | |
8a2fc586 | 9362 | |
ec6a6fbe AK |
9363 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
9364 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 9365 | |
2a9a80c9 | 9366 | test x$CMDLIB = xyes \ |
d179cc7a JM |
9367 | && LVM2CMD_LIB=-llvm2cmd \ |
9368 | || LVM2CMD_LIB= | |
9369 | ||
93bd259b AK |
9370 | ################################################################################ |
9371 | # Check whether --enable-pkgconfig was given. | |
9372 | if test "${enable_pkgconfig+set}" = set; then | |
9373 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
9374 | else | |
9375 | PKGCONFIG=no | |
9376 | fi | |
9377 | ||
2a9a80c9 | 9378 | |
d0191583 | 9379 | ################################################################################ |
ec6a6fbe AK |
9380 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
9381 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
9382 | # Check whether --enable-fsadm was given. |
9383 | if test "${enable_fsadm+set}" = set; then | |
9384 | enableval=$enable_fsadm; FSADM=$enableval | |
9385 | fi | |
8a2fc586 | 9386 | |
ec6a6fbe AK |
9387 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
9388 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 9389 | |
d0191583 | 9390 | ################################################################################ |
ec6a6fbe AK |
9391 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
9392 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
9393 | # Check whether --enable-dmeventd was given. |
9394 | if test "${enable_dmeventd+set}" = set; then | |
9395 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9396 | fi | |
ad6254c5 | 9397 | |
ec6a6fbe AK |
9398 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
9399 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9400 | |
93bd259b AK |
9401 | BUILD_DMEVENTD=$DMEVENTD |
9402 | ||
2a9a80c9 PR |
9403 | if test x$DMEVENTD = xyes; then |
9404 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 9405 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9406 | " >&5 |
ec6a6fbe | 9407 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9408 | " >&2;} |
d0191583 | 9409 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
9410 | fi |
9411 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 9412 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 9413 | " >&5 |
ec6a6fbe | 9414 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
9415 | " >&2;} |
9416 | { (exit 1); exit 1; }; } | |
9417 | fi | |
ad6254c5 | 9418 | fi |
7a197a62 | 9419 | |
d0191583 JM |
9420 | if test x$DMEVENTD = xyes; then |
9421 | ||
9422 | cat >>confdefs.h <<\_ACEOF | |
9423 | #define DMEVENTD 1 | |
ad6254c5 AK |
9424 | _ACEOF |
9425 | ||
ad6254c5 | 9426 | fi |
93bd259b AK |
9427 | |
9428 | ################################################################################ | |
9429 | ||
ec6a6fbe AK |
9430 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
9431 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 9432 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 9433 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9434 | else |
9435 | ac_check_lib_save_LIBS=$LIBS | |
9436 | LIBS="-lc $LIBS" | |
9437 | cat >conftest.$ac_ext <<_ACEOF | |
9438 | /* confdefs.h. */ | |
9439 | _ACEOF | |
9440 | cat confdefs.h >>conftest.$ac_ext | |
9441 | cat >>conftest.$ac_ext <<_ACEOF | |
9442 | /* end confdefs.h. */ | |
9443 | ||
9444 | /* Override any GCC internal prototype to avoid an error. | |
9445 | Use char because int might match the return type of a GCC | |
9446 | builtin and then its argument prototype would still apply. */ | |
9447 | #ifdef __cplusplus | |
9448 | extern "C" | |
9449 | #endif | |
9450 | char getline (); | |
9451 | int | |
9452 | main () | |
9453 | { | |
9454 | return getline (); | |
9455 | ; | |
9456 | return 0; | |
9457 | } | |
9458 | _ACEOF | |
9459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9460 | if { (ac_try="$ac_link" | |
9461 | case "(($ac_try" in | |
9462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9463 | *) ac_try_echo=$ac_try;; | |
9464 | esac | |
ec6a6fbe AK |
9465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9466 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9467 | (eval "$ac_link") 2>conftest.er1 |
9468 | ac_status=$? | |
9469 | grep -v '^ *+' conftest.er1 >conftest.err | |
9470 | rm -f conftest.er1 | |
9471 | cat conftest.err >&5 | |
ec6a6fbe | 9472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9473 | (exit $ac_status); } && { |
9474 | test -z "$ac_c_werror_flag" || | |
9475 | test ! -s conftest.err | |
ec6a6fbe AK |
9476 | } && test -s conftest$ac_exeext && { |
9477 | test "$cross_compiling" = yes || | |
9478 | $as_test_x conftest$ac_exeext | |
9479 | }; then | |
93bd259b AK |
9480 | ac_cv_lib_c_getline=yes |
9481 | else | |
ec6a6fbe | 9482 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9483 | sed 's/^/| /' conftest.$ac_ext >&5 |
9484 | ||
9485 | ac_cv_lib_c_getline=no | |
9486 | fi | |
9487 | ||
ec6a6fbe | 9488 | rm -rf conftest.dSYM |
93bd259b AK |
9489 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9490 | conftest$ac_exeext conftest.$ac_ext | |
9491 | LIBS=$ac_check_lib_save_LIBS | |
9492 | fi | |
ec6a6fbe AK |
9493 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
9494 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9495 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
9496 | |
9497 | cat >>confdefs.h <<\_ACEOF | |
9498 | #define HAVE_GETLINE 1 | |
9499 | _ACEOF | |
9500 | ||
9501 | fi | |
9502 | ||
9503 | ||
9504 | ################################################################################ | |
9505 | ||
ec6a6fbe AK |
9506 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
9507 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 9508 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 9509 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9510 | else |
9511 | ac_check_lib_save_LIBS=$LIBS | |
9512 | LIBS="-lc $LIBS" | |
9513 | cat >conftest.$ac_ext <<_ACEOF | |
9514 | /* confdefs.h. */ | |
9515 | _ACEOF | |
9516 | cat confdefs.h >>conftest.$ac_ext | |
9517 | cat >>conftest.$ac_ext <<_ACEOF | |
9518 | /* end confdefs.h. */ | |
9519 | ||
9520 | /* Override any GCC internal prototype to avoid an error. | |
9521 | Use char because int might match the return type of a GCC | |
9522 | builtin and then its argument prototype would still apply. */ | |
9523 | #ifdef __cplusplus | |
9524 | extern "C" | |
9525 | #endif | |
9526 | char canonicalize_file_name (); | |
9527 | int | |
9528 | main () | |
9529 | { | |
9530 | return canonicalize_file_name (); | |
9531 | ; | |
9532 | return 0; | |
9533 | } | |
9534 | _ACEOF | |
9535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9536 | if { (ac_try="$ac_link" | |
9537 | case "(($ac_try" in | |
9538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9539 | *) ac_try_echo=$ac_try;; | |
9540 | esac | |
ec6a6fbe AK |
9541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9542 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9543 | (eval "$ac_link") 2>conftest.er1 |
9544 | ac_status=$? | |
9545 | grep -v '^ *+' conftest.er1 >conftest.err | |
9546 | rm -f conftest.er1 | |
9547 | cat conftest.err >&5 | |
ec6a6fbe | 9548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9549 | (exit $ac_status); } && { |
9550 | test -z "$ac_c_werror_flag" || | |
9551 | test ! -s conftest.err | |
ec6a6fbe AK |
9552 | } && test -s conftest$ac_exeext && { |
9553 | test "$cross_compiling" = yes || | |
9554 | $as_test_x conftest$ac_exeext | |
9555 | }; then | |
93bd259b AK |
9556 | ac_cv_lib_c_canonicalize_file_name=yes |
9557 | else | |
ec6a6fbe | 9558 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9559 | sed 's/^/| /' conftest.$ac_ext >&5 |
9560 | ||
9561 | ac_cv_lib_c_canonicalize_file_name=no | |
9562 | fi | |
9563 | ||
ec6a6fbe | 9564 | rm -rf conftest.dSYM |
93bd259b AK |
9565 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9566 | conftest$ac_exeext conftest.$ac_ext | |
9567 | LIBS=$ac_check_lib_save_LIBS | |
9568 | fi | |
ec6a6fbe AK |
9569 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
9570 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9571 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
9572 | |
9573 | cat >>confdefs.h <<\_ACEOF | |
9574 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9575 | _ACEOF | |
9576 | ||
9577 | fi | |
9578 | ||
9579 | ||
d0191583 JM |
9580 | ################################################################################ |
9581 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9582 | then exec_prefix=""; | |
9583 | fi; | |
ad6254c5 AK |
9584 | |
9585 | ################################################################################ | |
06e459df | 9586 | if test x$READLINE != xno; then |
ec6a6fbe AK |
9587 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9588 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 9589 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 9590 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9591 | else |
9592 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9593 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9594 | /* confdefs.h. */ |
9595 | _ACEOF | |
9596 | cat confdefs.h >>conftest.$ac_ext | |
9597 | cat >>conftest.$ac_ext <<_ACEOF | |
9598 | /* end confdefs.h. */ | |
9599 | ||
7a197a62 AK |
9600 | /* Override any GCC internal prototype to avoid an error. |
9601 | Use char because int might match the return type of a GCC | |
9602 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9603 | #ifdef __cplusplus |
9604 | extern "C" | |
9605 | #endif | |
ad6254c5 AK |
9606 | char tgetent (); |
9607 | int | |
9608 | main () | |
9609 | { | |
7a197a62 | 9610 | return tgetent (); |
ad6254c5 AK |
9611 | ; |
9612 | return 0; | |
9613 | } | |
9614 | _ACEOF | |
18dcfb69 | 9615 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
9616 | if test -z "$ac_lib"; then |
9617 | ac_res="none required" | |
9618 | else | |
9619 | ac_res=-l$ac_lib | |
9620 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9621 | fi | |
9622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9623 | if { (ac_try="$ac_link" | |
9624 | case "(($ac_try" in | |
9625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9626 | *) ac_try_echo=$ac_try;; | |
9627 | esac | |
ec6a6fbe AK |
9628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9629 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9630 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9631 | ac_status=$? |
8a2fc586 AK |
9632 | grep -v '^ *+' conftest.er1 >conftest.err |
9633 | rm -f conftest.er1 | |
9634 | cat conftest.err >&5 | |
ec6a6fbe | 9635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9636 | (exit $ac_status); } && { |
9637 | test -z "$ac_c_werror_flag" || | |
9638 | test ! -s conftest.err | |
ec6a6fbe AK |
9639 | } && test -s conftest$ac_exeext && { |
9640 | test "$cross_compiling" = yes || | |
9641 | $as_test_x conftest$ac_exeext | |
9642 | }; then | |
7a197a62 | 9643 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 9644 | else |
ec6a6fbe | 9645 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9646 | sed 's/^/| /' conftest.$ac_ext >&5 |
9647 | ||
ad6254c5 | 9648 | |
7a197a62 | 9649 | fi |
ad6254c5 | 9650 | |
ec6a6fbe | 9651 | rm -rf conftest.dSYM |
25fbec5b | 9652 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
9653 | conftest$ac_exeext |
9654 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9655 | break | |
ad6254c5 | 9656 | fi |
7a197a62 AK |
9657 | done |
9658 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9659 | : | |
9660 | else | |
9661 | ac_cv_search_tgetent=no | |
ad6254c5 | 9662 | fi |
7a197a62 | 9663 | rm conftest.$ac_ext |
ad6254c5 AK |
9664 | LIBS=$ac_func_search_save_LIBS |
9665 | fi | |
ec6a6fbe AK |
9666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
9667 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
9668 | ac_res=$ac_cv_search_tgetent |
9669 | if test "$ac_res" != no; then | |
9670 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 9671 | tg_found=yes |
ad6254c5 | 9672 | else |
06e459df JM |
9673 | tg_found=no |
9674 | fi | |
9675 | ||
9676 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 9677 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
9678 | --enable-readline option (which is enabled by default). Either disable readline |
9679 | support with --disable-readline or download and install termcap from: | |
9680 | ftp.gnu.org/gnu/termcap | |
9681 | Note: if you are using precompiled packages you will also need the development | |
9682 | package as well (which may be called termcap-devel or something similar). | |
9683 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9684 | not found either - but you could try installing that as well. | |
9685 | " >&5 | |
ec6a6fbe | 9686 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
9687 | --enable-readline option (which is enabled by default). Either disable readline |
9688 | support with --disable-readline or download and install termcap from: | |
9689 | ftp.gnu.org/gnu/termcap | |
9690 | Note: if you are using precompiled packages you will also need the development | |
9691 | package as well (which may be called termcap-devel or something similar). | |
9692 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9693 | not found either - but you could try installing that as well. | |
9694 | " >&2;} | |
9695 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
9696 | fi |
9697 | ||
9698 | ################################################################################ | |
ec6a6fbe AK |
9699 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9700 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 9701 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 9702 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9703 | else |
9704 | ac_check_lib_save_LIBS=$LIBS | |
9705 | LIBS="-ldl $LIBS" | |
9706 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9707 | /* confdefs.h. */ |
9708 | _ACEOF | |
9709 | cat confdefs.h >>conftest.$ac_ext | |
9710 | cat >>conftest.$ac_ext <<_ACEOF | |
9711 | /* end confdefs.h. */ | |
9712 | ||
7a197a62 AK |
9713 | /* Override any GCC internal prototype to avoid an error. |
9714 | Use char because int might match the return type of a GCC | |
9715 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9716 | #ifdef __cplusplus |
9717 | extern "C" | |
9718 | #endif | |
ad6254c5 AK |
9719 | char dlopen (); |
9720 | int | |
9721 | main () | |
9722 | { | |
7a197a62 | 9723 | return dlopen (); |
ad6254c5 AK |
9724 | ; |
9725 | return 0; | |
9726 | } | |
9727 | _ACEOF | |
9728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9729 | if { (ac_try="$ac_link" |
9730 | case "(($ac_try" in | |
9731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9732 | *) ac_try_echo=$ac_try;; | |
9733 | esac | |
ec6a6fbe AK |
9734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9735 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9736 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9737 | ac_status=$? |
8a2fc586 AK |
9738 | grep -v '^ *+' conftest.er1 >conftest.err |
9739 | rm -f conftest.er1 | |
9740 | cat conftest.err >&5 | |
ec6a6fbe | 9741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9742 | (exit $ac_status); } && { |
9743 | test -z "$ac_c_werror_flag" || | |
9744 | test ! -s conftest.err | |
ec6a6fbe AK |
9745 | } && test -s conftest$ac_exeext && { |
9746 | test "$cross_compiling" = yes || | |
9747 | $as_test_x conftest$ac_exeext | |
9748 | }; then | |
ad6254c5 AK |
9749 | ac_cv_lib_dl_dlopen=yes |
9750 | else | |
ec6a6fbe | 9751 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9752 | sed 's/^/| /' conftest.$ac_ext >&5 |
9753 | ||
7a197a62 | 9754 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 9755 | fi |
7a197a62 | 9756 | |
ec6a6fbe | 9757 | rm -rf conftest.dSYM |
25fbec5b | 9758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9759 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9760 | LIBS=$ac_check_lib_save_LIBS |
9761 | fi | |
ec6a6fbe AK |
9762 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9763 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9764 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
9765 | HAVE_LIBDL=yes |
9766 | else | |
9767 | HAVE_LIBDL=no | |
9768 | fi | |
9769 | ||
9770 | ||
7e9e9502 | 9771 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
9772 | |
9773 | cat >>confdefs.h <<\_ACEOF | |
9774 | #define HAVE_LIBDL 1 | |
9775 | _ACEOF | |
9776 | ||
ad6254c5 AK |
9777 | LIBS="-ldl $LIBS" |
9778 | else | |
9779 | HAVE_LIBDL=no | |
9780 | fi | |
9781 | ||
9782 | ################################################################################ | |
9783 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9784 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9785 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 9786 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 9787 | " >&5 |
ec6a6fbe | 9788 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
9789 | " >&2;} |
9790 | { (exit 1); exit 1; }; } | |
9791 | fi | |
9792 | ||
d0191583 | 9793 | ################################################################################ |
ec6a6fbe AK |
9794 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
9795 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
9796 | # Check whether --enable-selinux was given. |
9797 | if test "${enable_selinux+set}" = set; then | |
9798 | enableval=$enable_selinux; SELINUX=$enableval | |
9799 | fi | |
9800 | ||
ec6a6fbe AK |
9801 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9802 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 9803 | |
ad6254c5 AK |
9804 | ################################################################################ |
9805 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
9806 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9807 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 9808 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 9809 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
9810 | else |
9811 | ac_check_lib_save_LIBS=$LIBS | |
9812 | LIBS="-lsepol $LIBS" | |
9813 | cat >conftest.$ac_ext <<_ACEOF | |
9814 | /* confdefs.h. */ | |
9815 | _ACEOF | |
9816 | cat confdefs.h >>conftest.$ac_ext | |
9817 | cat >>conftest.$ac_ext <<_ACEOF | |
9818 | /* end confdefs.h. */ | |
9819 | ||
7a197a62 AK |
9820 | /* Override any GCC internal prototype to avoid an error. |
9821 | Use char because int might match the return type of a GCC | |
9822 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9823 | #ifdef __cplusplus |
9824 | extern "C" | |
9825 | #endif | |
8a2fc586 AK |
9826 | char sepol_check_context (); |
9827 | int | |
9828 | main () | |
9829 | { | |
7a197a62 | 9830 | return sepol_check_context (); |
8a2fc586 AK |
9831 | ; |
9832 | return 0; | |
9833 | } | |
9834 | _ACEOF | |
9835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9836 | if { (ac_try="$ac_link" |
9837 | case "(($ac_try" in | |
9838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9839 | *) ac_try_echo=$ac_try;; | |
9840 | esac | |
ec6a6fbe AK |
9841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9842 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9843 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9844 | ac_status=$? |
9845 | grep -v '^ *+' conftest.er1 >conftest.err | |
9846 | rm -f conftest.er1 | |
9847 | cat conftest.err >&5 | |
ec6a6fbe | 9848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9849 | (exit $ac_status); } && { |
9850 | test -z "$ac_c_werror_flag" || | |
9851 | test ! -s conftest.err | |
ec6a6fbe AK |
9852 | } && test -s conftest$ac_exeext && { |
9853 | test "$cross_compiling" = yes || | |
9854 | $as_test_x conftest$ac_exeext | |
9855 | }; then | |
8a2fc586 AK |
9856 | ac_cv_lib_sepol_sepol_check_context=yes |
9857 | else | |
ec6a6fbe | 9858 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9859 | sed 's/^/| /' conftest.$ac_ext >&5 |
9860 | ||
7a197a62 | 9861 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9862 | fi |
7a197a62 | 9863 | |
ec6a6fbe | 9864 | rm -rf conftest.dSYM |
25fbec5b | 9865 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9866 | conftest$ac_exeext conftest.$ac_ext |
9867 | LIBS=$ac_check_lib_save_LIBS | |
9868 | fi | |
ec6a6fbe AK |
9869 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9870 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9871 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
9872 | HAVE_SEPOL=yes |
9873 | else | |
9874 | HAVE_SEPOL=no | |
9875 | fi | |
9876 | ||
8a2fc586 AK |
9877 | |
9878 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9879 | |
9880 | cat >>confdefs.h <<\_ACEOF | |
9881 | #define HAVE_SEPOL 1 | |
9882 | _ACEOF | |
9883 | ||
8a2fc586 AK |
9884 | LIBS="-lsepol $LIBS" |
9885 | fi | |
9886 | ||
ec6a6fbe AK |
9887 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9888 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 9889 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 9890 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9891 | else |
9892 | ac_check_lib_save_LIBS=$LIBS | |
9893 | LIBS="-lselinux $LIBS" | |
9894 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9895 | /* confdefs.h. */ |
9896 | _ACEOF | |
9897 | cat confdefs.h >>conftest.$ac_ext | |
9898 | cat >>conftest.$ac_ext <<_ACEOF | |
9899 | /* end confdefs.h. */ | |
9900 | ||
7a197a62 AK |
9901 | /* Override any GCC internal prototype to avoid an error. |
9902 | Use char because int might match the return type of a GCC | |
9903 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9904 | #ifdef __cplusplus |
9905 | extern "C" | |
9906 | #endif | |
ad6254c5 AK |
9907 | char is_selinux_enabled (); |
9908 | int | |
9909 | main () | |
9910 | { | |
7a197a62 | 9911 | return is_selinux_enabled (); |
ad6254c5 AK |
9912 | ; |
9913 | return 0; | |
9914 | } | |
9915 | _ACEOF | |
9916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9917 | if { (ac_try="$ac_link" |
9918 | case "(($ac_try" in | |
9919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9920 | *) ac_try_echo=$ac_try;; | |
9921 | esac | |
ec6a6fbe AK |
9922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9923 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9924 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9925 | ac_status=$? |
8a2fc586 AK |
9926 | grep -v '^ *+' conftest.er1 >conftest.err |
9927 | rm -f conftest.er1 | |
9928 | cat conftest.err >&5 | |
ec6a6fbe | 9929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9930 | (exit $ac_status); } && { |
9931 | test -z "$ac_c_werror_flag" || | |
9932 | test ! -s conftest.err | |
ec6a6fbe AK |
9933 | } && test -s conftest$ac_exeext && { |
9934 | test "$cross_compiling" = yes || | |
9935 | $as_test_x conftest$ac_exeext | |
9936 | }; then | |
ad6254c5 AK |
9937 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9938 | else | |
ec6a6fbe | 9939 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9940 | sed 's/^/| /' conftest.$ac_ext >&5 |
9941 | ||
7a197a62 | 9942 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9943 | fi |
7a197a62 | 9944 | |
ec6a6fbe | 9945 | rm -rf conftest.dSYM |
25fbec5b | 9946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9947 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9948 | LIBS=$ac_check_lib_save_LIBS |
9949 | fi | |
ec6a6fbe AK |
9950 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9951 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9952 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
9953 | HAVE_SELINUX=yes |
9954 | else | |
9955 | HAVE_SELINUX=no | |
9956 | fi | |
9957 | ||
ad6254c5 AK |
9958 | |
9959 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9960 | |
9961 | cat >>confdefs.h <<\_ACEOF | |
9962 | #define HAVE_SELINUX 1 | |
9963 | _ACEOF | |
9964 | ||
ad6254c5 AK |
9965 | LIBS="-lselinux $LIBS" |
9966 | else | |
ec6a6fbe AK |
9967 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9968 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9969 | fi |
9970 | ||
d0191583 | 9971 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9972 | # fails on at least Debian unstable due to unsatisfied references |
9973 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9974 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9975 | lvm_saved_libs=$LIBS | |
9976 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
9977 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9978 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 9979 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 9980 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
9981 | else |
9982 | ac_func_search_save_LIBS=$LIBS | |
9983 | cat >conftest.$ac_ext <<_ACEOF | |
9984 | /* confdefs.h. */ | |
9985 | _ACEOF | |
9986 | cat confdefs.h >>conftest.$ac_ext | |
9987 | cat >>conftest.$ac_ext <<_ACEOF | |
9988 | /* end confdefs.h. */ | |
9989 | ||
9990 | /* Override any GCC internal prototype to avoid an error. | |
9991 | Use char because int might match the return type of a GCC | |
9992 | builtin and then its argument prototype would still apply. */ | |
9993 | #ifdef __cplusplus | |
9994 | extern "C" | |
9995 | #endif | |
9996 | char pthread_mutex_lock (); | |
9997 | int | |
9998 | main () | |
9999 | { | |
10000 | return pthread_mutex_lock (); | |
10001 | ; | |
10002 | return 0; | |
10003 | } | |
10004 | _ACEOF | |
10005 | for ac_lib in '' pthread; do | |
10006 | if test -z "$ac_lib"; then | |
10007 | ac_res="none required" | |
10008 | else | |
10009 | ac_res=-l$ac_lib | |
10010 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10011 | fi | |
10012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10013 | if { (ac_try="$ac_link" | |
10014 | case "(($ac_try" in | |
10015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10016 | *) ac_try_echo=$ac_try;; | |
10017 | esac | |
ec6a6fbe AK |
10018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10019 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
10020 | (eval "$ac_link") 2>conftest.er1 |
10021 | ac_status=$? | |
10022 | grep -v '^ *+' conftest.er1 >conftest.err | |
10023 | rm -f conftest.er1 | |
10024 | cat conftest.err >&5 | |
ec6a6fbe | 10025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10026 | (exit $ac_status); } && { |
10027 | test -z "$ac_c_werror_flag" || | |
10028 | test ! -s conftest.err | |
ec6a6fbe AK |
10029 | } && test -s conftest$ac_exeext && { |
10030 | test "$cross_compiling" = yes || | |
10031 | $as_test_x conftest$ac_exeext | |
10032 | }; then | |
66e941e8 JM |
10033 | ac_cv_search_pthread_mutex_lock=$ac_res |
10034 | else | |
ec6a6fbe | 10035 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
10036 | sed 's/^/| /' conftest.$ac_ext >&5 |
10037 | ||
10038 | ||
10039 | fi | |
10040 | ||
ec6a6fbe | 10041 | rm -rf conftest.dSYM |
25fbec5b | 10042 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
10043 | conftest$ac_exeext |
10044 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10045 | break | |
10046 | fi | |
10047 | done | |
10048 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10049 | : | |
10050 | else | |
10051 | ac_cv_search_pthread_mutex_lock=no | |
10052 | fi | |
10053 | rm conftest.$ac_ext | |
10054 | LIBS=$ac_func_search_save_LIBS | |
10055 | fi | |
ec6a6fbe AK |
10056 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
10057 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
10058 | ac_res=$ac_cv_search_pthread_mutex_lock |
10059 | if test "$ac_res" != no; then | |
10060 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10061 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
10062 | LIB_PTHREAD=-lpthread | |
10063 | fi | |
10064 | ||
10065 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
10066 | fi |
10067 | fi | |
10068 | ||
8b1a3214 AK |
10069 | ################################################################################ |
10070 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
10071 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
10072 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 10073 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 10074 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
10075 | else |
10076 | ac_check_lib_save_LIBS=$LIBS | |
10077 | LIBS="-lrt $LIBS" | |
10078 | cat >conftest.$ac_ext <<_ACEOF | |
10079 | /* confdefs.h. */ | |
10080 | _ACEOF | |
10081 | cat confdefs.h >>conftest.$ac_ext | |
10082 | cat >>conftest.$ac_ext <<_ACEOF | |
10083 | /* end confdefs.h. */ | |
10084 | ||
7a197a62 AK |
10085 | /* Override any GCC internal prototype to avoid an error. |
10086 | Use char because int might match the return type of a GCC | |
10087 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
10088 | #ifdef __cplusplus |
10089 | extern "C" | |
10090 | #endif | |
8b1a3214 AK |
10091 | char clock_gettime (); |
10092 | int | |
10093 | main () | |
10094 | { | |
7a197a62 | 10095 | return clock_gettime (); |
8b1a3214 AK |
10096 | ; |
10097 | return 0; | |
10098 | } | |
10099 | _ACEOF | |
10100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10101 | if { (ac_try="$ac_link" |
10102 | case "(($ac_try" in | |
10103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10104 | *) ac_try_echo=$ac_try;; | |
10105 | esac | |
ec6a6fbe AK |
10106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10107 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10108 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
10109 | ac_status=$? |
10110 | grep -v '^ *+' conftest.er1 >conftest.err | |
10111 | rm -f conftest.er1 | |
10112 | cat conftest.err >&5 | |
ec6a6fbe | 10113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10114 | (exit $ac_status); } && { |
10115 | test -z "$ac_c_werror_flag" || | |
10116 | test ! -s conftest.err | |
ec6a6fbe AK |
10117 | } && test -s conftest$ac_exeext && { |
10118 | test "$cross_compiling" = yes || | |
10119 | $as_test_x conftest$ac_exeext | |
10120 | }; then | |
8b1a3214 AK |
10121 | ac_cv_lib_rt_clock_gettime=yes |
10122 | else | |
ec6a6fbe | 10123 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
10124 | sed 's/^/| /' conftest.$ac_ext >&5 |
10125 | ||
7a197a62 | 10126 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 10127 | fi |
7a197a62 | 10128 | |
ec6a6fbe | 10129 | rm -rf conftest.dSYM |
25fbec5b | 10130 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
10131 | conftest$ac_exeext conftest.$ac_ext |
10132 | LIBS=$ac_check_lib_save_LIBS | |
10133 | fi | |
ec6a6fbe AK |
10134 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
10135 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
10136 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
10137 | HAVE_REALTIME=yes |
10138 | else | |
10139 | HAVE_REALTIME=no | |
10140 | fi | |
10141 | ||
8b1a3214 AK |
10142 | |
10143 | if test x$HAVE_REALTIME = xyes; then | |
10144 | ||
10145 | cat >>confdefs.h <<\_ACEOF | |
10146 | #define HAVE_REALTIME 1 | |
10147 | _ACEOF | |
10148 | ||
10149 | LIBS="-lrt $LIBS" | |
10150 | else | |
ec6a6fbe AK |
10151 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
10152 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
10153 | fi |
10154 | fi | |
10155 | ||
ad6254c5 AK |
10156 | ################################################################################ |
10157 | ||
10158 | for ac_header in getopt.h | |
10159 | do | |
ec6a6fbe | 10160 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10162 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10163 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10164 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10165 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10166 | fi |
ec6a6fbe AK |
10167 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10168 | $as_echo "$as_val"'` | |
10169 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10170 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10171 | else |
10172 | # Is the header compilable? | |
ec6a6fbe AK |
10173 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10174 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10175 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10176 | /* confdefs.h. */ |
10177 | _ACEOF | |
10178 | cat confdefs.h >>conftest.$ac_ext | |
10179 | cat >>conftest.$ac_ext <<_ACEOF | |
10180 | /* end confdefs.h. */ | |
10181 | $ac_includes_default | |
10182 | #include <$ac_header> | |
10183 | _ACEOF | |
10184 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10185 | if { (ac_try="$ac_compile" |
10186 | case "(($ac_try" in | |
10187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10188 | *) ac_try_echo=$ac_try;; | |
10189 | esac | |
ec6a6fbe AK |
10190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10191 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10192 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10193 | ac_status=$? |
8a2fc586 AK |
10194 | grep -v '^ *+' conftest.er1 >conftest.err |
10195 | rm -f conftest.er1 | |
10196 | cat conftest.err >&5 | |
ec6a6fbe | 10197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10198 | (exit $ac_status); } && { |
10199 | test -z "$ac_c_werror_flag" || | |
10200 | test ! -s conftest.err | |
10201 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10202 | ac_header_compiler=yes |
10203 | else | |
ec6a6fbe | 10204 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10205 | sed 's/^/| /' conftest.$ac_ext >&5 |
10206 | ||
7a197a62 | 10207 | ac_header_compiler=no |
ad6254c5 | 10208 | fi |
7a197a62 AK |
10209 | |
10210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10211 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10212 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10213 | |
10214 | # Is the header present? | |
ec6a6fbe AK |
10215 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10216 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10217 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10218 | /* confdefs.h. */ |
10219 | _ACEOF | |
10220 | cat confdefs.h >>conftest.$ac_ext | |
10221 | cat >>conftest.$ac_ext <<_ACEOF | |
10222 | /* end confdefs.h. */ | |
10223 | #include <$ac_header> | |
10224 | _ACEOF | |
7a197a62 AK |
10225 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10226 | case "(($ac_try" in | |
10227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10228 | *) ac_try_echo=$ac_try;; | |
10229 | esac | |
ec6a6fbe AK |
10230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10231 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10232 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10233 | ac_status=$? |
10234 | grep -v '^ *+' conftest.er1 >conftest.err | |
10235 | rm -f conftest.er1 | |
10236 | cat conftest.err >&5 | |
ec6a6fbe | 10237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10238 | (exit $ac_status); } >/dev/null && { |
10239 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10240 | test ! -s conftest.err | |
10241 | }; then | |
ad6254c5 AK |
10242 | ac_header_preproc=yes |
10243 | else | |
ec6a6fbe | 10244 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10245 | sed 's/^/| /' conftest.$ac_ext >&5 |
10246 | ||
10247 | ac_header_preproc=no | |
10248 | fi | |
7a197a62 | 10249 | |
ad6254c5 | 10250 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10251 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10252 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10253 | |
10254 | # So? What about this header? | |
8a2fc586 AK |
10255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10256 | yes:no: ) | |
ec6a6fbe AK |
10257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10258 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10260 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10261 | ac_header_preproc=yes |
ad6254c5 | 10262 | ;; |
8a2fc586 | 10263 | no:yes:* ) |
ec6a6fbe AK |
10264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10265 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10267 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10269 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10271 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10273 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10274 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10275 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10276 | |
ad6254c5 AK |
10277 | ;; |
10278 | esac | |
ec6a6fbe AK |
10279 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10280 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10282 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10283 | else |
8a2fc586 | 10284 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10285 | fi |
ec6a6fbe AK |
10286 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10287 | $as_echo "$as_val"'` | |
10288 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10289 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10290 | |
10291 | fi | |
ec6a6fbe AK |
10292 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10293 | $as_echo "$as_val"'` | |
10294 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10295 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10296 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10297 | _ACEOF |
72b2cb61 AK |
10298 | |
10299 | cat >>confdefs.h <<\_ACEOF | |
10300 | #define HAVE_GETOPTLONG 1 | |
10301 | _ACEOF | |
10302 | ||
ad6254c5 AK |
10303 | fi |
10304 | ||
10305 | done | |
10306 | ||
10307 | ||
10308 | ################################################################################ | |
06e459df | 10309 | if test x$READLINE != xno; then |
bc1024f8 JM |
10310 | rl_found=yes |
10311 | ||
ec6a6fbe AK |
10312 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10313 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 10314 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 10315 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10316 | else |
10317 | ac_check_lib_save_LIBS=$LIBS | |
10318 | LIBS="-lreadline $LIBS" | |
10319 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10320 | /* confdefs.h. */ |
10321 | _ACEOF | |
10322 | cat confdefs.h >>conftest.$ac_ext | |
10323 | cat >>conftest.$ac_ext <<_ACEOF | |
10324 | /* end confdefs.h. */ | |
10325 | ||
7a197a62 AK |
10326 | /* Override any GCC internal prototype to avoid an error. |
10327 | Use char because int might match the return type of a GCC | |
10328 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10329 | #ifdef __cplusplus |
10330 | extern "C" | |
10331 | #endif | |
ad6254c5 AK |
10332 | char readline (); |
10333 | int | |
10334 | main () | |
10335 | { | |
7a197a62 | 10336 | return readline (); |
ad6254c5 AK |
10337 | ; |
10338 | return 0; | |
10339 | } | |
10340 | _ACEOF | |
10341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10342 | if { (ac_try="$ac_link" |
10343 | case "(($ac_try" in | |
10344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10345 | *) ac_try_echo=$ac_try;; | |
10346 | esac | |
ec6a6fbe AK |
10347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10348 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10349 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10350 | ac_status=$? |
8a2fc586 AK |
10351 | grep -v '^ *+' conftest.er1 >conftest.err |
10352 | rm -f conftest.er1 | |
10353 | cat conftest.err >&5 | |
ec6a6fbe | 10354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10355 | (exit $ac_status); } && { |
10356 | test -z "$ac_c_werror_flag" || | |
10357 | test ! -s conftest.err | |
ec6a6fbe AK |
10358 | } && test -s conftest$ac_exeext && { |
10359 | test "$cross_compiling" = yes || | |
10360 | $as_test_x conftest$ac_exeext | |
10361 | }; then | |
ad6254c5 AK |
10362 | ac_cv_lib_readline_readline=yes |
10363 | else | |
ec6a6fbe | 10364 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10365 | sed 's/^/| /' conftest.$ac_ext >&5 |
10366 | ||
7a197a62 | 10367 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10368 | fi |
7a197a62 | 10369 | |
ec6a6fbe | 10370 | rm -rf conftest.dSYM |
25fbec5b | 10371 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10372 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10373 | LIBS=$ac_check_lib_save_LIBS |
10374 | fi | |
ec6a6fbe AK |
10375 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10376 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
10377 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
10378 | cat >>confdefs.h <<_ACEOF |
10379 | #define HAVE_LIBREADLINE 1 | |
10380 | _ACEOF | |
10381 | ||
10382 | LIBS="-lreadline $LIBS" | |
10383 | ||
ad6254c5 | 10384 | else |
06e459df JM |
10385 | rl_found=no |
10386 | fi | |
10387 | ||
10388 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 10389 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10390 | --enable-readline option (which is enabled by default). Either disable readline |
10391 | support with --disable-readline or download and install readline from: | |
10392 | ftp.gnu.org/gnu/readline | |
10393 | Note: if you are using precompiled packages you will also need the development | |
10394 | package as well (which may be called readline-devel or something similar). | |
10395 | " >&5 | |
ec6a6fbe | 10396 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10397 | --enable-readline option (which is enabled by default). Either disable readline |
10398 | support with --disable-readline or download and install readline from: | |
10399 | ftp.gnu.org/gnu/readline | |
10400 | Note: if you are using precompiled packages you will also need the development | |
10401 | package as well (which may be called readline-devel or something similar). | |
10402 | " >&2;} | |
10403 | { (exit 1); exit 1; }; } | |
06e459df | 10404 | if test $rl_found = yes; then |
bc1024f8 JM |
10405 | |
10406 | for ac_func in rl_completion_matches | |
10407 | do | |
ec6a6fbe AK |
10408 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10409 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10410 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 10411 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10412 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10413 | else |
10414 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10415 | /* confdefs.h. */ |
10416 | _ACEOF | |
10417 | cat confdefs.h >>conftest.$ac_ext | |
10418 | cat >>conftest.$ac_ext <<_ACEOF | |
10419 | /* end confdefs.h. */ | |
bc1024f8 | 10420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 10421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 10422 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 10423 | |
ad6254c5 | 10424 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 10425 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
10426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10427 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10428 | |
ad6254c5 AK |
10429 | #ifdef __STDC__ |
10430 | # include <limits.h> | |
10431 | #else | |
10432 | # include <assert.h> | |
10433 | #endif | |
8a2fc586 | 10434 | |
bc1024f8 | 10435 | #undef $ac_func |
8a2fc586 | 10436 | |
7a197a62 AK |
10437 | /* Override any GCC internal prototype to avoid an error. |
10438 | Use char because int might match the return type of a GCC | |
10439 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10440 | #ifdef __cplusplus |
10441 | extern "C" | |
ad6254c5 | 10442 | #endif |
bc1024f8 | 10443 | char $ac_func (); |
ad6254c5 AK |
10444 | /* The GNU C library defines this for functions which it implements |
10445 | to always fail with ENOSYS. Some functions are actually named | |
10446 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 10447 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10448 | choke me |
ad6254c5 AK |
10449 | #endif |
10450 | ||
10451 | int | |
10452 | main () | |
10453 | { | |
bc1024f8 | 10454 | return $ac_func (); |
ad6254c5 AK |
10455 | ; |
10456 | return 0; | |
10457 | } | |
10458 | _ACEOF | |
10459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10460 | if { (ac_try="$ac_link" |
10461 | case "(($ac_try" in | |
10462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10463 | *) ac_try_echo=$ac_try;; | |
10464 | esac | |
ec6a6fbe AK |
10465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10466 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10467 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10468 | ac_status=$? |
8a2fc586 AK |
10469 | grep -v '^ *+' conftest.er1 >conftest.err |
10470 | rm -f conftest.er1 | |
10471 | cat conftest.err >&5 | |
ec6a6fbe | 10472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10473 | (exit $ac_status); } && { |
10474 | test -z "$ac_c_werror_flag" || | |
10475 | test ! -s conftest.err | |
ec6a6fbe AK |
10476 | } && test -s conftest$ac_exeext && { |
10477 | test "$cross_compiling" = yes || | |
10478 | $as_test_x conftest$ac_exeext | |
10479 | }; then | |
bc1024f8 | 10480 | eval "$as_ac_var=yes" |
ad6254c5 | 10481 | else |
ec6a6fbe | 10482 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10483 | sed 's/^/| /' conftest.$ac_ext >&5 |
10484 | ||
bc1024f8 | 10485 | eval "$as_ac_var=no" |
ad6254c5 | 10486 | fi |
7a197a62 | 10487 | |
ec6a6fbe | 10488 | rm -rf conftest.dSYM |
25fbec5b | 10489 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10490 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10491 | fi |
ec6a6fbe AK |
10492 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10493 | $as_echo "$as_val"'` | |
10494 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10495 | $as_echo "$ac_res" >&6; } | |
10496 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10497 | $as_echo "$as_val"'` | |
10498 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 10499 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10500 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
10501 | _ACEOF |
10502 | ||
10503 | fi | |
bc1024f8 | 10504 | done |
ad6254c5 | 10505 | |
d179cc7a JM |
10506 | |
10507 | cat >>confdefs.h <<\_ACEOF | |
10508 | #define READLINE_SUPPORT 1 | |
10509 | _ACEOF | |
10510 | ||
06e459df | 10511 | fi |
ad6254c5 AK |
10512 | fi |
10513 | ||
10514 | ################################################################################ | |
ec6a6fbe AK |
10515 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10516 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 10517 | # Check whether --enable-nls was given. |
ad6254c5 | 10518 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10519 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10520 | else |
10521 | INTL=no | |
7a197a62 AK |
10522 | fi |
10523 | ||
ec6a6fbe AK |
10524 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
10525 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
10526 | |
10527 | if test x$INTL = xyes; then | |
93bd259b | 10528 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10529 | INTL_PACKAGE="lvm2" |
10530 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10531 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
10532 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10533 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 10534 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 10535 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10536 | else |
10537 | case $MSGFMT in | |
10538 | [\\/]* | ?:[\\/]*) | |
10539 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10540 | ;; | |
10541 | *) | |
10542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10543 | for as_dir in $PATH | |
10544 | do | |
10545 | IFS=$as_save_IFS | |
10546 | test -z "$as_dir" && as_dir=. | |
10547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10549 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 10550 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10551 | break 2 |
10552 | fi | |
10553 | done | |
10554 | done | |
7a197a62 | 10555 | IFS=$as_save_IFS |
ad6254c5 AK |
10556 | |
10557 | ;; | |
10558 | esac | |
10559 | fi | |
10560 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10561 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
10562 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10563 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 10564 | else |
ec6a6fbe AK |
10565 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10566 | $as_echo "no" >&6; } | |
ad6254c5 AK |
10567 | fi |
10568 | ||
7a197a62 | 10569 | |
ad6254c5 | 10570 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 10571 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10572 | " >&5 |
ec6a6fbe | 10573 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10574 | " >&2;} |
10575 | { (exit 1); exit 1; }; } | |
10576 | fi; | |
10577 | ||
10578 | ||
7a197a62 | 10579 | # Check whether --with-localedir was given. |
ad6254c5 | 10580 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10581 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10582 | else |
10583 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10584 | fi |
10585 | ||
ad6254c5 AK |
10586 | fi |
10587 | ||
10588 | ################################################################################ | |
10589 | ||
7a197a62 | 10590 | # Check whether --with-confdir was given. |
ad6254c5 | 10591 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10592 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10593 | else |
10594 | CONFDIR='/etc' | |
7a197a62 AK |
10595 | fi |
10596 | ||
ad6254c5 AK |
10597 | |
10598 | ||
7a197a62 | 10599 | # Check whether --with-staticdir was given. |
ad6254c5 | 10600 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10601 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10602 | else |
10603 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10604 | fi |
ad6254c5 | 10605 | |
33f732c5 | 10606 | |
7a197a62 | 10607 | |
68f2de6d AK |
10608 | # Check whether --with-usrlibdir was given. |
10609 | if test "${with_usrlibdir+set}" = set; then | |
10610 | withval=$with_usrlibdir; usrlibdir="$withval" | |
10611 | else | |
10612 | usrlibdir='${prefix}/lib' | |
10613 | fi | |
10614 | ||
10615 | ||
10616 | ||
10617 | # Check whether --with-usrsbindir was given. | |
10618 | if test "${with_usrsbindir+set}" = set; then | |
10619 | withval=$with_usrsbindir; usrsbindir="$withval" | |
10620 | else | |
10621 | usrsbindir='${prefix}/sbin' | |
10622 | fi | |
10623 | ||
10624 | ||
ad6254c5 AK |
10625 | ################################################################################ |
10626 | if test x$READLINE = xyes; then | |
10627 | ||
10628 | ||
10629 | for ac_header in readline/readline.h readline/history.h | |
10630 | do | |
ec6a6fbe | 10631 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10632 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10633 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10634 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10635 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10636 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10637 | fi |
ec6a6fbe AK |
10638 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10639 | $as_echo "$as_val"'` | |
10640 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10641 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10642 | else |
10643 | # Is the header compilable? | |
ec6a6fbe AK |
10644 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10645 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10646 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10647 | /* confdefs.h. */ |
10648 | _ACEOF | |
10649 | cat confdefs.h >>conftest.$ac_ext | |
10650 | cat >>conftest.$ac_ext <<_ACEOF | |
10651 | /* end confdefs.h. */ | |
10652 | $ac_includes_default | |
10653 | #include <$ac_header> | |
10654 | _ACEOF | |
10655 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10656 | if { (ac_try="$ac_compile" |
10657 | case "(($ac_try" in | |
10658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10659 | *) ac_try_echo=$ac_try;; | |
10660 | esac | |
ec6a6fbe AK |
10661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10662 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10663 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10664 | ac_status=$? |
8a2fc586 AK |
10665 | grep -v '^ *+' conftest.er1 >conftest.err |
10666 | rm -f conftest.er1 | |
10667 | cat conftest.err >&5 | |
ec6a6fbe | 10668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10669 | (exit $ac_status); } && { |
10670 | test -z "$ac_c_werror_flag" || | |
10671 | test ! -s conftest.err | |
10672 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10673 | ac_header_compiler=yes |
10674 | else | |
ec6a6fbe | 10675 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10676 | sed 's/^/| /' conftest.$ac_ext >&5 |
10677 | ||
7a197a62 | 10678 | ac_header_compiler=no |
ad6254c5 | 10679 | fi |
7a197a62 AK |
10680 | |
10681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10682 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10683 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10684 | |
10685 | # Is the header present? | |
ec6a6fbe AK |
10686 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10687 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10688 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10689 | /* confdefs.h. */ |
10690 | _ACEOF | |
10691 | cat confdefs.h >>conftest.$ac_ext | |
10692 | cat >>conftest.$ac_ext <<_ACEOF | |
10693 | /* end confdefs.h. */ | |
10694 | #include <$ac_header> | |
10695 | _ACEOF | |
7a197a62 AK |
10696 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10697 | case "(($ac_try" in | |
10698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10699 | *) ac_try_echo=$ac_try;; | |
10700 | esac | |
ec6a6fbe AK |
10701 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10702 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10703 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10704 | ac_status=$? |
10705 | grep -v '^ *+' conftest.er1 >conftest.err | |
10706 | rm -f conftest.er1 | |
10707 | cat conftest.err >&5 | |
ec6a6fbe | 10708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10709 | (exit $ac_status); } >/dev/null && { |
10710 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10711 | test ! -s conftest.err | |
10712 | }; then | |
ad6254c5 AK |
10713 | ac_header_preproc=yes |
10714 | else | |
ec6a6fbe | 10715 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10716 | sed 's/^/| /' conftest.$ac_ext >&5 |
10717 | ||
10718 | ac_header_preproc=no | |
10719 | fi | |
7a197a62 | 10720 | |
ad6254c5 | 10721 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10722 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10723 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10724 | |
10725 | # So? What about this header? | |
8a2fc586 AK |
10726 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10727 | yes:no: ) | |
ec6a6fbe AK |
10728 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10729 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10730 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10731 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10732 | ac_header_preproc=yes |
ad6254c5 | 10733 | ;; |
8a2fc586 | 10734 | no:yes:* ) |
ec6a6fbe AK |
10735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10736 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10737 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10738 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10739 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10740 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10742 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10744 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10745 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10746 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10747 | |
ad6254c5 AK |
10748 | ;; |
10749 | esac | |
ec6a6fbe AK |
10750 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10751 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10753 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10754 | else |
8a2fc586 | 10755 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10756 | fi |
ec6a6fbe AK |
10757 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10758 | $as_echo "$as_val"'` | |
10759 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10760 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10761 | |
10762 | fi | |
ec6a6fbe AK |
10763 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10764 | $as_echo "$as_val"'` | |
10765 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10766 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10767 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10768 | _ACEOF |
10769 | ||
10770 | else | |
ec6a6fbe AK |
10771 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10772 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10773 | { (exit 1); exit 1; }; } |
10774 | fi | |
10775 | ||
10776 | done | |
10777 | ||
10778 | fi | |
10779 | ||
5c7fc7c4 | 10780 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
10781 | |
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | 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 | |
10792 | do | |
ec6a6fbe | 10793 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10794 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10795 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10796 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10798 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10799 | fi |
ec6a6fbe AK |
10800 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10801 | $as_echo "$as_val"'` | |
10802 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10803 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10804 | else |
10805 | # Is the header compilable? | |
ec6a6fbe AK |
10806 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10807 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10808 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10809 | /* confdefs.h. */ |
10810 | _ACEOF | |
10811 | cat confdefs.h >>conftest.$ac_ext | |
10812 | cat >>conftest.$ac_ext <<_ACEOF | |
10813 | /* end confdefs.h. */ | |
10814 | $ac_includes_default | |
10815 | #include <$ac_header> | |
10816 | _ACEOF | |
10817 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10818 | if { (ac_try="$ac_compile" |
10819 | case "(($ac_try" in | |
10820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10821 | *) ac_try_echo=$ac_try;; | |
10822 | esac | |
ec6a6fbe AK |
10823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10824 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10825 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10826 | ac_status=$? |
8a2fc586 AK |
10827 | grep -v '^ *+' conftest.er1 >conftest.err |
10828 | rm -f conftest.er1 | |
10829 | cat conftest.err >&5 | |
ec6a6fbe | 10830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10831 | (exit $ac_status); } && { |
10832 | test -z "$ac_c_werror_flag" || | |
10833 | test ! -s conftest.err | |
10834 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10835 | ac_header_compiler=yes |
10836 | else | |
ec6a6fbe | 10837 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10838 | sed 's/^/| /' conftest.$ac_ext >&5 |
10839 | ||
7a197a62 | 10840 | ac_header_compiler=no |
ad6254c5 | 10841 | fi |
7a197a62 AK |
10842 | |
10843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10844 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10845 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10846 | |
10847 | # Is the header present? | |
ec6a6fbe AK |
10848 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10849 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10850 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10851 | /* confdefs.h. */ |
10852 | _ACEOF | |
10853 | cat confdefs.h >>conftest.$ac_ext | |
10854 | cat >>conftest.$ac_ext <<_ACEOF | |
10855 | /* end confdefs.h. */ | |
10856 | #include <$ac_header> | |
10857 | _ACEOF | |
7a197a62 AK |
10858 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10859 | case "(($ac_try" in | |
10860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10861 | *) ac_try_echo=$ac_try;; | |
10862 | esac | |
ec6a6fbe AK |
10863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10864 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10865 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10866 | ac_status=$? |
10867 | grep -v '^ *+' conftest.er1 >conftest.err | |
10868 | rm -f conftest.er1 | |
10869 | cat conftest.err >&5 | |
ec6a6fbe | 10870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10871 | (exit $ac_status); } >/dev/null && { |
10872 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10873 | test ! -s conftest.err | |
10874 | }; then | |
ad6254c5 AK |
10875 | ac_header_preproc=yes |
10876 | else | |
ec6a6fbe | 10877 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
10879 | ||
10880 | ac_header_preproc=no | |
10881 | fi | |
7a197a62 | 10882 | |
ad6254c5 | 10883 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10884 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10885 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10886 | |
10887 | # So? What about this header? | |
8a2fc586 AK |
10888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10889 | yes:no: ) | |
ec6a6fbe AK |
10890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10891 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10892 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10893 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10894 | ac_header_preproc=yes |
ad6254c5 | 10895 | ;; |
8a2fc586 | 10896 | no:yes:* ) |
ec6a6fbe AK |
10897 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10898 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10900 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10902 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10904 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10906 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10908 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10909 | |
ad6254c5 AK |
10910 | ;; |
10911 | esac | |
ec6a6fbe AK |
10912 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10913 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10915 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10916 | else |
8a2fc586 | 10917 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10918 | fi |
ec6a6fbe AK |
10919 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10920 | $as_echo "$as_val"'` | |
10921 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10922 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10923 | |
10924 | fi | |
ec6a6fbe AK |
10925 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10926 | $as_echo "$as_val"'` | |
10927 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10928 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10929 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10930 | _ACEOF |
10931 | ||
10932 | else | |
ec6a6fbe AK |
10933 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10934 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10935 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10936 | fi |
10937 | ||
ad6254c5 AK |
10938 | done |
10939 | ||
10940 | ||
795ca3e5 | 10941 | |
8106cdd5 | 10942 | |
ad6254c5 AK |
10943 | |
10944 | ||
10945 | for ac_func in dup2 getmntent memmove select socket | |
10946 | do | |
ec6a6fbe AK |
10947 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10948 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10949 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10950 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10951 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 10952 | else |
ad6254c5 | 10953 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10954 | /* confdefs.h. */ |
10955 | _ACEOF | |
10956 | cat confdefs.h >>conftest.$ac_ext | |
10957 | cat >>conftest.$ac_ext <<_ACEOF | |
10958 | /* end confdefs.h. */ | |
8a2fc586 AK |
10959 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10961 | #define $ac_func innocuous_$ac_func | |
10962 | ||
795ca3e5 | 10963 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10964 | which can conflict with char $ac_func (); below. |
10965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10966 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10967 | |
ad6254c5 AK |
10968 | #ifdef __STDC__ |
10969 | # include <limits.h> | |
10970 | #else | |
10971 | # include <assert.h> | |
10972 | #endif | |
8a2fc586 AK |
10973 | |
10974 | #undef $ac_func | |
10975 | ||
7a197a62 AK |
10976 | /* Override any GCC internal prototype to avoid an error. |
10977 | Use char because int might match the return type of a GCC | |
10978 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10979 | #ifdef __cplusplus |
10980 | extern "C" | |
ad6254c5 | 10981 | #endif |
ad6254c5 | 10982 | char $ac_func (); |
795ca3e5 AK |
10983 | /* The GNU C library defines this for functions which it implements |
10984 | to always fail with ENOSYS. Some functions are actually named | |
10985 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10986 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10987 | choke me |
795ca3e5 AK |
10988 | #endif |
10989 | ||
ad6254c5 AK |
10990 | int |
10991 | main () | |
10992 | { | |
7a197a62 | 10993 | return $ac_func (); |
ad6254c5 AK |
10994 | ; |
10995 | return 0; | |
10996 | } | |
10997 | _ACEOF | |
10998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10999 | if { (ac_try="$ac_link" |
11000 | case "(($ac_try" in | |
11001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11002 | *) ac_try_echo=$ac_try;; | |
11003 | esac | |
ec6a6fbe AK |
11004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11005 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11006 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11007 | ac_status=$? |
8a2fc586 AK |
11008 | grep -v '^ *+' conftest.er1 >conftest.err |
11009 | rm -f conftest.er1 | |
11010 | cat conftest.err >&5 | |
ec6a6fbe | 11011 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11012 | (exit $ac_status); } && { |
11013 | test -z "$ac_c_werror_flag" || | |
11014 | test ! -s conftest.err | |
ec6a6fbe AK |
11015 | } && test -s conftest$ac_exeext && { |
11016 | test "$cross_compiling" = yes || | |
11017 | $as_test_x conftest$ac_exeext | |
11018 | }; then | |
ad6254c5 | 11019 | eval "$as_ac_var=yes" |
795ca3e5 | 11020 | else |
ec6a6fbe | 11021 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11022 | sed 's/^/| /' conftest.$ac_ext >&5 |
11023 | ||
7a197a62 | 11024 | eval "$as_ac_var=no" |
80992638 | 11025 | fi |
7a197a62 | 11026 | |
ec6a6fbe | 11027 | rm -rf conftest.dSYM |
25fbec5b | 11028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11029 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 11030 | fi |
ec6a6fbe AK |
11031 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11032 | $as_echo "$as_val"'` | |
11033 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11034 | $as_echo "$ac_res" >&6; } | |
11035 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11036 | $as_echo "$as_val"'` | |
11037 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11038 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11039 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 11040 | _ACEOF |
80992638 AK |
11041 | |
11042 | else | |
ec6a6fbe AK |
11043 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11044 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11045 | { (exit 1); exit 1; }; } |
8106cdd5 | 11046 | fi |
ad6254c5 | 11047 | done |
795ca3e5 | 11048 | |
25fbec5b AK |
11049 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
11050 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
11051 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
11052 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 11053 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 11054 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
11055 | else |
11056 | ac_func_search_save_LIBS=$LIBS | |
11057 | cat >conftest.$ac_ext <<_ACEOF | |
11058 | /* confdefs.h. */ | |
11059 | _ACEOF | |
11060 | cat confdefs.h >>conftest.$ac_ext | |
11061 | cat >>conftest.$ac_ext <<_ACEOF | |
11062 | /* end confdefs.h. */ | |
80992638 | 11063 | |
7a197a62 AK |
11064 | /* Override any GCC internal prototype to avoid an error. |
11065 | Use char because int might match the return type of a GCC | |
ad6254c5 | 11066 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
11067 | #ifdef __cplusplus |
11068 | extern "C" | |
11069 | #endif | |
25fbec5b | 11070 | char getmntent (); |
ad6254c5 AK |
11071 | int |
11072 | main () | |
11073 | { | |
25fbec5b | 11074 | return getmntent (); |
ad6254c5 AK |
11075 | ; |
11076 | return 0; | |
11077 | } | |
11078 | _ACEOF | |
25fbec5b AK |
11079 | for ac_lib in '' sun seq gen; do |
11080 | if test -z "$ac_lib"; then | |
11081 | ac_res="none required" | |
11082 | else | |
11083 | ac_res=-l$ac_lib | |
11084 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11085 | fi | |
11086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11087 | if { (ac_try="$ac_link" |
11088 | case "(($ac_try" in | |
11089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11090 | *) ac_try_echo=$ac_try;; | |
11091 | esac | |
ec6a6fbe AK |
11092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11093 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11094 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11095 | ac_status=$? |
8a2fc586 AK |
11096 | grep -v '^ *+' conftest.er1 >conftest.err |
11097 | rm -f conftest.er1 | |
11098 | cat conftest.err >&5 | |
ec6a6fbe | 11099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11100 | (exit $ac_status); } && { |
11101 | test -z "$ac_c_werror_flag" || | |
11102 | test ! -s conftest.err | |
ec6a6fbe AK |
11103 | } && test -s conftest$ac_exeext && { |
11104 | test "$cross_compiling" = yes || | |
11105 | $as_test_x conftest$ac_exeext | |
11106 | }; then | |
25fbec5b | 11107 | ac_cv_search_getmntent=$ac_res |
80992638 | 11108 | else |
ec6a6fbe | 11109 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11110 | sed 's/^/| /' conftest.$ac_ext >&5 |
11111 | ||
25fbec5b | 11112 | |
795ca3e5 AK |
11113 | fi |
11114 | ||
ec6a6fbe | 11115 | rm -rf conftest.dSYM |
25fbec5b AK |
11116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11117 | conftest$ac_exeext | |
11118 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11119 | break | |
795ca3e5 | 11120 | fi |
25fbec5b AK |
11121 | done |
11122 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11123 | : | |
11124 | else | |
11125 | ac_cv_search_getmntent=no | |
11126 | fi | |
11127 | rm conftest.$ac_ext | |
11128 | LIBS=$ac_func_search_save_LIBS | |
11129 | fi | |
ec6a6fbe AK |
11130 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
11131 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
11132 | ac_res=$ac_cv_search_getmntent |
11133 | if test "$ac_res" != no; then | |
11134 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11135 | ac_cv_func_getmntent=yes | |
11136 | ||
11137 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 11138 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 11139 | _ACEOF |
795ca3e5 | 11140 | |
25fbec5b AK |
11141 | else |
11142 | ac_cv_func_getmntent=no | |
795ca3e5 | 11143 | fi |
795ca3e5 AK |
11144 | |
11145 | ||
ad6254c5 AK |
11146 | # AC_FUNC_REALLOC |
11147 | ||
11148 | ||
11149 | for ac_header in sys/select.h sys/socket.h | |
11150 | do | |
ec6a6fbe | 11151 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11153 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11154 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11155 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11156 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11157 | fi |
ec6a6fbe AK |
11158 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11159 | $as_echo "$as_val"'` | |
11160 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11161 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 11162 | else |
ad6254c5 | 11163 | # Is the header compilable? |
ec6a6fbe AK |
11164 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11165 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11166 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11167 | /* confdefs.h. */ |
11168 | _ACEOF | |
11169 | cat confdefs.h >>conftest.$ac_ext | |
11170 | cat >>conftest.$ac_ext <<_ACEOF | |
11171 | /* end confdefs.h. */ | |
11172 | $ac_includes_default | |
11173 | #include <$ac_header> | |
11174 | _ACEOF | |
11175 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11176 | if { (ac_try="$ac_compile" |
11177 | case "(($ac_try" in | |
11178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11179 | *) ac_try_echo=$ac_try;; | |
11180 | esac | |
ec6a6fbe AK |
11181 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11182 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11183 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11184 | ac_status=$? |
8a2fc586 AK |
11185 | grep -v '^ *+' conftest.er1 >conftest.err |
11186 | rm -f conftest.er1 | |
11187 | cat conftest.err >&5 | |
ec6a6fbe | 11188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11189 | (exit $ac_status); } && { |
11190 | test -z "$ac_c_werror_flag" || | |
11191 | test ! -s conftest.err | |
11192 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 11193 | ac_header_compiler=yes |
80992638 | 11194 | else |
ec6a6fbe | 11195 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11196 | sed 's/^/| /' conftest.$ac_ext >&5 |
11197 | ||
7a197a62 | 11198 | ac_header_compiler=no |
ad6254c5 | 11199 | fi |
7a197a62 AK |
11200 | |
11201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11202 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11203 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11204 | |
11205 | # Is the header present? | |
ec6a6fbe AK |
11206 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11207 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11208 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11209 | /* confdefs.h. */ |
11210 | _ACEOF | |
11211 | cat confdefs.h >>conftest.$ac_ext | |
11212 | cat >>conftest.$ac_ext <<_ACEOF | |
11213 | /* end confdefs.h. */ | |
11214 | #include <$ac_header> | |
11215 | _ACEOF | |
7a197a62 AK |
11216 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11217 | case "(($ac_try" in | |
11218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11219 | *) ac_try_echo=$ac_try;; | |
11220 | esac | |
ec6a6fbe AK |
11221 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11222 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11223 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11224 | ac_status=$? |
11225 | grep -v '^ *+' conftest.er1 >conftest.err | |
11226 | rm -f conftest.er1 | |
11227 | cat conftest.err >&5 | |
ec6a6fbe | 11228 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11229 | (exit $ac_status); } >/dev/null && { |
11230 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11231 | test ! -s conftest.err | |
11232 | }; then | |
ad6254c5 AK |
11233 | ac_header_preproc=yes |
11234 | else | |
ec6a6fbe | 11235 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11236 | sed 's/^/| /' conftest.$ac_ext >&5 |
11237 | ||
11238 | ac_header_preproc=no | |
11239 | fi | |
7a197a62 | 11240 | |
ad6254c5 | 11241 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11242 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11243 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11244 | |
11245 | # So? What about this header? | |
8a2fc586 AK |
11246 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11247 | yes:no: ) | |
ec6a6fbe AK |
11248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11249 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11251 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11252 | ac_header_preproc=yes |
ad6254c5 | 11253 | ;; |
8a2fc586 | 11254 | no:yes:* ) |
ec6a6fbe AK |
11255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11256 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11258 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11260 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11261 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11262 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11263 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11264 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11265 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11266 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11267 | |
ad6254c5 AK |
11268 | ;; |
11269 | esac | |
ec6a6fbe AK |
11270 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11271 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11272 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11273 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11274 | else |
8a2fc586 | 11275 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 11276 | fi |
ec6a6fbe AK |
11277 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11278 | $as_echo "$as_val"'` | |
11279 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11280 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 11281 | |
795ca3e5 | 11282 | fi |
ec6a6fbe AK |
11283 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11284 | $as_echo "$as_val"'` | |
11285 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11286 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11287 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11288 | _ACEOF |
11289 | ||
795ca3e5 AK |
11290 | fi |
11291 | ||
ad6254c5 AK |
11292 | done |
11293 | ||
ec6a6fbe AK |
11294 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11295 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 11296 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 11297 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 11298 | else |
ad6254c5 | 11299 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 11300 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
11301 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11302 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11303 | /* confdefs.h. */ |
11304 | _ACEOF | |
11305 | cat confdefs.h >>conftest.$ac_ext | |
11306 | cat >>conftest.$ac_ext <<_ACEOF | |
11307 | /* end confdefs.h. */ | |
11308 | $ac_includes_default | |
25fbec5b | 11309 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
11310 | # include <sys/select.h> |
11311 | #endif | |
25fbec5b | 11312 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
11313 | # include <sys/socket.h> |
11314 | #endif | |
11315 | ||
11316 | int | |
11317 | main () | |
11318 | { | |
11319 | extern int select ($ac_arg1, | |
8a2fc586 AK |
11320 | $ac_arg234, $ac_arg234, $ac_arg234, |
11321 | $ac_arg5); | |
ad6254c5 AK |
11322 | ; |
11323 | return 0; | |
11324 | } | |
11325 | _ACEOF | |
11326 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11327 | if { (ac_try="$ac_compile" |
11328 | case "(($ac_try" in | |
11329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11330 | *) ac_try_echo=$ac_try;; | |
11331 | esac | |
ec6a6fbe AK |
11332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11333 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11334 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11335 | ac_status=$? |
8a2fc586 AK |
11336 | grep -v '^ *+' conftest.er1 >conftest.err |
11337 | rm -f conftest.er1 | |
11338 | cat conftest.err >&5 | |
ec6a6fbe | 11339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11340 | (exit $ac_status); } && { |
11341 | test -z "$ac_c_werror_flag" || | |
11342 | test ! -s conftest.err | |
11343 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11344 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11345 | else | |
ec6a6fbe | 11346 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11347 | sed 's/^/| /' conftest.$ac_ext >&5 |
11348 | ||
7a197a62 | 11349 | |
ad6254c5 | 11350 | fi |
7a197a62 AK |
11351 | |
11352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
11353 | done |
11354 | done | |
11355 | done | |
11356 | # Provide a safe default value. | |
11357 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11358 | ||
26e7f2e0 | 11359 | fi |
ec6a6fbe AK |
11360 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11361 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11362 | ac_save_IFS=$IFS; IFS=',' |
11363 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11364 | IFS=$ac_save_IFS | |
11365 | shift | |
11366 | ||
11367 | cat >>confdefs.h <<_ACEOF | |
11368 | #define SELECT_TYPE_ARG1 $1 | |
11369 | _ACEOF | |
11370 | ||
11371 | ||
11372 | cat >>confdefs.h <<_ACEOF | |
11373 | #define SELECT_TYPE_ARG234 ($2) | |
11374 | _ACEOF | |
11375 | ||
11376 | ||
11377 | cat >>confdefs.h <<_ACEOF | |
11378 | #define SELECT_TYPE_ARG5 ($3) | |
11379 | _ACEOF | |
11380 | ||
80992638 | 11381 | rm -f conftest* |
80992638 | 11382 | |
8106cdd5 | 11383 | fi |
ad6254c5 | 11384 | |
ad6254c5 AK |
11385 | if test x$CLUSTER != xnone; then |
11386 | ||
11387 | ||
11388 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11389 | do |
ec6a6fbe | 11390 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11391 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11392 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11393 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11394 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11395 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11396 | fi |
ec6a6fbe AK |
11397 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11398 | $as_echo "$as_val"'` | |
11399 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11400 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11401 | else |
11402 | # Is the header compilable? | |
ec6a6fbe AK |
11403 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11404 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11405 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11406 | /* confdefs.h. */ |
11407 | _ACEOF | |
11408 | cat confdefs.h >>conftest.$ac_ext | |
11409 | cat >>conftest.$ac_ext <<_ACEOF | |
11410 | /* end confdefs.h. */ | |
11411 | $ac_includes_default | |
11412 | #include <$ac_header> | |
11413 | _ACEOF | |
11414 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11415 | if { (ac_try="$ac_compile" |
11416 | case "(($ac_try" in | |
11417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11418 | *) ac_try_echo=$ac_try;; | |
11419 | esac | |
ec6a6fbe AK |
11420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11421 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11422 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11423 | ac_status=$? |
8a2fc586 AK |
11424 | grep -v '^ *+' conftest.er1 >conftest.err |
11425 | rm -f conftest.er1 | |
11426 | cat conftest.err >&5 | |
ec6a6fbe | 11427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11428 | (exit $ac_status); } && { |
11429 | test -z "$ac_c_werror_flag" || | |
11430 | test ! -s conftest.err | |
11431 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11432 | ac_header_compiler=yes |
11433 | else | |
ec6a6fbe | 11434 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11435 | sed 's/^/| /' conftest.$ac_ext >&5 |
11436 | ||
7a197a62 | 11437 | ac_header_compiler=no |
ad6254c5 | 11438 | fi |
7a197a62 AK |
11439 | |
11440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11441 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11442 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11443 | |
11444 | # Is the header present? | |
ec6a6fbe AK |
11445 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11446 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11447 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11448 | /* confdefs.h. */ |
11449 | _ACEOF | |
11450 | cat confdefs.h >>conftest.$ac_ext | |
11451 | cat >>conftest.$ac_ext <<_ACEOF | |
11452 | /* end confdefs.h. */ | |
11453 | #include <$ac_header> | |
11454 | _ACEOF | |
7a197a62 AK |
11455 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11456 | case "(($ac_try" in | |
11457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11458 | *) ac_try_echo=$ac_try;; | |
11459 | esac | |
ec6a6fbe AK |
11460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11461 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11462 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11463 | ac_status=$? |
11464 | grep -v '^ *+' conftest.er1 >conftest.err | |
11465 | rm -f conftest.er1 | |
11466 | cat conftest.err >&5 | |
ec6a6fbe | 11467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11468 | (exit $ac_status); } >/dev/null && { |
11469 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11470 | test ! -s conftest.err | |
11471 | }; then | |
ad6254c5 AK |
11472 | ac_header_preproc=yes |
11473 | else | |
ec6a6fbe | 11474 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11475 | sed 's/^/| /' conftest.$ac_ext >&5 |
11476 | ||
11477 | ac_header_preproc=no | |
11478 | fi | |
7a197a62 | 11479 | |
ad6254c5 | 11480 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11481 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11482 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11483 | |
11484 | # So? What about this header? | |
8a2fc586 AK |
11485 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11486 | yes:no: ) | |
ec6a6fbe AK |
11487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11488 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11489 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11490 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11491 | ac_header_preproc=yes |
ad6254c5 | 11492 | ;; |
8a2fc586 | 11493 | no:yes:* ) |
ec6a6fbe AK |
11494 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11495 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11496 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11497 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11498 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11499 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11500 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11501 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11502 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11503 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11504 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11505 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11506 | |
ad6254c5 AK |
11507 | ;; |
11508 | esac | |
ec6a6fbe AK |
11509 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11510 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11511 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11512 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11513 | else |
8a2fc586 | 11514 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11515 | fi |
ec6a6fbe AK |
11516 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11517 | $as_echo "$as_val"'` | |
11518 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11519 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11520 | |
11521 | fi | |
ec6a6fbe AK |
11522 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11523 | $as_echo "$as_val"'` | |
11524 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11525 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11526 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11527 | _ACEOF |
11528 | ||
80992638 | 11529 | else |
ec6a6fbe AK |
11530 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11531 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11532 | { (exit 1); exit 1; }; } |
b896caa1 | 11533 | fi |
ad6254c5 | 11534 | |
b896caa1 AK |
11535 | done |
11536 | ||
11537 | ||
ad6254c5 AK |
11538 | for ac_func in socket |
11539 | do | |
ec6a6fbe AK |
11540 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11541 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11542 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11543 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11544 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11545 | else |
ad6254c5 | 11546 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11547 | /* confdefs.h. */ |
11548 | _ACEOF | |
11549 | cat confdefs.h >>conftest.$ac_ext | |
11550 | cat >>conftest.$ac_ext <<_ACEOF | |
11551 | /* end confdefs.h. */ | |
8a2fc586 AK |
11552 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11553 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11554 | #define $ac_func innocuous_$ac_func | |
11555 | ||
ad6254c5 AK |
11556 | /* System header to define __stub macros and hopefully few prototypes, |
11557 | which can conflict with char $ac_func (); below. | |
11558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11559 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11560 | |
ad6254c5 AK |
11561 | #ifdef __STDC__ |
11562 | # include <limits.h> | |
11563 | #else | |
11564 | # include <assert.h> | |
11565 | #endif | |
8a2fc586 AK |
11566 | |
11567 | #undef $ac_func | |
11568 | ||
7a197a62 AK |
11569 | /* Override any GCC internal prototype to avoid an error. |
11570 | Use char because int might match the return type of a GCC | |
11571 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11572 | #ifdef __cplusplus |
11573 | extern "C" | |
ad6254c5 | 11574 | #endif |
ad6254c5 AK |
11575 | char $ac_func (); |
11576 | /* The GNU C library defines this for functions which it implements | |
11577 | to always fail with ENOSYS. Some functions are actually named | |
11578 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11579 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11580 | choke me |
ad6254c5 AK |
11581 | #endif |
11582 | ||
11583 | int | |
11584 | main () | |
11585 | { | |
7a197a62 | 11586 | return $ac_func (); |
ad6254c5 AK |
11587 | ; |
11588 | return 0; | |
11589 | } | |
11590 | _ACEOF | |
11591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11592 | if { (ac_try="$ac_link" |
11593 | case "(($ac_try" in | |
11594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11595 | *) ac_try_echo=$ac_try;; | |
11596 | esac | |
ec6a6fbe AK |
11597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11598 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11599 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11600 | ac_status=$? |
8a2fc586 AK |
11601 | grep -v '^ *+' conftest.er1 >conftest.err |
11602 | rm -f conftest.er1 | |
11603 | cat conftest.err >&5 | |
ec6a6fbe | 11604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11605 | (exit $ac_status); } && { |
11606 | test -z "$ac_c_werror_flag" || | |
11607 | test ! -s conftest.err | |
ec6a6fbe AK |
11608 | } && test -s conftest$ac_exeext && { |
11609 | test "$cross_compiling" = yes || | |
11610 | $as_test_x conftest$ac_exeext | |
11611 | }; then | |
ad6254c5 AK |
11612 | eval "$as_ac_var=yes" |
11613 | else | |
ec6a6fbe | 11614 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11615 | sed 's/^/| /' conftest.$ac_ext >&5 |
11616 | ||
7a197a62 | 11617 | eval "$as_ac_var=no" |
ad6254c5 | 11618 | fi |
7a197a62 | 11619 | |
ec6a6fbe | 11620 | rm -rf conftest.dSYM |
25fbec5b | 11621 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11622 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 11623 | fi |
ec6a6fbe AK |
11624 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11625 | $as_echo "$as_val"'` | |
11626 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11627 | $as_echo "$ac_res" >&6; } | |
11628 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11629 | $as_echo "$as_val"'` | |
11630 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11631 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11632 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
11633 | _ACEOF |
11634 | ||
11635 | else | |
ec6a6fbe AK |
11636 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11637 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11638 | { (exit 1); exit 1; }; } |
11639 | fi | |
11640 | done | |
11641 | ||
11642 | fi | |
11643 | ||
11644 | if test x$HAVE_LIBDL = xyes; then | |
11645 | ||
11646 | for ac_header in dlfcn.h | |
11647 | do | |
ec6a6fbe | 11648 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11650 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11651 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11652 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11653 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11654 | fi |
ec6a6fbe AK |
11655 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11656 | $as_echo "$as_val"'` | |
11657 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11658 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11659 | else |
11660 | # Is the header compilable? | |
ec6a6fbe AK |
11661 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11662 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11663 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11664 | /* confdefs.h. */ |
11665 | _ACEOF | |
11666 | cat confdefs.h >>conftest.$ac_ext | |
11667 | cat >>conftest.$ac_ext <<_ACEOF | |
11668 | /* end confdefs.h. */ | |
11669 | $ac_includes_default | |
11670 | #include <$ac_header> | |
11671 | _ACEOF | |
11672 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11673 | if { (ac_try="$ac_compile" |
11674 | case "(($ac_try" in | |
11675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11676 | *) ac_try_echo=$ac_try;; | |
11677 | esac | |
ec6a6fbe AK |
11678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11679 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11680 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11681 | ac_status=$? |
8a2fc586 AK |
11682 | grep -v '^ *+' conftest.er1 >conftest.err |
11683 | rm -f conftest.er1 | |
11684 | cat conftest.err >&5 | |
ec6a6fbe | 11685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11686 | (exit $ac_status); } && { |
11687 | test -z "$ac_c_werror_flag" || | |
11688 | test ! -s conftest.err | |
11689 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11690 | ac_header_compiler=yes |
11691 | else | |
ec6a6fbe | 11692 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11693 | sed 's/^/| /' conftest.$ac_ext >&5 |
11694 | ||
7a197a62 | 11695 | ac_header_compiler=no |
ad6254c5 | 11696 | fi |
7a197a62 AK |
11697 | |
11698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11699 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11700 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11701 | |
11702 | # Is the header present? | |
ec6a6fbe AK |
11703 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11704 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11705 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11706 | /* confdefs.h. */ |
11707 | _ACEOF | |
11708 | cat confdefs.h >>conftest.$ac_ext | |
11709 | cat >>conftest.$ac_ext <<_ACEOF | |
11710 | /* end confdefs.h. */ | |
11711 | #include <$ac_header> | |
11712 | _ACEOF | |
7a197a62 AK |
11713 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11714 | case "(($ac_try" in | |
11715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11716 | *) ac_try_echo=$ac_try;; | |
11717 | esac | |
ec6a6fbe AK |
11718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11719 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11720 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11721 | ac_status=$? |
11722 | grep -v '^ *+' conftest.er1 >conftest.err | |
11723 | rm -f conftest.er1 | |
11724 | cat conftest.err >&5 | |
ec6a6fbe | 11725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11726 | (exit $ac_status); } >/dev/null && { |
11727 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11728 | test ! -s conftest.err | |
11729 | }; then | |
ad6254c5 AK |
11730 | ac_header_preproc=yes |
11731 | else | |
ec6a6fbe | 11732 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11733 | sed 's/^/| /' conftest.$ac_ext >&5 |
11734 | ||
11735 | ac_header_preproc=no | |
11736 | fi | |
7a197a62 | 11737 | |
ad6254c5 | 11738 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11739 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11740 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11741 | |
11742 | # So? What about this header? | |
8a2fc586 AK |
11743 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11744 | yes:no: ) | |
ec6a6fbe AK |
11745 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11746 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11747 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11748 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11749 | ac_header_preproc=yes |
ad6254c5 | 11750 | ;; |
8a2fc586 | 11751 | no:yes:* ) |
ec6a6fbe AK |
11752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11753 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11755 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11757 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11759 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11760 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11761 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11762 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11763 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11764 | |
ad6254c5 AK |
11765 | ;; |
11766 | esac | |
ec6a6fbe AK |
11767 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11768 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11770 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11771 | else |
8a2fc586 | 11772 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11773 | fi |
ec6a6fbe AK |
11774 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11775 | $as_echo "$as_val"'` | |
11776 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11777 | $as_echo "$ac_res" >&6; } | |
80992638 | 11778 | |
8106cdd5 | 11779 | fi |
ec6a6fbe AK |
11780 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11781 | $as_echo "$as_val"'` | |
11782 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11783 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11784 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11785 | _ACEOF |
795ca3e5 AK |
11786 | |
11787 | else | |
ec6a6fbe AK |
11788 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11789 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11790 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11791 | fi |
11792 | ||
ad6254c5 | 11793 | done |
80992638 | 11794 | |
ad6254c5 | 11795 | fi |
80992638 | 11796 | |
ad6254c5 | 11797 | if test x$INTL = xyes; then |
83912faa | 11798 | |
ad6254c5 AK |
11799 | for ac_header in libintl.h |
11800 | do | |
ec6a6fbe | 11801 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11802 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11803 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11804 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11805 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11806 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11807 | fi |
ec6a6fbe AK |
11808 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11809 | $as_echo "$as_val"'` | |
11810 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11811 | $as_echo "$ac_res" >&6; } | |
83912faa | 11812 | else |
ad6254c5 | 11813 | # Is the header compilable? |
ec6a6fbe AK |
11814 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11815 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11816 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11817 | /* confdefs.h. */ |
11818 | _ACEOF | |
11819 | cat confdefs.h >>conftest.$ac_ext | |
11820 | cat >>conftest.$ac_ext <<_ACEOF | |
11821 | /* end confdefs.h. */ | |
11822 | $ac_includes_default | |
11823 | #include <$ac_header> | |
11824 | _ACEOF | |
11825 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11826 | if { (ac_try="$ac_compile" |
11827 | case "(($ac_try" in | |
11828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11829 | *) ac_try_echo=$ac_try;; | |
11830 | esac | |
ec6a6fbe AK |
11831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11832 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11833 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11834 | ac_status=$? |
8a2fc586 AK |
11835 | grep -v '^ *+' conftest.er1 >conftest.err |
11836 | rm -f conftest.er1 | |
11837 | cat conftest.err >&5 | |
ec6a6fbe | 11838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11839 | (exit $ac_status); } && { |
11840 | test -z "$ac_c_werror_flag" || | |
11841 | test ! -s conftest.err | |
11842 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11843 | ac_header_compiler=yes |
11844 | else | |
ec6a6fbe | 11845 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11846 | sed 's/^/| /' conftest.$ac_ext >&5 |
11847 | ||
7a197a62 | 11848 | ac_header_compiler=no |
ad6254c5 | 11849 | fi |
7a197a62 AK |
11850 | |
11851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11852 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11853 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11854 | |
11855 | # Is the header present? | |
ec6a6fbe AK |
11856 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11857 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11858 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11859 | /* confdefs.h. */ |
11860 | _ACEOF | |
11861 | cat confdefs.h >>conftest.$ac_ext | |
11862 | cat >>conftest.$ac_ext <<_ACEOF | |
11863 | /* end confdefs.h. */ | |
11864 | #include <$ac_header> | |
11865 | _ACEOF | |
7a197a62 AK |
11866 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11867 | case "(($ac_try" in | |
11868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11869 | *) ac_try_echo=$ac_try;; | |
11870 | esac | |
ec6a6fbe AK |
11871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11872 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11873 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11874 | ac_status=$? |
11875 | grep -v '^ *+' conftest.er1 >conftest.err | |
11876 | rm -f conftest.er1 | |
11877 | cat conftest.err >&5 | |
ec6a6fbe | 11878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11879 | (exit $ac_status); } >/dev/null && { |
11880 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11881 | test ! -s conftest.err | |
11882 | }; then | |
ad6254c5 AK |
11883 | ac_header_preproc=yes |
11884 | else | |
ec6a6fbe | 11885 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11886 | sed 's/^/| /' conftest.$ac_ext >&5 |
11887 | ||
11888 | ac_header_preproc=no | |
11889 | fi | |
7a197a62 | 11890 | |
ad6254c5 | 11891 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11892 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11893 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11894 | |
11895 | # So? What about this header? | |
8a2fc586 AK |
11896 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11897 | yes:no: ) | |
ec6a6fbe AK |
11898 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11899 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11901 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11902 | ac_header_preproc=yes |
ad6254c5 | 11903 | ;; |
8a2fc586 | 11904 | no:yes:* ) |
ec6a6fbe AK |
11905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11906 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11908 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11910 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11912 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11913 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11914 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11916 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11917 | |
ad6254c5 AK |
11918 | ;; |
11919 | esac | |
ec6a6fbe AK |
11920 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11921 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11923 | $as_echo_n "(cached) " >&6 |
80992638 | 11924 | else |
8a2fc586 | 11925 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11926 | fi |
ec6a6fbe AK |
11927 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11928 | $as_echo "$as_val"'` | |
11929 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11930 | $as_echo "$ac_res" >&6; } | |
83912faa | 11931 | |
69792976 | 11932 | fi |
ec6a6fbe AK |
11933 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11934 | $as_echo "$as_val"'` | |
11935 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11936 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11937 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11938 | _ACEOF |
69792976 | 11939 | |
69792976 | 11940 | else |
ec6a6fbe AK |
11941 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11942 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11943 | { (exit 1); exit 1; }; } |
80992638 AK |
11944 | fi |
11945 | ||
ad6254c5 | 11946 | done |
69792976 | 11947 | |
ad6254c5 AK |
11948 | fi |
11949 | ||
ad6254c5 AK |
11950 | if test x$HAVE_SELINUX = xyes; then |
11951 | ||
11952 | for ac_header in selinux/selinux.h | |
11953 | do | |
ec6a6fbe | 11954 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11955 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11956 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11957 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11958 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11959 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11960 | fi |
ec6a6fbe AK |
11961 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11962 | $as_echo "$as_val"'` | |
11963 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11964 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 11965 | else |
ad6254c5 | 11966 | # Is the header compilable? |
ec6a6fbe AK |
11967 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11968 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11969 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11970 | /* confdefs.h. */ |
11971 | _ACEOF | |
11972 | cat confdefs.h >>conftest.$ac_ext | |
11973 | cat >>conftest.$ac_ext <<_ACEOF | |
11974 | /* end confdefs.h. */ | |
11975 | $ac_includes_default | |
11976 | #include <$ac_header> | |
11977 | _ACEOF | |
11978 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11979 | if { (ac_try="$ac_compile" |
11980 | case "(($ac_try" in | |
11981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11982 | *) ac_try_echo=$ac_try;; | |
11983 | esac | |
ec6a6fbe AK |
11984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11985 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11986 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11987 | ac_status=$? |
8a2fc586 AK |
11988 | grep -v '^ *+' conftest.er1 >conftest.err |
11989 | rm -f conftest.er1 | |
11990 | cat conftest.err >&5 | |
ec6a6fbe | 11991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11992 | (exit $ac_status); } && { |
11993 | test -z "$ac_c_werror_flag" || | |
11994 | test ! -s conftest.err | |
11995 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11996 | ac_header_compiler=yes |
11997 | else | |
ec6a6fbe | 11998 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11999 | sed 's/^/| /' conftest.$ac_ext >&5 |
12000 | ||
7a197a62 | 12001 | ac_header_compiler=no |
ad6254c5 | 12002 | fi |
7a197a62 AK |
12003 | |
12004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12005 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12006 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12007 | |
12008 | # Is the header present? | |
ec6a6fbe AK |
12009 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12010 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12011 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12012 | /* confdefs.h. */ |
12013 | _ACEOF | |
12014 | cat confdefs.h >>conftest.$ac_ext | |
12015 | cat >>conftest.$ac_ext <<_ACEOF | |
12016 | /* end confdefs.h. */ | |
12017 | #include <$ac_header> | |
12018 | _ACEOF | |
7a197a62 AK |
12019 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12020 | case "(($ac_try" in | |
12021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12022 | *) ac_try_echo=$ac_try;; | |
12023 | esac | |
ec6a6fbe AK |
12024 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12025 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12026 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12027 | ac_status=$? |
12028 | grep -v '^ *+' conftest.er1 >conftest.err | |
12029 | rm -f conftest.er1 | |
12030 | cat conftest.err >&5 | |
ec6a6fbe | 12031 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12032 | (exit $ac_status); } >/dev/null && { |
12033 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12034 | test ! -s conftest.err | |
12035 | }; then | |
ad6254c5 AK |
12036 | ac_header_preproc=yes |
12037 | else | |
ec6a6fbe | 12038 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12039 | sed 's/^/| /' conftest.$ac_ext >&5 |
12040 | ||
12041 | ac_header_preproc=no | |
12042 | fi | |
7a197a62 | 12043 | |
ad6254c5 | 12044 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12045 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12046 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12047 | |
12048 | # So? What about this header? | |
8a2fc586 AK |
12049 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12050 | yes:no: ) | |
ec6a6fbe AK |
12051 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12052 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12053 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12054 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12055 | ac_header_preproc=yes |
ad6254c5 | 12056 | ;; |
8a2fc586 | 12057 | no:yes:* ) |
ec6a6fbe AK |
12058 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12059 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12060 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12061 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12062 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12063 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12064 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12065 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12066 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12067 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12068 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12069 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12070 | |
ad6254c5 AK |
12071 | ;; |
12072 | esac | |
ec6a6fbe AK |
12073 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12074 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12075 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12076 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12077 | else |
8a2fc586 | 12078 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 12079 | fi |
ec6a6fbe AK |
12080 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12081 | $as_echo "$as_val"'` | |
12082 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12083 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12084 | |
ad6254c5 | 12085 | fi |
ec6a6fbe AK |
12086 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12087 | $as_echo "$as_val"'` | |
12088 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12089 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12090 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12091 | _ACEOF |
0a62c911 | 12092 | |
0a62c911 | 12093 | else |
ec6a6fbe AK |
12094 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12095 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12096 | { (exit 1); exit 1; }; } |
80992638 AK |
12097 | fi |
12098 | ||
ad6254c5 | 12099 | done |
0a62c911 | 12100 | |
ad6254c5 | 12101 | fi |
0a62c911 | 12102 | |
a653923f AK |
12103 | ################################################################################ |
12104 | # Extract the first word of "modprobe", so it can be a program name with args. | |
12105 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
12106 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12107 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 12108 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 12109 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
12110 | else |
12111 | case $MODPROBE_CMD in | |
12112 | [\\/]* | ?:[\\/]*) | |
12113 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
12114 | ;; | |
12115 | *) | |
12116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12117 | for as_dir in $PATH | |
12118 | do | |
12119 | IFS=$as_save_IFS | |
12120 | test -z "$as_dir" && as_dir=. | |
12121 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 12122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 12123 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 12124 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
12125 | break 2 |
12126 | fi | |
12127 | done | |
12128 | done | |
7a197a62 | 12129 | IFS=$as_save_IFS |
72b2cb61 AK |
12130 | |
12131 | ;; | |
12132 | esac | |
12133 | fi | |
12134 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 12135 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
12136 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
12137 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 12138 | else |
ec6a6fbe AK |
12139 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12140 | $as_echo "no" >&6; } | |
72b2cb61 AK |
12141 | fi |
12142 | ||
a653923f | 12143 | |
7a197a62 | 12144 | |
a653923f | 12145 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
12146 | |
12147 | cat >>confdefs.h <<_ACEOF | |
12148 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
12149 | _ACEOF | |
12150 | ||
a653923f AK |
12151 | fi |
12152 | ||
80992638 | 12153 | ################################################################################ |
93bd259b AK |
12154 | |
12155 | ||
12156 | if test "$BUILD_DMEVENTD" = yes; then | |
12157 | ||
12158 | # Check whether --with-dmeventd-pidfile was given. | |
12159 | if test "${with_dmeventd_pidfile+set}" = set; then | |
12160 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
12161 | #define DMEVENTD_PIDFILE "$withval" | |
12162 | _ACEOF | |
12163 | ||
12164 | else | |
12165 | cat >>confdefs.h <<_ACEOF | |
12166 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
12167 | _ACEOF | |
12168 | ||
12169 | fi | |
12170 | ||
12171 | fi | |
12172 | ||
12173 | ||
12174 | ||
12175 | if test "$BUILD_DMEVENTD" = yes; then | |
12176 | dmeventd_prefix="$exec_prefix" | |
12177 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12178 | dmeventd_prefix="$prefix" | |
12179 | fi | |
12180 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12181 | dmeventd_prefix="" | |
12182 | fi | |
12183 | ||
12184 | # Check whether --with-dmeventd-path was given. | |
12185 | if test "${with_dmeventd_path+set}" = set; then | |
12186 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
12187 | #define DMEVENTD_PATH "$withval" | |
12188 | _ACEOF | |
12189 | ||
12190 | else | |
12191 | cat >>confdefs.h <<_ACEOF | |
12192 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
12193 | _ACEOF | |
12194 | ||
12195 | fi | |
12196 | ||
12197 | fi | |
12198 | ||
12199 | ################################################################################ | |
ec6a6fbe AK |
12200 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
12201 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
12202 | |
12203 | # Check whether --with-interface was given. | |
12204 | if test "${with_interface+set}" = set; then | |
12205 | withval=$with_interface; interface="$withval" | |
12206 | else | |
12207 | interface=ioctl | |
12208 | fi | |
12209 | ||
12210 | if [ "x$interface" != xioctl ]; | |
12211 | then | |
ec6a6fbe AK |
12212 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
12213 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
12214 | { (exit 1); exit 1; }; } |
12215 | fi | |
ec6a6fbe AK |
12216 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
12217 | $as_echo "$interface" >&6; } | |
93bd259b AK |
12218 | |
12219 | ################################################################################ | |
2c44337b | 12220 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
12221 | |
12222 | cat >>confdefs.h <<_ACEOF | |
12223 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
12224 | _ACEOF | |
12225 | ||
12226 | ||
ec6a6fbe | 12227 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 12228 | |
d0191583 | 12229 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 12230 | |
ec6a6fbe AK |
12231 | VER=`cat VERSION` |
12232 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\"" | |
12233 | VER=`echo "$VER" | $AWK '{print $1}'` | |
12234 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
12235 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
12236 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
12237 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
12238 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'` | |
12239 | ||
80992638 | 12240 | ################################################################################ |
fae0c576 | 12241 | |
83912faa | 12242 | |
795ca3e5 AK |
12243 | |
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
5a52dca9 | 12249 | |
8ef2b021 | 12250 | |
199e490e | 12251 | |
69792976 AK |
12252 | |
12253 | ||
12254 | ||
d0191583 | 12255 | |
69792976 | 12256 | |
8106cdd5 AK |
12257 | |
12258 | ||
12259 | ||
12260 | ||
12261 | ||
d68a82ec | 12262 | |
036f273a | 12263 | |
7d1552c9 | 12264 | |
8106cdd5 | 12265 | |
0a62c911 | 12266 | |
8106cdd5 | 12267 | |
4a7f3eb2 | 12268 | |
4922197a AK |
12269 | |
12270 | ||
d8ac0fbc | 12271 | |
1a9ea74d | 12272 | |
8a2fc586 AK |
12273 | |
12274 | ||
d0191583 | 12275 | |
93bd259b AK |
12276 | |
12277 | ||
12278 | ||
12279 | ||
12280 | ||
d0191583 JM |
12281 | |
12282 | ||
12283 | ||
12284 | ||
12285 | ||
8a2fc586 | 12286 | |
8ce0cbda | 12287 | |
8b1a3214 | 12288 | |
ec6a6fbe AK |
12289 | |
12290 | ||
12291 | ||
12292 | ||
12293 | ||
33f732c5 | 12294 | |
66e941e8 | 12295 | |
d3c8211f | 12296 | |
7e3fe830 | 12297 | |
68f2de6d AK |
12298 | |
12299 | ||
80992638 | 12300 | ################################################################################ |
ec6a6fbe | 12301 | 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 man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile" |
7a197a62 | 12302 | |
ad6254c5 | 12303 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12304 | # This file is a shell script that caches the results of configure |
12305 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12306 | # scripts and configure runs, see configure's option --config-cache. |
12307 | # It is not useful on other systems. If it contains results you don't | |
12308 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12309 | # |
ad6254c5 AK |
12310 | # config.status only pays attention to the cache file if you give it |
12311 | # the --recheck option to rerun configure. | |
795ca3e5 | 12312 | # |
ad6254c5 AK |
12313 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12314 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12315 | # following values. | |
12316 | ||
12317 | _ACEOF | |
12318 | ||
795ca3e5 AK |
12319 | # The following way of writing the cache mishandles newlines in values, |
12320 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12321 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12322 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12323 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12324 | ( |
12325 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12326 | eval ac_val=\$$ac_var | |
12327 | case $ac_val in #( | |
12328 | *${as_nl}*) | |
12329 | case $ac_var in #( | |
ec6a6fbe AK |
12330 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
12331 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
12332 | esac |
12333 | case $ac_var in #( | |
12334 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 12335 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
12336 | *) $as_unset $ac_var ;; |
12337 | esac ;; | |
12338 | esac | |
12339 | done | |
12340 | ||
ad6254c5 | 12341 | (set) 2>&1 | |
7a197a62 AK |
12342 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12343 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12344 | # `set' does not quote correctly, so add quotes (double-quote |
12345 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12346 | sed -n \ | |
8a2fc586 AK |
12347 | "s/'/'\\\\''/g; |
12348 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12349 | ;; #( |
ad6254c5 AK |
12350 | *) |
12351 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12352 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12353 | ;; |
7a197a62 AK |
12354 | esac | |
12355 | sort | |
12356 | ) | | |
ad6254c5 | 12357 | sed ' |
7a197a62 | 12358 | /^ac_cv_env_/b end |
ad6254c5 | 12359 | t clear |
7a197a62 | 12360 | :clear |
ad6254c5 AK |
12361 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12362 | t end | |
7a197a62 AK |
12363 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12364 | :end' >>confcache | |
12365 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12366 | if test -w "$cache_file"; then | |
12367 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
12368 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12369 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12370 | cat confcache >$cache_file |
795ca3e5 | 12371 | else |
ec6a6fbe AK |
12372 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12373 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12374 | fi |
12375 | fi | |
12376 | rm -f confcache | |
12377 | ||
795ca3e5 AK |
12378 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12379 | # Let make expand exec_prefix. | |
12380 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12381 | ||
72b2cb61 | 12382 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12383 | |
12384 | ac_libobjs= | |
12385 | ac_ltlibobjs= | |
12386 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12387 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12388 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 12389 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12390 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12391 | # will be set to the directory where LIBOBJS objects are built. | |
12392 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12393 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
12394 | done |
12395 | LIBOBJS=$ac_libobjs | |
80992638 | 12396 | |
ad6254c5 AK |
12397 | LTLIBOBJS=$ac_ltlibobjs |
12398 | ||
12399 | ||
12400 | ||
12401 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 12402 | ac_write_fail=0 |
ad6254c5 AK |
12403 | ac_clean_files_save=$ac_clean_files |
12404 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
12405 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
12406 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12407 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
12408 | #! $SHELL |
12409 | # Generated by $as_me. | |
795ca3e5 | 12410 | # Run this file to recreate the current configuration. |
795ca3e5 | 12411 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
12412 | # configure, is in config.log if it exists. |
12413 | ||
12414 | debug=false | |
12415 | ac_cs_recheck=false | |
12416 | ac_cs_silent=false | |
12417 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12418 | _ACEOF | |
12419 | ||
ec6a6fbe | 12420 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12421 | ## --------------------- ## |
12422 | ## M4sh Initialization. ## | |
12423 | ## --------------------- ## | |
12424 | ||
25fbec5b AK |
12425 | # Be more Bourne compatible |
12426 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
12427 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12428 | emulate sh | |
12429 | NULLCMD=: | |
ec6a6fbe | 12430 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
12431 | # is contrary to our usage. Disable this feature. |
12432 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
12433 | setopt NO_GLOB_SUBST |
12434 | else | |
25fbec5b AK |
12435 | case `(set -o) 2>/dev/null` in |
12436 | *posix*) set -o posix ;; | |
12437 | esac | |
12438 | ||
7a197a62 | 12439 | fi |
25fbec5b AK |
12440 | |
12441 | ||
7a197a62 AK |
12442 | |
12443 | ||
12444 | # PATH needs CR | |
12445 | # Avoid depending upon Character Ranges. | |
12446 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12447 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12448 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12449 | as_cr_digits='0123456789' | |
12450 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12451 | ||
ec6a6fbe AK |
12452 | as_nl=' |
12453 | ' | |
12454 | export as_nl | |
12455 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12456 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12457 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12458 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12459 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12460 | as_echo='printf %s\n' | |
12461 | as_echo_n='printf %s' | |
12462 | else | |
12463 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12464 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12465 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 12466 | else |
ec6a6fbe AK |
12467 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12468 | as_echo_n_body='eval | |
12469 | arg=$1; | |
12470 | case $arg in | |
12471 | *"$as_nl"*) | |
12472 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12473 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12474 | esac; | |
12475 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12476 | ' | |
12477 | export as_echo_n_body | |
12478 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 12479 | fi |
ec6a6fbe AK |
12480 | export as_echo_body |
12481 | as_echo='sh -c $as_echo_body as_echo' | |
12482 | fi | |
12483 | ||
12484 | # The user is always right. | |
12485 | if test "${PATH_SEPARATOR+set}" != set; then | |
12486 | PATH_SEPARATOR=: | |
12487 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12488 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12489 | PATH_SEPARATOR=';' | |
12490 | } | |
ad6254c5 AK |
12491 | fi |
12492 | ||
12493 | # Support unset when possible. | |
8a2fc586 | 12494 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
12495 | as_unset=unset |
12496 | else | |
12497 | as_unset=false | |
12498 | fi | |
8106cdd5 | 12499 | |
ad6254c5 | 12500 | |
7a197a62 AK |
12501 | # IFS |
12502 | # We need space, tab and new line, in precisely that order. Quoting is | |
12503 | # there to prevent editors from complaining about space-tab. | |
12504 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12505 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
12506 | IFS=" "" $as_nl" |
12507 | ||
12508 | # Find who we are. Look in the path if we contain no directory separator. | |
12509 | case $0 in | |
12510 | *[\\/]* ) as_myself=$0 ;; | |
12511 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12512 | for as_dir in $PATH | |
12513 | do | |
12514 | IFS=$as_save_IFS | |
12515 | test -z "$as_dir" && as_dir=. | |
12516 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12517 | done | |
12518 | IFS=$as_save_IFS | |
12519 | ||
12520 | ;; | |
12521 | esac | |
12522 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12523 | # in which case we are not to be found in the path. | |
12524 | if test "x$as_myself" = x; then | |
12525 | as_myself=$0 | |
12526 | fi | |
12527 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 12528 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12529 | { (exit 1); exit 1; } |
12530 | fi | |
12531 | ||
ad6254c5 | 12532 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12533 | for as_var in ENV MAIL MAILPATH |
12534 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12535 | done | |
ad6254c5 AK |
12536 | PS1='$ ' |
12537 | PS2='> ' | |
12538 | PS4='+ ' | |
12539 | ||
12540 | # NLS nuisances. | |
ec6a6fbe AK |
12541 | LC_ALL=C |
12542 | export LC_ALL | |
12543 | LANGUAGE=C | |
12544 | export LANGUAGE | |
8106cdd5 | 12545 | |
ad6254c5 | 12546 | # Required to use basename. |
7a197a62 AK |
12547 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12548 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12549 | as_expr=expr |
12550 | else | |
12551 | as_expr=false | |
12552 | fi | |
8106cdd5 | 12553 | |
7a197a62 | 12554 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12555 | as_basename=basename |
12556 | else | |
12557 | as_basename=false | |
12558 | fi | |
12559 | ||
12560 | ||
12561 | # Name of the executable. | |
7a197a62 | 12562 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12563 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12564 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12565 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 12566 | $as_echo X/"$0" | |
7a197a62 AK |
12567 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12568 | s//\1/ | |
12569 | q | |
12570 | } | |
12571 | /^X\/\(\/\/\)$/{ | |
12572 | s//\1/ | |
12573 | q | |
12574 | } | |
12575 | /^X\/\(\/\).*/{ | |
12576 | s//\1/ | |
12577 | q | |
12578 | } | |
12579 | s/.*/./; q'` | |
ad6254c5 | 12580 | |
7a197a62 AK |
12581 | # CDPATH. |
12582 | $as_unset CDPATH | |
ad6254c5 AK |
12583 | |
12584 | ||
ad6254c5 | 12585 | |
ad6254c5 AK |
12586 | as_lineno_1=$LINENO |
12587 | as_lineno_2=$LINENO | |
ad6254c5 | 12588 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12589 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12590 | |
ad6254c5 AK |
12591 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12592 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12593 | # line-number line after each line using $LINENO; the second 'sed' |
12594 | # does the real work. The second script uses 'N' to pair each | |
12595 | # line-number line with the line containing $LINENO, and appends | |
12596 | # trailing '-' during substitution so that $LINENO is not a special | |
12597 | # case at line end. | |
ad6254c5 | 12598 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12599 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12600 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12601 | sed -n ' | |
12602 | p | |
12603 | /[$]LINENO/= | |
12604 | ' <$as_myself | | |
ad6254c5 | 12605 | sed ' |
7a197a62 AK |
12606 | s/[$]LINENO.*/&-/ |
12607 | t lineno | |
12608 | b | |
12609 | :lineno | |
ad6254c5 | 12610 | N |
7a197a62 AK |
12611 | :loop |
12612 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12613 | t loop |
7a197a62 | 12614 | s/-\n.*// |
ad6254c5 | 12615 | ' >$as_me.lineno && |
7a197a62 | 12616 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 12617 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
12618 | { (exit 1); exit 1; }; } |
12619 | ||
12620 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12621 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
12622 | # original and so on. Autoconf is especially sensitive to this). |
12623 | . "./$as_me.lineno" | |
ad6254c5 AK |
12624 | # Exit status is that of the last command. |
12625 | exit | |
12626 | } | |
12627 | ||
12628 | ||
7a197a62 AK |
12629 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12630 | as_dirname=dirname | |
12631 | else | |
12632 | as_dirname=false | |
12633 | fi | |
12634 | ||
12635 | ECHO_C= ECHO_N= ECHO_T= | |
12636 | case `echo -n x` in | |
12637 | -n*) | |
12638 | case `echo 'x\c'` in | |
12639 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12640 | *) ECHO_C='\c';; | |
12641 | esac;; | |
12642 | *) | |
12643 | ECHO_N='-n';; | |
ad6254c5 | 12644 | esac |
7a197a62 AK |
12645 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12646 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12647 | as_expr=expr |
12648 | else | |
12649 | as_expr=false | |
12650 | fi | |
80992638 | 12651 | |
ad6254c5 | 12652 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
12653 | if test -d conf$$.dir; then |
12654 | rm -f conf$$.dir/conf$$.file | |
12655 | else | |
12656 | rm -f conf$$.dir | |
ec6a6fbe AK |
12657 | mkdir conf$$.dir 2>/dev/null |
12658 | fi | |
12659 | if (echo >conf$$.file) 2>/dev/null; then | |
12660 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12661 | as_ln_s='ln -s' | |
12662 | # ... but there are two gotchas: | |
12663 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12664 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12665 | # In both cases, we have to default to `cp -p'. | |
12666 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12667 | as_ln_s='cp -p' | |
12668 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12669 | as_ln_s=ln | |
12670 | else | |
ad6254c5 | 12671 | as_ln_s='cp -p' |
ec6a6fbe | 12672 | fi |
ad6254c5 AK |
12673 | else |
12674 | as_ln_s='cp -p' | |
12675 | fi | |
7a197a62 AK |
12676 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12677 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 12678 | |
ad6254c5 AK |
12679 | if mkdir -p . 2>/dev/null; then |
12680 | as_mkdir_p=: | |
12681 | else | |
8a2fc586 | 12682 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
12683 | as_mkdir_p=false |
12684 | fi | |
12685 | ||
25fbec5b AK |
12686 | if test -x / >/dev/null 2>&1; then |
12687 | as_test_x='test -x' | |
7a197a62 | 12688 | else |
25fbec5b AK |
12689 | if ls -dL / >/dev/null 2>&1; then |
12690 | as_ls_L_option=L | |
12691 | else | |
12692 | as_ls_L_option= | |
12693 | fi | |
12694 | as_test_x=' | |
12695 | eval sh -c '\'' | |
12696 | if test -d "$1"; then | |
ec6a6fbe | 12697 | test -d "$1/."; |
25fbec5b AK |
12698 | else |
12699 | case $1 in | |
ec6a6fbe | 12700 | -*)set "./$1";; |
25fbec5b AK |
12701 | esac; |
12702 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12703 | ???[sx]*):;;*)false;;esac;fi | |
12704 | '\'' sh | |
12705 | ' | |
7a197a62 | 12706 | fi |
25fbec5b | 12707 | as_executable_p=$as_test_x |
ad6254c5 AK |
12708 | |
12709 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 12710 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12711 | |
12712 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 12713 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12714 | |
12715 | ||
ad6254c5 AK |
12716 | exec 6>&1 |
12717 | ||
7a197a62 | 12718 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 12719 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
12720 | # values after options handling. |
12721 | ac_log=" | |
ad6254c5 | 12722 | This file was extended by $as_me, which was |
ec6a6fbe | 12723 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
12724 | |
12725 | CONFIG_FILES = $CONFIG_FILES | |
12726 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12727 | CONFIG_LINKS = $CONFIG_LINKS | |
12728 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12729 | $ $0 $@ | |
12730 | ||
7a197a62 AK |
12731 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12732 | " | |
12733 | ||
ad6254c5 AK |
12734 | _ACEOF |
12735 | ||
ec6a6fbe AK |
12736 | case $ac_config_files in *" |
12737 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12738 | esac | |
12739 | ||
12740 | case $ac_config_headers in *" | |
12741 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12742 | esac | |
12743 | ||
12744 | ||
12745 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 12746 | # Files that config.status was made for. |
68f2de6d AK |
12747 | config_files="$ac_config_files" |
12748 | config_headers="$ac_config_headers" | |
ad6254c5 | 12749 | |
7a197a62 | 12750 | _ACEOF |
ad6254c5 | 12751 | |
ec6a6fbe | 12752 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12753 | ac_cs_usage="\ |
12754 | \`$as_me' instantiates files from templates according to the | |
12755 | current configuration. | |
12756 | ||
ec6a6fbe | 12757 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
12758 | |
12759 | -h, --help print this help, then exit | |
25fbec5b | 12760 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
12761 | -q, --quiet, --silent |
12762 | do not print progress messages | |
ad6254c5 AK |
12763 | -d, --debug don't remove temporary files |
12764 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
12765 | --file=FILE[:TEMPLATE] |
12766 | instantiate the configuration file FILE | |
12767 | --header=FILE[:TEMPLATE] | |
12768 | instantiate the configuration header FILE | |
ad6254c5 AK |
12769 | |
12770 | Configuration files: | |
12771 | $config_files | |
12772 | ||
72b2cb61 AK |
12773 | Configuration headers: |
12774 | $config_headers | |
12775 | ||
ad6254c5 | 12776 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12777 | |
7a197a62 | 12778 | _ACEOF |
ec6a6fbe | 12779 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12780 | ac_cs_version="\\ |
12781 | config.status | |
ec6a6fbe AK |
12782 | configured by $0, generated by GNU Autoconf 2.63, |
12783 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 12784 | |
ec6a6fbe | 12785 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
12786 | This config.status script is free software; the Free Software Foundation |
12787 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12788 | |
12789 | ac_pwd='$ac_pwd' | |
12790 | srcdir='$srcdir' | |
12791 | INSTALL='$INSTALL' | |
fddafd51 | 12792 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
12793 | AWK='$AWK' |
12794 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
12795 | _ACEOF |
12796 | ||
ec6a6fbe AK |
12797 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12798 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
12799 | ac_need_defaults=: |
12800 | while test $# != 0 | |
12801 | do | |
12802 | case $1 in | |
12803 | --*=*) | |
7a197a62 AK |
12804 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12805 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12806 | ac_shift=: |
12807 | ;; | |
7a197a62 | 12808 | *) |
ad6254c5 AK |
12809 | ac_option=$1 |
12810 | ac_optarg=$2 | |
12811 | ac_shift=shift | |
12812 | ;; | |
ad6254c5 AK |
12813 | esac |
12814 | ||
12815 | case $ac_option in | |
12816 | # Handling of the options. | |
ad6254c5 AK |
12817 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12818 | ac_cs_recheck=: ;; | |
7a197a62 | 12819 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 12820 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 12821 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12822 | debug=: ;; |
12823 | --file | --fil | --fi | --f ) | |
12824 | $ac_shift | |
ec6a6fbe AK |
12825 | case $ac_optarg in |
12826 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12827 | esac | |
12828 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
12829 | ac_need_defaults=false;; |
12830 | --header | --heade | --head | --hea ) | |
12831 | $ac_shift | |
ec6a6fbe AK |
12832 | case $ac_optarg in |
12833 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12834 | esac | |
12835 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 12836 | ac_need_defaults=false;; |
7a197a62 AK |
12837 | --he | --h) |
12838 | # Conflict between --help and --header | |
ec6a6fbe | 12839 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12840 | Try \`$0 --help' for more information." >&2 |
12841 | { (exit 1); exit 1; }; };; | |
12842 | --help | --hel | -h ) | |
ec6a6fbe | 12843 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12844 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12845 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12846 | ac_cs_silent=: ;; | |
12847 | ||
12848 | # This is an error. | |
ec6a6fbe | 12849 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12850 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12851 | { (exit 1); exit 1; }; } ;; |
12852 | ||
7a197a62 AK |
12853 | *) ac_config_targets="$ac_config_targets $1" |
12854 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12855 | |
12856 | esac | |
12857 | shift | |
12858 | done | |
12859 | ||
12860 | ac_configure_extra_args= | |
12861 | ||
12862 | if $ac_cs_silent; then | |
12863 | exec 6>/dev/null | |
12864 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12865 | fi | |
12866 | ||
12867 | _ACEOF | |
ec6a6fbe | 12868 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 12869 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
12870 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
12871 | shift | |
12872 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12873 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 12874 | export CONFIG_SHELL |
ec6a6fbe | 12875 | exec "\$@" |
ad6254c5 AK |
12876 | fi |
12877 | ||
12878 | _ACEOF | |
ec6a6fbe | 12879 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
12880 | exec 5>>config.log |
12881 | { | |
12882 | echo | |
12883 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12884 | ## Running $as_me. ## | |
12885 | _ASBOX | |
ec6a6fbe | 12886 | $as_echo "$ac_log" |
7a197a62 | 12887 | } >&5 |
ad6254c5 | 12888 | |
7a197a62 | 12889 | _ACEOF |
ec6a6fbe | 12890 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 12891 | _ACEOF |
ad6254c5 | 12892 | |
ec6a6fbe | 12893 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
12894 | |
12895 | # Handling of arguments. | |
ad6254c5 AK |
12896 | for ac_config_target in $ac_config_targets |
12897 | do | |
7a197a62 AK |
12898 | case $ac_config_target in |
12899 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12900 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12901 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
12902 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
12903 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
12904 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
12905 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 12906 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
12907 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
12908 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 12909 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
12910 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12911 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
12912 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12913 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12914 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12915 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 12916 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 12917 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
12918 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
12919 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
12920 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12921 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 12922 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 12923 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 12924 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 12925 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 12926 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
7a197a62 | 12927 | |
ec6a6fbe AK |
12928 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12929 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12930 | { (exit 1); exit 1; }; };; |
80992638 | 12931 | esac |
ad6254c5 AK |
12932 | done |
12933 | ||
7a197a62 | 12934 | |
ad6254c5 AK |
12935 | # If the user did not use the arguments to specify the items to instantiate, |
12936 | # then the envvar interface is used. Set only those that are not. | |
12937 | # We use the long form for the default assignment because of an extremely | |
12938 | # bizarre bug on SunOS 4.1.3. | |
12939 | if $ac_need_defaults; then | |
12940 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12941 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12942 | fi |
12943 | ||
12944 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12945 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12946 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12947 | # Hook for its removal unless debugging. |
12948 | # Note that there is a small window in which the directory will not be cleaned: | |
12949 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12950 | $debug || |
12951 | { | |
7a197a62 AK |
12952 | tmp= |
12953 | trap 'exit_status=$? | |
12954 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12955 | ' 0 | |
ad6254c5 AK |
12956 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12957 | } | |
ad6254c5 AK |
12958 | # Create a (secure) tmp directory for tmp files. |
12959 | ||
12960 | { | |
7a197a62 | 12961 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12962 | test -n "$tmp" && test -d "$tmp" |
12963 | } || | |
12964 | { | |
7a197a62 AK |
12965 | tmp=./conf$$-$RANDOM |
12966 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12967 | } || |
12968 | { | |
ec6a6fbe | 12969 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12970 | { (exit 1); exit 1; } |
12971 | } | |
12972 | ||
ec6a6fbe AK |
12973 | # Set up the scripts for CONFIG_FILES section. |
12974 | # No need to generate them if there are no CONFIG_FILES. | |
12975 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 12976 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12977 | |
68f2de6d | 12978 | |
ec6a6fbe AK |
12979 | ac_cr='\r' |
12980 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12981 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12982 | ac_cs_awk_cr='\\r' | |
12983 | else | |
12984 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 12985 | fi |
7a197a62 | 12986 | |
ec6a6fbe | 12987 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 12988 | _ACEOF |
7a197a62 | 12989 | |
8106cdd5 | 12990 | |
ec6a6fbe AK |
12991 | { |
12992 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12993 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12994 | echo "_ACEOF" | |
12995 | } >conf$$subs.sh || | |
12996 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12997 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12998 | { (exit 1); exit 1; }; } | |
12999 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
13000 | ac_delim='%!_!# ' |
13001 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
13002 | . ./conf$$subs.sh || |
13003 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13004 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13005 | { (exit 1); exit 1; }; } | |
13006 | ||
13007 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13008 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
13009 | break |
13010 | elif $ac_last_try; then | |
ec6a6fbe AK |
13011 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13012 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
13013 | { (exit 1); exit 1; }; } |
13014 | else | |
13015 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13016 | fi | |
13017 | done | |
ec6a6fbe AK |
13018 | rm -f conf$$subs.sh |
13019 | ||
13020 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13021 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13022 | _ACEOF | |
13023 | sed -n ' | |
13024 | h | |
13025 | s/^/S["/; s/!.*/"]=/ | |
13026 | p | |
13027 | g | |
13028 | s/^[^!]*!// | |
13029 | :repl | |
13030 | t repl | |
13031 | s/'"$ac_delim"'$// | |
13032 | t delim | |
13033 | :nl | |
13034 | h | |
13035 | s/\(.\{148\}\).*/\1/ | |
13036 | t more1 | |
13037 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13038 | p | |
13039 | n | |
13040 | b repl | |
13041 | :more1 | |
13042 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13043 | p | |
13044 | g | |
13045 | s/.\{148\}// | |
13046 | t nl | |
13047 | :delim | |
13048 | h | |
13049 | s/\(.\{148\}\).*/\1/ | |
13050 | t more2 | |
13051 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13052 | p | |
13053 | b | |
13054 | :more2 | |
13055 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13056 | p | |
13057 | g | |
13058 | s/.\{148\}// | |
13059 | t delim | |
13060 | ' <conf$$subs.awk | sed ' | |
13061 | /^[^""]/{ | |
13062 | N | |
13063 | s/\n// | |
13064 | } | |
13065 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13066 | rm -f conf$$subs.awk | |
13067 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13068 | _ACAWK | |
13069 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13070 | for (key in S) S_is_set[key] = 1 | |
13071 | FS = "\a" | |
7a197a62 | 13072 | |
ec6a6fbe AK |
13073 | } |
13074 | { | |
13075 | line = $ 0 | |
13076 | nfields = split(line, field, "@") | |
13077 | substed = 0 | |
13078 | len = length(field[1]) | |
13079 | for (i = 2; i < nfields; i++) { | |
13080 | key = field[i] | |
13081 | keylen = length(key) | |
13082 | if (S_is_set[key]) { | |
13083 | value = S[key] | |
13084 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13085 | len += length(value) + length(field[++i]) | |
13086 | substed = 1 | |
13087 | } else | |
13088 | len += 1 + keylen | |
13089 | } | |
13090 | ||
13091 | print line | |
13092 | } | |
fddafd51 | 13093 | |
ec6a6fbe | 13094 | _ACAWK |
1995c9ff | 13095 | _ACEOF |
ec6a6fbe AK |
13096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13097 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13098 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13099 | else | |
13100 | cat | |
13101 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13102 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
13103 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
13104 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13105 | _ACEOF |
13106 | ||
7a197a62 AK |
13107 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13108 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13109 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13110 | # (actually we leave an empty line to preserve line numbers). | |
13111 | if test "x$srcdir" = x.; then | |
13112 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13113 | s/:*\$(srcdir):*/:/ | |
13114 | s/:*\${srcdir}:*/:/ | |
13115 | s/:*@srcdir@:*/:/ | |
13116 | s/^\([^=]*=[ ]*\):*/\1/ | |
13117 | s/:*$// | |
13118 | s/^[^=]*=[ ]*$// | |
13119 | }' | |
13120 | fi | |
13121 | ||
ec6a6fbe | 13122 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13123 | fi # test -n "$CONFIG_FILES" |
13124 | ||
ec6a6fbe AK |
13125 | # Set up the scripts for CONFIG_HEADERS section. |
13126 | # No need to generate them if there are no CONFIG_HEADERS. | |
13127 | # This happens for instance with `./config.status Makefile'. | |
13128 | if test -n "$CONFIG_HEADERS"; then | |
13129 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13130 | BEGIN { | |
13131 | _ACEOF | |
13132 | ||
13133 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13134 | # here-document in config.status, that substitutes the proper values into | |
13135 | # config.h.in to produce config.h. | |
13136 | ||
13137 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13138 | # handling of long lines. | |
13139 | ac_delim='%!_!# ' | |
13140 | for ac_last_try in false false :; do | |
13141 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13142 | if test -z "$ac_t"; then | |
13143 | break | |
13144 | elif $ac_last_try; then | |
13145 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
13146 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
13147 | { (exit 1); exit 1; }; } | |
13148 | else | |
13149 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13150 | fi | |
13151 | done | |
13152 | ||
13153 | # For the awk script, D is an array of macro values keyed by name, | |
13154 | # likewise P contains macro parameters if any. Preserve backslash | |
13155 | # newline sequences. | |
13156 | ||
13157 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13158 | sed -n ' | |
13159 | s/.\{148\}/&'"$ac_delim"'/g | |
13160 | t rset | |
13161 | :rset | |
13162 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13163 | t def | |
13164 | d | |
13165 | :def | |
13166 | s/\\$// | |
13167 | t bsnl | |
13168 | s/["\\]/\\&/g | |
13169 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13170 | D["\1"]=" \3"/p | |
13171 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13172 | d | |
13173 | :bsnl | |
13174 | s/["\\]/\\&/g | |
13175 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13176 | D["\1"]=" \3\\\\\\n"\\/p | |
13177 | t cont | |
13178 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13179 | t cont | |
13180 | d | |
13181 | :cont | |
13182 | n | |
13183 | s/.\{148\}/&'"$ac_delim"'/g | |
13184 | t clear | |
13185 | :clear | |
13186 | s/\\$// | |
13187 | t bsnlc | |
13188 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13189 | d | |
13190 | :bsnlc | |
13191 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13192 | b cont | |
13193 | ' <confdefs.h | sed ' | |
13194 | s/'"$ac_delim"'/"\\\ | |
13195 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13196 | ||
13197 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13198 | for (key in D) D_is_set[key] = 1 | |
13199 | FS = "\a" | |
13200 | } | |
13201 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13202 | line = \$ 0 | |
13203 | split(line, arg, " ") | |
13204 | if (arg[1] == "#") { | |
13205 | defundef = arg[2] | |
13206 | mac1 = arg[3] | |
13207 | } else { | |
13208 | defundef = substr(arg[1], 2) | |
13209 | mac1 = arg[2] | |
13210 | } | |
13211 | split(mac1, mac2, "(") #) | |
13212 | macro = mac2[1] | |
13213 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13214 | if (D_is_set[macro]) { | |
13215 | # Preserve the white space surrounding the "#". | |
13216 | print prefix "define", macro P[macro] D[macro] | |
13217 | next | |
13218 | } else { | |
13219 | # Replace #undef with comments. This is necessary, for example, | |
13220 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13221 | # on some systems where configure will not decide to define it. | |
13222 | if (defundef == "undef") { | |
13223 | print "/*", prefix defundef, macro, "*/" | |
13224 | next | |
13225 | } | |
13226 | } | |
13227 | } | |
13228 | { print } | |
13229 | _ACAWK | |
13230 | _ACEOF | |
13231 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13232 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
13233 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
13234 | { (exit 1); exit 1; }; } | |
13235 | fi # test -n "$CONFIG_HEADERS" | |
13236 | ||
7a197a62 | 13237 | |
ec6a6fbe AK |
13238 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
13239 | shift | |
13240 | for ac_tag | |
7a197a62 AK |
13241 | do |
13242 | case $ac_tag in | |
13243 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13244 | esac | |
13245 | case $ac_mode$ac_tag in | |
13246 | :[FHL]*:*);; | |
ec6a6fbe AK |
13247 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
13248 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
13249 | { (exit 1); exit 1; }; };; |
13250 | :[FH]-) ac_tag=-:-;; | |
13251 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13252 | esac | |
13253 | ac_save_IFS=$IFS | |
13254 | IFS=: | |
13255 | set x $ac_tag | |
13256 | IFS=$ac_save_IFS | |
13257 | shift | |
13258 | ac_file=$1 | |
13259 | shift | |
13260 | ||
13261 | case $ac_mode in | |
13262 | :L) ac_source=$1;; | |
13263 | :[FH]) | |
13264 | ac_file_inputs= | |
13265 | for ac_f | |
13266 | do | |
13267 | case $ac_f in | |
13268 | -) ac_f="$tmp/stdin";; | |
13269 | *) # Look for the file first in the build tree, then in the source tree | |
13270 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13271 | # because $ac_f cannot contain `:'. | |
13272 | test -f "$ac_f" || | |
13273 | case $ac_f in | |
13274 | [\\/$]*) false;; | |
13275 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13276 | esac || | |
ec6a6fbe AK |
13277 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
13278 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
13279 | { (exit 1); exit 1; }; };; |
13280 | esac | |
ec6a6fbe AK |
13281 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
13282 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
13283 | done |
13284 | ||
13285 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13286 | # use $as_me), people would be surprised to read: | |
13287 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
13288 | configure_input='Generated from '` |
13289 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13290 | `' by configure.' | |
7a197a62 AK |
13291 | if test x"$ac_file" != x-; then |
13292 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
13293 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
13294 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 13295 | fi |
ec6a6fbe AK |
13296 | # Neutralize special characters interpreted by sed in replacement strings. |
13297 | case $configure_input in #( | |
13298 | *\&* | *\|* | *\\* ) | |
13299 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13300 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13301 | *) ac_sed_conf_input=$configure_input;; | |
13302 | esac | |
7a197a62 AK |
13303 | |
13304 | case $ac_tag in | |
ec6a6fbe AK |
13305 | *:-:* | *:-) cat >"$tmp/stdin" \ |
13306 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13307 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13308 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
13309 | esac |
13310 | ;; | |
80992638 | 13311 | esac |
8106cdd5 | 13312 | |
7a197a62 | 13313 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 13314 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13315 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13316 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 13317 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13318 | $as_echo X"$ac_file" | |
7a197a62 AK |
13319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13320 | s//\1/ | |
13321 | q | |
13322 | } | |
13323 | /^X\(\/\/\)[^/].*/{ | |
13324 | s//\1/ | |
13325 | q | |
13326 | } | |
13327 | /^X\(\/\/\)$/{ | |
13328 | s//\1/ | |
13329 | q | |
13330 | } | |
13331 | /^X\(\/\).*/{ | |
13332 | s//\1/ | |
13333 | q | |
13334 | } | |
13335 | s/.*/./; q'` | |
13336 | { as_dir="$ac_dir" | |
13337 | case $as_dir in #( | |
13338 | -*) as_dir=./$as_dir;; | |
13339 | esac | |
13340 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13341 | as_dirs= |
7a197a62 AK |
13342 | while :; do |
13343 | case $as_dir in #( | |
ec6a6fbe | 13344 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
13345 | *) as_qdir=$as_dir;; |
13346 | esac | |
13347 | as_dirs="'$as_qdir' $as_dirs" | |
13348 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13349 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13350 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13351 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13352 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13353 | $as_echo X"$as_dir" | |
7a197a62 AK |
13354 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13355 | s//\1/ | |
13356 | q | |
13357 | } | |
13358 | /^X\(\/\/\)[^/].*/{ | |
13359 | s//\1/ | |
13360 | q | |
13361 | } | |
13362 | /^X\(\/\/\)$/{ | |
13363 | s//\1/ | |
13364 | q | |
13365 | } | |
13366 | /^X\(\/\).*/{ | |
13367 | s//\1/ | |
13368 | q | |
13369 | } | |
13370 | s/.*/./; q'` | |
13371 | test -d "$as_dir" && break | |
ad6254c5 | 13372 | done |
7a197a62 | 13373 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
13374 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13375 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13376 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13377 | ac_builddir=. |
13378 | ||
7a197a62 AK |
13379 | case "$ac_dir" in |
13380 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13381 | *) | |
ec6a6fbe | 13382 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 13383 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 13384 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
13385 | case $ac_top_builddir_sub in |
13386 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13387 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13388 | esac ;; | |
13389 | esac | |
13390 | ac_abs_top_builddir=$ac_pwd | |
13391 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13392 | # for backward compatibility: | |
13393 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
13394 | |
13395 | case $srcdir in | |
7a197a62 | 13396 | .) # We are building in place. |
ad6254c5 | 13397 | ac_srcdir=. |
7a197a62 AK |
13398 | ac_top_srcdir=$ac_top_builddir_sub |
13399 | ac_abs_top_srcdir=$ac_pwd ;; | |
13400 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 13401 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
13402 | ac_top_srcdir=$srcdir |
13403 | ac_abs_top_srcdir=$srcdir ;; | |
13404 | *) # Relative name. | |
13405 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13406 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13407 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 13408 | esac |
7a197a62 | 13409 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 13410 | |
ad6254c5 | 13411 | |
7a197a62 AK |
13412 | case $ac_mode in |
13413 | :F) | |
13414 | # | |
13415 | # CONFIG_FILE | |
13416 | # | |
ad6254c5 AK |
13417 | |
13418 | case $INSTALL in | |
13419 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 13420 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 13421 | esac |
fddafd51 ZK |
13422 | ac_MKDIR_P=$MKDIR_P |
13423 | case $MKDIR_P in | |
13424 | [\\/$]* | ?:[\\/]* ) ;; | |
13425 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13426 | esac | |
7a197a62 | 13427 | _ACEOF |
795ca3e5 | 13428 | |
ec6a6fbe | 13429 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13430 | # If the template does not know about datarootdir, expand it. |
13431 | # FIXME: This hack should be removed a few years after 2.60. | |
13432 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13433 | ||
ec6a6fbe AK |
13434 | ac_sed_dataroot=' |
13435 | /datarootdir/ { | |
7a197a62 AK |
13436 | p |
13437 | q | |
13438 | } | |
13439 | /@datadir@/p | |
13440 | /@docdir@/p | |
13441 | /@infodir@/p | |
13442 | /@localedir@/p | |
13443 | /@mandir@/p | |
ec6a6fbe AK |
13444 | ' |
13445 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
13446 | *datarootdir*) ac_datarootdir_seen=yes;; |
13447 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
13448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
13449 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 13450 | _ACEOF |
ec6a6fbe | 13451 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13452 | ac_datarootdir_hack=' |
13453 | s&@datadir@&$datadir&g | |
13454 | s&@docdir@&$docdir&g | |
13455 | s&@infodir@&$infodir&g | |
13456 | s&@localedir@&$localedir&g | |
13457 | s&@mandir@&$mandir&g | |
13458 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13459 | esac | |
13460 | _ACEOF | |
13461 | ||
13462 | # Neutralize VPATH when `$srcdir' = `.'. | |
13463 | # Shell code in configure.ac might set extrasub. | |
13464 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
13465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13466 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
13467 | $extrasub |
13468 | _ACEOF | |
ec6a6fbe | 13469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13470 | :t |
13471 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 13472 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 13473 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 13474 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
13475 | s&@srcdir@&$ac_srcdir&;t t |
13476 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13477 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13478 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13479 | s&@builddir@&$ac_builddir&;t t | |
13480 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13481 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13482 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 13483 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 13484 | $ac_datarootdir_hack |
ec6a6fbe AK |
13485 | " |
13486 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13487 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13488 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13489 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13490 | |
13491 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13492 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13493 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 13494 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 13495 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 13496 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
13497 | which seems to be undefined. Please make sure it is defined." >&2;} |
13498 | ||
13499 | rm -f "$tmp/stdin" | |
72b2cb61 | 13500 | case $ac_file in |
ec6a6fbe AK |
13501 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
13502 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13503 | esac \ | |
13504 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13505 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13506 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13507 | ;; |
13508 | :H) | |
13509 | # | |
13510 | # CONFIG_HEADER | |
13511 | # | |
72b2cb61 | 13512 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
13513 | { |
13514 | $as_echo "/* $configure_input */" \ | |
13515 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13516 | } >"$tmp/config.h" \ | |
13517 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13518 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13519 | { (exit 1); exit 1; }; } | |
13520 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13521 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13522 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13523 | else |
ec6a6fbe AK |
13524 | rm -f "$ac_file" |
13525 | mv "$tmp/config.h" "$ac_file" \ | |
13526 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13527 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13528 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
13529 | fi |
13530 | else | |
ec6a6fbe AK |
13531 | $as_echo "/* $configure_input */" \ |
13532 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13533 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13534 | $as_echo "$as_me: error: could not create -" >&2;} | |
13535 | { (exit 1); exit 1; }; } | |
72b2cb61 | 13536 | fi |
7a197a62 AK |
13537 | ;; |
13538 | ||
13539 | ||
13540 | esac | |
13541 | ||
13542 | done # for ac_tag | |
795ca3e5 | 13543 | |
795ca3e5 | 13544 | |
ad6254c5 AK |
13545 | { (exit 0); exit 0; } |
13546 | _ACEOF | |
795ca3e5 | 13547 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13548 | ac_clean_files=$ac_clean_files_save |
13549 | ||
ec6a6fbe AK |
13550 | test $ac_write_fail = 0 || |
13551 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
13552 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
13553 | { (exit 1); exit 1; }; } | |
13554 | ||
ad6254c5 AK |
13555 | |
13556 | # configure is writing to config.log, and then calls config.status. | |
13557 | # config.status does its own redirection, appending to config.log. | |
13558 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13559 | # by configure, so config.status won't be able to write to it; its | |
13560 | # output is simply discarded. So we exec the FD to /dev/null, | |
13561 | # effectively closing config.log, so it can be properly (re)opened and | |
13562 | # appended to by config.status. When coming back to configure, we | |
13563 | # need to make the FD available again. | |
13564 | if test "$no_create" != yes; then | |
13565 | ac_cs_success=: | |
13566 | ac_config_status_args= | |
13567 | test "$silent" = yes && | |
13568 | ac_config_status_args="$ac_config_status_args --quiet" | |
13569 | exec 5>/dev/null | |
13570 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13571 | exec 5>>config.log | |
13572 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13573 | # would make configure fail if this is the last instruction. | |
13574 | $ac_cs_success || { (exit 1); exit 1; } | |
13575 | fi | |
ec6a6fbe AK |
13576 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
13577 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13578 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13579 | fi | |
795ca3e5 | 13580 | |
2dc95e1c AK |
13581 | |
13582 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
13583 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13584 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13585 | fi |