]>
Commit | Line | Data |
---|---|---|
1227625a | 1 | #! /bin/sh |
1227625a | 2 | # Guess values for system-dependent variables and create Makefiles. |
d2816d4c | 3 | # Generated by GNU Autoconf 2.61. |
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 | ||
d2816d4c SP |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
1daf06b9 SP |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
cdfe1392 SP |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
7f7d329e SP |
21 | setopt NO_GLOB_SUBST |
22 | else | |
d2816d4c SP |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
1daf06b9 | 27 | fi |
d2816d4c SP |
28 | |
29 | ||
1daf06b9 | 30 | |
7f7d329e SP |
31 | |
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
51 | fi | |
52 | ||
1daf06b9 | 53 | # Support unset when possible. |
c9e4e868 | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
1daf06b9 SP |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
cdfe1392 | 60 | |
7f7d329e SP |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
cdfe1392 | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
7f7d329e SP |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
cdfe1392 SP |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
103 | for as_var in \ | |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
c9e4e868 | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
cdfe1392 SP |
109 | eval $as_var=C; export $as_var |
110 | else | |
7f7d329e | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
cdfe1392 SP |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
7f7d329e SP |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
cdfe1392 SP |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
7f7d329e | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
cdfe1392 SP |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
1daf06b9 SP |
128 | |
129 | ||
130 | # Name of the executable. | |
7f7d329e | 131 | as_me=`$as_basename -- "$0" || |
1daf06b9 SP |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 135 | echo X/"$0" | |
7f7d329e SP |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
1daf06b9 | 149 | |
7f7d329e SP |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
cdfe1392 | 152 | |
1daf06b9 | 153 | |
7f7d329e SP |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
1daf06b9 SP |
159 | fi |
160 | ||
7f7d329e SP |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
1daf06b9 | 177 | |
7f7d329e SP |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
1daf06b9 | 185 | |
7f7d329e SP |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
1daf06b9 | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
d2816d4c | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
1daf06b9 SP |
223 | do |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
7f7d329e | 226 | case $as_dir in |
1daf06b9 | 227 | /*) |
7f7d329e SP |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
7f7d329e SP |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
d2816d4c SP |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
7f7d329e | 252 | fi |
d2816d4c | 253 | |
7f7d329e SP |
254 | |
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
7f7d329e SP |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
d2816d4c SP |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
7f7d329e | 273 | fi |
d2816d4c | 274 | |
7f7d329e SP |
275 | |
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
1daf06b9 SP |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
1daf06b9 | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7f7d329e SP |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
1daf06b9 SP |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7f7d329e SP |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
1daf06b9 | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7f7d329e SP |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
1daf06b9 | 442 | sed ' |
7f7d329e SP |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
1daf06b9 | 447 | N |
7f7d329e SP |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1daf06b9 | 450 | t loop |
7f7d329e | 451 | s/-\n.*// |
1daf06b9 | 452 | ' >$as_me.lineno && |
7f7d329e | 453 | chmod +x "$as_me.lineno" || |
1daf06b9 SP |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
7f7d329e SP |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
1daf06b9 SP |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
464 | ||
465 | ||
7f7d329e SP |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
1daf06b9 SP |
481 | esac |
482 | ||
7f7d329e SP |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1daf06b9 SP |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
7f7d329e SP |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
1daf06b9 SP |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7f7d329e SP |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
1daf06b9 | 505 | as_ln_s='cp -p' |
1daf06b9 SP |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
7f7d329e SP |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
1daf06b9 | 513 | |
cdfe1392 SP |
514 | if mkdir -p . 2>/dev/null; then |
515 | as_mkdir_p=: | |
516 | else | |
c9e4e868 | 517 | test -d ./-p && rmdir ./-p |
cdfe1392 SP |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
d2816d4c SP |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
7f7d329e | 523 | else |
d2816d4c SP |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
7f7d329e | 541 | fi |
d2816d4c | 542 | as_executable_p=$as_test_x |
1daf06b9 SP |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
c9e4e868 | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
c9e4e868 | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
549 | |
550 | ||
1daf06b9 | 551 | |
7f7d329e | 552 | exec 7<&0 </dev/null 6>&1 |
1daf06b9 SP |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
1daf06b9 SP |
559 | # |
560 | # Initializations. | |
561 | # | |
1227625a | 562 | ac_default_prefix=/usr/local |
7f7d329e | 563 | ac_clean_files= |
cdfe1392 | 564 | ac_config_libobj_dir=. |
7f7d329e | 565 | LIBOBJS= |
1daf06b9 SP |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
1daf06b9 SP |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="dump/dump.h" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
d2816d4c | 583 | #ifdef HAVE_SYS_TYPES_H |
1daf06b9 SP |
584 | # include <sys/types.h> |
585 | #endif | |
d2816d4c | 586 | #ifdef HAVE_SYS_STAT_H |
1daf06b9 SP |
587 | # include <sys/stat.h> |
588 | #endif | |
d2816d4c | 589 | #ifdef STDC_HEADERS |
1daf06b9 SP |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
d2816d4c | 593 | # ifdef HAVE_STDLIB_H |
1daf06b9 SP |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
d2816d4c SP |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
1daf06b9 SP |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
d2816d4c | 603 | #ifdef HAVE_STRINGS_H |
1daf06b9 SP |
604 | # include <strings.h> |
605 | #endif | |
d2816d4c | 606 | #ifdef HAVE_INTTYPES_H |
1daf06b9 | 607 | # include <inttypes.h> |
7f7d329e | 608 | #endif |
d2816d4c | 609 | #ifdef HAVE_STDINT_H |
7f7d329e | 610 | # include <stdint.h> |
1daf06b9 | 611 | #endif |
d2816d4c | 612 | #ifdef HAVE_UNISTD_H |
1daf06b9 SP |
613 | # include <unistd.h> |
614 | #endif" | |
615 | ||
7f7d329e SP |
616 | ac_subst_vars='SHELL |
617 | PATH_SEPARATOR | |
618 | PACKAGE_NAME | |
619 | PACKAGE_TARNAME | |
620 | PACKAGE_VERSION | |
621 | PACKAGE_STRING | |
622 | PACKAGE_BUGREPORT | |
623 | exec_prefix | |
624 | prefix | |
625 | program_transform_name | |
626 | bindir | |
627 | sbindir | |
628 | libexecdir | |
629 | datarootdir | |
630 | datadir | |
631 | sysconfdir | |
632 | sharedstatedir | |
633 | localstatedir | |
634 | includedir | |
635 | oldincludedir | |
636 | docdir | |
637 | infodir | |
638 | htmldir | |
639 | dvidir | |
640 | pdfdir | |
641 | psdir | |
642 | libdir | |
643 | localedir | |
644 | mandir | |
645 | DEFS | |
646 | ECHO_C | |
647 | ECHO_N | |
648 | ECHO_T | |
649 | LIBS | |
650 | build_alias | |
651 | host_alias | |
652 | target_alias | |
653 | SET_MAKE | |
654 | LN_S | |
655 | CP | |
656 | MV | |
657 | RM | |
658 | AR | |
659 | RANLIB | |
660 | PATCH | |
661 | CC | |
662 | CFLAGS | |
663 | LDFLAGS | |
664 | CPPFLAGS | |
665 | ac_ct_CC | |
666 | EXEEXT | |
667 | OBJEXT | |
668 | INSTALL_PROGRAM | |
669 | INSTALL_SCRIPT | |
670 | INSTALL_DATA | |
671 | CPP | |
672 | GREP | |
673 | EGREP | |
674 | DUMPDEBUG | |
675 | RESTOREDEBUG | |
676 | STATIC | |
677 | RMTDIR | |
678 | ERMT | |
679 | CRYPTO | |
680 | OPTDEFS | |
681 | LTRANSSELINUX | |
682 | CCTRANSSELINUX | |
683 | LD | |
684 | CCOPTS | |
685 | LDOPTS | |
686 | BINOWNER | |
687 | BINGRP | |
688 | BINMODE | |
689 | MANOWNER | |
690 | MANGRP | |
691 | MANMODE | |
692 | DUMPDATESPATH | |
693 | BLKID | |
694 | READLINE | |
695 | ZLIB | |
696 | BZLIB | |
697 | top_builddir | |
698 | LIBOBJS | |
699 | LTLIBOBJS' | |
cdfe1392 | 700 | ac_subst_files='MCONFIG' |
7f7d329e SP |
701 | ac_precious_vars='build_alias |
702 | host_alias | |
703 | target_alias | |
704 | CC | |
705 | CFLAGS | |
706 | LDFLAGS | |
d2816d4c | 707 | LIBS |
7f7d329e SP |
708 | CPPFLAGS |
709 | CPP' | |
710 | ||
1227625a SP |
711 | |
712 | # Initialize some variables set by options. | |
1daf06b9 SP |
713 | ac_init_help= |
714 | ac_init_version=false | |
1227625a SP |
715 | # The variables have the same names as the options, with |
716 | # dashes changed to underlines. | |
1daf06b9 | 717 | cache_file=/dev/null |
1227625a | 718 | exec_prefix=NONE |
1227625a | 719 | no_create= |
1227625a SP |
720 | no_recursion= |
721 | prefix=NONE | |
722 | program_prefix=NONE | |
723 | program_suffix=NONE | |
724 | program_transform_name=s,x,x, | |
725 | silent= | |
726 | site= | |
727 | srcdir= | |
1227625a SP |
728 | verbose= |
729 | x_includes=NONE | |
730 | x_libraries=NONE | |
1daf06b9 SP |
731 | |
732 | # Installation directory options. | |
733 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
734 | # and all the variables that are supposed to be based on exec_prefix | |
735 | # by default will actually change. | |
736 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7f7d329e | 737 | # (The list follows the same order as the GNU Coding Standards.) |
1227625a SP |
738 | bindir='${exec_prefix}/bin' |
739 | sbindir='${exec_prefix}/sbin' | |
740 | libexecdir='${exec_prefix}/libexec' | |
7f7d329e SP |
741 | datarootdir='${prefix}/share' |
742 | datadir='${datarootdir}' | |
1227625a SP |
743 | sysconfdir='${prefix}/etc' |
744 | sharedstatedir='${prefix}/com' | |
745 | localstatedir='${prefix}/var' | |
1227625a SP |
746 | includedir='${prefix}/include' |
747 | oldincludedir='/usr/include' | |
7f7d329e SP |
748 | docdir='${datarootdir}/doc/${PACKAGE}' |
749 | infodir='${datarootdir}/info' | |
750 | htmldir='${docdir}' | |
751 | dvidir='${docdir}' | |
752 | pdfdir='${docdir}' | |
753 | psdir='${docdir}' | |
754 | libdir='${exec_prefix}/lib' | |
755 | localedir='${datarootdir}/locale' | |
756 | mandir='${datarootdir}/man' | |
1227625a | 757 | |
1227625a | 758 | ac_prev= |
7f7d329e | 759 | ac_dashdash= |
1227625a SP |
760 | for ac_option |
761 | do | |
1227625a SP |
762 | # If the previous option needs an argument, assign it. |
763 | if test -n "$ac_prev"; then | |
7f7d329e | 764 | eval $ac_prev=\$ac_option |
1227625a SP |
765 | ac_prev= |
766 | continue | |
767 | fi | |
768 | ||
7f7d329e SP |
769 | case $ac_option in |
770 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
771 | *) ac_optarg=yes ;; | |
772 | esac | |
1227625a SP |
773 | |
774 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
775 | ||
7f7d329e SP |
776 | case $ac_dashdash$ac_option in |
777 | --) | |
778 | ac_dashdash=yes ;; | |
1227625a SP |
779 | |
780 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
781 | ac_prev=bindir ;; | |
782 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1daf06b9 | 783 | bindir=$ac_optarg ;; |
1227625a SP |
784 | |
785 | -build | --build | --buil | --bui | --bu) | |
1daf06b9 | 786 | ac_prev=build_alias ;; |
1227625a | 787 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1daf06b9 | 788 | build_alias=$ac_optarg ;; |
1227625a SP |
789 | |
790 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
791 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
792 | ac_prev=cache_file ;; | |
793 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
794 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1daf06b9 SP |
795 | cache_file=$ac_optarg ;; |
796 | ||
797 | --config-cache | -C) | |
798 | cache_file=config.cache ;; | |
1227625a | 799 | |
7f7d329e | 800 | -datadir | --datadir | --datadi | --datad) |
1227625a | 801 | ac_prev=datadir ;; |
7f7d329e | 802 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1daf06b9 | 803 | datadir=$ac_optarg ;; |
1227625a | 804 | |
7f7d329e SP |
805 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
806 | | --dataroo | --dataro | --datar) | |
807 | ac_prev=datarootdir ;; | |
808 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
809 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
810 | datarootdir=$ac_optarg ;; | |
811 | ||
1227625a | 812 | -disable-* | --disable-*) |
1daf06b9 | 813 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1227625a | 814 | # Reject names that are not valid shell variable names. |
d2816d4c | 815 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1daf06b9 SP |
816 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
817 | { (exit 1); exit 1; }; } | |
d2816d4c | 818 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
7f7d329e SP |
819 | eval enable_$ac_feature=no ;; |
820 | ||
821 | -docdir | --docdir | --docdi | --doc | --do) | |
822 | ac_prev=docdir ;; | |
823 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
824 | docdir=$ac_optarg ;; | |
825 | ||
826 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
827 | ac_prev=dvidir ;; | |
828 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
829 | dvidir=$ac_optarg ;; | |
1227625a SP |
830 | |
831 | -enable-* | --enable-*) | |
1daf06b9 | 832 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1227625a | 833 | # Reject names that are not valid shell variable names. |
d2816d4c | 834 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1daf06b9 SP |
835 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
836 | { (exit 1); exit 1; }; } | |
d2816d4c | 837 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
7f7d329e | 838 | eval enable_$ac_feature=\$ac_optarg ;; |
1227625a SP |
839 | |
840 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
841 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
842 | | --exec | --exe | --ex) | |
843 | ac_prev=exec_prefix ;; | |
844 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
845 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
846 | | --exec=* | --exe=* | --ex=*) | |
1daf06b9 | 847 | exec_prefix=$ac_optarg ;; |
1227625a SP |
848 | |
849 | -gas | --gas | --ga | --g) | |
850 | # Obsolete; use --with-gas. | |
851 | with_gas=yes ;; | |
852 | ||
1daf06b9 SP |
853 | -help | --help | --hel | --he | -h) |
854 | ac_init_help=long ;; | |
855 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
856 | ac_init_help=recursive ;; | |
857 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
858 | ac_init_help=short ;; | |
1227625a SP |
859 | |
860 | -host | --host | --hos | --ho) | |
1daf06b9 | 861 | ac_prev=host_alias ;; |
1227625a | 862 | -host=* | --host=* | --hos=* | --ho=*) |
1daf06b9 | 863 | host_alias=$ac_optarg ;; |
1227625a | 864 | |
7f7d329e SP |
865 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
866 | ac_prev=htmldir ;; | |
867 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
868 | | --ht=*) | |
869 | htmldir=$ac_optarg ;; | |
870 | ||
1227625a SP |
871 | -includedir | --includedir | --includedi | --included | --include \ |
872 | | --includ | --inclu | --incl | --inc) | |
873 | ac_prev=includedir ;; | |
874 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
875 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1daf06b9 | 876 | includedir=$ac_optarg ;; |
1227625a SP |
877 | |
878 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
879 | ac_prev=infodir ;; | |
880 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1daf06b9 | 881 | infodir=$ac_optarg ;; |
1227625a SP |
882 | |
883 | -libdir | --libdir | --libdi | --libd) | |
884 | ac_prev=libdir ;; | |
885 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1daf06b9 | 886 | libdir=$ac_optarg ;; |
1227625a SP |
887 | |
888 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
889 | | --libexe | --libex | --libe) | |
890 | ac_prev=libexecdir ;; | |
891 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
892 | | --libexe=* | --libex=* | --libe=*) | |
1daf06b9 | 893 | libexecdir=$ac_optarg ;; |
1227625a | 894 | |
7f7d329e SP |
895 | -localedir | --localedir | --localedi | --localed | --locale) |
896 | ac_prev=localedir ;; | |
897 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
898 | localedir=$ac_optarg ;; | |
899 | ||
1227625a | 900 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7f7d329e | 901 | | --localstate | --localstat | --localsta | --localst | --locals) |
1227625a SP |
902 | ac_prev=localstatedir ;; |
903 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7f7d329e | 904 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1daf06b9 | 905 | localstatedir=$ac_optarg ;; |
1227625a SP |
906 | |
907 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
908 | ac_prev=mandir ;; | |
909 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1daf06b9 | 910 | mandir=$ac_optarg ;; |
1227625a SP |
911 | |
912 | -nfp | --nfp | --nf) | |
913 | # Obsolete; use --without-fp. | |
914 | with_fp=no ;; | |
915 | ||
916 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1daf06b9 | 917 | | --no-cr | --no-c | -n) |
1227625a SP |
918 | no_create=yes ;; |
919 | ||
920 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
921 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
922 | no_recursion=yes ;; | |
923 | ||
924 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
925 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
926 | | --oldin | --oldi | --old | --ol | --o) | |
927 | ac_prev=oldincludedir ;; | |
928 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
929 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
930 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1daf06b9 | 931 | oldincludedir=$ac_optarg ;; |
1227625a SP |
932 | |
933 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
934 | ac_prev=prefix ;; | |
935 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1daf06b9 | 936 | prefix=$ac_optarg ;; |
1227625a SP |
937 | |
938 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
939 | | --program-pre | --program-pr | --program-p) | |
940 | ac_prev=program_prefix ;; | |
941 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
942 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1daf06b9 | 943 | program_prefix=$ac_optarg ;; |
1227625a SP |
944 | |
945 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
946 | | --program-suf | --program-su | --program-s) | |
947 | ac_prev=program_suffix ;; | |
948 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
949 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1daf06b9 | 950 | program_suffix=$ac_optarg ;; |
1227625a SP |
951 | |
952 | -program-transform-name | --program-transform-name \ | |
953 | | --program-transform-nam | --program-transform-na \ | |
954 | | --program-transform-n | --program-transform- \ | |
955 | | --program-transform | --program-transfor \ | |
956 | | --program-transfo | --program-transf \ | |
957 | | --program-trans | --program-tran \ | |
958 | | --progr-tra | --program-tr | --program-t) | |
959 | ac_prev=program_transform_name ;; | |
960 | -program-transform-name=* | --program-transform-name=* \ | |
961 | | --program-transform-nam=* | --program-transform-na=* \ | |
962 | | --program-transform-n=* | --program-transform-=* \ | |
963 | | --program-transform=* | --program-transfor=* \ | |
964 | | --program-transfo=* | --program-transf=* \ | |
965 | | --program-trans=* | --program-tran=* \ | |
966 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1daf06b9 | 967 | program_transform_name=$ac_optarg ;; |
1227625a | 968 | |
7f7d329e SP |
969 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
970 | ac_prev=pdfdir ;; | |
971 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
972 | pdfdir=$ac_optarg ;; | |
973 | ||
974 | -psdir | --psdir | --psdi | --psd | --ps) | |
975 | ac_prev=psdir ;; | |
976 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
977 | psdir=$ac_optarg ;; | |
978 | ||
1227625a SP |
979 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
980 | | -silent | --silent | --silen | --sile | --sil) | |
981 | silent=yes ;; | |
982 | ||
983 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
984 | ac_prev=sbindir ;; | |
985 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
986 | | --sbi=* | --sb=*) | |
1daf06b9 | 987 | sbindir=$ac_optarg ;; |
1227625a SP |
988 | |
989 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
990 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
991 | | --sharedst | --shareds | --shared | --share | --shar \ | |
992 | | --sha | --sh) | |
993 | ac_prev=sharedstatedir ;; | |
994 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
995 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
996 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
997 | | --sha=* | --sh=*) | |
1daf06b9 | 998 | sharedstatedir=$ac_optarg ;; |
1227625a SP |
999 | |
1000 | -site | --site | --sit) | |
1001 | ac_prev=site ;; | |
1002 | -site=* | --site=* | --sit=*) | |
1daf06b9 | 1003 | site=$ac_optarg ;; |
1227625a SP |
1004 | |
1005 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1006 | ac_prev=srcdir ;; | |
1007 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1daf06b9 | 1008 | srcdir=$ac_optarg ;; |
1227625a SP |
1009 | |
1010 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1011 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1012 | ac_prev=sysconfdir ;; | |
1013 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1014 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1daf06b9 | 1015 | sysconfdir=$ac_optarg ;; |
1227625a SP |
1016 | |
1017 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1daf06b9 | 1018 | ac_prev=target_alias ;; |
1227625a | 1019 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1daf06b9 | 1020 | target_alias=$ac_optarg ;; |
1227625a SP |
1021 | |
1022 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1023 | verbose=yes ;; | |
1024 | ||
1daf06b9 SP |
1025 | -version | --version | --versio | --versi | --vers | -V) |
1026 | ac_init_version=: ;; | |
1227625a SP |
1027 | |
1028 | -with-* | --with-*) | |
1daf06b9 | 1029 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1227625a | 1030 | # Reject names that are not valid shell variable names. |
d2816d4c | 1031 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1daf06b9 SP |
1032 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1033 | { (exit 1); exit 1; }; } | |
d2816d4c | 1034 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
7f7d329e | 1035 | eval with_$ac_package=\$ac_optarg ;; |
1227625a SP |
1036 | |
1037 | -without-* | --without-*) | |
1daf06b9 | 1038 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1227625a | 1039 | # Reject names that are not valid shell variable names. |
d2816d4c | 1040 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1daf06b9 SP |
1041 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1042 | { (exit 1); exit 1; }; } | |
d2816d4c | 1043 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
7f7d329e | 1044 | eval with_$ac_package=no ;; |
1227625a SP |
1045 | |
1046 | --x) | |
1047 | # Obsolete; use --with-x. | |
1048 | with_x=yes ;; | |
1049 | ||
1050 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1051 | | --x-incl | --x-inc | --x-in | --x-i) | |
1052 | ac_prev=x_includes ;; | |
1053 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1054 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1daf06b9 | 1055 | x_includes=$ac_optarg ;; |
1227625a SP |
1056 | |
1057 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1058 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1059 | ac_prev=x_libraries ;; | |
1060 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1061 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1daf06b9 | 1062 | x_libraries=$ac_optarg ;; |
1227625a | 1063 | |
1daf06b9 SP |
1064 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1065 | Try \`$0 --help' for more information." >&2 | |
1066 | { (exit 1); exit 1; }; } | |
1227625a SP |
1067 | ;; |
1068 | ||
1daf06b9 SP |
1069 | *=*) |
1070 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1071 | # Reject names that are not valid shell variable names. | |
1072 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1073 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1074 | { (exit 1); exit 1; }; } | |
7f7d329e | 1075 | eval $ac_envvar=\$ac_optarg |
1daf06b9 SP |
1076 | export $ac_envvar ;; |
1077 | ||
1227625a | 1078 | *) |
1daf06b9 SP |
1079 | # FIXME: should be removed in autoconf 3.0. |
1080 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1081 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1082 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1083 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1227625a SP |
1084 | ;; |
1085 | ||
1086 | esac | |
1087 | done | |
1088 | ||
1089 | if test -n "$ac_prev"; then | |
1daf06b9 SP |
1090 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1091 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1092 | { (exit 1); exit 1; }; } | |
1227625a | 1093 | fi |
1227625a | 1094 | |
7f7d329e SP |
1095 | # Be sure to have absolute directory names. |
1096 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1097 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1098 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1099 | libdir localedir mandir | |
1227625a | 1100 | do |
7f7d329e | 1101 | eval ac_val=\$$ac_var |
1daf06b9 | 1102 | case $ac_val in |
7f7d329e SP |
1103 | [\\/$]* | ?:[\\/]* ) continue;; |
1104 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1227625a | 1105 | esac |
7f7d329e SP |
1106 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1107 | { (exit 1); exit 1; }; } | |
1227625a SP |
1108 | done |
1109 | ||
1daf06b9 SP |
1110 | # There might be people who depend on the old broken behavior: `$host' |
1111 | # used to hold the argument of --host etc. | |
1112 | # FIXME: To remove some day. | |
1113 | build=$build_alias | |
1114 | host=$host_alias | |
1115 | target=$target_alias | |
1116 | ||
1117 | # FIXME: To remove some day. | |
1118 | if test "x$host_alias" != x; then | |
1119 | if test "x$build_alias" = x; then | |
1120 | cross_compiling=maybe | |
1121 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1122 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1123 | elif test "x$build_alias" != "x$host_alias"; then | |
1124 | cross_compiling=yes | |
1125 | fi | |
1126 | fi | |
1227625a | 1127 | |
1daf06b9 SP |
1128 | ac_tool_prefix= |
1129 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1130 | ||
1131 | test "$silent" = yes && exec 6>/dev/null | |
1227625a | 1132 | |
1227625a | 1133 | |
7f7d329e SP |
1134 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1135 | ac_ls_di=`ls -di .` && | |
1136 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1137 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1138 | { (exit 1); exit 1; }; } | |
1139 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1140 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1141 | { (exit 1); exit 1; }; } | |
1142 | ||
1143 | ||
1227625a SP |
1144 | # Find the source files, if location was not specified. |
1145 | if test -z "$srcdir"; then | |
1146 | ac_srcdir_defaulted=yes | |
7f7d329e SP |
1147 | # Try the directory containing this script, then the parent directory. |
1148 | ac_confdir=`$as_dirname -- "$0" || | |
1daf06b9 | 1149 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
1150 | X"$0" : 'X\(//\)[^/]' \| \ |
1151 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 1152 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 1153 | echo X"$0" | |
7f7d329e SP |
1154 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1155 | s//\1/ | |
1156 | q | |
1157 | } | |
1158 | /^X\(\/\/\)[^/].*/{ | |
1159 | s//\1/ | |
1160 | q | |
1161 | } | |
1162 | /^X\(\/\/\)$/{ | |
1163 | s//\1/ | |
1164 | q | |
1165 | } | |
1166 | /^X\(\/\).*/{ | |
1167 | s//\1/ | |
1168 | q | |
1169 | } | |
1170 | s/.*/./; q'` | |
1227625a | 1171 | srcdir=$ac_confdir |
7f7d329e | 1172 | if test ! -r "$srcdir/$ac_unique_file"; then |
1227625a SP |
1173 | srcdir=.. |
1174 | fi | |
1175 | else | |
1176 | ac_srcdir_defaulted=no | |
1177 | fi | |
7f7d329e SP |
1178 | if test ! -r "$srcdir/$ac_unique_file"; then |
1179 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1180 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1daf06b9 | 1181 | { (exit 1); exit 1; }; } |
1227625a | 1182 | fi |
7f7d329e SP |
1183 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1184 | ac_abs_confdir=`( | |
1185 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
cdfe1392 | 1186 | { (exit 1); exit 1; }; } |
7f7d329e SP |
1187 | pwd)` |
1188 | # When building in place, set srcdir=. | |
1189 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1190 | srcdir=. | |
1191 | fi | |
1192 | # Remove unnecessary trailing slashes from srcdir. | |
1193 | # Double slashes in file names in object file debugging info | |
1194 | # mess up M-x gdb in Emacs. | |
1195 | case $srcdir in | |
1196 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1197 | esac | |
1198 | for ac_var in $ac_precious_vars; do | |
1199 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1200 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1201 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1202 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1203 | done | |
1daf06b9 SP |
1204 | |
1205 | # | |
1206 | # Report the --help message. | |
1207 | # | |
1208 | if test "$ac_init_help" = "long"; then | |
1209 | # Omit some internal or obsolete options to make the list less imposing. | |
1210 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1211 | cat <<_ACEOF | |
1212 | \`configure' configures this package to adapt to many kinds of systems. | |
1213 | ||
1214 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1215 | ||
1216 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1217 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1218 | ||
1219 | Defaults for the options are specified in brackets. | |
1220 | ||
1221 | Configuration: | |
1222 | -h, --help display this help and exit | |
1223 | --help=short display options specific to this package | |
1224 | --help=recursive display the short help of all the included packages | |
1225 | -V, --version display version information and exit | |
1226 | -q, --quiet, --silent do not print \`checking...' messages | |
1227 | --cache-file=FILE cache test results in FILE [disabled] | |
1228 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1229 | -n, --no-create do not create output files | |
1230 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1231 | ||
1daf06b9 SP |
1232 | Installation directories: |
1233 | --prefix=PREFIX install architecture-independent files in PREFIX | |
c9e4e868 | 1234 | [$ac_default_prefix] |
1daf06b9 | 1235 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
c9e4e868 | 1236 | [PREFIX] |
1daf06b9 SP |
1237 | |
1238 | By default, \`make install' will install all the files in | |
1239 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1240 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1241 | for instance \`--prefix=\$HOME'. | |
1242 | ||
1243 | For better control, use the options below. | |
1244 | ||
1245 | Fine tuning of the installation directories: | |
1246 | --bindir=DIR user executables [EPREFIX/bin] | |
1247 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1248 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1daf06b9 SP |
1249 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1250 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1251 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1252 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1253 | --includedir=DIR C header files [PREFIX/include] | |
1254 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7f7d329e SP |
1255 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1256 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1257 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1258 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1259 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1260 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1261 | --htmldir=DIR html documentation [DOCDIR] | |
1262 | --dvidir=DIR dvi documentation [DOCDIR] | |
1263 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1264 | --psdir=DIR ps documentation [DOCDIR] | |
1daf06b9 SP |
1265 | _ACEOF |
1266 | ||
1267 | cat <<\_ACEOF | |
1268 | _ACEOF | |
1269 | fi | |
1270 | ||
1271 | if test -n "$ac_init_help"; then | |
1272 | ||
1273 | cat <<\_ACEOF | |
1274 | ||
1275 | Optional Features: | |
1276 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1277 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1278 | --enable-debug include debugging code (default is NO) | |
1279 | --enable-static link dump and restore statically (default is NO) | |
d7783603 | 1280 | --enable-staticz link libz and libbz2 statically (default is NO) |
1daf06b9 | 1281 | --enable-rmt compile and install rmt (default is YES) |
cdfe1392 | 1282 | --enable-ermt compile ermt, an encrypting version of rmt (default is NO) |
1daf06b9 SP |
1283 | --enable-kerberos compile kerberos extensions (default is NO) |
1284 | --enable-readline enable readline support in restore (default is YES) | |
1285 | --enable-oldstylefscript enable old style F script (no arguments) (default is NO) | |
1286 | --enable-largefile enable Large File System support (default is YES) | |
1287 | --enable-qfa enable Quick File Access support (default is YES) | |
1288 | --enable-qfadebug include Quick File Access debugging code (default is NO) | |
d1925e0c | 1289 | --enable-macosx include Mac OSX restore compatibility (default is NO) |
7f7d329e | 1290 | --enable-transselinux restore can translate SELinux EAs (default is YES) |
1daf06b9 SP |
1291 | |
1292 | Optional Packages: | |
1293 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1294 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1295 | --with-cc=COMPILER select compiler to use | |
1296 | --with-linker=LINKER select linker to use | |
1297 | --with-ccopts=CCOPTS select compiler command line options | |
1298 | --with-ldopts=LDOPTS select linker command line options | |
1299 | --with-binowner=USER select owner for binaries | |
1300 | --with-bingrp=GROUP select group for binaries | |
1301 | --with-binmode=MODE select mode for binaries | |
1302 | --with-manowner=USER select owner for manual pages | |
1303 | --with-mangrp=GROUP select group for manual pages | |
1304 | --with-manmode=MODE select mode for manual pages | |
1305 | --with-dumpdatespath=PATH select path for dumpdates file | |
1306 | ||
1307 | Some influential environment variables: | |
1308 | CC C compiler command | |
1309 | CFLAGS C compiler flags | |
1310 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1311 | nonstandard directory <lib dir> | |
d2816d4c | 1312 | LIBS libraries to pass to the linker, e.g. -l<library> |
7f7d329e SP |
1313 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1314 | you have headers in a nonstandard directory <include dir> | |
1daf06b9 SP |
1315 | CPP C preprocessor |
1316 | ||
1317 | Use these variables to override the choices made by `configure' or to help | |
1318 | it to find libraries and programs with nonstandard names/locations. | |
1319 | ||
1320 | _ACEOF | |
7f7d329e | 1321 | ac_status=$? |
1daf06b9 SP |
1322 | fi |
1323 | ||
1324 | if test "$ac_init_help" = "recursive"; then | |
1325 | # If there are subdirs, report their specific --help. | |
1daf06b9 | 1326 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7f7d329e | 1327 | test -d "$ac_dir" || continue |
1daf06b9 SP |
1328 | ac_builddir=. |
1329 | ||
7f7d329e SP |
1330 | case "$ac_dir" in |
1331 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1332 | *) | |
1daf06b9 | 1333 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7f7d329e SP |
1334 | # A ".." for each directory in $ac_dir_suffix. |
1335 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1336 | case $ac_top_builddir_sub in | |
1337 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1338 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1339 | esac ;; | |
1340 | esac | |
1341 | ac_abs_top_builddir=$ac_pwd | |
1342 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1343 | # for backward compatibility: | |
1344 | ac_top_builddir=$ac_top_build_prefix | |
1daf06b9 SP |
1345 | |
1346 | case $srcdir in | |
7f7d329e | 1347 | .) # We are building in place. |
1daf06b9 | 1348 | ac_srcdir=. |
7f7d329e SP |
1349 | ac_top_srcdir=$ac_top_builddir_sub |
1350 | ac_abs_top_srcdir=$ac_pwd ;; | |
1351 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1daf06b9 | 1352 | ac_srcdir=$srcdir$ac_dir_suffix; |
7f7d329e SP |
1353 | ac_top_srcdir=$srcdir |
1354 | ac_abs_top_srcdir=$srcdir ;; | |
1355 | *) # Relative name. | |
1356 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1357 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1358 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c9e4e868 | 1359 | esac |
7f7d329e SP |
1360 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1361 | ||
1362 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1363 | # Check for guested configure. | |
1364 | if test -f "$ac_srcdir/configure.gnu"; then | |
1365 | echo && | |
1366 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1367 | elif test -f "$ac_srcdir/configure"; then | |
1368 | echo && | |
1369 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1daf06b9 SP |
1370 | else |
1371 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
7f7d329e SP |
1372 | fi || ac_status=$? |
1373 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1daf06b9 SP |
1374 | done |
1375 | fi | |
1376 | ||
7f7d329e | 1377 | test -n "$ac_init_help" && exit $ac_status |
1daf06b9 SP |
1378 | if $ac_init_version; then |
1379 | cat <<\_ACEOF | |
7f7d329e | 1380 | configure |
d2816d4c | 1381 | generated by GNU Autoconf 2.61 |
1daf06b9 | 1382 | |
7f7d329e SP |
1383 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1384 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1daf06b9 SP |
1385 | This configure script is free software; the Free Software Foundation |
1386 | gives unlimited permission to copy, distribute and modify it. | |
1387 | _ACEOF | |
7f7d329e | 1388 | exit |
1daf06b9 | 1389 | fi |
7f7d329e | 1390 | cat >config.log <<_ACEOF |
1daf06b9 SP |
1391 | This file contains any messages produced by compilers while |
1392 | running configure, to aid debugging if configure makes a mistake. | |
1393 | ||
1394 | It was created by $as_me, which was | |
d2816d4c | 1395 | generated by GNU Autoconf 2.61. Invocation command line was |
1daf06b9 SP |
1396 | |
1397 | $ $0 $@ | |
1398 | ||
1399 | _ACEOF | |
7f7d329e | 1400 | exec 5>>config.log |
1daf06b9 SP |
1401 | { |
1402 | cat <<_ASUNAME | |
1403 | ## --------- ## | |
1404 | ## Platform. ## | |
1405 | ## --------- ## | |
1406 | ||
1407 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1408 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1409 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1410 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1411 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1412 | ||
1413 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1414 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1415 | ||
1416 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1417 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1418 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7f7d329e | 1419 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1daf06b9 SP |
1420 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1421 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1422 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1423 | ||
1424 | _ASUNAME | |
1425 | ||
1426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1427 | for as_dir in $PATH | |
1428 | do | |
1429 | IFS=$as_save_IFS | |
1430 | test -z "$as_dir" && as_dir=. | |
1431 | echo "PATH: $as_dir" | |
1432 | done | |
7f7d329e | 1433 | IFS=$as_save_IFS |
1daf06b9 SP |
1434 | |
1435 | } >&5 | |
1436 | ||
1437 | cat >&5 <<_ACEOF | |
1438 | ||
1439 | ||
1440 | ## ----------- ## | |
1441 | ## Core tests. ## | |
1442 | ## ----------- ## | |
1443 | ||
1444 | _ACEOF | |
1445 | ||
1446 | ||
1447 | # Keep a trace of the command line. | |
1448 | # Strip out --no-create and --no-recursion so they do not pile up. | |
cdfe1392 | 1449 | # Strip out --silent because we don't want to record it for future runs. |
1daf06b9 | 1450 | # Also quote any args containing shell meta-characters. |
cdfe1392 | 1451 | # Make two passes to allow for proper duplicate-argument suppression. |
1daf06b9 | 1452 | ac_configure_args= |
cdfe1392 SP |
1453 | ac_configure_args0= |
1454 | ac_configure_args1= | |
cdfe1392 SP |
1455 | ac_must_keep_next=false |
1456 | for ac_pass in 1 2 | |
1daf06b9 | 1457 | do |
cdfe1392 SP |
1458 | for ac_arg |
1459 | do | |
1460 | case $ac_arg in | |
1461 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1462 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1463 | | -silent | --silent | --silen | --sile | --sil) | |
1464 | continue ;; | |
7f7d329e | 1465 | *\'*) |
cdfe1392 SP |
1466 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1467 | esac | |
1468 | case $ac_pass in | |
1469 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1470 | 2) | |
1471 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1472 | if test $ac_must_keep_next = true; then | |
c9e4e868 | 1473 | ac_must_keep_next=false # Got value, back to normal. |
cdfe1392 | 1474 | else |
c9e4e868 SP |
1475 | case $ac_arg in |
1476 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1477 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1478 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1479 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1480 | case "$ac_configure_args0 " in | |
1481 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1482 | esac | |
1483 | ;; | |
1484 | -* ) ac_must_keep_next=true ;; | |
1485 | esac | |
cdfe1392 | 1486 | fi |
7f7d329e | 1487 | ac_configure_args="$ac_configure_args '$ac_arg'" |
cdfe1392 SP |
1488 | ;; |
1489 | esac | |
1490 | done | |
1daf06b9 | 1491 | done |
cdfe1392 SP |
1492 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1493 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1daf06b9 SP |
1494 | |
1495 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1496 | # config.log. We remove comments because anyway the quotes in there | |
1497 | # would cause problems or look ugly. | |
7f7d329e SP |
1498 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1499 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1daf06b9 SP |
1500 | trap 'exit_status=$? |
1501 | # Save into config.log some information that might help in debugging. | |
1502 | { | |
1503 | echo | |
cdfe1392 | 1504 | |
1daf06b9 SP |
1505 | cat <<\_ASBOX |
1506 | ## ---------------- ## | |
1507 | ## Cache variables. ## | |
1508 | ## ---------------- ## | |
1509 | _ASBOX | |
1510 | echo | |
1511 | # The following way of writing the cache mishandles newlines in values, | |
7f7d329e SP |
1512 | ( |
1513 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1514 | eval ac_val=\$$ac_var | |
1515 | case $ac_val in #( | |
1516 | *${as_nl}*) | |
1517 | case $ac_var in #( | |
1518 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1519 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1520 | esac | |
1521 | case $ac_var in #( | |
1522 | _ | IFS | as_nl) ;; #( | |
1523 | *) $as_unset $ac_var ;; | |
1524 | esac ;; | |
1525 | esac | |
1526 | done | |
1daf06b9 | 1527 | (set) 2>&1 | |
7f7d329e SP |
1528 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1529 | *${as_nl}ac_space=\ *) | |
1daf06b9 | 1530 | sed -n \ |
7f7d329e SP |
1531 | "s/'\''/'\''\\\\'\'''\''/g; |
1532 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1533 | ;; #( | |
1daf06b9 | 1534 | *) |
7f7d329e | 1535 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1daf06b9 | 1536 | ;; |
7f7d329e SP |
1537 | esac | |
1538 | sort | |
1539 | ) | |
1daf06b9 | 1540 | echo |
cdfe1392 SP |
1541 | |
1542 | cat <<\_ASBOX | |
1543 | ## ----------------- ## | |
1544 | ## Output variables. ## | |
1545 | ## ----------------- ## | |
1546 | _ASBOX | |
1547 | echo | |
1548 | for ac_var in $ac_subst_vars | |
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 | ||
1558 | if test -n "$ac_subst_files"; then | |
1559 | cat <<\_ASBOX | |
7f7d329e SP |
1560 | ## ------------------- ## |
1561 | ## File substitutions. ## | |
1562 | ## ------------------- ## | |
cdfe1392 SP |
1563 | _ASBOX |
1564 | echo | |
1565 | for ac_var in $ac_subst_files | |
1566 | do | |
7f7d329e SP |
1567 | eval ac_val=\$$ac_var |
1568 | case $ac_val in | |
1569 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1570 | esac | |
1571 | echo "$ac_var='\''$ac_val'\''" | |
cdfe1392 SP |
1572 | done | sort |
1573 | echo | |
1574 | fi | |
1575 | ||
1daf06b9 SP |
1576 | if test -s confdefs.h; then |
1577 | cat <<\_ASBOX | |
1578 | ## ----------- ## | |
1579 | ## confdefs.h. ## | |
1580 | ## ----------- ## | |
1581 | _ASBOX | |
1582 | echo | |
7f7d329e | 1583 | cat confdefs.h |
1daf06b9 SP |
1584 | echo |
1585 | fi | |
1586 | test "$ac_signal" != 0 && | |
1587 | echo "$as_me: caught signal $ac_signal" | |
1588 | echo "$as_me: exit $exit_status" | |
1589 | } >&5 | |
7f7d329e SP |
1590 | rm -f core *.core core.conftest.* && |
1591 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1daf06b9 | 1592 | exit $exit_status |
7f7d329e | 1593 | ' 0 |
1daf06b9 SP |
1594 | for ac_signal in 1 2 13 15; do |
1595 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1596 | done | |
1597 | ac_signal=0 | |
1227625a | 1598 | |
1daf06b9 | 1599 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
7f7d329e | 1600 | rm -f -r conftest* confdefs.h |
1daf06b9 SP |
1601 | |
1602 | # Predefined preprocessor variables. | |
1603 | ||
1604 | cat >>confdefs.h <<_ACEOF | |
1605 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1606 | _ACEOF | |
1607 | ||
1608 | ||
1609 | cat >>confdefs.h <<_ACEOF | |
1610 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1611 | _ACEOF | |
1612 | ||
1613 | ||
1614 | cat >>confdefs.h <<_ACEOF | |
1615 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1616 | _ACEOF | |
1617 | ||
1618 | ||
1619 | cat >>confdefs.h <<_ACEOF | |
1620 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1621 | _ACEOF | |
1622 | ||
1623 | ||
1624 | cat >>confdefs.h <<_ACEOF | |
1625 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1626 | _ACEOF | |
1627 | ||
1628 | ||
1629 | # Let the site file select an alternate cache file if it wants to. | |
1227625a | 1630 | # Prefer explicitly selected file to automatically selected ones. |
7f7d329e SP |
1631 | if test -n "$CONFIG_SITE"; then |
1632 | set x "$CONFIG_SITE" | |
1633 | elif test "x$prefix" != xNONE; then | |
1634 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1635 | else | |
1636 | set x "$ac_default_prefix/share/config.site" \ | |
1637 | "$ac_default_prefix/etc/config.site" | |
1227625a | 1638 | fi |
7f7d329e SP |
1639 | shift |
1640 | for ac_site_file | |
1641 | do | |
1227625a | 1642 | if test -r "$ac_site_file"; then |
1daf06b9 SP |
1643 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1644 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1645 | sed 's/^/| /' "$ac_site_file" >&5 | |
1227625a SP |
1646 | . "$ac_site_file" |
1647 | fi | |
1648 | done | |
1649 | ||
1650 | if test -r "$cache_file"; then | |
1daf06b9 SP |
1651 | # Some versions of bash will fail to source /dev/null (special |
1652 | # files actually), so we avoid doing that. | |
1653 | if test -f "$cache_file"; then | |
1654 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1655 | echo "$as_me: loading cache $cache_file" >&6;} | |
1656 | case $cache_file in | |
7f7d329e SP |
1657 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1658 | *) . "./$cache_file";; | |
1daf06b9 SP |
1659 | esac |
1660 | fi | |
1227625a | 1661 | else |
1daf06b9 SP |
1662 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1663 | echo "$as_me: creating cache $cache_file" >&6;} | |
1664 | >$cache_file | |
1665 | fi | |
1666 | ||
1667 | # Check that the precious variables saved in the cache have kept the same | |
1668 | # value. | |
1669 | ac_cache_corrupted=false | |
7f7d329e | 1670 | for ac_var in $ac_precious_vars; do |
1daf06b9 SP |
1671 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1672 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7f7d329e SP |
1673 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1674 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1daf06b9 SP |
1675 | case $ac_old_set,$ac_new_set in |
1676 | set,) | |
1677 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1678 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1679 | ac_cache_corrupted=: ;; | |
1680 | ,set) | |
1681 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1682 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1683 | ac_cache_corrupted=: ;; | |
1684 | ,);; | |
1685 | *) | |
1686 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
c9e4e868 | 1687 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1daf06b9 | 1688 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
c9e4e868 | 1689 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1daf06b9 | 1690 | echo "$as_me: former value: $ac_old_val" >&2;} |
c9e4e868 | 1691 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1daf06b9 | 1692 | echo "$as_me: current value: $ac_new_val" >&2;} |
c9e4e868 | 1693 | ac_cache_corrupted=: |
1daf06b9 SP |
1694 | fi;; |
1695 | esac | |
1696 | # Pass precious variables to config.status. | |
1697 | if test "$ac_new_set" = set; then | |
1698 | case $ac_new_val in | |
7f7d329e | 1699 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1daf06b9 SP |
1700 | *) ac_arg=$ac_var=$ac_new_val ;; |
1701 | esac | |
1702 | case " $ac_configure_args " in | |
1703 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1704 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1705 | esac | |
1706 | fi | |
1707 | done | |
1708 | if $ac_cache_corrupted; then | |
1709 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1710 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1711 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1712 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1713 | { (exit 1); exit 1; }; } | |
1227625a SP |
1714 | fi |
1715 | ||
1daf06b9 SP |
1716 | |
1717 | ||
1718 | ||
1719 | ||
1720 | ||
1721 | ||
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | ||
1727 | ||
1728 | ||
1729 | ||
1730 | ||
1227625a | 1731 | |
7f7d329e SP |
1732 | ac_ext=c |
1733 | ac_cpp='$CPP $CPPFLAGS' | |
1734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1227625a SP |
1737 | |
1738 | ||
e7d18957 | 1739 | |
cdfe1392 | 1740 | |
1227625a SP |
1741 | MCONFIG=./MCONFIG |
1742 | ||
1743 | ||
7f7d329e | 1744 | ac_config_headers="$ac_config_headers config.h" |
1227625a SP |
1745 | |
1746 | ||
7f7d329e SP |
1747 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1748 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
1749 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
1750 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
1daf06b9 | 1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1227625a | 1752 | else |
1daf06b9 | 1753 | cat >conftest.make <<\_ACEOF |
7f7d329e | 1754 | SHELL = /bin/sh |
1227625a | 1755 | all: |
7f7d329e | 1756 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
1daf06b9 | 1757 | _ACEOF |
1227625a | 1758 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7f7d329e SP |
1759 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
1760 | *@@@%%%=?*=@@@%%%*) | |
1761 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
1762 | *) | |
1763 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
1764 | esac | |
1daf06b9 | 1765 | rm -f conftest.make |
1227625a | 1766 | fi |
7f7d329e SP |
1767 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1768 | { echo "$as_me:$LINENO: result: yes" >&5 | |
1769 | echo "${ECHO_T}yes" >&6; } | |
1227625a SP |
1770 | SET_MAKE= |
1771 | else | |
7f7d329e SP |
1772 | { echo "$as_me:$LINENO: result: no" >&5 |
1773 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1774 | SET_MAKE="MAKE=${MAKE-make}" |
1775 | fi | |
1776 | ||
7f7d329e SP |
1777 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
1778 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
1daf06b9 SP |
1779 | LN_S=$as_ln_s |
1780 | if test "$LN_S" = "ln -s"; then | |
7f7d329e SP |
1781 | { echo "$as_me:$LINENO: result: yes" >&5 |
1782 | echo "${ECHO_T}yes" >&6; } | |
1227625a | 1783 | else |
7f7d329e SP |
1784 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
1785 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
1227625a SP |
1786 | fi |
1787 | ||
1788 | # Extract the first word of "cp", so it can be a program name with args. | |
1789 | set dummy cp; ac_word=$2 | |
7f7d329e SP |
1790 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1792 | if test "${ac_cv_path_CP+set}" = set; then |
1793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1794 | else |
1daf06b9 SP |
1795 | case $CP in |
1796 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1797 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
1798 | ;; | |
1799 | *) | |
1daf06b9 SP |
1800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1801 | for as_dir in $PATH | |
1802 | do | |
1803 | IFS=$as_save_IFS | |
1804 | test -z "$as_dir" && as_dir=. | |
1805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 1806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1807 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
1808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1809 | break 2 | |
1810 | fi | |
1811 | done | |
1812 | done | |
7f7d329e | 1813 | IFS=$as_save_IFS |
1daf06b9 | 1814 | |
1227625a SP |
1815 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
1816 | ;; | |
1817 | esac | |
1818 | fi | |
1daf06b9 | 1819 | CP=$ac_cv_path_CP |
1227625a | 1820 | if test -n "$CP"; then |
7f7d329e SP |
1821 | { echo "$as_me:$LINENO: result: $CP" >&5 |
1822 | echo "${ECHO_T}$CP" >&6; } | |
1227625a | 1823 | else |
7f7d329e SP |
1824 | { echo "$as_me:$LINENO: result: no" >&5 |
1825 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1826 | fi |
1827 | ||
7f7d329e | 1828 | |
1227625a SP |
1829 | # Extract the first word of "mv", so it can be a program name with args. |
1830 | set dummy mv; ac_word=$2 | |
7f7d329e SP |
1831 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1833 | if test "${ac_cv_path_MV+set}" = set; then |
1834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1835 | else |
1daf06b9 SP |
1836 | case $MV in |
1837 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1838 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
1839 | ;; | |
1840 | *) | |
1daf06b9 SP |
1841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1842 | for as_dir in $PATH | |
1843 | do | |
1844 | IFS=$as_save_IFS | |
1845 | test -z "$as_dir" && as_dir=. | |
1846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 1847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1848 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
1849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1850 | break 2 | |
1851 | fi | |
1852 | done | |
1853 | done | |
7f7d329e | 1854 | IFS=$as_save_IFS |
1daf06b9 | 1855 | |
1227625a SP |
1856 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
1857 | ;; | |
1858 | esac | |
1859 | fi | |
1daf06b9 | 1860 | MV=$ac_cv_path_MV |
1227625a | 1861 | if test -n "$MV"; then |
7f7d329e SP |
1862 | { echo "$as_me:$LINENO: result: $MV" >&5 |
1863 | echo "${ECHO_T}$MV" >&6; } | |
1227625a | 1864 | else |
7f7d329e SP |
1865 | { echo "$as_me:$LINENO: result: no" >&5 |
1866 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1867 | fi |
1868 | ||
7f7d329e | 1869 | |
1227625a SP |
1870 | # Extract the first word of "rm", so it can be a program name with args. |
1871 | set dummy rm; ac_word=$2 | |
7f7d329e SP |
1872 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1874 | if test "${ac_cv_path_RM+set}" = set; then |
1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1876 | else |
1daf06b9 SP |
1877 | case $RM in |
1878 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1879 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
1880 | ;; | |
1881 | *) | |
1daf06b9 SP |
1882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1883 | for as_dir in $PATH | |
1884 | do | |
1885 | IFS=$as_save_IFS | |
1886 | test -z "$as_dir" && as_dir=. | |
1887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 1888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1889 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
1890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1891 | break 2 | |
1892 | fi | |
1893 | done | |
1894 | done | |
7f7d329e | 1895 | IFS=$as_save_IFS |
1daf06b9 | 1896 | |
1227625a SP |
1897 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
1898 | ;; | |
1899 | esac | |
1900 | fi | |
1daf06b9 | 1901 | RM=$ac_cv_path_RM |
1227625a | 1902 | if test -n "$RM"; then |
7f7d329e SP |
1903 | { echo "$as_me:$LINENO: result: $RM" >&5 |
1904 | echo "${ECHO_T}$RM" >&6; } | |
1227625a | 1905 | else |
7f7d329e SP |
1906 | { echo "$as_me:$LINENO: result: no" >&5 |
1907 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1908 | fi |
1909 | ||
7f7d329e | 1910 | |
1daf06b9 SP |
1911 | if test -n "$ac_tool_prefix"; then |
1912 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1227625a | 1913 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
7f7d329e SP |
1914 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1916 | if test "${ac_cv_prog_AR+set}" = set; then |
1917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
1918 | else |
1919 | if test -n "$AR"; then | |
1920 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1921 | else | |
1daf06b9 SP |
1922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1923 | for as_dir in $PATH | |
1924 | do | |
1925 | IFS=$as_save_IFS | |
1926 | test -z "$as_dir" && as_dir=. | |
1927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 1928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1929 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
1930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1931 | break 2 | |
1932 | fi | |
1933 | done | |
1934 | done | |
7f7d329e | 1935 | IFS=$as_save_IFS |
1daf06b9 | 1936 | |
1227625a SP |
1937 | fi |
1938 | fi | |
1daf06b9 | 1939 | AR=$ac_cv_prog_AR |
1227625a | 1940 | if test -n "$AR"; then |
7f7d329e SP |
1941 | { echo "$as_me:$LINENO: result: $AR" >&5 |
1942 | echo "${ECHO_T}$AR" >&6; } | |
1227625a | 1943 | else |
7f7d329e SP |
1944 | { echo "$as_me:$LINENO: result: no" >&5 |
1945 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1946 | fi |
1947 | ||
7f7d329e | 1948 | |
1daf06b9 | 1949 | fi |
1227625a | 1950 | if test -z "$ac_cv_prog_AR"; then |
1daf06b9 | 1951 | ac_ct_AR=$AR |
1227625a SP |
1952 | # Extract the first word of "ar", so it can be a program name with args. |
1953 | set dummy ar; ac_word=$2 | |
7f7d329e SP |
1954 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
1956 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
1957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 1958 | else |
1daf06b9 SP |
1959 | if test -n "$ac_ct_AR"; then |
1960 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
1227625a | 1961 | else |
1daf06b9 SP |
1962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1963 | for as_dir in $PATH | |
1964 | do | |
1965 | IFS=$as_save_IFS | |
1966 | test -z "$as_dir" && as_dir=. | |
1967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 1968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
1969 | ac_cv_prog_ac_ct_AR="ar" |
1970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1971 | break 2 | |
1972 | fi | |
1973 | done | |
1974 | done | |
7f7d329e | 1975 | IFS=$as_save_IFS |
1daf06b9 | 1976 | |
1227625a SP |
1977 | fi |
1978 | fi | |
1daf06b9 SP |
1979 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
1980 | if test -n "$ac_ct_AR"; then | |
7f7d329e SP |
1981 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
1982 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
1227625a | 1983 | else |
7f7d329e SP |
1984 | { echo "$as_me:$LINENO: result: no" >&5 |
1985 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
1986 | fi |
1987 | ||
7f7d329e SP |
1988 | if test "x$ac_ct_AR" = x; then |
1989 | AR="ar" | |
1990 | else | |
1991 | case $cross_compiling:$ac_tool_warned in | |
1992 | yes:) | |
1993 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1994 | whose name does not start with the host triplet. If you think this | |
1995 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1996 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1997 | whose name does not start with the host triplet. If you think this | |
1998 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1999 | ac_tool_warned=yes ;; | |
2000 | esac | |
2001 | AR=$ac_ct_AR | |
2002 | fi | |
1227625a | 2003 | else |
1daf06b9 | 2004 | AR="$ac_cv_prog_AR" |
1227625a SP |
2005 | fi |
2006 | ||
1daf06b9 SP |
2007 | if test -n "$ac_tool_prefix"; then |
2008 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1227625a | 2009 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
7f7d329e SP |
2010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2012 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
2014 | else |
2015 | if test -n "$RANLIB"; then | |
2016 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2017 | else | |
1daf06b9 SP |
2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2019 | for as_dir in $PATH | |
2020 | do | |
2021 | IFS=$as_save_IFS | |
2022 | test -z "$as_dir" && as_dir=. | |
2023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2025 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
2026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2027 | break 2 | |
2028 | fi | |
2029 | done | |
2030 | done | |
7f7d329e | 2031 | IFS=$as_save_IFS |
1daf06b9 | 2032 | |
1227625a SP |
2033 | fi |
2034 | fi | |
1daf06b9 | 2035 | RANLIB=$ac_cv_prog_RANLIB |
1227625a | 2036 | if test -n "$RANLIB"; then |
7f7d329e SP |
2037 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2038 | echo "${ECHO_T}$RANLIB" >&6; } | |
1227625a | 2039 | else |
7f7d329e SP |
2040 | { echo "$as_me:$LINENO: result: no" >&5 |
2041 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2042 | fi |
2043 | ||
7f7d329e | 2044 | |
1daf06b9 | 2045 | fi |
1227625a | 2046 | if test -z "$ac_cv_prog_RANLIB"; then |
1daf06b9 | 2047 | ac_ct_RANLIB=$RANLIB |
1227625a SP |
2048 | # Extract the first word of "ranlib", so it can be a program name with args. |
2049 | set dummy ranlib; ac_word=$2 | |
7f7d329e SP |
2050 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2052 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
2053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 2054 | else |
1daf06b9 SP |
2055 | if test -n "$ac_ct_RANLIB"; then |
2056 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
1227625a | 2057 | else |
1daf06b9 SP |
2058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2059 | for as_dir in $PATH | |
2060 | do | |
2061 | IFS=$as_save_IFS | |
2062 | test -z "$as_dir" && as_dir=. | |
2063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2065 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
2066 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2067 | break 2 | |
2068 | fi | |
2069 | done | |
2070 | done | |
7f7d329e | 2071 | IFS=$as_save_IFS |
1daf06b9 | 2072 | |
1227625a SP |
2073 | fi |
2074 | fi | |
1daf06b9 SP |
2075 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2076 | if test -n "$ac_ct_RANLIB"; then | |
7f7d329e SP |
2077 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
2078 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
1227625a | 2079 | else |
7f7d329e SP |
2080 | { echo "$as_me:$LINENO: result: no" >&5 |
2081 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2082 | fi |
2083 | ||
7f7d329e SP |
2084 | if test "x$ac_ct_RANLIB" = x; then |
2085 | RANLIB=":" | |
2086 | else | |
2087 | case $cross_compiling:$ac_tool_warned in | |
2088 | yes:) | |
2089 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2090 | whose name does not start with the host triplet. If you think this | |
2091 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2092 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2093 | whose name does not start with the host triplet. If you think this | |
2094 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2095 | ac_tool_warned=yes ;; | |
2096 | esac | |
2097 | RANLIB=$ac_ct_RANLIB | |
2098 | fi | |
1227625a | 2099 | else |
1daf06b9 | 2100 | RANLIB="$ac_cv_prog_RANLIB" |
1227625a SP |
2101 | fi |
2102 | ||
1daf06b9 SP |
2103 | if test -n "$ac_tool_prefix"; then |
2104 | # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args. | |
1227625a | 2105 | set dummy ${ac_tool_prefix}patch; ac_word=$2 |
7f7d329e SP |
2106 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2108 | if test "${ac_cv_prog_PATCH+set}" = set; then |
2109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
2110 | else |
2111 | if test -n "$PATCH"; then | |
2112 | ac_cv_prog_PATCH="$PATCH" # Let the user override the test. | |
2113 | else | |
1daf06b9 SP |
2114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2115 | for as_dir in $PATH | |
2116 | do | |
2117 | IFS=$as_save_IFS | |
2118 | test -z "$as_dir" && as_dir=. | |
2119 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2121 | ac_cv_prog_PATCH="${ac_tool_prefix}patch" |
2122 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2123 | break 2 | |
2124 | fi | |
2125 | done | |
2126 | done | |
7f7d329e | 2127 | IFS=$as_save_IFS |
1daf06b9 | 2128 | |
1227625a SP |
2129 | fi |
2130 | fi | |
1daf06b9 | 2131 | PATCH=$ac_cv_prog_PATCH |
1227625a | 2132 | if test -n "$PATCH"; then |
7f7d329e SP |
2133 | { echo "$as_me:$LINENO: result: $PATCH" >&5 |
2134 | echo "${ECHO_T}$PATCH" >&6; } | |
1227625a | 2135 | else |
7f7d329e SP |
2136 | { echo "$as_me:$LINENO: result: no" >&5 |
2137 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2138 | fi |
2139 | ||
7f7d329e | 2140 | |
1daf06b9 | 2141 | fi |
1227625a | 2142 | if test -z "$ac_cv_prog_PATCH"; then |
1daf06b9 | 2143 | ac_ct_PATCH=$PATCH |
1227625a SP |
2144 | # Extract the first word of "patch", so it can be a program name with args. |
2145 | set dummy patch; ac_word=$2 | |
7f7d329e SP |
2146 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2147 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2148 | if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then |
2149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 2150 | else |
1daf06b9 SP |
2151 | if test -n "$ac_ct_PATCH"; then |
2152 | ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test. | |
1227625a | 2153 | else |
1daf06b9 SP |
2154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2155 | for as_dir in $PATH | |
2156 | do | |
2157 | IFS=$as_save_IFS | |
2158 | test -z "$as_dir" && as_dir=. | |
2159 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2160 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2161 | ac_cv_prog_ac_ct_PATCH="patch" |
2162 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2163 | break 2 | |
2164 | fi | |
2165 | done | |
2166 | done | |
7f7d329e | 2167 | IFS=$as_save_IFS |
1daf06b9 | 2168 | |
1227625a SP |
2169 | fi |
2170 | fi | |
1daf06b9 SP |
2171 | ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH |
2172 | if test -n "$ac_ct_PATCH"; then | |
7f7d329e SP |
2173 | { echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5 |
2174 | echo "${ECHO_T}$ac_ct_PATCH" >&6; } | |
1227625a | 2175 | else |
7f7d329e SP |
2176 | { echo "$as_me:$LINENO: result: no" >&5 |
2177 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2178 | fi |
2179 | ||
7f7d329e SP |
2180 | if test "x$ac_ct_PATCH" = x; then |
2181 | PATCH=":" | |
2182 | else | |
2183 | case $cross_compiling:$ac_tool_warned in | |
2184 | yes:) | |
2185 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2186 | whose name does not start with the host triplet. If you think this | |
2187 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2188 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2189 | whose name does not start with the host triplet. If you think this | |
2190 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2191 | ac_tool_warned=yes ;; | |
2192 | esac | |
2193 | PATCH=$ac_ct_PATCH | |
2194 | fi | |
1daf06b9 SP |
2195 | else |
2196 | PATCH="$ac_cv_prog_PATCH" | |
2197 | fi | |
2198 | ||
2199 | ac_ext=c | |
2200 | ac_cpp='$CPP $CPPFLAGS' | |
2201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2204 | if test -n "$ac_tool_prefix"; then | |
2205 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2206 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
7f7d329e SP |
2207 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2209 | if test "${ac_cv_prog_CC+set}" = set; then |
2210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2211 | else | |
2212 | if test -n "$CC"; then | |
2213 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1227625a | 2214 | else |
1daf06b9 SP |
2215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2216 | for as_dir in $PATH | |
2217 | do | |
2218 | IFS=$as_save_IFS | |
2219 | test -z "$as_dir" && as_dir=. | |
2220 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2221 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2222 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2223 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2224 | break 2 | |
2225 | fi | |
2226 | done | |
2227 | done | |
7f7d329e | 2228 | IFS=$as_save_IFS |
1daf06b9 | 2229 | |
1227625a SP |
2230 | fi |
2231 | fi | |
1daf06b9 SP |
2232 | CC=$ac_cv_prog_CC |
2233 | if test -n "$CC"; then | |
7f7d329e SP |
2234 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2235 | echo "${ECHO_T}$CC" >&6; } | |
1daf06b9 | 2236 | else |
7f7d329e SP |
2237 | { echo "$as_me:$LINENO: result: no" >&5 |
2238 | echo "${ECHO_T}no" >&6; } | |
1daf06b9 | 2239 | fi |
1227625a | 2240 | |
7f7d329e | 2241 | |
1daf06b9 SP |
2242 | fi |
2243 | if test -z "$ac_cv_prog_CC"; then | |
2244 | ac_ct_CC=$CC | |
2245 | # Extract the first word of "gcc", so it can be a program name with args. | |
1227625a | 2246 | set dummy gcc; ac_word=$2 |
7f7d329e SP |
2247 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2249 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2251 | else | |
2252 | if test -n "$ac_ct_CC"; then | |
2253 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2254 | else | |
2255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2256 | for as_dir in $PATH | |
2257 | do | |
2258 | IFS=$as_save_IFS | |
2259 | test -z "$as_dir" && as_dir=. | |
2260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2262 | ac_cv_prog_ac_ct_CC="gcc" |
2263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2264 | break 2 | |
2265 | fi | |
2266 | done | |
2267 | done | |
7f7d329e | 2268 | IFS=$as_save_IFS |
1daf06b9 SP |
2269 | |
2270 | fi | |
2271 | fi | |
2272 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2273 | if test -n "$ac_ct_CC"; then | |
7f7d329e SP |
2274 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2275 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1daf06b9 | 2276 | else |
7f7d329e SP |
2277 | { echo "$as_me:$LINENO: result: no" >&5 |
2278 | echo "${ECHO_T}no" >&6; } | |
1daf06b9 SP |
2279 | fi |
2280 | ||
7f7d329e SP |
2281 | if test "x$ac_ct_CC" = x; then |
2282 | CC="" | |
2283 | else | |
2284 | case $cross_compiling:$ac_tool_warned in | |
2285 | yes:) | |
2286 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2287 | whose name does not start with the host triplet. If you think this | |
2288 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2289 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2290 | whose name does not start with the host triplet. If you think this | |
2291 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2292 | ac_tool_warned=yes ;; | |
2293 | esac | |
2294 | CC=$ac_ct_CC | |
2295 | fi | |
1daf06b9 SP |
2296 | else |
2297 | CC="$ac_cv_prog_CC" | |
2298 | fi | |
2299 | ||
2300 | if test -z "$CC"; then | |
7f7d329e SP |
2301 | if test -n "$ac_tool_prefix"; then |
2302 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1daf06b9 | 2303 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
7f7d329e SP |
2304 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2306 | if test "${ac_cv_prog_CC+set}" = set; then |
2307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
2308 | else |
2309 | if test -n "$CC"; then | |
2310 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2311 | else | |
1daf06b9 SP |
2312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2313 | for as_dir in $PATH | |
2314 | do | |
2315 | IFS=$as_save_IFS | |
2316 | test -z "$as_dir" && as_dir=. | |
2317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2319 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2321 | break 2 | |
2322 | fi | |
2323 | done | |
2324 | done | |
7f7d329e | 2325 | IFS=$as_save_IFS |
1daf06b9 | 2326 | |
1227625a SP |
2327 | fi |
2328 | fi | |
1daf06b9 | 2329 | CC=$ac_cv_prog_CC |
1227625a | 2330 | if test -n "$CC"; then |
7f7d329e SP |
2331 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2332 | echo "${ECHO_T}$CC" >&6; } | |
1227625a | 2333 | else |
7f7d329e SP |
2334 | { echo "$as_me:$LINENO: result: no" >&5 |
2335 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2336 | fi |
2337 | ||
1daf06b9 | 2338 | |
7f7d329e | 2339 | fi |
1daf06b9 | 2340 | fi |
1227625a SP |
2341 | if test -z "$CC"; then |
2342 | # Extract the first word of "cc", so it can be a program name with args. | |
2343 | set dummy cc; ac_word=$2 | |
7f7d329e SP |
2344 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2346 | if test "${ac_cv_prog_CC+set}" = set; then |
2347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a SP |
2348 | else |
2349 | if test -n "$CC"; then | |
2350 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2351 | else | |
1227625a | 2352 | ac_prog_rejected=no |
1daf06b9 SP |
2353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2354 | for as_dir in $PATH | |
2355 | do | |
2356 | IFS=$as_save_IFS | |
2357 | test -z "$as_dir" && as_dir=. | |
2358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2360 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2361 | ac_prog_rejected=yes | |
2362 | continue | |
2363 | fi | |
2364 | ac_cv_prog_CC="cc" | |
2365 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2366 | break 2 | |
2367 | fi | |
2368 | done | |
2369 | done | |
7f7d329e | 2370 | IFS=$as_save_IFS |
1daf06b9 | 2371 | |
1227625a SP |
2372 | if test $ac_prog_rejected = yes; then |
2373 | # We found a bogon in the path, so make sure we never use it. | |
2374 | set dummy $ac_cv_prog_CC | |
2375 | shift | |
1daf06b9 | 2376 | if test $# != 0; then |
1227625a SP |
2377 | # We chose a different compiler from the bogus one. |
2378 | # However, it has the same basename, so the bogon will be chosen | |
2379 | # first if we set CC to just the basename; use the full file name. | |
2380 | shift | |
cdfe1392 | 2381 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1227625a SP |
2382 | fi |
2383 | fi | |
2384 | fi | |
2385 | fi | |
1daf06b9 | 2386 | CC=$ac_cv_prog_CC |
1227625a | 2387 | if test -n "$CC"; then |
7f7d329e SP |
2388 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2389 | echo "${ECHO_T}$CC" >&6; } | |
1227625a | 2390 | else |
7f7d329e SP |
2391 | { echo "$as_me:$LINENO: result: no" >&5 |
2392 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2393 | fi |
2394 | ||
7f7d329e | 2395 | |
1daf06b9 SP |
2396 | fi |
2397 | if test -z "$CC"; then | |
2398 | if test -n "$ac_tool_prefix"; then | |
7f7d329e | 2399 | for ac_prog in cl.exe |
1daf06b9 SP |
2400 | do |
2401 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2402 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7f7d329e SP |
2403 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2405 | if test "${ac_cv_prog_CC+set}" = set; then |
2406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ddd2ef55 SP |
2407 | else |
2408 | if test -n "$CC"; then | |
2409 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2410 | else | |
1daf06b9 SP |
2411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2412 | for as_dir in $PATH | |
2413 | do | |
2414 | IFS=$as_save_IFS | |
2415 | test -z "$as_dir" && as_dir=. | |
2416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2418 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2420 | break 2 | |
2421 | fi | |
2422 | done | |
2423 | done | |
7f7d329e | 2424 | IFS=$as_save_IFS |
1daf06b9 | 2425 | |
ddd2ef55 SP |
2426 | fi |
2427 | fi | |
1daf06b9 | 2428 | CC=$ac_cv_prog_CC |
ddd2ef55 | 2429 | if test -n "$CC"; then |
7f7d329e SP |
2430 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2431 | echo "${ECHO_T}$CC" >&6; } | |
ddd2ef55 | 2432 | else |
7f7d329e SP |
2433 | { echo "$as_me:$LINENO: result: no" >&5 |
2434 | echo "${ECHO_T}no" >&6; } | |
ddd2ef55 | 2435 | fi |
1daf06b9 | 2436 | |
7f7d329e | 2437 | |
1daf06b9 SP |
2438 | test -n "$CC" && break |
2439 | done | |
2440 | fi | |
2441 | if test -z "$CC"; then | |
2442 | ac_ct_CC=$CC | |
7f7d329e | 2443 | for ac_prog in cl.exe |
1daf06b9 SP |
2444 | do |
2445 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2446 | set dummy $ac_prog; ac_word=$2 | |
7f7d329e SP |
2447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1daf06b9 SP |
2449 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2451 | else | |
2452 | if test -n "$ac_ct_CC"; then | |
2453 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2454 | else | |
2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2456 | for as_dir in $PATH | |
2457 | do | |
2458 | IFS=$as_save_IFS | |
2459 | test -z "$as_dir" && as_dir=. | |
2460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2462 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2464 | break 2 | |
ddd2ef55 | 2465 | fi |
1daf06b9 SP |
2466 | done |
2467 | done | |
7f7d329e | 2468 | IFS=$as_save_IFS |
1daf06b9 SP |
2469 | |
2470 | fi | |
2471 | fi | |
2472 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2473 | if test -n "$ac_ct_CC"; then | |
7f7d329e SP |
2474 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2475 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1daf06b9 | 2476 | else |
7f7d329e SP |
2477 | { echo "$as_me:$LINENO: result: no" >&5 |
2478 | echo "${ECHO_T}no" >&6; } | |
1227625a SP |
2479 | fi |
2480 | ||
7f7d329e | 2481 | |
1daf06b9 SP |
2482 | test -n "$ac_ct_CC" && break |
2483 | done | |
1227625a | 2484 | |
7f7d329e SP |
2485 | if test "x$ac_ct_CC" = x; then |
2486 | CC="" | |
2487 | else | |
2488 | case $cross_compiling:$ac_tool_warned in | |
2489 | yes:) | |
2490 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2491 | whose name does not start with the host triplet. If you think this | |
2492 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2493 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2494 | whose name does not start with the host triplet. If you think this | |
2495 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2496 | ac_tool_warned=yes ;; | |
2497 | esac | |
2498 | CC=$ac_ct_CC | |
2499 | fi | |
1daf06b9 SP |
2500 | fi |
2501 | ||
2502 | fi | |
1227625a | 2503 | |
ddd2ef55 | 2504 | |
cdfe1392 SP |
2505 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2506 | See \`config.log' for more details." >&5 | |
2507 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2508 | See \`config.log' for more details." >&2;} | |
1daf06b9 SP |
2509 | { (exit 1); exit 1; }; } |
2510 | ||
2511 | # Provide some information about the compiler. | |
7f7d329e | 2512 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
1daf06b9 | 2513 | ac_compiler=`set X $ac_compile; echo $2` |
7f7d329e SP |
2514 | { (ac_try="$ac_compiler --version >&5" |
2515 | case "(($ac_try" in | |
2516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2517 | *) ac_try_echo=$ac_try;; | |
2518 | esac | |
2519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2520 | (eval "$ac_compiler --version >&5") 2>&5 | |
1daf06b9 SP |
2521 | ac_status=$? |
2522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2523 | (exit $ac_status); } | |
7f7d329e SP |
2524 | { (ac_try="$ac_compiler -v >&5" |
2525 | case "(($ac_try" in | |
2526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2527 | *) ac_try_echo=$ac_try;; | |
2528 | esac | |
2529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2530 | (eval "$ac_compiler -v >&5") 2>&5 | |
1daf06b9 SP |
2531 | ac_status=$? |
2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2533 | (exit $ac_status); } | |
7f7d329e SP |
2534 | { (ac_try="$ac_compiler -V >&5" |
2535 | case "(($ac_try" in | |
2536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2537 | *) ac_try_echo=$ac_try;; | |
2538 | esac | |
2539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2540 | (eval "$ac_compiler -V >&5") 2>&5 | |
1daf06b9 SP |
2541 | ac_status=$? |
2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2543 | (exit $ac_status); } | |
2544 | ||
2545 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
2546 | /* confdefs.h. */ |
2547 | _ACEOF | |
2548 | cat confdefs.h >>conftest.$ac_ext | |
2549 | cat >>conftest.$ac_ext <<_ACEOF | |
2550 | /* end confdefs.h. */ | |
ddd2ef55 | 2551 | |
1daf06b9 SP |
2552 | int |
2553 | main () | |
2554 | { | |
2555 | ||
2556 | ; | |
2557 | return 0; | |
2558 | } | |
2559 | _ACEOF | |
2560 | ac_clean_files_save=$ac_clean_files | |
cdfe1392 | 2561 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1daf06b9 SP |
2562 | # Try to create an executable without -o first, disregard a.out. |
2563 | # It will help us diagnose broken compilers, and finding out an intuition | |
2564 | # of exeext. | |
7f7d329e SP |
2565 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2566 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
1daf06b9 | 2567 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
7f7d329e SP |
2568 | # |
2569 | # List of possible output files, starting from the most likely. | |
2570 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2571 | # only as a last resort. b.out is created by i960 compilers. | |
2572 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2573 | # | |
2574 | # The IRIX 6 linker writes into existing files which may not be | |
2575 | # executable, retaining their permissions. Remove them first so a | |
2576 | # subsequent execution test works. | |
2577 | ac_rmfiles= | |
2578 | for ac_file in $ac_files | |
2579 | do | |
2580 | case $ac_file in | |
2581 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2582 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2583 | esac | |
2584 | done | |
2585 | rm -f $ac_rmfiles | |
2586 | ||
2587 | if { (ac_try="$ac_link_default" | |
2588 | case "(($ac_try" in | |
2589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2590 | *) ac_try_echo=$ac_try;; | |
2591 | esac | |
2592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2593 | (eval "$ac_link_default") 2>&5 | |
1daf06b9 SP |
2594 | ac_status=$? |
2595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2596 | (exit $ac_status); }; then | |
7f7d329e SP |
2597 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2598 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2599 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2600 | # so that the user can short-circuit this test for compilers unknown to | |
2601 | # Autoconf. | |
d2816d4c | 2602 | for ac_file in $ac_files '' |
cdfe1392 SP |
2603 | do |
2604 | test -f "$ac_file" || continue | |
1daf06b9 | 2605 | case $ac_file in |
7f7d329e | 2606 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
c9e4e868 | 2607 | ;; |
cdfe1392 | 2608 | [ab].out ) |
c9e4e868 SP |
2609 | # We found the default executable, but exeext='' is most |
2610 | # certainly right. | |
2611 | break;; | |
cdfe1392 | 2612 | *.* ) |
7f7d329e SP |
2613 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2614 | then :; else | |
2615 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2616 | fi | |
2617 | # We set ac_cv_exeext here because the later test for it is not | |
2618 | # safe: cross compilers may not add the suffix if given an `-o' | |
2619 | # argument, so we may need to know it at that point already. | |
2620 | # Even if this section looks crufty: it has the advantage of | |
2621 | # actually working. | |
c9e4e868 | 2622 | break;; |
cdfe1392 | 2623 | * ) |
c9e4e868 | 2624 | break;; |
1daf06b9 SP |
2625 | esac |
2626 | done | |
7f7d329e SP |
2627 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2628 | ||
1daf06b9 | 2629 | else |
d2816d4c SP |
2630 | ac_file='' |
2631 | fi | |
2632 | ||
2633 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2634 | echo "${ECHO_T}$ac_file" >&6; } | |
2635 | if test -z "$ac_file"; then | |
1daf06b9 | 2636 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
2637 | sed 's/^/| /' conftest.$ac_ext >&5 |
2638 | ||
2639 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2640 | See \`config.log' for more details." >&5 | |
2641 | echo "$as_me: error: C compiler cannot create executables | |
2642 | See \`config.log' for more details." >&2;} | |
1daf06b9 SP |
2643 | { (exit 77); exit 77; }; } |
2644 | fi | |
2645 | ||
2646 | ac_exeext=$ac_cv_exeext | |
1daf06b9 | 2647 | |
7f7d329e | 2648 | # Check that the compiler produces executables we can run. If not, either |
1daf06b9 | 2649 | # the compiler is broken, or we cross compile. |
7f7d329e SP |
2650 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2651 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
1daf06b9 SP |
2652 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2653 | # If not cross compiling, check that we can run a simple program. | |
2654 | if test "$cross_compiling" != yes; then | |
2655 | if { ac_try='./$ac_file' | |
7f7d329e SP |
2656 | { (case "(($ac_try" in |
2657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2658 | *) ac_try_echo=$ac_try;; | |
2659 | esac | |
2660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2661 | (eval "$ac_try") 2>&5 | |
1daf06b9 SP |
2662 | ac_status=$? |
2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2664 | (exit $ac_status); }; }; then | |
2665 | cross_compiling=no | |
1227625a | 2666 | else |
1daf06b9 SP |
2667 | if test "$cross_compiling" = maybe; then |
2668 | cross_compiling=yes | |
2669 | else | |
2670 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
cdfe1392 SP |
2671 | If you meant to cross compile, use \`--host'. |
2672 | See \`config.log' for more details." >&5 | |
1daf06b9 | 2673 | echo "$as_me: error: cannot run C compiled programs. |
cdfe1392 SP |
2674 | If you meant to cross compile, use \`--host'. |
2675 | See \`config.log' for more details." >&2;} | |
1daf06b9 SP |
2676 | { (exit 1); exit 1; }; } |
2677 | fi | |
1227625a | 2678 | fi |
1227625a | 2679 | fi |
7f7d329e SP |
2680 | { echo "$as_me:$LINENO: result: yes" >&5 |
2681 | echo "${ECHO_T}yes" >&6; } | |
1daf06b9 | 2682 | |
cdfe1392 | 2683 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1daf06b9 | 2684 | ac_clean_files=$ac_clean_files_save |
7f7d329e | 2685 | # Check that the compiler produces executables we can run. If not, either |
1daf06b9 | 2686 | # the compiler is broken, or we cross compile. |
7f7d329e SP |
2687 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2688 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2689 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2690 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2691 | ||
2692 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2693 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2694 | if { (ac_try="$ac_link" | |
2695 | case "(($ac_try" in | |
2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2697 | *) ac_try_echo=$ac_try;; | |
2698 | esac | |
2699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2700 | (eval "$ac_link") 2>&5 | |
1daf06b9 SP |
2701 | ac_status=$? |
2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2703 | (exit $ac_status); }; then | |
2704 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2705 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2706 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2707 | # `rm'. | |
cdfe1392 SP |
2708 | for ac_file in conftest.exe conftest conftest.*; do |
2709 | test -f "$ac_file" || continue | |
1daf06b9 | 2710 | case $ac_file in |
7f7d329e | 2711 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
1daf06b9 | 2712 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c9e4e868 | 2713 | break;; |
1daf06b9 SP |
2714 | * ) break;; |
2715 | esac | |
2716 | done | |
1227625a | 2717 | else |
cdfe1392 SP |
2718 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2719 | See \`config.log' for more details." >&5 | |
2720 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2721 | See \`config.log' for more details." >&2;} | |
1daf06b9 | 2722 | { (exit 1); exit 1; }; } |
1227625a SP |
2723 | fi |
2724 | ||
1daf06b9 | 2725 | rm -f conftest$ac_cv_exeext |
7f7d329e SP |
2726 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2727 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
1227625a | 2728 | |
1daf06b9 SP |
2729 | rm -f conftest.$ac_ext |
2730 | EXEEXT=$ac_cv_exeext | |
2731 | ac_exeext=$EXEEXT | |
7f7d329e SP |
2732 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2733 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
1daf06b9 SP |
2734 | if test "${ac_cv_objext+set}" = set; then |
2735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ddd2ef55 | 2736 | else |
1daf06b9 | 2737 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
2738 | /* confdefs.h. */ |
2739 | _ACEOF | |
2740 | cat confdefs.h >>conftest.$ac_ext | |
2741 | cat >>conftest.$ac_ext <<_ACEOF | |
2742 | /* end confdefs.h. */ | |
1daf06b9 | 2743 | |
1daf06b9 SP |
2744 | int |
2745 | main () | |
2746 | { | |
2747 | ||
2748 | ; | |
2749 | return 0; | |
2750 | } | |
2751 | _ACEOF | |
2752 | rm -f conftest.o conftest.obj | |
7f7d329e SP |
2753 | if { (ac_try="$ac_compile" |
2754 | case "(($ac_try" in | |
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2756 | *) ac_try_echo=$ac_try;; | |
2757 | esac | |
2758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2759 | (eval "$ac_compile") 2>&5 | |
1daf06b9 SP |
2760 | ac_status=$? |
2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2762 | (exit $ac_status); }; then | |
7f7d329e SP |
2763 | for ac_file in conftest.o conftest.obj conftest.*; do |
2764 | test -f "$ac_file" || continue; | |
1daf06b9 | 2765 | case $ac_file in |
7f7d329e | 2766 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
1daf06b9 SP |
2767 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2768 | break;; | |
2769 | esac | |
2770 | done | |
2771 | else | |
2772 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
2773 | sed 's/^/| /' conftest.$ac_ext >&5 |
2774 | ||
2775 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2776 | See \`config.log' for more details." >&5 | |
2777 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2778 | See \`config.log' for more details." >&2;} | |
1daf06b9 | 2779 | { (exit 1); exit 1; }; } |
ddd2ef55 SP |
2780 | fi |
2781 | ||
1daf06b9 SP |
2782 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2783 | fi | |
7f7d329e SP |
2784 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2785 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
1daf06b9 SP |
2786 | OBJEXT=$ac_cv_objext |
2787 | ac_objext=$OBJEXT | |
7f7d329e SP |
2788 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2789 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
1daf06b9 SP |
2790 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 2792 | else |
1daf06b9 | 2793 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
2794 | /* confdefs.h. */ |
2795 | _ACEOF | |
2796 | cat confdefs.h >>conftest.$ac_ext | |
2797 | cat >>conftest.$ac_ext <<_ACEOF | |
2798 | /* end confdefs.h. */ | |
1daf06b9 | 2799 | |
1daf06b9 SP |
2800 | int |
2801 | main () | |
2802 | { | |
2803 | #ifndef __GNUC__ | |
2804 | choke me | |
2805 | #endif | |
2806 | ||
2807 | ; | |
2808 | return 0; | |
2809 | } | |
2810 | _ACEOF | |
2811 | rm -f conftest.$ac_objext | |
7f7d329e SP |
2812 | if { (ac_try="$ac_compile" |
2813 | case "(($ac_try" in | |
2814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2815 | *) ac_try_echo=$ac_try;; | |
2816 | esac | |
2817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2818 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 2819 | ac_status=$? |
c9e4e868 SP |
2820 | grep -v '^ *+' conftest.er1 >conftest.err |
2821 | rm -f conftest.er1 | |
2822 | cat conftest.err >&5 | |
1daf06b9 | 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
2824 | (exit $ac_status); } && { |
2825 | test -z "$ac_c_werror_flag" || | |
2826 | test ! -s conftest.err | |
2827 | } && test -s conftest.$ac_objext; then | |
1daf06b9 SP |
2828 | ac_compiler_gnu=yes |
2829 | else | |
2830 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
2831 | sed 's/^/| /' conftest.$ac_ext >&5 |
2832 | ||
7f7d329e | 2833 | ac_compiler_gnu=no |
1daf06b9 | 2834 | fi |
7f7d329e SP |
2835 | |
2836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1daf06b9 SP |
2837 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2838 | ||
2839 | fi | |
7f7d329e SP |
2840 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2841 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
1daf06b9 SP |
2842 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2843 | ac_test_CFLAGS=${CFLAGS+set} | |
2844 | ac_save_CFLAGS=$CFLAGS | |
7f7d329e SP |
2845 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2846 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
1daf06b9 SP |
2847 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2849 | else | |
7f7d329e SP |
2850 | ac_save_c_werror_flag=$ac_c_werror_flag |
2851 | ac_c_werror_flag=yes | |
2852 | ac_cv_prog_cc_g=no | |
2853 | CFLAGS="-g" | |
2854 | cat >conftest.$ac_ext <<_ACEOF | |
2855 | /* confdefs.h. */ | |
2856 | _ACEOF | |
2857 | cat confdefs.h >>conftest.$ac_ext | |
2858 | cat >>conftest.$ac_ext <<_ACEOF | |
2859 | /* end confdefs.h. */ | |
2860 | ||
2861 | int | |
2862 | main () | |
2863 | { | |
2864 | ||
2865 | ; | |
2866 | return 0; | |
2867 | } | |
2868 | _ACEOF | |
2869 | rm -f conftest.$ac_objext | |
2870 | if { (ac_try="$ac_compile" | |
2871 | case "(($ac_try" in | |
2872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2873 | *) ac_try_echo=$ac_try;; | |
2874 | esac | |
2875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2876 | (eval "$ac_compile") 2>conftest.er1 | |
2877 | ac_status=$? | |
2878 | grep -v '^ *+' conftest.er1 >conftest.err | |
2879 | rm -f conftest.er1 | |
2880 | cat conftest.err >&5 | |
2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
2882 | (exit $ac_status); } && { |
2883 | test -z "$ac_c_werror_flag" || | |
2884 | test ! -s conftest.err | |
2885 | } && test -s conftest.$ac_objext; then | |
7f7d329e SP |
2886 | ac_cv_prog_cc_g=yes |
2887 | else | |
2888 | echo "$as_me: failed program was:" >&5 | |
2889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2890 | ||
2891 | CFLAGS="" | |
2892 | cat >conftest.$ac_ext <<_ACEOF | |
2893 | /* confdefs.h. */ | |
2894 | _ACEOF | |
2895 | cat confdefs.h >>conftest.$ac_ext | |
2896 | cat >>conftest.$ac_ext <<_ACEOF | |
2897 | /* end confdefs.h. */ | |
2898 | ||
2899 | int | |
2900 | main () | |
2901 | { | |
2902 | ||
2903 | ; | |
2904 | return 0; | |
2905 | } | |
2906 | _ACEOF | |
2907 | rm -f conftest.$ac_objext | |
2908 | if { (ac_try="$ac_compile" | |
2909 | case "(($ac_try" in | |
2910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2911 | *) ac_try_echo=$ac_try;; | |
2912 | esac | |
2913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2914 | (eval "$ac_compile") 2>conftest.er1 | |
2915 | ac_status=$? | |
2916 | grep -v '^ *+' conftest.er1 >conftest.err | |
2917 | rm -f conftest.er1 | |
2918 | cat conftest.err >&5 | |
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
2920 | (exit $ac_status); } && { |
2921 | test -z "$ac_c_werror_flag" || | |
2922 | test ! -s conftest.err | |
2923 | } && test -s conftest.$ac_objext; then | |
7f7d329e SP |
2924 | : |
2925 | else | |
2926 | echo "$as_me: failed program was:" >&5 | |
2927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2928 | ||
2929 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2930 | CFLAGS="-g" | |
2931 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
2932 | /* confdefs.h. */ |
2933 | _ACEOF | |
2934 | cat confdefs.h >>conftest.$ac_ext | |
2935 | cat >>conftest.$ac_ext <<_ACEOF | |
2936 | /* end confdefs.h. */ | |
1daf06b9 | 2937 | |
1daf06b9 SP |
2938 | int |
2939 | main () | |
2940 | { | |
2941 | ||
2942 | ; | |
2943 | return 0; | |
2944 | } | |
2945 | _ACEOF | |
2946 | rm -f conftest.$ac_objext | |
7f7d329e SP |
2947 | if { (ac_try="$ac_compile" |
2948 | case "(($ac_try" in | |
2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2950 | *) ac_try_echo=$ac_try;; | |
2951 | esac | |
2952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2953 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 2954 | ac_status=$? |
c9e4e868 SP |
2955 | grep -v '^ *+' conftest.er1 >conftest.err |
2956 | rm -f conftest.er1 | |
2957 | cat conftest.err >&5 | |
1daf06b9 | 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
2959 | (exit $ac_status); } && { |
2960 | test -z "$ac_c_werror_flag" || | |
2961 | test ! -s conftest.err | |
2962 | } && test -s conftest.$ac_objext; then | |
1227625a SP |
2963 | ac_cv_prog_cc_g=yes |
2964 | else | |
1daf06b9 | 2965 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
2966 | sed 's/^/| /' conftest.$ac_ext >&5 |
2967 | ||
7f7d329e SP |
2968 | |
2969 | fi | |
2970 | ||
2971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2972 | fi | |
2973 | ||
2974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 2975 | fi |
7f7d329e SP |
2976 | |
2977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2978 | ac_c_werror_flag=$ac_save_c_werror_flag | |
1227625a | 2979 | fi |
7f7d329e SP |
2980 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2981 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
ddd2ef55 | 2982 | if test "$ac_test_CFLAGS" = set; then |
1daf06b9 | 2983 | CFLAGS=$ac_save_CFLAGS |
ddd2ef55 SP |
2984 | elif test $ac_cv_prog_cc_g = yes; then |
2985 | if test "$GCC" = yes; then | |
1227625a SP |
2986 | CFLAGS="-g -O2" |
2987 | else | |
ddd2ef55 | 2988 | CFLAGS="-g" |
1227625a SP |
2989 | fi |
2990 | else | |
ddd2ef55 SP |
2991 | if test "$GCC" = yes; then |
2992 | CFLAGS="-O2" | |
2993 | else | |
2994 | CFLAGS= | |
2995 | fi | |
1227625a | 2996 | fi |
7f7d329e SP |
2997 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2998 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2999 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
cdfe1392 SP |
3000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3001 | else | |
7f7d329e | 3002 | ac_cv_prog_cc_c89=no |
cdfe1392 SP |
3003 | ac_save_CC=$CC |
3004 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
3005 | /* confdefs.h. */ |
3006 | _ACEOF | |
3007 | cat confdefs.h >>conftest.$ac_ext | |
3008 | cat >>conftest.$ac_ext <<_ACEOF | |
3009 | /* end confdefs.h. */ | |
3010 | #include <stdarg.h> | |
3011 | #include <stdio.h> | |
3012 | #include <sys/types.h> | |
3013 | #include <sys/stat.h> | |
3014 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3015 | struct buf { int x; }; | |
3016 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3017 | static char *e (p, i) | |
3018 | char **p; | |
3019 | int i; | |
3020 | { | |
3021 | return p[i]; | |
3022 | } | |
3023 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3024 | { | |
3025 | char *s; | |
3026 | va_list v; | |
3027 | va_start (v,p); | |
3028 | s = g (p, va_arg (v,int)); | |
3029 | va_end (v); | |
3030 | return s; | |
3031 | } | |
c9e4e868 SP |
3032 | |
3033 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3034 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3035 | These don't provoke an error unfortunately, instead are silently treated | |
7f7d329e | 3036 | as 'x'. The following induces an error, until -std is added to get |
c9e4e868 SP |
3037 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3038 | array size at least. It's necessary to write '\x00'==0 to get something | |
7f7d329e | 3039 | that's true only with -std. */ |
c9e4e868 SP |
3040 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3041 | ||
7f7d329e SP |
3042 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3043 | inside strings and character constants. */ | |
3044 | #define FOO(x) 'x' | |
3045 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3046 | ||
cdfe1392 SP |
3047 | int test (int i, double x); |
3048 | struct s1 {int (*f) (int a);}; | |
3049 | struct s2 {int (*f) (double a);}; | |
3050 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3051 | int argc; | |
3052 | char **argv; | |
3053 | int | |
3054 | main () | |
3055 | { | |
3056 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3057 | ; | |
3058 | return 0; | |
3059 | } | |
3060 | _ACEOF | |
7f7d329e SP |
3061 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3062 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
cdfe1392 SP |
3063 | do |
3064 | CC="$ac_save_CC $ac_arg" | |
3065 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3066 | if { (ac_try="$ac_compile" |
3067 | case "(($ac_try" in | |
3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3069 | *) ac_try_echo=$ac_try;; | |
3070 | esac | |
3071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3072 | (eval "$ac_compile") 2>conftest.er1 | |
cdfe1392 | 3073 | ac_status=$? |
c9e4e868 SP |
3074 | grep -v '^ *+' conftest.er1 >conftest.err |
3075 | rm -f conftest.er1 | |
3076 | cat conftest.err >&5 | |
cdfe1392 | 3077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3078 | (exit $ac_status); } && { |
3079 | test -z "$ac_c_werror_flag" || | |
3080 | test ! -s conftest.err | |
3081 | } && test -s conftest.$ac_objext; then | |
7f7d329e | 3082 | ac_cv_prog_cc_c89=$ac_arg |
cdfe1392 SP |
3083 | else |
3084 | echo "$as_me: failed program was:" >&5 | |
3085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3086 | ||
7f7d329e | 3087 | |
cdfe1392 | 3088 | fi |
7f7d329e SP |
3089 | |
3090 | rm -f core conftest.err conftest.$ac_objext | |
3091 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
cdfe1392 | 3092 | done |
7f7d329e | 3093 | rm -f conftest.$ac_ext |
cdfe1392 SP |
3094 | CC=$ac_save_CC |
3095 | ||
3096 | fi | |
7f7d329e SP |
3097 | # AC_CACHE_VAL |
3098 | case "x$ac_cv_prog_cc_c89" in | |
3099 | x) | |
3100 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3101 | echo "${ECHO_T}none needed" >&6; } ;; | |
3102 | xno) | |
3103 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3104 | echo "${ECHO_T}unsupported" >&6; } ;; | |
cdfe1392 | 3105 | *) |
7f7d329e SP |
3106 | CC="$CC $ac_cv_prog_cc_c89" |
3107 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3108 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
cdfe1392 SP |
3109 | esac |
3110 | ||
cdfe1392 | 3111 | |
1daf06b9 SP |
3112 | ac_ext=c |
3113 | ac_cpp='$CPP $CPPFLAGS' | |
3114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3117 | ||
3118 | ac_aux_dir= | |
7f7d329e SP |
3119 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3120 | if test -f "$ac_dir/install-sh"; then | |
1daf06b9 SP |
3121 | ac_aux_dir=$ac_dir |
3122 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3123 | break | |
7f7d329e | 3124 | elif test -f "$ac_dir/install.sh"; then |
1daf06b9 SP |
3125 | ac_aux_dir=$ac_dir |
3126 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3127 | break | |
7f7d329e | 3128 | elif test -f "$ac_dir/shtool"; then |
1daf06b9 SP |
3129 | ac_aux_dir=$ac_dir |
3130 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3131 | break | |
3132 | fi | |
3133 | done | |
3134 | if test -z "$ac_aux_dir"; then | |
7f7d329e SP |
3135 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3136 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1daf06b9 SP |
3137 | { (exit 1); exit 1; }; } |
3138 | fi | |
7f7d329e SP |
3139 | |
3140 | # These three variables are undocumented and unsupported, | |
3141 | # and are intended to be withdrawn in a future Autoconf release. | |
3142 | # They can cause serious problems if a builder's source tree is in a directory | |
3143 | # whose full name contains unusual characters. | |
3144 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3145 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3146 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3147 | ||
1227625a SP |
3148 | |
3149 | # Find a good install program. We prefer a C program (faster), | |
3150 | # so one script is as good as another. But avoid the broken or | |
3151 | # incompatible versions: | |
3152 | # SysV /etc/install, /usr/sbin/install | |
3153 | # SunOS /usr/etc/install | |
3154 | # IRIX /sbin/install | |
3155 | # AIX /bin/install | |
1daf06b9 | 3156 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
ddd2ef55 | 3157 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1227625a SP |
3158 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3159 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c9e4e868 | 3160 | # OS/2's system install, which has a completely different semantic |
1227625a | 3161 | # ./install, which can be erroneously created by make from ./install.sh. |
7f7d329e SP |
3162 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3163 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
1227625a | 3164 | if test -z "$INSTALL"; then |
1daf06b9 SP |
3165 | if test "${ac_cv_path_install+set}" = set; then |
3166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3167 | else | |
3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3169 | for as_dir in $PATH | |
3170 | do | |
3171 | IFS=$as_save_IFS | |
3172 | test -z "$as_dir" && as_dir=. | |
3173 | # Account for people who put trailing slashes in PATH elements. | |
3174 | case $as_dir/ in | |
3175 | ./ | .// | /cC/* | \ | |
3176 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
c9e4e868 | 3177 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1daf06b9 SP |
3178 | /usr/ucb/* ) ;; |
3179 | *) | |
3180 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3181 | # Don't use installbsd from OSF since it installs stuff as root | |
3182 | # by default. | |
3183 | for ac_prog in ginstall scoinst install; do | |
3184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 3185 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
c9e4e868 SP |
3186 | if test $ac_prog = install && |
3187 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3188 | # AIX install. It has an incompatible calling convention. | |
3189 | : | |
3190 | elif test $ac_prog = install && | |
3191 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3192 | # program-specific install script used by HP pwplus--don't use. | |
3193 | : | |
3194 | else | |
3195 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3196 | break 3 | |
3197 | fi | |
3198 | fi | |
1daf06b9 SP |
3199 | done |
3200 | done | |
3201 | ;; | |
3202 | esac | |
3203 | done | |
7f7d329e | 3204 | IFS=$as_save_IFS |
1daf06b9 | 3205 | |
1227625a SP |
3206 | |
3207 | fi | |
3208 | if test "${ac_cv_path_install+set}" = set; then | |
1daf06b9 | 3209 | INSTALL=$ac_cv_path_install |
1227625a | 3210 | else |
7f7d329e SP |
3211 | # As a last resort, use the slow shell script. Don't cache a |
3212 | # value for INSTALL within a source directory, because that will | |
1227625a | 3213 | # break other packages using the cache if that directory is |
7f7d329e | 3214 | # removed, or if the value is a relative name. |
1daf06b9 | 3215 | INSTALL=$ac_install_sh |
1227625a SP |
3216 | fi |
3217 | fi | |
7f7d329e SP |
3218 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3219 | echo "${ECHO_T}$INSTALL" >&6; } | |
1227625a SP |
3220 | |
3221 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3222 | # It thinks the first close brace ends the variable substitution. | |
3223 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3224 | ||
1daf06b9 | 3225 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
ddd2ef55 | 3226 | |
1227625a SP |
3227 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3228 | ||
3229 | ||
1227625a | 3230 | |
e7d18957 SP |
3231 | ac_ext=c |
3232 | ac_cpp='$CPP $CPPFLAGS' | |
3233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7f7d329e SP |
3236 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3237 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e7d18957 SP |
3238 | # On Suns, sometimes $CPP names a directory. |
3239 | if test -n "$CPP" && test -d "$CPP"; then | |
3240 | CPP= | |
1227625a | 3241 | fi |
e7d18957 SP |
3242 | if test -z "$CPP"; then |
3243 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 3245 | else |
e7d18957 SP |
3246 | # Double quotes because CPP needs to be expanded |
3247 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3248 | do | |
3249 | ac_preproc_ok=false | |
3250 | for ac_c_preproc_warn_flag in '' yes | |
3251 | do | |
3252 | # Use a header file that comes with gcc, so configuring glibc | |
3253 | # with a fresh cross-compiler works. | |
3254 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3255 | # <limits.h> exists even on freestanding compilers. | |
3256 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3257 | # not just through cpp. "Syntax error" is here to catch this case. | |
3258 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3259 | /* confdefs.h. */ |
3260 | _ACEOF | |
3261 | cat confdefs.h >>conftest.$ac_ext | |
3262 | cat >>conftest.$ac_ext <<_ACEOF | |
3263 | /* end confdefs.h. */ | |
3264 | #ifdef __STDC__ | |
3265 | # include <limits.h> | |
3266 | #else | |
3267 | # include <assert.h> | |
3268 | #endif | |
c9e4e868 | 3269 | Syntax error |
e7d18957 | 3270 | _ACEOF |
7f7d329e SP |
3271 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3272 | case "(($ac_try" in | |
3273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3274 | *) ac_try_echo=$ac_try;; | |
3275 | esac | |
3276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3277 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3278 | ac_status=$? |
3279 | grep -v '^ *+' conftest.er1 >conftest.err | |
3280 | rm -f conftest.er1 | |
3281 | cat conftest.err >&5 | |
3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
3283 | (exit $ac_status); } >/dev/null && { |
3284 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3285 | test ! -s conftest.err | |
3286 | }; then | |
e7d18957 | 3287 | : |
1227625a | 3288 | else |
e7d18957 SP |
3289 | echo "$as_me: failed program was:" >&5 |
3290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1227625a | 3291 | |
e7d18957 SP |
3292 | # Broken: fails on valid input. |
3293 | continue | |
cdfe1392 | 3294 | fi |
7f7d329e | 3295 | |
e7d18957 | 3296 | rm -f conftest.err conftest.$ac_ext |
cdfe1392 | 3297 | |
7f7d329e | 3298 | # OK, works on sane cases. Now check whether nonexistent headers |
e7d18957 SP |
3299 | # can be detected and how. |
3300 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3301 | /* confdefs.h. */ |
3302 | _ACEOF | |
3303 | cat confdefs.h >>conftest.$ac_ext | |
3304 | cat >>conftest.$ac_ext <<_ACEOF | |
3305 | /* end confdefs.h. */ | |
3306 | #include <ac_nonexistent.h> | |
3307 | _ACEOF | |
7f7d329e SP |
3308 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3309 | case "(($ac_try" in | |
3310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3311 | *) ac_try_echo=$ac_try;; | |
3312 | esac | |
3313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3314 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3315 | ac_status=$? |
3316 | grep -v '^ *+' conftest.er1 >conftest.err | |
3317 | rm -f conftest.er1 | |
3318 | cat conftest.err >&5 | |
3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
3320 | (exit $ac_status); } >/dev/null && { |
3321 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3322 | test ! -s conftest.err | |
3323 | }; then | |
e7d18957 SP |
3324 | # Broken: success on invalid input. |
3325 | continue | |
c38e5b6a | 3326 | else |
e7d18957 SP |
3327 | echo "$as_me: failed program was:" >&5 |
3328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c38e5b6a | 3329 | |
e7d18957 SP |
3330 | # Passes both tests. |
3331 | ac_preproc_ok=: | |
3332 | break | |
c38e5b6a | 3333 | fi |
7f7d329e | 3334 | |
e7d18957 | 3335 | rm -f conftest.err conftest.$ac_ext |
c38e5b6a | 3336 | |
e7d18957 SP |
3337 | done |
3338 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3339 | rm -f conftest.err conftest.$ac_ext | |
3340 | if $ac_preproc_ok; then | |
3341 | break | |
d8574d45 SP |
3342 | fi |
3343 | ||
e7d18957 SP |
3344 | done |
3345 | ac_cv_prog_CPP=$CPP | |
d6967896 SP |
3346 | |
3347 | fi | |
e7d18957 | 3348 | CPP=$ac_cv_prog_CPP |
d6967896 | 3349 | else |
e7d18957 SP |
3350 | ac_cv_prog_CPP=$CPP |
3351 | fi | |
7f7d329e SP |
3352 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3353 | echo "${ECHO_T}$CPP" >&6; } | |
e7d18957 SP |
3354 | ac_preproc_ok=false |
3355 | for ac_c_preproc_warn_flag in '' yes | |
3356 | do | |
3357 | # Use a header file that comes with gcc, so configuring glibc | |
3358 | # with a fresh cross-compiler works. | |
3359 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3360 | # <limits.h> exists even on freestanding compilers. | |
3361 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3362 | # not just through cpp. "Syntax error" is here to catch this case. | |
3363 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3364 | /* confdefs.h. */ |
3365 | _ACEOF | |
3366 | cat confdefs.h >>conftest.$ac_ext | |
3367 | cat >>conftest.$ac_ext <<_ACEOF | |
3368 | /* end confdefs.h. */ | |
3369 | #ifdef __STDC__ | |
3370 | # include <limits.h> | |
3371 | #else | |
3372 | # include <assert.h> | |
3373 | #endif | |
c9e4e868 | 3374 | Syntax error |
e7d18957 | 3375 | _ACEOF |
7f7d329e SP |
3376 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3377 | case "(($ac_try" in | |
3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3379 | *) ac_try_echo=$ac_try;; | |
3380 | esac | |
3381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3383 | ac_status=$? |
3384 | grep -v '^ *+' conftest.er1 >conftest.err | |
3385 | rm -f conftest.er1 | |
3386 | cat conftest.err >&5 | |
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
3388 | (exit $ac_status); } >/dev/null && { |
3389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3390 | test ! -s conftest.err | |
3391 | }; then | |
e7d18957 SP |
3392 | : |
3393 | else | |
3394 | echo "$as_me: failed program was:" >&5 | |
3395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3396 | ||
3397 | # Broken: fails on valid input. | |
3398 | continue | |
3399 | fi | |
7f7d329e | 3400 | |
e7d18957 SP |
3401 | rm -f conftest.err conftest.$ac_ext |
3402 | ||
7f7d329e | 3403 | # OK, works on sane cases. Now check whether nonexistent headers |
e7d18957 SP |
3404 | # can be detected and how. |
3405 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3406 | /* confdefs.h. */ |
3407 | _ACEOF | |
3408 | cat confdefs.h >>conftest.$ac_ext | |
3409 | cat >>conftest.$ac_ext <<_ACEOF | |
3410 | /* end confdefs.h. */ | |
3411 | #include <ac_nonexistent.h> | |
3412 | _ACEOF | |
7f7d329e SP |
3413 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3414 | case "(($ac_try" in | |
3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3416 | *) ac_try_echo=$ac_try;; | |
3417 | esac | |
3418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3420 | ac_status=$? |
3421 | grep -v '^ *+' conftest.er1 >conftest.err | |
3422 | rm -f conftest.er1 | |
3423 | cat conftest.err >&5 | |
3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
3425 | (exit $ac_status); } >/dev/null && { |
3426 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3427 | test ! -s conftest.err | |
3428 | }; then | |
e7d18957 SP |
3429 | # Broken: success on invalid input. |
3430 | continue | |
3431 | else | |
3432 | echo "$as_me: failed program was:" >&5 | |
3433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3434 | ||
3435 | # Passes both tests. | |
3436 | ac_preproc_ok=: | |
3437 | break | |
3438 | fi | |
7f7d329e | 3439 | |
e7d18957 SP |
3440 | rm -f conftest.err conftest.$ac_ext |
3441 | ||
3442 | done | |
3443 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3444 | rm -f conftest.err conftest.$ac_ext | |
3445 | if $ac_preproc_ok; then | |
3446 | : | |
3447 | else | |
3448 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3449 | See \`config.log' for more details." >&5 | |
3450 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3451 | See \`config.log' for more details." >&2;} | |
3452 | { (exit 1); exit 1; }; } | |
3453 | fi | |
3454 | ||
3455 | ac_ext=c | |
3456 | ac_cpp='$CPP $CPPFLAGS' | |
3457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3460 | ||
3461 | ||
7f7d329e SP |
3462 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3463 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3464 | if test "${ac_cv_path_GREP+set}" = set; then | |
3465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3466 | else | |
3467 | # Extract the first word of "grep ggrep" to use in msg output | |
3468 | if test -z "$GREP"; then | |
3469 | set dummy grep ggrep; ac_prog_name=$2 | |
3470 | if test "${ac_cv_path_GREP+set}" = set; then | |
3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3472 | else | |
3473 | ac_path_GREP_found=false | |
3474 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3476 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3477 | do | |
3478 | IFS=$as_save_IFS | |
3479 | test -z "$as_dir" && as_dir=. | |
3480 | for ac_prog in grep ggrep; do | |
3481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3482 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d2816d4c | 3483 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
7f7d329e SP |
3484 | # Check for GNU ac_path_GREP and select it if it is found. |
3485 | # Check for GNU $ac_path_GREP | |
3486 | case `"$ac_path_GREP" --version 2>&1` in | |
3487 | *GNU*) | |
3488 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3489 | *) | |
3490 | ac_count=0 | |
3491 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3492 | while : | |
3493 | do | |
3494 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3495 | mv "conftest.tmp" "conftest.in" | |
3496 | cp "conftest.in" "conftest.nl" | |
3497 | echo 'GREP' >> "conftest.nl" | |
3498 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3499 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3500 | ac_count=`expr $ac_count + 1` | |
3501 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3502 | # Best one so far, save it but keep looking for a better one | |
3503 | ac_cv_path_GREP="$ac_path_GREP" | |
3504 | ac_path_GREP_max=$ac_count | |
3505 | fi | |
3506 | # 10*(2^10) chars as input seems more than enough | |
3507 | test $ac_count -gt 10 && break | |
3508 | done | |
3509 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3510 | esac | |
3511 | ||
3512 | ||
3513 | $ac_path_GREP_found && break 3 | |
3514 | done | |
3515 | done | |
3516 | ||
3517 | done | |
3518 | IFS=$as_save_IFS | |
3519 | ||
3520 | ||
3521 | fi | |
3522 | ||
3523 | GREP="$ac_cv_path_GREP" | |
3524 | if test -z "$GREP"; then | |
3525 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3526 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3527 | { (exit 1); exit 1; }; } | |
3528 | fi | |
3529 | ||
3530 | else | |
3531 | ac_cv_path_GREP=$GREP | |
3532 | fi | |
3533 | ||
3534 | ||
3535 | fi | |
3536 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3537 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3538 | GREP="$ac_cv_path_GREP" | |
3539 | ||
3540 | ||
3541 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3542 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3543 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3545 | else | |
3546 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3547 | then ac_cv_path_EGREP="$GREP -E" | |
3548 | else | |
3549 | # Extract the first word of "egrep" to use in msg output | |
3550 | if test -z "$EGREP"; then | |
3551 | set dummy egrep; ac_prog_name=$2 | |
3552 | if test "${ac_cv_path_EGREP+set}" = set; then | |
e7d18957 SP |
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3554 | else | |
7f7d329e SP |
3555 | ac_path_EGREP_found=false |
3556 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3558 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3559 | do | |
3560 | IFS=$as_save_IFS | |
3561 | test -z "$as_dir" && as_dir=. | |
3562 | for ac_prog in egrep; do | |
3563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3564 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d2816d4c | 3565 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
7f7d329e SP |
3566 | # Check for GNU ac_path_EGREP and select it if it is found. |
3567 | # Check for GNU $ac_path_EGREP | |
3568 | case `"$ac_path_EGREP" --version 2>&1` in | |
3569 | *GNU*) | |
3570 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3571 | *) | |
3572 | ac_count=0 | |
3573 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3574 | while : | |
3575 | do | |
3576 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3577 | mv "conftest.tmp" "conftest.in" | |
3578 | cp "conftest.in" "conftest.nl" | |
3579 | echo 'EGREP' >> "conftest.nl" | |
3580 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3581 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3582 | ac_count=`expr $ac_count + 1` | |
3583 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3584 | # Best one so far, save it but keep looking for a better one | |
3585 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3586 | ac_path_EGREP_max=$ac_count | |
e7d18957 | 3587 | fi |
7f7d329e SP |
3588 | # 10*(2^10) chars as input seems more than enough |
3589 | test $ac_count -gt 10 && break | |
3590 | done | |
3591 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3592 | esac | |
3593 | ||
3594 | ||
3595 | $ac_path_EGREP_found && break 3 | |
3596 | done | |
3597 | done | |
3598 | ||
3599 | done | |
3600 | IFS=$as_save_IFS | |
3601 | ||
3602 | ||
e7d18957 | 3603 | fi |
e7d18957 | 3604 | |
7f7d329e SP |
3605 | EGREP="$ac_cv_path_EGREP" |
3606 | if test -z "$EGREP"; then | |
3607 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3608 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3609 | { (exit 1); exit 1; }; } | |
3610 | fi | |
3611 | ||
3612 | else | |
3613 | ac_cv_path_EGREP=$EGREP | |
3614 | fi | |
3615 | ||
3616 | ||
3617 | fi | |
3618 | fi | |
3619 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3620 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3621 | EGREP="$ac_cv_path_EGREP" | |
e7d18957 | 3622 | |
7f7d329e SP |
3623 | |
3624 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3625 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
e7d18957 SP |
3626 | if test "${ac_cv_header_stdc+set}" = set; then |
3627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3628 | else | |
3629 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3630 | /* confdefs.h. */ |
3631 | _ACEOF | |
3632 | cat confdefs.h >>conftest.$ac_ext | |
3633 | cat >>conftest.$ac_ext <<_ACEOF | |
3634 | /* end confdefs.h. */ | |
3635 | #include <stdlib.h> | |
3636 | #include <stdarg.h> | |
3637 | #include <string.h> | |
3638 | #include <float.h> | |
3639 | ||
3640 | int | |
3641 | main () | |
3642 | { | |
3643 | ||
3644 | ; | |
3645 | return 0; | |
3646 | } | |
3647 | _ACEOF | |
3648 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3649 | if { (ac_try="$ac_compile" |
3650 | case "(($ac_try" in | |
3651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3652 | *) ac_try_echo=$ac_try;; | |
3653 | esac | |
3654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3655 | (eval "$ac_compile") 2>conftest.er1 | |
e7d18957 | 3656 | ac_status=$? |
c9e4e868 SP |
3657 | grep -v '^ *+' conftest.er1 >conftest.err |
3658 | rm -f conftest.er1 | |
3659 | cat conftest.err >&5 | |
e7d18957 | 3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3661 | (exit $ac_status); } && { |
3662 | test -z "$ac_c_werror_flag" || | |
3663 | test ! -s conftest.err | |
3664 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
3665 | ac_cv_header_stdc=yes |
3666 | else | |
3667 | echo "$as_me: failed program was:" >&5 | |
3668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3669 | ||
7f7d329e | 3670 | ac_cv_header_stdc=no |
e7d18957 | 3671 | fi |
7f7d329e SP |
3672 | |
3673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e7d18957 SP |
3674 | |
3675 | if test $ac_cv_header_stdc = yes; then | |
3676 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3677 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3678 | /* confdefs.h. */ |
3679 | _ACEOF | |
3680 | cat confdefs.h >>conftest.$ac_ext | |
3681 | cat >>conftest.$ac_ext <<_ACEOF | |
3682 | /* end confdefs.h. */ | |
3683 | #include <string.h> | |
3684 | ||
3685 | _ACEOF | |
3686 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3687 | $EGREP "memchr" >/dev/null 2>&1; then | |
3688 | : | |
3689 | else | |
3690 | ac_cv_header_stdc=no | |
3691 | fi | |
3692 | rm -f conftest* | |
3693 | ||
3694 | fi | |
3695 | ||
3696 | if test $ac_cv_header_stdc = yes; then | |
3697 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3698 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3699 | /* confdefs.h. */ |
3700 | _ACEOF | |
3701 | cat confdefs.h >>conftest.$ac_ext | |
3702 | cat >>conftest.$ac_ext <<_ACEOF | |
3703 | /* end confdefs.h. */ | |
3704 | #include <stdlib.h> | |
3705 | ||
3706 | _ACEOF | |
3707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3708 | $EGREP "free" >/dev/null 2>&1; then | |
3709 | : | |
3710 | else | |
3711 | ac_cv_header_stdc=no | |
3712 | fi | |
3713 | rm -f conftest* | |
3714 | ||
3715 | fi | |
3716 | ||
3717 | if test $ac_cv_header_stdc = yes; then | |
3718 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3719 | if test "$cross_compiling" = yes; then | |
3720 | : | |
3721 | else | |
3722 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3723 | /* confdefs.h. */ |
3724 | _ACEOF | |
3725 | cat confdefs.h >>conftest.$ac_ext | |
3726 | cat >>conftest.$ac_ext <<_ACEOF | |
3727 | /* end confdefs.h. */ | |
3728 | #include <ctype.h> | |
7f7d329e | 3729 | #include <stdlib.h> |
e7d18957 SP |
3730 | #if ((' ' & 0x0FF) == 0x020) |
3731 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3732 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3733 | #else | |
3734 | # define ISLOWER(c) \ | |
c9e4e868 SP |
3735 | (('a' <= (c) && (c) <= 'i') \ |
3736 | || ('j' <= (c) && (c) <= 'r') \ | |
3737 | || ('s' <= (c) && (c) <= 'z')) | |
e7d18957 SP |
3738 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3739 | #endif | |
3740 | ||
3741 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3742 | int | |
3743 | main () | |
3744 | { | |
3745 | int i; | |
3746 | for (i = 0; i < 256; i++) | |
3747 | if (XOR (islower (i), ISLOWER (i)) | |
c9e4e868 | 3748 | || toupper (i) != TOUPPER (i)) |
7f7d329e SP |
3749 | return 2; |
3750 | return 0; | |
e7d18957 SP |
3751 | } |
3752 | _ACEOF | |
3753 | rm -f conftest$ac_exeext | |
7f7d329e SP |
3754 | if { (ac_try="$ac_link" |
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_link") 2>&5 | |
e7d18957 SP |
3761 | ac_status=$? |
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3763 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7f7d329e SP |
3764 | { (case "(($ac_try" in |
3765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3766 | *) ac_try_echo=$ac_try;; | |
3767 | esac | |
3768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3769 | (eval "$ac_try") 2>&5 | |
e7d18957 SP |
3770 | ac_status=$? |
3771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3772 | (exit $ac_status); }; }; then | |
3773 | : | |
3774 | else | |
3775 | echo "$as_me: program exited with status $ac_status" >&5 | |
3776 | echo "$as_me: failed program was:" >&5 | |
3777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3778 | ||
3779 | ( exit $ac_status ) | |
3780 | ac_cv_header_stdc=no | |
3781 | fi | |
7f7d329e | 3782 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e7d18957 | 3783 | fi |
7f7d329e SP |
3784 | |
3785 | ||
e7d18957 SP |
3786 | fi |
3787 | fi | |
7f7d329e SP |
3788 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3789 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
e7d18957 SP |
3790 | if test $ac_cv_header_stdc = yes; then |
3791 | ||
3792 | cat >>confdefs.h <<\_ACEOF | |
3793 | #define STDC_HEADERS 1 | |
3794 | _ACEOF | |
3795 | ||
3796 | fi | |
3797 | ||
3798 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3799 | ||
3800 | ||
3801 | ||
3802 | ||
3803 | ||
3804 | ||
3805 | ||
3806 | ||
3807 | ||
3808 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
c9e4e868 | 3809 | inttypes.h stdint.h unistd.h |
e7d18957 SP |
3810 | do |
3811 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7f7d329e SP |
3812 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3814 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e7d18957 SP |
3815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3816 | else | |
3817 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3818 | /* confdefs.h. */ |
3819 | _ACEOF | |
3820 | cat confdefs.h >>conftest.$ac_ext | |
3821 | cat >>conftest.$ac_ext <<_ACEOF | |
3822 | /* end confdefs.h. */ | |
3823 | $ac_includes_default | |
3824 | ||
3825 | #include <$ac_header> | |
3826 | _ACEOF | |
3827 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3828 | if { (ac_try="$ac_compile" |
3829 | case "(($ac_try" in | |
3830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3831 | *) ac_try_echo=$ac_try;; | |
3832 | esac | |
3833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3834 | (eval "$ac_compile") 2>conftest.er1 | |
e7d18957 | 3835 | ac_status=$? |
c9e4e868 SP |
3836 | grep -v '^ *+' conftest.er1 >conftest.err |
3837 | rm -f conftest.er1 | |
3838 | cat conftest.err >&5 | |
e7d18957 | 3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3840 | (exit $ac_status); } && { |
3841 | test -z "$ac_c_werror_flag" || | |
3842 | test ! -s conftest.err | |
3843 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
3844 | eval "$as_ac_Header=yes" |
3845 | else | |
3846 | echo "$as_me: failed program was:" >&5 | |
3847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3848 | ||
7f7d329e | 3849 | eval "$as_ac_Header=no" |
e7d18957 | 3850 | fi |
7f7d329e SP |
3851 | |
3852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e7d18957 | 3853 | fi |
7f7d329e SP |
3854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3856 | echo "${ECHO_T}$ac_res" >&6; } | |
e7d18957 SP |
3857 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3858 | cat >>confdefs.h <<_ACEOF | |
3859 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3860 | _ACEOF | |
3861 | ||
3862 | fi | |
3863 | ||
3864 | done | |
3865 | ||
3866 | ||
3867 | ||
3868 | for ac_header in sys/types.h | |
3869 | do | |
3870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7f7d329e SP |
3871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
3872 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e7d18957 SP |
3875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3876 | fi | |
7f7d329e SP |
3877 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3879 | echo "${ECHO_T}$ac_res" >&6; } | |
e7d18957 SP |
3880 | else |
3881 | # Is the header compilable? | |
7f7d329e SP |
3882 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3883 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
e7d18957 | 3884 | cat >conftest.$ac_ext <<_ACEOF |
e7d18957 SP |
3885 | /* confdefs.h. */ |
3886 | _ACEOF | |
3887 | cat confdefs.h >>conftest.$ac_ext | |
3888 | cat >>conftest.$ac_ext <<_ACEOF | |
3889 | /* end confdefs.h. */ | |
3890 | $ac_includes_default | |
3891 | #include <$ac_header> | |
3892 | _ACEOF | |
3893 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3894 | if { (ac_try="$ac_compile" |
3895 | case "(($ac_try" in | |
3896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3897 | *) ac_try_echo=$ac_try;; | |
3898 | esac | |
3899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3900 | (eval "$ac_compile") 2>conftest.er1 | |
e7d18957 | 3901 | ac_status=$? |
c9e4e868 SP |
3902 | grep -v '^ *+' conftest.er1 >conftest.err |
3903 | rm -f conftest.er1 | |
3904 | cat conftest.err >&5 | |
e7d18957 | 3905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3906 | (exit $ac_status); } && { |
3907 | test -z "$ac_c_werror_flag" || | |
3908 | test ! -s conftest.err | |
3909 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
3910 | ac_header_compiler=yes |
3911 | else | |
3912 | echo "$as_me: failed program was:" >&5 | |
3913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3914 | ||
7f7d329e | 3915 | ac_header_compiler=no |
e7d18957 | 3916 | fi |
7f7d329e SP |
3917 | |
3918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3919 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3920 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
e7d18957 SP |
3921 | |
3922 | # Is the header present? | |
7f7d329e SP |
3923 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
e7d18957 | 3925 | cat >conftest.$ac_ext <<_ACEOF |
e7d18957 SP |
3926 | /* confdefs.h. */ |
3927 | _ACEOF | |
3928 | cat confdefs.h >>conftest.$ac_ext | |
3929 | cat >>conftest.$ac_ext <<_ACEOF | |
3930 | /* end confdefs.h. */ | |
3931 | #include <$ac_header> | |
3932 | _ACEOF | |
7f7d329e SP |
3933 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3934 | case "(($ac_try" in | |
3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3936 | *) ac_try_echo=$ac_try;; | |
3937 | esac | |
3938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3939 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e7d18957 SP |
3940 | ac_status=$? |
3941 | grep -v '^ *+' conftest.er1 >conftest.err | |
3942 | rm -f conftest.er1 | |
3943 | cat conftest.err >&5 | |
3944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
3945 | (exit $ac_status); } >/dev/null && { |
3946 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3947 | test ! -s conftest.err | |
3948 | }; then | |
e7d18957 SP |
3949 | ac_header_preproc=yes |
3950 | else | |
3951 | echo "$as_me: failed program was:" >&5 | |
3952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3953 | ||
3954 | ac_header_preproc=no | |
3955 | fi | |
7f7d329e | 3956 | |
e7d18957 | 3957 | rm -f conftest.err conftest.$ac_ext |
7f7d329e SP |
3958 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3959 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
e7d18957 SP |
3960 | |
3961 | # So? What about this header? | |
c9e4e868 SP |
3962 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3963 | yes:no: ) | |
e7d18957 SP |
3964 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3965 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c9e4e868 SP |
3966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3967 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3968 | ac_header_preproc=yes | |
e7d18957 | 3969 | ;; |
c9e4e868 | 3970 | no:yes:* ) |
e7d18957 SP |
3971 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3972 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c9e4e868 SP |
3973 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3974 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3975 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3976 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3977 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3978 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e7d18957 SP |
3979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3980 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
c9e4e868 SP |
3981 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3982 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7f7d329e | 3983 | |
e7d18957 SP |
3984 | ;; |
3985 | esac | |
7f7d329e SP |
3986 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e7d18957 SP |
3989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3990 | else | |
c9e4e868 | 3991 | eval "$as_ac_Header=\$ac_header_preproc" |
e7d18957 | 3992 | fi |
7f7d329e SP |
3993 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3994 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3995 | echo "${ECHO_T}$ac_res" >&6; } | |
e7d18957 SP |
3996 | |
3997 | fi | |
3998 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3999 | cat >>confdefs.h <<_ACEOF | |
4000 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4001 | _ACEOF | |
4002 | ||
4003 | fi | |
4004 | ||
4005 | done | |
4006 | ||
4007 | ||
4008 | CPPFLAGS="-D_BSD_SOURCE -D_USE_BSD_SIGNAL ${CPPFLAGS}" | |
4009 | ||
7f7d329e | 4010 | # Check whether --enable-debug was given. |
e7d18957 | 4011 | if test "${enable_debug+set}" = set; then |
7f7d329e | 4012 | enableval=$enable_debug; if test "$enableval" = "no" |
e7d18957 SP |
4013 | then |
4014 | DUMPDEBUG="" | |
4015 | RESTOREDEBUG="" | |
4016 | echo "Not including debugging code" | |
4017 | else | |
4018 | DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG" | |
4019 | RESTOREDEBUG="-DDIRDEBUG" | |
4020 | echo "Including debugging code" | |
4021 | fi | |
4022 | else | |
4023 | DUMPDEBUG="" | |
4024 | RESTOREDEBUG="" | |
4025 | echo "Not including debugging code by default" | |
4026 | ||
7f7d329e SP |
4027 | fi |
4028 | ||
e7d18957 SP |
4029 | |
4030 | ||
4031 | ||
7f7d329e | 4032 | # Check whether --enable-static was given. |
e7d18957 | 4033 | if test "${enable_static+set}" = set; then |
7f7d329e | 4034 | enableval=$enable_static; if test "$enableval" = "no" |
e7d18957 SP |
4035 | then |
4036 | STATIC="" | |
4037 | echo "Linking dump and restore dynamically" | |
4038 | else | |
4039 | STATIC="-static" | |
4040 | echo "Linking dump and restore statically" | |
4041 | fi | |
4042 | ||
4043 | else | |
4044 | STATIC="" | |
4045 | echo "Linking dump and restore dynamically by default" | |
4046 | ||
7f7d329e SP |
4047 | fi |
4048 | ||
e7d18957 SP |
4049 | |
4050 | ||
7f7d329e | 4051 | # Check whether --enable-staticz was given. |
d7783603 | 4052 | if test "${enable_staticz+set}" = set; then |
7f7d329e | 4053 | enableval=$enable_staticz; if test "$enableval" = "no" |
d7783603 SP |
4054 | then |
4055 | STATICZ="no" | |
4056 | echo "Linking libz and libbz2 dynamically" | |
4057 | else | |
4058 | STATICZ="yes" | |
4059 | echo "Linking libz and libbz2 statically" | |
4060 | fi | |
4061 | ||
4062 | else | |
4063 | STATICZ="no" | |
4064 | echo "Linking libz and libbz2 dynamically by default" | |
4065 | ||
7f7d329e SP |
4066 | fi |
4067 | ||
d7783603 | 4068 | |
7f7d329e | 4069 | # Check whether --enable-rmt was given. |
e7d18957 | 4070 | if test "${enable_rmt+set}" = set; then |
7f7d329e | 4071 | enableval=$enable_rmt; if test "$enableval" = "no" |
e7d18957 SP |
4072 | then |
4073 | RMTDIR="" | |
4074 | RMTMAKEFILE="" | |
4075 | echo "Not compiling rmt" | |
4076 | else | |
4077 | RMTDIR="rmt" | |
4078 | RMTMAKEFILE="rmt/Makefile" | |
4079 | echo "Compiling rmt" | |
4080 | fi | |
4081 | ||
4082 | else | |
4083 | RMTDIR="rmt" | |
4084 | RMTMAKEFILE="rmt/Makefile" | |
4085 | echo "Compiling rmt by default" | |
4086 | ||
7f7d329e SP |
4087 | fi |
4088 | ||
e7d18957 SP |
4089 | |
4090 | ||
7f7d329e | 4091 | # Check whether --enable-ermt was given. |
e7d18957 | 4092 | if test "${enable_ermt+set}" = set; then |
7f7d329e | 4093 | enableval=$enable_ermt; if test "$enableval" = "no" |
e7d18957 SP |
4094 | then |
4095 | ERMT="" | |
4096 | CRYPTO="" | |
4097 | echo "Not compiling ermt" | |
4098 | else | |
4099 | if test "$RMTDIR" = "" | |
4100 | then | |
4101 | { { echo "$as_me:$LINENO: error: ermt requires --enable-rmt" >&5 | |
4102 | echo "$as_me: error: ermt requires --enable-rmt" >&2;} | |
4103 | { (exit 1); exit 1; }; } | |
4104 | fi | |
4105 | ERMT="ermt" | |
4106 | CRYPTO="-lcrypto" | |
4107 | echo "Compiling ermt" | |
4108 | fi | |
4109 | ||
4110 | else | |
4111 | ERMT="" | |
4112 | CRYPTO="" | |
4113 | echo "Not compiling ermt by default" | |
4114 | ||
7f7d329e SP |
4115 | fi |
4116 | ||
e7d18957 SP |
4117 | |
4118 | ||
4119 | ||
7f7d329e | 4120 | # Check whether --enable-kerberos was given. |
e7d18957 | 4121 | if test "${enable_kerberos+set}" = set; then |
7f7d329e | 4122 | enableval=$enable_kerberos; if test "$enableval" = "yes" |
e7d18957 SP |
4123 | then |
4124 | OPTDEFS="-DKERBEROS" | |
4125 | echo "Compiling kerberos extensions" | |
4126 | else | |
4127 | OPTDEFS="" | |
4128 | echo "Not compiling kerberos extensions" | |
4129 | fi | |
4130 | ||
4131 | else | |
4132 | OPTDEFS="" | |
4133 | echo "Not compiling kerberos extensions by default" | |
4134 | ||
7f7d329e SP |
4135 | fi |
4136 | ||
e7d18957 SP |
4137 | |
4138 | ||
7f7d329e | 4139 | # Check whether --enable-readline was given. |
e7d18957 | 4140 | if test "${enable_readline+set}" = set; then |
7f7d329e | 4141 | enableval=$enable_readline; if test "$enableval" = "no" |
e7d18957 SP |
4142 | then |
4143 | READLINE="" | |
4144 | echo "Not including readline support" | |
4145 | else | |
0556ca22 | 4146 | READLINE="yes" |
e7d18957 SP |
4147 | |
4148 | cat >>confdefs.h <<\_ACEOF | |
4149 | #define HAVE_READLINE 1 | |
4150 | _ACEOF | |
4151 | ||
4152 | echo "Including readline support" | |
4153 | fi | |
4154 | ||
4155 | else | |
0556ca22 | 4156 | READLINE="yes" |
e7d18957 SP |
4157 | |
4158 | cat >>confdefs.h <<\_ACEOF | |
4159 | #define HAVE_READLINE 1 | |
4160 | _ACEOF | |
4161 | ||
4162 | echo "Including readline support by default" | |
4163 | ||
7f7d329e SP |
4164 | fi |
4165 | ||
e7d18957 | 4166 | |
7f7d329e | 4167 | # Check whether --enable-oldstylefscript was given. |
e7d18957 | 4168 | if test "${enable_oldstylefscript+set}" = set; then |
7f7d329e | 4169 | enableval=$enable_oldstylefscript; if test "$enableval" = "yes" |
e7d18957 SP |
4170 | then |
4171 | ||
4172 | cat >>confdefs.h <<\_ACEOF | |
4173 | #define OLD_STYLE_FSCRIPT 1 | |
4174 | _ACEOF | |
4175 | ||
4176 | echo "Using old style F script" | |
4177 | else | |
4178 | echo "Using new style F script" | |
4179 | fi | |
4180 | ||
4181 | else | |
4182 | echo "Using new style F script by default" | |
4183 | ||
7f7d329e SP |
4184 | fi |
4185 | ||
e7d18957 | 4186 | |
7f7d329e | 4187 | # Check whether --enable-largefile was given. |
e7d18957 | 4188 | if test "${enable_largefile+set}" = set; then |
7f7d329e | 4189 | enableval=$enable_largefile; if test "$enableval" = "yes" |
e7d18957 SP |
4190 | then |
4191 | ||
4192 | cat >>confdefs.h <<\_ACEOF | |
4193 | #define USE_LFS 1 | |
4194 | _ACEOF | |
4195 | ||
4196 | echo "Enabling Large File System support" | |
4197 | else | |
4198 | echo "Not enabling Large File System support" | |
4199 | fi | |
4200 | ||
4201 | else | |
4202 | ||
4203 | cat >>confdefs.h <<\_ACEOF | |
4204 | #define USE_LFS 1 | |
4205 | _ACEOF | |
4206 | ||
4207 | echo "Enabling Large File System support by default" | |
d6967896 | 4208 | |
7f7d329e SP |
4209 | fi |
4210 | ||
d6967896 | 4211 | |
7f7d329e | 4212 | # Check whether --enable-qfa was given. |
35b24fb7 | 4213 | if test "${enable_qfa+set}" = set; then |
7f7d329e | 4214 | enableval=$enable_qfa; if test "$enableval" = "yes" |
35b24fb7 | 4215 | then |
e7d18957 SP |
4216 | |
4217 | cat >>confdefs.h <<\_ACEOF | |
35b24fb7 | 4218 | #define USE_QFA 1 |
1daf06b9 | 4219 | _ACEOF |
35b24fb7 | 4220 | |
1daf06b9 SP |
4221 | echo "Enabling Quick File Access support" |
4222 | else | |
4223 | echo "Not enabling Quick File Access support" | |
35b24fb7 SP |
4224 | fi |
4225 | ||
4226 | else | |
e7d18957 SP |
4227 | |
4228 | cat >>confdefs.h <<\_ACEOF | |
1daf06b9 SP |
4229 | #define USE_QFA 1 |
4230 | _ACEOF | |
35b24fb7 | 4231 | |
1daf06b9 | 4232 | echo "Enabling Quick File Access support by default" |
35b24fb7 | 4233 | |
7f7d329e SP |
4234 | fi |
4235 | ||
35b24fb7 | 4236 | |
7f7d329e | 4237 | # Check whether --enable-qfadebug was given. |
35b24fb7 | 4238 | if test "${enable_qfadebug+set}" = set; then |
7f7d329e | 4239 | enableval=$enable_qfadebug; if test "$enableval" = "yes" |
35b24fb7 | 4240 | then |
e7d18957 SP |
4241 | |
4242 | cat >>confdefs.h <<\_ACEOF | |
35b24fb7 | 4243 | #define DEBUG_QFA 1 |
1daf06b9 | 4244 | _ACEOF |
35b24fb7 | 4245 | |
1daf06b9 SP |
4246 | echo "Including Quick File Access debugging code" |
4247 | else | |
4248 | echo "Not including Quick File Access debugging code" | |
35b24fb7 SP |
4249 | fi |
4250 | ||
4251 | else | |
1daf06b9 | 4252 | echo "Not including Quick File Access debugging code by default" |
35b24fb7 | 4253 | |
7f7d329e SP |
4254 | fi |
4255 | ||
35b24fb7 | 4256 | |
7f7d329e | 4257 | # Check whether --enable-macosx was given. |
d1925e0c | 4258 | if test "${enable_macosx+set}" = set; then |
7f7d329e | 4259 | enableval=$enable_macosx; if test "$enableval" = "yes" |
d1925e0c SP |
4260 | then |
4261 | ||
4262 | cat >>confdefs.h <<\_ACEOF | |
4263 | #define DUMP_MACOSX 1 | |
4264 | _ACEOF | |
4265 | ||
4266 | echo "Including Mac OSX restore compatibility code" | |
4267 | else | |
4268 | echo "Not including Mac OSX restore compatibility code" | |
4269 | fi | |
4270 | ||
4271 | else | |
4272 | echo "Not including Mac OSX restore compatibility code by default" | |
4273 | ||
7f7d329e SP |
4274 | fi |
4275 | ||
4276 | ||
4277 | # Check whether --enable-transselinux was given. | |
4278 | if test "${enable_transselinux+set}" = set; then | |
4279 | enableval=$enable_transselinux; if test "$enableval" = "yes" | |
4280 | then | |
4281 | LTRANSSELINUX="-lselinux" | |
4282 | CCTRANSSELINUX="-DTRANSSELINUX" | |
4283 | echo "restore can translate SELinux EAs" | |
4284 | else | |
4285 | LTRANSSELINUX="" | |
4286 | CCTRANSSELINUX="" | |
4287 | echo "restore can not translate SELinux EAs" | |
4288 | fi | |
4289 | ||
4290 | else | |
4291 | LTRANSSELINUX="-lselinux" | |
4292 | CCTRANSSELINUX="-DTRANSSELINUX" | |
4293 | echo "restore can translate SELinux EAs by default" | |
4294 | ||
4295 | fi | |
4296 | ||
4297 | ||
4298 | ||
d1925e0c SP |
4299 | |
4300 | ||
35b24fb7 | 4301 | |
7f7d329e | 4302 | # Check whether --with-cc was given. |
1227625a | 4303 | if test "${with_cc+set}" = set; then |
7f7d329e SP |
4304 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
4305 | echo "${ECHO_T}CC=$withval" >&6; } | |
1227625a SP |
4306 | CC=$withval |
4307 | else | |
4308 | if test -z "$CC" ; then CC=cc; fi | |
7f7d329e SP |
4309 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
4310 | echo "${ECHO_T}CC defaults to $CC" >&6; } | |
4311 | fi | |
4312 | export CC | |
1daf06b9 | 4313 | |
1227625a SP |
4314 | |
4315 | ||
7f7d329e | 4316 | # Check whether --with-linker was given. |
1227625a | 4317 | if test "${with_linker+set}" = set; then |
7f7d329e SP |
4318 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
4319 | echo "${ECHO_T}LD=$withval" >&6; } | |
1227625a SP |
4320 | LD=$withval |
4321 | else | |
4322 | if test -z "$LD" ; then LD=$CC; fi | |
7f7d329e SP |
4323 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
4324 | echo "${ECHO_T}LD defaults to $LD" >&6; } | |
4325 | fi | |
4326 | export LD | |
1daf06b9 | 4327 | |
1227625a SP |
4328 | |
4329 | ||
7f7d329e | 4330 | # Check whether --with-ccopts was given. |
1227625a | 4331 | if test "${with_ccopts+set}" = set; then |
7f7d329e SP |
4332 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
4333 | echo "${ECHO_T}CCOPTS is $withval" >&6; } | |
1227625a SP |
4334 | CCOPTS=$withval |
4335 | CFLAGS="$CFLAGS $withval" | |
4336 | else | |
4337 | CCOPTS= | |
7f7d329e SP |
4338 | fi |
4339 | ||
1227625a SP |
4340 | |
4341 | ||
7f7d329e | 4342 | # Check whether --with-ldopts was given. |
1227625a | 4343 | if test "${with_ldopts+set}" = set; then |
7f7d329e SP |
4344 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
4345 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } | |
e95b2aff SP |
4346 | LDOPTS=$withval |
4347 | LDFLAGS="$LDFLAGS $withval" | |
1227625a | 4348 | else |
e95b2aff | 4349 | LDOPTS= |
7f7d329e SP |
4350 | fi |
4351 | ||
1227625a SP |
4352 | |
4353 | ||
7f7d329e | 4354 | # Check whether --with-binowner was given. |
1227625a | 4355 | if test "${with_binowner+set}" = set; then |
7f7d329e SP |
4356 | withval=$with_binowner; { echo "$as_me:$LINENO: result: BINOWNER is $withval" >&5 |
4357 | echo "${ECHO_T}BINOWNER is $withval" >&6; } | |
1227625a SP |
4358 | BINOWNER=$withval |
4359 | else | |
4360 | BINOWNER=root | |
4361 | echo "BINOWNER defaults to $BINOWNER" | |
4362 | ||
7f7d329e SP |
4363 | fi |
4364 | ||
1227625a SP |
4365 | |
4366 | ||
7f7d329e | 4367 | # Check whether --with-bingrp was given. |
1227625a | 4368 | if test "${with_bingrp+set}" = set; then |
7f7d329e SP |
4369 | withval=$with_bingrp; { echo "$as_me:$LINENO: result: BINGRP is $withval" >&5 |
4370 | echo "${ECHO_T}BINGRP is $withval" >&6; } | |
1227625a SP |
4371 | BINGRP=$withval |
4372 | else | |
4373 | BINGRP=tty | |
4374 | echo "BINGRP defaults to $BINGRP" | |
4375 | ||
7f7d329e SP |
4376 | fi |
4377 | ||
1227625a SP |
4378 | |
4379 | ||
7f7d329e | 4380 | # Check whether --with-binmode was given. |
1227625a | 4381 | if test "${with_binmode+set}" = set; then |
7f7d329e SP |
4382 | withval=$with_binmode; { echo "$as_me:$LINENO: result: BINMODE is $withval" >&5 |
4383 | echo "${ECHO_T}BINMODE is $withval" >&6; } | |
1227625a SP |
4384 | BINMODE=$withval |
4385 | else | |
882090d1 | 4386 | BINMODE=0755 |
1227625a SP |
4387 | echo "BINMODE defaults to $BINMODE" |
4388 | ||
7f7d329e SP |
4389 | fi |
4390 | ||
1227625a SP |
4391 | |
4392 | ||
7f7d329e | 4393 | # Check whether --with-manowner was given. |
1227625a | 4394 | if test "${with_manowner+set}" = set; then |
7f7d329e SP |
4395 | withval=$with_manowner; { echo "$as_me:$LINENO: result: MANOWNER is $withval" >&5 |
4396 | echo "${ECHO_T}MANOWNER is $withval" >&6; } | |
1227625a SP |
4397 | MANOWNER=$withval |
4398 | else | |
4399 | MANOWNER=man | |
4400 | echo "MANOWNER defaults to $MANOWNER" | |
4401 | ||
7f7d329e SP |
4402 | fi |
4403 | ||
1227625a SP |
4404 | |
4405 | ||
7f7d329e | 4406 | # Check whether --with-mangrp was given. |
1227625a | 4407 | if test "${with_mangrp+set}" = set; then |
7f7d329e SP |
4408 | withval=$with_mangrp; { echo "$as_me:$LINENO: result: MANGRP is $withval" >&5 |
4409 | echo "${ECHO_T}MANGRP is $withval" >&6; } | |
1227625a SP |
4410 | MANGRP=$withval |
4411 | else | |
4412 | MANGRP=tty | |
4413 | echo "MANGRP defaults to $MANGRP" | |
4414 | ||
7f7d329e SP |
4415 | fi |
4416 | ||
1227625a SP |
4417 | |
4418 | ||
7f7d329e | 4419 | # Check whether --with-manmode was given. |
1227625a | 4420 | if test "${with_manmode+set}" = set; then |
7f7d329e SP |
4421 | withval=$with_manmode; { echo "$as_me:$LINENO: result: MANMODE is $withval" >&5 |
4422 | echo "${ECHO_T}MANMODE is $withval" >&6; } | |
1227625a SP |
4423 | MANMODE=$withval |
4424 | else | |
882090d1 | 4425 | MANMODE=0644 |
1227625a SP |
4426 | echo "MANMODE defaults to $MANMODE" |
4427 | ||
7f7d329e SP |
4428 | fi |
4429 | ||
1227625a SP |
4430 | |
4431 | ||
7f7d329e | 4432 | # Check whether --with-dumpdatespath was given. |
8d4197bb | 4433 | if test "${with_dumpdatespath+set}" = set; then |
7f7d329e SP |
4434 | withval=$with_dumpdatespath; { echo "$as_me:$LINENO: result: DUMPDATESPATH is $withval" >&5 |
4435 | echo "${ECHO_T}DUMPDATESPATH is $withval" >&6; } | |
8d4197bb SP |
4436 | DUMPDATESPATH=$withval |
4437 | else | |
60d46c35 | 4438 | DUMPDATESPATH="${sysconfdir}/dumpdates" |
8d4197bb SP |
4439 | echo "DUMPDATESPATH defaults to $DUMPDATESPATH" |
4440 | ||
7f7d329e SP |
4441 | fi |
4442 | ||
8d4197bb | 4443 | |
7f7d329e SP |
4444 | { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5 |
4445 | echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; } | |
1daf06b9 SP |
4446 | if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then |
4447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1daf06b9 | 4448 | else |
d3e542e7 | 4449 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4450 | /* confdefs.h. */ |
4451 | _ACEOF | |
4452 | cat confdefs.h >>conftest.$ac_ext | |
4453 | cat >>conftest.$ac_ext <<_ACEOF | |
4454 | /* end confdefs.h. */ | |
1227625a | 4455 | #include <ext2fs/ext2fs.h> |
1daf06b9 | 4456 | _ACEOF |
7f7d329e SP |
4457 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4458 | case "(($ac_try" in | |
4459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4460 | *) ac_try_echo=$ac_try;; | |
4461 | esac | |
4462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4463 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 4464 | ac_status=$? |
cdfe1392 | 4465 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
4466 | rm -f conftest.er1 |
4467 | cat conftest.err >&5 | |
4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
4469 | (exit $ac_status); } >/dev/null && { |
4470 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4471 | test ! -s conftest.err | |
4472 | }; then | |
d3e542e7 | 4473 | ac_cv_header_ext2fs_ext2fs_h=yes |
1daf06b9 SP |
4474 | else |
4475 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
4476 | sed 's/^/| /' conftest.$ac_ext >&5 |
4477 | ||
d3e542e7 | 4478 | ac_cv_header_ext2fs_ext2fs_h=no |
1daf06b9 | 4479 | fi |
7f7d329e | 4480 | |
1daf06b9 | 4481 | rm -f conftest.err conftest.$ac_ext |
1227625a | 4482 | fi |
7f7d329e SP |
4483 | { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5 |
4484 | echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; } | |
1daf06b9 | 4485 | if test $ac_cv_header_ext2fs_ext2fs_h = yes; then |
1227625a SP |
4486 | ext2fs_h=yes |
4487 | else | |
1daf06b9 | 4488 | ext2fs_h=no |
1227625a SP |
4489 | fi |
4490 | ||
1daf06b9 | 4491 | |
7f7d329e SP |
4492 | { echo "$as_me:$LINENO: checking for ext2fs_open in -lext2fs" >&5 |
4493 | echo $ECHO_N "checking for ext2fs_open in -lext2fs... $ECHO_C" >&6; } | |
1daf06b9 SP |
4494 | if test "${ac_cv_lib_ext2fs_ext2fs_open+set}" = set; then |
4495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 4496 | else |
1daf06b9 | 4497 | ac_check_lib_save_LIBS=$LIBS |
1227625a | 4498 | LIBS="-lext2fs -lcom_err $LIBS" |
1daf06b9 | 4499 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4500 | /* confdefs.h. */ |
4501 | _ACEOF | |
4502 | cat confdefs.h >>conftest.$ac_ext | |
4503 | cat >>conftest.$ac_ext <<_ACEOF | |
4504 | /* end confdefs.h. */ | |
1daf06b9 | 4505 | |
7f7d329e SP |
4506 | /* Override any GCC internal prototype to avoid an error. |
4507 | Use char because int might match the return type of a GCC | |
4508 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
4509 | #ifdef __cplusplus |
4510 | extern "C" | |
4511 | #endif | |
1daf06b9 | 4512 | char ext2fs_open (); |
1daf06b9 SP |
4513 | int |
4514 | main () | |
4515 | { | |
7f7d329e | 4516 | return ext2fs_open (); |
1daf06b9 SP |
4517 | ; |
4518 | return 0; | |
4519 | } | |
4520 | _ACEOF | |
4521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4522 | if { (ac_try="$ac_link" |
4523 | case "(($ac_try" in | |
4524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4525 | *) ac_try_echo=$ac_try;; | |
4526 | esac | |
4527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4528 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 4529 | ac_status=$? |
c9e4e868 SP |
4530 | grep -v '^ *+' conftest.er1 >conftest.err |
4531 | rm -f conftest.er1 | |
4532 | cat conftest.err >&5 | |
1daf06b9 | 4533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4534 | (exit $ac_status); } && { |
4535 | test -z "$ac_c_werror_flag" || | |
4536 | test ! -s conftest.err | |
4537 | } && test -s conftest$ac_exeext && | |
4538 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
4539 | ac_cv_lib_ext2fs_ext2fs_open=yes |
4540 | else | |
4541 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
4542 | sed 's/^/| /' conftest.$ac_ext >&5 |
4543 | ||
7f7d329e | 4544 | ac_cv_lib_ext2fs_ext2fs_open=no |
1daf06b9 | 4545 | fi |
7f7d329e | 4546 | |
d2816d4c | 4547 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 4548 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
4549 | LIBS=$ac_check_lib_save_LIBS |
4550 | fi | |
7f7d329e SP |
4551 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_open" >&5 |
4552 | echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_open" >&6; } | |
1daf06b9 | 4553 | if test $ac_cv_lib_ext2fs_ext2fs_open = yes; then |
1227625a SP |
4554 | ext2fs_lib=yes |
4555 | else | |
1daf06b9 | 4556 | ext2fs_lib=no |
1227625a SP |
4557 | fi |
4558 | ||
4559 | if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then | |
1daf06b9 SP |
4560 | { { echo "$as_me:$LINENO: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&5 |
4561 | echo "$as_me: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&2;} | |
4562 | { (exit 1); exit 1; }; } | |
1227625a SP |
4563 | fi |
4564 | ||
7f7d329e SP |
4565 | { echo "$as_me:$LINENO: checking for ext2fs_read_inode_full in -lext2fs" >&5 |
4566 | echo $ECHO_N "checking for ext2fs_read_inode_full in -lext2fs... $ECHO_C" >&6; } | |
cca7148b SP |
4567 | if test "${ac_cv_lib_ext2fs_ext2fs_read_inode_full+set}" = set; then |
4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4569 | else | |
4570 | ac_check_lib_save_LIBS=$LIBS | |
4571 | LIBS="-lext2fs -lcom_err $LIBS" | |
4572 | cat >conftest.$ac_ext <<_ACEOF | |
4573 | /* confdefs.h. */ | |
4574 | _ACEOF | |
4575 | cat confdefs.h >>conftest.$ac_ext | |
4576 | cat >>conftest.$ac_ext <<_ACEOF | |
4577 | /* end confdefs.h. */ | |
4578 | ||
7f7d329e SP |
4579 | /* Override any GCC internal prototype to avoid an error. |
4580 | Use char because int might match the return type of a GCC | |
4581 | builtin and then its argument prototype would still apply. */ | |
cca7148b SP |
4582 | #ifdef __cplusplus |
4583 | extern "C" | |
4584 | #endif | |
cca7148b SP |
4585 | char ext2fs_read_inode_full (); |
4586 | int | |
4587 | main () | |
4588 | { | |
7f7d329e | 4589 | return ext2fs_read_inode_full (); |
cca7148b SP |
4590 | ; |
4591 | return 0; | |
4592 | } | |
4593 | _ACEOF | |
4594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4595 | if { (ac_try="$ac_link" |
4596 | case "(($ac_try" in | |
4597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4598 | *) ac_try_echo=$ac_try;; | |
4599 | esac | |
4600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4601 | (eval "$ac_link") 2>conftest.er1 | |
cca7148b SP |
4602 | ac_status=$? |
4603 | grep -v '^ *+' conftest.er1 >conftest.err | |
4604 | rm -f conftest.er1 | |
4605 | cat conftest.err >&5 | |
4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
4607 | (exit $ac_status); } && { |
4608 | test -z "$ac_c_werror_flag" || | |
4609 | test ! -s conftest.err | |
4610 | } && test -s conftest$ac_exeext && | |
4611 | $as_test_x conftest$ac_exeext; then | |
cca7148b SP |
4612 | ac_cv_lib_ext2fs_ext2fs_read_inode_full=yes |
4613 | else | |
4614 | echo "$as_me: failed program was:" >&5 | |
4615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4616 | ||
7f7d329e | 4617 | ac_cv_lib_ext2fs_ext2fs_read_inode_full=no |
cca7148b | 4618 | fi |
7f7d329e | 4619 | |
d2816d4c | 4620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
cca7148b SP |
4621 | conftest$ac_exeext conftest.$ac_ext |
4622 | LIBS=$ac_check_lib_save_LIBS | |
4623 | fi | |
7f7d329e SP |
4624 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&5 |
4625 | echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&6; } | |
cca7148b SP |
4626 | if test $ac_cv_lib_ext2fs_ext2fs_read_inode_full = yes; then |
4627 | rif=yes | |
4628 | else | |
4629 | rif=no | |
4630 | fi | |
4631 | ||
4632 | if test "$rif" = yes; then | |
4633 | ||
4634 | cat >>confdefs.h <<\_ACEOF | |
4635 | #define HAVE_EXT2FS_READ_INODE_FULL 1 | |
4636 | _ACEOF | |
4637 | ||
4638 | fi | |
4639 | ||
1daf06b9 SP |
4640 | |
4641 | for ac_header in ext2fs/ext2_fs.h | |
e4a8bde4 | 4642 | do |
1daf06b9 | 4643 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7f7d329e SP |
4644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
1daf06b9 | 4647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1daf06b9 | 4648 | else |
d3e542e7 | 4649 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4650 | /* confdefs.h. */ |
4651 | _ACEOF | |
4652 | cat confdefs.h >>conftest.$ac_ext | |
4653 | cat >>conftest.$ac_ext <<_ACEOF | |
4654 | /* end confdefs.h. */ | |
1daf06b9 SP |
4655 | #include <$ac_header> |
4656 | _ACEOF | |
7f7d329e SP |
4657 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4658 | case "(($ac_try" in | |
4659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4660 | *) ac_try_echo=$ac_try;; | |
4661 | esac | |
4662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 4664 | ac_status=$? |
cdfe1392 | 4665 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
4666 | rm -f conftest.er1 |
4667 | cat conftest.err >&5 | |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
4669 | (exit $ac_status); } >/dev/null && { |
4670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4671 | test ! -s conftest.err | |
4672 | }; then | |
d3e542e7 | 4673 | eval "$as_ac_Header=yes" |
1daf06b9 SP |
4674 | else |
4675 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
4676 | sed 's/^/| /' conftest.$ac_ext >&5 |
4677 | ||
d3e542e7 | 4678 | eval "$as_ac_Header=no" |
1daf06b9 | 4679 | fi |
7f7d329e | 4680 | |
1daf06b9 | 4681 | rm -f conftest.err conftest.$ac_ext |
e4a8bde4 | 4682 | fi |
7f7d329e SP |
4683 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4684 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4685 | echo "${ECHO_T}$ac_res" >&6; } | |
1daf06b9 SP |
4686 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4687 | cat >>confdefs.h <<_ACEOF | |
4688 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4689 | _ACEOF | |
4690 | ||
e4a8bde4 | 4691 | fi |
1daf06b9 | 4692 | |
e4a8bde4 SP |
4693 | done |
4694 | ||
4695 | ||
7f7d329e SP |
4696 | { echo "$as_me:$LINENO: checking for ext2_ino_t type in libext2fs headers" >&5 |
4697 | echo $ECHO_N "checking for ext2_ino_t type in libext2fs headers... $ECHO_C" >&6; } | |
1daf06b9 | 4698 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4699 | /* confdefs.h. */ |
4700 | _ACEOF | |
4701 | cat confdefs.h >>conftest.$ac_ext | |
4702 | cat >>conftest.$ac_ext <<_ACEOF | |
4703 | /* end confdefs.h. */ | |
a4f547cd | 4704 | #include <stdio.h> |
e4a8bde4 SP |
4705 | #ifdef HAVE_EXT2FS_EXT2_FS_H |
4706 | #include <ext2fs/ext2_fs.h> | |
4707 | #else | |
a4f547cd | 4708 | #include <linux/ext2_fs.h> |
e4a8bde4 | 4709 | #endif |
a4f547cd | 4710 | #include <ext2fs/ext2fs.h> |
1daf06b9 SP |
4711 | int |
4712 | main () | |
4713 | { | |
a4f547cd | 4714 | ext2_ino_t ino = 0; |
1daf06b9 SP |
4715 | ; |
4716 | return 0; | |
4717 | } | |
4718 | _ACEOF | |
4719 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4720 | if { (ac_try="$ac_compile" |
4721 | case "(($ac_try" in | |
4722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4723 | *) ac_try_echo=$ac_try;; | |
4724 | esac | |
4725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4726 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 4727 | ac_status=$? |
c9e4e868 SP |
4728 | grep -v '^ *+' conftest.er1 >conftest.err |
4729 | rm -f conftest.er1 | |
4730 | cat conftest.err >&5 | |
1daf06b9 | 4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4732 | (exit $ac_status); } && { |
4733 | test -z "$ac_c_werror_flag" || | |
4734 | test ! -s conftest.err | |
4735 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
4736 | |
4737 | cat >>confdefs.h <<\_ACEOF | |
a4f547cd | 4738 | #define HAVE_EXT2_INO_T 1 |
1daf06b9 | 4739 | _ACEOF |
e7d18957 | 4740 | |
7f7d329e SP |
4741 | { echo "$as_me:$LINENO: result: yes" >&5 |
4742 | echo "${ECHO_T}yes" >&6; } | |
a4f547cd | 4743 | else |
1daf06b9 | 4744 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4745 | sed 's/^/| /' conftest.$ac_ext >&5 |
4746 | ||
7f7d329e SP |
4747 | { echo "$as_me:$LINENO: result: no" >&5 |
4748 | echo "${ECHO_T}no" >&6; } | |
a4f547cd | 4749 | fi |
a4f547cd | 4750 | |
7f7d329e SP |
4751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4752 | ||
4753 | { echo "$as_me:$LINENO: checking for s_journal_inum field in ext2_super_block struct" >&5 | |
4754 | echo $ECHO_N "checking for s_journal_inum field in ext2_super_block struct... $ECHO_C" >&6; } | |
1daf06b9 | 4755 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4756 | /* confdefs.h. */ |
4757 | _ACEOF | |
4758 | cat confdefs.h >>conftest.$ac_ext | |
4759 | cat >>conftest.$ac_ext <<_ACEOF | |
4760 | /* end confdefs.h. */ | |
a4f547cd | 4761 | #include <stdio.h> |
e4a8bde4 SP |
4762 | #ifdef HAVE_EXT2FS_EXT2_FS_H |
4763 | #include <ext2fs/ext2_fs.h> | |
4764 | #else | |
a4f547cd | 4765 | #include <linux/ext2_fs.h> |
e4a8bde4 | 4766 | #endif |
a4f547cd | 4767 | #include <ext2fs/ext2fs.h> |
1daf06b9 SP |
4768 | int |
4769 | main () | |
4770 | { | |
a4f547cd | 4771 | struct ext2_super_block es; es.s_journal_inum = 0; |
1daf06b9 SP |
4772 | ; |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
4776 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4777 | if { (ac_try="$ac_compile" |
4778 | case "(($ac_try" in | |
4779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4780 | *) ac_try_echo=$ac_try;; | |
4781 | esac | |
4782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4783 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 4784 | ac_status=$? |
c9e4e868 SP |
4785 | grep -v '^ *+' conftest.er1 >conftest.err |
4786 | rm -f conftest.er1 | |
4787 | cat conftest.err >&5 | |
1daf06b9 | 4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4789 | (exit $ac_status); } && { |
4790 | test -z "$ac_c_werror_flag" || | |
4791 | test ! -s conftest.err | |
4792 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
4793 | |
4794 | cat >>confdefs.h <<\_ACEOF | |
a4f547cd | 4795 | #define HAVE_EXT2_JOURNAL_INUM 1 |
1daf06b9 | 4796 | _ACEOF |
e7d18957 | 4797 | |
7f7d329e SP |
4798 | { echo "$as_me:$LINENO: result: yes" >&5 |
4799 | echo "${ECHO_T}yes" >&6; } | |
a4f547cd | 4800 | else |
1daf06b9 | 4801 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4802 | sed 's/^/| /' conftest.$ac_ext >&5 |
4803 | ||
7f7d329e SP |
4804 | { echo "$as_me:$LINENO: result: no" >&5 |
4805 | echo "${ECHO_T}no" >&6; } | |
a4f547cd | 4806 | fi |
c9e4e868 | 4807 | |
7f7d329e SP |
4808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4809 | ||
4810 | { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5 | |
4811 | echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; } | |
c9e4e868 SP |
4812 | if test "${ac_cv_header_blkid_blkid_h+set}" = set; then |
4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4814 | else | |
4815 | cat >conftest.$ac_ext <<_ACEOF | |
4816 | /* confdefs.h. */ | |
4817 | _ACEOF | |
4818 | cat confdefs.h >>conftest.$ac_ext | |
4819 | cat >>conftest.$ac_ext <<_ACEOF | |
4820 | /* end confdefs.h. */ | |
4821 | #include <blkid/blkid.h> | |
4822 | _ACEOF | |
7f7d329e SP |
4823 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4824 | case "(($ac_try" in | |
4825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4826 | *) ac_try_echo=$ac_try;; | |
4827 | esac | |
4828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
c9e4e868 SP |
4830 | ac_status=$? |
4831 | grep -v '^ *+' conftest.er1 >conftest.err | |
4832 | rm -f conftest.er1 | |
4833 | cat conftest.err >&5 | |
4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
4835 | (exit $ac_status); } >/dev/null && { |
4836 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4837 | test ! -s conftest.err | |
4838 | }; then | |
c9e4e868 SP |
4839 | ac_cv_header_blkid_blkid_h=yes |
4840 | else | |
4841 | echo "$as_me: failed program was:" >&5 | |
4842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4843 | ||
4844 | ac_cv_header_blkid_blkid_h=no | |
4845 | fi | |
7f7d329e | 4846 | |
c9e4e868 SP |
4847 | rm -f conftest.err conftest.$ac_ext |
4848 | fi | |
7f7d329e SP |
4849 | { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5 |
4850 | echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; } | |
c9e4e868 SP |
4851 | if test $ac_cv_header_blkid_blkid_h = yes; then |
4852 | blkid_h=yes | |
4853 | else | |
4854 | blkid_h=no | |
4855 | fi | |
4856 | ||
4857 | ||
7f7d329e SP |
4858 | { echo "$as_me:$LINENO: checking for blkid_get_devname in -lblkid" >&5 |
4859 | echo $ECHO_N "checking for blkid_get_devname in -lblkid... $ECHO_C" >&6; } | |
c9e4e868 SP |
4860 | if test "${ac_cv_lib_blkid_blkid_get_devname+set}" = set; then |
4861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4862 | else | |
4863 | ac_check_lib_save_LIBS=$LIBS | |
4864 | LIBS="-lblkid -luuid $LIBS" | |
4865 | cat >conftest.$ac_ext <<_ACEOF | |
4866 | /* confdefs.h. */ | |
4867 | _ACEOF | |
4868 | cat confdefs.h >>conftest.$ac_ext | |
4869 | cat >>conftest.$ac_ext <<_ACEOF | |
4870 | /* end confdefs.h. */ | |
4871 | ||
7f7d329e SP |
4872 | /* Override any GCC internal prototype to avoid an error. |
4873 | Use char because int might match the return type of a GCC | |
4874 | builtin and then its argument prototype would still apply. */ | |
c9e4e868 SP |
4875 | #ifdef __cplusplus |
4876 | extern "C" | |
4877 | #endif | |
c9e4e868 SP |
4878 | char blkid_get_devname (); |
4879 | int | |
4880 | main () | |
4881 | { | |
7f7d329e | 4882 | return blkid_get_devname (); |
c9e4e868 SP |
4883 | ; |
4884 | return 0; | |
4885 | } | |
4886 | _ACEOF | |
4887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4888 | if { (ac_try="$ac_link" |
4889 | case "(($ac_try" in | |
4890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4891 | *) ac_try_echo=$ac_try;; | |
4892 | esac | |
4893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4894 | (eval "$ac_link") 2>conftest.er1 | |
c9e4e868 SP |
4895 | ac_status=$? |
4896 | grep -v '^ *+' conftest.er1 >conftest.err | |
4897 | rm -f conftest.er1 | |
4898 | cat conftest.err >&5 | |
4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
4900 | (exit $ac_status); } && { |
4901 | test -z "$ac_c_werror_flag" || | |
4902 | test ! -s conftest.err | |
4903 | } && test -s conftest$ac_exeext && | |
4904 | $as_test_x conftest$ac_exeext; then | |
c9e4e868 SP |
4905 | ac_cv_lib_blkid_blkid_get_devname=yes |
4906 | else | |
4907 | echo "$as_me: failed program was:" >&5 | |
4908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4909 | ||
7f7d329e | 4910 | ac_cv_lib_blkid_blkid_get_devname=no |
c9e4e868 | 4911 | fi |
7f7d329e | 4912 | |
d2816d4c | 4913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 SP |
4914 | conftest$ac_exeext conftest.$ac_ext |
4915 | LIBS=$ac_check_lib_save_LIBS | |
4916 | fi | |
7f7d329e SP |
4917 | { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_devname" >&5 |
4918 | echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_devname" >&6; } | |
c9e4e868 SP |
4919 | if test $ac_cv_lib_blkid_blkid_get_devname = yes; then |
4920 | blkid_lib=yes | |
4921 | else | |
4922 | blkid_lib=no | |
4923 | fi | |
4924 | ||
4925 | if test "$blkid_h" = yes -a "$blkid_lib" = yes; then | |
4926 | ||
4927 | cat >>confdefs.h <<\_ACEOF | |
4928 | #define HAVE_BLKID 1 | |
4929 | _ACEOF | |
4930 | ||
7f7d329e | 4931 | BLKID="-lblkid -luuid -ldevmapper -lselinux -lsepol" |
c9e4e868 SP |
4932 | fi |
4933 | ||
a4f547cd | 4934 | |
7f7d329e SP |
4935 | { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
4936 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; } | |
0556ca22 SP |
4937 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4939 | else | |
4940 | ac_check_lib_save_LIBS=$LIBS | |
4941 | LIBS="-lncurses $LIBS" | |
4942 | cat >conftest.$ac_ext <<_ACEOF | |
4943 | /* confdefs.h. */ | |
4944 | _ACEOF | |
4945 | cat confdefs.h >>conftest.$ac_ext | |
4946 | cat >>conftest.$ac_ext <<_ACEOF | |
4947 | /* end confdefs.h. */ | |
4948 | ||
7f7d329e SP |
4949 | /* Override any GCC internal prototype to avoid an error. |
4950 | Use char because int might match the return type of a GCC | |
4951 | builtin and then its argument prototype would still apply. */ | |
0556ca22 SP |
4952 | #ifdef __cplusplus |
4953 | extern "C" | |
4954 | #endif | |
0556ca22 SP |
4955 | char tgetent (); |
4956 | int | |
4957 | main () | |
4958 | { | |
7f7d329e | 4959 | return tgetent (); |
0556ca22 SP |
4960 | ; |
4961 | return 0; | |
4962 | } | |
4963 | _ACEOF | |
4964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4965 | if { (ac_try="$ac_link" |
4966 | case "(($ac_try" in | |
4967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4968 | *) ac_try_echo=$ac_try;; | |
4969 | esac | |
4970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4971 | (eval "$ac_link") 2>conftest.er1 | |
0556ca22 SP |
4972 | ac_status=$? |
4973 | grep -v '^ *+' conftest.er1 >conftest.err | |
4974 | rm -f conftest.er1 | |
4975 | cat conftest.err >&5 | |
4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
4977 | (exit $ac_status); } && { |
4978 | test -z "$ac_c_werror_flag" || | |
4979 | test ! -s conftest.err | |
4980 | } && test -s conftest$ac_exeext && | |
4981 | $as_test_x conftest$ac_exeext; then | |
0556ca22 SP |
4982 | ac_cv_lib_ncurses_tgetent=yes |
4983 | else | |
4984 | echo "$as_me: failed program was:" >&5 | |
4985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4986 | ||
7f7d329e | 4987 | ac_cv_lib_ncurses_tgetent=no |
0556ca22 | 4988 | fi |
7f7d329e | 4989 | |
d2816d4c | 4990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
0556ca22 SP |
4991 | conftest$ac_exeext conftest.$ac_ext |
4992 | LIBS=$ac_check_lib_save_LIBS | |
4993 | fi | |
7f7d329e SP |
4994 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
4995 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; } | |
0556ca22 SP |
4996 | if test $ac_cv_lib_ncurses_tgetent = yes; then |
4997 | ncurses_lib=yes | |
4998 | else | |
4999 | ncurses_lib=no | |
5000 | fi | |
5001 | ||
7f7d329e SP |
5002 | { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
5003 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; } | |
1daf06b9 SP |
5004 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3e815572 | 5006 | else |
1daf06b9 | 5007 | ac_check_lib_save_LIBS=$LIBS |
3e815572 | 5008 | LIBS="-ltermcap $LIBS" |
1daf06b9 | 5009 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5010 | /* confdefs.h. */ |
5011 | _ACEOF | |
5012 | cat confdefs.h >>conftest.$ac_ext | |
5013 | cat >>conftest.$ac_ext <<_ACEOF | |
5014 | /* end confdefs.h. */ | |
1daf06b9 | 5015 | |
7f7d329e SP |
5016 | /* Override any GCC internal prototype to avoid an error. |
5017 | Use char because int might match the return type of a GCC | |
5018 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5019 | #ifdef __cplusplus |
5020 | extern "C" | |
5021 | #endif | |
1daf06b9 | 5022 | char tgetent (); |
1daf06b9 SP |
5023 | int |
5024 | main () | |
5025 | { | |
7f7d329e | 5026 | return tgetent (); |
1daf06b9 SP |
5027 | ; |
5028 | return 0; | |
5029 | } | |
5030 | _ACEOF | |
5031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5032 | if { (ac_try="$ac_link" |
5033 | case "(($ac_try" in | |
5034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5035 | *) ac_try_echo=$ac_try;; | |
5036 | esac | |
5037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5038 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5039 | ac_status=$? |
c9e4e868 SP |
5040 | grep -v '^ *+' conftest.er1 >conftest.err |
5041 | rm -f conftest.er1 | |
5042 | cat conftest.err >&5 | |
1daf06b9 | 5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5044 | (exit $ac_status); } && { |
5045 | test -z "$ac_c_werror_flag" || | |
5046 | test ! -s conftest.err | |
5047 | } && test -s conftest$ac_exeext && | |
5048 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5049 | ac_cv_lib_termcap_tgetent=yes |
5050 | else | |
5051 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5052 | sed 's/^/| /' conftest.$ac_ext >&5 |
5053 | ||
7f7d329e | 5054 | ac_cv_lib_termcap_tgetent=no |
1daf06b9 | 5055 | fi |
7f7d329e | 5056 | |
d2816d4c | 5057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5058 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5059 | LIBS=$ac_check_lib_save_LIBS |
5060 | fi | |
7f7d329e SP |
5061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
5062 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; } | |
1daf06b9 | 5063 | if test $ac_cv_lib_termcap_tgetent = yes; then |
3e815572 SP |
5064 | termcap_lib=yes |
5065 | else | |
1daf06b9 | 5066 | termcap_lib=no |
3e815572 SP |
5067 | fi |
5068 | ||
d2816d4c SP |
5069 | { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
5070 | echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; } | |
5071 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then | |
5072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5073 | else | |
5074 | ac_check_lib_save_LIBS=$LIBS | |
5075 | LIBS="-ltinfo $LIBS" | |
5076 | cat >conftest.$ac_ext <<_ACEOF | |
5077 | /* confdefs.h. */ | |
5078 | _ACEOF | |
5079 | cat confdefs.h >>conftest.$ac_ext | |
5080 | cat >>conftest.$ac_ext <<_ACEOF | |
5081 | /* end confdefs.h. */ | |
0556ca22 | 5082 | |
d2816d4c SP |
5083 | /* Override any GCC internal prototype to avoid an error. |
5084 | Use char because int might match the return type of a GCC | |
5085 | builtin and then its argument prototype would still apply. */ | |
5086 | #ifdef __cplusplus | |
5087 | extern "C" | |
5088 | #endif | |
5089 | char tgetent (); | |
5090 | int | |
5091 | main () | |
5092 | { | |
5093 | return tgetent (); | |
5094 | ; | |
5095 | return 0; | |
5096 | } | |
5097 | _ACEOF | |
5098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5099 | if { (ac_try="$ac_link" | |
5100 | case "(($ac_try" in | |
5101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5102 | *) ac_try_echo=$ac_try;; | |
5103 | esac | |
5104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5105 | (eval "$ac_link") 2>conftest.er1 | |
5106 | ac_status=$? | |
5107 | grep -v '^ *+' conftest.er1 >conftest.err | |
5108 | rm -f conftest.er1 | |
5109 | cat conftest.err >&5 | |
5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5111 | (exit $ac_status); } && { | |
5112 | test -z "$ac_c_werror_flag" || | |
5113 | test ! -s conftest.err | |
5114 | } && test -s conftest$ac_exeext && | |
5115 | $as_test_x conftest$ac_exeext; then | |
5116 | ac_cv_lib_tinfo_tgetent=yes | |
5117 | else | |
5118 | echo "$as_me: failed program was:" >&5 | |
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5120 | ||
5121 | ac_cv_lib_tinfo_tgetent=no | |
5122 | fi | |
5123 | ||
5124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5125 | conftest$ac_exeext conftest.$ac_ext | |
5126 | LIBS=$ac_check_lib_save_LIBS | |
5127 | fi | |
5128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 | |
5129 | echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; } | |
5130 | if test $ac_cv_lib_tinfo_tgetent = yes; then | |
5131 | tinfo_lib=yes | |
5132 | else | |
5133 | tinfo_lib=no | |
5134 | fi | |
5135 | ||
5136 | ||
5137 | if test "$ncurses_lib" = no -a "$termcap_lib" = no -a "$tinfo_lib" = no; then | |
0556ca22 SP |
5138 | if test "$READLINE" = "yes"; then |
5139 | { { echo "$as_me:$LINENO: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&5 | |
5140 | echo "$as_me: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&2;} | |
1daf06b9 | 5141 | { (exit 1); exit 1; }; } |
3e815572 SP |
5142 | fi |
5143 | fi | |
d2816d4c SP |
5144 | if test "$tinfo_lib" = yes; then |
5145 | rdllib="-ltinfo" | |
5146 | elif test "$ncurses_lib" = yes; then | |
0556ca22 SP |
5147 | rdllib="-lncurses" |
5148 | elif test "$termcap_lib" = yes; then | |
5149 | rdllib="-ltermcap" | |
5150 | fi | |
3e815572 | 5151 | |
7f7d329e SP |
5152 | { echo "$as_me:$LINENO: checking for readline/readline.h" >&5 |
5153 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; } | |
1daf06b9 SP |
5154 | if test "${ac_cv_header_readline_readline_h+set}" = set; then |
5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1daf06b9 | 5156 | else |
d3e542e7 | 5157 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5158 | /* confdefs.h. */ |
5159 | _ACEOF | |
5160 | cat confdefs.h >>conftest.$ac_ext | |
5161 | cat >>conftest.$ac_ext <<_ACEOF | |
5162 | /* end confdefs.h. */ | |
c38e5b6a | 5163 | #include <readline/readline.h> |
1daf06b9 | 5164 | _ACEOF |
7f7d329e SP |
5165 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5166 | case "(($ac_try" in | |
5167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5168 | *) ac_try_echo=$ac_try;; | |
5169 | esac | |
5170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5171 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 5172 | ac_status=$? |
cdfe1392 | 5173 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5174 | rm -f conftest.er1 |
5175 | cat conftest.err >&5 | |
5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
5177 | (exit $ac_status); } >/dev/null && { |
5178 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5179 | test ! -s conftest.err | |
5180 | }; then | |
d3e542e7 | 5181 | ac_cv_header_readline_readline_h=yes |
1daf06b9 SP |
5182 | else |
5183 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5184 | sed 's/^/| /' conftest.$ac_ext >&5 |
5185 | ||
d3e542e7 | 5186 | ac_cv_header_readline_readline_h=no |
1daf06b9 | 5187 | fi |
7f7d329e | 5188 | |
1daf06b9 | 5189 | rm -f conftest.err conftest.$ac_ext |
c38e5b6a | 5190 | fi |
7f7d329e SP |
5191 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 |
5192 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; } | |
1daf06b9 | 5193 | if test $ac_cv_header_readline_readline_h = yes; then |
c38e5b6a SP |
5194 | readline_h=yes |
5195 | else | |
1daf06b9 | 5196 | readline_h=no |
c38e5b6a SP |
5197 | fi |
5198 | ||
1daf06b9 | 5199 | |
7f7d329e SP |
5200 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
5201 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
1daf06b9 SP |
5202 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
5203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c38e5b6a | 5204 | else |
1daf06b9 | 5205 | ac_check_lib_save_LIBS=$LIBS |
0556ca22 | 5206 | LIBS="-lreadline $rdllib $LIBS" |
1daf06b9 | 5207 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5208 | /* confdefs.h. */ |
5209 | _ACEOF | |
5210 | cat confdefs.h >>conftest.$ac_ext | |
5211 | cat >>conftest.$ac_ext <<_ACEOF | |
5212 | /* end confdefs.h. */ | |
1daf06b9 | 5213 | |
7f7d329e SP |
5214 | /* Override any GCC internal prototype to avoid an error. |
5215 | Use char because int might match the return type of a GCC | |
5216 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5217 | #ifdef __cplusplus |
5218 | extern "C" | |
5219 | #endif | |
1daf06b9 | 5220 | char readline (); |
1daf06b9 SP |
5221 | int |
5222 | main () | |
5223 | { | |
7f7d329e | 5224 | return readline (); |
1daf06b9 SP |
5225 | ; |
5226 | return 0; | |
5227 | } | |
5228 | _ACEOF | |
5229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5230 | if { (ac_try="$ac_link" |
5231 | case "(($ac_try" in | |
5232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5233 | *) ac_try_echo=$ac_try;; | |
5234 | esac | |
5235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5236 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5237 | ac_status=$? |
c9e4e868 SP |
5238 | grep -v '^ *+' conftest.er1 >conftest.err |
5239 | rm -f conftest.er1 | |
5240 | cat conftest.err >&5 | |
1daf06b9 | 5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5242 | (exit $ac_status); } && { |
5243 | test -z "$ac_c_werror_flag" || | |
5244 | test ! -s conftest.err | |
5245 | } && test -s conftest$ac_exeext && | |
5246 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5247 | ac_cv_lib_readline_readline=yes |
5248 | else | |
5249 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5250 | sed 's/^/| /' conftest.$ac_ext >&5 |
5251 | ||
7f7d329e | 5252 | ac_cv_lib_readline_readline=no |
1daf06b9 | 5253 | fi |
7f7d329e | 5254 | |
d2816d4c | 5255 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5256 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5257 | LIBS=$ac_check_lib_save_LIBS |
5258 | fi | |
7f7d329e SP |
5259 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
5260 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
1daf06b9 | 5261 | if test $ac_cv_lib_readline_readline = yes; then |
c38e5b6a SP |
5262 | readline_lib=yes |
5263 | else | |
1daf06b9 | 5264 | readline_lib=no |
c38e5b6a SP |
5265 | fi |
5266 | ||
5267 | if test "$readline_h" = no -o "$readline_lib" = no; then | |
0556ca22 | 5268 | if test "$READLINE" = "yes"; then |
1daf06b9 SP |
5269 | { { echo "$as_me:$LINENO: error: You need to install the GNU readline library or configure without --enable-readline" >&5 |
5270 | echo "$as_me: error: You need to install the GNU readline library or configure without --enable-readline" >&2;} | |
5271 | { (exit 1); exit 1; }; } | |
c38e5b6a SP |
5272 | fi |
5273 | fi | |
0556ca22 SP |
5274 | if test "$READLINE" = yes; then |
5275 | READLINE="-lreadline $rdllib" | |
5276 | fi | |
5277 | ||
c38e5b6a | 5278 | |
7f7d329e SP |
5279 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
5280 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; } | |
1daf06b9 SP |
5281 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bcecd677 | 5283 | else |
1daf06b9 | 5284 | ac_check_lib_save_LIBS=$LIBS |
bcecd677 | 5285 | LIBS="-lreadline "-ltermcap" $LIBS" |
1daf06b9 | 5286 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5287 | /* confdefs.h. */ |
5288 | _ACEOF | |
5289 | cat confdefs.h >>conftest.$ac_ext | |
5290 | cat >>conftest.$ac_ext <<_ACEOF | |
5291 | /* end confdefs.h. */ | |
1daf06b9 | 5292 | |
7f7d329e SP |
5293 | /* Override any GCC internal prototype to avoid an error. |
5294 | Use char because int might match the return type of a GCC | |
5295 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5296 | #ifdef __cplusplus |
5297 | extern "C" | |
5298 | #endif | |
1daf06b9 | 5299 | char rl_completion_matches (); |
1daf06b9 SP |
5300 | int |
5301 | main () | |
5302 | { | |
7f7d329e | 5303 | return rl_completion_matches (); |
1daf06b9 SP |
5304 | ; |
5305 | return 0; | |
5306 | } | |
5307 | _ACEOF | |
5308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5309 | if { (ac_try="$ac_link" |
5310 | case "(($ac_try" in | |
5311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5312 | *) ac_try_echo=$ac_try;; | |
5313 | esac | |
5314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5315 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5316 | ac_status=$? |
c9e4e868 SP |
5317 | grep -v '^ *+' conftest.er1 >conftest.err |
5318 | rm -f conftest.er1 | |
5319 | cat conftest.err >&5 | |
1daf06b9 | 5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5321 | (exit $ac_status); } && { |
5322 | test -z "$ac_c_werror_flag" || | |
5323 | test ! -s conftest.err | |
5324 | } && test -s conftest$ac_exeext && | |
5325 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5326 | ac_cv_lib_readline_rl_completion_matches=yes |
5327 | else | |
5328 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5329 | sed 's/^/| /' conftest.$ac_ext >&5 |
5330 | ||
7f7d329e | 5331 | ac_cv_lib_readline_rl_completion_matches=no |
1daf06b9 | 5332 | fi |
7f7d329e | 5333 | |
d2816d4c | 5334 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5335 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5336 | LIBS=$ac_check_lib_save_LIBS |
5337 | fi | |
7f7d329e SP |
5338 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
5339 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } | |
1daf06b9 | 5340 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
bcecd677 SP |
5341 | rlcm=yes |
5342 | else | |
1daf06b9 | 5343 | rlcm=no |
bcecd677 SP |
5344 | fi |
5345 | ||
5346 | if test "$rlcm" = yes; then | |
e7d18957 SP |
5347 | |
5348 | cat >>confdefs.h <<\_ACEOF | |
bcecd677 | 5349 | #define HAVE_READLINE_RLCM 1 |
1daf06b9 | 5350 | _ACEOF |
bcecd677 SP |
5351 | |
5352 | fi | |
5353 | ||
7f7d329e SP |
5354 | { echo "$as_me:$LINENO: checking for rl_completion_append_character in -lreadline" >&5 |
5355 | echo $ECHO_N "checking for rl_completion_append_character in -lreadline... $ECHO_C" >&6; } | |
1daf06b9 SP |
5356 | if test "${ac_cv_lib_readline_rl_completion_append_character+set}" = set; then |
5357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bcecd677 | 5358 | else |
1daf06b9 | 5359 | ac_check_lib_save_LIBS=$LIBS |
bcecd677 | 5360 | LIBS="-lreadline "-ltermcap" $LIBS" |
1daf06b9 | 5361 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5362 | /* confdefs.h. */ |
5363 | _ACEOF | |
5364 | cat confdefs.h >>conftest.$ac_ext | |
5365 | cat >>conftest.$ac_ext <<_ACEOF | |
5366 | /* end confdefs.h. */ | |
1daf06b9 | 5367 | |
7f7d329e SP |
5368 | /* Override any GCC internal prototype to avoid an error. |
5369 | Use char because int might match the return type of a GCC | |
5370 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5371 | #ifdef __cplusplus |
5372 | extern "C" | |
5373 | #endif | |
1daf06b9 | 5374 | char rl_completion_append_character (); |
1daf06b9 SP |
5375 | int |
5376 | main () | |
5377 | { | |
7f7d329e | 5378 | return rl_completion_append_character (); |
1daf06b9 SP |
5379 | ; |
5380 | return 0; | |
5381 | } | |
5382 | _ACEOF | |
5383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5384 | if { (ac_try="$ac_link" |
5385 | case "(($ac_try" in | |
5386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5387 | *) ac_try_echo=$ac_try;; | |
5388 | esac | |
5389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5390 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5391 | ac_status=$? |
c9e4e868 SP |
5392 | grep -v '^ *+' conftest.er1 >conftest.err |
5393 | rm -f conftest.er1 | |
5394 | cat conftest.err >&5 | |
1daf06b9 | 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5396 | (exit $ac_status); } && { |
5397 | test -z "$ac_c_werror_flag" || | |
5398 | test ! -s conftest.err | |
5399 | } && test -s conftest$ac_exeext && | |
5400 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5401 | ac_cv_lib_readline_rl_completion_append_character=yes |
5402 | else | |
5403 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5404 | sed 's/^/| /' conftest.$ac_ext >&5 |
5405 | ||
7f7d329e | 5406 | ac_cv_lib_readline_rl_completion_append_character=no |
1daf06b9 | 5407 | fi |
7f7d329e | 5408 | |
d2816d4c | 5409 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5410 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5411 | LIBS=$ac_check_lib_save_LIBS |
5412 | fi | |
7f7d329e SP |
5413 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_append_character" >&5 |
5414 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_append_character" >&6; } | |
1daf06b9 SP |
5415 | if test $ac_cv_lib_readline_rl_completion_append_character = yes; then |
5416 | rcac=yes | |
5417 | else | |
5418 | rcac=no | |
bcecd677 SP |
5419 | fi |
5420 | ||
5421 | if test "$rcac" = yes; then | |
e7d18957 SP |
5422 | |
5423 | cat >>confdefs.h <<\_ACEOF | |
d3e542e7 SP |
5424 | #define HAVE_READLINE_CAC 1 |
5425 | _ACEOF | |
5426 | ||
1daf06b9 | 5427 | fi |
1daf06b9 | 5428 | |
7f7d329e SP |
5429 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
5430 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
d3e542e7 SP |
5431 | if test "${ac_cv_header_zlib_h+set}" = set; then |
5432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5433 | else | |
5434 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
5435 | /* confdefs.h. */ |
5436 | _ACEOF | |
5437 | cat confdefs.h >>conftest.$ac_ext | |
5438 | cat >>conftest.$ac_ext <<_ACEOF | |
5439 | /* end confdefs.h. */ | |
4d5ed2f3 | 5440 | #include <zlib.h> |
1daf06b9 | 5441 | _ACEOF |
7f7d329e SP |
5442 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5443 | case "(($ac_try" in | |
5444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5445 | *) ac_try_echo=$ac_try;; | |
5446 | esac | |
5447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5448 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 5449 | ac_status=$? |
cdfe1392 | 5450 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5451 | rm -f conftest.er1 |
5452 | cat conftest.err >&5 | |
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
5454 | (exit $ac_status); } >/dev/null && { |
5455 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5456 | test ! -s conftest.err | |
5457 | }; then | |
d3e542e7 | 5458 | ac_cv_header_zlib_h=yes |
1daf06b9 SP |
5459 | else |
5460 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5461 | sed 's/^/| /' conftest.$ac_ext >&5 |
5462 | ||
d3e542e7 | 5463 | ac_cv_header_zlib_h=no |
1daf06b9 | 5464 | fi |
7f7d329e | 5465 | |
1daf06b9 | 5466 | rm -f conftest.err conftest.$ac_ext |
4d5ed2f3 | 5467 | fi |
7f7d329e SP |
5468 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
5469 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
1daf06b9 | 5470 | if test $ac_cv_header_zlib_h = yes; then |
4d5ed2f3 SP |
5471 | zlib_h=yes |
5472 | else | |
1daf06b9 | 5473 | zlib_h=no |
4d5ed2f3 SP |
5474 | fi |
5475 | ||
1daf06b9 | 5476 | |
7f7d329e SP |
5477 | { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 |
5478 | echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } | |
1daf06b9 SP |
5479 | if test "${ac_cv_lib_z_compress2+set}" = set; then |
5480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4d5ed2f3 | 5481 | else |
1daf06b9 | 5482 | ac_check_lib_save_LIBS=$LIBS |
4d5ed2f3 | 5483 | LIBS="-lz $LIBS" |
1daf06b9 | 5484 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5485 | /* confdefs.h. */ |
5486 | _ACEOF | |
5487 | cat confdefs.h >>conftest.$ac_ext | |
5488 | cat >>conftest.$ac_ext <<_ACEOF | |
5489 | /* end confdefs.h. */ | |
1daf06b9 | 5490 | |
7f7d329e SP |
5491 | /* Override any GCC internal prototype to avoid an error. |
5492 | Use char because int might match the return type of a GCC | |
5493 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5494 | #ifdef __cplusplus |
5495 | extern "C" | |
5496 | #endif | |
1daf06b9 | 5497 | char compress2 (); |
1daf06b9 SP |
5498 | int |
5499 | main () | |
5500 | { | |
7f7d329e | 5501 | return compress2 (); |
1daf06b9 SP |
5502 | ; |
5503 | return 0; | |
5504 | } | |
5505 | _ACEOF | |
5506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5507 | if { (ac_try="$ac_link" |
5508 | case "(($ac_try" in | |
5509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5510 | *) ac_try_echo=$ac_try;; | |
5511 | esac | |
5512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5513 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5514 | ac_status=$? |
c9e4e868 SP |
5515 | grep -v '^ *+' conftest.er1 >conftest.err |
5516 | rm -f conftest.er1 | |
5517 | cat conftest.err >&5 | |
1daf06b9 | 5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5519 | (exit $ac_status); } && { |
5520 | test -z "$ac_c_werror_flag" || | |
5521 | test ! -s conftest.err | |
5522 | } && test -s conftest$ac_exeext && | |
5523 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5524 | ac_cv_lib_z_compress2=yes |
5525 | else | |
5526 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5527 | sed 's/^/| /' conftest.$ac_ext >&5 |
5528 | ||
7f7d329e | 5529 | ac_cv_lib_z_compress2=no |
1daf06b9 | 5530 | fi |
7f7d329e | 5531 | |
d2816d4c | 5532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5533 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5534 | LIBS=$ac_check_lib_save_LIBS |
5535 | fi | |
7f7d329e SP |
5536 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 |
5537 | echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } | |
1daf06b9 | 5538 | if test $ac_cv_lib_z_compress2 = yes; then |
4d5ed2f3 SP |
5539 | zlib_lib=yes |
5540 | else | |
1daf06b9 | 5541 | zlib_lib=no |
4d5ed2f3 SP |
5542 | fi |
5543 | ||
5544 | if test "$zlib_h" = yes -a "$zlib_lib" = yes; then | |
d7783603 SP |
5545 | if test "$STATICZ" = yes; then |
5546 | ZLIB="-Wl,-Bstatic -lz -Wl,-Bdynamic" | |
5547 | else | |
5548 | ZLIB="-lz" | |
5549 | fi | |
e7d18957 SP |
5550 | |
5551 | cat >>confdefs.h <<\_ACEOF | |
4d5ed2f3 | 5552 | #define HAVE_ZLIB 1 |
1daf06b9 | 5553 | _ACEOF |
4d5ed2f3 SP |
5554 | |
5555 | else | |
5556 | ZLIB="" | |
5557 | fi | |
5558 | ||
5559 | ||
7f7d329e SP |
5560 | { echo "$as_me:$LINENO: checking for bzlib.h" >&5 |
5561 | echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; } | |
1daf06b9 SP |
5562 | if test "${ac_cv_header_bzlib_h+set}" = set; then |
5563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1daf06b9 | 5564 | else |
d3e542e7 | 5565 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5566 | /* confdefs.h. */ |
5567 | _ACEOF | |
5568 | cat confdefs.h >>conftest.$ac_ext | |
5569 | cat >>conftest.$ac_ext <<_ACEOF | |
5570 | /* end confdefs.h. */ | |
1daf06b9 SP |
5571 | #include <bzlib.h> |
5572 | _ACEOF | |
7f7d329e SP |
5573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5574 | case "(($ac_try" in | |
5575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5576 | *) ac_try_echo=$ac_try;; | |
5577 | esac | |
5578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
1daf06b9 | 5580 | ac_status=$? |
cdfe1392 | 5581 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5582 | rm -f conftest.er1 |
5583 | cat conftest.err >&5 | |
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
5585 | (exit $ac_status); } >/dev/null && { |
5586 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5587 | test ! -s conftest.err | |
5588 | }; then | |
d3e542e7 | 5589 | ac_cv_header_bzlib_h=yes |
1daf06b9 SP |
5590 | else |
5591 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5592 | sed 's/^/| /' conftest.$ac_ext >&5 |
5593 | ||
d3e542e7 | 5594 | ac_cv_header_bzlib_h=no |
1daf06b9 | 5595 | fi |
7f7d329e | 5596 | |
1daf06b9 | 5597 | rm -f conftest.err conftest.$ac_ext |
88ef261e | 5598 | fi |
7f7d329e SP |
5599 | { echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 |
5600 | echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; } | |
1daf06b9 | 5601 | if test $ac_cv_header_bzlib_h = yes; then |
88ef261e SP |
5602 | bzlib_h=yes |
5603 | else | |
1daf06b9 | 5604 | bzlib_h=no |
88ef261e SP |
5605 | fi |
5606 | ||
1daf06b9 | 5607 | |
7f7d329e SP |
5608 | { echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5 |
5609 | echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6; } | |
1daf06b9 SP |
5610 | if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then |
5611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
88ef261e | 5612 | else |
1daf06b9 | 5613 | ac_check_lib_save_LIBS=$LIBS |
88ef261e | 5614 | LIBS="-lbz2 $LIBS" |
1daf06b9 | 5615 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5616 | /* confdefs.h. */ |
5617 | _ACEOF | |
5618 | cat confdefs.h >>conftest.$ac_ext | |
5619 | cat >>conftest.$ac_ext <<_ACEOF | |
5620 | /* end confdefs.h. */ | |
1daf06b9 | 5621 | |
7f7d329e SP |
5622 | /* Override any GCC internal prototype to avoid an error. |
5623 | Use char because int might match the return type of a GCC | |
5624 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5625 | #ifdef __cplusplus |
5626 | extern "C" | |
5627 | #endif | |
1daf06b9 | 5628 | char BZ2_bzBuffToBuffCompress (); |
1daf06b9 SP |
5629 | int |
5630 | main () | |
5631 | { | |
7f7d329e | 5632 | return BZ2_bzBuffToBuffCompress (); |
1daf06b9 SP |
5633 | ; |
5634 | return 0; | |
5635 | } | |
5636 | _ACEOF | |
5637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5638 | if { (ac_try="$ac_link" |
5639 | case "(($ac_try" in | |
5640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5641 | *) ac_try_echo=$ac_try;; | |
5642 | esac | |
5643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5644 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5645 | ac_status=$? |
c9e4e868 SP |
5646 | grep -v '^ *+' conftest.er1 >conftest.err |
5647 | rm -f conftest.er1 | |
5648 | cat conftest.err >&5 | |
1daf06b9 | 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5650 | (exit $ac_status); } && { |
5651 | test -z "$ac_c_werror_flag" || | |
5652 | test ! -s conftest.err | |
5653 | } && test -s conftest$ac_exeext && | |
5654 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5655 | ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes |
5656 | else | |
5657 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5658 | sed 's/^/| /' conftest.$ac_ext >&5 |
5659 | ||
7f7d329e | 5660 | ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no |
1daf06b9 | 5661 | fi |
7f7d329e | 5662 | |
d2816d4c | 5663 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5664 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5665 | LIBS=$ac_check_lib_save_LIBS |
5666 | fi | |
7f7d329e SP |
5667 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5 |
5668 | echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; } | |
1daf06b9 | 5669 | if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then |
88ef261e SP |
5670 | bzlib_lib=yes |
5671 | else | |
1daf06b9 | 5672 | bzlib_lib=no |
88ef261e SP |
5673 | fi |
5674 | ||
5675 | if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then | |
d7783603 SP |
5676 | if test "$STATICZ" = yes; then |
5677 | BZLIB="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic" | |
5678 | else | |
5679 | BZLIB="-lbz2" | |
5680 | fi | |
e7d18957 SP |
5681 | |
5682 | cat >>confdefs.h <<\_ACEOF | |
88ef261e | 5683 | #define HAVE_BZLIB 1 |
1daf06b9 | 5684 | _ACEOF |
88ef261e SP |
5685 | |
5686 | else | |
5687 | BZLIB="" | |
5688 | fi | |
5689 | ||
5690 | ||
1daf06b9 SP |
5691 | |
5692 | ||
5693 | ||
5694 | ||
5695 | ||
5696 | ||
5697 | ||
5698 | ||
5699 | ||
5700 | ||
5c1faba5 | 5701 | for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown |
1227625a | 5702 | do |
1daf06b9 | 5703 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7f7d329e SP |
5704 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5705 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5706 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
1daf06b9 SP |
5707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5708 | else | |
5709 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
5710 | /* confdefs.h. */ |
5711 | _ACEOF | |
5712 | cat confdefs.h >>conftest.$ac_ext | |
5713 | cat >>conftest.$ac_ext <<_ACEOF | |
5714 | /* end confdefs.h. */ | |
c9e4e868 SP |
5715 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5717 | #define $ac_func innocuous_$ac_func | |
5718 | ||
1227625a | 5719 | /* System header to define __stub macros and hopefully few prototypes, |
cdfe1392 SP |
5720 | which can conflict with char $ac_func (); below. |
5721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5722 | <limits.h> exists even on freestanding compilers. */ | |
c9e4e868 | 5723 | |
cdfe1392 SP |
5724 | #ifdef __STDC__ |
5725 | # include <limits.h> | |
5726 | #else | |
5727 | # include <assert.h> | |
5728 | #endif | |
c9e4e868 SP |
5729 | |
5730 | #undef $ac_func | |
5731 | ||
7f7d329e SP |
5732 | /* Override any GCC internal prototype to avoid an error. |
5733 | Use char because int might match the return type of a GCC | |
5734 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5735 | #ifdef __cplusplus |
5736 | extern "C" | |
5737 | #endif | |
1daf06b9 | 5738 | char $ac_func (); |
1227625a SP |
5739 | /* The GNU C library defines this for functions which it implements |
5740 | to always fail with ENOSYS. Some functions are actually named | |
5741 | something starting with __ and the normal name is an alias. */ | |
7f7d329e | 5742 | #if defined __stub_$ac_func || defined __stub___$ac_func |
1227625a | 5743 | choke me |
1227625a SP |
5744 | #endif |
5745 | ||
cdfe1392 SP |
5746 | int |
5747 | main () | |
5748 | { | |
7f7d329e | 5749 | return $ac_func (); |
1daf06b9 SP |
5750 | ; |
5751 | return 0; | |
5752 | } | |
5753 | _ACEOF | |
5754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5755 | if { (ac_try="$ac_link" |
5756 | case "(($ac_try" in | |
5757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5758 | *) ac_try_echo=$ac_try;; | |
5759 | esac | |
5760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5761 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5762 | ac_status=$? |
c9e4e868 SP |
5763 | grep -v '^ *+' conftest.er1 >conftest.err |
5764 | rm -f conftest.er1 | |
5765 | cat conftest.err >&5 | |
1daf06b9 | 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5767 | (exit $ac_status); } && { |
5768 | test -z "$ac_c_werror_flag" || | |
5769 | test ! -s conftest.err | |
5770 | } && test -s conftest$ac_exeext && | |
5771 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5772 | eval "$as_ac_var=yes" |
5773 | else | |
5774 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5775 | sed 's/^/| /' conftest.$ac_ext >&5 |
5776 | ||
7f7d329e | 5777 | eval "$as_ac_var=no" |
1daf06b9 | 5778 | fi |
7f7d329e | 5779 | |
d2816d4c | 5780 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5781 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 | 5782 | fi |
7f7d329e SP |
5783 | ac_res=`eval echo '${'$as_ac_var'}'` |
5784 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5785 | echo "${ECHO_T}$ac_res" >&6; } | |
1daf06b9 SP |
5786 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
5787 | cat >>confdefs.h <<_ACEOF | |
5788 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5789 | _ACEOF | |
1227625a | 5790 | |
1227625a SP |
5791 | fi |
5792 | done | |
5793 | ||
7f7d329e SP |
5794 | { echo "$as_me:$LINENO: checking for glob" >&5 |
5795 | echo $ECHO_N "checking for glob... $ECHO_C" >&6; } | |
1daf06b9 SP |
5796 | if test "${ac_cv_func_glob+set}" = set; then |
5797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c1faba5 | 5798 | else |
1daf06b9 | 5799 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5800 | /* confdefs.h. */ |
5801 | _ACEOF | |
5802 | cat confdefs.h >>conftest.$ac_ext | |
5803 | cat >>conftest.$ac_ext <<_ACEOF | |
5804 | /* end confdefs.h. */ | |
c9e4e868 SP |
5805 | /* Define glob to an innocuous variant, in case <limits.h> declares glob. |
5806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5807 | #define glob innocuous_glob | |
5808 | ||
5c1faba5 | 5809 | /* System header to define __stub macros and hopefully few prototypes, |
cdfe1392 SP |
5810 | which can conflict with char glob (); below. |
5811 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5812 | <limits.h> exists even on freestanding compilers. */ | |
c9e4e868 | 5813 | |
cdfe1392 SP |
5814 | #ifdef __STDC__ |
5815 | # include <limits.h> | |
5816 | #else | |
5817 | # include <assert.h> | |
5818 | #endif | |
c9e4e868 SP |
5819 | |
5820 | #undef glob | |
5821 | ||
7f7d329e SP |
5822 | /* Override any GCC internal prototype to avoid an error. |
5823 | Use char because int might match the return type of a GCC | |
5824 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5825 | #ifdef __cplusplus |
5826 | extern "C" | |
5827 | #endif | |
1daf06b9 | 5828 | char glob (); |
5c1faba5 SP |
5829 | /* The GNU C library defines this for functions which it implements |
5830 | to always fail with ENOSYS. Some functions are actually named | |
5831 | something starting with __ and the normal name is an alias. */ | |
7f7d329e | 5832 | #if defined __stub_glob || defined __stub___glob |
5c1faba5 | 5833 | choke me |
5c1faba5 SP |
5834 | #endif |
5835 | ||
cdfe1392 SP |
5836 | int |
5837 | main () | |
5838 | { | |
7f7d329e | 5839 | return glob (); |
1daf06b9 SP |
5840 | ; |
5841 | return 0; | |
5842 | } | |
5843 | _ACEOF | |
5844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5845 | if { (ac_try="$ac_link" |
5846 | case "(($ac_try" in | |
5847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5848 | *) ac_try_echo=$ac_try;; | |
5849 | esac | |
5850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5851 | (eval "$ac_link") 2>conftest.er1 | |
1daf06b9 | 5852 | ac_status=$? |
c9e4e868 SP |
5853 | grep -v '^ *+' conftest.er1 >conftest.err |
5854 | rm -f conftest.er1 | |
5855 | cat conftest.err >&5 | |
1daf06b9 | 5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5857 | (exit $ac_status); } && { |
5858 | test -z "$ac_c_werror_flag" || | |
5859 | test ! -s conftest.err | |
5860 | } && test -s conftest$ac_exeext && | |
5861 | $as_test_x conftest$ac_exeext; then | |
1daf06b9 SP |
5862 | ac_cv_func_glob=yes |
5863 | else | |
5864 | echo "$as_me: failed program was:" >&5 | |
cdfe1392 SP |
5865 | sed 's/^/| /' conftest.$ac_ext >&5 |
5866 | ||
7f7d329e | 5867 | ac_cv_func_glob=no |
1daf06b9 | 5868 | fi |
7f7d329e | 5869 | |
d2816d4c | 5870 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5871 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 | 5872 | fi |
7f7d329e SP |
5873 | { echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5 |
5874 | echo "${ECHO_T}$ac_cv_func_glob" >&6; } | |
1daf06b9 SP |
5875 | |
5876 | ||
7f7d329e SP |
5877 | { echo "$as_me:$LINENO: checking for extended glob routines" >&5 |
5878 | echo $ECHO_N "checking for extended glob routines... $ECHO_C" >&6; } | |
5c1faba5 | 5879 | if test "$ac_cv_func_glob" = "yes"; then |
e7d18957 | 5880 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5881 | /* confdefs.h. */ |
5882 | _ACEOF | |
5883 | cat confdefs.h >>conftest.$ac_ext | |
5884 | cat >>conftest.$ac_ext <<_ACEOF | |
5885 | /* end confdefs.h. */ | |
5c1faba5 SP |
5886 | |
5887 | # include <glob.h> | |
5888 | # ifdef GLOB_ALTDIRFUNC | |
5889 | yes | |
5890 | # endif | |
1daf06b9 SP |
5891 | |
5892 | _ACEOF | |
5c1faba5 | 5893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cdfe1392 | 5894 | $EGREP "yes" >/dev/null 2>&1; then |
5c1faba5 | 5895 | |
e7d18957 SP |
5896 | |
5897 | cat >>confdefs.h <<\_ACEOF | |
1daf06b9 SP |
5898 | #define HAVE_GLOB 1 |
5899 | _ACEOF | |
1227625a | 5900 | |
7f7d329e SP |
5901 | { echo "$as_me:$LINENO: result: yes" >&5 |
5902 | echo "${ECHO_T}yes" >&6; } | |
1227625a | 5903 | |
1227625a | 5904 | else |
1227625a | 5905 | |
7f7d329e SP |
5906 | { echo "$as_me:$LINENO: result: no" >&5 |
5907 | echo "${ECHO_T}no" >&6; } | |
1daf06b9 | 5908 | echo "Your system does not support extended glob, will use the internal routines" |
1227625a | 5909 | |
1227625a SP |
5910 | fi |
5911 | rm -f conftest* | |
5912 | ||
5913 | fi | |
5914 | ||
18282881 | 5915 | if test "$ERMT" != ""; then |
e7d18957 | 5916 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
7f7d329e SP |
5917 | { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 |
5918 | echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; } | |
18282881 SP |
5919 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
5920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5921 | fi | |
7f7d329e SP |
5922 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 |
5923 | echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; } | |
18282881 SP |
5924 | else |
5925 | # Is the header compilable? | |
7f7d329e SP |
5926 | { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5 |
5927 | echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; } | |
18282881 | 5928 | cat >conftest.$ac_ext <<_ACEOF |
18282881 SP |
5929 | /* confdefs.h. */ |
5930 | _ACEOF | |
5931 | cat confdefs.h >>conftest.$ac_ext | |
5932 | cat >>conftest.$ac_ext <<_ACEOF | |
5933 | /* end confdefs.h. */ | |
5934 | $ac_includes_default | |
5935 | #include <openssl/evp.h> | |
5936 | _ACEOF | |
5937 | rm -f conftest.$ac_objext | |
7f7d329e SP |
5938 | if { (ac_try="$ac_compile" |
5939 | case "(($ac_try" in | |
5940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5941 | *) ac_try_echo=$ac_try;; | |
5942 | esac | |
5943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5944 | (eval "$ac_compile") 2>conftest.er1 | |
18282881 | 5945 | ac_status=$? |
c9e4e868 SP |
5946 | grep -v '^ *+' conftest.er1 >conftest.err |
5947 | rm -f conftest.er1 | |
5948 | cat conftest.err >&5 | |
18282881 | 5949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5950 | (exit $ac_status); } && { |
5951 | test -z "$ac_c_werror_flag" || | |
5952 | test ! -s conftest.err | |
5953 | } && test -s conftest.$ac_objext; then | |
18282881 SP |
5954 | ac_header_compiler=yes |
5955 | else | |
5956 | echo "$as_me: failed program was:" >&5 | |
5957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5958 | ||
7f7d329e | 5959 | ac_header_compiler=no |
18282881 | 5960 | fi |
7f7d329e SP |
5961 | |
5962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5963 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5964 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
18282881 SP |
5965 | |
5966 | # Is the header present? | |
7f7d329e SP |
5967 | { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5 |
5968 | echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; } | |
18282881 | 5969 | cat >conftest.$ac_ext <<_ACEOF |
18282881 SP |
5970 | /* confdefs.h. */ |
5971 | _ACEOF | |
5972 | cat confdefs.h >>conftest.$ac_ext | |
5973 | cat >>conftest.$ac_ext <<_ACEOF | |
5974 | /* end confdefs.h. */ | |
5975 | #include <openssl/evp.h> | |
5976 | _ACEOF | |
7f7d329e SP |
5977 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5978 | case "(($ac_try" in | |
5979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5980 | *) ac_try_echo=$ac_try;; | |
5981 | esac | |
5982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5983 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
18282881 SP |
5984 | ac_status=$? |
5985 | grep -v '^ *+' conftest.er1 >conftest.err | |
5986 | rm -f conftest.er1 | |
5987 | cat conftest.err >&5 | |
5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d2816d4c SP |
5989 | (exit $ac_status); } >/dev/null && { |
5990 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5991 | test ! -s conftest.err | |
5992 | }; then | |
18282881 SP |
5993 | ac_header_preproc=yes |
5994 | else | |
5995 | echo "$as_me: failed program was:" >&5 | |
5996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5997 | ||
5998 | ac_header_preproc=no | |
5999 | fi | |
7f7d329e | 6000 | |
18282881 | 6001 | rm -f conftest.err conftest.$ac_ext |
7f7d329e SP |
6002 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6003 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
18282881 SP |
6004 | |
6005 | # So? What about this header? | |
c9e4e868 SP |
6006 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6007 | yes:no: ) | |
18282881 SP |
6008 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6009 | echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c9e4e868 SP |
6010 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5 |
6011 | echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;} | |
6012 | ac_header_preproc=yes | |
18282881 | 6013 | ;; |
c9e4e868 | 6014 | no:yes:* ) |
18282881 SP |
6015 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5 |
6016 | echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;} | |
c9e4e868 SP |
6017 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5 |
6018 | echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;} | |
6019 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5 | |
6020 | echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;} | |
6021 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6022 | echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
18282881 SP |
6023 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5 |
6024 | echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;} | |
c9e4e868 SP |
6025 | { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5 |
6026 | echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;} | |
7f7d329e | 6027 | |
18282881 SP |
6028 | ;; |
6029 | esac | |
7f7d329e SP |
6030 | { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 |
6031 | echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; } | |
18282881 SP |
6032 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
6033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6034 | else | |
6035 | ac_cv_header_openssl_evp_h=$ac_header_preproc | |
6036 | fi | |
7f7d329e SP |
6037 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 |
6038 | echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; } | |
18282881 SP |
6039 | |
6040 | fi | |
6041 | if test $ac_cv_header_openssl_evp_h = yes; then | |
6042 | evp_h=yes | |
6043 | else | |
6044 | evp_h=no | |
6045 | fi | |
6046 | ||
6047 | ||
7f7d329e SP |
6048 | { echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5 |
6049 | echo $ECHO_N "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... $ECHO_C" >&6; } | |
18282881 SP |
6050 | if test "${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+set}" = set; then |
6051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6052 | else | |
6053 | ac_check_lib_save_LIBS=$LIBS | |
6054 | LIBS="-lcrypto $LIBS" | |
6055 | cat >conftest.$ac_ext <<_ACEOF | |
18282881 SP |
6056 | /* confdefs.h. */ |
6057 | _ACEOF | |
6058 | cat confdefs.h >>conftest.$ac_ext | |
6059 | cat >>conftest.$ac_ext <<_ACEOF | |
6060 | /* end confdefs.h. */ | |
6061 | ||
7f7d329e SP |
6062 | /* Override any GCC internal prototype to avoid an error. |
6063 | Use char because int might match the return type of a GCC | |
6064 | builtin and then its argument prototype would still apply. */ | |
18282881 SP |
6065 | #ifdef __cplusplus |
6066 | extern "C" | |
6067 | #endif | |
18282881 SP |
6068 | char EVP_CIPHER_CTX_set_padding (); |
6069 | int | |
6070 | main () | |
6071 | { | |
7f7d329e | 6072 | return EVP_CIPHER_CTX_set_padding (); |
18282881 SP |
6073 | ; |
6074 | return 0; | |
6075 | } | |
6076 | _ACEOF | |
6077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
6078 | if { (ac_try="$ac_link" |
6079 | case "(($ac_try" in | |
6080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6081 | *) ac_try_echo=$ac_try;; | |
6082 | esac | |
6083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6084 | (eval "$ac_link") 2>conftest.er1 | |
18282881 | 6085 | ac_status=$? |
c9e4e868 SP |
6086 | grep -v '^ *+' conftest.er1 >conftest.err |
6087 | rm -f conftest.er1 | |
6088 | cat conftest.err >&5 | |
18282881 | 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6090 | (exit $ac_status); } && { |
6091 | test -z "$ac_c_werror_flag" || | |
6092 | test ! -s conftest.err | |
6093 | } && test -s conftest$ac_exeext && | |
6094 | $as_test_x conftest$ac_exeext; then | |
18282881 SP |
6095 | ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes |
6096 | else | |
6097 | echo "$as_me: failed program was:" >&5 | |
6098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6099 | ||
7f7d329e | 6100 | ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no |
18282881 | 6101 | fi |
7f7d329e | 6102 | |
d2816d4c | 6103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 6104 | conftest$ac_exeext conftest.$ac_ext |
18282881 SP |
6105 | LIBS=$ac_check_lib_save_LIBS |
6106 | fi | |
7f7d329e SP |
6107 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5 |
6108 | echo "${ECHO_T}$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; } | |
18282881 SP |
6109 | if test $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding = yes; then |
6110 | crypto_lib=yes | |
6111 | else | |
6112 | crypto_lib=no | |
6113 | fi | |
6114 | ||
6115 | if test "$evp_h" = no -o "$crypto_lib" = no; then | |
6116 | { { echo "$as_me:$LINENO: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&5 | |
6117 | echo "$as_me: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&2;} | |
6118 | { (exit or configure without --enable-ermt); exit or configure without --enable-ermt; }; } | |
6119 | fi | |
6120 | fi | |
6121 | ||
7f7d329e SP |
6122 | { echo "$as_me:$LINENO: checking for quad_t" >&5 |
6123 | echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; } | |
1daf06b9 SP |
6124 | if test "${ac_cv_type_quad_t+set}" = set; then |
6125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 6126 | else |
1daf06b9 | 6127 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
6128 | /* confdefs.h. */ |
6129 | _ACEOF | |
6130 | cat confdefs.h >>conftest.$ac_ext | |
6131 | cat >>conftest.$ac_ext <<_ACEOF | |
6132 | /* end confdefs.h. */ | |
1daf06b9 | 6133 | $ac_includes_default |
7f7d329e | 6134 | typedef quad_t ac__type_new_; |
1daf06b9 SP |
6135 | int |
6136 | main () | |
6137 | { | |
7f7d329e | 6138 | if ((ac__type_new_ *) 0) |
1daf06b9 | 6139 | return 0; |
7f7d329e | 6140 | if (sizeof (ac__type_new_)) |
1daf06b9 SP |
6141 | return 0; |
6142 | ; | |
6143 | return 0; | |
6144 | } | |
6145 | _ACEOF | |
6146 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6147 | if { (ac_try="$ac_compile" |
6148 | case "(($ac_try" in | |
6149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6150 | *) ac_try_echo=$ac_try;; | |
6151 | esac | |
6152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6153 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 6154 | ac_status=$? |
c9e4e868 SP |
6155 | grep -v '^ *+' conftest.er1 >conftest.err |
6156 | rm -f conftest.er1 | |
6157 | cat conftest.err >&5 | |
1daf06b9 | 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6159 | (exit $ac_status); } && { |
6160 | test -z "$ac_c_werror_flag" || | |
6161 | test ! -s conftest.err | |
6162 | } && test -s conftest.$ac_objext; then | |
1227625a SP |
6163 | ac_cv_type_quad_t=yes |
6164 | else | |
1daf06b9 | 6165 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
6166 | sed 's/^/| /' conftest.$ac_ext >&5 |
6167 | ||
7f7d329e | 6168 | ac_cv_type_quad_t=no |
1227625a | 6169 | fi |
7f7d329e SP |
6170 | |
6171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6172 | fi |
7f7d329e SP |
6173 | { echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5 |
6174 | echo "${ECHO_T}$ac_cv_type_quad_t" >&6; } | |
1daf06b9 SP |
6175 | if test $ac_cv_type_quad_t = yes; then |
6176 | : | |
6177 | else | |
6178 | ||
6179 | cat >>confdefs.h <<_ACEOF | |
1a886de8 | 6180 | #define quad_t int64_t |
1daf06b9 | 6181 | _ACEOF |
1227625a SP |
6182 | |
6183 | fi | |
6184 | ||
7f7d329e SP |
6185 | { echo "$as_me:$LINENO: checking for u_quad_t" >&5 |
6186 | echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6; } | |
1daf06b9 SP |
6187 | if test "${ac_cv_type_u_quad_t+set}" = set; then |
6188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1227625a | 6189 | else |
1daf06b9 | 6190 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
6191 | /* confdefs.h. */ |
6192 | _ACEOF | |
6193 | cat confdefs.h >>conftest.$ac_ext | |
6194 | cat >>conftest.$ac_ext <<_ACEOF | |
6195 | /* end confdefs.h. */ | |
1daf06b9 | 6196 | $ac_includes_default |
7f7d329e | 6197 | typedef u_quad_t ac__type_new_; |
1daf06b9 SP |
6198 | int |
6199 | main () | |
6200 | { | |
7f7d329e | 6201 | if ((ac__type_new_ *) 0) |
1daf06b9 | 6202 | return 0; |
7f7d329e | 6203 | if (sizeof (ac__type_new_)) |
1daf06b9 SP |
6204 | return 0; |
6205 | ; | |
6206 | return 0; | |
6207 | } | |
6208 | _ACEOF | |
6209 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6210 | if { (ac_try="$ac_compile" |
6211 | case "(($ac_try" in | |
6212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6213 | *) ac_try_echo=$ac_try;; | |
6214 | esac | |
6215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6216 | (eval "$ac_compile") 2>conftest.er1 | |
1daf06b9 | 6217 | ac_status=$? |
c9e4e868 SP |
6218 | grep -v '^ *+' conftest.er1 >conftest.err |
6219 | rm -f conftest.er1 | |
6220 | cat conftest.err >&5 | |
1daf06b9 | 6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6222 | (exit $ac_status); } && { |
6223 | test -z "$ac_c_werror_flag" || | |
6224 | test ! -s conftest.err | |
6225 | } && test -s conftest.$ac_objext; then | |
1227625a SP |
6226 | ac_cv_type_u_quad_t=yes |
6227 | else | |
1daf06b9 | 6228 | echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
6229 | sed 's/^/| /' conftest.$ac_ext >&5 |
6230 | ||
7f7d329e | 6231 | ac_cv_type_u_quad_t=no |
1227625a | 6232 | fi |
7f7d329e SP |
6233 | |
6234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6235 | fi |
7f7d329e SP |
6236 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5 |
6237 | echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6; } | |
1daf06b9 SP |
6238 | if test $ac_cv_type_u_quad_t = yes; then |
6239 | : | |
6240 | else | |
6241 | ||
6242 | cat >>confdefs.h <<_ACEOF | |
1a886de8 | 6243 | #define u_quad_t uint64_t |
1daf06b9 | 6244 | _ACEOF |
1227625a SP |
6245 | |
6246 | fi | |
6247 | ||
6248 | ||
6249 | top_builddir=`cd .; pwd` | |
6250 | ||
6251 | ||
6252 | test -d compat || mkdir compat | |
6253 | test -d compat/lib || mkdir compat/lib | |
6254 | ||
7f7d329e SP |
6255 | ac_config_files="$ac_config_files MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE" |
6256 | ||
1daf06b9 | 6257 | cat >confcache <<\_ACEOF |
1227625a SP |
6258 | # This file is a shell script that caches the results of configure |
6259 | # tests run on this system so they can be shared between configure | |
1daf06b9 SP |
6260 | # scripts and configure runs, see configure's option --config-cache. |
6261 | # It is not useful on other systems. If it contains results you don't | |
6262 | # want to keep, you may remove or edit it. | |
1227625a | 6263 | # |
1daf06b9 SP |
6264 | # config.status only pays attention to the cache file if you give it |
6265 | # the --recheck option to rerun configure. | |
1227625a | 6266 | # |
cdfe1392 | 6267 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
1daf06b9 SP |
6268 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6269 | # following values. | |
6270 | ||
6271 | _ACEOF | |
6272 | ||
1227625a SP |
6273 | # The following way of writing the cache mishandles newlines in values, |
6274 | # but we know of no workaround that is simple, portable, and efficient. | |
7f7d329e | 6275 | # So, we kill variables containing newlines. |
1227625a SP |
6276 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6277 | # and sets the high bit in the cache file unless we assign to the vars. | |
7f7d329e SP |
6278 | ( |
6279 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6280 | eval ac_val=\$$ac_var | |
6281 | case $ac_val in #( | |
6282 | *${as_nl}*) | |
6283 | case $ac_var in #( | |
6284 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
6285 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
6286 | esac | |
6287 | case $ac_var in #( | |
6288 | _ | IFS | as_nl) ;; #( | |
6289 | *) $as_unset $ac_var ;; | |
6290 | esac ;; | |
6291 | esac | |
6292 | done | |
6293 | ||
1daf06b9 | 6294 | (set) 2>&1 | |
7f7d329e SP |
6295 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6296 | *${as_nl}ac_space=\ *) | |
1daf06b9 SP |
6297 | # `set' does not quote correctly, so add quotes (double-quote |
6298 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6299 | sed -n \ | |
c9e4e868 SP |
6300 | "s/'/'\\\\''/g; |
6301 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7f7d329e | 6302 | ;; #( |
1daf06b9 SP |
6303 | *) |
6304 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7f7d329e | 6305 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1daf06b9 | 6306 | ;; |
7f7d329e SP |
6307 | esac | |
6308 | sort | |
6309 | ) | | |
1daf06b9 | 6310 | sed ' |
7f7d329e | 6311 | /^ac_cv_env_/b end |
1daf06b9 | 6312 | t clear |
7f7d329e | 6313 | :clear |
1daf06b9 SP |
6314 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6315 | t end | |
7f7d329e SP |
6316 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6317 | :end' >>confcache | |
6318 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6319 | if test -w "$cache_file"; then | |
6320 | test "x$cache_file" != "x/dev/null" && | |
6321 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
6322 | echo "$as_me: updating cache $cache_file" >&6;} | |
1daf06b9 | 6323 | cat confcache >$cache_file |
1227625a | 6324 | else |
7f7d329e SP |
6325 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
6326 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
1227625a SP |
6327 | fi |
6328 | fi | |
6329 | rm -f confcache | |
6330 | ||
1227625a SP |
6331 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6332 | # Let make expand exec_prefix. | |
6333 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6334 | ||
1227625a SP |
6335 | DEFS=-DHAVE_CONFIG_H |
6336 | ||
cdfe1392 SP |
6337 | ac_libobjs= |
6338 | ac_ltlibobjs= | |
6339 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6340 | # 1. Remove the extension, and $U if already installed. | |
7f7d329e SP |
6341 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6342 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
6343 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6344 | # will be set to the directory where LIBOBJS objects are built. | |
6345 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6346 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
cdfe1392 SP |
6347 | done |
6348 | LIBOBJS=$ac_libobjs | |
6349 | ||
6350 | LTLIBOBJS=$ac_ltlibobjs | |
6351 | ||
6352 | ||
1227625a | 6353 | |
1daf06b9 SP |
6354 | : ${CONFIG_STATUS=./config.status} |
6355 | ac_clean_files_save=$ac_clean_files | |
6356 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6357 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6358 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6359 | cat >$CONFIG_STATUS <<_ACEOF | |
6360 | #! $SHELL | |
6361 | # Generated by $as_me. | |
1227625a | 6362 | # Run this file to recreate the current configuration. |
1227625a | 6363 | # Compiler output produced by configure, useful for debugging |
1daf06b9 | 6364 | # configure, is in config.log if it exists. |
1227625a | 6365 | |
1daf06b9 | 6366 | debug=false |
cdfe1392 SP |
6367 | ac_cs_recheck=false |
6368 | ac_cs_silent=false | |
1daf06b9 SP |
6369 | SHELL=\${CONFIG_SHELL-$SHELL} |
6370 | _ACEOF | |
6371 | ||
6372 | cat >>$CONFIG_STATUS <<\_ACEOF | |
1daf06b9 SP |
6373 | ## --------------------- ## |
6374 | ## M4sh Initialization. ## | |
6375 | ## --------------------- ## | |
6376 | ||
d2816d4c SP |
6377 | # Be more Bourne compatible |
6378 | DUALCASE=1; export DUALCASE # for MKS sh | |
1daf06b9 SP |
6379 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
6380 | emulate sh | |
6381 | NULLCMD=: | |
cdfe1392 SP |
6382 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
6383 | # is contrary to our usage. Disable this feature. | |
6384 | alias -g '${1+"$@"}'='"$@"' | |
7f7d329e SP |
6385 | setopt NO_GLOB_SUBST |
6386 | else | |
d2816d4c SP |
6387 | case `(set -o) 2>/dev/null` in |
6388 | *posix*) set -o posix ;; | |
6389 | esac | |
6390 | ||
1daf06b9 | 6391 | fi |
d2816d4c SP |
6392 | |
6393 | ||
1daf06b9 | 6394 | |
7f7d329e SP |
6395 | |
6396 | # PATH needs CR | |
6397 | # Avoid depending upon Character Ranges. | |
6398 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6399 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6400 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6401 | as_cr_digits='0123456789' | |
6402 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6403 | ||
6404 | # The user is always right. | |
6405 | if test "${PATH_SEPARATOR+set}" != set; then | |
6406 | echo "#! /bin/sh" >conf$$.sh | |
6407 | echo "exit 0" >>conf$$.sh | |
6408 | chmod +x conf$$.sh | |
6409 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6410 | PATH_SEPARATOR=';' | |
6411 | else | |
6412 | PATH_SEPARATOR=: | |
6413 | fi | |
6414 | rm -f conf$$.sh | |
6415 | fi | |
6416 | ||
1daf06b9 | 6417 | # Support unset when possible. |
c9e4e868 | 6418 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
1daf06b9 SP |
6419 | as_unset=unset |
6420 | else | |
6421 | as_unset=false | |
6422 | fi | |
6423 | ||
cdfe1392 | 6424 | |
7f7d329e SP |
6425 | # IFS |
6426 | # We need space, tab and new line, in precisely that order. Quoting is | |
6427 | # there to prevent editors from complaining about space-tab. | |
6428 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6429 | # splitting by setting IFS to empty value.) | |
6430 | as_nl=' | |
6431 | ' | |
6432 | IFS=" "" $as_nl" | |
6433 | ||
6434 | # Find who we are. Look in the path if we contain no directory separator. | |
6435 | case $0 in | |
6436 | *[\\/]* ) as_myself=$0 ;; | |
6437 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6438 | for as_dir in $PATH | |
6439 | do | |
6440 | IFS=$as_save_IFS | |
6441 | test -z "$as_dir" && as_dir=. | |
6442 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6443 | done | |
6444 | IFS=$as_save_IFS | |
6445 | ||
6446 | ;; | |
6447 | esac | |
6448 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6449 | # in which case we are not to be found in the path. | |
6450 | if test "x$as_myself" = x; then | |
6451 | as_myself=$0 | |
6452 | fi | |
6453 | if test ! -f "$as_myself"; then | |
6454 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6455 | { (exit 1); exit 1; } | |
6456 | fi | |
6457 | ||
cdfe1392 | 6458 | # Work around bugs in pre-3.0 UWIN ksh. |
7f7d329e SP |
6459 | for as_var in ENV MAIL MAILPATH |
6460 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
6461 | done | |
cdfe1392 SP |
6462 | PS1='$ ' |
6463 | PS2='> ' | |
6464 | PS4='+ ' | |
6465 | ||
6466 | # NLS nuisances. | |
6467 | for as_var in \ | |
6468 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6469 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6470 | LC_TELEPHONE LC_TIME | |
6471 | do | |
c9e4e868 | 6472 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
cdfe1392 SP |
6473 | eval $as_var=C; export $as_var |
6474 | else | |
7f7d329e | 6475 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
cdfe1392 SP |
6476 | fi |
6477 | done | |
6478 | ||
6479 | # Required to use basename. | |
7f7d329e SP |
6480 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6481 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
cdfe1392 SP |
6482 | as_expr=expr |
6483 | else | |
6484 | as_expr=false | |
6485 | fi | |
6486 | ||
7f7d329e | 6487 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
cdfe1392 SP |
6488 | as_basename=basename |
6489 | else | |
6490 | as_basename=false | |
6491 | fi | |
1daf06b9 SP |
6492 | |
6493 | ||
6494 | # Name of the executable. | |
7f7d329e | 6495 | as_me=`$as_basename -- "$0" || |
1daf06b9 SP |
6496 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6497 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 6498 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 6499 | echo X/"$0" | |
7f7d329e SP |
6500 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
6501 | s//\1/ | |
6502 | q | |
6503 | } | |
6504 | /^X\/\(\/\/\)$/{ | |
6505 | s//\1/ | |
6506 | q | |
6507 | } | |
6508 | /^X\/\(\/\).*/{ | |
6509 | s//\1/ | |
6510 | q | |
6511 | } | |
6512 | s/.*/./; q'` | |
1daf06b9 | 6513 | |
7f7d329e SP |
6514 | # CDPATH. |
6515 | $as_unset CDPATH | |
1daf06b9 SP |
6516 | |
6517 | ||
1daf06b9 | 6518 | |
1daf06b9 SP |
6519 | as_lineno_1=$LINENO |
6520 | as_lineno_2=$LINENO | |
1daf06b9 | 6521 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7f7d329e | 6522 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
1daf06b9 SP |
6523 | |
6524 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6525 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7f7d329e SP |
6526 | # line-number line after each line using $LINENO; the second 'sed' |
6527 | # does the real work. The second script uses 'N' to pair each | |
6528 | # line-number line with the line containing $LINENO, and appends | |
6529 | # trailing '-' during substitution so that $LINENO is not a special | |
6530 | # case at line end. | |
1daf06b9 | 6531 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7f7d329e SP |
6532 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
6533 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
6534 | sed -n ' | |
6535 | p | |
6536 | /[$]LINENO/= | |
6537 | ' <$as_myself | | |
1daf06b9 | 6538 | sed ' |
7f7d329e SP |
6539 | s/[$]LINENO.*/&-/ |
6540 | t lineno | |
6541 | b | |
6542 | :lineno | |
1daf06b9 | 6543 | N |
7f7d329e SP |
6544 | :loop |
6545 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1daf06b9 | 6546 | t loop |
7f7d329e | 6547 | s/-\n.*// |
1daf06b9 | 6548 | ' >$as_me.lineno && |
7f7d329e SP |
6549 | chmod +x "$as_me.lineno" || |
6550 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
1daf06b9 SP |
6551 | { (exit 1); exit 1; }; } |
6552 | ||
6553 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6554 | # (the dirname of $[0] is not the place where we might find the | |
7f7d329e SP |
6555 | # original and so on. Autoconf is especially sensitive to this). |
6556 | . "./$as_me.lineno" | |
1daf06b9 SP |
6557 | # Exit status is that of the last command. |
6558 | exit | |
6559 | } | |
6560 | ||
6561 | ||
7f7d329e SP |
6562 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6563 | as_dirname=dirname | |
6564 | else | |
6565 | as_dirname=false | |
6566 | fi | |
6567 | ||
6568 | ECHO_C= ECHO_N= ECHO_T= | |
6569 | case `echo -n x` in | |
6570 | -n*) | |
6571 | case `echo 'x\c'` in | |
6572 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6573 | *) ECHO_C='\c';; | |
6574 | esac;; | |
6575 | *) | |
6576 | ECHO_N='-n';; | |
1daf06b9 SP |
6577 | esac |
6578 | ||
7f7d329e SP |
6579 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6580 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1daf06b9 SP |
6581 | as_expr=expr |
6582 | else | |
6583 | as_expr=false | |
6584 | fi | |
6585 | ||
6586 | rm -f conf$$ conf$$.exe conf$$.file | |
7f7d329e SP |
6587 | if test -d conf$$.dir; then |
6588 | rm -f conf$$.dir/conf$$.file | |
6589 | else | |
6590 | rm -f conf$$.dir | |
6591 | mkdir conf$$.dir | |
6592 | fi | |
1daf06b9 SP |
6593 | echo >conf$$.file |
6594 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7f7d329e SP |
6595 | as_ln_s='ln -s' |
6596 | # ... but there are two gotchas: | |
6597 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6598 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6599 | # In both cases, we have to default to `cp -p'. | |
6600 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
1daf06b9 | 6601 | as_ln_s='cp -p' |
1daf06b9 SP |
6602 | elif ln conf$$.file conf$$ 2>/dev/null; then |
6603 | as_ln_s=ln | |
6604 | else | |
6605 | as_ln_s='cp -p' | |
6606 | fi | |
7f7d329e SP |
6607 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6608 | rmdir conf$$.dir 2>/dev/null | |
1daf06b9 | 6609 | |
cdfe1392 SP |
6610 | if mkdir -p . 2>/dev/null; then |
6611 | as_mkdir_p=: | |
6612 | else | |
c9e4e868 | 6613 | test -d ./-p && rmdir ./-p |
cdfe1392 SP |
6614 | as_mkdir_p=false |
6615 | fi | |
6616 | ||
d2816d4c SP |
6617 | if test -x / >/dev/null 2>&1; then |
6618 | as_test_x='test -x' | |
7f7d329e | 6619 | else |
d2816d4c SP |
6620 | if ls -dL / >/dev/null 2>&1; then |
6621 | as_ls_L_option=L | |
6622 | else | |
6623 | as_ls_L_option= | |
6624 | fi | |
6625 | as_test_x=' | |
6626 | eval sh -c '\'' | |
6627 | if test -d "$1"; then | |
6628 | test -d "$1/."; | |
6629 | else | |
6630 | case $1 in | |
6631 | -*)set "./$1";; | |
6632 | esac; | |
6633 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
6634 | ???[sx]*):;;*)false;;esac;fi | |
6635 | '\'' sh | |
6636 | ' | |
7f7d329e | 6637 | fi |
d2816d4c | 6638 | as_executable_p=$as_test_x |
1daf06b9 SP |
6639 | |
6640 | # Sed expression to map a string onto a valid CPP name. | |
c9e4e868 | 6641 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
6642 | |
6643 | # Sed expression to map a string onto a valid variable name. | |
c9e4e868 | 6644 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
6645 | |
6646 | ||
1daf06b9 SP |
6647 | exec 6>&1 |
6648 | ||
7f7d329e | 6649 | # Save the log message, to keep $[0] and so on meaningful, and to |
1daf06b9 | 6650 | # report actual input values of CONFIG_FILES etc. instead of their |
7f7d329e SP |
6651 | # values after options handling. |
6652 | ac_log=" | |
1daf06b9 | 6653 | This file was extended by $as_me, which was |
d2816d4c | 6654 | generated by GNU Autoconf 2.61. Invocation command line was |
1daf06b9 SP |
6655 | |
6656 | CONFIG_FILES = $CONFIG_FILES | |
6657 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6658 | CONFIG_LINKS = $CONFIG_LINKS | |
6659 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6660 | $ $0 $@ | |
6661 | ||
7f7d329e SP |
6662 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6663 | " | |
6664 | ||
1daf06b9 SP |
6665 | _ACEOF |
6666 | ||
7f7d329e | 6667 | cat >>$CONFIG_STATUS <<_ACEOF |
1daf06b9 | 6668 | # Files that config.status was made for. |
7f7d329e SP |
6669 | config_files="$ac_config_files" |
6670 | config_headers="$ac_config_headers" | |
1daf06b9 | 6671 | |
7f7d329e | 6672 | _ACEOF |
1daf06b9 SP |
6673 | |
6674 | cat >>$CONFIG_STATUS <<\_ACEOF | |
1daf06b9 SP |
6675 | ac_cs_usage="\ |
6676 | \`$as_me' instantiates files from templates according to the | |
6677 | current configuration. | |
6678 | ||
6679 | Usage: $0 [OPTIONS] [FILE]... | |
6680 | ||
6681 | -h, --help print this help, then exit | |
d2816d4c | 6682 | -V, --version print version number and configuration settings, then exit |
cdfe1392 | 6683 | -q, --quiet do not print progress messages |
1daf06b9 SP |
6684 | -d, --debug don't remove temporary files |
6685 | --recheck update $as_me by reconfiguring in the same conditions | |
6686 | --file=FILE[:TEMPLATE] | |
c9e4e868 | 6687 | instantiate the configuration file FILE |
1daf06b9 | 6688 | --header=FILE[:TEMPLATE] |
c9e4e868 | 6689 | instantiate the configuration header FILE |
1daf06b9 SP |
6690 | |
6691 | Configuration files: | |
6692 | $config_files | |
6693 | ||
6694 | Configuration headers: | |
6695 | $config_headers | |
6696 | ||
6697 | Report bugs to <bug-autoconf@gnu.org>." | |
1daf06b9 | 6698 | |
7f7d329e | 6699 | _ACEOF |
1daf06b9 SP |
6700 | cat >>$CONFIG_STATUS <<_ACEOF |
6701 | ac_cs_version="\\ | |
6702 | config.status | |
d2816d4c | 6703 | configured by $0, generated by GNU Autoconf 2.61, |
7f7d329e | 6704 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
1daf06b9 | 6705 | |
7f7d329e | 6706 | Copyright (C) 2006 Free Software Foundation, Inc. |
1daf06b9 SP |
6707 | This config.status script is free software; the Free Software Foundation |
6708 | gives unlimited permission to copy, distribute and modify it." | |
7f7d329e SP |
6709 | |
6710 | ac_pwd='$ac_pwd' | |
6711 | srcdir='$srcdir' | |
6712 | INSTALL='$INSTALL' | |
1daf06b9 SP |
6713 | _ACEOF |
6714 | ||
6715 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6716 | # If no file are specified by the user, then we need to provide default | |
6717 | # value. By we need to know if files were specified by the user. | |
6718 | ac_need_defaults=: | |
6719 | while test $# != 0 | |
1227625a | 6720 | do |
1daf06b9 SP |
6721 | case $1 in |
6722 | --*=*) | |
7f7d329e SP |
6723 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6724 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
cdfe1392 SP |
6725 | ac_shift=: |
6726 | ;; | |
7f7d329e | 6727 | *) |
cdfe1392 SP |
6728 | ac_option=$1 |
6729 | ac_optarg=$2 | |
6730 | ac_shift=shift | |
1daf06b9 | 6731 | ;; |
1daf06b9 SP |
6732 | esac |
6733 | ||
cdfe1392 | 6734 | case $ac_option in |
1daf06b9 | 6735 | # Handling of the options. |
cdfe1392 SP |
6736 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6737 | ac_cs_recheck=: ;; | |
7f7d329e SP |
6738 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6739 | echo "$ac_cs_version"; exit ;; | |
6740 | --debug | --debu | --deb | --de | --d | -d ) | |
1daf06b9 SP |
6741 | debug=: ;; |
6742 | --file | --fil | --fi | --f ) | |
cdfe1392 SP |
6743 | $ac_shift |
6744 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
1daf06b9 SP |
6745 | ac_need_defaults=false;; |
6746 | --header | --heade | --head | --hea ) | |
cdfe1392 SP |
6747 | $ac_shift |
6748 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
1daf06b9 | 6749 | ac_need_defaults=false;; |
7f7d329e SP |
6750 | --he | --h) |
6751 | # Conflict between --help and --header | |
6752 | { echo "$as_me: error: ambiguous option: $1 | |
6753 | Try \`$0 --help' for more information." >&2 | |
6754 | { (exit 1); exit 1; }; };; | |
6755 | --help | --hel | -h ) | |
6756 | echo "$ac_cs_usage"; exit ;; | |
cdfe1392 SP |
6757 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6758 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6759 | ac_cs_silent=: ;; | |
1daf06b9 SP |
6760 | |
6761 | # This is an error. | |
7f7d329e SP |
6762 | -*) { echo "$as_me: error: unrecognized option: $1 |
6763 | Try \`$0 --help' for more information." >&2 | |
1daf06b9 SP |
6764 | { (exit 1); exit 1; }; } ;; |
6765 | ||
7f7d329e SP |
6766 | *) ac_config_targets="$ac_config_targets $1" |
6767 | ac_need_defaults=false ;; | |
1daf06b9 | 6768 | |
1227625a | 6769 | esac |
1daf06b9 | 6770 | shift |
1227625a SP |
6771 | done |
6772 | ||
cdfe1392 SP |
6773 | ac_configure_extra_args= |
6774 | ||
6775 | if $ac_cs_silent; then | |
6776 | exec 6>/dev/null | |
6777 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6778 | fi | |
6779 | ||
6780 | _ACEOF | |
6781 | cat >>$CONFIG_STATUS <<_ACEOF | |
6782 | if \$ac_cs_recheck; then | |
7f7d329e SP |
6783 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
6784 | CONFIG_SHELL=$SHELL | |
6785 | export CONFIG_SHELL | |
6786 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
cdfe1392 SP |
6787 | fi |
6788 | ||
1daf06b9 | 6789 | _ACEOF |
7f7d329e SP |
6790 | cat >>$CONFIG_STATUS <<\_ACEOF |
6791 | exec 5>>config.log | |
6792 | { | |
6793 | echo | |
6794 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6795 | ## Running $as_me. ## | |
6796 | _ASBOX | |
6797 | echo "$ac_log" | |
6798 | } >&5 | |
1227625a | 6799 | |
7f7d329e SP |
6800 | _ACEOF |
6801 | cat >>$CONFIG_STATUS <<_ACEOF | |
6802 | _ACEOF | |
1daf06b9 SP |
6803 | |
6804 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7f7d329e SP |
6805 | |
6806 | # Handling of arguments. | |
1daf06b9 SP |
6807 | for ac_config_target in $ac_config_targets |
6808 | do | |
7f7d329e SP |
6809 | case $ac_config_target in |
6810 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
6811 | "MCONFIG") CONFIG_FILES="$CONFIG_FILES MCONFIG" ;; | |
6812 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
6813 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
6814 | "compat/include/Makefile") CONFIG_FILES="$CONFIG_FILES compat/include/Makefile" ;; | |
6815 | "compat/lib/Makefile") CONFIG_FILES="$CONFIG_FILES compat/lib/Makefile" ;; | |
6816 | "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;; | |
6817 | "restore/Makefile") CONFIG_FILES="$CONFIG_FILES restore/Makefile" ;; | |
6818 | "$RMTMAKEFILE") CONFIG_FILES="$CONFIG_FILES $RMTMAKEFILE" ;; | |
6819 | ||
1daf06b9 SP |
6820 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
6821 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6822 | { (exit 1); exit 1; }; };; | |
6823 | esac | |
6824 | done | |
6825 | ||
7f7d329e | 6826 | |
1daf06b9 SP |
6827 | # If the user did not use the arguments to specify the items to instantiate, |
6828 | # then the envvar interface is used. Set only those that are not. | |
6829 | # We use the long form for the default assignment because of an extremely | |
6830 | # bizarre bug on SunOS 4.1.3. | |
6831 | if $ac_need_defaults; then | |
6832 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6833 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6834 | fi | |
6835 | ||
cdfe1392 | 6836 | # Have a temporary directory for convenience. Make it in the build tree |
7f7d329e | 6837 | # simply because there is no reason against having it here, and in addition, |
cdfe1392 | 6838 | # creating and moving files from /tmp can sometimes cause problems. |
7f7d329e SP |
6839 | # Hook for its removal unless debugging. |
6840 | # Note that there is a small window in which the directory will not be cleaned: | |
6841 | # after its creation but before its name has been assigned to `$tmp'. | |
1daf06b9 SP |
6842 | $debug || |
6843 | { | |
7f7d329e SP |
6844 | tmp= |
6845 | trap 'exit_status=$? | |
6846 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6847 | ' 0 | |
1daf06b9 SP |
6848 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
6849 | } | |
1daf06b9 | 6850 | # Create a (secure) tmp directory for tmp files. |
cdfe1392 | 6851 | |
1daf06b9 | 6852 | { |
7f7d329e | 6853 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1daf06b9 SP |
6854 | test -n "$tmp" && test -d "$tmp" |
6855 | } || | |
6856 | { | |
7f7d329e SP |
6857 | tmp=./conf$$-$RANDOM |
6858 | (umask 077 && mkdir "$tmp") | |
1daf06b9 SP |
6859 | } || |
6860 | { | |
cdfe1392 | 6861 | echo "$me: cannot create a temporary directory in ." >&2 |
1daf06b9 SP |
6862 | { (exit 1); exit 1; } |
6863 | } | |
6864 | ||
1daf06b9 | 6865 | # |
7f7d329e | 6866 | # Set up the sed scripts for CONFIG_FILES section. |
1daf06b9 SP |
6867 | # |
6868 | ||
6869 | # No need to generate the scripts if there are no CONFIG_FILES. | |
6870 | # This happens for instance when ./config.status config.h | |
7f7d329e SP |
6871 | if test -n "$CONFIG_FILES"; then |
6872 | ||
6873 | _ACEOF | |
6874 | ||
6875 | # Create sed commands to just substitute file output variables. | |
6876 | ||
6877 | # Remaining file output variables are in a fragment that also has non-file | |
6878 | # output varibles. | |
6879 | ||
6880 | ||
6881 | ||
6882 | ac_delim='%!_!# ' | |
6883 | for ac_last_try in false false false false false :; do | |
6884 | cat >conf$$subs.sed <<_ACEOF | |
6885 | SHELL!$SHELL$ac_delim | |
6886 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
6887 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
6888 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
6889 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
6890 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
6891 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
6892 | exec_prefix!$exec_prefix$ac_delim | |
6893 | prefix!$prefix$ac_delim | |
6894 | program_transform_name!$program_transform_name$ac_delim | |
6895 | bindir!$bindir$ac_delim | |
6896 | sbindir!$sbindir$ac_delim | |
6897 | libexecdir!$libexecdir$ac_delim | |
6898 | datarootdir!$datarootdir$ac_delim | |
6899 | datadir!$datadir$ac_delim | |
6900 | sysconfdir!$sysconfdir$ac_delim | |
6901 | sharedstatedir!$sharedstatedir$ac_delim | |
6902 | localstatedir!$localstatedir$ac_delim | |
6903 | includedir!$includedir$ac_delim | |
6904 | oldincludedir!$oldincludedir$ac_delim | |
6905 | docdir!$docdir$ac_delim | |
6906 | infodir!$infodir$ac_delim | |
6907 | htmldir!$htmldir$ac_delim | |
6908 | dvidir!$dvidir$ac_delim | |
6909 | pdfdir!$pdfdir$ac_delim | |
6910 | psdir!$psdir$ac_delim | |
6911 | libdir!$libdir$ac_delim | |
6912 | localedir!$localedir$ac_delim | |
6913 | mandir!$mandir$ac_delim | |
6914 | DEFS!$DEFS$ac_delim | |
6915 | ECHO_C!$ECHO_C$ac_delim | |
6916 | ECHO_N!$ECHO_N$ac_delim | |
6917 | ECHO_T!$ECHO_T$ac_delim | |
6918 | LIBS!$LIBS$ac_delim | |
6919 | build_alias!$build_alias$ac_delim | |
6920 | host_alias!$host_alias$ac_delim | |
6921 | target_alias!$target_alias$ac_delim | |
6922 | SET_MAKE!$SET_MAKE$ac_delim | |
6923 | LN_S!$LN_S$ac_delim | |
6924 | CP!$CP$ac_delim | |
6925 | MV!$MV$ac_delim | |
6926 | RM!$RM$ac_delim | |
6927 | AR!$AR$ac_delim | |
6928 | RANLIB!$RANLIB$ac_delim | |
6929 | PATCH!$PATCH$ac_delim | |
6930 | CC!$CC$ac_delim | |
6931 | CFLAGS!$CFLAGS$ac_delim | |
6932 | LDFLAGS!$LDFLAGS$ac_delim | |
6933 | CPPFLAGS!$CPPFLAGS$ac_delim | |
6934 | ac_ct_CC!$ac_ct_CC$ac_delim | |
6935 | EXEEXT!$EXEEXT$ac_delim | |
6936 | OBJEXT!$OBJEXT$ac_delim | |
6937 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
6938 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
6939 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
6940 | CPP!$CPP$ac_delim | |
6941 | GREP!$GREP$ac_delim | |
6942 | EGREP!$EGREP$ac_delim | |
6943 | DUMPDEBUG!$DUMPDEBUG$ac_delim | |
6944 | RESTOREDEBUG!$RESTOREDEBUG$ac_delim | |
6945 | STATIC!$STATIC$ac_delim | |
6946 | RMTDIR!$RMTDIR$ac_delim | |
6947 | ERMT!$ERMT$ac_delim | |
6948 | CRYPTO!$CRYPTO$ac_delim | |
6949 | OPTDEFS!$OPTDEFS$ac_delim | |
6950 | LTRANSSELINUX!$LTRANSSELINUX$ac_delim | |
6951 | CCTRANSSELINUX!$CCTRANSSELINUX$ac_delim | |
6952 | LD!$LD$ac_delim | |
6953 | CCOPTS!$CCOPTS$ac_delim | |
6954 | LDOPTS!$LDOPTS$ac_delim | |
6955 | BINOWNER!$BINOWNER$ac_delim | |
6956 | BINGRP!$BINGRP$ac_delim | |
6957 | BINMODE!$BINMODE$ac_delim | |
6958 | MANOWNER!$MANOWNER$ac_delim | |
6959 | MANGRP!$MANGRP$ac_delim | |
6960 | MANMODE!$MANMODE$ac_delim | |
6961 | DUMPDATESPATH!$DUMPDATESPATH$ac_delim | |
6962 | BLKID!$BLKID$ac_delim | |
6963 | READLINE!$READLINE$ac_delim | |
6964 | ZLIB!$ZLIB$ac_delim | |
6965 | BZLIB!$BZLIB$ac_delim | |
6966 | top_builddir!$top_builddir$ac_delim | |
6967 | LIBOBJS!$LIBOBJS$ac_delim | |
6968 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
6969 | _ACEOF | |
6970 | ||
6971 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then | |
6972 | break | |
6973 | elif $ac_last_try; then | |
6974 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
6975 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
6976 | { (exit 1); exit 1; }; } | |
6977 | else | |
6978 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
1227625a | 6979 | fi |
7f7d329e SP |
6980 | done |
6981 | ||
6982 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
6983 | if test -n "$ac_eof"; then | |
6984 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
6985 | ac_eof=`expr $ac_eof + 1` | |
6986 | fi | |
1227625a | 6987 | |
7f7d329e SP |
6988 | cat >>$CONFIG_STATUS <<_ACEOF |
6989 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
6990 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
6991 | /^[ ]*@MCONFIG@[ ]*$/{ | |
6992 | r $MCONFIG | |
6993 | d | |
6994 | } | |
6995 | _ACEOF | |
6996 | sed ' | |
6997 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
6998 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
6999 | :n | |
7000 | t n | |
7001 | s/'"$ac_delim"'$/,g/; t | |
7002 | s/$/\\/; p | |
7003 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
7004 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
7005 | rm -f conf$$subs.sed | |
7006 | cat >>$CONFIG_STATUS <<_ACEOF | |
7007 | :end | |
7008 | s/|#_!!_#|//g | |
7009 | CEOF$ac_eof | |
1daf06b9 | 7010 | _ACEOF |
7f7d329e SP |
7011 | |
7012 | ||
7013 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7014 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7015 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7016 | # (actually we leave an empty line to preserve line numbers). | |
7017 | if test "x$srcdir" = x.; then | |
7018 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7019 | s/:*\$(srcdir):*/:/ | |
7020 | s/:*\${srcdir}:*/:/ | |
7021 | s/:*@srcdir@:*/:/ | |
7022 | s/^\([^=]*=[ ]*\):*/\1/ | |
7023 | s/:*$// | |
7024 | s/^[^=]*=[ ]*$// | |
7025 | }' | |
7026 | fi | |
7027 | ||
1daf06b9 | 7028 | cat >>$CONFIG_STATUS <<\_ACEOF |
7f7d329e SP |
7029 | fi # test -n "$CONFIG_FILES" |
7030 | ||
7031 | ||
7032 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
7033 | do | |
7034 | case $ac_tag in | |
7035 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7036 | esac | |
7037 | case $ac_mode$ac_tag in | |
7038 | :[FHL]*:*);; | |
7039 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
7040 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7041 | { (exit 1); exit 1; }; };; | |
7042 | :[FH]-) ac_tag=-:-;; | |
7043 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
1daf06b9 | 7044 | esac |
7f7d329e SP |
7045 | ac_save_IFS=$IFS |
7046 | IFS=: | |
7047 | set x $ac_tag | |
7048 | IFS=$ac_save_IFS | |
7049 | shift | |
7050 | ac_file=$1 | |
7051 | shift | |
1daf06b9 | 7052 | |
7f7d329e SP |
7053 | case $ac_mode in |
7054 | :L) ac_source=$1;; | |
7055 | :[FH]) | |
7056 | ac_file_inputs= | |
7057 | for ac_f | |
7058 | do | |
7059 | case $ac_f in | |
7060 | -) ac_f="$tmp/stdin";; | |
7061 | *) # Look for the file first in the build tree, then in the source tree | |
7062 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7063 | # because $ac_f cannot contain `:'. | |
7064 | test -f "$ac_f" || | |
7065 | case $ac_f in | |
7066 | [\\/$]*) false;; | |
7067 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7068 | esac || | |
7069 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
7070 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7071 | { (exit 1); exit 1; }; };; | |
7072 | esac | |
7073 | ac_file_inputs="$ac_file_inputs $ac_f" | |
7074 | done | |
7075 | ||
7076 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7077 | # use $as_me), people would be surprised to read: | |
7078 | # /* config.h. Generated by config.status. */ | |
7079 | configure_input="Generated from "`IFS=: | |
7080 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7081 | if test x"$ac_file" != x-; then | |
7082 | configure_input="$ac_file. $configure_input" | |
7083 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7084 | echo "$as_me: creating $ac_file" >&6;} | |
7085 | fi | |
7086 | ||
7087 | case $ac_tag in | |
7088 | *:-:* | *:-) cat >"$tmp/stdin";; | |
7089 | esac | |
7090 | ;; | |
7091 | esac | |
7092 | ||
7093 | ac_dir=`$as_dirname -- "$ac_file" || | |
1daf06b9 | 7094 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
7095 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7096 | X"$ac_file" : 'X\(//\)$' \| \ | |
7f7d329e | 7097 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1daf06b9 | 7098 | echo X"$ac_file" | |
7f7d329e SP |
7099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7100 | s//\1/ | |
7101 | q | |
7102 | } | |
7103 | /^X\(\/\/\)[^/].*/{ | |
7104 | s//\1/ | |
7105 | q | |
7106 | } | |
7107 | /^X\(\/\/\)$/{ | |
7108 | s//\1/ | |
7109 | q | |
7110 | } | |
7111 | /^X\(\/\).*/{ | |
7112 | s//\1/ | |
7113 | q | |
7114 | } | |
7115 | s/.*/./; q'` | |
7116 | { as_dir="$ac_dir" | |
7117 | case $as_dir in #( | |
7118 | -*) as_dir=./$as_dir;; | |
7119 | esac | |
7120 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
cdfe1392 | 7121 | as_dirs= |
7f7d329e SP |
7122 | while :; do |
7123 | case $as_dir in #( | |
7124 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
7125 | *) as_qdir=$as_dir;; | |
7126 | esac | |
7127 | as_dirs="'$as_qdir' $as_dirs" | |
7128 | as_dir=`$as_dirname -- "$as_dir" || | |
cdfe1392 | 7129 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
7130 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7131 | X"$as_dir" : 'X\(//\)$' \| \ | |
7f7d329e | 7132 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
cdfe1392 | 7133 | echo X"$as_dir" | |
7f7d329e SP |
7134 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7135 | s//\1/ | |
7136 | q | |
7137 | } | |
7138 | /^X\(\/\/\)[^/].*/{ | |
7139 | s//\1/ | |
7140 | q | |
7141 | } | |
7142 | /^X\(\/\/\)$/{ | |
7143 | s//\1/ | |
7144 | q | |
7145 | } | |
7146 | /^X\(\/\).*/{ | |
7147 | s//\1/ | |
7148 | q | |
7149 | } | |
7150 | s/.*/./; q'` | |
7151 | test -d "$as_dir" && break | |
cdfe1392 | 7152 | done |
7f7d329e SP |
7153 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
7154 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
7155 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
cdfe1392 | 7156 | { (exit 1); exit 1; }; }; } |
1daf06b9 | 7157 | ac_builddir=. |
1227625a | 7158 | |
7f7d329e SP |
7159 | case "$ac_dir" in |
7160 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7161 | *) | |
1daf06b9 | 7162 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7f7d329e SP |
7163 | # A ".." for each directory in $ac_dir_suffix. |
7164 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
7165 | case $ac_top_builddir_sub in | |
7166 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7167 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7168 | esac ;; | |
7169 | esac | |
7170 | ac_abs_top_builddir=$ac_pwd | |
7171 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7172 | # for backward compatibility: | |
7173 | ac_top_builddir=$ac_top_build_prefix | |
1227625a | 7174 | |
1daf06b9 | 7175 | case $srcdir in |
7f7d329e | 7176 | .) # We are building in place. |
1daf06b9 | 7177 | ac_srcdir=. |
7f7d329e SP |
7178 | ac_top_srcdir=$ac_top_builddir_sub |
7179 | ac_abs_top_srcdir=$ac_pwd ;; | |
7180 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1daf06b9 | 7181 | ac_srcdir=$srcdir$ac_dir_suffix; |
7f7d329e SP |
7182 | ac_top_srcdir=$srcdir |
7183 | ac_abs_top_srcdir=$srcdir ;; | |
7184 | *) # Relative name. | |
7185 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7186 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7187 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1daf06b9 | 7188 | esac |
7f7d329e | 7189 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c9e4e868 | 7190 | |
1227625a | 7191 | |
7f7d329e SP |
7192 | case $ac_mode in |
7193 | :F) | |
7194 | # | |
7195 | # CONFIG_FILE | |
7196 | # | |
1227625a | 7197 | |
1daf06b9 SP |
7198 | case $INSTALL in |
7199 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7f7d329e | 7200 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
1227625a | 7201 | esac |
7f7d329e | 7202 | _ACEOF |
1227625a | 7203 | |
7f7d329e SP |
7204 | cat >>$CONFIG_STATUS <<\_ACEOF |
7205 | # If the template does not know about datarootdir, expand it. | |
7206 | # FIXME: This hack should be removed a few years after 2.60. | |
7207 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7208 | ||
7209 | case `sed -n '/datarootdir/ { | |
7210 | p | |
7211 | q | |
7212 | } | |
7213 | /@datadir@/p | |
7214 | /@docdir@/p | |
7215 | /@infodir@/p | |
7216 | /@localedir@/p | |
7217 | /@mandir@/p | |
7218 | ' $ac_file_inputs` in | |
7219 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7220 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7221 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7222 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7223 | _ACEOF | |
7224 | cat >>$CONFIG_STATUS <<_ACEOF | |
7225 | ac_datarootdir_hack=' | |
7226 | s&@datadir@&$datadir&g | |
7227 | s&@docdir@&$docdir&g | |
7228 | s&@infodir@&$infodir&g | |
7229 | s&@localedir@&$localedir&g | |
7230 | s&@mandir@&$mandir&g | |
7231 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7232 | esac | |
1daf06b9 | 7233 | _ACEOF |
7f7d329e SP |
7234 | |
7235 | # Neutralize VPATH when `$srcdir' = `.'. | |
7236 | # Shell code in configure.ac might set extrasub. | |
7237 | # FIXME: do we really want to maintain this feature? | |
1daf06b9 SP |
7238 | cat >>$CONFIG_STATUS <<_ACEOF |
7239 | sed "$ac_vpsub | |
7240 | $extrasub | |
7241 | _ACEOF | |
7242 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7243 | :t | |
7244 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7f7d329e SP |
7245 | s&@configure_input@&$configure_input&;t t |
7246 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7247 | s&@srcdir@&$ac_srcdir&;t t | |
7248 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7249 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7250 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7251 | s&@builddir@&$ac_builddir&;t t | |
7252 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7253 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7254 | s&@INSTALL@&$ac_INSTALL&;t t | |
7255 | $ac_datarootdir_hack | |
7256 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
7257 | ||
7258 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7259 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7260 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7261 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7262 | which seems to be undefined. Please make sure it is defined." >&5 | |
7263 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7264 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7265 | ||
7266 | rm -f "$tmp/stdin" | |
1daf06b9 | 7267 | case $ac_file in |
7f7d329e SP |
7268 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
7269 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
1227625a | 7270 | esac |
7f7d329e SP |
7271 | ;; |
7272 | :H) | |
7273 | # | |
7274 | # CONFIG_HEADER | |
7275 | # | |
7276 | _ACEOF | |
7277 | ||
7278 | # Transform confdefs.h into a sed script `conftest.defines', that | |
7279 | # substitutes the proper values into config.h.in to produce config.h. | |
7280 | rm -f conftest.defines conftest.tail | |
7281 | # First, append a space to every undef/define line, to ease matching. | |
7282 | echo 's/$/ /' >conftest.defines | |
7283 | # Then, protect against being on the right side of a sed subst, or in | |
7284 | # an unquoted here document, in config.status. If some macros were | |
7285 | # called several times there might be several #defines for the same | |
7286 | # symbol, which is useless. But do not sort them, since the last | |
7287 | # AC_DEFINE must be honored. | |
7288 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7289 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
7290 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
7291 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
7292 | # just an empty string. | |
7293 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
7294 | ac_dB='\\)[ (].*,\\1define\\2' | |
7295 | ac_dC=' ' | |
7296 | ac_dD=' ,' | |
7297 | ||
7298 | uniq confdefs.h | | |
7299 | sed -n ' | |
7300 | t rset | |
7301 | :rset | |
7302 | s/^[ ]*#[ ]*define[ ][ ]*// | |
7303 | t ok | |
7304 | d | |
7305 | :ok | |
7306 | s/[\\&,]/\\&/g | |
7307 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
7308 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
7309 | ' >>conftest.defines | |
7310 | ||
7311 | # Remove the space that was appended to ease matching. | |
7312 | # Then replace #undef with comments. This is necessary, for | |
1227625a SP |
7313 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
7314 | # on some systems where configure will not decide to define it. | |
7f7d329e SP |
7315 | # (The regexp can be short, since the line contains either #define or #undef.) |
7316 | echo 's/ $// | |
7317 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
7318 | ||
7319 | # Break up conftest.defines: | |
7320 | ac_max_sed_lines=50 | |
7321 | ||
7322 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
7323 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
7324 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
7325 | # et cetera. | |
7326 | ac_in='$ac_file_inputs' | |
7327 | ac_out='"$tmp/out1"' | |
7328 | ac_nxt='"$tmp/out2"' | |
7329 | ||
7330 | while : | |
1daf06b9 | 7331 | do |
7f7d329e SP |
7332 | # Write a here document: |
7333 | cat >>$CONFIG_STATUS <<_ACEOF | |
7334 | # First, check the format of the line: | |
7335 | cat >"\$tmp/defines.sed" <<\\CEOF | |
7336 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
7337 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
7338 | b | |
7339 | :def | |
7340 | _ACEOF | |
7341 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
1daf06b9 | 7342 | echo 'CEOF |
7f7d329e SP |
7343 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
7344 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
7345 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
7346 | grep . conftest.tail >/dev/null || break | |
1daf06b9 SP |
7347 | rm -f conftest.defines |
7348 | mv conftest.tail conftest.defines | |
7349 | done | |
7f7d329e | 7350 | rm -f conftest.defines conftest.tail |
1daf06b9 | 7351 | |
7f7d329e | 7352 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
1daf06b9 | 7353 | cat >>$CONFIG_STATUS <<\_ACEOF |
1daf06b9 | 7354 | if test x"$ac_file" != x-; then |
7f7d329e SP |
7355 | echo "/* $configure_input */" >"$tmp/config.h" |
7356 | cat "$ac_result" >>"$tmp/config.h" | |
7357 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
1daf06b9 SP |
7358 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
7359 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7360 | else | |
1daf06b9 | 7361 | rm -f $ac_file |
7f7d329e | 7362 | mv "$tmp/config.h" $ac_file |
1daf06b9 SP |
7363 | fi |
7364 | else | |
7f7d329e SP |
7365 | echo "/* $configure_input */" |
7366 | cat "$ac_result" | |
1daf06b9 | 7367 | fi |
7f7d329e SP |
7368 | rm -f "$tmp/out12" |
7369 | ;; | |
7370 | ||
7371 | ||
7372 | esac | |
7373 | ||
7374 | done # for ac_tag | |
1227625a | 7375 | |
1227625a | 7376 | |
1daf06b9 SP |
7377 | { (exit 0); exit 0; } |
7378 | _ACEOF | |
1227625a | 7379 | chmod +x $CONFIG_STATUS |
1daf06b9 SP |
7380 | ac_clean_files=$ac_clean_files_save |
7381 | ||
7382 | ||
7383 | # configure is writing to config.log, and then calls config.status. | |
7384 | # config.status does its own redirection, appending to config.log. | |
7385 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7386 | # by configure, so config.status won't be able to write to it; its | |
7387 | # output is simply discarded. So we exec the FD to /dev/null, | |
7388 | # effectively closing config.log, so it can be properly (re)opened and | |
7389 | # appended to by config.status. When coming back to configure, we | |
7390 | # need to make the FD available again. | |
7391 | if test "$no_create" != yes; then | |
7392 | ac_cs_success=: | |
cdfe1392 SP |
7393 | ac_config_status_args= |
7394 | test "$silent" = yes && | |
7395 | ac_config_status_args="$ac_config_status_args --quiet" | |
1daf06b9 | 7396 | exec 5>/dev/null |
cdfe1392 | 7397 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
1daf06b9 SP |
7398 | exec 5>>config.log |
7399 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7400 | # would make configure fail if this is the last instruction. | |
7401 | $ac_cs_success || { (exit 1); exit 1; } | |
7402 | fi | |
1227625a | 7403 |