]>
Commit | Line | Data |
---|---|---|
1227625a | 1 | #! /bin/sh |
1227625a | 2 | # Guess values for system-dependent variables and create Makefiles. |
7f7d329e | 3 | # Generated by GNU Autoconf 2.60. |
1227625a | 4 | # |
7f7d329e SP |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1227625a SP |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
1daf06b9 SP |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
13 | # Be Bourne compatible | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
cdfe1392 SP |
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
7f7d329e SP |
20 | setopt NO_GLOB_SUBST |
21 | else | |
22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
1daf06b9 | 23 | fi |
7f7d329e | 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
c9e4e868 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
1daf06b9 | 26 | |
7f7d329e SP |
27 | |
28 | # PATH needs CR | |
29 | # Avoid depending upon Character Ranges. | |
30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
33 | as_cr_digits='0123456789' | |
34 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35 | ||
36 | # The user is always right. | |
37 | if test "${PATH_SEPARATOR+set}" != set; then | |
38 | echo "#! /bin/sh" >conf$$.sh | |
39 | echo "exit 0" >>conf$$.sh | |
40 | chmod +x conf$$.sh | |
41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42 | PATH_SEPARATOR=';' | |
43 | else | |
44 | PATH_SEPARATOR=: | |
45 | fi | |
46 | rm -f conf$$.sh | |
47 | fi | |
48 | ||
1daf06b9 | 49 | # Support unset when possible. |
c9e4e868 | 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
1daf06b9 SP |
51 | as_unset=unset |
52 | else | |
53 | as_unset=false | |
54 | fi | |
55 | ||
cdfe1392 | 56 | |
7f7d329e SP |
57 | # IFS |
58 | # We need space, tab and new line, in precisely that order. Quoting is | |
59 | # there to prevent editors from complaining about space-tab. | |
60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
61 | # splitting by setting IFS to empty value.) | |
62 | as_nl=' | |
63 | ' | |
64 | IFS=" "" $as_nl" | |
65 | ||
66 | # Find who we are. Look in the path if we contain no directory separator. | |
67 | case $0 in | |
68 | *[\\/]* ) as_myself=$0 ;; | |
69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
70 | for as_dir in $PATH | |
71 | do | |
72 | IFS=$as_save_IFS | |
73 | test -z "$as_dir" && as_dir=. | |
74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
75 | done | |
76 | IFS=$as_save_IFS | |
77 | ||
78 | ;; | |
79 | esac | |
80 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
81 | # in which case we are not to be found in the path. | |
82 | if test "x$as_myself" = x; then | |
83 | as_myself=$0 | |
84 | fi | |
85 | if test ! -f "$as_myself"; then | |
86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
87 | { (exit 1); exit 1; } | |
88 | fi | |
89 | ||
cdfe1392 | 90 | # Work around bugs in pre-3.0 UWIN ksh. |
7f7d329e SP |
91 | for as_var in ENV MAIL MAILPATH |
92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
93 | done | |
cdfe1392 SP |
94 | PS1='$ ' |
95 | PS2='> ' | |
96 | PS4='+ ' | |
97 | ||
98 | # NLS nuisances. | |
99 | for as_var in \ | |
100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
102 | LC_TELEPHONE LC_TIME | |
103 | do | |
c9e4e868 | 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
cdfe1392 SP |
105 | eval $as_var=C; export $as_var |
106 | else | |
7f7d329e | 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
cdfe1392 SP |
108 | fi |
109 | done | |
110 | ||
111 | # Required to use basename. | |
7f7d329e SP |
112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
cdfe1392 SP |
114 | as_expr=expr |
115 | else | |
116 | as_expr=false | |
117 | fi | |
118 | ||
7f7d329e | 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
cdfe1392 SP |
120 | as_basename=basename |
121 | else | |
122 | as_basename=false | |
123 | fi | |
1daf06b9 SP |
124 | |
125 | ||
126 | # Name of the executable. | |
7f7d329e | 127 | as_me=`$as_basename -- "$0" || |
1daf06b9 SP |
128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
129 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 131 | echo X/"$0" | |
7f7d329e SP |
132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
133 | s//\1/ | |
134 | q | |
135 | } | |
136 | /^X\/\(\/\/\)$/{ | |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\).*/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | s/.*/./; q'` | |
1daf06b9 | 145 | |
7f7d329e SP |
146 | # CDPATH. |
147 | $as_unset CDPATH | |
cdfe1392 | 148 | |
1daf06b9 | 149 | |
7f7d329e SP |
150 | if test "x$CONFIG_SHELL" = x; then |
151 | if (eval ":") 2>/dev/null; then | |
152 | as_have_required=yes | |
153 | else | |
154 | as_have_required=no | |
1daf06b9 SP |
155 | fi |
156 | ||
7f7d329e SP |
157 | if test $as_have_required = yes && (eval ": |
158 | (as_func_return () { | |
159 | (exit \$1) | |
160 | } | |
161 | as_func_success () { | |
162 | as_func_return 0 | |
163 | } | |
164 | as_func_failure () { | |
165 | as_func_return 1 | |
166 | } | |
167 | as_func_ret_success () { | |
168 | return 0 | |
169 | } | |
170 | as_func_ret_failure () { | |
171 | return 1 | |
172 | } | |
1daf06b9 | 173 | |
7f7d329e SP |
174 | exitcode=0 |
175 | if as_func_success; then | |
176 | : | |
177 | else | |
178 | exitcode=1 | |
179 | echo as_func_success failed. | |
180 | fi | |
1daf06b9 | 181 | |
7f7d329e SP |
182 | if as_func_failure; then |
183 | exitcode=1 | |
184 | echo as_func_failure succeeded. | |
185 | fi | |
186 | ||
187 | if as_func_ret_success; then | |
188 | : | |
189 | else | |
190 | exitcode=1 | |
191 | echo as_func_ret_success failed. | |
192 | fi | |
193 | ||
194 | if as_func_ret_failure; then | |
195 | exitcode=1 | |
196 | echo as_func_ret_failure succeeded. | |
197 | fi | |
198 | ||
199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
200 | : | |
201 | else | |
202 | exitcode=1 | |
203 | echo positional parameters were not saved. | |
204 | fi | |
205 | ||
206 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
207 | ||
208 | ( | |
209 | as_lineno_1=\$LINENO | |
210 | as_lineno_2=\$LINENO | |
211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
213 | ") 2> /dev/null; then | |
214 | : | |
215 | else | |
216 | as_candidate_shells= | |
1daf06b9 | 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7f7d329e | 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
1daf06b9 SP |
219 | do |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
7f7d329e | 222 | case $as_dir in |
1daf06b9 | 223 | /*) |
7f7d329e SP |
224 | for as_base in sh bash ksh sh5; do |
225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
226 | done;; | |
227 | esac | |
228 | done | |
229 | IFS=$as_save_IFS | |
230 | ||
231 | ||
232 | for as_shell in $as_candidate_shells $SHELL; do | |
233 | # Try only shells that exist, to save several forks. | |
234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
235 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
236 | # Be Bourne compatible | |
237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
238 | emulate sh | |
239 | NULLCMD=: | |
240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
241 | # is contrary to our usage. Disable this feature. | |
242 | alias -g '${1+"$@"}'='"$@"' | |
243 | setopt NO_GLOB_SUBST | |
244 | else | |
245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
246 | fi | |
247 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
248 | DUALCASE=1; export DUALCASE # for MKS sh | |
249 | ||
250 | : | |
251 | _ASEOF | |
252 | }; then | |
253 | CONFIG_SHELL=$as_shell | |
254 | as_have_required=yes | |
255 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
256 | # Be Bourne compatible | |
257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
258 | emulate sh | |
259 | NULLCMD=: | |
260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
261 | # is contrary to our usage. Disable this feature. | |
262 | alias -g '${1+"$@"}'='"$@"' | |
263 | setopt NO_GLOB_SUBST | |
264 | else | |
265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
266 | fi | |
267 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
268 | DUALCASE=1; export DUALCASE # for MKS sh | |
269 | ||
270 | : | |
271 | (as_func_return () { | |
272 | (exit $1) | |
273 | } | |
274 | as_func_success () { | |
275 | as_func_return 0 | |
276 | } | |
277 | as_func_failure () { | |
278 | as_func_return 1 | |
279 | } | |
280 | as_func_ret_success () { | |
281 | return 0 | |
282 | } | |
283 | as_func_ret_failure () { | |
284 | return 1 | |
285 | } | |
286 | ||
287 | exitcode=0 | |
288 | if as_func_success; then | |
289 | : | |
290 | else | |
291 | exitcode=1 | |
292 | echo as_func_success failed. | |
293 | fi | |
294 | ||
295 | if as_func_failure; then | |
296 | exitcode=1 | |
297 | echo as_func_failure succeeded. | |
298 | fi | |
299 | ||
300 | if as_func_ret_success; then | |
301 | : | |
302 | else | |
303 | exitcode=1 | |
304 | echo as_func_ret_success failed. | |
305 | fi | |
306 | ||
307 | if as_func_ret_failure; then | |
308 | exitcode=1 | |
309 | echo as_func_ret_failure succeeded. | |
310 | fi | |
311 | ||
312 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
313 | : | |
314 | else | |
315 | exitcode=1 | |
316 | echo positional parameters were not saved. | |
317 | fi | |
318 | ||
319 | test $exitcode = 0) || { (exit 1); exit 1; } | |
320 | ||
321 | ( | |
1daf06b9 SP |
322 | as_lineno_1=$LINENO |
323 | as_lineno_2=$LINENO | |
1daf06b9 | 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7f7d329e SP |
325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
326 | ||
327 | _ASEOF | |
328 | }; then | |
329 | break | |
330 | fi | |
331 | ||
332 | fi | |
333 | ||
334 | done | |
335 | ||
336 | if test "x$CONFIG_SHELL" != x; then | |
337 | for as_var in BASH_ENV ENV | |
338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
339 | done | |
340 | export CONFIG_SHELL | |
341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
342 | fi | |
343 | ||
344 | ||
345 | if test $as_have_required = no; then | |
346 | echo This script requires a shell more modern than all the | |
347 | echo shells that I found on your system. Please install a | |
348 | echo modern shell, or manually run the script under such a | |
349 | echo shell if you do have one. | |
350 | { (exit 1); exit 1; } | |
351 | fi | |
352 | ||
353 | ||
354 | fi | |
355 | ||
356 | fi | |
357 | ||
358 | ||
359 | ||
360 | (eval "as_func_return () { | |
361 | (exit \$1) | |
362 | } | |
363 | as_func_success () { | |
364 | as_func_return 0 | |
365 | } | |
366 | as_func_failure () { | |
367 | as_func_return 1 | |
368 | } | |
369 | as_func_ret_success () { | |
370 | return 0 | |
371 | } | |
372 | as_func_ret_failure () { | |
373 | return 1 | |
374 | } | |
375 | ||
376 | exitcode=0 | |
377 | if as_func_success; then | |
378 | : | |
379 | else | |
380 | exitcode=1 | |
381 | echo as_func_success failed. | |
382 | fi | |
383 | ||
384 | if as_func_failure; then | |
385 | exitcode=1 | |
386 | echo as_func_failure succeeded. | |
387 | fi | |
388 | ||
389 | if as_func_ret_success; then | |
390 | : | |
391 | else | |
392 | exitcode=1 | |
393 | echo as_func_ret_success failed. | |
394 | fi | |
395 | ||
396 | if as_func_ret_failure; then | |
397 | exitcode=1 | |
398 | echo as_func_ret_failure succeeded. | |
399 | fi | |
400 | ||
401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
402 | : | |
403 | else | |
404 | exitcode=1 | |
405 | echo positional parameters were not saved. | |
406 | fi | |
407 | ||
408 | test \$exitcode = 0") || { | |
409 | echo No shell found that supports shell functions. | |
410 | echo Please tell autoconf@gnu.org about your system, | |
411 | echo including any error possibly output before this | |
412 | echo message | |
413 | } | |
414 | ||
415 | ||
416 | ||
417 | as_lineno_1=$LINENO | |
418 | as_lineno_2=$LINENO | |
419 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
1daf06b9 SP |
421 | |
422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
423 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7f7d329e SP |
424 | # line-number line after each line using $LINENO; the second 'sed' |
425 | # does the real work. The second script uses 'N' to pair each | |
426 | # line-number line with the line containing $LINENO, and appends | |
427 | # trailing '-' during substitution so that $LINENO is not a special | |
428 | # case at line end. | |
1daf06b9 | 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7f7d329e SP |
430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
431 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
1daf06b9 | 436 | sed ' |
7f7d329e SP |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
1daf06b9 | 441 | N |
7f7d329e SP |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1daf06b9 | 444 | t loop |
7f7d329e | 445 | s/-\n.*// |
1daf06b9 | 446 | ' >$as_me.lineno && |
7f7d329e | 447 | chmod +x "$as_me.lineno" || |
1daf06b9 SP |
448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
449 | { (exit 1); exit 1; }; } | |
450 | ||
451 | # Don't try to exec as it changes $[0], causing all sort of problems | |
452 | # (the dirname of $[0] is not the place where we might find the | |
7f7d329e SP |
453 | # original and so on. Autoconf is especially sensitive to this). |
454 | . "./$as_me.lineno" | |
1daf06b9 SP |
455 | # Exit status is that of the last command. |
456 | exit | |
457 | } | |
458 | ||
459 | ||
7f7d329e SP |
460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
461 | as_dirname=dirname | |
462 | else | |
463 | as_dirname=false | |
464 | fi | |
465 | ||
466 | ECHO_C= ECHO_N= ECHO_T= | |
467 | case `echo -n x` in | |
468 | -n*) | |
469 | case `echo 'x\c'` in | |
470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
471 | *) ECHO_C='\c';; | |
472 | esac;; | |
473 | *) | |
474 | ECHO_N='-n';; | |
1daf06b9 SP |
475 | esac |
476 | ||
7f7d329e SP |
477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1daf06b9 SP |
479 | as_expr=expr |
480 | else | |
481 | as_expr=false | |
482 | fi | |
483 | ||
484 | rm -f conf$$ conf$$.exe conf$$.file | |
7f7d329e SP |
485 | if test -d conf$$.dir; then |
486 | rm -f conf$$.dir/conf$$.file | |
487 | else | |
488 | rm -f conf$$.dir | |
489 | mkdir conf$$.dir | |
490 | fi | |
1daf06b9 SP |
491 | echo >conf$$.file |
492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7f7d329e SP |
493 | as_ln_s='ln -s' |
494 | # ... but there are two gotchas: | |
495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
497 | # In both cases, we have to default to `cp -p'. | |
498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
1daf06b9 | 499 | as_ln_s='cp -p' |
1daf06b9 SP |
500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
501 | as_ln_s=ln | |
502 | else | |
503 | as_ln_s='cp -p' | |
504 | fi | |
7f7d329e SP |
505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
506 | rmdir conf$$.dir 2>/dev/null | |
1daf06b9 | 507 | |
cdfe1392 SP |
508 | if mkdir -p . 2>/dev/null; then |
509 | as_mkdir_p=: | |
510 | else | |
c9e4e868 | 511 | test -d ./-p && rmdir ./-p |
cdfe1392 SP |
512 | as_mkdir_p=false |
513 | fi | |
514 | ||
7f7d329e SP |
515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
516 | # systems may use methods other than mode bits to determine executability. | |
517 | cat >conf$$.file <<_ASEOF | |
518 | #! /bin/sh | |
519 | exit 0 | |
520 | _ASEOF | |
521 | chmod +x conf$$.file | |
522 | if test -x conf$$.file >/dev/null 2>&1; then | |
523 | as_executable_p="test -x" | |
524 | else | |
525 | as_executable_p=: | |
526 | fi | |
527 | rm -f conf$$.file | |
1daf06b9 SP |
528 | |
529 | # Sed expression to map a string onto a valid CPP name. | |
c9e4e868 | 530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
531 | |
532 | # Sed expression to map a string onto a valid variable name. | |
c9e4e868 | 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
534 | |
535 | ||
1daf06b9 | 536 | |
7f7d329e | 537 | exec 7<&0 </dev/null 6>&1 |
1daf06b9 SP |
538 | |
539 | # Name of the host. | |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
1daf06b9 SP |
544 | # |
545 | # Initializations. | |
546 | # | |
1227625a | 547 | ac_default_prefix=/usr/local |
7f7d329e | 548 | ac_clean_files= |
cdfe1392 | 549 | ac_config_libobj_dir=. |
7f7d329e | 550 | LIBOBJS= |
1daf06b9 SP |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
555 | SHELL=${CONFIG_SHELL-/bin/sh} | |
556 | ||
1daf06b9 SP |
557 | # Identity of this package. |
558 | PACKAGE_NAME= | |
559 | PACKAGE_TARNAME= | |
560 | PACKAGE_VERSION= | |
561 | PACKAGE_STRING= | |
562 | PACKAGE_BUGREPORT= | |
563 | ||
564 | ac_unique_file="dump/dump.h" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
568 | #if HAVE_SYS_TYPES_H | |
569 | # include <sys/types.h> | |
570 | #endif | |
571 | #if HAVE_SYS_STAT_H | |
572 | # include <sys/stat.h> | |
573 | #endif | |
574 | #if STDC_HEADERS | |
575 | # include <stdlib.h> | |
576 | # include <stddef.h> | |
577 | #else | |
578 | # if HAVE_STDLIB_H | |
579 | # include <stdlib.h> | |
580 | # endif | |
581 | #endif | |
582 | #if HAVE_STRING_H | |
583 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
584 | # include <memory.h> | |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
588 | #if HAVE_STRINGS_H | |
589 | # include <strings.h> | |
590 | #endif | |
591 | #if HAVE_INTTYPES_H | |
592 | # include <inttypes.h> | |
7f7d329e SP |
593 | #endif |
594 | #if HAVE_STDINT_H | |
595 | # include <stdint.h> | |
1daf06b9 SP |
596 | #endif |
597 | #if HAVE_UNISTD_H | |
598 | # include <unistd.h> | |
599 | #endif" | |
600 | ||
7f7d329e SP |
601 | ac_subst_vars='SHELL |
602 | PATH_SEPARATOR | |
603 | PACKAGE_NAME | |
604 | PACKAGE_TARNAME | |
605 | PACKAGE_VERSION | |
606 | PACKAGE_STRING | |
607 | PACKAGE_BUGREPORT | |
608 | exec_prefix | |
609 | prefix | |
610 | program_transform_name | |
611 | bindir | |
612 | sbindir | |
613 | libexecdir | |
614 | datarootdir | |
615 | datadir | |
616 | sysconfdir | |
617 | sharedstatedir | |
618 | localstatedir | |
619 | includedir | |
620 | oldincludedir | |
621 | docdir | |
622 | infodir | |
623 | htmldir | |
624 | dvidir | |
625 | pdfdir | |
626 | psdir | |
627 | libdir | |
628 | localedir | |
629 | mandir | |
630 | DEFS | |
631 | ECHO_C | |
632 | ECHO_N | |
633 | ECHO_T | |
634 | LIBS | |
635 | build_alias | |
636 | host_alias | |
637 | target_alias | |
638 | SET_MAKE | |
639 | LN_S | |
640 | CP | |
641 | MV | |
642 | RM | |
643 | AR | |
644 | RANLIB | |
645 | PATCH | |
646 | CC | |
647 | CFLAGS | |
648 | LDFLAGS | |
649 | CPPFLAGS | |
650 | ac_ct_CC | |
651 | EXEEXT | |
652 | OBJEXT | |
653 | INSTALL_PROGRAM | |
654 | INSTALL_SCRIPT | |
655 | INSTALL_DATA | |
656 | CPP | |
657 | GREP | |
658 | EGREP | |
659 | DUMPDEBUG | |
660 | RESTOREDEBUG | |
661 | STATIC | |
662 | RMTDIR | |
663 | ERMT | |
664 | CRYPTO | |
665 | OPTDEFS | |
666 | LTRANSSELINUX | |
667 | CCTRANSSELINUX | |
668 | LD | |
669 | CCOPTS | |
670 | LDOPTS | |
671 | BINOWNER | |
672 | BINGRP | |
673 | BINMODE | |
674 | MANOWNER | |
675 | MANGRP | |
676 | MANMODE | |
677 | DUMPDATESPATH | |
678 | BLKID | |
679 | READLINE | |
680 | ZLIB | |
681 | BZLIB | |
682 | top_builddir | |
683 | LIBOBJS | |
684 | LTLIBOBJS' | |
cdfe1392 | 685 | ac_subst_files='MCONFIG' |
7f7d329e SP |
686 | ac_precious_vars='build_alias |
687 | host_alias | |
688 | target_alias | |
689 | CC | |
690 | CFLAGS | |
691 | LDFLAGS | |
692 | CPPFLAGS | |
693 | CPP' | |
694 | ||
1227625a SP |
695 | |
696 | # Initialize some variables set by options. | |
1daf06b9 SP |
697 | ac_init_help= |
698 | ac_init_version=false | |
1227625a SP |
699 | # The variables have the same names as the options, with |
700 | # dashes changed to underlines. | |
1daf06b9 | 701 | cache_file=/dev/null |
1227625a | 702 | exec_prefix=NONE |
1227625a | 703 | no_create= |
1227625a SP |
704 | no_recursion= |
705 | prefix=NONE | |
706 | program_prefix=NONE | |
707 | program_suffix=NONE | |
708 | program_transform_name=s,x,x, | |
709 | silent= | |
710 | site= | |
711 | srcdir= | |
1227625a SP |
712 | verbose= |
713 | x_includes=NONE | |
714 | x_libraries=NONE | |
1daf06b9 SP |
715 | |
716 | # Installation directory options. | |
717 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
718 | # and all the variables that are supposed to be based on exec_prefix | |
719 | # by default will actually change. | |
720 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7f7d329e | 721 | # (The list follows the same order as the GNU Coding Standards.) |
1227625a SP |
722 | bindir='${exec_prefix}/bin' |
723 | sbindir='${exec_prefix}/sbin' | |
724 | libexecdir='${exec_prefix}/libexec' | |
7f7d329e SP |
725 | datarootdir='${prefix}/share' |
726 | datadir='${datarootdir}' | |
1227625a SP |
727 | sysconfdir='${prefix}/etc' |
728 | sharedstatedir='${prefix}/com' | |
729 | localstatedir='${prefix}/var' | |
1227625a SP |
730 | includedir='${prefix}/include' |
731 | oldincludedir='/usr/include' | |
7f7d329e SP |
732 | docdir='${datarootdir}/doc/${PACKAGE}' |
733 | infodir='${datarootdir}/info' | |
734 | htmldir='${docdir}' | |
735 | dvidir='${docdir}' | |
736 | pdfdir='${docdir}' | |
737 | psdir='${docdir}' | |
738 | libdir='${exec_prefix}/lib' | |
739 | localedir='${datarootdir}/locale' | |
740 | mandir='${datarootdir}/man' | |
1227625a | 741 | |
1227625a | 742 | ac_prev= |
7f7d329e | 743 | ac_dashdash= |
1227625a SP |
744 | for ac_option |
745 | do | |
1227625a SP |
746 | # If the previous option needs an argument, assign it. |
747 | if test -n "$ac_prev"; then | |
7f7d329e | 748 | eval $ac_prev=\$ac_option |
1227625a SP |
749 | ac_prev= |
750 | continue | |
751 | fi | |
752 | ||
7f7d329e SP |
753 | case $ac_option in |
754 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
755 | *) ac_optarg=yes ;; | |
756 | esac | |
1227625a SP |
757 | |
758 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
759 | ||
7f7d329e SP |
760 | case $ac_dashdash$ac_option in |
761 | --) | |
762 | ac_dashdash=yes ;; | |
1227625a SP |
763 | |
764 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
765 | ac_prev=bindir ;; | |
766 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1daf06b9 | 767 | bindir=$ac_optarg ;; |
1227625a SP |
768 | |
769 | -build | --build | --buil | --bui | --bu) | |
1daf06b9 | 770 | ac_prev=build_alias ;; |
1227625a | 771 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1daf06b9 | 772 | build_alias=$ac_optarg ;; |
1227625a SP |
773 | |
774 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
775 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
776 | ac_prev=cache_file ;; | |
777 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
778 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1daf06b9 SP |
779 | cache_file=$ac_optarg ;; |
780 | ||
781 | --config-cache | -C) | |
782 | cache_file=config.cache ;; | |
1227625a | 783 | |
7f7d329e | 784 | -datadir | --datadir | --datadi | --datad) |
1227625a | 785 | ac_prev=datadir ;; |
7f7d329e | 786 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1daf06b9 | 787 | datadir=$ac_optarg ;; |
1227625a | 788 | |
7f7d329e SP |
789 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
790 | | --dataroo | --dataro | --datar) | |
791 | ac_prev=datarootdir ;; | |
792 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
793 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
794 | datarootdir=$ac_optarg ;; | |
795 | ||
1227625a | 796 | -disable-* | --disable-*) |
1daf06b9 | 797 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1227625a | 798 | # Reject names that are not valid shell variable names. |
1daf06b9 SP |
799 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
800 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
801 | { (exit 1); exit 1; }; } | |
802 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
7f7d329e SP |
803 | eval enable_$ac_feature=no ;; |
804 | ||
805 | -docdir | --docdir | --docdi | --doc | --do) | |
806 | ac_prev=docdir ;; | |
807 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
808 | docdir=$ac_optarg ;; | |
809 | ||
810 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
811 | ac_prev=dvidir ;; | |
812 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
813 | dvidir=$ac_optarg ;; | |
1227625a SP |
814 | |
815 | -enable-* | --enable-*) | |
1daf06b9 | 816 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1227625a | 817 | # Reject names that are not valid shell variable names. |
1daf06b9 SP |
818 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
819 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
820 | { (exit 1); exit 1; }; } | |
821 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
7f7d329e | 822 | eval enable_$ac_feature=\$ac_optarg ;; |
1227625a SP |
823 | |
824 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
825 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
826 | | --exec | --exe | --ex) | |
827 | ac_prev=exec_prefix ;; | |
828 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
829 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
830 | | --exec=* | --exe=* | --ex=*) | |
1daf06b9 | 831 | exec_prefix=$ac_optarg ;; |
1227625a SP |
832 | |
833 | -gas | --gas | --ga | --g) | |
834 | # Obsolete; use --with-gas. | |
835 | with_gas=yes ;; | |
836 | ||
1daf06b9 SP |
837 | -help | --help | --hel | --he | -h) |
838 | ac_init_help=long ;; | |
839 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
840 | ac_init_help=recursive ;; | |
841 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
842 | ac_init_help=short ;; | |
1227625a SP |
843 | |
844 | -host | --host | --hos | --ho) | |
1daf06b9 | 845 | ac_prev=host_alias ;; |
1227625a | 846 | -host=* | --host=* | --hos=* | --ho=*) |
1daf06b9 | 847 | host_alias=$ac_optarg ;; |
1227625a | 848 | |
7f7d329e SP |
849 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
850 | ac_prev=htmldir ;; | |
851 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
852 | | --ht=*) | |
853 | htmldir=$ac_optarg ;; | |
854 | ||
1227625a SP |
855 | -includedir | --includedir | --includedi | --included | --include \ |
856 | | --includ | --inclu | --incl | --inc) | |
857 | ac_prev=includedir ;; | |
858 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
859 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1daf06b9 | 860 | includedir=$ac_optarg ;; |
1227625a SP |
861 | |
862 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
863 | ac_prev=infodir ;; | |
864 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1daf06b9 | 865 | infodir=$ac_optarg ;; |
1227625a SP |
866 | |
867 | -libdir | --libdir | --libdi | --libd) | |
868 | ac_prev=libdir ;; | |
869 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1daf06b9 | 870 | libdir=$ac_optarg ;; |
1227625a SP |
871 | |
872 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
873 | | --libexe | --libex | --libe) | |
874 | ac_prev=libexecdir ;; | |
875 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
876 | | --libexe=* | --libex=* | --libe=*) | |
1daf06b9 | 877 | libexecdir=$ac_optarg ;; |
1227625a | 878 | |
7f7d329e SP |
879 | -localedir | --localedir | --localedi | --localed | --locale) |
880 | ac_prev=localedir ;; | |
881 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
882 | localedir=$ac_optarg ;; | |
883 | ||
1227625a | 884 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7f7d329e | 885 | | --localstate | --localstat | --localsta | --localst | --locals) |
1227625a SP |
886 | ac_prev=localstatedir ;; |
887 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7f7d329e | 888 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1daf06b9 | 889 | localstatedir=$ac_optarg ;; |
1227625a SP |
890 | |
891 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
892 | ac_prev=mandir ;; | |
893 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1daf06b9 | 894 | mandir=$ac_optarg ;; |
1227625a SP |
895 | |
896 | -nfp | --nfp | --nf) | |
897 | # Obsolete; use --without-fp. | |
898 | with_fp=no ;; | |
899 | ||
900 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1daf06b9 | 901 | | --no-cr | --no-c | -n) |
1227625a SP |
902 | no_create=yes ;; |
903 | ||
904 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
905 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
906 | no_recursion=yes ;; | |
907 | ||
908 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
909 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
910 | | --oldin | --oldi | --old | --ol | --o) | |
911 | ac_prev=oldincludedir ;; | |
912 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
913 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
914 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1daf06b9 | 915 | oldincludedir=$ac_optarg ;; |
1227625a SP |
916 | |
917 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
918 | ac_prev=prefix ;; | |
919 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1daf06b9 | 920 | prefix=$ac_optarg ;; |
1227625a SP |
921 | |
922 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
923 | | --program-pre | --program-pr | --program-p) | |
924 | ac_prev=program_prefix ;; | |
925 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
926 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1daf06b9 | 927 | program_prefix=$ac_optarg ;; |
1227625a SP |
928 | |
929 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
930 | | --program-suf | --program-su | --program-s) | |
931 | ac_prev=program_suffix ;; | |
932 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
933 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1daf06b9 | 934 | program_suffix=$ac_optarg ;; |
1227625a SP |
935 | |
936 | -program-transform-name | --program-transform-name \ | |
937 | | --program-transform-nam | --program-transform-na \ | |
938 | | --program-transform-n | --program-transform- \ | |
939 | | --program-transform | --program-transfor \ | |
940 | | --program-transfo | --program-transf \ | |
941 | | --program-trans | --program-tran \ | |
942 | | --progr-tra | --program-tr | --program-t) | |
943 | ac_prev=program_transform_name ;; | |
944 | -program-transform-name=* | --program-transform-name=* \ | |
945 | | --program-transform-nam=* | --program-transform-na=* \ | |
946 | | --program-transform-n=* | --program-transform-=* \ | |
947 | | --program-transform=* | --program-transfor=* \ | |
948 | | --program-transfo=* | --program-transf=* \ | |
949 | | --program-trans=* | --program-tran=* \ | |
950 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1daf06b9 | 951 | program_transform_name=$ac_optarg ;; |
1227625a | 952 | |
7f7d329e SP |
953 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
954 | ac_prev=pdfdir ;; | |
955 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
956 | pdfdir=$ac_optarg ;; | |
957 | ||
958 | -psdir | --psdir | --psdi | --psd | --ps) | |
959 | ac_prev=psdir ;; | |
960 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
961 | psdir=$ac_optarg ;; | |
962 | ||
1227625a SP |
963 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
964 | | -silent | --silent | --silen | --sile | --sil) | |
965 | silent=yes ;; | |
966 | ||
967 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
968 | ac_prev=sbindir ;; | |
969 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
970 | | --sbi=* | --sb=*) | |
1daf06b9 | 971 | sbindir=$ac_optarg ;; |
1227625a SP |
972 | |
973 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
974 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
975 | | --sharedst | --shareds | --shared | --share | --shar \ | |
976 | | --sha | --sh) | |
977 | ac_prev=sharedstatedir ;; | |
978 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
979 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
980 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
981 | | --sha=* | --sh=*) | |
1daf06b9 | 982 | sharedstatedir=$ac_optarg ;; |
1227625a SP |
983 | |
984 | -site | --site | --sit) | |
985 | ac_prev=site ;; | |
986 | -site=* | --site=* | --sit=*) | |
1daf06b9 | 987 | site=$ac_optarg ;; |
1227625a SP |
988 | |
989 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
990 | ac_prev=srcdir ;; | |
991 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1daf06b9 | 992 | srcdir=$ac_optarg ;; |
1227625a SP |
993 | |
994 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
995 | | --syscon | --sysco | --sysc | --sys | --sy) | |
996 | ac_prev=sysconfdir ;; | |
997 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
998 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1daf06b9 | 999 | sysconfdir=$ac_optarg ;; |
1227625a SP |
1000 | |
1001 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1daf06b9 | 1002 | ac_prev=target_alias ;; |
1227625a | 1003 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1daf06b9 | 1004 | target_alias=$ac_optarg ;; |
1227625a SP |
1005 | |
1006 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1007 | verbose=yes ;; | |
1008 | ||
1daf06b9 SP |
1009 | -version | --version | --versio | --versi | --vers | -V) |
1010 | ac_init_version=: ;; | |
1227625a SP |
1011 | |
1012 | -with-* | --with-*) | |
1daf06b9 | 1013 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1227625a | 1014 | # Reject names that are not valid shell variable names. |
1daf06b9 SP |
1015 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1016 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1017 | { (exit 1); exit 1; }; } | |
1227625a | 1018 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
7f7d329e | 1019 | eval with_$ac_package=\$ac_optarg ;; |
1227625a SP |
1020 | |
1021 | -without-* | --without-*) | |
1daf06b9 | 1022 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1227625a | 1023 | # Reject names that are not valid shell variable names. |
1daf06b9 SP |
1024 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1025 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1026 | { (exit 1); exit 1; }; } | |
1027 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
7f7d329e | 1028 | eval with_$ac_package=no ;; |
1227625a SP |
1029 | |
1030 | --x) | |
1031 | # Obsolete; use --with-x. | |
1032 | with_x=yes ;; | |
1033 | ||
1034 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1035 | | --x-incl | --x-inc | --x-in | --x-i) | |
1036 | ac_prev=x_includes ;; | |
1037 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1038 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1daf06b9 | 1039 | x_includes=$ac_optarg ;; |
1227625a SP |
1040 | |
1041 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1042 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1043 | ac_prev=x_libraries ;; | |
1044 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1045 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1daf06b9 | 1046 | x_libraries=$ac_optarg ;; |
1227625a | 1047 | |
1daf06b9 SP |
1048 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1049 | Try \`$0 --help' for more information." >&2 | |
1050 | { (exit 1); exit 1; }; } | |
1227625a SP |
1051 | ;; |
1052 | ||
1daf06b9 SP |
1053 | *=*) |
1054 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1055 | # Reject names that are not valid shell variable names. | |
1056 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1057 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1058 | { (exit 1); exit 1; }; } | |
7f7d329e | 1059 | eval $ac_envvar=\$ac_optarg |
1daf06b9 SP |
1060 | export $ac_envvar ;; |
1061 | ||
1227625a | 1062 | *) |
1daf06b9 SP |
1063 | # FIXME: should be removed in autoconf 3.0. |
1064 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1065 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1066 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1067 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1227625a SP |
1068 | ;; |
1069 | ||
1070 | esac | |
1071 | done | |
1072 | ||
1073 | if test -n "$ac_prev"; then | |
1daf06b9 SP |
1074 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1075 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1076 | { (exit 1); exit 1; }; } | |
1227625a | 1077 | fi |
1227625a | 1078 | |
7f7d329e SP |
1079 | # Be sure to have absolute directory names. |
1080 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1081 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1082 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1083 | libdir localedir mandir | |
1227625a | 1084 | do |
7f7d329e | 1085 | eval ac_val=\$$ac_var |
1daf06b9 | 1086 | case $ac_val in |
7f7d329e SP |
1087 | [\\/$]* | ?:[\\/]* ) continue;; |
1088 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1227625a | 1089 | esac |
7f7d329e SP |
1090 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1091 | { (exit 1); exit 1; }; } | |
1227625a SP |
1092 | done |
1093 | ||
1daf06b9 SP |
1094 | # There might be people who depend on the old broken behavior: `$host' |
1095 | # used to hold the argument of --host etc. | |
1096 | # FIXME: To remove some day. | |
1097 | build=$build_alias | |
1098 | host=$host_alias | |
1099 | target=$target_alias | |
1100 | ||
1101 | # FIXME: To remove some day. | |
1102 | if test "x$host_alias" != x; then | |
1103 | if test "x$build_alias" = x; then | |
1104 | cross_compiling=maybe | |
1105 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1106 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1107 | elif test "x$build_alias" != "x$host_alias"; then | |
1108 | cross_compiling=yes | |
1109 | fi | |
1110 | fi | |
1227625a | 1111 | |
1daf06b9 SP |
1112 | ac_tool_prefix= |
1113 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1114 | ||
1115 | test "$silent" = yes && exec 6>/dev/null | |
1227625a | 1116 | |
1227625a | 1117 | |
7f7d329e SP |
1118 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1119 | ac_ls_di=`ls -di .` && | |
1120 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1121 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1122 | { (exit 1); exit 1; }; } | |
1123 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1124 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1125 | { (exit 1); exit 1; }; } | |
1126 | ||
1127 | ||
1227625a SP |
1128 | # Find the source files, if location was not specified. |
1129 | if test -z "$srcdir"; then | |
1130 | ac_srcdir_defaulted=yes | |
7f7d329e SP |
1131 | # Try the directory containing this script, then the parent directory. |
1132 | ac_confdir=`$as_dirname -- "$0" || | |
1daf06b9 | 1133 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
1134 | X"$0" : 'X\(//\)[^/]' \| \ |
1135 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 1136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 1137 | echo X"$0" | |
7f7d329e SP |
1138 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1139 | s//\1/ | |
1140 | q | |
1141 | } | |
1142 | /^X\(\/\/\)[^/].*/{ | |
1143 | s//\1/ | |
1144 | q | |
1145 | } | |
1146 | /^X\(\/\/\)$/{ | |
1147 | s//\1/ | |
1148 | q | |
1149 | } | |
1150 | /^X\(\/\).*/{ | |
1151 | s//\1/ | |
1152 | q | |
1153 | } | |
1154 | s/.*/./; q'` | |
1227625a | 1155 | srcdir=$ac_confdir |
7f7d329e | 1156 | if test ! -r "$srcdir/$ac_unique_file"; then |
1227625a SP |
1157 | srcdir=.. |
1158 | fi | |
1159 | else | |
1160 | ac_srcdir_defaulted=no | |
1161 | fi | |
7f7d329e SP |
1162 | if test ! -r "$srcdir/$ac_unique_file"; then |
1163 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1164 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1daf06b9 | 1165 | { (exit 1); exit 1; }; } |
1227625a | 1166 | fi |
7f7d329e SP |
1167 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1168 | ac_abs_confdir=`( | |
1169 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
cdfe1392 | 1170 | { (exit 1); exit 1; }; } |
7f7d329e SP |
1171 | pwd)` |
1172 | # When building in place, set srcdir=. | |
1173 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1174 | srcdir=. | |
1175 | fi | |
1176 | # Remove unnecessary trailing slashes from srcdir. | |
1177 | # Double slashes in file names in object file debugging info | |
1178 | # mess up M-x gdb in Emacs. | |
1179 | case $srcdir in | |
1180 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1181 | esac | |
1182 | for ac_var in $ac_precious_vars; do | |
1183 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1184 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1185 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1186 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1187 | done | |
1daf06b9 SP |
1188 | |
1189 | # | |
1190 | # Report the --help message. | |
1191 | # | |
1192 | if test "$ac_init_help" = "long"; then | |
1193 | # Omit some internal or obsolete options to make the list less imposing. | |
1194 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1195 | cat <<_ACEOF | |
1196 | \`configure' configures this package to adapt to many kinds of systems. | |
1197 | ||
1198 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1199 | ||
1200 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1201 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1202 | ||
1203 | Defaults for the options are specified in brackets. | |
1204 | ||
1205 | Configuration: | |
1206 | -h, --help display this help and exit | |
1207 | --help=short display options specific to this package | |
1208 | --help=recursive display the short help of all the included packages | |
1209 | -V, --version display version information and exit | |
1210 | -q, --quiet, --silent do not print \`checking...' messages | |
1211 | --cache-file=FILE cache test results in FILE [disabled] | |
1212 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1213 | -n, --no-create do not create output files | |
1214 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1215 | ||
1daf06b9 SP |
1216 | Installation directories: |
1217 | --prefix=PREFIX install architecture-independent files in PREFIX | |
c9e4e868 | 1218 | [$ac_default_prefix] |
1daf06b9 | 1219 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
c9e4e868 | 1220 | [PREFIX] |
1daf06b9 SP |
1221 | |
1222 | By default, \`make install' will install all the files in | |
1223 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1224 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1225 | for instance \`--prefix=\$HOME'. | |
1226 | ||
1227 | For better control, use the options below. | |
1228 | ||
1229 | Fine tuning of the installation directories: | |
1230 | --bindir=DIR user executables [EPREFIX/bin] | |
1231 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1232 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1daf06b9 SP |
1233 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1234 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1235 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1236 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1237 | --includedir=DIR C header files [PREFIX/include] | |
1238 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7f7d329e SP |
1239 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1240 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1241 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1242 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1243 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1244 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1245 | --htmldir=DIR html documentation [DOCDIR] | |
1246 | --dvidir=DIR dvi documentation [DOCDIR] | |
1247 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1248 | --psdir=DIR ps documentation [DOCDIR] | |
1daf06b9 SP |
1249 | _ACEOF |
1250 | ||
1251 | cat <<\_ACEOF | |
1252 | _ACEOF | |
1253 | fi | |
1254 | ||
1255 | if test -n "$ac_init_help"; then | |
1256 | ||
1257 | cat <<\_ACEOF | |
1258 | ||
1259 | Optional Features: | |
1260 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1261 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1262 | --enable-debug include debugging code (default is NO) | |
1263 | --enable-static link dump and restore statically (default is NO) | |
d7783603 | 1264 | --enable-staticz link libz and libbz2 statically (default is NO) |
1daf06b9 | 1265 | --enable-rmt compile and install rmt (default is YES) |
cdfe1392 | 1266 | --enable-ermt compile ermt, an encrypting version of rmt (default is NO) |
1daf06b9 SP |
1267 | --enable-kerberos compile kerberos extensions (default is NO) |
1268 | --enable-readline enable readline support in restore (default is YES) | |
1269 | --enable-oldstylefscript enable old style F script (no arguments) (default is NO) | |
1270 | --enable-largefile enable Large File System support (default is YES) | |
1271 | --enable-qfa enable Quick File Access support (default is YES) | |
1272 | --enable-qfadebug include Quick File Access debugging code (default is NO) | |
d1925e0c | 1273 | --enable-macosx include Mac OSX restore compatibility (default is NO) |
7f7d329e | 1274 | --enable-transselinux restore can translate SELinux EAs (default is YES) |
1daf06b9 SP |
1275 | |
1276 | Optional Packages: | |
1277 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1278 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1279 | --with-cc=COMPILER select compiler to use | |
1280 | --with-linker=LINKER select linker to use | |
1281 | --with-ccopts=CCOPTS select compiler command line options | |
1282 | --with-ldopts=LDOPTS select linker command line options | |
1283 | --with-binowner=USER select owner for binaries | |
1284 | --with-bingrp=GROUP select group for binaries | |
1285 | --with-binmode=MODE select mode for binaries | |
1286 | --with-manowner=USER select owner for manual pages | |
1287 | --with-mangrp=GROUP select group for manual pages | |
1288 | --with-manmode=MODE select mode for manual pages | |
1289 | --with-dumpdatespath=PATH select path for dumpdates file | |
1290 | ||
1291 | Some influential environment variables: | |
1292 | CC C compiler command | |
1293 | CFLAGS C compiler flags | |
1294 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1295 | nonstandard directory <lib dir> | |
7f7d329e SP |
1296 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1297 | you have headers in a nonstandard directory <include dir> | |
1daf06b9 SP |
1298 | CPP C preprocessor |
1299 | ||
1300 | Use these variables to override the choices made by `configure' or to help | |
1301 | it to find libraries and programs with nonstandard names/locations. | |
1302 | ||
1303 | _ACEOF | |
7f7d329e | 1304 | ac_status=$? |
1daf06b9 SP |
1305 | fi |
1306 | ||
1307 | if test "$ac_init_help" = "recursive"; then | |
1308 | # If there are subdirs, report their specific --help. | |
1daf06b9 | 1309 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7f7d329e | 1310 | test -d "$ac_dir" || continue |
1daf06b9 SP |
1311 | ac_builddir=. |
1312 | ||
7f7d329e SP |
1313 | case "$ac_dir" in |
1314 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1315 | *) | |
1daf06b9 | 1316 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7f7d329e SP |
1317 | # A ".." for each directory in $ac_dir_suffix. |
1318 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1319 | case $ac_top_builddir_sub in | |
1320 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1321 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1322 | esac ;; | |
1323 | esac | |
1324 | ac_abs_top_builddir=$ac_pwd | |
1325 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1326 | # for backward compatibility: | |
1327 | ac_top_builddir=$ac_top_build_prefix | |
1daf06b9 SP |
1328 | |
1329 | case $srcdir in | |
7f7d329e | 1330 | .) # We are building in place. |
1daf06b9 | 1331 | ac_srcdir=. |
7f7d329e SP |
1332 | ac_top_srcdir=$ac_top_builddir_sub |
1333 | ac_abs_top_srcdir=$ac_pwd ;; | |
1334 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1daf06b9 | 1335 | ac_srcdir=$srcdir$ac_dir_suffix; |
7f7d329e SP |
1336 | ac_top_srcdir=$srcdir |
1337 | ac_abs_top_srcdir=$srcdir ;; | |
1338 | *) # Relative name. | |
1339 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1340 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1341 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c9e4e868 | 1342 | esac |
7f7d329e SP |
1343 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1344 | ||
1345 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1346 | # Check for guested configure. | |
1347 | if test -f "$ac_srcdir/configure.gnu"; then | |
1348 | echo && | |
1349 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1350 | elif test -f "$ac_srcdir/configure"; then | |
1351 | echo && | |
1352 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1daf06b9 SP |
1353 | else |
1354 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
7f7d329e SP |
1355 | fi || ac_status=$? |
1356 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1daf06b9 SP |
1357 | done |
1358 | fi | |
1359 | ||
7f7d329e | 1360 | test -n "$ac_init_help" && exit $ac_status |
1daf06b9 SP |
1361 | if $ac_init_version; then |
1362 | cat <<\_ACEOF | |
7f7d329e SP |
1363 | configure |
1364 | generated by GNU Autoconf 2.60 | |
1daf06b9 | 1365 | |
7f7d329e SP |
1366 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1367 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1daf06b9 SP |
1368 | This configure script is free software; the Free Software Foundation |
1369 | gives unlimited permission to copy, distribute and modify it. | |
1370 | _ACEOF | |
7f7d329e | 1371 | exit |
1daf06b9 | 1372 | fi |
7f7d329e | 1373 | cat >config.log <<_ACEOF |
1daf06b9 SP |
1374 | This file contains any messages produced by compilers while |
1375 | running configure, to aid debugging if configure makes a mistake. | |
1376 | ||
1377 | It was created by $as_me, which was | |
7f7d329e | 1378 | generated by GNU Autoconf 2.60. Invocation command line was |
1daf06b9 SP |
1379 | |
1380 | $ $0 $@ | |
1381 | ||
1382 | _ACEOF | |
7f7d329e | 1383 | exec 5>>config.log |
1daf06b9 SP |
1384 | { |
1385 | cat <<_ASUNAME | |
1386 | ## --------- ## | |
1387 | ## Platform. ## | |
1388 | ## --------- ## | |
1389 | ||
1390 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1391 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1392 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1393 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1394 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1395 | ||
1396 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1397 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1398 | ||
1399 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1400 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1401 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7f7d329e | 1402 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1daf06b9 SP |
1403 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1404 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1405 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1406 | ||
1407 | _ASUNAME | |
1408 | ||
1409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1410 | for as_dir in $PATH | |
1411 | do | |
1412 | IFS=$as_save_IFS | |
1413 | test -z "$as_dir" && as_dir=. | |
1414 | echo "PATH: $as_dir" | |
1415 | done | |
7f7d329e | 1416 | IFS=$as_save_IFS |
1daf06b9 SP |
1417 | |
1418 | } >&5 | |
1419 | ||
1420 | cat >&5 <<_ACEOF | |
1421 | ||
1422 | ||
1423 | ## ----------- ## | |
1424 | ## Core tests. ## | |
1425 | ## ----------- ## | |
1426 | ||
1427 | _ACEOF | |
1428 | ||
1429 | ||
1430 | # Keep a trace of the command line. | |
1431 | # Strip out --no-create and --no-recursion so they do not pile up. | |
cdfe1392 | 1432 | # Strip out --silent because we don't want to record it for future runs. |
1daf06b9 | 1433 | # Also quote any args containing shell meta-characters. |
cdfe1392 | 1434 | # Make two passes to allow for proper duplicate-argument suppression. |
1daf06b9 | 1435 | ac_configure_args= |
cdfe1392 SP |
1436 | ac_configure_args0= |
1437 | ac_configure_args1= | |
cdfe1392 SP |
1438 | ac_must_keep_next=false |
1439 | for ac_pass in 1 2 | |
1daf06b9 | 1440 | do |
cdfe1392 SP |
1441 | for ac_arg |
1442 | do | |
1443 | case $ac_arg in | |
1444 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1445 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1446 | | -silent | --silent | --silen | --sile | --sil) | |
1447 | continue ;; | |
7f7d329e | 1448 | *\'*) |
cdfe1392 SP |
1449 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1450 | esac | |
1451 | case $ac_pass in | |
1452 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1453 | 2) | |
1454 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1455 | if test $ac_must_keep_next = true; then | |
c9e4e868 | 1456 | ac_must_keep_next=false # Got value, back to normal. |
cdfe1392 | 1457 | else |
c9e4e868 SP |
1458 | case $ac_arg in |
1459 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1460 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1461 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1462 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1463 | case "$ac_configure_args0 " in | |
1464 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1465 | esac | |
1466 | ;; | |
1467 | -* ) ac_must_keep_next=true ;; | |
1468 | esac | |
cdfe1392 | 1469 | fi |
7f7d329e | 1470 | ac_configure_args="$ac_configure_args '$ac_arg'" |
cdfe1392 SP |
1471 | ;; |
1472 | esac | |
1473 | done | |
1daf06b9 | 1474 | done |
cdfe1392 SP |
1475 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1476 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1daf06b9 SP |
1477 | |
1478 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1479 | # config.log. We remove comments because anyway the quotes in there | |
1480 | # would cause problems or look ugly. | |
7f7d329e SP |
1481 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1482 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1daf06b9 SP |
1483 | trap 'exit_status=$? |
1484 | # Save into config.log some information that might help in debugging. | |
1485 | { | |
1486 | echo | |
cdfe1392 | 1487 | |
1daf06b9 SP |
1488 | cat <<\_ASBOX |
1489 | ## ---------------- ## | |
1490 | ## Cache variables. ## | |
1491 | ## ---------------- ## | |
1492 | _ASBOX | |
1493 | echo | |
1494 | # The following way of writing the cache mishandles newlines in values, | |
7f7d329e SP |
1495 | ( |
1496 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1497 | eval ac_val=\$$ac_var | |
1498 | case $ac_val in #( | |
1499 | *${as_nl}*) | |
1500 | case $ac_var in #( | |
1501 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1502 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1503 | esac | |
1504 | case $ac_var in #( | |
1505 | _ | IFS | as_nl) ;; #( | |
1506 | *) $as_unset $ac_var ;; | |
1507 | esac ;; | |
1508 | esac | |
1509 | done | |
1daf06b9 | 1510 | (set) 2>&1 | |
7f7d329e SP |
1511 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1512 | *${as_nl}ac_space=\ *) | |
1daf06b9 | 1513 | sed -n \ |
7f7d329e SP |
1514 | "s/'\''/'\''\\\\'\'''\''/g; |
1515 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1516 | ;; #( | |
1daf06b9 | 1517 | *) |
7f7d329e | 1518 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1daf06b9 | 1519 | ;; |
7f7d329e SP |
1520 | esac | |
1521 | sort | |
1522 | ) | |
1daf06b9 | 1523 | echo |
cdfe1392 SP |
1524 | |
1525 | cat <<\_ASBOX | |
1526 | ## ----------------- ## | |
1527 | ## Output variables. ## | |
1528 | ## ----------------- ## | |
1529 | _ASBOX | |
1530 | echo | |
1531 | for ac_var in $ac_subst_vars | |
1532 | do | |
7f7d329e SP |
1533 | eval ac_val=\$$ac_var |
1534 | case $ac_val in | |
1535 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1536 | esac | |
1537 | echo "$ac_var='\''$ac_val'\''" | |
cdfe1392 SP |
1538 | done | sort |
1539 | echo | |
1540 | ||
1541 | if test -n "$ac_subst_files"; then | |
1542 | cat <<\_ASBOX | |
7f7d329e SP |
1543 | ## ------------------- ## |
1544 | ## File substitutions. ## | |
1545 | ## ------------------- ## | |
cdfe1392 SP |
1546 | _ASBOX |
1547 | echo | |
1548 | for ac_var in $ac_subst_files | |
1549 | do | |
7f7d329e SP |
1550 | eval ac_val=\$$ac_var |
1551 | case $ac_val in | |
1552 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1553 | esac | |
1554 | echo "$ac_var='\''$ac_val'\''" | |
cdfe1392 SP |
1555 | done | sort |
1556 | echo | |
1557 | fi | |
1558 | ||
1daf06b9 SP |
1559 | if test -s confdefs.h; then |
1560 | cat <<\_ASBOX | |
1561 | ## ----------- ## | |
1562 | ## confdefs.h. ## | |
1563 | ## ----------- ## | |
1564 | _ASBOX | |
1565 | echo | |
7f7d329e | 1566 | cat confdefs.h |
1daf06b9 SP |
1567 | echo |
1568 | fi | |
1569 | test "$ac_signal" != 0 && | |
1570 | echo "$as_me: caught signal $ac_signal" | |
1571 | echo "$as_me: exit $exit_status" | |
1572 | } >&5 | |
7f7d329e SP |
1573 | rm -f core *.core core.conftest.* && |
1574 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1daf06b9 | 1575 | exit $exit_status |
7f7d329e | 1576 | ' 0 |
1daf06b9 SP |
1577 | for ac_signal in 1 2 13 15; do |
1578 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1579 | done | |
1580 | ac_signal=0 | |
1227625a | 1581 | |
1daf06b9 | 1582 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
7f7d329e | 1583 | rm -f -r conftest* confdefs.h |
1daf06b9 SP |
1584 | |
1585 | # Predefined preprocessor variables. | |
1586 | ||
1587 | cat >>confdefs.h <<_ACEOF | |
1588 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1589 | _ACEOF | |
1590 | ||
1591 | ||
1592 | cat >>confdefs.h <<_ACEOF | |
1593 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1594 | _ACEOF | |
1595 | ||
1596 | ||
1597 | cat >>confdefs.h <<_ACEOF | |
1598 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1599 | _ACEOF | |
1600 | ||
1601 | ||
1602 | cat >>confdefs.h <<_ACEOF | |
1603 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1604 | _ACEOF | |
1605 | ||
1606 | ||
1607 | cat >>confdefs.h <<_ACEOF | |
1608 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1609 | _ACEOF | |
1610 | ||
1611 | ||
1612 | # Let the site file select an alternate cache file if it wants to. | |
1227625a | 1613 | # Prefer explicitly selected file to automatically selected ones. |
7f7d329e SP |
1614 | if test -n "$CONFIG_SITE"; then |
1615 | set x "$CONFIG_SITE" | |
1616 | elif test "x$prefix" != xNONE; then | |
1617 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1618 | else | |
1619 | set x "$ac_default_prefix/share/config.site" \ | |
1620 | "$ac_default_prefix/etc/config.site" | |
1227625a | 1621 | fi |
7f7d329e SP |
1622 | shift |
1623 | for ac_site_file | |
1624 | do | |
1227625a | 1625 | if test -r "$ac_site_file"; then |
1daf06b9 SP |
1626 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1627 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1628 | sed 's/^/| /' "$ac_site_file" >&5 | |
1227625a SP |
1629 | . "$ac_site_file" |
1630 | fi | |
1631 | done | |
1632 | ||
1633 | if test -r "$cache_file"; then | |
1daf06b9 SP |
1634 | # Some versions of bash will fail to source /dev/null (special |
1635 | # files actually), so we avoid doing that. | |
1636 | if test -f "$cache_file"; then | |
1637 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1638 | echo "$as_me: loading cache $cache_file" >&6;} | |
1639 | case $cache_file in | |
7f7d329e SP |
1640 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1641 | *) . "./$cache_file";; | |
1daf06b9 SP |
1642 | esac |
1643 | fi | |
1227625a | 1644 | else |
1daf06b9 SP |
1645 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1646 | echo "$as_me: creating cache $cache_file" >&6;} | |
1647 | >$cache_file | |
1648 | fi | |
1649 | ||
1650 | # Check that the precious variables saved in the cache have kept the same | |
1651 | # value. | |
1652 | ac_cache_corrupted=false | |
7f7d329e | 1653 | for ac_var in $ac_precious_vars; do |
1daf06b9 SP |
1654 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1655 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7f7d329e SP |
1656 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1657 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1daf06b9 SP |
1658 | case $ac_old_set,$ac_new_set in |
1659 | set,) | |
1660 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1661 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1662 | ac_cache_corrupted=: ;; | |
1663 | ,set) | |
1664 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1665 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1666 | ac_cache_corrupted=: ;; | |
1667 | ,);; | |
1668 | *) | |
1669 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
c9e4e868 | 1670 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1daf06b9 | 1671 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
c9e4e868 | 1672 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1daf06b9 | 1673 | echo "$as_me: former value: $ac_old_val" >&2;} |
c9e4e868 | 1674 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1daf06b9 | 1675 | echo "$as_me: current value: $ac_new_val" >&2;} |
c9e4e868 | 1676 | ac_cache_corrupted=: |
1daf06b9 SP |
1677 | fi;; |
1678 | esac | |
1679 | # Pass precious variables to config.status. | |
1680 | if test "$ac_new_set" = set; then | |
1681 | case $ac_new_val in | |
7f7d329e | 1682 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1daf06b9 SP |
1683 | *) ac_arg=$ac_var=$ac_new_val ;; |
1684 | esac | |
1685 | case " $ac_configure_args " in | |
1686 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1687 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1688 | esac | |
1689 | fi | |
1690 | done | |
1691 | if $ac_cache_corrupted; then | |
1692 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1693 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1694 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1695 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1696 | { (exit 1); exit 1; }; } | |
1227625a SP |
1697 | fi |
1698 | ||
1daf06b9 SP |
1699 | |
1700 | ||
1701 | ||
1702 | ||
1703 | ||
1704 | ||
1705 | ||
1706 | ||
1707 | ||
1708 | ||
1709 | ||
1710 | ||
1711 | ||
1712 | ||
1713 | ||
1227625a | 1714 | |
7f7d329e SP |
1715 | ac_ext=c |
1716 | ac_cpp='$CPP $CPPFLAGS' | |
1717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1227625a SP |
1720 | |
1721 | ||
e7d18957 | 1722 | |
cdfe1392 | 1723 | |
1227625a SP |
1724 | MCONFIG=./MCONFIG |
1725 | ||
1726 | ||
7f7d329e | 1727 | ac_config_headers="$ac_config_headers config.h" |
1227625a SP |
1728 | |
1729 | ||
7f7d329e SP |
1730 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1731 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
1732 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
1733 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
1daf06b9 | 1734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1227625a | 1735 | else |
1daf06b9 | 1736 | cat >conftest.make <<\_ACEOF |
7f7d329e | 1737 | SHELL = /bin/sh |
1227625a | 1738 | all: |
7f7d329e | 1739 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
1daf06b9 | 1740 | _ACEOF |
1227625a | 1741 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7f7d329e SP |
1742 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
1743 | *@@@%%%=?*=@@@%%%*) | |
1744 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
1745 | *) | |
1746 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
1747 | esac | |
1daf06b9 | 1748 | rm -f conftest.make |
1227625a | 1749 | fi |
7f7d329e SP |
1750 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1751 | { echo "$as_me:$LINENO: result: yes" >&5 | |
1752 | echo "${ECHO_T}yes" >&6; } | |
1227625a SP |
1753 | SET_MAKE= |
1754 | else | |
7f7d329e SP |
1755 | { echo "$as_me:$LINENO: result: no" >&5 |
1756 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1757 | SET_MAKE="MAKE=${MAKE-make}" |
1758 | fi | |
1759 | ||
7f7d329e SP |
1760 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
1761 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
1daf06b9 SP |
1762 | LN_S=$as_ln_s |
1763 | if test "$LN_S" = "ln -s"; then | |
7f7d329e SP |
1764 | { echo "$as_me:$LINENO: result: yes" >&5 |
1765 | echo "${ECHO_T}yes" >&6; } | |
1227625a | 1766 | else |
7f7d329e SP |
1767 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
1768 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
1227625a SP |
1769 | fi |
1770 | ||
1771 | # Extract the first word of "cp", so it can be a program name with args. | |
1772 | set dummy cp; ac_word=$2 | |
7f7d329e SP |
1773 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1775 | if test "${ac_cv_path_CP+set}" = set; then |
1776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1777 | else |
1daf06b9 SP |
1778 | case $CP in |
1779 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1780 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
1781 | ;; | |
1782 | *) | |
1daf06b9 SP |
1783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1784 | for as_dir in $PATH | |
1785 | do | |
1786 | IFS=$as_save_IFS | |
1787 | test -z "$as_dir" && as_dir=. | |
1788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 1789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1790 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
1791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1792 | break 2 | |
1793 | fi | |
1794 | done | |
1795 | done | |
7f7d329e | 1796 | IFS=$as_save_IFS |
1daf06b9 | 1797 | |
1227625a SP |
1798 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
1799 | ;; | |
1800 | esac | |
1801 | fi | |
1daf06b9 | 1802 | CP=$ac_cv_path_CP |
1227625a | 1803 | if test -n "$CP"; then |
7f7d329e SP |
1804 | { echo "$as_me:$LINENO: result: $CP" >&5 |
1805 | echo "${ECHO_T}$CP" >&6; } | |
1227625a | 1806 | else |
7f7d329e SP |
1807 | { echo "$as_me:$LINENO: result: no" >&5 |
1808 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1809 | fi |
1810 | ||
7f7d329e | 1811 | |
1227625a SP |
1812 | # Extract the first word of "mv", so it can be a program name with args. |
1813 | set dummy mv; ac_word=$2 | |
7f7d329e SP |
1814 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1816 | if test "${ac_cv_path_MV+set}" = set; then |
1817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1818 | else |
1daf06b9 SP |
1819 | case $MV in |
1820 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1821 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
1822 | ;; | |
1823 | *) | |
1daf06b9 SP |
1824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1825 | for as_dir in $PATH | |
1826 | do | |
1827 | IFS=$as_save_IFS | |
1828 | test -z "$as_dir" && as_dir=. | |
1829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 1830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1831 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
1832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1833 | break 2 | |
1834 | fi | |
1835 | done | |
1836 | done | |
7f7d329e | 1837 | IFS=$as_save_IFS |
1daf06b9 | 1838 | |
1227625a SP |
1839 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
1840 | ;; | |
1841 | esac | |
1842 | fi | |
1daf06b9 | 1843 | MV=$ac_cv_path_MV |
1227625a | 1844 | if test -n "$MV"; then |
7f7d329e SP |
1845 | { echo "$as_me:$LINENO: result: $MV" >&5 |
1846 | echo "${ECHO_T}$MV" >&6; } | |
1227625a | 1847 | else |
7f7d329e SP |
1848 | { echo "$as_me:$LINENO: result: no" >&5 |
1849 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1850 | fi |
1851 | ||
7f7d329e | 1852 | |
1227625a SP |
1853 | # Extract the first word of "rm", so it can be a program name with args. |
1854 | set dummy rm; ac_word=$2 | |
7f7d329e SP |
1855 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1857 | if test "${ac_cv_path_RM+set}" = set; then |
1858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1859 | else |
1daf06b9 SP |
1860 | case $RM in |
1861 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1862 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
1863 | ;; | |
1864 | *) | |
1daf06b9 SP |
1865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1866 | for as_dir in $PATH | |
1867 | do | |
1868 | IFS=$as_save_IFS | |
1869 | test -z "$as_dir" && as_dir=. | |
1870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 1871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1872 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
1873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1874 | break 2 | |
1875 | fi | |
1876 | done | |
1877 | done | |
7f7d329e | 1878 | IFS=$as_save_IFS |
1daf06b9 | 1879 | |
1227625a SP |
1880 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
1881 | ;; | |
1882 | esac | |
1883 | fi | |
1daf06b9 | 1884 | RM=$ac_cv_path_RM |
1227625a | 1885 | if test -n "$RM"; then |
7f7d329e SP |
1886 | { echo "$as_me:$LINENO: result: $RM" >&5 |
1887 | echo "${ECHO_T}$RM" >&6; } | |
1227625a | 1888 | else |
7f7d329e SP |
1889 | { echo "$as_me:$LINENO: result: no" >&5 |
1890 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1891 | fi |
1892 | ||
7f7d329e | 1893 | |
1daf06b9 SP |
1894 | if test -n "$ac_tool_prefix"; then |
1895 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1227625a | 1896 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
7f7d329e SP |
1897 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1899 | if test "${ac_cv_prog_AR+set}" = set; then |
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
1901 | else |
1902 | if test -n "$AR"; then | |
1903 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1904 | else | |
1daf06b9 SP |
1905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1906 | for as_dir in $PATH | |
1907 | do | |
1908 | IFS=$as_save_IFS | |
1909 | test -z "$as_dir" && as_dir=. | |
1910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 1911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1912 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1914 | break 2 | |
1915 | fi | |
1916 | done | |
1917 | done | |
7f7d329e | 1918 | IFS=$as_save_IFS |
1daf06b9 | 1919 | |
1227625a SP |
1920 | fi |
1921 | fi | |
1daf06b9 | 1922 | AR=$ac_cv_prog_AR |
1227625a | 1923 | if test -n "$AR"; then |
7f7d329e SP |
1924 | { echo "$as_me:$LINENO: result: $AR" >&5 |
1925 | echo "${ECHO_T}$AR" >&6; } | |
1227625a | 1926 | else |
7f7d329e SP |
1927 | { echo "$as_me:$LINENO: result: no" >&5 |
1928 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1929 | fi |
1930 | ||
7f7d329e | 1931 | |
1daf06b9 | 1932 | fi |
1227625a | 1933 | if test -z "$ac_cv_prog_AR"; then |
1daf06b9 | 1934 | ac_ct_AR=$AR |
1227625a SP |
1935 | # Extract the first word of "ar", so it can be a program name with args. |
1936 | set dummy ar; ac_word=$2 | |
7f7d329e SP |
1937 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1939 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
1940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1941 | else |
1daf06b9 SP |
1942 | if test -n "$ac_ct_AR"; then |
1943 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
1227625a | 1944 | else |
1daf06b9 SP |
1945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1946 | for as_dir in $PATH | |
1947 | do | |
1948 | IFS=$as_save_IFS | |
1949 | test -z "$as_dir" && as_dir=. | |
1950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 1951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1952 | ac_cv_prog_ac_ct_AR="ar" |
1953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1954 | break 2 | |
1955 | fi | |
1956 | done | |
1957 | done | |
7f7d329e | 1958 | IFS=$as_save_IFS |
1daf06b9 | 1959 | |
1227625a SP |
1960 | fi |
1961 | fi | |
1daf06b9 SP |
1962 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
1963 | if test -n "$ac_ct_AR"; then | |
7f7d329e SP |
1964 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
1965 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
1227625a | 1966 | else |
7f7d329e SP |
1967 | { echo "$as_me:$LINENO: result: no" >&5 |
1968 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1969 | fi |
1970 | ||
7f7d329e SP |
1971 | if test "x$ac_ct_AR" = x; then |
1972 | AR="ar" | |
1973 | else | |
1974 | case $cross_compiling:$ac_tool_warned in | |
1975 | yes:) | |
1976 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1977 | whose name does not start with the host triplet. If you think this | |
1978 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1979 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1980 | whose name does not start with the host triplet. If you think this | |
1981 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1982 | ac_tool_warned=yes ;; | |
1983 | esac | |
1984 | AR=$ac_ct_AR | |
1985 | fi | |
1227625a | 1986 | else |
1daf06b9 | 1987 | AR="$ac_cv_prog_AR" |
1227625a SP |
1988 | fi |
1989 | ||
1daf06b9 SP |
1990 | if test -n "$ac_tool_prefix"; then |
1991 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1227625a | 1992 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
7f7d329e SP |
1993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1995 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
1997 | else |
1998 | if test -n "$RANLIB"; then | |
1999 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2000 | else | |
1daf06b9 SP |
2001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2002 | for as_dir in $PATH | |
2003 | do | |
2004 | IFS=$as_save_IFS | |
2005 | test -z "$as_dir" && as_dir=. | |
2006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2008 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
2009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2010 | break 2 | |
2011 | fi | |
2012 | done | |
2013 | done | |
7f7d329e | 2014 | IFS=$as_save_IFS |
1daf06b9 | 2015 | |
1227625a SP |
2016 | fi |
2017 | fi | |
1daf06b9 | 2018 | RANLIB=$ac_cv_prog_RANLIB |
1227625a | 2019 | if test -n "$RANLIB"; then |
7f7d329e SP |
2020 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2021 | echo "${ECHO_T}$RANLIB" >&6; } | |
1227625a | 2022 | else |
7f7d329e SP |
2023 | { echo "$as_me:$LINENO: result: no" >&5 |
2024 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2025 | fi |
2026 | ||
7f7d329e | 2027 | |
1daf06b9 | 2028 | fi |
1227625a | 2029 | if test -z "$ac_cv_prog_RANLIB"; then |
1daf06b9 | 2030 | ac_ct_RANLIB=$RANLIB |
1227625a SP |
2031 | # Extract the first word of "ranlib", so it can be a program name with args. |
2032 | set dummy ranlib; ac_word=$2 | |
7f7d329e SP |
2033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2035 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
2036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 2037 | else |
1daf06b9 SP |
2038 | if test -n "$ac_ct_RANLIB"; then |
2039 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
1227625a | 2040 | else |
1daf06b9 SP |
2041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2042 | for as_dir in $PATH | |
2043 | do | |
2044 | IFS=$as_save_IFS | |
2045 | test -z "$as_dir" && as_dir=. | |
2046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2048 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
2049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2050 | break 2 | |
2051 | fi | |
2052 | done | |
2053 | done | |
7f7d329e | 2054 | IFS=$as_save_IFS |
1daf06b9 | 2055 | |
1227625a SP |
2056 | fi |
2057 | fi | |
1daf06b9 SP |
2058 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2059 | if test -n "$ac_ct_RANLIB"; then | |
7f7d329e SP |
2060 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
2061 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
1227625a | 2062 | else |
7f7d329e SP |
2063 | { echo "$as_me:$LINENO: result: no" >&5 |
2064 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2065 | fi |
2066 | ||
7f7d329e SP |
2067 | if test "x$ac_ct_RANLIB" = x; then |
2068 | RANLIB=":" | |
2069 | else | |
2070 | case $cross_compiling:$ac_tool_warned in | |
2071 | yes:) | |
2072 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2073 | whose name does not start with the host triplet. If you think this | |
2074 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2075 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2076 | whose name does not start with the host triplet. If you think this | |
2077 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2078 | ac_tool_warned=yes ;; | |
2079 | esac | |
2080 | RANLIB=$ac_ct_RANLIB | |
2081 | fi | |
1227625a | 2082 | else |
1daf06b9 | 2083 | RANLIB="$ac_cv_prog_RANLIB" |
1227625a SP |
2084 | fi |
2085 | ||
1daf06b9 SP |
2086 | if test -n "$ac_tool_prefix"; then |
2087 | # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args. | |
1227625a | 2088 | set dummy ${ac_tool_prefix}patch; ac_word=$2 |
7f7d329e SP |
2089 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2091 | if test "${ac_cv_prog_PATCH+set}" = set; then |
2092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
2093 | else |
2094 | if test -n "$PATCH"; then | |
2095 | ac_cv_prog_PATCH="$PATCH" # Let the user override the test. | |
2096 | else | |
1daf06b9 SP |
2097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2098 | for as_dir in $PATH | |
2099 | do | |
2100 | IFS=$as_save_IFS | |
2101 | test -z "$as_dir" && as_dir=. | |
2102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2104 | ac_cv_prog_PATCH="${ac_tool_prefix}patch" |
2105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2106 | break 2 | |
2107 | fi | |
2108 | done | |
2109 | done | |
7f7d329e | 2110 | IFS=$as_save_IFS |
1daf06b9 | 2111 | |
1227625a SP |
2112 | fi |
2113 | fi | |
1daf06b9 | 2114 | PATCH=$ac_cv_prog_PATCH |
1227625a | 2115 | if test -n "$PATCH"; then |
7f7d329e SP |
2116 | { echo "$as_me:$LINENO: result: $PATCH" >&5 |
2117 | echo "${ECHO_T}$PATCH" >&6; } | |
1227625a | 2118 | else |
7f7d329e SP |
2119 | { echo "$as_me:$LINENO: result: no" >&5 |
2120 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2121 | fi |
2122 | ||
7f7d329e | 2123 | |
1daf06b9 | 2124 | fi |
1227625a | 2125 | if test -z "$ac_cv_prog_PATCH"; then |
1daf06b9 | 2126 | ac_ct_PATCH=$PATCH |
1227625a SP |
2127 | # Extract the first word of "patch", so it can be a program name with args. |
2128 | set dummy patch; ac_word=$2 | |
7f7d329e SP |
2129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2131 | if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then |
2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 2133 | else |
1daf06b9 SP |
2134 | if test -n "$ac_ct_PATCH"; then |
2135 | ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test. | |
1227625a | 2136 | else |
1daf06b9 SP |
2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2138 | for as_dir in $PATH | |
2139 | do | |
2140 | IFS=$as_save_IFS | |
2141 | test -z "$as_dir" && as_dir=. | |
2142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2144 | ac_cv_prog_ac_ct_PATCH="patch" |
2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2146 | break 2 | |
2147 | fi | |
2148 | done | |
2149 | done | |
7f7d329e | 2150 | IFS=$as_save_IFS |
1daf06b9 | 2151 | |
1227625a SP |
2152 | fi |
2153 | fi | |
1daf06b9 SP |
2154 | ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH |
2155 | if test -n "$ac_ct_PATCH"; then | |
7f7d329e SP |
2156 | { echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5 |
2157 | echo "${ECHO_T}$ac_ct_PATCH" >&6; } | |
1227625a | 2158 | else |
7f7d329e SP |
2159 | { echo "$as_me:$LINENO: result: no" >&5 |
2160 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2161 | fi |
2162 | ||
7f7d329e SP |
2163 | if test "x$ac_ct_PATCH" = x; then |
2164 | PATCH=":" | |
2165 | else | |
2166 | case $cross_compiling:$ac_tool_warned in | |
2167 | yes:) | |
2168 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2169 | whose name does not start with the host triplet. If you think this | |
2170 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2171 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2172 | whose name does not start with the host triplet. If you think this | |
2173 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2174 | ac_tool_warned=yes ;; | |
2175 | esac | |
2176 | PATCH=$ac_ct_PATCH | |
2177 | fi | |
1daf06b9 SP |
2178 | else |
2179 | PATCH="$ac_cv_prog_PATCH" | |
2180 | fi | |
2181 | ||
2182 | ac_ext=c | |
2183 | ac_cpp='$CPP $CPPFLAGS' | |
2184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2187 | if test -n "$ac_tool_prefix"; then | |
2188 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2189 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
7f7d329e SP |
2190 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2192 | if test "${ac_cv_prog_CC+set}" = set; then |
2193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2194 | else | |
2195 | if test -n "$CC"; then | |
2196 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1227625a | 2197 | else |
1daf06b9 SP |
2198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2199 | for as_dir in $PATH | |
2200 | do | |
2201 | IFS=$as_save_IFS | |
2202 | test -z "$as_dir" && as_dir=. | |
2203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2205 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2207 | break 2 | |
2208 | fi | |
2209 | done | |
2210 | done | |
7f7d329e | 2211 | IFS=$as_save_IFS |
1daf06b9 | 2212 | |
1227625a SP |
2213 | fi |
2214 | fi | |
1daf06b9 SP |
2215 | CC=$ac_cv_prog_CC |
2216 | if test -n "$CC"; then | |
7f7d329e SP |
2217 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2218 | echo "${ECHO_T}$CC" >&6; } | |
1daf06b9 | 2219 | else |
7f7d329e SP |
2220 | { echo "$as_me:$LINENO: result: no" >&5 |
2221 | echo "${ECHO_T}no" >&6; } | |
1daf06b9 | 2222 | fi |
1227625a | 2223 | |
7f7d329e | 2224 | |
1daf06b9 SP |
2225 | fi |
2226 | if test -z "$ac_cv_prog_CC"; then | |
2227 | ac_ct_CC=$CC | |
2228 | # Extract the first word of "gcc", so it can be a program name with args. | |
1227625a | 2229 | set dummy gcc; ac_word=$2 |
7f7d329e SP |
2230 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2232 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2234 | else | |
2235 | if test -n "$ac_ct_CC"; then | |
2236 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2237 | else | |
2238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2239 | for as_dir in $PATH | |
2240 | do | |
2241 | IFS=$as_save_IFS | |
2242 | test -z "$as_dir" && as_dir=. | |
2243 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2244 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2245 | ac_cv_prog_ac_ct_CC="gcc" |
2246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2247 | break 2 | |
2248 | fi | |
2249 | done | |
2250 | done | |
7f7d329e | 2251 | IFS=$as_save_IFS |
1daf06b9 SP |
2252 | |
2253 | fi | |
2254 | fi | |
2255 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2256 | if test -n "$ac_ct_CC"; then | |
7f7d329e SP |
2257 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2258 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1daf06b9 | 2259 | else |
7f7d329e SP |
2260 | { echo "$as_me:$LINENO: result: no" >&5 |
2261 | echo "${ECHO_T}no" >&6; } | |
1daf06b9 SP |
2262 | fi |
2263 | ||
7f7d329e SP |
2264 | if test "x$ac_ct_CC" = x; then |
2265 | CC="" | |
2266 | else | |
2267 | case $cross_compiling:$ac_tool_warned in | |
2268 | yes:) | |
2269 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2270 | whose name does not start with the host triplet. If you think this | |
2271 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2272 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2273 | whose name does not start with the host triplet. If you think this | |
2274 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2275 | ac_tool_warned=yes ;; | |
2276 | esac | |
2277 | CC=$ac_ct_CC | |
2278 | fi | |
1daf06b9 SP |
2279 | else |
2280 | CC="$ac_cv_prog_CC" | |
2281 | fi | |
2282 | ||
2283 | if test -z "$CC"; then | |
7f7d329e SP |
2284 | if test -n "$ac_tool_prefix"; then |
2285 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1daf06b9 | 2286 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
7f7d329e SP |
2287 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2289 | if test "${ac_cv_prog_CC+set}" = set; then |
2290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
2291 | else |
2292 | if test -n "$CC"; then | |
2293 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2294 | else | |
1daf06b9 SP |
2295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2296 | for as_dir in $PATH | |
2297 | do | |
2298 | IFS=$as_save_IFS | |
2299 | test -z "$as_dir" && as_dir=. | |
2300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2302 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2304 | break 2 | |
2305 | fi | |
2306 | done | |
2307 | done | |
7f7d329e | 2308 | IFS=$as_save_IFS |
1daf06b9 | 2309 | |
1227625a SP |
2310 | fi |
2311 | fi | |
1daf06b9 | 2312 | CC=$ac_cv_prog_CC |
1227625a | 2313 | if test -n "$CC"; then |
7f7d329e SP |
2314 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2315 | echo "${ECHO_T}$CC" >&6; } | |
1227625a | 2316 | else |
7f7d329e SP |
2317 | { echo "$as_me:$LINENO: result: no" >&5 |
2318 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2319 | fi |
2320 | ||
1daf06b9 | 2321 | |
7f7d329e | 2322 | fi |
1daf06b9 | 2323 | fi |
1227625a SP |
2324 | if test -z "$CC"; then |
2325 | # Extract the first word of "cc", so it can be a program name with args. | |
2326 | set dummy cc; ac_word=$2 | |
7f7d329e SP |
2327 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2329 | if test "${ac_cv_prog_CC+set}" = set; then |
2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
2331 | else |
2332 | if test -n "$CC"; then | |
2333 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2334 | else | |
1227625a | 2335 | ac_prog_rejected=no |
1daf06b9 SP |
2336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2337 | for as_dir in $PATH | |
2338 | do | |
2339 | IFS=$as_save_IFS | |
2340 | test -z "$as_dir" && as_dir=. | |
2341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2343 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2344 | ac_prog_rejected=yes | |
2345 | continue | |
2346 | fi | |
2347 | ac_cv_prog_CC="cc" | |
2348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2349 | break 2 | |
2350 | fi | |
2351 | done | |
2352 | done | |
7f7d329e | 2353 | IFS=$as_save_IFS |
1daf06b9 | 2354 | |
1227625a SP |
2355 | if test $ac_prog_rejected = yes; then |
2356 | # We found a bogon in the path, so make sure we never use it. | |
2357 | set dummy $ac_cv_prog_CC | |
2358 | shift | |
1daf06b9 | 2359 | if test $# != 0; then |
1227625a SP |
2360 | # We chose a different compiler from the bogus one. |
2361 | # However, it has the same basename, so the bogon will be chosen | |
2362 | # first if we set CC to just the basename; use the full file name. | |
2363 | shift | |
cdfe1392 | 2364 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1227625a SP |
2365 | fi |
2366 | fi | |
2367 | fi | |
2368 | fi | |
1daf06b9 | 2369 | CC=$ac_cv_prog_CC |
1227625a | 2370 | if test -n "$CC"; then |
7f7d329e SP |
2371 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2372 | echo "${ECHO_T}$CC" >&6; } | |
1227625a | 2373 | else |
7f7d329e SP |
2374 | { echo "$as_me:$LINENO: result: no" >&5 |
2375 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2376 | fi |
2377 | ||
7f7d329e | 2378 | |
1daf06b9 SP |
2379 | fi |
2380 | if test -z "$CC"; then | |
2381 | if test -n "$ac_tool_prefix"; then | |
7f7d329e | 2382 | for ac_prog in cl.exe |
1daf06b9 SP |
2383 | do |
2384 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2385 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7f7d329e SP |
2386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2388 | if test "${ac_cv_prog_CC+set}" = set; then |
2389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ddd2ef55 SP |
2390 | else |
2391 | if test -n "$CC"; then | |
2392 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2393 | else | |
1daf06b9 SP |
2394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2395 | for as_dir in $PATH | |
2396 | do | |
2397 | IFS=$as_save_IFS | |
2398 | test -z "$as_dir" && as_dir=. | |
2399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2401 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2403 | break 2 | |
2404 | fi | |
2405 | done | |
2406 | done | |
7f7d329e | 2407 | IFS=$as_save_IFS |
1daf06b9 | 2408 | |
ddd2ef55 SP |
2409 | fi |
2410 | fi | |
1daf06b9 | 2411 | CC=$ac_cv_prog_CC |
ddd2ef55 | 2412 | if test -n "$CC"; then |
7f7d329e SP |
2413 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2414 | echo "${ECHO_T}$CC" >&6; } | |
ddd2ef55 | 2415 | else |
7f7d329e SP |
2416 | { echo "$as_me:$LINENO: result: no" >&5 |
2417 | echo "${ECHO_T}no" >&6; } | |
ddd2ef55 | 2418 | fi |
1daf06b9 | 2419 | |
7f7d329e | 2420 | |
1daf06b9 SP |
2421 | test -n "$CC" && break |
2422 | done | |
2423 | fi | |
2424 | if test -z "$CC"; then | |
2425 | ac_ct_CC=$CC | |
7f7d329e | 2426 | for ac_prog in cl.exe |
1daf06b9 SP |
2427 | do |
2428 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2429 | set dummy $ac_prog; ac_word=$2 | |
7f7d329e SP |
2430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2432 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2434 | else | |
2435 | if test -n "$ac_ct_CC"; then | |
2436 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2437 | else | |
2438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2439 | for as_dir in $PATH | |
2440 | do | |
2441 | IFS=$as_save_IFS | |
2442 | test -z "$as_dir" && as_dir=. | |
2443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 2444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2445 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2447 | break 2 | |
ddd2ef55 | 2448 | fi |
1daf06b9 SP |
2449 | done |
2450 | done | |
7f7d329e | 2451 | IFS=$as_save_IFS |
1daf06b9 SP |
2452 | |
2453 | fi | |
2454 | fi | |
2455 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2456 | if test -n "$ac_ct_CC"; then | |
7f7d329e SP |
2457 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2458 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1daf06b9 | 2459 | else |
7f7d329e SP |
2460 | { echo "$as_me:$LINENO: result: no" >&5 |
2461 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2462 | fi |
2463 | ||
7f7d329e | 2464 | |
1daf06b9 SP |
2465 | test -n "$ac_ct_CC" && break |
2466 | done | |
1227625a | 2467 | |
7f7d329e SP |
2468 | if test "x$ac_ct_CC" = x; then |
2469 | CC="" | |
2470 | else | |
2471 | case $cross_compiling:$ac_tool_warned in | |
2472 | yes:) | |
2473 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2474 | whose name does not start with the host triplet. If you think this | |
2475 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2476 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2477 | whose name does not start with the host triplet. If you think this | |
2478 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2479 | ac_tool_warned=yes ;; | |
2480 | esac | |
2481 | CC=$ac_ct_CC | |
2482 | fi | |
1daf06b9 SP |
2483 | fi |
2484 | ||
2485 | fi | |
1227625a | 2486 | |
ddd2ef55 | 2487 | |
cdfe1392 SP |
2488 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2489 | See \`config.log' for more details." >&5 | |
2490 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2491 | See \`config.log' for more details." >&2;} | |
1daf06b9 SP |
2492 | { (exit 1); exit 1; }; } |
2493 | ||
2494 | # Provide some information about the compiler. | |
7f7d329e | 2495 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
1daf06b9 | 2496 | ac_compiler=`set X $ac_compile; echo $2` |
7f7d329e SP |
2497 | { (ac_try="$ac_compiler --version >&5" |
2498 | case "(($ac_try" in | |
2499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2500 | *) ac_try_echo=$ac_try;; | |
2501 | esac | |
2502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2503 | (eval "$ac_compiler --version >&5") 2>&5 | |
1daf06b9 SP |
2504 | ac_status=$? |
2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2506 | (exit $ac_status); } | |
7f7d329e SP |
2507 | { (ac_try="$ac_compiler -v >&5" |
2508 | case "(($ac_try" in | |
2509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2510 | *) ac_try_echo=$ac_try;; | |
2511 | esac | |
2512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2513 | (eval "$ac_compiler -v >&5") 2>&5 | |
1daf06b9 SP |
2514 | ac_status=$? |
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2516 | (exit $ac_status); } | |
7f7d329e SP |
2517 | { (ac_try="$ac_compiler -V >&5" |
2518 | case "(($ac_try" in | |
2519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2520 | *) ac_try_echo=$ac_try;; | |
2521 | esac | |
2522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2523 | (eval "$ac_compiler -V >&5") 2>&5 | |
1daf06b9 SP |
2524 | ac_status=$? |
2525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2526 | (exit $ac_status); } | |
2527 | ||
2528 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
2529 | /* confdefs.h. */ |
2530 | _ACEOF | |
2531 | cat confdefs.h >>conftest.$ac_ext | |
2532 | cat >>conftest.$ac_ext <<_ACEOF | |
2533 | /* end confdefs.h. */ | |
ddd2ef55 | 2534 | |
1daf06b9 SP |
2535 | int |
2536 | main () | |
2537 | { | |
2538 | ||
2539 | ; | |
2540 | return 0; | |
2541 | } | |
2542 | _ACEOF | |
2543 | ac_clean_files_save=$ac_clean_files | |
cdfe1392 | 2544 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1daf06b9 SP |
2545 | # Try to create an executable without -o first, disregard a.out. |
2546 | # It will help us diagnose broken compilers, and finding out an intuition | |
2547 | # of exeext. | |
7f7d329e SP |
2548 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2549 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
1daf06b9 | 2550 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
7f7d329e SP |
2551 | # |
2552 | # List of possible output files, starting from the most likely. | |
2553 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2554 | # only as a last resort. b.out is created by i960 compilers. | |
2555 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2556 | # | |
2557 | # The IRIX 6 linker writes into existing files which may not be | |
2558 | # executable, retaining their permissions. Remove them first so a | |
2559 | # subsequent execution test works. | |
2560 | ac_rmfiles= | |
2561 | for ac_file in $ac_files | |
2562 | do | |
2563 | case $ac_file in | |
2564 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2565 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2566 | esac | |
2567 | done | |
2568 | rm -f $ac_rmfiles | |
2569 | ||
2570 | if { (ac_try="$ac_link_default" | |
2571 | case "(($ac_try" in | |
2572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2573 | *) ac_try_echo=$ac_try;; | |
2574 | esac | |
2575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2576 | (eval "$ac_link_default") 2>&5 | |
1daf06b9 SP |
2577 | ac_status=$? |
2578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2579 | (exit $ac_status); }; then | |
7f7d329e SP |
2580 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2581 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2582 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2583 | # so that the user can short-circuit this test for compilers unknown to | |
2584 | # Autoconf. | |
2585 | for ac_file in $ac_files | |
cdfe1392 SP |
2586 | do |
2587 | test -f "$ac_file" || continue | |
1daf06b9 | 2588 | case $ac_file in |
7f7d329e | 2589 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
c9e4e868 | 2590 | ;; |
cdfe1392 | 2591 | [ab].out ) |
c9e4e868 SP |
2592 | # We found the default executable, but exeext='' is most |
2593 | # certainly right. | |
2594 | break;; | |
cdfe1392 | 2595 | *.* ) |
7f7d329e SP |
2596 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2597 | then :; else | |
2598 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2599 | fi | |
2600 | # We set ac_cv_exeext here because the later test for it is not | |
2601 | # safe: cross compilers may not add the suffix if given an `-o' | |
2602 | # argument, so we may need to know it at that point already. | |
2603 | # Even if this section looks crufty: it has the advantage of | |
2604 | # actually working. | |
c9e4e868 | 2605 | break;; |
cdfe1392 | 2606 | * ) |
c9e4e868 | 2607 | break;; |
1daf06b9 SP |
2608 | esac |
2609 | done | |
7f7d329e SP |
2610 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2611 | ||
1daf06b9 SP |
2612 | else |
2613 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
2614 | sed 's/^/| /' conftest.$ac_ext >&5 |
2615 | ||
2616 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2617 | See \`config.log' for more details." >&5 | |
2618 | echo "$as_me: error: C compiler cannot create executables | |
2619 | See \`config.log' for more details." >&2;} | |
1daf06b9 SP |
2620 | { (exit 77); exit 77; }; } |
2621 | fi | |
2622 | ||
2623 | ac_exeext=$ac_cv_exeext | |
7f7d329e SP |
2624 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2625 | echo "${ECHO_T}$ac_file" >&6; } | |
1daf06b9 | 2626 | |
7f7d329e | 2627 | # Check that the compiler produces executables we can run. If not, either |
1daf06b9 | 2628 | # the compiler is broken, or we cross compile. |
7f7d329e SP |
2629 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2630 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
1daf06b9 SP |
2631 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2632 | # If not cross compiling, check that we can run a simple program. | |
2633 | if test "$cross_compiling" != yes; then | |
2634 | if { ac_try='./$ac_file' | |
7f7d329e SP |
2635 | { (case "(($ac_try" in |
2636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2637 | *) ac_try_echo=$ac_try;; | |
2638 | esac | |
2639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2640 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
2641 | ac_status=$? |
2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2643 | (exit $ac_status); }; }; then | |
2644 | cross_compiling=no | |
1227625a | 2645 | else |
1daf06b9 SP |
2646 | if test "$cross_compiling" = maybe; then |
2647 | cross_compiling=yes | |
2648 | else | |
2649 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
cdfe1392 SP |
2650 | If you meant to cross compile, use \`--host'. |
2651 | See \`config.log' for more details." >&5 | |
1daf06b9 | 2652 | echo "$as_me: error: cannot run C compiled programs. |
cdfe1392 SP |
2653 | If you meant to cross compile, use \`--host'. |
2654 | See \`config.log' for more details." >&2;} | |
1daf06b9 SP |
2655 | { (exit 1); exit 1; }; } |
2656 | fi | |
1227625a | 2657 | fi |
1227625a | 2658 | fi |
7f7d329e SP |
2659 | { echo "$as_me:$LINENO: result: yes" >&5 |
2660 | echo "${ECHO_T}yes" >&6; } | |
1daf06b9 | 2661 | |
cdfe1392 | 2662 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1daf06b9 | 2663 | ac_clean_files=$ac_clean_files_save |
7f7d329e | 2664 | # Check that the compiler produces executables we can run. If not, either |
1daf06b9 | 2665 | # the compiler is broken, or we cross compile. |
7f7d329e SP |
2666 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2667 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2668 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2669 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2670 | ||
2671 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2672 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2673 | if { (ac_try="$ac_link" | |
2674 | case "(($ac_try" in | |
2675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2676 | *) ac_try_echo=$ac_try;; | |
2677 | esac | |
2678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2679 | (eval "$ac_link") 2>&5 | |
1daf06b9 SP |
2680 | ac_status=$? |
2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2682 | (exit $ac_status); }; then | |
2683 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2684 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2685 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2686 | # `rm'. | |
cdfe1392 SP |
2687 | for ac_file in conftest.exe conftest conftest.*; do |
2688 | test -f "$ac_file" || continue | |
1daf06b9 | 2689 | case $ac_file in |
7f7d329e | 2690 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
1daf06b9 | 2691 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c9e4e868 | 2692 | break;; |
1daf06b9 SP |
2693 | * ) break;; |
2694 | esac | |
2695 | done | |
1227625a | 2696 | else |
cdfe1392 SP |
2697 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2698 | See \`config.log' for more details." >&5 | |
2699 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2700 | See \`config.log' for more details." >&2;} | |
1daf06b9 | 2701 | { (exit 1); exit 1; }; } |
1227625a SP |
2702 | fi |
2703 | ||
1daf06b9 | 2704 | rm -f conftest$ac_cv_exeext |
7f7d329e SP |
2705 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2706 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
1227625a | 2707 | |
1daf06b9 SP |
2708 | rm -f conftest.$ac_ext |
2709 | EXEEXT=$ac_cv_exeext | |
2710 | ac_exeext=$EXEEXT | |
7f7d329e SP |
2711 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2712 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
1daf06b9 SP |
2713 | if test "${ac_cv_objext+set}" = set; then |
2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ddd2ef55 | 2715 | else |
1daf06b9 | 2716 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
2717 | /* confdefs.h. */ |
2718 | _ACEOF | |
2719 | cat confdefs.h >>conftest.$ac_ext | |
2720 | cat >>conftest.$ac_ext <<_ACEOF | |
2721 | /* end confdefs.h. */ | |
1daf06b9 | 2722 | |
1daf06b9 SP |
2723 | int |
2724 | main () | |
2725 | { | |
2726 | ||
2727 | ; | |
2728 | return 0; | |
2729 | } | |
2730 | _ACEOF | |
2731 | rm -f conftest.o conftest.obj | |
7f7d329e SP |
2732 | if { (ac_try="$ac_compile" |
2733 | case "(($ac_try" in | |
2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2735 | *) ac_try_echo=$ac_try;; | |
2736 | esac | |
2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2738 | (eval "$ac_compile") 2>&5 | |
1daf06b9 SP |
2739 | ac_status=$? |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2741 | (exit $ac_status); }; then | |
7f7d329e SP |
2742 | for ac_file in conftest.o conftest.obj conftest.*; do |
2743 | test -f "$ac_file" || continue; | |
1daf06b9 | 2744 | case $ac_file in |
7f7d329e | 2745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
1daf06b9 SP |
2746 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2747 | break;; | |
2748 | esac | |
2749 | done | |
2750 | else | |
2751 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
2752 | sed 's/^/| /' conftest.$ac_ext >&5 |
2753 | ||
2754 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2755 | See \`config.log' for more details." >&5 | |
2756 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2757 | See \`config.log' for more details." >&2;} | |
1daf06b9 | 2758 | { (exit 1); exit 1; }; } |
ddd2ef55 SP |
2759 | fi |
2760 | ||
1daf06b9 SP |
2761 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2762 | fi | |
7f7d329e SP |
2763 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2764 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
1daf06b9 SP |
2765 | OBJEXT=$ac_cv_objext |
2766 | ac_objext=$OBJEXT | |
7f7d329e SP |
2767 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2768 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
1daf06b9 SP |
2769 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 2771 | else |
1daf06b9 | 2772 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
2773 | /* confdefs.h. */ |
2774 | _ACEOF | |
2775 | cat confdefs.h >>conftest.$ac_ext | |
2776 | cat >>conftest.$ac_ext <<_ACEOF | |
2777 | /* end confdefs.h. */ | |
1daf06b9 | 2778 | |
1daf06b9 SP |
2779 | int |
2780 | main () | |
2781 | { | |
2782 | #ifndef __GNUC__ | |
2783 | choke me | |
2784 | #endif | |
2785 | ||
2786 | ; | |
2787 | return 0; | |
2788 | } | |
2789 | _ACEOF | |
2790 | rm -f conftest.$ac_objext | |
7f7d329e SP |
2791 | if { (ac_try="$ac_compile" |
2792 | case "(($ac_try" in | |
2793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2794 | *) ac_try_echo=$ac_try;; | |
2795 | esac | |
2796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2797 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 2798 | ac_status=$? |
c9e4e868 SP |
2799 | grep -v '^ *+' conftest.er1 >conftest.err |
2800 | rm -f conftest.er1 | |
2801 | cat conftest.err >&5 | |
1daf06b9 SP |
2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2803 | (exit $ac_status); } && | |
7f7d329e SP |
2804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2805 | { (case "(($ac_try" in | |
2806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2807 | *) ac_try_echo=$ac_try;; | |
2808 | esac | |
2809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2810 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
2811 | ac_status=$? |
2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2813 | (exit $ac_status); }; } && | |
2814 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
2815 | { (case "(($ac_try" in |
2816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2817 | *) ac_try_echo=$ac_try;; | |
2818 | esac | |
2819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2820 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
2821 | ac_status=$? |
2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2823 | (exit $ac_status); }; }; then | |
2824 | ac_compiler_gnu=yes | |
2825 | else | |
2826 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
2827 | sed 's/^/| /' conftest.$ac_ext >&5 |
2828 | ||
7f7d329e | 2829 | ac_compiler_gnu=no |
1daf06b9 | 2830 | fi |
7f7d329e SP |
2831 | |
2832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1daf06b9 SP |
2833 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2834 | ||
2835 | fi | |
7f7d329e SP |
2836 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2837 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
1daf06b9 SP |
2838 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2839 | ac_test_CFLAGS=${CFLAGS+set} | |
2840 | ac_save_CFLAGS=$CFLAGS | |
7f7d329e SP |
2841 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2842 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
1daf06b9 SP |
2843 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2845 | else | |
7f7d329e SP |
2846 | ac_save_c_werror_flag=$ac_c_werror_flag |
2847 | ac_c_werror_flag=yes | |
2848 | ac_cv_prog_cc_g=no | |
2849 | CFLAGS="-g" | |
2850 | cat >conftest.$ac_ext <<_ACEOF | |
2851 | /* confdefs.h. */ | |
2852 | _ACEOF | |
2853 | cat confdefs.h >>conftest.$ac_ext | |
2854 | cat >>conftest.$ac_ext <<_ACEOF | |
2855 | /* end confdefs.h. */ | |
2856 | ||
2857 | int | |
2858 | main () | |
2859 | { | |
2860 | ||
2861 | ; | |
2862 | return 0; | |
2863 | } | |
2864 | _ACEOF | |
2865 | rm -f conftest.$ac_objext | |
2866 | if { (ac_try="$ac_compile" | |
2867 | case "(($ac_try" in | |
2868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2869 | *) ac_try_echo=$ac_try;; | |
2870 | esac | |
2871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2872 | (eval "$ac_compile") 2>conftest.er1 | |
2873 | ac_status=$? | |
2874 | grep -v '^ *+' conftest.er1 >conftest.err | |
2875 | rm -f conftest.er1 | |
2876 | cat conftest.err >&5 | |
2877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2878 | (exit $ac_status); } && | |
2879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2880 | { (case "(($ac_try" in | |
2881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2882 | *) ac_try_echo=$ac_try;; | |
2883 | esac | |
2884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2885 | (eval "$ac_try") 2>&5 | |
2886 | ac_status=$? | |
2887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2888 | (exit $ac_status); }; } && | |
2889 | { ac_try='test -s conftest.$ac_objext' | |
2890 | { (case "(($ac_try" in | |
2891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2892 | *) ac_try_echo=$ac_try;; | |
2893 | esac | |
2894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2895 | (eval "$ac_try") 2>&5 | |
2896 | ac_status=$? | |
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2898 | (exit $ac_status); }; }; then | |
2899 | ac_cv_prog_cc_g=yes | |
2900 | else | |
2901 | echo "$as_me: failed program was:" >&5 | |
2902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2903 | ||
2904 | CFLAGS="" | |
2905 | cat >conftest.$ac_ext <<_ACEOF | |
2906 | /* confdefs.h. */ | |
2907 | _ACEOF | |
2908 | cat confdefs.h >>conftest.$ac_ext | |
2909 | cat >>conftest.$ac_ext <<_ACEOF | |
2910 | /* end confdefs.h. */ | |
2911 | ||
2912 | int | |
2913 | main () | |
2914 | { | |
2915 | ||
2916 | ; | |
2917 | return 0; | |
2918 | } | |
2919 | _ACEOF | |
2920 | rm -f conftest.$ac_objext | |
2921 | if { (ac_try="$ac_compile" | |
2922 | case "(($ac_try" in | |
2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2924 | *) ac_try_echo=$ac_try;; | |
2925 | esac | |
2926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2927 | (eval "$ac_compile") 2>conftest.er1 | |
2928 | ac_status=$? | |
2929 | grep -v '^ *+' conftest.er1 >conftest.err | |
2930 | rm -f conftest.er1 | |
2931 | cat conftest.err >&5 | |
2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2933 | (exit $ac_status); } && | |
2934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2935 | { (case "(($ac_try" in | |
2936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2937 | *) ac_try_echo=$ac_try;; | |
2938 | esac | |
2939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2940 | (eval "$ac_try") 2>&5 | |
2941 | ac_status=$? | |
2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2943 | (exit $ac_status); }; } && | |
2944 | { ac_try='test -s conftest.$ac_objext' | |
2945 | { (case "(($ac_try" in | |
2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2947 | *) ac_try_echo=$ac_try;; | |
2948 | esac | |
2949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2950 | (eval "$ac_try") 2>&5 | |
2951 | ac_status=$? | |
2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2953 | (exit $ac_status); }; }; then | |
2954 | : | |
2955 | else | |
2956 | echo "$as_me: failed program was:" >&5 | |
2957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2958 | ||
2959 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2960 | CFLAGS="-g" | |
2961 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
2962 | /* confdefs.h. */ |
2963 | _ACEOF | |
2964 | cat confdefs.h >>conftest.$ac_ext | |
2965 | cat >>conftest.$ac_ext <<_ACEOF | |
2966 | /* end confdefs.h. */ | |
1daf06b9 | 2967 | |
1daf06b9 SP |
2968 | int |
2969 | main () | |
2970 | { | |
2971 | ||
2972 | ; | |
2973 | return 0; | |
2974 | } | |
2975 | _ACEOF | |
2976 | rm -f conftest.$ac_objext | |
7f7d329e SP |
2977 | if { (ac_try="$ac_compile" |
2978 | case "(($ac_try" in | |
2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2980 | *) ac_try_echo=$ac_try;; | |
2981 | esac | |
2982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2983 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 2984 | ac_status=$? |
c9e4e868 SP |
2985 | grep -v '^ *+' conftest.er1 >conftest.err |
2986 | rm -f conftest.er1 | |
2987 | cat conftest.err >&5 | |
1daf06b9 SP |
2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2989 | (exit $ac_status); } && | |
7f7d329e SP |
2990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2991 | { (case "(($ac_try" in | |
2992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2993 | *) ac_try_echo=$ac_try;; | |
2994 | esac | |
2995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2996 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
2997 | ac_status=$? |
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2999 | (exit $ac_status); }; } && | |
3000 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
3001 | { (case "(($ac_try" in |
3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3003 | *) ac_try_echo=$ac_try;; | |
3004 | esac | |
3005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3006 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
3007 | ac_status=$? |
3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3009 | (exit $ac_status); }; }; then | |
1227625a SP |
3010 | ac_cv_prog_cc_g=yes |
3011 | else | |
1daf06b9 | 3012 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
3013 | sed 's/^/| /' conftest.$ac_ext >&5 |
3014 | ||
7f7d329e SP |
3015 | |
3016 | fi | |
3017 | ||
3018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3019 | fi | |
3020 | ||
3021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 3022 | fi |
7f7d329e SP |
3023 | |
3024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3025 | ac_c_werror_flag=$ac_save_c_werror_flag | |
1227625a | 3026 | fi |
7f7d329e SP |
3027 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3028 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
ddd2ef55 | 3029 | if test "$ac_test_CFLAGS" = set; then |
1daf06b9 | 3030 | CFLAGS=$ac_save_CFLAGS |
ddd2ef55 SP |
3031 | elif test $ac_cv_prog_cc_g = yes; then |
3032 | if test "$GCC" = yes; then | |
1227625a SP |
3033 | CFLAGS="-g -O2" |
3034 | else | |
ddd2ef55 | 3035 | CFLAGS="-g" |
1227625a SP |
3036 | fi |
3037 | else | |
ddd2ef55 SP |
3038 | if test "$GCC" = yes; then |
3039 | CFLAGS="-O2" | |
3040 | else | |
3041 | CFLAGS= | |
3042 | fi | |
1227625a | 3043 | fi |
7f7d329e SP |
3044 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3045 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3046 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
cdfe1392 SP |
3047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3048 | else | |
7f7d329e | 3049 | ac_cv_prog_cc_c89=no |
cdfe1392 SP |
3050 | ac_save_CC=$CC |
3051 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
3052 | /* confdefs.h. */ |
3053 | _ACEOF | |
3054 | cat confdefs.h >>conftest.$ac_ext | |
3055 | cat >>conftest.$ac_ext <<_ACEOF | |
3056 | /* end confdefs.h. */ | |
3057 | #include <stdarg.h> | |
3058 | #include <stdio.h> | |
3059 | #include <sys/types.h> | |
3060 | #include <sys/stat.h> | |
3061 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3062 | struct buf { int x; }; | |
3063 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3064 | static char *e (p, i) | |
3065 | char **p; | |
3066 | int i; | |
3067 | { | |
3068 | return p[i]; | |
3069 | } | |
3070 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3071 | { | |
3072 | char *s; | |
3073 | va_list v; | |
3074 | va_start (v,p); | |
3075 | s = g (p, va_arg (v,int)); | |
3076 | va_end (v); | |
3077 | return s; | |
3078 | } | |
c9e4e868 SP |
3079 | |
3080 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3081 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3082 | These don't provoke an error unfortunately, instead are silently treated | |
7f7d329e | 3083 | as 'x'. The following induces an error, until -std is added to get |
c9e4e868 SP |
3084 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3085 | array size at least. It's necessary to write '\x00'==0 to get something | |
7f7d329e | 3086 | that's true only with -std. */ |
c9e4e868 SP |
3087 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3088 | ||
7f7d329e SP |
3089 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3090 | inside strings and character constants. */ | |
3091 | #define FOO(x) 'x' | |
3092 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3093 | ||
cdfe1392 SP |
3094 | int test (int i, double x); |
3095 | struct s1 {int (*f) (int a);}; | |
3096 | struct s2 {int (*f) (double a);}; | |
3097 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3098 | int argc; | |
3099 | char **argv; | |
3100 | int | |
3101 | main () | |
3102 | { | |
3103 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3104 | ; | |
3105 | return 0; | |
3106 | } | |
3107 | _ACEOF | |
7f7d329e SP |
3108 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3109 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
cdfe1392 SP |
3110 | do |
3111 | CC="$ac_save_CC $ac_arg" | |
3112 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3113 | if { (ac_try="$ac_compile" |
3114 | case "(($ac_try" in | |
3115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3116 | *) ac_try_echo=$ac_try;; | |
3117 | esac | |
3118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3119 | (eval "$ac_compile") 2>conftest.er1 | |
cdfe1392 | 3120 | ac_status=$? |
c9e4e868 SP |
3121 | grep -v '^ *+' conftest.er1 >conftest.err |
3122 | rm -f conftest.er1 | |
3123 | cat conftest.err >&5 | |
cdfe1392 SP |
3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3125 | (exit $ac_status); } && | |
7f7d329e SP |
3126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3127 | { (case "(($ac_try" in | |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3129 | *) ac_try_echo=$ac_try;; | |
3130 | esac | |
3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3132 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
3133 | ac_status=$? |
3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3135 | (exit $ac_status); }; } && | |
3136 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
3137 | { (case "(($ac_try" in |
3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3139 | *) ac_try_echo=$ac_try;; | |
3140 | esac | |
3141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3142 | (eval "$ac_try") 2>&5 | |
cdfe1392 SP |
3143 | ac_status=$? |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3145 | (exit $ac_status); }; }; then | |
7f7d329e | 3146 | ac_cv_prog_cc_c89=$ac_arg |
cdfe1392 SP |
3147 | else |
3148 | echo "$as_me: failed program was:" >&5 | |
3149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3150 | ||
7f7d329e | 3151 | |
cdfe1392 | 3152 | fi |
7f7d329e SP |
3153 | |
3154 | rm -f core conftest.err conftest.$ac_objext | |
3155 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
cdfe1392 | 3156 | done |
7f7d329e | 3157 | rm -f conftest.$ac_ext |
cdfe1392 SP |
3158 | CC=$ac_save_CC |
3159 | ||
3160 | fi | |
7f7d329e SP |
3161 | # AC_CACHE_VAL |
3162 | case "x$ac_cv_prog_cc_c89" in | |
3163 | x) | |
3164 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3165 | echo "${ECHO_T}none needed" >&6; } ;; | |
3166 | xno) | |
3167 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3168 | echo "${ECHO_T}unsupported" >&6; } ;; | |
cdfe1392 | 3169 | *) |
7f7d329e SP |
3170 | CC="$CC $ac_cv_prog_cc_c89" |
3171 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3172 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
cdfe1392 SP |
3173 | esac |
3174 | ||
cdfe1392 | 3175 | |
1daf06b9 SP |
3176 | ac_ext=c |
3177 | ac_cpp='$CPP $CPPFLAGS' | |
3178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3181 | ||
3182 | ac_aux_dir= | |
7f7d329e SP |
3183 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3184 | if test -f "$ac_dir/install-sh"; then | |
1daf06b9 SP |
3185 | ac_aux_dir=$ac_dir |
3186 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3187 | break | |
7f7d329e | 3188 | elif test -f "$ac_dir/install.sh"; then |
1daf06b9 SP |
3189 | ac_aux_dir=$ac_dir |
3190 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3191 | break | |
7f7d329e | 3192 | elif test -f "$ac_dir/shtool"; then |
1daf06b9 SP |
3193 | ac_aux_dir=$ac_dir |
3194 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3195 | break | |
3196 | fi | |
3197 | done | |
3198 | if test -z "$ac_aux_dir"; then | |
7f7d329e SP |
3199 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3200 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1daf06b9 SP |
3201 | { (exit 1); exit 1; }; } |
3202 | fi | |
7f7d329e SP |
3203 | |
3204 | # These three variables are undocumented and unsupported, | |
3205 | # and are intended to be withdrawn in a future Autoconf release. | |
3206 | # They can cause serious problems if a builder's source tree is in a directory | |
3207 | # whose full name contains unusual characters. | |
3208 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3209 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3210 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3211 | ||
1227625a SP |
3212 | |
3213 | # Find a good install program. We prefer a C program (faster), | |
3214 | # so one script is as good as another. But avoid the broken or | |
3215 | # incompatible versions: | |
3216 | # SysV /etc/install, /usr/sbin/install | |
3217 | # SunOS /usr/etc/install | |
3218 | # IRIX /sbin/install | |
3219 | # AIX /bin/install | |
1daf06b9 | 3220 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
ddd2ef55 | 3221 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1227625a SP |
3222 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3223 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c9e4e868 | 3224 | # OS/2's system install, which has a completely different semantic |
1227625a | 3225 | # ./install, which can be erroneously created by make from ./install.sh. |
7f7d329e SP |
3226 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3227 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
1227625a | 3228 | if test -z "$INSTALL"; then |
1daf06b9 SP |
3229 | if test "${ac_cv_path_install+set}" = set; then |
3230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3231 | else | |
3232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3233 | for as_dir in $PATH | |
3234 | do | |
3235 | IFS=$as_save_IFS | |
3236 | test -z "$as_dir" && as_dir=. | |
3237 | # Account for people who put trailing slashes in PATH elements. | |
3238 | case $as_dir/ in | |
3239 | ./ | .// | /cC/* | \ | |
3240 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
c9e4e868 | 3241 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1daf06b9 SP |
3242 | /usr/ucb/* ) ;; |
3243 | *) | |
3244 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3245 | # Don't use installbsd from OSF since it installs stuff as root | |
3246 | # by default. | |
3247 | for ac_prog in ginstall scoinst install; do | |
3248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7f7d329e | 3249 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
c9e4e868 SP |
3250 | if test $ac_prog = install && |
3251 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3252 | # AIX install. It has an incompatible calling convention. | |
3253 | : | |
3254 | elif test $ac_prog = install && | |
3255 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3256 | # program-specific install script used by HP pwplus--don't use. | |
3257 | : | |
3258 | else | |
3259 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3260 | break 3 | |
3261 | fi | |
3262 | fi | |
1daf06b9 SP |
3263 | done |
3264 | done | |
3265 | ;; | |
3266 | esac | |
3267 | done | |
7f7d329e | 3268 | IFS=$as_save_IFS |
1daf06b9 | 3269 | |
1227625a SP |
3270 | |
3271 | fi | |
3272 | if test "${ac_cv_path_install+set}" = set; then | |
1daf06b9 | 3273 | INSTALL=$ac_cv_path_install |
1227625a | 3274 | else |
7f7d329e SP |
3275 | # As a last resort, use the slow shell script. Don't cache a |
3276 | # value for INSTALL within a source directory, because that will | |
1227625a | 3277 | # break other packages using the cache if that directory is |
7f7d329e | 3278 | # removed, or if the value is a relative name. |
1daf06b9 | 3279 | INSTALL=$ac_install_sh |
1227625a SP |
3280 | fi |
3281 | fi | |
7f7d329e SP |
3282 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3283 | echo "${ECHO_T}$INSTALL" >&6; } | |
1227625a SP |
3284 | |
3285 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3286 | # It thinks the first close brace ends the variable substitution. | |
3287 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3288 | ||
1daf06b9 | 3289 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
ddd2ef55 | 3290 | |
1227625a SP |
3291 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3292 | ||
3293 | ||
1227625a | 3294 | |
e7d18957 SP |
3295 | ac_ext=c |
3296 | ac_cpp='$CPP $CPPFLAGS' | |
3297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7f7d329e SP |
3300 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3301 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e7d18957 SP |
3302 | # On Suns, sometimes $CPP names a directory. |
3303 | if test -n "$CPP" && test -d "$CPP"; then | |
3304 | CPP= | |
1227625a | 3305 | fi |
e7d18957 SP |
3306 | if test -z "$CPP"; then |
3307 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 3309 | else |
e7d18957 SP |
3310 | # Double quotes because CPP needs to be expanded |
3311 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3312 | do | |
3313 | ac_preproc_ok=false | |
3314 | for ac_c_preproc_warn_flag in '' yes | |
3315 | do | |
3316 | # Use a header file that comes with gcc, so configuring glibc | |
3317 | # with a fresh cross-compiler works. | |
3318 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3319 | # <limits.h> exists even on freestanding compilers. | |
3320 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3321 | # not just through cpp. "Syntax error" is here to catch this case. | |
3322 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3323 | /* confdefs.h. */ |
3324 | _ACEOF | |
3325 | cat confdefs.h >>conftest.$ac_ext | |
3326 | cat >>conftest.$ac_ext <<_ACEOF | |
3327 | /* end confdefs.h. */ | |
3328 | #ifdef __STDC__ | |
3329 | # include <limits.h> | |
3330 | #else | |
3331 | # include <assert.h> | |
3332 | #endif | |
c9e4e868 | 3333 | Syntax error |
e7d18957 | 3334 | _ACEOF |
7f7d329e SP |
3335 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3336 | case "(($ac_try" in | |
3337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3338 | *) ac_try_echo=$ac_try;; | |
3339 | esac | |
3340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3342 | ac_status=$? |
3343 | grep -v '^ *+' conftest.er1 >conftest.err | |
3344 | rm -f conftest.er1 | |
3345 | cat conftest.err >&5 | |
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3347 | (exit $ac_status); } >/dev/null; then | |
3348 | if test -s conftest.err; then | |
3349 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 3350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e7d18957 SP |
3351 | else |
3352 | ac_cpp_err= | |
3353 | fi | |
1227625a | 3354 | else |
e7d18957 | 3355 | ac_cpp_err=yes |
1227625a | 3356 | fi |
e7d18957 SP |
3357 | if test -z "$ac_cpp_err"; then |
3358 | : | |
1227625a | 3359 | else |
e7d18957 SP |
3360 | echo "$as_me: failed program was:" >&5 |
3361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1227625a | 3362 | |
e7d18957 SP |
3363 | # Broken: fails on valid input. |
3364 | continue | |
cdfe1392 | 3365 | fi |
7f7d329e | 3366 | |
e7d18957 | 3367 | rm -f conftest.err conftest.$ac_ext |
cdfe1392 | 3368 | |
7f7d329e | 3369 | # OK, works on sane cases. Now check whether nonexistent headers |
e7d18957 SP |
3370 | # can be detected and how. |
3371 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3372 | /* confdefs.h. */ |
3373 | _ACEOF | |
3374 | cat confdefs.h >>conftest.$ac_ext | |
3375 | cat >>conftest.$ac_ext <<_ACEOF | |
3376 | /* end confdefs.h. */ | |
3377 | #include <ac_nonexistent.h> | |
3378 | _ACEOF | |
7f7d329e SP |
3379 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3380 | case "(($ac_try" in | |
3381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3382 | *) ac_try_echo=$ac_try;; | |
3383 | esac | |
3384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3385 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3386 | ac_status=$? |
3387 | grep -v '^ *+' conftest.er1 >conftest.err | |
3388 | rm -f conftest.er1 | |
3389 | cat conftest.err >&5 | |
3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3391 | (exit $ac_status); } >/dev/null; then | |
3392 | if test -s conftest.err; then | |
3393 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 3394 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e7d18957 SP |
3395 | else |
3396 | ac_cpp_err= | |
3397 | fi | |
cdfe1392 | 3398 | else |
e7d18957 | 3399 | ac_cpp_err=yes |
2ed89fda | 3400 | fi |
e7d18957 SP |
3401 | if test -z "$ac_cpp_err"; then |
3402 | # Broken: success on invalid input. | |
3403 | continue | |
c38e5b6a | 3404 | else |
e7d18957 SP |
3405 | echo "$as_me: failed program was:" >&5 |
3406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c38e5b6a | 3407 | |
e7d18957 SP |
3408 | # Passes both tests. |
3409 | ac_preproc_ok=: | |
3410 | break | |
c38e5b6a | 3411 | fi |
7f7d329e | 3412 | |
e7d18957 | 3413 | rm -f conftest.err conftest.$ac_ext |
c38e5b6a | 3414 | |
e7d18957 SP |
3415 | done |
3416 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3417 | rm -f conftest.err conftest.$ac_ext | |
3418 | if $ac_preproc_ok; then | |
3419 | break | |
d8574d45 SP |
3420 | fi |
3421 | ||
e7d18957 SP |
3422 | done |
3423 | ac_cv_prog_CPP=$CPP | |
d6967896 SP |
3424 | |
3425 | fi | |
e7d18957 | 3426 | CPP=$ac_cv_prog_CPP |
d6967896 | 3427 | else |
e7d18957 SP |
3428 | ac_cv_prog_CPP=$CPP |
3429 | fi | |
7f7d329e SP |
3430 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3431 | echo "${ECHO_T}$CPP" >&6; } | |
e7d18957 SP |
3432 | ac_preproc_ok=false |
3433 | for ac_c_preproc_warn_flag in '' yes | |
3434 | do | |
3435 | # Use a header file that comes with gcc, so configuring glibc | |
3436 | # with a fresh cross-compiler works. | |
3437 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3438 | # <limits.h> exists even on freestanding compilers. | |
3439 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3440 | # not just through cpp. "Syntax error" is here to catch this case. | |
3441 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3442 | /* confdefs.h. */ |
3443 | _ACEOF | |
3444 | cat confdefs.h >>conftest.$ac_ext | |
3445 | cat >>conftest.$ac_ext <<_ACEOF | |
3446 | /* end confdefs.h. */ | |
3447 | #ifdef __STDC__ | |
3448 | # include <limits.h> | |
3449 | #else | |
3450 | # include <assert.h> | |
3451 | #endif | |
c9e4e868 | 3452 | Syntax error |
e7d18957 | 3453 | _ACEOF |
7f7d329e SP |
3454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3455 | case "(($ac_try" in | |
3456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3457 | *) ac_try_echo=$ac_try;; | |
3458 | esac | |
3459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3461 | ac_status=$? |
3462 | grep -v '^ *+' conftest.er1 >conftest.err | |
3463 | rm -f conftest.er1 | |
3464 | cat conftest.err >&5 | |
3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3466 | (exit $ac_status); } >/dev/null; then | |
3467 | if test -s conftest.err; then | |
3468 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 3469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e7d18957 SP |
3470 | else |
3471 | ac_cpp_err= | |
3472 | fi | |
3473 | else | |
3474 | ac_cpp_err=yes | |
3475 | fi | |
3476 | if test -z "$ac_cpp_err"; then | |
3477 | : | |
3478 | else | |
3479 | echo "$as_me: failed program was:" >&5 | |
3480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3481 | ||
3482 | # Broken: fails on valid input. | |
3483 | continue | |
3484 | fi | |
7f7d329e | 3485 | |
e7d18957 SP |
3486 | rm -f conftest.err conftest.$ac_ext |
3487 | ||
7f7d329e | 3488 | # OK, works on sane cases. Now check whether nonexistent headers |
e7d18957 SP |
3489 | # can be detected and how. |
3490 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3491 | /* confdefs.h. */ |
3492 | _ACEOF | |
3493 | cat confdefs.h >>conftest.$ac_ext | |
3494 | cat >>conftest.$ac_ext <<_ACEOF | |
3495 | /* end confdefs.h. */ | |
3496 | #include <ac_nonexistent.h> | |
3497 | _ACEOF | |
7f7d329e SP |
3498 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3499 | case "(($ac_try" in | |
3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3501 | *) ac_try_echo=$ac_try;; | |
3502 | esac | |
3503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3504 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3505 | ac_status=$? |
3506 | grep -v '^ *+' conftest.er1 >conftest.err | |
3507 | rm -f conftest.er1 | |
3508 | cat conftest.err >&5 | |
3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3510 | (exit $ac_status); } >/dev/null; then | |
3511 | if test -s conftest.err; then | |
3512 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 3513 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e7d18957 SP |
3514 | else |
3515 | ac_cpp_err= | |
3516 | fi | |
3517 | else | |
3518 | ac_cpp_err=yes | |
3519 | fi | |
3520 | if test -z "$ac_cpp_err"; then | |
3521 | # Broken: success on invalid input. | |
3522 | continue | |
3523 | else | |
3524 | echo "$as_me: failed program was:" >&5 | |
3525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3526 | ||
3527 | # Passes both tests. | |
3528 | ac_preproc_ok=: | |
3529 | break | |
3530 | fi | |
7f7d329e | 3531 | |
e7d18957 SP |
3532 | rm -f conftest.err conftest.$ac_ext |
3533 | ||
3534 | done | |
3535 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3536 | rm -f conftest.err conftest.$ac_ext | |
3537 | if $ac_preproc_ok; then | |
3538 | : | |
3539 | else | |
3540 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3541 | See \`config.log' for more details." >&5 | |
3542 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3543 | See \`config.log' for more details." >&2;} | |
3544 | { (exit 1); exit 1; }; } | |
3545 | fi | |
3546 | ||
3547 | ac_ext=c | |
3548 | ac_cpp='$CPP $CPPFLAGS' | |
3549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3552 | ||
3553 | ||
7f7d329e SP |
3554 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3555 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3556 | if test "${ac_cv_path_GREP+set}" = set; then | |
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3558 | else | |
3559 | # Extract the first word of "grep ggrep" to use in msg output | |
3560 | if test -z "$GREP"; then | |
3561 | set dummy grep ggrep; ac_prog_name=$2 | |
3562 | if test "${ac_cv_path_GREP+set}" = set; then | |
3563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3564 | else | |
3565 | ac_path_GREP_found=false | |
3566 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3568 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3569 | do | |
3570 | IFS=$as_save_IFS | |
3571 | test -z "$as_dir" && as_dir=. | |
3572 | for ac_prog in grep ggrep; do | |
3573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3574 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3575 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | |
3576 | # Check for GNU ac_path_GREP and select it if it is found. | |
3577 | # Check for GNU $ac_path_GREP | |
3578 | case `"$ac_path_GREP" --version 2>&1` in | |
3579 | *GNU*) | |
3580 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3581 | *) | |
3582 | ac_count=0 | |
3583 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3584 | while : | |
3585 | do | |
3586 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3587 | mv "conftest.tmp" "conftest.in" | |
3588 | cp "conftest.in" "conftest.nl" | |
3589 | echo 'GREP' >> "conftest.nl" | |
3590 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3591 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3592 | ac_count=`expr $ac_count + 1` | |
3593 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3594 | # Best one so far, save it but keep looking for a better one | |
3595 | ac_cv_path_GREP="$ac_path_GREP" | |
3596 | ac_path_GREP_max=$ac_count | |
3597 | fi | |
3598 | # 10*(2^10) chars as input seems more than enough | |
3599 | test $ac_count -gt 10 && break | |
3600 | done | |
3601 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3602 | esac | |
3603 | ||
3604 | ||
3605 | $ac_path_GREP_found && break 3 | |
3606 | done | |
3607 | done | |
3608 | ||
3609 | done | |
3610 | IFS=$as_save_IFS | |
3611 | ||
3612 | ||
3613 | fi | |
3614 | ||
3615 | GREP="$ac_cv_path_GREP" | |
3616 | if test -z "$GREP"; then | |
3617 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3618 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3619 | { (exit 1); exit 1; }; } | |
3620 | fi | |
3621 | ||
3622 | else | |
3623 | ac_cv_path_GREP=$GREP | |
3624 | fi | |
3625 | ||
3626 | ||
3627 | fi | |
3628 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3629 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3630 | GREP="$ac_cv_path_GREP" | |
3631 | ||
3632 | ||
3633 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3634 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3635 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3637 | else | |
3638 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3639 | then ac_cv_path_EGREP="$GREP -E" | |
3640 | else | |
3641 | # Extract the first word of "egrep" to use in msg output | |
3642 | if test -z "$EGREP"; then | |
3643 | set dummy egrep; ac_prog_name=$2 | |
3644 | if test "${ac_cv_path_EGREP+set}" = set; then | |
e7d18957 SP |
3645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3646 | else | |
7f7d329e SP |
3647 | ac_path_EGREP_found=false |
3648 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3650 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3651 | do | |
3652 | IFS=$as_save_IFS | |
3653 | test -z "$as_dir" && as_dir=. | |
3654 | for ac_prog in egrep; do | |
3655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3656 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3657 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | |
3658 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3659 | # Check for GNU $ac_path_EGREP | |
3660 | case `"$ac_path_EGREP" --version 2>&1` in | |
3661 | *GNU*) | |
3662 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3663 | *) | |
3664 | ac_count=0 | |
3665 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3666 | while : | |
3667 | do | |
3668 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3669 | mv "conftest.tmp" "conftest.in" | |
3670 | cp "conftest.in" "conftest.nl" | |
3671 | echo 'EGREP' >> "conftest.nl" | |
3672 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3673 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3674 | ac_count=`expr $ac_count + 1` | |
3675 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3676 | # Best one so far, save it but keep looking for a better one | |
3677 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3678 | ac_path_EGREP_max=$ac_count | |
e7d18957 | 3679 | fi |
7f7d329e SP |
3680 | # 10*(2^10) chars as input seems more than enough |
3681 | test $ac_count -gt 10 && break | |
3682 | done | |
3683 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3684 | esac | |
3685 | ||
3686 | ||
3687 | $ac_path_EGREP_found && break 3 | |
3688 | done | |
3689 | done | |
3690 | ||
3691 | done | |
3692 | IFS=$as_save_IFS | |
3693 | ||
3694 | ||
e7d18957 | 3695 | fi |
e7d18957 | 3696 | |
7f7d329e SP |
3697 | EGREP="$ac_cv_path_EGREP" |
3698 | if test -z "$EGREP"; then | |
3699 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3700 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3701 | { (exit 1); exit 1; }; } | |
3702 | fi | |
3703 | ||
3704 | else | |
3705 | ac_cv_path_EGREP=$EGREP | |
3706 | fi | |
3707 | ||
3708 | ||
3709 | fi | |
3710 | fi | |
3711 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3712 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3713 | EGREP="$ac_cv_path_EGREP" | |
e7d18957 | 3714 | |
7f7d329e SP |
3715 | |
3716 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3717 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
e7d18957 SP |
3718 | if test "${ac_cv_header_stdc+set}" = set; then |
3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3720 | else | |
3721 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3722 | /* confdefs.h. */ |
3723 | _ACEOF | |
3724 | cat confdefs.h >>conftest.$ac_ext | |
3725 | cat >>conftest.$ac_ext <<_ACEOF | |
3726 | /* end confdefs.h. */ | |
3727 | #include <stdlib.h> | |
3728 | #include <stdarg.h> | |
3729 | #include <string.h> | |
3730 | #include <float.h> | |
3731 | ||
3732 | int | |
3733 | main () | |
3734 | { | |
3735 | ||
3736 | ; | |
3737 | return 0; | |
3738 | } | |
3739 | _ACEOF | |
3740 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3741 | if { (ac_try="$ac_compile" |
3742 | case "(($ac_try" in | |
3743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3744 | *) ac_try_echo=$ac_try;; | |
3745 | esac | |
3746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3747 | (eval "$ac_compile") 2>conftest.er1 | |
e7d18957 | 3748 | ac_status=$? |
c9e4e868 SP |
3749 | grep -v '^ *+' conftest.er1 >conftest.err |
3750 | rm -f conftest.er1 | |
3751 | cat conftest.err >&5 | |
e7d18957 SP |
3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3753 | (exit $ac_status); } && | |
7f7d329e SP |
3754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3755 | { (case "(($ac_try" in | |
3756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3757 | *) ac_try_echo=$ac_try;; | |
3758 | esac | |
3759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3760 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
3761 | ac_status=$? |
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3763 | (exit $ac_status); }; } && | |
3764 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
3765 | { (case "(($ac_try" in |
3766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3767 | *) ac_try_echo=$ac_try;; | |
3768 | esac | |
3769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3770 | (eval "$ac_try") 2>&5 | |
e7d18957 SP |
3771 | ac_status=$? |
3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3773 | (exit $ac_status); }; }; then | |
3774 | ac_cv_header_stdc=yes | |
3775 | else | |
3776 | echo "$as_me: failed program was:" >&5 | |
3777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3778 | ||
7f7d329e | 3779 | ac_cv_header_stdc=no |
e7d18957 | 3780 | fi |
7f7d329e SP |
3781 | |
3782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e7d18957 SP |
3783 | |
3784 | if test $ac_cv_header_stdc = yes; then | |
3785 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3786 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3787 | /* confdefs.h. */ |
3788 | _ACEOF | |
3789 | cat confdefs.h >>conftest.$ac_ext | |
3790 | cat >>conftest.$ac_ext <<_ACEOF | |
3791 | /* end confdefs.h. */ | |
3792 | #include <string.h> | |
3793 | ||
3794 | _ACEOF | |
3795 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3796 | $EGREP "memchr" >/dev/null 2>&1; then | |
3797 | : | |
3798 | else | |
3799 | ac_cv_header_stdc=no | |
3800 | fi | |
3801 | rm -f conftest* | |
3802 | ||
3803 | fi | |
3804 | ||
3805 | if test $ac_cv_header_stdc = yes; then | |
3806 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3807 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3808 | /* confdefs.h. */ |
3809 | _ACEOF | |
3810 | cat confdefs.h >>conftest.$ac_ext | |
3811 | cat >>conftest.$ac_ext <<_ACEOF | |
3812 | /* end confdefs.h. */ | |
3813 | #include <stdlib.h> | |
3814 | ||
3815 | _ACEOF | |
3816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3817 | $EGREP "free" >/dev/null 2>&1; then | |
3818 | : | |
3819 | else | |
3820 | ac_cv_header_stdc=no | |
3821 | fi | |
3822 | rm -f conftest* | |
3823 | ||
3824 | fi | |
3825 | ||
3826 | if test $ac_cv_header_stdc = yes; then | |
3827 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3828 | if test "$cross_compiling" = yes; then | |
3829 | : | |
3830 | else | |
3831 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3832 | /* confdefs.h. */ |
3833 | _ACEOF | |
3834 | cat confdefs.h >>conftest.$ac_ext | |
3835 | cat >>conftest.$ac_ext <<_ACEOF | |
3836 | /* end confdefs.h. */ | |
3837 | #include <ctype.h> | |
7f7d329e | 3838 | #include <stdlib.h> |
e7d18957 SP |
3839 | #if ((' ' & 0x0FF) == 0x020) |
3840 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3841 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3842 | #else | |
3843 | # define ISLOWER(c) \ | |
c9e4e868 SP |
3844 | (('a' <= (c) && (c) <= 'i') \ |
3845 | || ('j' <= (c) && (c) <= 'r') \ | |
3846 | || ('s' <= (c) && (c) <= 'z')) | |
e7d18957 SP |
3847 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3848 | #endif | |
3849 | ||
3850 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3851 | int | |
3852 | main () | |
3853 | { | |
3854 | int i; | |
3855 | for (i = 0; i < 256; i++) | |
3856 | if (XOR (islower (i), ISLOWER (i)) | |
c9e4e868 | 3857 | || toupper (i) != TOUPPER (i)) |
7f7d329e SP |
3858 | return 2; |
3859 | return 0; | |
e7d18957 SP |
3860 | } |
3861 | _ACEOF | |
3862 | rm -f conftest$ac_exeext | |
7f7d329e SP |
3863 | if { (ac_try="$ac_link" |
3864 | case "(($ac_try" in | |
3865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3866 | *) ac_try_echo=$ac_try;; | |
3867 | esac | |
3868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3869 | (eval "$ac_link") 2>&5 | |
e7d18957 SP |
3870 | ac_status=$? |
3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3872 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7f7d329e SP |
3873 | { (case "(($ac_try" in |
3874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3875 | *) ac_try_echo=$ac_try;; | |
3876 | esac | |
3877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3878 | (eval "$ac_try") 2>&5 | |
e7d18957 SP |
3879 | ac_status=$? |
3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3881 | (exit $ac_status); }; }; then | |
3882 | : | |
3883 | else | |
3884 | echo "$as_me: program exited with status $ac_status" >&5 | |
3885 | echo "$as_me: failed program was:" >&5 | |
3886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3887 | ||
3888 | ( exit $ac_status ) | |
3889 | ac_cv_header_stdc=no | |
3890 | fi | |
7f7d329e | 3891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e7d18957 | 3892 | fi |
7f7d329e SP |
3893 | |
3894 | ||
e7d18957 SP |
3895 | fi |
3896 | fi | |
7f7d329e SP |
3897 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3898 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
e7d18957 SP |
3899 | if test $ac_cv_header_stdc = yes; then |
3900 | ||
3901 | cat >>confdefs.h <<\_ACEOF | |
3902 | #define STDC_HEADERS 1 | |
3903 | _ACEOF | |
3904 | ||
3905 | fi | |
3906 | ||
3907 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3908 | ||
3909 | ||
3910 | ||
3911 | ||
3912 | ||
3913 | ||
3914 | ||
3915 | ||
3916 | ||
3917 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
c9e4e868 | 3918 | inttypes.h stdint.h unistd.h |
e7d18957 SP |
3919 | do |
3920 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7f7d329e SP |
3921 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e7d18957 SP |
3924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3925 | else | |
3926 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3927 | /* confdefs.h. */ |
3928 | _ACEOF | |
3929 | cat confdefs.h >>conftest.$ac_ext | |
3930 | cat >>conftest.$ac_ext <<_ACEOF | |
3931 | /* end confdefs.h. */ | |
3932 | $ac_includes_default | |
3933 | ||
3934 | #include <$ac_header> | |
3935 | _ACEOF | |
3936 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3937 | if { (ac_try="$ac_compile" |
3938 | case "(($ac_try" in | |
3939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3940 | *) ac_try_echo=$ac_try;; | |
3941 | esac | |
3942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3943 | (eval "$ac_compile") 2>conftest.er1 | |
e7d18957 | 3944 | ac_status=$? |
c9e4e868 SP |
3945 | grep -v '^ *+' conftest.er1 >conftest.err |
3946 | rm -f conftest.er1 | |
3947 | cat conftest.err >&5 | |
e7d18957 SP |
3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3949 | (exit $ac_status); } && | |
7f7d329e SP |
3950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3951 | { (case "(($ac_try" in | |
3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3953 | *) ac_try_echo=$ac_try;; | |
3954 | esac | |
3955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3956 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
3957 | ac_status=$? |
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3959 | (exit $ac_status); }; } && | |
3960 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
3961 | { (case "(($ac_try" in |
3962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3963 | *) ac_try_echo=$ac_try;; | |
3964 | esac | |
3965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3966 | (eval "$ac_try") 2>&5 | |
e7d18957 SP |
3967 | ac_status=$? |
3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3969 | (exit $ac_status); }; }; then | |
3970 | eval "$as_ac_Header=yes" | |
3971 | else | |
3972 | echo "$as_me: failed program was:" >&5 | |
3973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3974 | ||
7f7d329e | 3975 | eval "$as_ac_Header=no" |
e7d18957 | 3976 | fi |
7f7d329e SP |
3977 | |
3978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e7d18957 | 3979 | fi |
7f7d329e SP |
3980 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3981 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3982 | echo "${ECHO_T}$ac_res" >&6; } | |
e7d18957 SP |
3983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3984 | cat >>confdefs.h <<_ACEOF | |
3985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3986 | _ACEOF | |
3987 | ||
3988 | fi | |
3989 | ||
3990 | done | |
3991 | ||
3992 | ||
3993 | ||
3994 | for ac_header in sys/types.h | |
3995 | do | |
3996 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7f7d329e SP |
3997 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
3998 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3999 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4000 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e7d18957 SP |
4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4002 | fi | |
7f7d329e SP |
4003 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4004 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4005 | echo "${ECHO_T}$ac_res" >&6; } | |
e7d18957 SP |
4006 | else |
4007 | # Is the header compilable? | |
7f7d329e SP |
4008 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4009 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
e7d18957 | 4010 | cat >conftest.$ac_ext <<_ACEOF |
e7d18957 SP |
4011 | /* confdefs.h. */ |
4012 | _ACEOF | |
4013 | cat confdefs.h >>conftest.$ac_ext | |
4014 | cat >>conftest.$ac_ext <<_ACEOF | |
4015 | /* end confdefs.h. */ | |
4016 | $ac_includes_default | |
4017 | #include <$ac_header> | |
4018 | _ACEOF | |
4019 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4020 | if { (ac_try="$ac_compile" |
4021 | case "(($ac_try" in | |
4022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4023 | *) ac_try_echo=$ac_try;; | |
4024 | esac | |
4025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4026 | (eval "$ac_compile") 2>conftest.er1 | |
e7d18957 | 4027 | ac_status=$? |
c9e4e868 SP |
4028 | grep -v '^ *+' conftest.er1 >conftest.err |
4029 | rm -f conftest.er1 | |
4030 | cat conftest.err >&5 | |
e7d18957 SP |
4031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4032 | (exit $ac_status); } && | |
7f7d329e SP |
4033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4034 | { (case "(($ac_try" in | |
4035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4036 | *) ac_try_echo=$ac_try;; | |
4037 | esac | |
4038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4039 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
4040 | ac_status=$? |
4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4042 | (exit $ac_status); }; } && | |
4043 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
4044 | { (case "(($ac_try" in |
4045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4046 | *) ac_try_echo=$ac_try;; | |
4047 | esac | |
4048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4049 | (eval "$ac_try") 2>&5 | |
e7d18957 SP |
4050 | ac_status=$? |
4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4052 | (exit $ac_status); }; }; then | |
4053 | ac_header_compiler=yes | |
4054 | else | |
4055 | echo "$as_me: failed program was:" >&5 | |
4056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4057 | ||
7f7d329e | 4058 | ac_header_compiler=no |
e7d18957 | 4059 | fi |
7f7d329e SP |
4060 | |
4061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4062 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4063 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
e7d18957 SP |
4064 | |
4065 | # Is the header present? | |
7f7d329e SP |
4066 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4067 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
e7d18957 | 4068 | cat >conftest.$ac_ext <<_ACEOF |
e7d18957 SP |
4069 | /* confdefs.h. */ |
4070 | _ACEOF | |
4071 | cat confdefs.h >>conftest.$ac_ext | |
4072 | cat >>conftest.$ac_ext <<_ACEOF | |
4073 | /* end confdefs.h. */ | |
4074 | #include <$ac_header> | |
4075 | _ACEOF | |
7f7d329e SP |
4076 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4077 | case "(($ac_try" in | |
4078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4079 | *) ac_try_echo=$ac_try;; | |
4080 | esac | |
4081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4082 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
4083 | ac_status=$? |
4084 | grep -v '^ *+' conftest.er1 >conftest.err | |
4085 | rm -f conftest.er1 | |
4086 | cat conftest.err >&5 | |
4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4088 | (exit $ac_status); } >/dev/null; then | |
4089 | if test -s conftest.err; then | |
4090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 4091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e7d18957 SP |
4092 | else |
4093 | ac_cpp_err= | |
4094 | fi | |
4095 | else | |
4096 | ac_cpp_err=yes | |
4097 | fi | |
4098 | if test -z "$ac_cpp_err"; then | |
4099 | ac_header_preproc=yes | |
4100 | else | |
4101 | echo "$as_me: failed program was:" >&5 | |
4102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4103 | ||
4104 | ac_header_preproc=no | |
4105 | fi | |
7f7d329e | 4106 | |
e7d18957 | 4107 | rm -f conftest.err conftest.$ac_ext |
7f7d329e SP |
4108 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4109 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
e7d18957 SP |
4110 | |
4111 | # So? What about this header? | |
c9e4e868 SP |
4112 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4113 | yes:no: ) | |
e7d18957 SP |
4114 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4115 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c9e4e868 SP |
4116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4117 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4118 | ac_header_preproc=yes | |
e7d18957 | 4119 | ;; |
c9e4e868 | 4120 | no:yes:* ) |
e7d18957 SP |
4121 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4122 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c9e4e868 SP |
4123 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4124 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4125 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4126 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4127 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4128 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e7d18957 SP |
4129 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4130 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
c9e4e868 SP |
4131 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4132 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7f7d329e | 4133 | |
e7d18957 SP |
4134 | ;; |
4135 | esac | |
7f7d329e SP |
4136 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e7d18957 SP |
4139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4140 | else | |
c9e4e868 | 4141 | eval "$as_ac_Header=\$ac_header_preproc" |
e7d18957 | 4142 | fi |
7f7d329e SP |
4143 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4144 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4145 | echo "${ECHO_T}$ac_res" >&6; } | |
e7d18957 SP |
4146 | |
4147 | fi | |
4148 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4149 | cat >>confdefs.h <<_ACEOF | |
4150 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4151 | _ACEOF | |
4152 | ||
4153 | fi | |
4154 | ||
4155 | done | |
4156 | ||
4157 | ||
4158 | CPPFLAGS="-D_BSD_SOURCE -D_USE_BSD_SIGNAL ${CPPFLAGS}" | |
4159 | ||
7f7d329e | 4160 | # Check whether --enable-debug was given. |
e7d18957 | 4161 | if test "${enable_debug+set}" = set; then |
7f7d329e | 4162 | enableval=$enable_debug; if test "$enableval" = "no" |
e7d18957 SP |
4163 | then |
4164 | DUMPDEBUG="" | |
4165 | RESTOREDEBUG="" | |
4166 | echo "Not including debugging code" | |
4167 | else | |
4168 | DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG" | |
4169 | RESTOREDEBUG="-DDIRDEBUG" | |
4170 | echo "Including debugging code" | |
4171 | fi | |
4172 | else | |
4173 | DUMPDEBUG="" | |
4174 | RESTOREDEBUG="" | |
4175 | echo "Not including debugging code by default" | |
4176 | ||
7f7d329e SP |
4177 | fi |
4178 | ||
e7d18957 SP |
4179 | |
4180 | ||
4181 | ||
7f7d329e | 4182 | # Check whether --enable-static was given. |
e7d18957 | 4183 | if test "${enable_static+set}" = set; then |
7f7d329e | 4184 | enableval=$enable_static; if test "$enableval" = "no" |
e7d18957 SP |
4185 | then |
4186 | STATIC="" | |
4187 | echo "Linking dump and restore dynamically" | |
4188 | else | |
4189 | STATIC="-static" | |
4190 | echo "Linking dump and restore statically" | |
4191 | fi | |
4192 | ||
4193 | else | |
4194 | STATIC="" | |
4195 | echo "Linking dump and restore dynamically by default" | |
4196 | ||
7f7d329e SP |
4197 | fi |
4198 | ||
e7d18957 SP |
4199 | |
4200 | ||
7f7d329e | 4201 | # Check whether --enable-staticz was given. |
d7783603 | 4202 | if test "${enable_staticz+set}" = set; then |
7f7d329e | 4203 | enableval=$enable_staticz; if test "$enableval" = "no" |
d7783603 SP |
4204 | then |
4205 | STATICZ="no" | |
4206 | echo "Linking libz and libbz2 dynamically" | |
4207 | else | |
4208 | STATICZ="yes" | |
4209 | echo "Linking libz and libbz2 statically" | |
4210 | fi | |
4211 | ||
4212 | else | |
4213 | STATICZ="no" | |
4214 | echo "Linking libz and libbz2 dynamically by default" | |
4215 | ||
7f7d329e SP |
4216 | fi |
4217 | ||
d7783603 | 4218 | |
7f7d329e | 4219 | # Check whether --enable-rmt was given. |
e7d18957 | 4220 | if test "${enable_rmt+set}" = set; then |
7f7d329e | 4221 | enableval=$enable_rmt; if test "$enableval" = "no" |
e7d18957 SP |
4222 | then |
4223 | RMTDIR="" | |
4224 | RMTMAKEFILE="" | |
4225 | echo "Not compiling rmt" | |
4226 | else | |
4227 | RMTDIR="rmt" | |
4228 | RMTMAKEFILE="rmt/Makefile" | |
4229 | echo "Compiling rmt" | |
4230 | fi | |
4231 | ||
4232 | else | |
4233 | RMTDIR="rmt" | |
4234 | RMTMAKEFILE="rmt/Makefile" | |
4235 | echo "Compiling rmt by default" | |
4236 | ||
7f7d329e SP |
4237 | fi |
4238 | ||
e7d18957 SP |
4239 | |
4240 | ||
7f7d329e | 4241 | # Check whether --enable-ermt was given. |
e7d18957 | 4242 | if test "${enable_ermt+set}" = set; then |
7f7d329e | 4243 | enableval=$enable_ermt; if test "$enableval" = "no" |
e7d18957 SP |
4244 | then |
4245 | ERMT="" | |
4246 | CRYPTO="" | |
4247 | echo "Not compiling ermt" | |
4248 | else | |
4249 | if test "$RMTDIR" = "" | |
4250 | then | |
4251 | { { echo "$as_me:$LINENO: error: ermt requires --enable-rmt" >&5 | |
4252 | echo "$as_me: error: ermt requires --enable-rmt" >&2;} | |
4253 | { (exit 1); exit 1; }; } | |
4254 | fi | |
4255 | ERMT="ermt" | |
4256 | CRYPTO="-lcrypto" | |
4257 | echo "Compiling ermt" | |
4258 | fi | |
4259 | ||
4260 | else | |
4261 | ERMT="" | |
4262 | CRYPTO="" | |
4263 | echo "Not compiling ermt by default" | |
4264 | ||
7f7d329e SP |
4265 | fi |
4266 | ||
e7d18957 SP |
4267 | |
4268 | ||
4269 | ||
7f7d329e | 4270 | # Check whether --enable-kerberos was given. |
e7d18957 | 4271 | if test "${enable_kerberos+set}" = set; then |
7f7d329e | 4272 | enableval=$enable_kerberos; if test "$enableval" = "yes" |
e7d18957 SP |
4273 | then |
4274 | OPTDEFS="-DKERBEROS" | |
4275 | echo "Compiling kerberos extensions" | |
4276 | else | |
4277 | OPTDEFS="" | |
4278 | echo "Not compiling kerberos extensions" | |
4279 | fi | |
4280 | ||
4281 | else | |
4282 | OPTDEFS="" | |
4283 | echo "Not compiling kerberos extensions by default" | |
4284 | ||
7f7d329e SP |
4285 | fi |
4286 | ||
e7d18957 SP |
4287 | |
4288 | ||
7f7d329e | 4289 | # Check whether --enable-readline was given. |
e7d18957 | 4290 | if test "${enable_readline+set}" = set; then |
7f7d329e | 4291 | enableval=$enable_readline; if test "$enableval" = "no" |
e7d18957 SP |
4292 | then |
4293 | READLINE="" | |
4294 | echo "Not including readline support" | |
4295 | else | |
0556ca22 | 4296 | READLINE="yes" |
e7d18957 SP |
4297 | |
4298 | cat >>confdefs.h <<\_ACEOF | |
4299 | #define HAVE_READLINE 1 | |
4300 | _ACEOF | |
4301 | ||
4302 | echo "Including readline support" | |
4303 | fi | |
4304 | ||
4305 | else | |
0556ca22 | 4306 | READLINE="yes" |
e7d18957 SP |
4307 | |
4308 | cat >>confdefs.h <<\_ACEOF | |
4309 | #define HAVE_READLINE 1 | |
4310 | _ACEOF | |
4311 | ||
4312 | echo "Including readline support by default" | |
4313 | ||
7f7d329e SP |
4314 | fi |
4315 | ||
e7d18957 | 4316 | |
7f7d329e | 4317 | # Check whether --enable-oldstylefscript was given. |
e7d18957 | 4318 | if test "${enable_oldstylefscript+set}" = set; then |
7f7d329e | 4319 | enableval=$enable_oldstylefscript; if test "$enableval" = "yes" |
e7d18957 SP |
4320 | then |
4321 | ||
4322 | cat >>confdefs.h <<\_ACEOF | |
4323 | #define OLD_STYLE_FSCRIPT 1 | |
4324 | _ACEOF | |
4325 | ||
4326 | echo "Using old style F script" | |
4327 | else | |
4328 | echo "Using new style F script" | |
4329 | fi | |
4330 | ||
4331 | else | |
4332 | echo "Using new style F script by default" | |
4333 | ||
7f7d329e SP |
4334 | fi |
4335 | ||
e7d18957 | 4336 | |
7f7d329e | 4337 | # Check whether --enable-largefile was given. |
e7d18957 | 4338 | if test "${enable_largefile+set}" = set; then |
7f7d329e | 4339 | enableval=$enable_largefile; if test "$enableval" = "yes" |
e7d18957 SP |
4340 | then |
4341 | ||
4342 | cat >>confdefs.h <<\_ACEOF | |
4343 | #define USE_LFS 1 | |
4344 | _ACEOF | |
4345 | ||
4346 | echo "Enabling Large File System support" | |
4347 | else | |
4348 | echo "Not enabling Large File System support" | |
4349 | fi | |
4350 | ||
4351 | else | |
4352 | ||
4353 | cat >>confdefs.h <<\_ACEOF | |
4354 | #define USE_LFS 1 | |
4355 | _ACEOF | |
4356 | ||
4357 | echo "Enabling Large File System support by default" | |
d6967896 | 4358 | |
7f7d329e SP |
4359 | fi |
4360 | ||
d6967896 | 4361 | |
7f7d329e | 4362 | # Check whether --enable-qfa was given. |
35b24fb7 | 4363 | if test "${enable_qfa+set}" = set; then |
7f7d329e | 4364 | enableval=$enable_qfa; if test "$enableval" = "yes" |
35b24fb7 | 4365 | then |
e7d18957 SP |
4366 | |
4367 | cat >>confdefs.h <<\_ACEOF | |
35b24fb7 | 4368 | #define USE_QFA 1 |
1daf06b9 | 4369 | _ACEOF |
35b24fb7 | 4370 | |
1daf06b9 SP |
4371 | echo "Enabling Quick File Access support" |
4372 | else | |
4373 | echo "Not enabling Quick File Access support" | |
35b24fb7 SP |
4374 | fi |
4375 | ||
4376 | else | |
e7d18957 SP |
4377 | |
4378 | cat >>confdefs.h <<\_ACEOF | |
1daf06b9 SP |
4379 | #define USE_QFA 1 |
4380 | _ACEOF | |
35b24fb7 | 4381 | |
1daf06b9 | 4382 | echo "Enabling Quick File Access support by default" |
35b24fb7 | 4383 | |
7f7d329e SP |
4384 | fi |
4385 | ||
35b24fb7 | 4386 | |
7f7d329e | 4387 | # Check whether --enable-qfadebug was given. |
35b24fb7 | 4388 | if test "${enable_qfadebug+set}" = set; then |
7f7d329e | 4389 | enableval=$enable_qfadebug; if test "$enableval" = "yes" |
35b24fb7 | 4390 | then |
e7d18957 SP |
4391 | |
4392 | cat >>confdefs.h <<\_ACEOF | |
35b24fb7 | 4393 | #define DEBUG_QFA 1 |
1daf06b9 | 4394 | _ACEOF |
35b24fb7 | 4395 | |
1daf06b9 SP |
4396 | echo "Including Quick File Access debugging code" |
4397 | else | |
4398 | echo "Not including Quick File Access debugging code" | |
35b24fb7 SP |
4399 | fi |
4400 | ||
4401 | else | |
1daf06b9 | 4402 | echo "Not including Quick File Access debugging code by default" |
35b24fb7 | 4403 | |
7f7d329e SP |
4404 | fi |
4405 | ||
35b24fb7 | 4406 | |
7f7d329e | 4407 | # Check whether --enable-macosx was given. |
d1925e0c | 4408 | if test "${enable_macosx+set}" = set; then |
7f7d329e | 4409 | enableval=$enable_macosx; if test "$enableval" = "yes" |
d1925e0c SP |
4410 | then |
4411 | ||
4412 | cat >>confdefs.h <<\_ACEOF | |
4413 | #define DUMP_MACOSX 1 | |
4414 | _ACEOF | |
4415 | ||
4416 | echo "Including Mac OSX restore compatibility code" | |
4417 | else | |
4418 | echo "Not including Mac OSX restore compatibility code" | |
4419 | fi | |
4420 | ||
4421 | else | |
4422 | echo "Not including Mac OSX restore compatibility code by default" | |
4423 | ||
7f7d329e SP |
4424 | fi |
4425 | ||
4426 | ||
4427 | # Check whether --enable-transselinux was given. | |
4428 | if test "${enable_transselinux+set}" = set; then | |
4429 | enableval=$enable_transselinux; if test "$enableval" = "yes" | |
4430 | then | |
4431 | LTRANSSELINUX="-lselinux" | |
4432 | CCTRANSSELINUX="-DTRANSSELINUX" | |
4433 | echo "restore can translate SELinux EAs" | |
4434 | else | |
4435 | LTRANSSELINUX="" | |
4436 | CCTRANSSELINUX="" | |
4437 | echo "restore can not translate SELinux EAs" | |
4438 | fi | |
4439 | ||
4440 | else | |
4441 | LTRANSSELINUX="-lselinux" | |
4442 | CCTRANSSELINUX="-DTRANSSELINUX" | |
4443 | echo "restore can translate SELinux EAs by default" | |
4444 | ||
4445 | fi | |
4446 | ||
4447 | ||
4448 | ||
d1925e0c SP |
4449 | |
4450 | ||
35b24fb7 | 4451 | |
7f7d329e | 4452 | # Check whether --with-cc was given. |
1227625a | 4453 | if test "${with_cc+set}" = set; then |
7f7d329e SP |
4454 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
4455 | echo "${ECHO_T}CC=$withval" >&6; } | |
1227625a SP |
4456 | CC=$withval |
4457 | else | |
4458 | if test -z "$CC" ; then CC=cc; fi | |
7f7d329e SP |
4459 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
4460 | echo "${ECHO_T}CC defaults to $CC" >&6; } | |
4461 | fi | |
4462 | export CC | |
1daf06b9 | 4463 | |
1227625a SP |
4464 | |
4465 | ||
7f7d329e | 4466 | # Check whether --with-linker was given. |
1227625a | 4467 | if test "${with_linker+set}" = set; then |
7f7d329e SP |
4468 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
4469 | echo "${ECHO_T}LD=$withval" >&6; } | |
1227625a SP |
4470 | LD=$withval |
4471 | else | |
4472 | if test -z "$LD" ; then LD=$CC; fi | |
7f7d329e SP |
4473 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
4474 | echo "${ECHO_T}LD defaults to $LD" >&6; } | |
4475 | fi | |
4476 | export LD | |
1daf06b9 | 4477 | |
1227625a SP |
4478 | |
4479 | ||
7f7d329e | 4480 | # Check whether --with-ccopts was given. |
1227625a | 4481 | if test "${with_ccopts+set}" = set; then |
7f7d329e SP |
4482 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
4483 | echo "${ECHO_T}CCOPTS is $withval" >&6; } | |
1227625a SP |
4484 | CCOPTS=$withval |
4485 | CFLAGS="$CFLAGS $withval" | |
4486 | else | |
4487 | CCOPTS= | |
7f7d329e SP |
4488 | fi |
4489 | ||
1227625a SP |
4490 | |
4491 | ||
7f7d329e | 4492 | # Check whether --with-ldopts was given. |
1227625a | 4493 | if test "${with_ldopts+set}" = set; then |
7f7d329e SP |
4494 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
4495 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } | |
e95b2aff SP |
4496 | LDOPTS=$withval |
4497 | LDFLAGS="$LDFLAGS $withval" | |
1227625a | 4498 | else |
e95b2aff | 4499 | LDOPTS= |
7f7d329e SP |
4500 | fi |
4501 | ||
1227625a SP |
4502 | |
4503 | ||
7f7d329e | 4504 | # Check whether --with-binowner was given. |
1227625a | 4505 | if test "${with_binowner+set}" = set; then |
7f7d329e SP |
4506 | withval=$with_binowner; { echo "$as_me:$LINENO: result: BINOWNER is $withval" >&5 |
4507 | echo "${ECHO_T}BINOWNER is $withval" >&6; } | |
1227625a SP |
4508 | BINOWNER=$withval |
4509 | else | |
4510 | BINOWNER=root | |
4511 | echo "BINOWNER defaults to $BINOWNER" | |
4512 | ||
7f7d329e SP |
4513 | fi |
4514 | ||
1227625a SP |
4515 | |
4516 | ||
7f7d329e | 4517 | # Check whether --with-bingrp was given. |
1227625a | 4518 | if test "${with_bingrp+set}" = set; then |
7f7d329e SP |
4519 | withval=$with_bingrp; { echo "$as_me:$LINENO: result: BINGRP is $withval" >&5 |
4520 | echo "${ECHO_T}BINGRP is $withval" >&6; } | |
1227625a SP |
4521 | BINGRP=$withval |
4522 | else | |
4523 | BINGRP=tty | |
4524 | echo "BINGRP defaults to $BINGRP" | |
4525 | ||
7f7d329e SP |
4526 | fi |
4527 | ||
1227625a SP |
4528 | |
4529 | ||
7f7d329e | 4530 | # Check whether --with-binmode was given. |
1227625a | 4531 | if test "${with_binmode+set}" = set; then |
7f7d329e SP |
4532 | withval=$with_binmode; { echo "$as_me:$LINENO: result: BINMODE is $withval" >&5 |
4533 | echo "${ECHO_T}BINMODE is $withval" >&6; } | |
1227625a SP |
4534 | BINMODE=$withval |
4535 | else | |
882090d1 | 4536 | BINMODE=0755 |
1227625a SP |
4537 | echo "BINMODE defaults to $BINMODE" |
4538 | ||
7f7d329e SP |
4539 | fi |
4540 | ||
1227625a SP |
4541 | |
4542 | ||
7f7d329e | 4543 | # Check whether --with-manowner was given. |
1227625a | 4544 | if test "${with_manowner+set}" = set; then |
7f7d329e SP |
4545 | withval=$with_manowner; { echo "$as_me:$LINENO: result: MANOWNER is $withval" >&5 |
4546 | echo "${ECHO_T}MANOWNER is $withval" >&6; } | |
1227625a SP |
4547 | MANOWNER=$withval |
4548 | else | |
4549 | MANOWNER=man | |
4550 | echo "MANOWNER defaults to $MANOWNER" | |
4551 | ||
7f7d329e SP |
4552 | fi |
4553 | ||
1227625a SP |
4554 | |
4555 | ||
7f7d329e | 4556 | # Check whether --with-mangrp was given. |
1227625a | 4557 | if test "${with_mangrp+set}" = set; then |
7f7d329e SP |
4558 | withval=$with_mangrp; { echo "$as_me:$LINENO: result: MANGRP is $withval" >&5 |
4559 | echo "${ECHO_T}MANGRP is $withval" >&6; } | |
1227625a SP |
4560 | MANGRP=$withval |
4561 | else | |
4562 | MANGRP=tty | |
4563 | echo "MANGRP defaults to $MANGRP" | |
4564 | ||
7f7d329e SP |
4565 | fi |
4566 | ||
1227625a SP |
4567 | |
4568 | ||
7f7d329e | 4569 | # Check whether --with-manmode was given. |
1227625a | 4570 | if test "${with_manmode+set}" = set; then |
7f7d329e SP |
4571 | withval=$with_manmode; { echo "$as_me:$LINENO: result: MANMODE is $withval" >&5 |
4572 | echo "${ECHO_T}MANMODE is $withval" >&6; } | |
1227625a SP |
4573 | MANMODE=$withval |
4574 | else | |
882090d1 | 4575 | MANMODE=0644 |
1227625a SP |
4576 | echo "MANMODE defaults to $MANMODE" |
4577 | ||
7f7d329e SP |
4578 | fi |
4579 | ||
1227625a SP |
4580 | |
4581 | ||
7f7d329e | 4582 | # Check whether --with-dumpdatespath was given. |
8d4197bb | 4583 | if test "${with_dumpdatespath+set}" = set; then |
7f7d329e SP |
4584 | withval=$with_dumpdatespath; { echo "$as_me:$LINENO: result: DUMPDATESPATH is $withval" >&5 |
4585 | echo "${ECHO_T}DUMPDATESPATH is $withval" >&6; } | |
8d4197bb SP |
4586 | DUMPDATESPATH=$withval |
4587 | else | |
60d46c35 | 4588 | DUMPDATESPATH="${sysconfdir}/dumpdates" |
8d4197bb SP |
4589 | echo "DUMPDATESPATH defaults to $DUMPDATESPATH" |
4590 | ||
7f7d329e SP |
4591 | fi |
4592 | ||
8d4197bb | 4593 | |
7f7d329e SP |
4594 | { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5 |
4595 | echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; } | |
1daf06b9 SP |
4596 | if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then |
4597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1daf06b9 | 4598 | else |
d3e542e7 | 4599 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4600 | /* confdefs.h. */ |
4601 | _ACEOF | |
4602 | cat confdefs.h >>conftest.$ac_ext | |
4603 | cat >>conftest.$ac_ext <<_ACEOF | |
4604 | /* end confdefs.h. */ | |
1227625a | 4605 | #include <ext2fs/ext2fs.h> |
1daf06b9 | 4606 | _ACEOF |
7f7d329e SP |
4607 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4608 | case "(($ac_try" in | |
4609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4610 | *) ac_try_echo=$ac_try;; | |
4611 | esac | |
4612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4613 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 4614 | ac_status=$? |
cdfe1392 | 4615 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
4616 | rm -f conftest.er1 |
4617 | cat conftest.err >&5 | |
4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 | (exit $ac_status); } >/dev/null; then | |
4620 | if test -s conftest.err; then | |
4621 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 4622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
1daf06b9 SP |
4623 | else |
4624 | ac_cpp_err= | |
4625 | fi | |
4626 | else | |
4627 | ac_cpp_err=yes | |
4628 | fi | |
4629 | if test -z "$ac_cpp_err"; then | |
d3e542e7 | 4630 | ac_cv_header_ext2fs_ext2fs_h=yes |
1daf06b9 SP |
4631 | else |
4632 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
4633 | sed 's/^/| /' conftest.$ac_ext >&5 |
4634 | ||
d3e542e7 | 4635 | ac_cv_header_ext2fs_ext2fs_h=no |
1daf06b9 | 4636 | fi |
7f7d329e | 4637 | |
1daf06b9 | 4638 | rm -f conftest.err conftest.$ac_ext |
1227625a | 4639 | fi |
7f7d329e SP |
4640 | { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5 |
4641 | echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; } | |
1daf06b9 | 4642 | if test $ac_cv_header_ext2fs_ext2fs_h = yes; then |
1227625a SP |
4643 | ext2fs_h=yes |
4644 | else | |
1daf06b9 | 4645 | ext2fs_h=no |
1227625a SP |
4646 | fi |
4647 | ||
1daf06b9 | 4648 | |
7f7d329e SP |
4649 | { echo "$as_me:$LINENO: checking for ext2fs_open in -lext2fs" >&5 |
4650 | echo $ECHO_N "checking for ext2fs_open in -lext2fs... $ECHO_C" >&6; } | |
1daf06b9 SP |
4651 | if test "${ac_cv_lib_ext2fs_ext2fs_open+set}" = set; then |
4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 4653 | else |
1daf06b9 | 4654 | ac_check_lib_save_LIBS=$LIBS |
1227625a | 4655 | LIBS="-lext2fs -lcom_err $LIBS" |
1daf06b9 | 4656 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4657 | /* confdefs.h. */ |
4658 | _ACEOF | |
4659 | cat confdefs.h >>conftest.$ac_ext | |
4660 | cat >>conftest.$ac_ext <<_ACEOF | |
4661 | /* end confdefs.h. */ | |
1daf06b9 | 4662 | |
7f7d329e SP |
4663 | /* Override any GCC internal prototype to avoid an error. |
4664 | Use char because int might match the return type of a GCC | |
4665 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
4666 | #ifdef __cplusplus |
4667 | extern "C" | |
4668 | #endif | |
1daf06b9 | 4669 | char ext2fs_open (); |
1daf06b9 SP |
4670 | int |
4671 | main () | |
4672 | { | |
7f7d329e | 4673 | return ext2fs_open (); |
1daf06b9 SP |
4674 | ; |
4675 | return 0; | |
4676 | } | |
4677 | _ACEOF | |
4678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4679 | if { (ac_try="$ac_link" |
4680 | case "(($ac_try" in | |
4681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4682 | *) ac_try_echo=$ac_try;; | |
4683 | esac | |
4684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4685 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 4686 | ac_status=$? |
c9e4e868 SP |
4687 | grep -v '^ *+' conftest.er1 >conftest.err |
4688 | rm -f conftest.er1 | |
4689 | cat conftest.err >&5 | |
1daf06b9 SP |
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4691 | (exit $ac_status); } && | |
7f7d329e SP |
4692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4693 | { (case "(($ac_try" in | |
4694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4695 | *) ac_try_echo=$ac_try;; | |
4696 | esac | |
4697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4698 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
4699 | ac_status=$? |
4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4701 | (exit $ac_status); }; } && | |
4702 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
4703 | { (case "(($ac_try" in |
4704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4705 | *) ac_try_echo=$ac_try;; | |
4706 | esac | |
4707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4708 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
4709 | ac_status=$? |
4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4711 | (exit $ac_status); }; }; then | |
4712 | ac_cv_lib_ext2fs_ext2fs_open=yes | |
4713 | else | |
4714 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
4715 | sed 's/^/| /' conftest.$ac_ext >&5 |
4716 | ||
7f7d329e | 4717 | ac_cv_lib_ext2fs_ext2fs_open=no |
1daf06b9 | 4718 | fi |
7f7d329e SP |
4719 | |
4720 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 4721 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
4722 | LIBS=$ac_check_lib_save_LIBS |
4723 | fi | |
7f7d329e SP |
4724 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_open" >&5 |
4725 | echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_open" >&6; } | |
1daf06b9 | 4726 | if test $ac_cv_lib_ext2fs_ext2fs_open = yes; then |
1227625a SP |
4727 | ext2fs_lib=yes |
4728 | else | |
1daf06b9 | 4729 | ext2fs_lib=no |
1227625a SP |
4730 | fi |
4731 | ||
4732 | if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then | |
1daf06b9 SP |
4733 | { { echo "$as_me:$LINENO: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&5 |
4734 | echo "$as_me: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&2;} | |
4735 | { (exit 1); exit 1; }; } | |
1227625a SP |
4736 | fi |
4737 | ||
7f7d329e SP |
4738 | { echo "$as_me:$LINENO: checking for ext2fs_read_inode_full in -lext2fs" >&5 |
4739 | echo $ECHO_N "checking for ext2fs_read_inode_full in -lext2fs... $ECHO_C" >&6; } | |
cca7148b SP |
4740 | if test "${ac_cv_lib_ext2fs_ext2fs_read_inode_full+set}" = set; then |
4741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4742 | else | |
4743 | ac_check_lib_save_LIBS=$LIBS | |
4744 | LIBS="-lext2fs -lcom_err $LIBS" | |
4745 | cat >conftest.$ac_ext <<_ACEOF | |
4746 | /* confdefs.h. */ | |
4747 | _ACEOF | |
4748 | cat confdefs.h >>conftest.$ac_ext | |
4749 | cat >>conftest.$ac_ext <<_ACEOF | |
4750 | /* end confdefs.h. */ | |
4751 | ||
7f7d329e SP |
4752 | /* Override any GCC internal prototype to avoid an error. |
4753 | Use char because int might match the return type of a GCC | |
4754 | builtin and then its argument prototype would still apply. */ | |
cca7148b SP |
4755 | #ifdef __cplusplus |
4756 | extern "C" | |
4757 | #endif | |
cca7148b SP |
4758 | char ext2fs_read_inode_full (); |
4759 | int | |
4760 | main () | |
4761 | { | |
7f7d329e | 4762 | return ext2fs_read_inode_full (); |
cca7148b SP |
4763 | ; |
4764 | return 0; | |
4765 | } | |
4766 | _ACEOF | |
4767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4768 | if { (ac_try="$ac_link" |
4769 | case "(($ac_try" in | |
4770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4771 | *) ac_try_echo=$ac_try;; | |
4772 | esac | |
4773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4774 | (eval "$ac_link") 2>conftest.er1 | |
cca7148b SP |
4775 | ac_status=$? |
4776 | grep -v '^ *+' conftest.er1 >conftest.err | |
4777 | rm -f conftest.er1 | |
4778 | cat conftest.err >&5 | |
4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4780 | (exit $ac_status); } && | |
7f7d329e SP |
4781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4782 | { (case "(($ac_try" in | |
4783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4784 | *) ac_try_echo=$ac_try;; | |
4785 | esac | |
4786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4787 | (eval "$ac_try") 2>&5 | |
cca7148b SP |
4788 | ac_status=$? |
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4790 | (exit $ac_status); }; } && | |
4791 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
4792 | { (case "(($ac_try" in |
4793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4794 | *) ac_try_echo=$ac_try;; | |
4795 | esac | |
4796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4797 | (eval "$ac_try") 2>&5 | |
cca7148b SP |
4798 | ac_status=$? |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4800 | (exit $ac_status); }; }; then | |
4801 | ac_cv_lib_ext2fs_ext2fs_read_inode_full=yes | |
4802 | else | |
4803 | echo "$as_me: failed program was:" >&5 | |
4804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4805 | ||
7f7d329e | 4806 | ac_cv_lib_ext2fs_ext2fs_read_inode_full=no |
cca7148b | 4807 | fi |
7f7d329e SP |
4808 | |
4809 | rm -f core conftest.err conftest.$ac_objext \ | |
cca7148b SP |
4810 | conftest$ac_exeext conftest.$ac_ext |
4811 | LIBS=$ac_check_lib_save_LIBS | |
4812 | fi | |
7f7d329e SP |
4813 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&5 |
4814 | echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&6; } | |
cca7148b SP |
4815 | if test $ac_cv_lib_ext2fs_ext2fs_read_inode_full = yes; then |
4816 | rif=yes | |
4817 | else | |
4818 | rif=no | |
4819 | fi | |
4820 | ||
4821 | if test "$rif" = yes; then | |
4822 | ||
4823 | cat >>confdefs.h <<\_ACEOF | |
4824 | #define HAVE_EXT2FS_READ_INODE_FULL 1 | |
4825 | _ACEOF | |
4826 | ||
4827 | fi | |
4828 | ||
1daf06b9 SP |
4829 | |
4830 | for ac_header in ext2fs/ext2_fs.h | |
e4a8bde4 | 4831 | do |
1daf06b9 | 4832 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7f7d329e SP |
4833 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4835 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
1daf06b9 | 4836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1daf06b9 | 4837 | else |
d3e542e7 | 4838 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4839 | /* confdefs.h. */ |
4840 | _ACEOF | |
4841 | cat confdefs.h >>conftest.$ac_ext | |
4842 | cat >>conftest.$ac_ext <<_ACEOF | |
4843 | /* end confdefs.h. */ | |
1daf06b9 SP |
4844 | #include <$ac_header> |
4845 | _ACEOF | |
7f7d329e SP |
4846 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4847 | case "(($ac_try" in | |
4848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4849 | *) ac_try_echo=$ac_try;; | |
4850 | esac | |
4851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4852 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 4853 | ac_status=$? |
cdfe1392 | 4854 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
4855 | rm -f conftest.er1 |
4856 | cat conftest.err >&5 | |
4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4858 | (exit $ac_status); } >/dev/null; then | |
4859 | if test -s conftest.err; then | |
4860 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 4861 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
1daf06b9 SP |
4862 | else |
4863 | ac_cpp_err= | |
4864 | fi | |
4865 | else | |
4866 | ac_cpp_err=yes | |
4867 | fi | |
4868 | if test -z "$ac_cpp_err"; then | |
d3e542e7 | 4869 | eval "$as_ac_Header=yes" |
1daf06b9 SP |
4870 | else |
4871 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
4872 | sed 's/^/| /' conftest.$ac_ext >&5 |
4873 | ||
d3e542e7 | 4874 | eval "$as_ac_Header=no" |
1daf06b9 | 4875 | fi |
7f7d329e | 4876 | |
1daf06b9 | 4877 | rm -f conftest.err conftest.$ac_ext |
e4a8bde4 | 4878 | fi |
7f7d329e SP |
4879 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4880 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4881 | echo "${ECHO_T}$ac_res" >&6; } | |
1daf06b9 SP |
4882 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4883 | cat >>confdefs.h <<_ACEOF | |
4884 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4885 | _ACEOF | |
4886 | ||
e4a8bde4 | 4887 | fi |
1daf06b9 | 4888 | |
e4a8bde4 SP |
4889 | done |
4890 | ||
4891 | ||
7f7d329e SP |
4892 | { echo "$as_me:$LINENO: checking for ext2_ino_t type in libext2fs headers" >&5 |
4893 | echo $ECHO_N "checking for ext2_ino_t type in libext2fs headers... $ECHO_C" >&6; } | |
1daf06b9 | 4894 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4895 | /* confdefs.h. */ |
4896 | _ACEOF | |
4897 | cat confdefs.h >>conftest.$ac_ext | |
4898 | cat >>conftest.$ac_ext <<_ACEOF | |
4899 | /* end confdefs.h. */ | |
a4f547cd | 4900 | #include <stdio.h> |
e4a8bde4 SP |
4901 | #ifdef HAVE_EXT2FS_EXT2_FS_H |
4902 | #include <ext2fs/ext2_fs.h> | |
4903 | #else | |
a4f547cd | 4904 | #include <linux/ext2_fs.h> |
e4a8bde4 | 4905 | #endif |
a4f547cd | 4906 | #include <ext2fs/ext2fs.h> |
1daf06b9 SP |
4907 | int |
4908 | main () | |
4909 | { | |
a4f547cd | 4910 | ext2_ino_t ino = 0; |
1daf06b9 SP |
4911 | ; |
4912 | return 0; | |
4913 | } | |
4914 | _ACEOF | |
4915 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4916 | if { (ac_try="$ac_compile" |
4917 | case "(($ac_try" in | |
4918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4919 | *) ac_try_echo=$ac_try;; | |
4920 | esac | |
4921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4922 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 4923 | ac_status=$? |
c9e4e868 SP |
4924 | grep -v '^ *+' conftest.er1 >conftest.err |
4925 | rm -f conftest.er1 | |
4926 | cat conftest.err >&5 | |
1daf06b9 SP |
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4928 | (exit $ac_status); } && | |
7f7d329e SP |
4929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4930 | { (case "(($ac_try" in | |
4931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4932 | *) ac_try_echo=$ac_try;; | |
4933 | esac | |
4934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4935 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
4936 | ac_status=$? |
4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4938 | (exit $ac_status); }; } && | |
4939 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
4940 | { (case "(($ac_try" in |
4941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4942 | *) ac_try_echo=$ac_try;; | |
4943 | esac | |
4944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4945 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
4946 | ac_status=$? |
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); }; }; then | |
e7d18957 SP |
4949 | |
4950 | cat >>confdefs.h <<\_ACEOF | |
a4f547cd | 4951 | #define HAVE_EXT2_INO_T 1 |
1daf06b9 | 4952 | _ACEOF |
e7d18957 | 4953 | |
7f7d329e SP |
4954 | { echo "$as_me:$LINENO: result: yes" >&5 |
4955 | echo "${ECHO_T}yes" >&6; } | |
a4f547cd | 4956 | else |
1daf06b9 | 4957 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
4959 | ||
7f7d329e SP |
4960 | { echo "$as_me:$LINENO: result: no" >&5 |
4961 | echo "${ECHO_T}no" >&6; } | |
a4f547cd | 4962 | fi |
a4f547cd | 4963 | |
7f7d329e SP |
4964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4965 | ||
4966 | { echo "$as_me:$LINENO: checking for s_journal_inum field in ext2_super_block struct" >&5 | |
4967 | echo $ECHO_N "checking for s_journal_inum field in ext2_super_block struct... $ECHO_C" >&6; } | |
1daf06b9 | 4968 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4969 | /* confdefs.h. */ |
4970 | _ACEOF | |
4971 | cat confdefs.h >>conftest.$ac_ext | |
4972 | cat >>conftest.$ac_ext <<_ACEOF | |
4973 | /* end confdefs.h. */ | |
a4f547cd | 4974 | #include <stdio.h> |
e4a8bde4 SP |
4975 | #ifdef HAVE_EXT2FS_EXT2_FS_H |
4976 | #include <ext2fs/ext2_fs.h> | |
4977 | #else | |
a4f547cd | 4978 | #include <linux/ext2_fs.h> |
e4a8bde4 | 4979 | #endif |
a4f547cd | 4980 | #include <ext2fs/ext2fs.h> |
1daf06b9 SP |
4981 | int |
4982 | main () | |
4983 | { | |
a4f547cd | 4984 | struct ext2_super_block es; es.s_journal_inum = 0; |
1daf06b9 SP |
4985 | ; |
4986 | return 0; | |
4987 | } | |
4988 | _ACEOF | |
4989 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4990 | if { (ac_try="$ac_compile" |
4991 | case "(($ac_try" in | |
4992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4993 | *) ac_try_echo=$ac_try;; | |
4994 | esac | |
4995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4996 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 4997 | ac_status=$? |
c9e4e868 SP |
4998 | grep -v '^ *+' conftest.er1 >conftest.err |
4999 | rm -f conftest.er1 | |
5000 | cat conftest.err >&5 | |
1daf06b9 SP |
5001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5002 | (exit $ac_status); } && | |
7f7d329e SP |
5003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5004 | { (case "(($ac_try" in | |
5005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5006 | *) ac_try_echo=$ac_try;; | |
5007 | esac | |
5008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5009 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5010 | ac_status=$? |
5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5012 | (exit $ac_status); }; } && | |
5013 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
5014 | { (case "(($ac_try" in |
5015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5016 | *) ac_try_echo=$ac_try;; | |
5017 | esac | |
5018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5019 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
5020 | ac_status=$? |
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5022 | (exit $ac_status); }; }; then | |
e7d18957 SP |
5023 | |
5024 | cat >>confdefs.h <<\_ACEOF | |
a4f547cd | 5025 | #define HAVE_EXT2_JOURNAL_INUM 1 |
1daf06b9 | 5026 | _ACEOF |
e7d18957 | 5027 | |
7f7d329e SP |
5028 | { echo "$as_me:$LINENO: result: yes" >&5 |
5029 | echo "${ECHO_T}yes" >&6; } | |
a4f547cd | 5030 | else |
1daf06b9 | 5031 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5032 | sed 's/^/| /' conftest.$ac_ext >&5 |
5033 | ||
7f7d329e SP |
5034 | { echo "$as_me:$LINENO: result: no" >&5 |
5035 | echo "${ECHO_T}no" >&6; } | |
a4f547cd | 5036 | fi |
c9e4e868 | 5037 | |
7f7d329e SP |
5038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5039 | ||
5040 | { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5 | |
5041 | echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; } | |
c9e4e868 SP |
5042 | if test "${ac_cv_header_blkid_blkid_h+set}" = set; then |
5043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5044 | else | |
5045 | cat >conftest.$ac_ext <<_ACEOF | |
5046 | /* confdefs.h. */ | |
5047 | _ACEOF | |
5048 | cat confdefs.h >>conftest.$ac_ext | |
5049 | cat >>conftest.$ac_ext <<_ACEOF | |
5050 | /* end confdefs.h. */ | |
5051 | #include <blkid/blkid.h> | |
5052 | _ACEOF | |
7f7d329e SP |
5053 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5054 | case "(($ac_try" in | |
5055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5056 | *) ac_try_echo=$ac_try;; | |
5057 | esac | |
5058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5059 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
c9e4e868 SP |
5060 | ac_status=$? |
5061 | grep -v '^ *+' conftest.er1 >conftest.err | |
5062 | rm -f conftest.er1 | |
5063 | cat conftest.err >&5 | |
5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5065 | (exit $ac_status); } >/dev/null; then | |
5066 | if test -s conftest.err; then | |
5067 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5068 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5069 | else | |
5070 | ac_cpp_err= | |
5071 | fi | |
5072 | else | |
5073 | ac_cpp_err=yes | |
5074 | fi | |
5075 | if test -z "$ac_cpp_err"; then | |
5076 | ac_cv_header_blkid_blkid_h=yes | |
5077 | else | |
5078 | echo "$as_me: failed program was:" >&5 | |
5079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5080 | ||
5081 | ac_cv_header_blkid_blkid_h=no | |
5082 | fi | |
7f7d329e | 5083 | |
c9e4e868 SP |
5084 | rm -f conftest.err conftest.$ac_ext |
5085 | fi | |
7f7d329e SP |
5086 | { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5 |
5087 | echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; } | |
c9e4e868 SP |
5088 | if test $ac_cv_header_blkid_blkid_h = yes; then |
5089 | blkid_h=yes | |
5090 | else | |
5091 | blkid_h=no | |
5092 | fi | |
5093 | ||
5094 | ||
7f7d329e SP |
5095 | { echo "$as_me:$LINENO: checking for blkid_get_devname in -lblkid" >&5 |
5096 | echo $ECHO_N "checking for blkid_get_devname in -lblkid... $ECHO_C" >&6; } | |
c9e4e868 SP |
5097 | if test "${ac_cv_lib_blkid_blkid_get_devname+set}" = set; then |
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5099 | else | |
5100 | ac_check_lib_save_LIBS=$LIBS | |
5101 | LIBS="-lblkid -luuid $LIBS" | |
5102 | cat >conftest.$ac_ext <<_ACEOF | |
5103 | /* confdefs.h. */ | |
5104 | _ACEOF | |
5105 | cat confdefs.h >>conftest.$ac_ext | |
5106 | cat >>conftest.$ac_ext <<_ACEOF | |
5107 | /* end confdefs.h. */ | |
5108 | ||
7f7d329e SP |
5109 | /* Override any GCC internal prototype to avoid an error. |
5110 | Use char because int might match the return type of a GCC | |
5111 | builtin and then its argument prototype would still apply. */ | |
c9e4e868 SP |
5112 | #ifdef __cplusplus |
5113 | extern "C" | |
5114 | #endif | |
c9e4e868 SP |
5115 | char blkid_get_devname (); |
5116 | int | |
5117 | main () | |
5118 | { | |
7f7d329e | 5119 | return blkid_get_devname (); |
c9e4e868 SP |
5120 | ; |
5121 | return 0; | |
5122 | } | |
5123 | _ACEOF | |
5124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5125 | if { (ac_try="$ac_link" |
5126 | case "(($ac_try" in | |
5127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5128 | *) ac_try_echo=$ac_try;; | |
5129 | esac | |
5130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5131 | (eval "$ac_link") 2>conftest.er1 | |
c9e4e868 SP |
5132 | ac_status=$? |
5133 | grep -v '^ *+' conftest.er1 >conftest.err | |
5134 | rm -f conftest.er1 | |
5135 | cat conftest.err >&5 | |
5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5137 | (exit $ac_status); } && | |
7f7d329e SP |
5138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5139 | { (case "(($ac_try" in | |
5140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5141 | *) ac_try_echo=$ac_try;; | |
5142 | esac | |
5143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5144 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5145 | ac_status=$? |
5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5147 | (exit $ac_status); }; } && | |
5148 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5149 | { (case "(($ac_try" in |
5150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5151 | *) ac_try_echo=$ac_try;; | |
5152 | esac | |
5153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5154 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5155 | ac_status=$? |
5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5157 | (exit $ac_status); }; }; then | |
5158 | ac_cv_lib_blkid_blkid_get_devname=yes | |
5159 | else | |
5160 | echo "$as_me: failed program was:" >&5 | |
5161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5162 | ||
7f7d329e | 5163 | ac_cv_lib_blkid_blkid_get_devname=no |
c9e4e868 | 5164 | fi |
7f7d329e SP |
5165 | |
5166 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 SP |
5167 | conftest$ac_exeext conftest.$ac_ext |
5168 | LIBS=$ac_check_lib_save_LIBS | |
5169 | fi | |
7f7d329e SP |
5170 | { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_devname" >&5 |
5171 | echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_devname" >&6; } | |
c9e4e868 SP |
5172 | if test $ac_cv_lib_blkid_blkid_get_devname = yes; then |
5173 | blkid_lib=yes | |
5174 | else | |
5175 | blkid_lib=no | |
5176 | fi | |
5177 | ||
5178 | if test "$blkid_h" = yes -a "$blkid_lib" = yes; then | |
5179 | ||
5180 | cat >>confdefs.h <<\_ACEOF | |
5181 | #define HAVE_BLKID 1 | |
5182 | _ACEOF | |
5183 | ||
7f7d329e | 5184 | BLKID="-lblkid -luuid -ldevmapper -lselinux -lsepol" |
c9e4e868 SP |
5185 | fi |
5186 | ||
a4f547cd | 5187 | |
7f7d329e SP |
5188 | { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
5189 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; } | |
0556ca22 SP |
5190 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
5191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5192 | else | |
5193 | ac_check_lib_save_LIBS=$LIBS | |
5194 | LIBS="-lncurses $LIBS" | |
5195 | cat >conftest.$ac_ext <<_ACEOF | |
5196 | /* confdefs.h. */ | |
5197 | _ACEOF | |
5198 | cat confdefs.h >>conftest.$ac_ext | |
5199 | cat >>conftest.$ac_ext <<_ACEOF | |
5200 | /* end confdefs.h. */ | |
5201 | ||
7f7d329e SP |
5202 | /* Override any GCC internal prototype to avoid an error. |
5203 | Use char because int might match the return type of a GCC | |
5204 | builtin and then its argument prototype would still apply. */ | |
0556ca22 SP |
5205 | #ifdef __cplusplus |
5206 | extern "C" | |
5207 | #endif | |
0556ca22 SP |
5208 | char tgetent (); |
5209 | int | |
5210 | main () | |
5211 | { | |
7f7d329e | 5212 | return tgetent (); |
0556ca22 SP |
5213 | ; |
5214 | return 0; | |
5215 | } | |
5216 | _ACEOF | |
5217 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5218 | if { (ac_try="$ac_link" |
5219 | case "(($ac_try" in | |
5220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5221 | *) ac_try_echo=$ac_try;; | |
5222 | esac | |
5223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5224 | (eval "$ac_link") 2>conftest.er1 | |
0556ca22 SP |
5225 | ac_status=$? |
5226 | grep -v '^ *+' conftest.er1 >conftest.err | |
5227 | rm -f conftest.er1 | |
5228 | cat conftest.err >&5 | |
5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5230 | (exit $ac_status); } && | |
7f7d329e SP |
5231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5232 | { (case "(($ac_try" in | |
5233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5234 | *) ac_try_echo=$ac_try;; | |
5235 | esac | |
5236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5237 | (eval "$ac_try") 2>&5 | |
0556ca22 SP |
5238 | ac_status=$? |
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5240 | (exit $ac_status); }; } && | |
5241 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5242 | { (case "(($ac_try" in |
5243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5244 | *) ac_try_echo=$ac_try;; | |
5245 | esac | |
5246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5247 | (eval "$ac_try") 2>&5 | |
0556ca22 SP |
5248 | ac_status=$? |
5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5250 | (exit $ac_status); }; }; then | |
5251 | ac_cv_lib_ncurses_tgetent=yes | |
5252 | else | |
5253 | echo "$as_me: failed program was:" >&5 | |
5254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5255 | ||
7f7d329e | 5256 | ac_cv_lib_ncurses_tgetent=no |
0556ca22 | 5257 | fi |
7f7d329e SP |
5258 | |
5259 | rm -f core conftest.err conftest.$ac_objext \ | |
0556ca22 SP |
5260 | conftest$ac_exeext conftest.$ac_ext |
5261 | LIBS=$ac_check_lib_save_LIBS | |
5262 | fi | |
7f7d329e SP |
5263 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
5264 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; } | |
0556ca22 SP |
5265 | if test $ac_cv_lib_ncurses_tgetent = yes; then |
5266 | ncurses_lib=yes | |
5267 | else | |
5268 | ncurses_lib=no | |
5269 | fi | |
5270 | ||
7f7d329e SP |
5271 | { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
5272 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; } | |
1daf06b9 SP |
5273 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
5274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3e815572 | 5275 | else |
1daf06b9 | 5276 | ac_check_lib_save_LIBS=$LIBS |
3e815572 | 5277 | LIBS="-ltermcap $LIBS" |
1daf06b9 | 5278 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5279 | /* confdefs.h. */ |
5280 | _ACEOF | |
5281 | cat confdefs.h >>conftest.$ac_ext | |
5282 | cat >>conftest.$ac_ext <<_ACEOF | |
5283 | /* end confdefs.h. */ | |
1daf06b9 | 5284 | |
7f7d329e SP |
5285 | /* Override any GCC internal prototype to avoid an error. |
5286 | Use char because int might match the return type of a GCC | |
5287 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5288 | #ifdef __cplusplus |
5289 | extern "C" | |
5290 | #endif | |
1daf06b9 | 5291 | char tgetent (); |
1daf06b9 SP |
5292 | int |
5293 | main () | |
5294 | { | |
7f7d329e | 5295 | return tgetent (); |
1daf06b9 SP |
5296 | ; |
5297 | return 0; | |
5298 | } | |
5299 | _ACEOF | |
5300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5301 | if { (ac_try="$ac_link" |
5302 | case "(($ac_try" in | |
5303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5304 | *) ac_try_echo=$ac_try;; | |
5305 | esac | |
5306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5307 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5308 | ac_status=$? |
c9e4e868 SP |
5309 | grep -v '^ *+' conftest.er1 >conftest.err |
5310 | rm -f conftest.er1 | |
5311 | cat conftest.err >&5 | |
1daf06b9 SP |
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5313 | (exit $ac_status); } && | |
7f7d329e SP |
5314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5315 | { (case "(($ac_try" in | |
5316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5317 | *) ac_try_echo=$ac_try;; | |
5318 | esac | |
5319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5320 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5321 | ac_status=$? |
5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5323 | (exit $ac_status); }; } && | |
5324 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5325 | { (case "(($ac_try" in |
5326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5327 | *) ac_try_echo=$ac_try;; | |
5328 | esac | |
5329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5330 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
5331 | ac_status=$? |
5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5333 | (exit $ac_status); }; }; then | |
5334 | ac_cv_lib_termcap_tgetent=yes | |
5335 | else | |
5336 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5337 | sed 's/^/| /' conftest.$ac_ext >&5 |
5338 | ||
7f7d329e | 5339 | ac_cv_lib_termcap_tgetent=no |
1daf06b9 | 5340 | fi |
7f7d329e SP |
5341 | |
5342 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 5343 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5344 | LIBS=$ac_check_lib_save_LIBS |
5345 | fi | |
7f7d329e SP |
5346 | { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
5347 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; } | |
1daf06b9 | 5348 | if test $ac_cv_lib_termcap_tgetent = yes; then |
3e815572 SP |
5349 | termcap_lib=yes |
5350 | else | |
1daf06b9 | 5351 | termcap_lib=no |
3e815572 SP |
5352 | fi |
5353 | ||
0556ca22 SP |
5354 | |
5355 | if test "$ncurses_lib" = no -a "$termcap_lib" = no; then | |
5356 | if test "$READLINE" = "yes"; then | |
5357 | { { echo "$as_me:$LINENO: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&5 | |
5358 | echo "$as_me: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&2;} | |
1daf06b9 | 5359 | { (exit 1); exit 1; }; } |
3e815572 SP |
5360 | fi |
5361 | fi | |
0556ca22 SP |
5362 | if test "$ncurses_lib" = yes; then |
5363 | rdllib="-lncurses" | |
5364 | elif test "$termcap_lib" = yes; then | |
5365 | rdllib="-ltermcap" | |
5366 | fi | |
3e815572 | 5367 | |
7f7d329e SP |
5368 | { echo "$as_me:$LINENO: checking for readline/readline.h" >&5 |
5369 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; } | |
1daf06b9 SP |
5370 | if test "${ac_cv_header_readline_readline_h+set}" = set; then |
5371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1daf06b9 | 5372 | else |
d3e542e7 | 5373 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5374 | /* confdefs.h. */ |
5375 | _ACEOF | |
5376 | cat confdefs.h >>conftest.$ac_ext | |
5377 | cat >>conftest.$ac_ext <<_ACEOF | |
5378 | /* end confdefs.h. */ | |
c38e5b6a | 5379 | #include <readline/readline.h> |
1daf06b9 | 5380 | _ACEOF |
7f7d329e SP |
5381 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5382 | case "(($ac_try" in | |
5383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5384 | *) ac_try_echo=$ac_try;; | |
5385 | esac | |
5386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5387 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 5388 | ac_status=$? |
cdfe1392 | 5389 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5390 | rm -f conftest.er1 |
5391 | cat conftest.err >&5 | |
5392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5393 | (exit $ac_status); } >/dev/null; then | |
5394 | if test -s conftest.err; then | |
5395 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 5396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
1daf06b9 SP |
5397 | else |
5398 | ac_cpp_err= | |
5399 | fi | |
5400 | else | |
5401 | ac_cpp_err=yes | |
5402 | fi | |
5403 | if test -z "$ac_cpp_err"; then | |
d3e542e7 | 5404 | ac_cv_header_readline_readline_h=yes |
1daf06b9 SP |
5405 | else |
5406 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5407 | sed 's/^/| /' conftest.$ac_ext >&5 |
5408 | ||
d3e542e7 | 5409 | ac_cv_header_readline_readline_h=no |
1daf06b9 | 5410 | fi |
7f7d329e | 5411 | |
1daf06b9 | 5412 | rm -f conftest.err conftest.$ac_ext |
c38e5b6a | 5413 | fi |
7f7d329e SP |
5414 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 |
5415 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; } | |
1daf06b9 | 5416 | if test $ac_cv_header_readline_readline_h = yes; then |
c38e5b6a SP |
5417 | readline_h=yes |
5418 | else | |
1daf06b9 | 5419 | readline_h=no |
c38e5b6a SP |
5420 | fi |
5421 | ||
1daf06b9 | 5422 | |
7f7d329e SP |
5423 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
5424 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
1daf06b9 SP |
5425 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
5426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c38e5b6a | 5427 | else |
1daf06b9 | 5428 | ac_check_lib_save_LIBS=$LIBS |
0556ca22 | 5429 | LIBS="-lreadline $rdllib $LIBS" |
1daf06b9 | 5430 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5431 | /* confdefs.h. */ |
5432 | _ACEOF | |
5433 | cat confdefs.h >>conftest.$ac_ext | |
5434 | cat >>conftest.$ac_ext <<_ACEOF | |
5435 | /* end confdefs.h. */ | |
1daf06b9 | 5436 | |
7f7d329e SP |
5437 | /* Override any GCC internal prototype to avoid an error. |
5438 | Use char because int might match the return type of a GCC | |
5439 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5440 | #ifdef __cplusplus |
5441 | extern "C" | |
5442 | #endif | |
1daf06b9 | 5443 | char readline (); |
1daf06b9 SP |
5444 | int |
5445 | main () | |
5446 | { | |
7f7d329e | 5447 | return readline (); |
1daf06b9 SP |
5448 | ; |
5449 | return 0; | |
5450 | } | |
5451 | _ACEOF | |
5452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5453 | if { (ac_try="$ac_link" |
5454 | case "(($ac_try" in | |
5455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5456 | *) ac_try_echo=$ac_try;; | |
5457 | esac | |
5458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5459 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5460 | ac_status=$? |
c9e4e868 SP |
5461 | grep -v '^ *+' conftest.er1 >conftest.err |
5462 | rm -f conftest.er1 | |
5463 | cat conftest.err >&5 | |
1daf06b9 SP |
5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5465 | (exit $ac_status); } && | |
7f7d329e SP |
5466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5467 | { (case "(($ac_try" in | |
5468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5469 | *) ac_try_echo=$ac_try;; | |
5470 | esac | |
5471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5472 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5473 | ac_status=$? |
5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5475 | (exit $ac_status); }; } && | |
5476 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5477 | { (case "(($ac_try" in |
5478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5479 | *) ac_try_echo=$ac_try;; | |
5480 | esac | |
5481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5482 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
5483 | ac_status=$? |
5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5485 | (exit $ac_status); }; }; then | |
5486 | ac_cv_lib_readline_readline=yes | |
5487 | else | |
5488 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5489 | sed 's/^/| /' conftest.$ac_ext >&5 |
5490 | ||
7f7d329e | 5491 | ac_cv_lib_readline_readline=no |
1daf06b9 | 5492 | fi |
7f7d329e SP |
5493 | |
5494 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 5495 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5496 | LIBS=$ac_check_lib_save_LIBS |
5497 | fi | |
7f7d329e SP |
5498 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
5499 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
1daf06b9 | 5500 | if test $ac_cv_lib_readline_readline = yes; then |
c38e5b6a SP |
5501 | readline_lib=yes |
5502 | else | |
1daf06b9 | 5503 | readline_lib=no |
c38e5b6a SP |
5504 | fi |
5505 | ||
5506 | if test "$readline_h" = no -o "$readline_lib" = no; then | |
0556ca22 | 5507 | if test "$READLINE" = "yes"; then |
1daf06b9 SP |
5508 | { { echo "$as_me:$LINENO: error: You need to install the GNU readline library or configure without --enable-readline" >&5 |
5509 | echo "$as_me: error: You need to install the GNU readline library or configure without --enable-readline" >&2;} | |
5510 | { (exit 1); exit 1; }; } | |
c38e5b6a SP |
5511 | fi |
5512 | fi | |
0556ca22 SP |
5513 | if test "$READLINE" = yes; then |
5514 | READLINE="-lreadline $rdllib" | |
5515 | fi | |
5516 | ||
c38e5b6a | 5517 | |
7f7d329e SP |
5518 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
5519 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; } | |
1daf06b9 SP |
5520 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
5521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bcecd677 | 5522 | else |
1daf06b9 | 5523 | ac_check_lib_save_LIBS=$LIBS |
bcecd677 | 5524 | LIBS="-lreadline "-ltermcap" $LIBS" |
1daf06b9 | 5525 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5526 | /* confdefs.h. */ |
5527 | _ACEOF | |
5528 | cat confdefs.h >>conftest.$ac_ext | |
5529 | cat >>conftest.$ac_ext <<_ACEOF | |
5530 | /* end confdefs.h. */ | |
1daf06b9 | 5531 | |
7f7d329e SP |
5532 | /* Override any GCC internal prototype to avoid an error. |
5533 | Use char because int might match the return type of a GCC | |
5534 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5535 | #ifdef __cplusplus |
5536 | extern "C" | |
5537 | #endif | |
1daf06b9 | 5538 | char rl_completion_matches (); |
1daf06b9 SP |
5539 | int |
5540 | main () | |
5541 | { | |
7f7d329e | 5542 | return rl_completion_matches (); |
1daf06b9 SP |
5543 | ; |
5544 | return 0; | |
5545 | } | |
5546 | _ACEOF | |
5547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5548 | if { (ac_try="$ac_link" |
5549 | case "(($ac_try" in | |
5550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5551 | *) ac_try_echo=$ac_try;; | |
5552 | esac | |
5553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5554 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5555 | ac_status=$? |
c9e4e868 SP |
5556 | grep -v '^ *+' conftest.er1 >conftest.err |
5557 | rm -f conftest.er1 | |
5558 | cat conftest.err >&5 | |
1daf06b9 SP |
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5560 | (exit $ac_status); } && | |
7f7d329e SP |
5561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5562 | { (case "(($ac_try" in | |
5563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5564 | *) ac_try_echo=$ac_try;; | |
5565 | esac | |
5566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5567 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5568 | ac_status=$? |
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5570 | (exit $ac_status); }; } && | |
5571 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5572 | { (case "(($ac_try" in |
5573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5574 | *) ac_try_echo=$ac_try;; | |
5575 | esac | |
5576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5577 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
5578 | ac_status=$? |
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5580 | (exit $ac_status); }; }; then | |
5581 | ac_cv_lib_readline_rl_completion_matches=yes | |
5582 | else | |
5583 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5584 | sed 's/^/| /' conftest.$ac_ext >&5 |
5585 | ||
7f7d329e | 5586 | ac_cv_lib_readline_rl_completion_matches=no |
1daf06b9 | 5587 | fi |
7f7d329e SP |
5588 | |
5589 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 5590 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5591 | LIBS=$ac_check_lib_save_LIBS |
5592 | fi | |
7f7d329e SP |
5593 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
5594 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } | |
1daf06b9 | 5595 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
bcecd677 SP |
5596 | rlcm=yes |
5597 | else | |
1daf06b9 | 5598 | rlcm=no |
bcecd677 SP |
5599 | fi |
5600 | ||
5601 | if test "$rlcm" = yes; then | |
e7d18957 SP |
5602 | |
5603 | cat >>confdefs.h <<\_ACEOF | |
bcecd677 | 5604 | #define HAVE_READLINE_RLCM 1 |
1daf06b9 | 5605 | _ACEOF |
bcecd677 SP |
5606 | |
5607 | fi | |
5608 | ||
7f7d329e SP |
5609 | { echo "$as_me:$LINENO: checking for rl_completion_append_character in -lreadline" >&5 |
5610 | echo $ECHO_N "checking for rl_completion_append_character in -lreadline... $ECHO_C" >&6; } | |
1daf06b9 SP |
5611 | if test "${ac_cv_lib_readline_rl_completion_append_character+set}" = set; then |
5612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bcecd677 | 5613 | else |
1daf06b9 | 5614 | ac_check_lib_save_LIBS=$LIBS |
bcecd677 | 5615 | LIBS="-lreadline "-ltermcap" $LIBS" |
1daf06b9 | 5616 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5617 | /* confdefs.h. */ |
5618 | _ACEOF | |
5619 | cat confdefs.h >>conftest.$ac_ext | |
5620 | cat >>conftest.$ac_ext <<_ACEOF | |
5621 | /* end confdefs.h. */ | |
1daf06b9 | 5622 | |
7f7d329e SP |
5623 | /* Override any GCC internal prototype to avoid an error. |
5624 | Use char because int might match the return type of a GCC | |
5625 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5626 | #ifdef __cplusplus |
5627 | extern "C" | |
5628 | #endif | |
1daf06b9 | 5629 | char rl_completion_append_character (); |
1daf06b9 SP |
5630 | int |
5631 | main () | |
5632 | { | |
7f7d329e | 5633 | return rl_completion_append_character (); |
1daf06b9 SP |
5634 | ; |
5635 | return 0; | |
5636 | } | |
5637 | _ACEOF | |
5638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5639 | if { (ac_try="$ac_link" |
5640 | case "(($ac_try" in | |
5641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5642 | *) ac_try_echo=$ac_try;; | |
5643 | esac | |
5644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5645 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5646 | ac_status=$? |
c9e4e868 SP |
5647 | grep -v '^ *+' conftest.er1 >conftest.err |
5648 | rm -f conftest.er1 | |
5649 | cat conftest.err >&5 | |
1daf06b9 SP |
5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5651 | (exit $ac_status); } && | |
7f7d329e SP |
5652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5653 | { (case "(($ac_try" in | |
5654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5655 | *) ac_try_echo=$ac_try;; | |
5656 | esac | |
5657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5658 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5659 | ac_status=$? |
5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5661 | (exit $ac_status); }; } && | |
5662 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5663 | { (case "(($ac_try" in |
5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5665 | *) ac_try_echo=$ac_try;; | |
5666 | esac | |
5667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5668 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
5669 | ac_status=$? |
5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5671 | (exit $ac_status); }; }; then | |
5672 | ac_cv_lib_readline_rl_completion_append_character=yes | |
5673 | else | |
5674 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5675 | sed 's/^/| /' conftest.$ac_ext >&5 |
5676 | ||
7f7d329e | 5677 | ac_cv_lib_readline_rl_completion_append_character=no |
1daf06b9 | 5678 | fi |
7f7d329e SP |
5679 | |
5680 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 5681 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5682 | LIBS=$ac_check_lib_save_LIBS |
5683 | fi | |
7f7d329e SP |
5684 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_append_character" >&5 |
5685 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_append_character" >&6; } | |
1daf06b9 SP |
5686 | if test $ac_cv_lib_readline_rl_completion_append_character = yes; then |
5687 | rcac=yes | |
5688 | else | |
5689 | rcac=no | |
bcecd677 SP |
5690 | fi |
5691 | ||
5692 | if test "$rcac" = yes; then | |
e7d18957 SP |
5693 | |
5694 | cat >>confdefs.h <<\_ACEOF | |
d3e542e7 SP |
5695 | #define HAVE_READLINE_CAC 1 |
5696 | _ACEOF | |
5697 | ||
1daf06b9 | 5698 | fi |
1daf06b9 | 5699 | |
7f7d329e SP |
5700 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
5701 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
d3e542e7 SP |
5702 | if test "${ac_cv_header_zlib_h+set}" = set; then |
5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5704 | else | |
5705 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
5706 | /* confdefs.h. */ |
5707 | _ACEOF | |
5708 | cat confdefs.h >>conftest.$ac_ext | |
5709 | cat >>conftest.$ac_ext <<_ACEOF | |
5710 | /* end confdefs.h. */ | |
4d5ed2f3 | 5711 | #include <zlib.h> |
1daf06b9 | 5712 | _ACEOF |
7f7d329e SP |
5713 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5714 | case "(($ac_try" in | |
5715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5716 | *) ac_try_echo=$ac_try;; | |
5717 | esac | |
5718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5719 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 5720 | ac_status=$? |
cdfe1392 | 5721 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5722 | rm -f conftest.er1 |
5723 | cat conftest.err >&5 | |
5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5725 | (exit $ac_status); } >/dev/null; then | |
5726 | if test -s conftest.err; then | |
5727 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 5728 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
1daf06b9 SP |
5729 | else |
5730 | ac_cpp_err= | |
5731 | fi | |
5732 | else | |
5733 | ac_cpp_err=yes | |
5734 | fi | |
5735 | if test -z "$ac_cpp_err"; then | |
d3e542e7 | 5736 | ac_cv_header_zlib_h=yes |
1daf06b9 SP |
5737 | else |
5738 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5739 | sed 's/^/| /' conftest.$ac_ext >&5 |
5740 | ||
d3e542e7 | 5741 | ac_cv_header_zlib_h=no |
1daf06b9 | 5742 | fi |
7f7d329e | 5743 | |
1daf06b9 | 5744 | rm -f conftest.err conftest.$ac_ext |
4d5ed2f3 | 5745 | fi |
7f7d329e SP |
5746 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
5747 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
1daf06b9 | 5748 | if test $ac_cv_header_zlib_h = yes; then |
4d5ed2f3 SP |
5749 | zlib_h=yes |
5750 | else | |
1daf06b9 | 5751 | zlib_h=no |
4d5ed2f3 SP |
5752 | fi |
5753 | ||
1daf06b9 | 5754 | |
7f7d329e SP |
5755 | { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 |
5756 | echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } | |
1daf06b9 SP |
5757 | if test "${ac_cv_lib_z_compress2+set}" = set; then |
5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4d5ed2f3 | 5759 | else |
1daf06b9 | 5760 | ac_check_lib_save_LIBS=$LIBS |
4d5ed2f3 | 5761 | LIBS="-lz $LIBS" |
1daf06b9 | 5762 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5763 | /* confdefs.h. */ |
5764 | _ACEOF | |
5765 | cat confdefs.h >>conftest.$ac_ext | |
5766 | cat >>conftest.$ac_ext <<_ACEOF | |
5767 | /* end confdefs.h. */ | |
1daf06b9 | 5768 | |
7f7d329e SP |
5769 | /* Override any GCC internal prototype to avoid an error. |
5770 | Use char because int might match the return type of a GCC | |
5771 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5772 | #ifdef __cplusplus |
5773 | extern "C" | |
5774 | #endif | |
1daf06b9 | 5775 | char compress2 (); |
1daf06b9 SP |
5776 | int |
5777 | main () | |
5778 | { | |
7f7d329e | 5779 | return compress2 (); |
1daf06b9 SP |
5780 | ; |
5781 | return 0; | |
5782 | } | |
5783 | _ACEOF | |
5784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5785 | if { (ac_try="$ac_link" |
5786 | case "(($ac_try" in | |
5787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5788 | *) ac_try_echo=$ac_try;; | |
5789 | esac | |
5790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5791 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5792 | ac_status=$? |
c9e4e868 SP |
5793 | grep -v '^ *+' conftest.er1 >conftest.err |
5794 | rm -f conftest.er1 | |
5795 | cat conftest.err >&5 | |
1daf06b9 SP |
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5797 | (exit $ac_status); } && | |
7f7d329e SP |
5798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5799 | { (case "(($ac_try" in | |
5800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5801 | *) ac_try_echo=$ac_try;; | |
5802 | esac | |
5803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5804 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5805 | ac_status=$? |
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5807 | (exit $ac_status); }; } && | |
5808 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5809 | { (case "(($ac_try" in |
5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5811 | *) ac_try_echo=$ac_try;; | |
5812 | esac | |
5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5814 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
5815 | ac_status=$? |
5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5817 | (exit $ac_status); }; }; then | |
5818 | ac_cv_lib_z_compress2=yes | |
5819 | else | |
5820 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5821 | sed 's/^/| /' conftest.$ac_ext >&5 |
5822 | ||
7f7d329e | 5823 | ac_cv_lib_z_compress2=no |
1daf06b9 | 5824 | fi |
7f7d329e SP |
5825 | |
5826 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 5827 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5828 | LIBS=$ac_check_lib_save_LIBS |
5829 | fi | |
7f7d329e SP |
5830 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 |
5831 | echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } | |
1daf06b9 | 5832 | if test $ac_cv_lib_z_compress2 = yes; then |
4d5ed2f3 SP |
5833 | zlib_lib=yes |
5834 | else | |
1daf06b9 | 5835 | zlib_lib=no |
4d5ed2f3 SP |
5836 | fi |
5837 | ||
5838 | if test "$zlib_h" = yes -a "$zlib_lib" = yes; then | |
d7783603 SP |
5839 | if test "$STATICZ" = yes; then |
5840 | ZLIB="-Wl,-Bstatic -lz -Wl,-Bdynamic" | |
5841 | else | |
5842 | ZLIB="-lz" | |
5843 | fi | |
e7d18957 SP |
5844 | |
5845 | cat >>confdefs.h <<\_ACEOF | |
4d5ed2f3 | 5846 | #define HAVE_ZLIB 1 |
1daf06b9 | 5847 | _ACEOF |
4d5ed2f3 SP |
5848 | |
5849 | else | |
5850 | ZLIB="" | |
5851 | fi | |
5852 | ||
5853 | ||
7f7d329e SP |
5854 | { echo "$as_me:$LINENO: checking for bzlib.h" >&5 |
5855 | echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; } | |
1daf06b9 SP |
5856 | if test "${ac_cv_header_bzlib_h+set}" = set; then |
5857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1daf06b9 | 5858 | else |
d3e542e7 | 5859 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5860 | /* confdefs.h. */ |
5861 | _ACEOF | |
5862 | cat confdefs.h >>conftest.$ac_ext | |
5863 | cat >>conftest.$ac_ext <<_ACEOF | |
5864 | /* end confdefs.h. */ | |
1daf06b9 SP |
5865 | #include <bzlib.h> |
5866 | _ACEOF | |
7f7d329e SP |
5867 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5868 | case "(($ac_try" in | |
5869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5870 | *) ac_try_echo=$ac_try;; | |
5871 | esac | |
5872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5873 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 5874 | ac_status=$? |
cdfe1392 | 5875 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5876 | rm -f conftest.er1 |
5877 | cat conftest.err >&5 | |
5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5879 | (exit $ac_status); } >/dev/null; then | |
5880 | if test -s conftest.err; then | |
5881 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 5882 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
1daf06b9 SP |
5883 | else |
5884 | ac_cpp_err= | |
5885 | fi | |
5886 | else | |
5887 | ac_cpp_err=yes | |
5888 | fi | |
5889 | if test -z "$ac_cpp_err"; then | |
d3e542e7 | 5890 | ac_cv_header_bzlib_h=yes |
1daf06b9 SP |
5891 | else |
5892 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5893 | sed 's/^/| /' conftest.$ac_ext >&5 |
5894 | ||
d3e542e7 | 5895 | ac_cv_header_bzlib_h=no |
1daf06b9 | 5896 | fi |
7f7d329e | 5897 | |
1daf06b9 | 5898 | rm -f conftest.err conftest.$ac_ext |
88ef261e | 5899 | fi |
7f7d329e SP |
5900 | { echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 |
5901 | echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; } | |
1daf06b9 | 5902 | if test $ac_cv_header_bzlib_h = yes; then |
88ef261e SP |
5903 | bzlib_h=yes |
5904 | else | |
1daf06b9 | 5905 | bzlib_h=no |
88ef261e SP |
5906 | fi |
5907 | ||
1daf06b9 | 5908 | |
7f7d329e SP |
5909 | { echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5 |
5910 | echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6; } | |
1daf06b9 SP |
5911 | if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then |
5912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
88ef261e | 5913 | else |
1daf06b9 | 5914 | ac_check_lib_save_LIBS=$LIBS |
88ef261e | 5915 | LIBS="-lbz2 $LIBS" |
1daf06b9 | 5916 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5917 | /* confdefs.h. */ |
5918 | _ACEOF | |
5919 | cat confdefs.h >>conftest.$ac_ext | |
5920 | cat >>conftest.$ac_ext <<_ACEOF | |
5921 | /* end confdefs.h. */ | |
1daf06b9 | 5922 | |
7f7d329e SP |
5923 | /* Override any GCC internal prototype to avoid an error. |
5924 | Use char because int might match the return type of a GCC | |
5925 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5926 | #ifdef __cplusplus |
5927 | extern "C" | |
5928 | #endif | |
1daf06b9 | 5929 | char BZ2_bzBuffToBuffCompress (); |
1daf06b9 SP |
5930 | int |
5931 | main () | |
5932 | { | |
7f7d329e | 5933 | return BZ2_bzBuffToBuffCompress (); |
1daf06b9 SP |
5934 | ; |
5935 | return 0; | |
5936 | } | |
5937 | _ACEOF | |
5938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5939 | if { (ac_try="$ac_link" |
5940 | case "(($ac_try" in | |
5941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5942 | *) ac_try_echo=$ac_try;; | |
5943 | esac | |
5944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5945 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5946 | ac_status=$? |
c9e4e868 SP |
5947 | grep -v '^ *+' conftest.er1 >conftest.err |
5948 | rm -f conftest.er1 | |
5949 | cat conftest.err >&5 | |
1daf06b9 SP |
5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5951 | (exit $ac_status); } && | |
7f7d329e SP |
5952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5953 | { (case "(($ac_try" in | |
5954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5955 | *) ac_try_echo=$ac_try;; | |
5956 | esac | |
5957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5958 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
5959 | ac_status=$? |
5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5961 | (exit $ac_status); }; } && | |
5962 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
5963 | { (case "(($ac_try" in |
5964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5965 | *) ac_try_echo=$ac_try;; | |
5966 | esac | |
5967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5968 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
5969 | ac_status=$? |
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5971 | (exit $ac_status); }; }; then | |
5972 | ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes | |
5973 | else | |
5974 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5975 | sed 's/^/| /' conftest.$ac_ext >&5 |
5976 | ||
7f7d329e | 5977 | ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no |
1daf06b9 | 5978 | fi |
7f7d329e SP |
5979 | |
5980 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 5981 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5982 | LIBS=$ac_check_lib_save_LIBS |
5983 | fi | |
7f7d329e SP |
5984 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5 |
5985 | echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; } | |
1daf06b9 | 5986 | if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then |
88ef261e SP |
5987 | bzlib_lib=yes |
5988 | else | |
1daf06b9 | 5989 | bzlib_lib=no |
88ef261e SP |
5990 | fi |
5991 | ||
5992 | if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then | |
d7783603 SP |
5993 | if test "$STATICZ" = yes; then |
5994 | BZLIB="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic" | |
5995 | else | |
5996 | BZLIB="-lbz2" | |
5997 | fi | |
e7d18957 SP |
5998 | |
5999 | cat >>confdefs.h <<\_ACEOF | |
88ef261e | 6000 | #define HAVE_BZLIB 1 |
1daf06b9 | 6001 | _ACEOF |
88ef261e SP |
6002 | |
6003 | else | |
6004 | BZLIB="" | |
6005 | fi | |
6006 | ||
6007 | ||
1daf06b9 SP |
6008 | |
6009 | ||
6010 | ||
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | ||
6017 | ||
5c1faba5 | 6018 | for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown |
1227625a | 6019 | do |
1daf06b9 | 6020 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7f7d329e SP |
6021 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6022 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6023 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
1daf06b9 SP |
6024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6025 | else | |
6026 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
6027 | /* confdefs.h. */ |
6028 | _ACEOF | |
6029 | cat confdefs.h >>conftest.$ac_ext | |
6030 | cat >>conftest.$ac_ext <<_ACEOF | |
6031 | /* end confdefs.h. */ | |
c9e4e868 SP |
6032 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6034 | #define $ac_func innocuous_$ac_func | |
6035 | ||
1227625a | 6036 | /* System header to define __stub macros and hopefully few prototypes, |
cdfe1392 SP |
6037 | which can conflict with char $ac_func (); below. |
6038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6039 | <limits.h> exists even on freestanding compilers. */ | |
c9e4e868 | 6040 | |
cdfe1392 SP |
6041 | #ifdef __STDC__ |
6042 | # include <limits.h> | |
6043 | #else | |
6044 | # include <assert.h> | |
6045 | #endif | |
c9e4e868 SP |
6046 | |
6047 | #undef $ac_func | |
6048 | ||
7f7d329e SP |
6049 | /* Override any GCC internal prototype to avoid an error. |
6050 | Use char because int might match the return type of a GCC | |
6051 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
6052 | #ifdef __cplusplus |
6053 | extern "C" | |
6054 | #endif | |
1daf06b9 | 6055 | char $ac_func (); |
1227625a SP |
6056 | /* The GNU C library defines this for functions which it implements |
6057 | to always fail with ENOSYS. Some functions are actually named | |
6058 | something starting with __ and the normal name is an alias. */ | |
7f7d329e | 6059 | #if defined __stub_$ac_func || defined __stub___$ac_func |
1227625a | 6060 | choke me |
1227625a SP |
6061 | #endif |
6062 | ||
cdfe1392 SP |
6063 | int |
6064 | main () | |
6065 | { | |
7f7d329e | 6066 | return $ac_func (); |
1daf06b9 SP |
6067 | ; |
6068 | return 0; | |
6069 | } | |
6070 | _ACEOF | |
6071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
6072 | if { (ac_try="$ac_link" |
6073 | case "(($ac_try" in | |
6074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6075 | *) ac_try_echo=$ac_try;; | |
6076 | esac | |
6077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6078 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 6079 | ac_status=$? |
c9e4e868 SP |
6080 | grep -v '^ *+' conftest.er1 >conftest.err |
6081 | rm -f conftest.er1 | |
6082 | cat conftest.err >&5 | |
1daf06b9 SP |
6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6084 | (exit $ac_status); } && | |
7f7d329e SP |
6085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6086 | { (case "(($ac_try" in | |
6087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6088 | *) ac_try_echo=$ac_try;; | |
6089 | esac | |
6090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6091 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
6092 | ac_status=$? |
6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6094 | (exit $ac_status); }; } && | |
6095 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
6096 | { (case "(($ac_try" in |
6097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6098 | *) ac_try_echo=$ac_try;; | |
6099 | esac | |
6100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6101 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
6102 | ac_status=$? |
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6104 | (exit $ac_status); }; }; then | |
6105 | eval "$as_ac_var=yes" | |
6106 | else | |
6107 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
6108 | sed 's/^/| /' conftest.$ac_ext >&5 |
6109 | ||
7f7d329e | 6110 | eval "$as_ac_var=no" |
1daf06b9 | 6111 | fi |
7f7d329e SP |
6112 | |
6113 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 6114 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 | 6115 | fi |
7f7d329e SP |
6116 | ac_res=`eval echo '${'$as_ac_var'}'` |
6117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6118 | echo "${ECHO_T}$ac_res" >&6; } | |
1daf06b9 SP |
6119 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6120 | cat >>confdefs.h <<_ACEOF | |
6121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6122 | _ACEOF | |
1227625a | 6123 | |
1227625a SP |
6124 | fi |
6125 | done | |
6126 | ||
7f7d329e SP |
6127 | { echo "$as_me:$LINENO: checking for glob" >&5 |
6128 | echo $ECHO_N "checking for glob... $ECHO_C" >&6; } | |
1daf06b9 SP |
6129 | if test "${ac_cv_func_glob+set}" = set; then |
6130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c1faba5 | 6131 | else |
1daf06b9 | 6132 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
6133 | /* confdefs.h. */ |
6134 | _ACEOF | |
6135 | cat confdefs.h >>conftest.$ac_ext | |
6136 | cat >>conftest.$ac_ext <<_ACEOF | |
6137 | /* end confdefs.h. */ | |
c9e4e868 SP |
6138 | /* Define glob to an innocuous variant, in case <limits.h> declares glob. |
6139 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6140 | #define glob innocuous_glob | |
6141 | ||
5c1faba5 | 6142 | /* System header to define __stub macros and hopefully few prototypes, |
cdfe1392 SP |
6143 | which can conflict with char glob (); below. |
6144 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6145 | <limits.h> exists even on freestanding compilers. */ | |
c9e4e868 | 6146 | |
cdfe1392 SP |
6147 | #ifdef __STDC__ |
6148 | # include <limits.h> | |
6149 | #else | |
6150 | # include <assert.h> | |
6151 | #endif | |
c9e4e868 SP |
6152 | |
6153 | #undef glob | |
6154 | ||
7f7d329e SP |
6155 | /* Override any GCC internal prototype to avoid an error. |
6156 | Use char because int might match the return type of a GCC | |
6157 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
6158 | #ifdef __cplusplus |
6159 | extern "C" | |
6160 | #endif | |
1daf06b9 | 6161 | char glob (); |
5c1faba5 SP |
6162 | /* The GNU C library defines this for functions which it implements |
6163 | to always fail with ENOSYS. Some functions are actually named | |
6164 | something starting with __ and the normal name is an alias. */ | |
7f7d329e | 6165 | #if defined __stub_glob || defined __stub___glob |
5c1faba5 | 6166 | choke me |
5c1faba5 SP |
6167 | #endif |
6168 | ||
cdfe1392 SP |
6169 | int |
6170 | main () | |
6171 | { | |
7f7d329e | 6172 | return glob (); |
1daf06b9 SP |
6173 | ; |
6174 | return 0; | |
6175 | } | |
6176 | _ACEOF | |
6177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
6178 | if { (ac_try="$ac_link" |
6179 | case "(($ac_try" in | |
6180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6181 | *) ac_try_echo=$ac_try;; | |
6182 | esac | |
6183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6184 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 6185 | ac_status=$? |
c9e4e868 SP |
6186 | grep -v '^ *+' conftest.er1 >conftest.err |
6187 | rm -f conftest.er1 | |
6188 | cat conftest.err >&5 | |
1daf06b9 SP |
6189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6190 | (exit $ac_status); } && | |
7f7d329e SP |
6191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6192 | { (case "(($ac_try" in | |
6193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6194 | *) ac_try_echo=$ac_try;; | |
6195 | esac | |
6196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6197 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
6198 | ac_status=$? |
6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6200 | (exit $ac_status); }; } && | |
6201 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
6202 | { (case "(($ac_try" in |
6203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6204 | *) ac_try_echo=$ac_try;; | |
6205 | esac | |
6206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6207 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
6208 | ac_status=$? |
6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6210 | (exit $ac_status); }; }; then | |
6211 | ac_cv_func_glob=yes | |
6212 | else | |
6213 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
6214 | sed 's/^/| /' conftest.$ac_ext >&5 |
6215 | ||
7f7d329e | 6216 | ac_cv_func_glob=no |
1daf06b9 | 6217 | fi |
7f7d329e SP |
6218 | |
6219 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 6220 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 | 6221 | fi |
7f7d329e SP |
6222 | { echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5 |
6223 | echo "${ECHO_T}$ac_cv_func_glob" >&6; } | |
1daf06b9 SP |
6224 | |
6225 | ||
7f7d329e SP |
6226 | { echo "$as_me:$LINENO: checking for extended glob routines" >&5 |
6227 | echo $ECHO_N "checking for extended glob routines... $ECHO_C" >&6; } | |
5c1faba5 | 6228 | if test "$ac_cv_func_glob" = "yes"; then |
e7d18957 | 6229 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
6230 | /* confdefs.h. */ |
6231 | _ACEOF | |
6232 | cat confdefs.h >>conftest.$ac_ext | |
6233 | cat >>conftest.$ac_ext <<_ACEOF | |
6234 | /* end confdefs.h. */ | |
5c1faba5 SP |
6235 | |
6236 | # include <glob.h> | |
6237 | # ifdef GLOB_ALTDIRFUNC | |
6238 | yes | |
6239 | # endif | |
1daf06b9 SP |
6240 | |
6241 | _ACEOF | |
5c1faba5 | 6242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cdfe1392 | 6243 | $EGREP "yes" >/dev/null 2>&1; then |
5c1faba5 | 6244 | |
e7d18957 SP |
6245 | |
6246 | cat >>confdefs.h <<\_ACEOF | |
1daf06b9 SP |
6247 | #define HAVE_GLOB 1 |
6248 | _ACEOF | |
1227625a | 6249 | |
7f7d329e SP |
6250 | { echo "$as_me:$LINENO: result: yes" >&5 |
6251 | echo "${ECHO_T}yes" >&6; } | |
1227625a | 6252 | |
1227625a | 6253 | else |
1227625a | 6254 | |
7f7d329e SP |
6255 | { echo "$as_me:$LINENO: result: no" >&5 |
6256 | echo "${ECHO_T}no" >&6; } | |
1daf06b9 | 6257 | echo "Your system does not support extended glob, will use the internal routines" |
1227625a | 6258 | |
1227625a SP |
6259 | fi |
6260 | rm -f conftest* | |
6261 | ||
6262 | fi | |
6263 | ||
18282881 | 6264 | if test "$ERMT" != ""; then |
e7d18957 | 6265 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
7f7d329e SP |
6266 | { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 |
6267 | echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; } | |
18282881 SP |
6268 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6270 | fi | |
7f7d329e SP |
6271 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 |
6272 | echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; } | |
18282881 SP |
6273 | else |
6274 | # Is the header compilable? | |
7f7d329e SP |
6275 | { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5 |
6276 | echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; } | |
18282881 | 6277 | cat >conftest.$ac_ext <<_ACEOF |
18282881 SP |
6278 | /* confdefs.h. */ |
6279 | _ACEOF | |
6280 | cat confdefs.h >>conftest.$ac_ext | |
6281 | cat >>conftest.$ac_ext <<_ACEOF | |
6282 | /* end confdefs.h. */ | |
6283 | $ac_includes_default | |
6284 | #include <openssl/evp.h> | |
6285 | _ACEOF | |
6286 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6287 | if { (ac_try="$ac_compile" |
6288 | case "(($ac_try" in | |
6289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6290 | *) ac_try_echo=$ac_try;; | |
6291 | esac | |
6292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6293 | (eval "$ac_compile") 2>conftest.er1 | |
18282881 | 6294 | ac_status=$? |
c9e4e868 SP |
6295 | grep -v '^ *+' conftest.er1 >conftest.err |
6296 | rm -f conftest.er1 | |
6297 | cat conftest.err >&5 | |
18282881 SP |
6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6299 | (exit $ac_status); } && | |
7f7d329e SP |
6300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6301 | { (case "(($ac_try" in | |
6302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6303 | *) ac_try_echo=$ac_try;; | |
6304 | esac | |
6305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6306 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
6307 | ac_status=$? |
6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6309 | (exit $ac_status); }; } && | |
6310 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
6311 | { (case "(($ac_try" in |
6312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6313 | *) ac_try_echo=$ac_try;; | |
6314 | esac | |
6315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6316 | (eval "$ac_try") 2>&5 | |
18282881 SP |
6317 | ac_status=$? |
6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6319 | (exit $ac_status); }; }; then | |
6320 | ac_header_compiler=yes | |
6321 | else | |
6322 | echo "$as_me: failed program was:" >&5 | |
6323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6324 | ||
7f7d329e | 6325 | ac_header_compiler=no |
18282881 | 6326 | fi |
7f7d329e SP |
6327 | |
6328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6329 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6330 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
18282881 SP |
6331 | |
6332 | # Is the header present? | |
7f7d329e SP |
6333 | { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5 |
6334 | echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; } | |
18282881 | 6335 | cat >conftest.$ac_ext <<_ACEOF |
18282881 SP |
6336 | /* confdefs.h. */ |
6337 | _ACEOF | |
6338 | cat confdefs.h >>conftest.$ac_ext | |
6339 | cat >>conftest.$ac_ext <<_ACEOF | |
6340 | /* end confdefs.h. */ | |
6341 | #include <openssl/evp.h> | |
6342 | _ACEOF | |
7f7d329e SP |
6343 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6344 | case "(($ac_try" in | |
6345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6346 | *) ac_try_echo=$ac_try;; | |
6347 | esac | |
6348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6349 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
18282881 SP |
6350 | ac_status=$? |
6351 | grep -v '^ *+' conftest.er1 >conftest.err | |
6352 | rm -f conftest.er1 | |
6353 | cat conftest.err >&5 | |
6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6355 | (exit $ac_status); } >/dev/null; then | |
6356 | if test -s conftest.err; then | |
6357 | ac_cpp_err=$ac_c_preproc_warn_flag | |
c9e4e868 | 6358 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
18282881 SP |
6359 | else |
6360 | ac_cpp_err= | |
6361 | fi | |
6362 | else | |
6363 | ac_cpp_err=yes | |
6364 | fi | |
6365 | if test -z "$ac_cpp_err"; then | |
6366 | ac_header_preproc=yes | |
6367 | else | |
6368 | echo "$as_me: failed program was:" >&5 | |
6369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6370 | ||
6371 | ac_header_preproc=no | |
6372 | fi | |
7f7d329e | 6373 | |
18282881 | 6374 | rm -f conftest.err conftest.$ac_ext |
7f7d329e SP |
6375 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6376 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
18282881 SP |
6377 | |
6378 | # So? What about this header? | |
c9e4e868 SP |
6379 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6380 | yes:no: ) | |
18282881 SP |
6381 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6382 | echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c9e4e868 SP |
6383 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5 |
6384 | echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;} | |
6385 | ac_header_preproc=yes | |
18282881 | 6386 | ;; |
c9e4e868 | 6387 | no:yes:* ) |
18282881 SP |
6388 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5 |
6389 | echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;} | |
c9e4e868 SP |
6390 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5 |
6391 | echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;} | |
6392 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5 | |
6393 | echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;} | |
6394 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6395 | echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
18282881 SP |
6396 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5 |
6397 | echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;} | |
c9e4e868 SP |
6398 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5 |
6399 | echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;} | |
7f7d329e | 6400 | |
18282881 SP |
6401 | ;; |
6402 | esac | |
7f7d329e SP |
6403 | { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 |
6404 | echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; } | |
18282881 SP |
6405 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
6406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6407 | else | |
6408 | ac_cv_header_openssl_evp_h=$ac_header_preproc | |
6409 | fi | |
7f7d329e SP |
6410 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 |
6411 | echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; } | |
18282881 SP |
6412 | |
6413 | fi | |
6414 | if test $ac_cv_header_openssl_evp_h = yes; then | |
6415 | evp_h=yes | |
6416 | else | |
6417 | evp_h=no | |
6418 | fi | |
6419 | ||
6420 | ||
7f7d329e SP |
6421 | { echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5 |
6422 | echo $ECHO_N "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... $ECHO_C" >&6; } | |
18282881 SP |
6423 | if test "${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+set}" = set; then |
6424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6425 | else | |
6426 | ac_check_lib_save_LIBS=$LIBS | |
6427 | LIBS="-lcrypto $LIBS" | |
6428 | cat >conftest.$ac_ext <<_ACEOF | |
18282881 SP |
6429 | /* confdefs.h. */ |
6430 | _ACEOF | |
6431 | cat confdefs.h >>conftest.$ac_ext | |
6432 | cat >>conftest.$ac_ext <<_ACEOF | |
6433 | /* end confdefs.h. */ | |
6434 | ||
7f7d329e SP |
6435 | /* Override any GCC internal prototype to avoid an error. |
6436 | Use char because int might match the return type of a GCC | |
6437 | builtin and then its argument prototype would still apply. */ | |
18282881 SP |
6438 | #ifdef __cplusplus |
6439 | extern "C" | |
6440 | #endif | |
18282881 SP |
6441 | char EVP_CIPHER_CTX_set_padding (); |
6442 | int | |
6443 | main () | |
6444 | { | |
7f7d329e | 6445 | return EVP_CIPHER_CTX_set_padding (); |
18282881 SP |
6446 | ; |
6447 | return 0; | |
6448 | } | |
6449 | _ACEOF | |
6450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
6451 | if { (ac_try="$ac_link" |
6452 | case "(($ac_try" in | |
6453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6454 | *) ac_try_echo=$ac_try;; | |
6455 | esac | |
6456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6457 | (eval "$ac_link") 2>conftest.er1 | |
18282881 | 6458 | ac_status=$? |
c9e4e868 SP |
6459 | grep -v '^ *+' conftest.er1 >conftest.err |
6460 | rm -f conftest.er1 | |
6461 | cat conftest.err >&5 | |
18282881 SP |
6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6463 | (exit $ac_status); } && | |
7f7d329e SP |
6464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6465 | { (case "(($ac_try" in | |
6466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6467 | *) ac_try_echo=$ac_try;; | |
6468 | esac | |
6469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6470 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
6471 | ac_status=$? |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 | (exit $ac_status); }; } && | |
6474 | { ac_try='test -s conftest$ac_exeext' | |
7f7d329e SP |
6475 | { (case "(($ac_try" in |
6476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6477 | *) ac_try_echo=$ac_try;; | |
6478 | esac | |
6479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6480 | (eval "$ac_try") 2>&5 | |
18282881 SP |
6481 | ac_status=$? |
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6483 | (exit $ac_status); }; }; then | |
6484 | ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes | |
6485 | else | |
6486 | echo "$as_me: failed program was:" >&5 | |
6487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6488 | ||
7f7d329e | 6489 | ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no |
18282881 | 6490 | fi |
7f7d329e SP |
6491 | |
6492 | rm -f core conftest.err conftest.$ac_objext \ | |
c9e4e868 | 6493 | conftest$ac_exeext conftest.$ac_ext |
18282881 SP |
6494 | LIBS=$ac_check_lib_save_LIBS |
6495 | fi | |
7f7d329e SP |
6496 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5 |
6497 | echo "${ECHO_T}$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; } | |
18282881 SP |
6498 | if test $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding = yes; then |
6499 | crypto_lib=yes | |
6500 | else | |
6501 | crypto_lib=no | |
6502 | fi | |
6503 | ||
6504 | if test "$evp_h" = no -o "$crypto_lib" = no; then | |
6505 | { { echo "$as_me:$LINENO: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&5 | |
6506 | echo "$as_me: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&2;} | |
6507 | { (exit or configure without --enable-ermt); exit or configure without --enable-ermt; }; } | |
6508 | fi | |
6509 | fi | |
6510 | ||
7f7d329e SP |
6511 | { echo "$as_me:$LINENO: checking for quad_t" >&5 |
6512 | echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; } | |
1daf06b9 SP |
6513 | if test "${ac_cv_type_quad_t+set}" = set; then |
6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 6515 | else |
1daf06b9 | 6516 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
6517 | /* confdefs.h. */ |
6518 | _ACEOF | |
6519 | cat confdefs.h >>conftest.$ac_ext | |
6520 | cat >>conftest.$ac_ext <<_ACEOF | |
6521 | /* end confdefs.h. */ | |
1daf06b9 | 6522 | $ac_includes_default |
7f7d329e | 6523 | typedef quad_t ac__type_new_; |
1daf06b9 SP |
6524 | int |
6525 | main () | |
6526 | { | |
7f7d329e | 6527 | if ((ac__type_new_ *) 0) |
1daf06b9 | 6528 | return 0; |
7f7d329e | 6529 | if (sizeof (ac__type_new_)) |
1daf06b9 SP |
6530 | return 0; |
6531 | ; | |
6532 | return 0; | |
6533 | } | |
6534 | _ACEOF | |
6535 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6536 | if { (ac_try="$ac_compile" |
6537 | case "(($ac_try" in | |
6538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6539 | *) ac_try_echo=$ac_try;; | |
6540 | esac | |
6541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6542 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 6543 | ac_status=$? |
c9e4e868 SP |
6544 | grep -v '^ *+' conftest.er1 >conftest.err |
6545 | rm -f conftest.er1 | |
6546 | cat conftest.err >&5 | |
1daf06b9 SP |
6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6548 | (exit $ac_status); } && | |
7f7d329e SP |
6549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6550 | { (case "(($ac_try" in | |
6551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6552 | *) ac_try_echo=$ac_try;; | |
6553 | esac | |
6554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6555 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
6556 | ac_status=$? |
6557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6558 | (exit $ac_status); }; } && | |
6559 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
6560 | { (case "(($ac_try" in |
6561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6562 | *) ac_try_echo=$ac_try;; | |
6563 | esac | |
6564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6565 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
6566 | ac_status=$? |
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6568 | (exit $ac_status); }; }; then | |
1227625a SP |
6569 | ac_cv_type_quad_t=yes |
6570 | else | |
1daf06b9 | 6571 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
6572 | sed 's/^/| /' conftest.$ac_ext >&5 |
6573 | ||
7f7d329e | 6574 | ac_cv_type_quad_t=no |
1227625a | 6575 | fi |
7f7d329e SP |
6576 | |
6577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6578 | fi |
7f7d329e SP |
6579 | { echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5 |
6580 | echo "${ECHO_T}$ac_cv_type_quad_t" >&6; } | |
1daf06b9 SP |
6581 | if test $ac_cv_type_quad_t = yes; then |
6582 | : | |
6583 | else | |
6584 | ||
6585 | cat >>confdefs.h <<_ACEOF | |
1a886de8 | 6586 | #define quad_t int64_t |
1daf06b9 | 6587 | _ACEOF |
1227625a SP |
6588 | |
6589 | fi | |
6590 | ||
7f7d329e SP |
6591 | { echo "$as_me:$LINENO: checking for u_quad_t" >&5 |
6592 | echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6; } | |
1daf06b9 SP |
6593 | if test "${ac_cv_type_u_quad_t+set}" = set; then |
6594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 6595 | else |
1daf06b9 | 6596 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
6597 | /* confdefs.h. */ |
6598 | _ACEOF | |
6599 | cat confdefs.h >>conftest.$ac_ext | |
6600 | cat >>conftest.$ac_ext <<_ACEOF | |
6601 | /* end confdefs.h. */ | |
1daf06b9 | 6602 | $ac_includes_default |
7f7d329e | 6603 | typedef u_quad_t ac__type_new_; |
1daf06b9 SP |
6604 | int |
6605 | main () | |
6606 | { | |
7f7d329e | 6607 | if ((ac__type_new_ *) 0) |
1daf06b9 | 6608 | return 0; |
7f7d329e | 6609 | if (sizeof (ac__type_new_)) |
1daf06b9 SP |
6610 | return 0; |
6611 | ; | |
6612 | return 0; | |
6613 | } | |
6614 | _ACEOF | |
6615 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6616 | if { (ac_try="$ac_compile" |
6617 | case "(($ac_try" in | |
6618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6619 | *) ac_try_echo=$ac_try;; | |
6620 | esac | |
6621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6622 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 6623 | ac_status=$? |
c9e4e868 SP |
6624 | grep -v '^ *+' conftest.er1 >conftest.err |
6625 | rm -f conftest.er1 | |
6626 | cat conftest.err >&5 | |
1daf06b9 SP |
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6628 | (exit $ac_status); } && | |
7f7d329e SP |
6629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6630 | { (case "(($ac_try" in | |
6631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6632 | *) ac_try_echo=$ac_try;; | |
6633 | esac | |
6634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6635 | (eval "$ac_try") 2>&5 | |
c9e4e868 SP |
6636 | ac_status=$? |
6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6638 | (exit $ac_status); }; } && | |
6639 | { ac_try='test -s conftest.$ac_objext' | |
7f7d329e SP |
6640 | { (case "(($ac_try" in |
6641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6642 | *) ac_try_echo=$ac_try;; | |
6643 | esac | |
6644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6645 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
6646 | ac_status=$? |
6647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6648 | (exit $ac_status); }; }; then | |
1227625a SP |
6649 | ac_cv_type_u_quad_t=yes |
6650 | else | |
1daf06b9 | 6651 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
6652 | sed 's/^/| /' conftest.$ac_ext >&5 |
6653 | ||
7f7d329e | 6654 | ac_cv_type_u_quad_t=no |
1227625a | 6655 | fi |
7f7d329e SP |
6656 | |
6657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6658 | fi |
7f7d329e SP |
6659 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5 |
6660 | echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6; } | |
1daf06b9 SP |
6661 | if test $ac_cv_type_u_quad_t = yes; then |
6662 | : | |
6663 | else | |
6664 | ||
6665 | cat >>confdefs.h <<_ACEOF | |
1a886de8 | 6666 | #define u_quad_t uint64_t |
1daf06b9 | 6667 | _ACEOF |
1227625a SP |
6668 | |
6669 | fi | |
6670 | ||
6671 | ||
6672 | top_builddir=`cd .; pwd` | |
6673 | ||
6674 | ||
6675 | test -d compat || mkdir compat | |
6676 | test -d compat/lib || mkdir compat/lib | |
6677 | ||
7f7d329e SP |
6678 | ac_config_files="$ac_config_files MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE" |
6679 | ||
1daf06b9 | 6680 | cat >confcache <<\_ACEOF |
1227625a SP |
6681 | # This file is a shell script that caches the results of configure |
6682 | # tests run on this system so they can be shared between configure | |
1daf06b9 SP |
6683 | # scripts and configure runs, see configure's option --config-cache. |
6684 | # It is not useful on other systems. If it contains results you don't | |
6685 | # want to keep, you may remove or edit it. | |
1227625a | 6686 | # |
1daf06b9 SP |
6687 | # config.status only pays attention to the cache file if you give it |
6688 | # the --recheck option to rerun configure. | |
1227625a | 6689 | # |
cdfe1392 | 6690 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
1daf06b9 SP |
6691 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6692 | # following values. | |
6693 | ||
6694 | _ACEOF | |
6695 | ||
1227625a SP |
6696 | # The following way of writing the cache mishandles newlines in values, |
6697 | # but we know of no workaround that is simple, portable, and efficient. | |
7f7d329e | 6698 | # So, we kill variables containing newlines. |
1227625a SP |
6699 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6700 | # and sets the high bit in the cache file unless we assign to the vars. | |
7f7d329e SP |
6701 | ( |
6702 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6703 | eval ac_val=\$$ac_var | |
6704 | case $ac_val in #( | |
6705 | *${as_nl}*) | |
6706 | case $ac_var in #( | |
6707 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
6708 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
6709 | esac | |
6710 | case $ac_var in #( | |
6711 | _ | IFS | as_nl) ;; #( | |
6712 | *) $as_unset $ac_var ;; | |
6713 | esac ;; | |
6714 | esac | |
6715 | done | |
6716 | ||
1daf06b9 | 6717 | (set) 2>&1 | |
7f7d329e SP |
6718 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6719 | *${as_nl}ac_space=\ *) | |
1daf06b9 SP |
6720 | # `set' does not quote correctly, so add quotes (double-quote |
6721 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6722 | sed -n \ | |
c9e4e868 SP |
6723 | "s/'/'\\\\''/g; |
6724 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7f7d329e | 6725 | ;; #( |
1daf06b9 SP |
6726 | *) |
6727 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7f7d329e | 6728 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1daf06b9 | 6729 | ;; |
7f7d329e SP |
6730 | esac | |
6731 | sort | |
6732 | ) | | |
1daf06b9 | 6733 | sed ' |
7f7d329e | 6734 | /^ac_cv_env_/b end |
1daf06b9 | 6735 | t clear |
7f7d329e | 6736 | :clear |
1daf06b9 SP |
6737 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6738 | t end | |
7f7d329e SP |
6739 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6740 | :end' >>confcache | |
6741 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6742 | if test -w "$cache_file"; then | |
6743 | test "x$cache_file" != "x/dev/null" && | |
6744 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
6745 | echo "$as_me: updating cache $cache_file" >&6;} | |
1daf06b9 | 6746 | cat confcache >$cache_file |
1227625a | 6747 | else |
7f7d329e SP |
6748 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
6749 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
1227625a SP |
6750 | fi |
6751 | fi | |
6752 | rm -f confcache | |
6753 | ||
1227625a SP |
6754 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6755 | # Let make expand exec_prefix. | |
6756 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6757 | ||
1227625a SP |
6758 | DEFS=-DHAVE_CONFIG_H |
6759 | ||
cdfe1392 SP |
6760 | ac_libobjs= |
6761 | ac_ltlibobjs= | |
6762 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6763 | # 1. Remove the extension, and $U if already installed. | |
7f7d329e SP |
6764 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6765 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
6766 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6767 | # will be set to the directory where LIBOBJS objects are built. | |
6768 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6769 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
cdfe1392 SP |
6770 | done |
6771 | LIBOBJS=$ac_libobjs | |
6772 | ||
6773 | LTLIBOBJS=$ac_ltlibobjs | |
6774 | ||
6775 | ||
1227625a | 6776 | |
1daf06b9 SP |
6777 | : ${CONFIG_STATUS=./config.status} |
6778 | ac_clean_files_save=$ac_clean_files | |
6779 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6780 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6781 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6782 | cat >$CONFIG_STATUS <<_ACEOF | |
6783 | #! $SHELL | |
6784 | # Generated by $as_me. | |
1227625a | 6785 | # Run this file to recreate the current configuration. |
1227625a | 6786 | # Compiler output produced by configure, useful for debugging |
1daf06b9 | 6787 | # configure, is in config.log if it exists. |
1227625a | 6788 | |
1daf06b9 | 6789 | debug=false |
cdfe1392 SP |
6790 | ac_cs_recheck=false |
6791 | ac_cs_silent=false | |
1daf06b9 SP |
6792 | SHELL=\${CONFIG_SHELL-$SHELL} |
6793 | _ACEOF | |
6794 | ||
6795 | cat >>$CONFIG_STATUS <<\_ACEOF | |
1daf06b9 SP |
6796 | ## --------------------- ## |
6797 | ## M4sh Initialization. ## | |
6798 | ## --------------------- ## | |
6799 | ||
6800 | # Be Bourne compatible | |
6801 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6802 | emulate sh | |
6803 | NULLCMD=: | |
cdfe1392 SP |
6804 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
6805 | # is contrary to our usage. Disable this feature. | |
6806 | alias -g '${1+"$@"}'='"$@"' | |
7f7d329e SP |
6807 | setopt NO_GLOB_SUBST |
6808 | else | |
6809 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
1daf06b9 | 6810 | fi |
7f7d329e | 6811 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
c9e4e868 | 6812 | DUALCASE=1; export DUALCASE # for MKS sh |
1daf06b9 | 6813 | |
7f7d329e SP |
6814 | |
6815 | # PATH needs CR | |
6816 | # Avoid depending upon Character Ranges. | |
6817 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6818 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6819 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6820 | as_cr_digits='0123456789' | |
6821 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6822 | ||
6823 | # The user is always right. | |
6824 | if test "${PATH_SEPARATOR+set}" != set; then | |
6825 | echo "#! /bin/sh" >conf$$.sh | |
6826 | echo "exit 0" >>conf$$.sh | |
6827 | chmod +x conf$$.sh | |
6828 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6829 | PATH_SEPARATOR=';' | |
6830 | else | |
6831 | PATH_SEPARATOR=: | |
6832 | fi | |
6833 | rm -f conf$$.sh | |
6834 | fi | |
6835 | ||
1daf06b9 | 6836 | # Support unset when possible. |
c9e4e868 | 6837 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
1daf06b9 SP |
6838 | as_unset=unset |
6839 | else | |
6840 | as_unset=false | |
6841 | fi | |
6842 | ||
cdfe1392 | 6843 | |
7f7d329e SP |
6844 | # IFS |
6845 | # We need space, tab and new line, in precisely that order. Quoting is | |
6846 | # there to prevent editors from complaining about space-tab. | |
6847 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6848 | # splitting by setting IFS to empty value.) | |
6849 | as_nl=' | |
6850 | ' | |
6851 | IFS=" "" $as_nl" | |
6852 | ||
6853 | # Find who we are. Look in the path if we contain no directory separator. | |
6854 | case $0 in | |
6855 | *[\\/]* ) as_myself=$0 ;; | |
6856 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6857 | for as_dir in $PATH | |
6858 | do | |
6859 | IFS=$as_save_IFS | |
6860 | test -z "$as_dir" && as_dir=. | |
6861 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6862 | done | |
6863 | IFS=$as_save_IFS | |
6864 | ||
6865 | ;; | |
6866 | esac | |
6867 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6868 | # in which case we are not to be found in the path. | |
6869 | if test "x$as_myself" = x; then | |
6870 | as_myself=$0 | |
6871 | fi | |
6872 | if test ! -f "$as_myself"; then | |
6873 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6874 | { (exit 1); exit 1; } | |
6875 | fi | |
6876 | ||
cdfe1392 | 6877 | # Work around bugs in pre-3.0 UWIN ksh. |
7f7d329e SP |
6878 | for as_var in ENV MAIL MAILPATH |
6879 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
6880 | done | |
cdfe1392 SP |
6881 | PS1='$ ' |
6882 | PS2='> ' | |
6883 | PS4='+ ' | |
6884 | ||
6885 | # NLS nuisances. | |
6886 | for as_var in \ | |
6887 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6888 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6889 | LC_TELEPHONE LC_TIME | |
6890 | do | |
c9e4e868 | 6891 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
cdfe1392 SP |
6892 | eval $as_var=C; export $as_var |
6893 | else | |
7f7d329e | 6894 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
cdfe1392 SP |
6895 | fi |
6896 | done | |
6897 | ||
6898 | # Required to use basename. | |
7f7d329e SP |
6899 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6900 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
cdfe1392 SP |
6901 | as_expr=expr |
6902 | else | |
6903 | as_expr=false | |
6904 | fi | |
6905 | ||
7f7d329e | 6906 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
cdfe1392 SP |
6907 | as_basename=basename |
6908 | else | |
6909 | as_basename=false | |
6910 | fi | |
1daf06b9 SP |
6911 | |
6912 | ||
6913 | # Name of the executable. | |
7f7d329e | 6914 | as_me=`$as_basename -- "$0" || |
1daf06b9 SP |
6915 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6916 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 6917 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 6918 | echo X/"$0" | |
7f7d329e SP |
6919 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
6920 | s//\1/ | |
6921 | q | |
6922 | } | |
6923 | /^X\/\(\/\/\)$/{ | |
6924 | s//\1/ | |
6925 | q | |
6926 | } | |
6927 | /^X\/\(\/\).*/{ | |
6928 | s//\1/ | |
6929 | q | |
6930 | } | |
6931 | s/.*/./; q'` | |
1daf06b9 | 6932 | |
7f7d329e SP |
6933 | # CDPATH. |
6934 | $as_unset CDPATH | |
1daf06b9 SP |
6935 | |
6936 | ||
1daf06b9 | 6937 | |
1daf06b9 SP |
6938 | as_lineno_1=$LINENO |
6939 | as_lineno_2=$LINENO | |
1daf06b9 | 6940 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7f7d329e | 6941 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
1daf06b9 SP |
6942 | |
6943 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6944 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7f7d329e SP |
6945 | # line-number line after each line using $LINENO; the second 'sed' |
6946 | # does the real work. The second script uses 'N' to pair each | |
6947 | # line-number line with the line containing $LINENO, and appends | |
6948 | # trailing '-' during substitution so that $LINENO is not a special | |
6949 | # case at line end. | |
1daf06b9 | 6950 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7f7d329e SP |
6951 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
6952 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
6953 | sed -n ' | |
6954 | p | |
6955 | /[$]LINENO/= | |
6956 | ' <$as_myself | | |
1daf06b9 | 6957 | sed ' |
7f7d329e SP |
6958 | s/[$]LINENO.*/&-/ |
6959 | t lineno | |
6960 | b | |
6961 | :lineno | |
1daf06b9 | 6962 | N |
7f7d329e SP |
6963 | :loop |
6964 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1daf06b9 | 6965 | t loop |
7f7d329e | 6966 | s/-\n.*// |
1daf06b9 | 6967 | ' >$as_me.lineno && |
7f7d329e SP |
6968 | chmod +x "$as_me.lineno" || |
6969 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
1daf06b9 SP |
6970 | { (exit 1); exit 1; }; } |
6971 | ||
6972 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6973 | # (the dirname of $[0] is not the place where we might find the | |
7f7d329e SP |
6974 | # original and so on. Autoconf is especially sensitive to this). |
6975 | . "./$as_me.lineno" | |
1daf06b9 SP |
6976 | # Exit status is that of the last command. |
6977 | exit | |
6978 | } | |
6979 | ||
6980 | ||
7f7d329e SP |
6981 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6982 | as_dirname=dirname | |
6983 | else | |
6984 | as_dirname=false | |
6985 | fi | |
6986 | ||
6987 | ECHO_C= ECHO_N= ECHO_T= | |
6988 | case `echo -n x` in | |
6989 | -n*) | |
6990 | case `echo 'x\c'` in | |
6991 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6992 | *) ECHO_C='\c';; | |
6993 | esac;; | |
6994 | *) | |
6995 | ECHO_N='-n';; | |
1daf06b9 SP |
6996 | esac |
6997 | ||
7f7d329e SP |
6998 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6999 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1daf06b9 SP |
7000 | as_expr=expr |
7001 | else | |
7002 | as_expr=false | |
7003 | fi | |
7004 | ||
7005 | rm -f conf$$ conf$$.exe conf$$.file | |
7f7d329e SP |
7006 | if test -d conf$$.dir; then |
7007 | rm -f conf$$.dir/conf$$.file | |
7008 | else | |
7009 | rm -f conf$$.dir | |
7010 | mkdir conf$$.dir | |
7011 | fi | |
1daf06b9 SP |
7012 | echo >conf$$.file |
7013 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7f7d329e SP |
7014 | as_ln_s='ln -s' |
7015 | # ... but there are two gotchas: | |
7016 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7017 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7018 | # In both cases, we have to default to `cp -p'. | |
7019 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
1daf06b9 | 7020 | as_ln_s='cp -p' |
1daf06b9 SP |
7021 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7022 | as_ln_s=ln | |
7023 | else | |
7024 | as_ln_s='cp -p' | |
7025 | fi | |
7f7d329e SP |
7026 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7027 | rmdir conf$$.dir 2>/dev/null | |
1daf06b9 | 7028 | |
cdfe1392 SP |
7029 | if mkdir -p . 2>/dev/null; then |
7030 | as_mkdir_p=: | |
7031 | else | |
c9e4e868 | 7032 | test -d ./-p && rmdir ./-p |
cdfe1392 SP |
7033 | as_mkdir_p=false |
7034 | fi | |
7035 | ||
7f7d329e SP |
7036 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
7037 | # systems may use methods other than mode bits to determine executability. | |
7038 | cat >conf$$.file <<_ASEOF | |
7039 | #! /bin/sh | |
7040 | exit 0 | |
7041 | _ASEOF | |
7042 | chmod +x conf$$.file | |
7043 | if test -x conf$$.file >/dev/null 2>&1; then | |
7044 | as_executable_p="test -x" | |
7045 | else | |
7046 | as_executable_p=: | |
7047 | fi | |
7048 | rm -f conf$$.file | |
1daf06b9 SP |
7049 | |
7050 | # Sed expression to map a string onto a valid CPP name. | |
c9e4e868 | 7051 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
7052 | |
7053 | # Sed expression to map a string onto a valid variable name. | |
c9e4e868 | 7054 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
7055 | |
7056 | ||
1daf06b9 SP |
7057 | exec 6>&1 |
7058 | ||
7f7d329e | 7059 | # Save the log message, to keep $[0] and so on meaningful, and to |
1daf06b9 | 7060 | # report actual input values of CONFIG_FILES etc. instead of their |
7f7d329e SP |
7061 | # values after options handling. |
7062 | ac_log=" | |
1daf06b9 | 7063 | This file was extended by $as_me, which was |
7f7d329e | 7064 | generated by GNU Autoconf 2.60. Invocation command line was |
1daf06b9 SP |
7065 | |
7066 | CONFIG_FILES = $CONFIG_FILES | |
7067 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7068 | CONFIG_LINKS = $CONFIG_LINKS | |
7069 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7070 | $ $0 $@ | |
7071 | ||
7f7d329e SP |
7072 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7073 | " | |
7074 | ||
1daf06b9 SP |
7075 | _ACEOF |
7076 | ||
7f7d329e | 7077 | cat >>$CONFIG_STATUS <<_ACEOF |
1daf06b9 | 7078 | # Files that config.status was made for. |
7f7d329e SP |
7079 | config_files="$ac_config_files" |
7080 | config_headers="$ac_config_headers" | |
1daf06b9 | 7081 | |
7f7d329e | 7082 | _ACEOF |
1daf06b9 SP |
7083 | |
7084 | cat >>$CONFIG_STATUS <<\_ACEOF | |
1daf06b9 SP |
7085 | ac_cs_usage="\ |
7086 | \`$as_me' instantiates files from templates according to the | |
7087 | current configuration. | |
7088 | ||
7089 | Usage: $0 [OPTIONS] [FILE]... | |
7090 | ||
7091 | -h, --help print this help, then exit | |
7092 | -V, --version print version number, then exit | |
cdfe1392 | 7093 | -q, --quiet do not print progress messages |
1daf06b9 SP |
7094 | -d, --debug don't remove temporary files |
7095 | --recheck update $as_me by reconfiguring in the same conditions | |
7096 | --file=FILE[:TEMPLATE] | |
c9e4e868 | 7097 | instantiate the configuration file FILE |
1daf06b9 | 7098 | --header=FILE[:TEMPLATE] |
c9e4e868 | 7099 | instantiate the configuration header FILE |
1daf06b9 SP |
7100 | |
7101 | Configuration files: | |
7102 | $config_files | |
7103 | ||
7104 | Configuration headers: | |
7105 | $config_headers | |
7106 | ||
7107 | Report bugs to <bug-autoconf@gnu.org>." | |
1daf06b9 | 7108 | |
7f7d329e | 7109 | _ACEOF |
1daf06b9 SP |
7110 | cat >>$CONFIG_STATUS <<_ACEOF |
7111 | ac_cs_version="\\ | |
7112 | config.status | |
7f7d329e SP |
7113 | configured by $0, generated by GNU Autoconf 2.60, |
7114 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1daf06b9 | 7115 | |
7f7d329e | 7116 | Copyright (C) 2006 Free Software Foundation, Inc. |
1daf06b9 SP |
7117 | This config.status script is free software; the Free Software Foundation |
7118 | gives unlimited permission to copy, distribute and modify it." | |
7f7d329e SP |
7119 | |
7120 | ac_pwd='$ac_pwd' | |
7121 | srcdir='$srcdir' | |
7122 | INSTALL='$INSTALL' | |
1daf06b9 SP |
7123 | _ACEOF |
7124 | ||
7125 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7126 | # If no file are specified by the user, then we need to provide default | |
7127 | # value. By we need to know if files were specified by the user. | |
7128 | ac_need_defaults=: | |
7129 | while test $# != 0 | |
1227625a | 7130 | do |
1daf06b9 SP |
7131 | case $1 in |
7132 | --*=*) | |
7f7d329e SP |
7133 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7134 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
cdfe1392 SP |
7135 | ac_shift=: |
7136 | ;; | |
7f7d329e | 7137 | *) |
cdfe1392 SP |
7138 | ac_option=$1 |
7139 | ac_optarg=$2 | |
7140 | ac_shift=shift | |
1daf06b9 | 7141 | ;; |
1daf06b9 SP |
7142 | esac |
7143 | ||
cdfe1392 | 7144 | case $ac_option in |
1daf06b9 | 7145 | # Handling of the options. |
cdfe1392 SP |
7146 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7147 | ac_cs_recheck=: ;; | |
7f7d329e SP |
7148 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7149 | echo "$ac_cs_version"; exit ;; | |
7150 | --debug | --debu | --deb | --de | --d | -d ) | |
1daf06b9 SP |
7151 | debug=: ;; |
7152 | --file | --fil | --fi | --f ) | |
cdfe1392 SP |
7153 | $ac_shift |
7154 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
1daf06b9 SP |
7155 | ac_need_defaults=false;; |
7156 | --header | --heade | --head | --hea ) | |
cdfe1392 SP |
7157 | $ac_shift |
7158 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
1daf06b9 | 7159 | ac_need_defaults=false;; |
7f7d329e SP |
7160 | --he | --h) |
7161 | # Conflict between --help and --header | |
7162 | { echo "$as_me: error: ambiguous option: $1 | |
7163 | Try \`$0 --help' for more information." >&2 | |
7164 | { (exit 1); exit 1; }; };; | |
7165 | --help | --hel | -h ) | |
7166 | echo "$ac_cs_usage"; exit ;; | |
cdfe1392 SP |
7167 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7168 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7169 | ac_cs_silent=: ;; | |
1daf06b9 SP |
7170 | |
7171 | # This is an error. | |
7f7d329e SP |
7172 | -*) { echo "$as_me: error: unrecognized option: $1 |
7173 | Try \`$0 --help' for more information." >&2 | |
1daf06b9 SP |
7174 | { (exit 1); exit 1; }; } ;; |
7175 | ||
7f7d329e SP |
7176 | *) ac_config_targets="$ac_config_targets $1" |
7177 | ac_need_defaults=false ;; | |
1daf06b9 | 7178 | |
1227625a | 7179 | esac |
1daf06b9 | 7180 | shift |
1227625a SP |
7181 | done |
7182 | ||
cdfe1392 SP |
7183 | ac_configure_extra_args= |
7184 | ||
7185 | if $ac_cs_silent; then | |
7186 | exec 6>/dev/null | |
7187 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7188 | fi | |
7189 | ||
7190 | _ACEOF | |
7191 | cat >>$CONFIG_STATUS <<_ACEOF | |
7192 | if \$ac_cs_recheck; then | |
7f7d329e SP |
7193 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
7194 | CONFIG_SHELL=$SHELL | |
7195 | export CONFIG_SHELL | |
7196 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
cdfe1392 SP |
7197 | fi |
7198 | ||
1daf06b9 | 7199 | _ACEOF |
7f7d329e SP |
7200 | cat >>$CONFIG_STATUS <<\_ACEOF |
7201 | exec 5>>config.log | |
7202 | { | |
7203 | echo | |
7204 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7205 | ## Running $as_me. ## | |
7206 | _ASBOX | |
7207 | echo "$ac_log" | |
7208 | } >&5 | |
1227625a | 7209 | |
7f7d329e SP |
7210 | _ACEOF |
7211 | cat >>$CONFIG_STATUS <<_ACEOF | |
7212 | _ACEOF | |
1daf06b9 SP |
7213 | |
7214 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7f7d329e SP |
7215 | |
7216 | # Handling of arguments. | |
1daf06b9 SP |
7217 | for ac_config_target in $ac_config_targets |
7218 | do | |
7f7d329e SP |
7219 | case $ac_config_target in |
7220 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7221 | "MCONFIG") CONFIG_FILES="$CONFIG_FILES MCONFIG" ;; | |
7222 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7223 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
7224 | "compat/include/Makefile") CONFIG_FILES="$CONFIG_FILES compat/include/Makefile" ;; | |
7225 | "compat/lib/Makefile") CONFIG_FILES="$CONFIG_FILES compat/lib/Makefile" ;; | |
7226 | "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;; | |
7227 | "restore/Makefile") CONFIG_FILES="$CONFIG_FILES restore/Makefile" ;; | |
7228 | "$RMTMAKEFILE") CONFIG_FILES="$CONFIG_FILES $RMTMAKEFILE" ;; | |
7229 | ||
1daf06b9 SP |
7230 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7231 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7232 | { (exit 1); exit 1; }; };; | |
7233 | esac | |
7234 | done | |
7235 | ||
7f7d329e | 7236 | |
1daf06b9 SP |
7237 | # If the user did not use the arguments to specify the items to instantiate, |
7238 | # then the envvar interface is used. Set only those that are not. | |
7239 | # We use the long form for the default assignment because of an extremely | |
7240 | # bizarre bug on SunOS 4.1.3. | |
7241 | if $ac_need_defaults; then | |
7242 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7243 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7244 | fi | |
7245 | ||
cdfe1392 | 7246 | # Have a temporary directory for convenience. Make it in the build tree |
7f7d329e | 7247 | # simply because there is no reason against having it here, and in addition, |
cdfe1392 | 7248 | # creating and moving files from /tmp can sometimes cause problems. |
7f7d329e SP |
7249 | # Hook for its removal unless debugging. |
7250 | # Note that there is a small window in which the directory will not be cleaned: | |
7251 | # after its creation but before its name has been assigned to `$tmp'. | |
1daf06b9 SP |
7252 | $debug || |
7253 | { | |
7f7d329e SP |
7254 | tmp= |
7255 | trap 'exit_status=$? | |
7256 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7257 | ' 0 | |
1daf06b9 SP |
7258 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
7259 | } | |
1daf06b9 | 7260 | # Create a (secure) tmp directory for tmp files. |
cdfe1392 | 7261 | |
1daf06b9 | 7262 | { |
7f7d329e | 7263 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1daf06b9 SP |
7264 | test -n "$tmp" && test -d "$tmp" |
7265 | } || | |
7266 | { | |
7f7d329e SP |
7267 | tmp=./conf$$-$RANDOM |
7268 | (umask 077 && mkdir "$tmp") | |
1daf06b9 SP |
7269 | } || |
7270 | { | |
cdfe1392 | 7271 | echo "$me: cannot create a temporary directory in ." >&2 |
1daf06b9 SP |
7272 | { (exit 1); exit 1; } |
7273 | } | |
7274 | ||
1daf06b9 | 7275 | # |
7f7d329e | 7276 | # Set up the sed scripts for CONFIG_FILES section. |
1daf06b9 SP |
7277 | # |
7278 | ||
7279 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7280 | # This happens for instance when ./config.status config.h | |
7f7d329e SP |
7281 | if test -n "$CONFIG_FILES"; then |
7282 | ||
7283 | _ACEOF | |
7284 | ||
7285 | # Create sed commands to just substitute file output variables. | |
7286 | ||
7287 | # Remaining file output variables are in a fragment that also has non-file | |
7288 | # output varibles. | |
7289 | ||
7290 | ||
7291 | ||
7292 | ac_delim='%!_!# ' | |
7293 | for ac_last_try in false false false false false :; do | |
7294 | cat >conf$$subs.sed <<_ACEOF | |
7295 | SHELL!$SHELL$ac_delim | |
7296 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
7297 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
7298 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
7299 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
7300 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
7301 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
7302 | exec_prefix!$exec_prefix$ac_delim | |
7303 | prefix!$prefix$ac_delim | |
7304 | program_transform_name!$program_transform_name$ac_delim | |
7305 | bindir!$bindir$ac_delim | |
7306 | sbindir!$sbindir$ac_delim | |
7307 | libexecdir!$libexecdir$ac_delim | |
7308 | datarootdir!$datarootdir$ac_delim | |
7309 | datadir!$datadir$ac_delim | |
7310 | sysconfdir!$sysconfdir$ac_delim | |
7311 | sharedstatedir!$sharedstatedir$ac_delim | |
7312 | localstatedir!$localstatedir$ac_delim | |
7313 | includedir!$includedir$ac_delim | |
7314 | oldincludedir!$oldincludedir$ac_delim | |
7315 | docdir!$docdir$ac_delim | |
7316 | infodir!$infodir$ac_delim | |
7317 | htmldir!$htmldir$ac_delim | |
7318 | dvidir!$dvidir$ac_delim | |
7319 | pdfdir!$pdfdir$ac_delim | |
7320 | psdir!$psdir$ac_delim | |
7321 | libdir!$libdir$ac_delim | |
7322 | localedir!$localedir$ac_delim | |
7323 | mandir!$mandir$ac_delim | |
7324 | DEFS!$DEFS$ac_delim | |
7325 | ECHO_C!$ECHO_C$ac_delim | |
7326 | ECHO_N!$ECHO_N$ac_delim | |
7327 | ECHO_T!$ECHO_T$ac_delim | |
7328 | LIBS!$LIBS$ac_delim | |
7329 | build_alias!$build_alias$ac_delim | |
7330 | host_alias!$host_alias$ac_delim | |
7331 | target_alias!$target_alias$ac_delim | |
7332 | SET_MAKE!$SET_MAKE$ac_delim | |
7333 | LN_S!$LN_S$ac_delim | |
7334 | CP!$CP$ac_delim | |
7335 | MV!$MV$ac_delim | |
7336 | RM!$RM$ac_delim | |
7337 | AR!$AR$ac_delim | |
7338 | RANLIB!$RANLIB$ac_delim | |
7339 | PATCH!$PATCH$ac_delim | |
7340 | CC!$CC$ac_delim | |
7341 | CFLAGS!$CFLAGS$ac_delim | |
7342 | LDFLAGS!$LDFLAGS$ac_delim | |
7343 | CPPFLAGS!$CPPFLAGS$ac_delim | |
7344 | ac_ct_CC!$ac_ct_CC$ac_delim | |
7345 | EXEEXT!$EXEEXT$ac_delim | |
7346 | OBJEXT!$OBJEXT$ac_delim | |
7347 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
7348 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
7349 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
7350 | CPP!$CPP$ac_delim | |
7351 | GREP!$GREP$ac_delim | |
7352 | EGREP!$EGREP$ac_delim | |
7353 | DUMPDEBUG!$DUMPDEBUG$ac_delim | |
7354 | RESTOREDEBUG!$RESTOREDEBUG$ac_delim | |
7355 | STATIC!$STATIC$ac_delim | |
7356 | RMTDIR!$RMTDIR$ac_delim | |
7357 | ERMT!$ERMT$ac_delim | |
7358 | CRYPTO!$CRYPTO$ac_delim | |
7359 | OPTDEFS!$OPTDEFS$ac_delim | |
7360 | LTRANSSELINUX!$LTRANSSELINUX$ac_delim | |
7361 | CCTRANSSELINUX!$CCTRANSSELINUX$ac_delim | |
7362 | LD!$LD$ac_delim | |
7363 | CCOPTS!$CCOPTS$ac_delim | |
7364 | LDOPTS!$LDOPTS$ac_delim | |
7365 | BINOWNER!$BINOWNER$ac_delim | |
7366 | BINGRP!$BINGRP$ac_delim | |
7367 | BINMODE!$BINMODE$ac_delim | |
7368 | MANOWNER!$MANOWNER$ac_delim | |
7369 | MANGRP!$MANGRP$ac_delim | |
7370 | MANMODE!$MANMODE$ac_delim | |
7371 | DUMPDATESPATH!$DUMPDATESPATH$ac_delim | |
7372 | BLKID!$BLKID$ac_delim | |
7373 | READLINE!$READLINE$ac_delim | |
7374 | ZLIB!$ZLIB$ac_delim | |
7375 | BZLIB!$BZLIB$ac_delim | |
7376 | top_builddir!$top_builddir$ac_delim | |
7377 | LIBOBJS!$LIBOBJS$ac_delim | |
7378 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
7379 | _ACEOF | |
7380 | ||
7381 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then | |
7382 | break | |
7383 | elif $ac_last_try; then | |
7384 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7385 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7386 | { (exit 1); exit 1; }; } | |
7387 | else | |
7388 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
1227625a | 7389 | fi |
7f7d329e SP |
7390 | done |
7391 | ||
7392 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
7393 | if test -n "$ac_eof"; then | |
7394 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
7395 | ac_eof=`expr $ac_eof + 1` | |
7396 | fi | |
1227625a | 7397 | |
7f7d329e SP |
7398 | cat >>$CONFIG_STATUS <<_ACEOF |
7399 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
7400 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
7401 | /^[ ]*@MCONFIG@[ ]*$/{ | |
7402 | r $MCONFIG | |
7403 | d | |
7404 | } | |
7405 | _ACEOF | |
7406 | sed ' | |
7407 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
7408 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
7409 | :n | |
7410 | t n | |
7411 | s/'"$ac_delim"'$/,g/; t | |
7412 | s/$/\\/; p | |
7413 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
7414 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
7415 | rm -f conf$$subs.sed | |
7416 | cat >>$CONFIG_STATUS <<_ACEOF | |
7417 | :end | |
7418 | s/|#_!!_#|//g | |
7419 | CEOF$ac_eof | |
1daf06b9 | 7420 | _ACEOF |
7f7d329e SP |
7421 | |
7422 | ||
7423 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7424 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7425 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7426 | # (actually we leave an empty line to preserve line numbers). | |
7427 | if test "x$srcdir" = x.; then | |
7428 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7429 | s/:*\$(srcdir):*/:/ | |
7430 | s/:*\${srcdir}:*/:/ | |
7431 | s/:*@srcdir@:*/:/ | |
7432 | s/^\([^=]*=[ ]*\):*/\1/ | |
7433 | s/:*$// | |
7434 | s/^[^=]*=[ ]*$// | |
7435 | }' | |
7436 | fi | |
7437 | ||
1daf06b9 | 7438 | cat >>$CONFIG_STATUS <<\_ACEOF |
7f7d329e SP |
7439 | fi # test -n "$CONFIG_FILES" |
7440 | ||
7441 | ||
7442 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
7443 | do | |
7444 | case $ac_tag in | |
7445 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7446 | esac | |
7447 | case $ac_mode$ac_tag in | |
7448 | :[FHL]*:*);; | |
7449 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
7450 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7451 | { (exit 1); exit 1; }; };; | |
7452 | :[FH]-) ac_tag=-:-;; | |
7453 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
1daf06b9 | 7454 | esac |
7f7d329e SP |
7455 | ac_save_IFS=$IFS |
7456 | IFS=: | |
7457 | set x $ac_tag | |
7458 | IFS=$ac_save_IFS | |
7459 | shift | |
7460 | ac_file=$1 | |
7461 | shift | |
1daf06b9 | 7462 | |
7f7d329e SP |
7463 | case $ac_mode in |
7464 | :L) ac_source=$1;; | |
7465 | :[FH]) | |
7466 | ac_file_inputs= | |
7467 | for ac_f | |
7468 | do | |
7469 | case $ac_f in | |
7470 | -) ac_f="$tmp/stdin";; | |
7471 | *) # Look for the file first in the build tree, then in the source tree | |
7472 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7473 | # because $ac_f cannot contain `:'. | |
7474 | test -f "$ac_f" || | |
7475 | case $ac_f in | |
7476 | [\\/$]*) false;; | |
7477 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7478 | esac || | |
7479 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
7480 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7481 | { (exit 1); exit 1; }; };; | |
7482 | esac | |
7483 | ac_file_inputs="$ac_file_inputs $ac_f" | |
7484 | done | |
7485 | ||
7486 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7487 | # use $as_me), people would be surprised to read: | |
7488 | # /* config.h. Generated by config.status. */ | |
7489 | configure_input="Generated from "`IFS=: | |
7490 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7491 | if test x"$ac_file" != x-; then | |
7492 | configure_input="$ac_file. $configure_input" | |
7493 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7494 | echo "$as_me: creating $ac_file" >&6;} | |
7495 | fi | |
7496 | ||
7497 | case $ac_tag in | |
7498 | *:-:* | *:-) cat >"$tmp/stdin";; | |
7499 | esac | |
7500 | ;; | |
7501 | esac | |
7502 | ||
7503 | ac_dir=`$as_dirname -- "$ac_file" || | |
1daf06b9 | 7504 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
7505 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7506 | X"$ac_file" : 'X\(//\)$' \| \ | |
7f7d329e | 7507 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 7508 | echo X"$ac_file" | |
7f7d329e SP |
7509 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7510 | s//\1/ | |
7511 | q | |
7512 | } | |
7513 | /^X\(\/\/\)[^/].*/{ | |
7514 | s//\1/ | |
7515 | q | |
7516 | } | |
7517 | /^X\(\/\/\)$/{ | |
7518 | s//\1/ | |
7519 | q | |
7520 | } | |
7521 | /^X\(\/\).*/{ | |
7522 | s//\1/ | |
7523 | q | |
7524 | } | |
7525 | s/.*/./; q'` | |
7526 | { as_dir="$ac_dir" | |
7527 | case $as_dir in #( | |
7528 | -*) as_dir=./$as_dir;; | |
7529 | esac | |
7530 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
cdfe1392 | 7531 | as_dirs= |
7f7d329e SP |
7532 | while :; do |
7533 | case $as_dir in #( | |
7534 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
7535 | *) as_qdir=$as_dir;; | |
7536 | esac | |
7537 | as_dirs="'$as_qdir' $as_dirs" | |
7538 | as_dir=`$as_dirname -- "$as_dir" || | |
cdfe1392 | 7539 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
7540 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7541 | X"$as_dir" : 'X\(//\)$' \| \ | |
7f7d329e | 7542 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
cdfe1392 | 7543 | echo X"$as_dir" | |
7f7d329e SP |
7544 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7545 | s//\1/ | |
7546 | q | |
7547 | } | |
7548 | /^X\(\/\/\)[^/].*/{ | |
7549 | s//\1/ | |
7550 | q | |
7551 | } | |
7552 | /^X\(\/\/\)$/{ | |
7553 | s//\1/ | |
7554 | q | |
7555 | } | |
7556 | /^X\(\/\).*/{ | |
7557 | s//\1/ | |
7558 | q | |
7559 | } | |
7560 | s/.*/./; q'` | |
7561 | test -d "$as_dir" && break | |
cdfe1392 | 7562 | done |
7f7d329e SP |
7563 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
7564 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
7565 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
cdfe1392 | 7566 | { (exit 1); exit 1; }; }; } |
1daf06b9 | 7567 | ac_builddir=. |
1227625a | 7568 | |
7f7d329e SP |
7569 | case "$ac_dir" in |
7570 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7571 | *) | |
1daf06b9 | 7572 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7f7d329e SP |
7573 | # A ".." for each directory in $ac_dir_suffix. |
7574 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
7575 | case $ac_top_builddir_sub in | |
7576 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7577 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7578 | esac ;; | |
7579 | esac | |
7580 | ac_abs_top_builddir=$ac_pwd | |
7581 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7582 | # for backward compatibility: | |
7583 | ac_top_builddir=$ac_top_build_prefix | |
1227625a | 7584 | |
1daf06b9 | 7585 | case $srcdir in |
7f7d329e | 7586 | .) # We are building in place. |
1daf06b9 | 7587 | ac_srcdir=. |
7f7d329e SP |
7588 | ac_top_srcdir=$ac_top_builddir_sub |
7589 | ac_abs_top_srcdir=$ac_pwd ;; | |
7590 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1daf06b9 | 7591 | ac_srcdir=$srcdir$ac_dir_suffix; |
7f7d329e SP |
7592 | ac_top_srcdir=$srcdir |
7593 | ac_abs_top_srcdir=$srcdir ;; | |
7594 | *) # Relative name. | |
7595 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7596 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7597 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1daf06b9 | 7598 | esac |
7f7d329e | 7599 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c9e4e868 | 7600 | |
1227625a | 7601 | |
7f7d329e SP |
7602 | case $ac_mode in |
7603 | :F) | |
7604 | # | |
7605 | # CONFIG_FILE | |
7606 | # | |
1227625a | 7607 | |
1daf06b9 SP |
7608 | case $INSTALL in |
7609 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7f7d329e | 7610 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
1227625a | 7611 | esac |
7f7d329e | 7612 | _ACEOF |
1227625a | 7613 | |
7f7d329e SP |
7614 | cat >>$CONFIG_STATUS <<\_ACEOF |
7615 | # If the template does not know about datarootdir, expand it. | |
7616 | # FIXME: This hack should be removed a few years after 2.60. | |
7617 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7618 | ||
7619 | case `sed -n '/datarootdir/ { | |
7620 | p | |
7621 | q | |
7622 | } | |
7623 | /@datadir@/p | |
7624 | /@docdir@/p | |
7625 | /@infodir@/p | |
7626 | /@localedir@/p | |
7627 | /@mandir@/p | |
7628 | ' $ac_file_inputs` in | |
7629 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7630 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7631 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7632 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7633 | _ACEOF | |
7634 | cat >>$CONFIG_STATUS <<_ACEOF | |
7635 | ac_datarootdir_hack=' | |
7636 | s&@datadir@&$datadir&g | |
7637 | s&@docdir@&$docdir&g | |
7638 | s&@infodir@&$infodir&g | |
7639 | s&@localedir@&$localedir&g | |
7640 | s&@mandir@&$mandir&g | |
7641 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7642 | esac | |
1daf06b9 | 7643 | _ACEOF |
7f7d329e SP |
7644 | |
7645 | # Neutralize VPATH when `$srcdir' = `.'. | |
7646 | # Shell code in configure.ac might set extrasub. | |
7647 | # FIXME: do we really want to maintain this feature? | |
1daf06b9 SP |
7648 | cat >>$CONFIG_STATUS <<_ACEOF |
7649 | sed "$ac_vpsub | |
7650 | $extrasub | |
7651 | _ACEOF | |
7652 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7653 | :t | |
7654 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7f7d329e SP |
7655 | s&@configure_input@&$configure_input&;t t |
7656 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7657 | s&@srcdir@&$ac_srcdir&;t t | |
7658 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7659 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7660 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7661 | s&@builddir@&$ac_builddir&;t t | |
7662 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7663 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7664 | s&@INSTALL@&$ac_INSTALL&;t t | |
7665 | $ac_datarootdir_hack | |
7666 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
7667 | ||
7668 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7669 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7670 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7671 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7672 | which seems to be undefined. Please make sure it is defined." >&5 | |
7673 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7674 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7675 | ||
7676 | rm -f "$tmp/stdin" | |
1daf06b9 | 7677 | case $ac_file in |
7f7d329e SP |
7678 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
7679 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
1227625a | 7680 | esac |
7f7d329e SP |
7681 | ;; |
7682 | :H) | |
7683 | # | |
7684 | # CONFIG_HEADER | |
7685 | # | |
7686 | _ACEOF | |
7687 | ||
7688 | # Transform confdefs.h into a sed script `conftest.defines', that | |
7689 | # substitutes the proper values into config.h.in to produce config.h. | |
7690 | rm -f conftest.defines conftest.tail | |
7691 | # First, append a space to every undef/define line, to ease matching. | |
7692 | echo 's/$/ /' >conftest.defines | |
7693 | # Then, protect against being on the right side of a sed subst, or in | |
7694 | # an unquoted here document, in config.status. If some macros were | |
7695 | # called several times there might be several #defines for the same | |
7696 | # symbol, which is useless. But do not sort them, since the last | |
7697 | # AC_DEFINE must be honored. | |
7698 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7699 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
7700 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
7701 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
7702 | # just an empty string. | |
7703 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
7704 | ac_dB='\\)[ (].*,\\1define\\2' | |
7705 | ac_dC=' ' | |
7706 | ac_dD=' ,' | |
7707 | ||
7708 | uniq confdefs.h | | |
7709 | sed -n ' | |
7710 | t rset | |
7711 | :rset | |
7712 | s/^[ ]*#[ ]*define[ ][ ]*// | |
7713 | t ok | |
7714 | d | |
7715 | :ok | |
7716 | s/[\\&,]/\\&/g | |
7717 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
7718 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
7719 | ' >>conftest.defines | |
7720 | ||
7721 | # Remove the space that was appended to ease matching. | |
7722 | # Then replace #undef with comments. This is necessary, for | |
1227625a SP |
7723 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
7724 | # on some systems where configure will not decide to define it. | |
7f7d329e SP |
7725 | # (The regexp can be short, since the line contains either #define or #undef.) |
7726 | echo 's/ $// | |
7727 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
7728 | ||
7729 | # Break up conftest.defines: | |
7730 | ac_max_sed_lines=50 | |
7731 | ||
7732 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
7733 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
7734 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
7735 | # et cetera. | |
7736 | ac_in='$ac_file_inputs' | |
7737 | ac_out='"$tmp/out1"' | |
7738 | ac_nxt='"$tmp/out2"' | |
7739 | ||
7740 | while : | |
1daf06b9 | 7741 | do |
7f7d329e SP |
7742 | # Write a here document: |
7743 | cat >>$CONFIG_STATUS <<_ACEOF | |
7744 | # First, check the format of the line: | |
7745 | cat >"\$tmp/defines.sed" <<\\CEOF | |
7746 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
7747 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
7748 | b | |
7749 | :def | |
7750 | _ACEOF | |
7751 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
1daf06b9 | 7752 | echo 'CEOF |
7f7d329e SP |
7753 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
7754 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
7755 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
7756 | grep . conftest.tail >/dev/null || break | |
1daf06b9 SP |
7757 | rm -f conftest.defines |
7758 | mv conftest.tail conftest.defines | |
7759 | done | |
7f7d329e | 7760 | rm -f conftest.defines conftest.tail |
1daf06b9 | 7761 | |
7f7d329e | 7762 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
1daf06b9 | 7763 | cat >>$CONFIG_STATUS <<\_ACEOF |
1daf06b9 | 7764 | if test x"$ac_file" != x-; then |
7f7d329e SP |
7765 | echo "/* $configure_input */" >"$tmp/config.h" |
7766 | cat "$ac_result" >>"$tmp/config.h" | |
7767 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
1daf06b9 SP |
7768 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
7769 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7770 | else | |
1daf06b9 | 7771 | rm -f $ac_file |
7f7d329e | 7772 | mv "$tmp/config.h" $ac_file |
1daf06b9 SP |
7773 | fi |
7774 | else | |
7f7d329e SP |
7775 | echo "/* $configure_input */" |
7776 | cat "$ac_result" | |
1daf06b9 | 7777 | fi |
7f7d329e SP |
7778 | rm -f "$tmp/out12" |
7779 | ;; | |
7780 | ||
7781 | ||
7782 | esac | |
7783 | ||
7784 | done # for ac_tag | |
1227625a | 7785 | |
1227625a | 7786 | |
1daf06b9 SP |
7787 | { (exit 0); exit 0; } |
7788 | _ACEOF | |
1227625a | 7789 | chmod +x $CONFIG_STATUS |
1daf06b9 SP |
7790 | ac_clean_files=$ac_clean_files_save |
7791 | ||
7792 | ||
7793 | # configure is writing to config.log, and then calls config.status. | |
7794 | # config.status does its own redirection, appending to config.log. | |
7795 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7796 | # by configure, so config.status won't be able to write to it; its | |
7797 | # output is simply discarded. So we exec the FD to /dev/null, | |
7798 | # effectively closing config.log, so it can be properly (re)opened and | |
7799 | # appended to by config.status. When coming back to configure, we | |
7800 | # need to make the FD available again. | |
7801 | if test "$no_create" != yes; then | |
7802 | ac_cs_success=: | |
cdfe1392 SP |
7803 | ac_config_status_args= |
7804 | test "$silent" = yes && | |
7805 | ac_config_status_args="$ac_config_status_args --quiet" | |
1daf06b9 | 7806 | exec 5>/dev/null |
cdfe1392 | 7807 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
1daf06b9 SP |
7808 | exec 5>>config.log |
7809 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7810 | # would make configure fail if this is the last instruction. | |
7811 | $ac_cs_success || { (exit 1); exit 1; } | |
7812 | fi | |
1227625a | 7813 |