]> git.wh0rd.org - dump.git/blob - configure
The Tower of Hanoi example wasn't.
[dump.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
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+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
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
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
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
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
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
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
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'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
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
159 fi
160
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 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
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=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
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
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
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
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
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
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 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
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" || {
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
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.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
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
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
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';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
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
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
505 as_ln_s='cp -p'
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
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
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 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
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
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
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>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
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'
700 ac_subst_files='MCONFIG'
701 ac_precious_vars='build_alias
702 host_alias
703 target_alias
704 CC
705 CFLAGS
706 LDFLAGS
707 LIBS
708 CPPFLAGS
709 CPP'
710
711
712 # Initialize some variables set by options.
713 ac_init_help=
714 ac_init_version=false
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
717 cache_file=/dev/null
718 exec_prefix=NONE
719 no_create=
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=
728 verbose=
729 x_includes=NONE
730 x_libraries=NONE
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.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
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'
757
758 ac_prev=
759 ac_dashdash=
760 for ac_option
761 do
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
765 ac_prev=
766 continue
767 fi
768
769 case $ac_option in
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
771 *) ac_optarg=yes ;;
772 esac
773
774 # Accept the important Cygnus configure options, so we can diagnose typos.
775
776 case $ac_dashdash$ac_option in
777 --)
778 ac_dashdash=yes ;;
779
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
781 ac_prev=bindir ;;
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
783 bindir=$ac_optarg ;;
784
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
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=*)
795 cache_file=$ac_optarg ;;
796
797 --config-cache | -C)
798 cache_file=config.cache ;;
799
800 -datadir | --datadir | --datadi | --datad)
801 ac_prev=datadir ;;
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
804
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
812 -disable-* | --disable-*)
813 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
817 { (exit 1); exit 1; }; }
818 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
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 ;;
830
831 -enable-* | --enable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=\$ac_optarg ;;
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=*)
847 exec_prefix=$ac_optarg ;;
848
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
851 with_gas=yes ;;
852
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 ;;
859
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
864
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
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=*)
876 includedir=$ac_optarg ;;
877
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
879 ac_prev=infodir ;;
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
882
883 -libdir | --libdir | --libdi | --libd)
884 ac_prev=libdir ;;
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
886 libdir=$ac_optarg ;;
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=*)
893 libexecdir=$ac_optarg ;;
894
895 -localedir | --localedir | --localedi | --localed | --locale)
896 ac_prev=localedir ;;
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
899
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
906
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908 ac_prev=mandir ;;
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
910 mandir=$ac_optarg ;;
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 \
917 | --no-cr | --no-c | -n)
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=*)
931 oldincludedir=$ac_optarg ;;
932
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934 ac_prev=prefix ;;
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
936 prefix=$ac_optarg ;;
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=*)
943 program_prefix=$ac_optarg ;;
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=*)
950 program_suffix=$ac_optarg ;;
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=*)
967 program_transform_name=$ac_optarg ;;
968
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
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=*)
987 sbindir=$ac_optarg ;;
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=*)
998 sharedstatedir=$ac_optarg ;;
999
1000 -site | --site | --sit)
1001 ac_prev=site ;;
1002 -site=* | --site=* | --sit=*)
1003 site=$ac_optarg ;;
1004
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006 ac_prev=srcdir ;;
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
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=*)
1015 sysconfdir=$ac_optarg ;;
1016
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1021
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023 verbose=yes ;;
1024
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1027
1028 -with-* | --with-*)
1029 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid package name: $ac_package" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1035 eval with_$ac_package=\$ac_optarg ;;
1036
1037 -without-* | --without-*)
1038 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid package name: $ac_package" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1044 eval with_$ac_package=no ;;
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=*)
1055 x_includes=$ac_optarg ;;
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=*)
1062 x_libraries=$ac_optarg ;;
1063
1064 -*) { echo "$as_me: error: unrecognized option: $ac_option
1065 Try \`$0 --help' for more information." >&2
1066 { (exit 1); exit 1; }; }
1067 ;;
1068
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; }; }
1075 eval $ac_envvar=\$ac_optarg
1076 export $ac_envvar ;;
1077
1078 *)
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}
1084 ;;
1085
1086 esac
1087 done
1088
1089 if test -n "$ac_prev"; then
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; }; }
1093 fi
1094
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
1100 do
1101 eval ac_val=\$$ac_var
1102 case $ac_val in
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1105 esac
1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1107 { (exit 1); exit 1; }; }
1108 done
1109
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
1127
1128 ac_tool_prefix=
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130
1131 test "$silent" = yes && exec 6>/dev/null
1132
1133
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
1144 # Find the source files, if location was not specified.
1145 if test -z "$srcdir"; then
1146 ac_srcdir_defaulted=yes
1147 # Try the directory containing this script, then the parent directory.
1148 ac_confdir=`$as_dirname -- "$0" ||
1149 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1150 X"$0" : 'X\(//\)[^/]' \| \
1151 X"$0" : 'X\(//\)$' \| \
1152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1153 echo X"$0" |
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'`
1171 srcdir=$ac_confdir
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1173 srcdir=..
1174 fi
1175 else
1176 ac_srcdir_defaulted=no
1177 fi
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
1181 { (exit 1); exit 1; }; }
1182 fi
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
1186 { (exit 1); exit 1; }; }
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
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
1232 Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
1234 [$ac_default_prefix]
1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1236 [PREFIX]
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]
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]
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]
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)
1280 --enable-staticz link libz and libbz2 statically (default is NO)
1281 --enable-rmt compile and install rmt (default is YES)
1282 --enable-ermt compile ermt, an encrypting version of rmt (default is NO)
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)
1289 --enable-macosx include Mac OSX restore compatibility (default is NO)
1290 --enable-transselinux restore can translate SELinux EAs (default is YES)
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>
1312 LIBS libraries to pass to the linker, e.g. -l<library>
1313 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1314 you have headers in a nonstandard directory <include dir>
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
1321 ac_status=$?
1322 fi
1323
1324 if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1327 test -d "$ac_dir" || continue
1328 ac_builddir=.
1329
1330 case "$ac_dir" in
1331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *)
1333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
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
1345
1346 case $srcdir in
1347 .) # We are building in place.
1348 ac_srcdir=.
1349 ac_top_srcdir=$ac_top_builddir_sub
1350 ac_abs_top_srcdir=$ac_pwd ;;
1351 [\\/]* | ?:[\\/]* ) # Absolute name.
1352 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1359 esac
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
1370 else
1371 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1372 fi || ac_status=$?
1373 cd "$ac_pwd" || { ac_status=$?; break; }
1374 done
1375 fi
1376
1377 test -n "$ac_init_help" && exit $ac_status
1378 if $ac_init_version; then
1379 cat <<\_ACEOF
1380 configure
1381 generated by GNU Autoconf 2.61
1382
1383 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1384 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1385 This configure script is free software; the Free Software Foundation
1386 gives unlimited permission to copy, distribute and modify it.
1387 _ACEOF
1388 exit
1389 fi
1390 cat >config.log <<_ACEOF
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
1395 generated by GNU Autoconf 2.61. Invocation command line was
1396
1397 $ $0 $@
1398
1399 _ACEOF
1400 exec 5>>config.log
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`
1419 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
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
1433 IFS=$as_save_IFS
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.
1449 # Strip out --silent because we don't want to record it for future runs.
1450 # Also quote any args containing shell meta-characters.
1451 # Make two passes to allow for proper duplicate-argument suppression.
1452 ac_configure_args=
1453 ac_configure_args0=
1454 ac_configure_args1=
1455 ac_must_keep_next=false
1456 for ac_pass in 1 2
1457 do
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 ;;
1465 *\'*)
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
1473 ac_must_keep_next=false # Got value, back to normal.
1474 else
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
1486 fi
1487 ac_configure_args="$ac_configure_args '$ac_arg'"
1488 ;;
1489 esac
1490 done
1491 done
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; }
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.
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.
1500 trap 'exit_status=$?
1501 # Save into config.log some information that might help in debugging.
1502 {
1503 echo
1504
1505 cat <<\_ASBOX
1506 ## ---------------- ##
1507 ## Cache variables. ##
1508 ## ---------------- ##
1509 _ASBOX
1510 echo
1511 # The following way of writing the cache mishandles newlines in values,
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
1527 (set) 2>&1 |
1528 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1529 *${as_nl}ac_space=\ *)
1530 sed -n \
1531 "s/'\''/'\''\\\\'\'''\''/g;
1532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1533 ;; #(
1534 *)
1535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1536 ;;
1537 esac |
1538 sort
1539 )
1540 echo
1541
1542 cat <<\_ASBOX
1543 ## ----------------- ##
1544 ## Output variables. ##
1545 ## ----------------- ##
1546 _ASBOX
1547 echo
1548 for ac_var in $ac_subst_vars
1549 do
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'\''"
1555 done | sort
1556 echo
1557
1558 if test -n "$ac_subst_files"; then
1559 cat <<\_ASBOX
1560 ## ------------------- ##
1561 ## File substitutions. ##
1562 ## ------------------- ##
1563 _ASBOX
1564 echo
1565 for ac_var in $ac_subst_files
1566 do
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'\''"
1572 done | sort
1573 echo
1574 fi
1575
1576 if test -s confdefs.h; then
1577 cat <<\_ASBOX
1578 ## ----------- ##
1579 ## confdefs.h. ##
1580 ## ----------- ##
1581 _ASBOX
1582 echo
1583 cat confdefs.h
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
1590 rm -f core *.core core.conftest.* &&
1591 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1592 exit $exit_status
1593 ' 0
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
1598
1599 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1600 rm -f -r conftest* confdefs.h
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.
1630 # Prefer explicitly selected file to automatically selected ones.
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"
1638 fi
1639 shift
1640 for ac_site_file
1641 do
1642 if test -r "$ac_site_file"; then
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
1646 . "$ac_site_file"
1647 fi
1648 done
1649
1650 if test -r "$cache_file"; then
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
1657 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1658 *) . "./$cache_file";;
1659 esac
1660 fi
1661 else
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
1670 for ac_var in $ac_precious_vars; do
1671 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1672 eval ac_new_set=\$ac_env_${ac_var}_set
1673 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1674 eval ac_new_val=\$ac_env_${ac_var}_value
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
1687 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1688 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1689 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1690 echo "$as_me: former value: $ac_old_val" >&2;}
1691 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1692 echo "$as_me: current value: $ac_new_val" >&2;}
1693 ac_cache_corrupted=:
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
1699 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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; }; }
1714 fi
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
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
1737
1738
1739
1740
1741 MCONFIG=./MCONFIG
1742
1743
1744 ac_config_headers="$ac_config_headers config.h"
1745
1746
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
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 cat >conftest.make <<\_ACEOF
1754 SHELL = /bin/sh
1755 all:
1756 @echo '@@@%%%=$(MAKE)=@@@%%%'
1757 _ACEOF
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
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
1765 rm -f conftest.make
1766 fi
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; }
1770 SET_MAKE=
1771 else
1772 { echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6; }
1774 SET_MAKE="MAKE=${MAKE-make}"
1775 fi
1776
1777 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
1778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1779 LN_S=$as_ln_s
1780 if test "$LN_S" = "ln -s"; then
1781 { echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6; }
1783 else
1784 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1785 echo "${ECHO_T}no, using $LN_S" >&6; }
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
1790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1792 if test "${ac_cv_path_CP+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 case $CP in
1796 [\\/]* | ?:[\\/]*)
1797 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1798 ;;
1799 *)
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
1806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1813 IFS=$as_save_IFS
1814
1815 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1816 ;;
1817 esac
1818 fi
1819 CP=$ac_cv_path_CP
1820 if test -n "$CP"; then
1821 { echo "$as_me:$LINENO: result: $CP" >&5
1822 echo "${ECHO_T}$CP" >&6; }
1823 else
1824 { echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6; }
1826 fi
1827
1828
1829 # Extract the first word of "mv", so it can be a program name with args.
1830 set dummy mv; ac_word=$2
1831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1833 if test "${ac_cv_path_MV+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 case $MV in
1837 [\\/]* | ?:[\\/]*)
1838 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1839 ;;
1840 *)
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
1847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1854 IFS=$as_save_IFS
1855
1856 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1857 ;;
1858 esac
1859 fi
1860 MV=$ac_cv_path_MV
1861 if test -n "$MV"; then
1862 { echo "$as_me:$LINENO: result: $MV" >&5
1863 echo "${ECHO_T}$MV" >&6; }
1864 else
1865 { echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6; }
1867 fi
1868
1869
1870 # Extract the first word of "rm", so it can be a program name with args.
1871 set dummy rm; ac_word=$2
1872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1874 if test "${ac_cv_path_RM+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 case $RM in
1878 [\\/]* | ?:[\\/]*)
1879 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1880 ;;
1881 *)
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
1888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1895 IFS=$as_save_IFS
1896
1897 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1898 ;;
1899 esac
1900 fi
1901 RM=$ac_cv_path_RM
1902 if test -n "$RM"; then
1903 { echo "$as_me:$LINENO: result: $RM" >&5
1904 echo "${ECHO_T}$RM" >&6; }
1905 else
1906 { echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6; }
1908 fi
1909
1910
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.
1913 set dummy ${ac_tool_prefix}ar; ac_word=$2
1914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1916 if test "${ac_cv_prog_AR+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test -n "$AR"; then
1920 ac_cv_prog_AR="$AR" # Let the user override the test.
1921 else
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
1928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1935 IFS=$as_save_IFS
1936
1937 fi
1938 fi
1939 AR=$ac_cv_prog_AR
1940 if test -n "$AR"; then
1941 { echo "$as_me:$LINENO: result: $AR" >&5
1942 echo "${ECHO_T}$AR" >&6; }
1943 else
1944 { echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6; }
1946 fi
1947
1948
1949 fi
1950 if test -z "$ac_cv_prog_AR"; then
1951 ac_ct_AR=$AR
1952 # Extract the first word of "ar", so it can be a program name with args.
1953 set dummy ar; ac_word=$2
1954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$ac_ct_AR"; then
1960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1961 else
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
1968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1975 IFS=$as_save_IFS
1976
1977 fi
1978 fi
1979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1980 if test -n "$ac_ct_AR"; then
1981 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1982 echo "${ECHO_T}$ac_ct_AR" >&6; }
1983 else
1984 { echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6; }
1986 fi
1987
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
2003 else
2004 AR="$ac_cv_prog_AR"
2005 fi
2006
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.
2009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_RANLIB+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$RANLIB"; then
2016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2017 else
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
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2031 IFS=$as_save_IFS
2032
2033 fi
2034 fi
2035 RANLIB=$ac_cv_prog_RANLIB
2036 if test -n "$RANLIB"; then
2037 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2038 echo "${ECHO_T}$RANLIB" >&6; }
2039 else
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2042 fi
2043
2044
2045 fi
2046 if test -z "$ac_cv_prog_RANLIB"; then
2047 ac_ct_RANLIB=$RANLIB
2048 # Extract the first word of "ranlib", so it can be a program name with args.
2049 set dummy ranlib; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055 if test -n "$ac_ct_RANLIB"; then
2056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2057 else
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
2064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2071 IFS=$as_save_IFS
2072
2073 fi
2074 fi
2075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2076 if test -n "$ac_ct_RANLIB"; then
2077 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2078 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2079 else
2080 { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2082 fi
2083
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
2099 else
2100 RANLIB="$ac_cv_prog_RANLIB"
2101 fi
2102
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.
2105 set dummy ${ac_tool_prefix}patch; ac_word=$2
2106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2108 if test "${ac_cv_prog_PATCH+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$PATCH"; then
2112 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
2113 else
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
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2127 IFS=$as_save_IFS
2128
2129 fi
2130 fi
2131 PATCH=$ac_cv_prog_PATCH
2132 if test -n "$PATCH"; then
2133 { echo "$as_me:$LINENO: result: $PATCH" >&5
2134 echo "${ECHO_T}$PATCH" >&6; }
2135 else
2136 { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2138 fi
2139
2140
2141 fi
2142 if test -z "$ac_cv_prog_PATCH"; then
2143 ac_ct_PATCH=$PATCH
2144 # Extract the first word of "patch", so it can be a program name with args.
2145 set dummy patch; ac_word=$2
2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148 if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$ac_ct_PATCH"; then
2152 ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test.
2153 else
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
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2167 IFS=$as_save_IFS
2168
2169 fi
2170 fi
2171 ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH
2172 if test -n "$ac_ct_PATCH"; then
2173 { echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5
2174 echo "${ECHO_T}$ac_ct_PATCH" >&6; }
2175 else
2176 { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2178 fi
2179
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
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
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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.
2214 else
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
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 CC=$ac_cv_prog_CC
2233 if test -n "$CC"; then
2234 { echo "$as_me:$LINENO: result: $CC" >&5
2235 echo "${ECHO_T}$CC" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
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.
2246 set dummy gcc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2268 IFS=$as_save_IFS
2269
2270 fi
2271 fi
2272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273 if test -n "$ac_ct_CC"; then
2274 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2275 echo "${ECHO_T}$ac_ct_CC" >&6; }
2276 else
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 fi
2280
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
2296 else
2297 CC="$ac_cv_prog_CC"
2298 fi
2299
2300 if test -z "$CC"; then
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.
2303 set dummy ${ac_tool_prefix}cc; ac_word=$2
2304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306 if test "${ac_cv_prog_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 else
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
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2325 IFS=$as_save_IFS
2326
2327 fi
2328 fi
2329 CC=$ac_cv_prog_CC
2330 if test -n "$CC"; then
2331 { echo "$as_me:$LINENO: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6; }
2333 else
2334 { echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6; }
2336 fi
2337
2338
2339 fi
2340 fi
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
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 ac_prog_rejected=no
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
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2370 IFS=$as_save_IFS
2371
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
2376 if test $# != 0; then
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
2381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382 fi
2383 fi
2384 fi
2385 fi
2386 CC=$ac_cv_prog_CC
2387 if test -n "$CC"; then
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2390 else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$CC"; then
2398 if test -n "$ac_tool_prefix"; then
2399 for ac_prog in cl.exe
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
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 else
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
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 CC=$ac_cv_prog_CC
2429 if test -n "$CC"; then
2430 { echo "$as_me:$LINENO: result: $CC" >&5
2431 echo "${ECHO_T}$CC" >&6; }
2432 else
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2435 fi
2436
2437
2438 test -n "$CC" && break
2439 done
2440 fi
2441 if test -z "$CC"; then
2442 ac_ct_CC=$CC
2443 for ac_prog in cl.exe
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
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6; }
2476 else
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482 test -n "$ac_ct_CC" && break
2483 done
2484
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
2500 fi
2501
2502 fi
2503
2504
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;}
2509 { (exit 1); exit 1; }; }
2510
2511 # Provide some information about the compiler.
2512 echo "$as_me:$LINENO: checking for C compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
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
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
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
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
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
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551
2552 int
2553 main ()
2554 {
2555
2556 ;
2557 return 0;
2558 }
2559 _ACEOF
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.exe b.out"
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.
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; }
2567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
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
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
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.
2602 for ac_file in $ac_files ''
2603 do
2604 test -f "$ac_file" || continue
2605 case $ac_file in
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2607 ;;
2608 [ab].out )
2609 # We found the default executable, but exeext='' is most
2610 # certainly right.
2611 break;;
2612 *.* )
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.
2622 break;;
2623 * )
2624 break;;
2625 esac
2626 done
2627 test "$ac_cv_exeext" = no && ac_cv_exeext=
2628
2629 else
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
2636 echo "$as_me: failed program was:" >&5
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;}
2643 { (exit 77); exit 77; }; }
2644 fi
2645
2646 ac_exeext=$ac_cv_exeext
2647
2648 # Check that the compiler produces executables we can run. If not, either
2649 # the compiler is broken, or we cross compile.
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; }
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'
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
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 cross_compiling=no
2666 else
2667 if test "$cross_compiling" = maybe; then
2668 cross_compiling=yes
2669 else
2670 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot run C compiled programs.
2674 If you meant to cross compile, use \`--host'.
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2677 fi
2678 fi
2679 fi
2680 { echo "$as_me:$LINENO: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6; }
2682
2683 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2684 ac_clean_files=$ac_clean_files_save
2685 # Check that the compiler produces executables we can run. If not, either
2686 # the compiler is broken, or we cross compile.
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
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'.
2708 for ac_file in conftest.exe conftest conftest.*; do
2709 test -f "$ac_file" || continue
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2713 break;;
2714 * ) break;;
2715 esac
2716 done
2717 else
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;}
2722 { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest$ac_cv_exeext
2726 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2728
2729 rm -f conftest.$ac_ext
2730 EXEEXT=$ac_cv_exeext
2731 ac_exeext=$EXEEXT
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; }
2734 if test "${ac_cv_objext+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h. */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2743
2744 int
2745 main ()
2746 {
2747
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.o conftest.obj
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
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
2765 case $ac_file in
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768 break;;
2769 esac
2770 done
2771 else
2772 echo "$as_me: failed program was:" >&5
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;}
2779 { (exit 1); exit 1; }; }
2780 fi
2781
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 fi
2784 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6; }
2786 OBJEXT=$ac_cv_objext
2787 ac_objext=$OBJEXT
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; }
2790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799
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
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
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2828 ac_compiler_gnu=yes
2829 else
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 ac_compiler_gnu=no
2834 fi
2835
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838
2839 fi
2840 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2842 GCC=`test $ac_compiler_gnu = yes && echo yes`
2843 ac_test_CFLAGS=${CFLAGS+set}
2844 ac_save_CFLAGS=$CFLAGS
2845 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_cc_g+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
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
2882 (exit $ac_status); } && {
2883 test -z "$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
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
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
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
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937
2938 int
2939 main ()
2940 {
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
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
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2963 ac_cv_prog_cc_g=yes
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
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
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979 fi
2980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990 else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996 fi
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
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 ac_cv_prog_cc_c89=no
3003 ac_save_CC=$CC
3004 cat >conftest.$ac_ext <<_ACEOF
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 }
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
3036 as 'x'. The following induces an error, until -std is added to get
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
3039 that's true only with -std. */
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041
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
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
3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063 do
3064 CC="$ac_save_CC $ac_arg"
3065 rm -f conftest.$ac_objext
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
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_c89=$ac_arg
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087
3088 fi
3089
3090 rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3092 done
3093 rm -f conftest.$ac_ext
3094 CC=$ac_save_CC
3095
3096 fi
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; } ;;
3105 *)
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; } ;;
3109 esac
3110
3111
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=
3119 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3120 if test -f "$ac_dir/install-sh"; then
3121 ac_aux_dir=$ac_dir
3122 ac_install_sh="$ac_aux_dir/install-sh -c"
3123 break
3124 elif test -f "$ac_dir/install.sh"; then
3125 ac_aux_dir=$ac_dir
3126 ac_install_sh="$ac_aux_dir/install.sh -c"
3127 break
3128 elif test -f "$ac_dir/shtool"; then
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
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;}
3137 { (exit 1); exit 1; }; }
3138 fi
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
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
3156 # AmigaOS /C/install, which installs bootblocks on floppy discs
3157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3160 # OS/2's system install, which has a completely different semantic
3161 # ./install, which can be erroneously created by make from ./install.sh.
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; }
3164 if test -z "$INSTALL"; then
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/* | \
3177 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
3185 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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
3199 done
3200 done
3201 ;;
3202 esac
3203 done
3204 IFS=$as_save_IFS
3205
3206
3207 fi
3208 if test "${ac_cv_path_install+set}" = set; then
3209 INSTALL=$ac_cv_path_install
3210 else
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
3213 # break other packages using the cache if that directory is
3214 # removed, or if the value is a relative name.
3215 INSTALL=$ac_install_sh
3216 fi
3217 fi
3218 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3219 echo "${ECHO_T}$INSTALL" >&6; }
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
3225 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3226
3227 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3228
3229
3230
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
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; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240 CPP=
3241 fi
3242 if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
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
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
3269 Syntax error
3270 _ACEOF
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
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
3283 (exit $ac_status); } >/dev/null && {
3284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 }; then
3287 :
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 # Broken: fails on valid input.
3293 continue
3294 fi
3295
3296 rm -f conftest.err conftest.$ac_ext
3297
3298 # OK, works on sane cases. Now check whether nonexistent headers
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ac_nonexistent.h>
3307 _ACEOF
3308 if { (ac_try="$ac_cpp conftest.$ac_ext"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
3324 # Broken: success on invalid input.
3325 continue
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 # Passes both tests.
3331 ac_preproc_ok=:
3332 break
3333 fi
3334
3335 rm -f conftest.err conftest.$ac_ext
3336
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
3342 fi
3343
3344 done
3345 ac_cv_prog_CPP=$CPP
3346
3347 fi
3348 CPP=$ac_cv_prog_CPP
3349 else
3350 ac_cv_prog_CPP=$CPP
3351 fi
3352 { echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6; }
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
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
3374 Syntax error
3375 _ACEOF
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
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
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 :
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
3400
3401 rm -f conftest.err conftest.$ac_ext
3402
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
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
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
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
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
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
3439
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
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"
3483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3484 # Check for GNU ac_path_GREP and select it if it is found.
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
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
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"
3565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
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
3587 fi
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
3603 fi
3604
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"
3622
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; }
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
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
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
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } && {
3662 test -z "$ac_c_werror_flag" ||
3663 test ! -s conftest.err
3664 } && test -s conftest.$ac_objext; then
3665 ac_cv_header_stdc=yes
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 ac_cv_header_stdc=no
3671 fi
3672
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
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
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>
3729 #include <stdlib.h>
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) \
3735 (('a' <= (c) && (c) <= 'i') \
3736 || ('j' <= (c) && (c) <= 'r') \
3737 || ('s' <= (c) && (c) <= 'z'))
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))
3748 || toupper (i) != TOUPPER (i))
3749 return 2;
3750 return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest$ac_exeext
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
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
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
3782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3783 fi
3784
3785
3786 fi
3787 fi
3788 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3789 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
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 \
3809 inttypes.h stdint.h unistd.h
3810 do
3811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 cat >conftest.$ac_ext <<_ACEOF
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
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
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } && {
3841 test -z "$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 } && test -s conftest.$ac_objext; then
3844 eval "$as_ac_Header=yes"
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 eval "$as_ac_Header=no"
3850 fi
3851
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 ac_res=`eval echo '${'$as_ac_Header'}'`
3855 { echo "$as_me:$LINENO: result: $ac_res" >&5
3856 echo "${ECHO_T}$ac_res" >&6; }
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`
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
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 fi
3877 ac_res=`eval echo '${'$as_ac_Header'}'`
3878 { echo "$as_me:$LINENO: result: $ac_res" >&5
3879 echo "${ECHO_T}$ac_res" >&6; }
3880 else
3881 # Is the header compilable?
3882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3884 cat >conftest.$ac_ext <<_ACEOF
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
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
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3910 ac_header_compiler=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 ac_header_compiler=no
3916 fi
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; }
3921
3922 # Is the header present?
3923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3925 cat >conftest.$ac_ext <<_ACEOF
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
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
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
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
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
3956
3957 rm -f conftest.err conftest.$ac_ext
3958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3959 echo "${ECHO_T}$ac_header_preproc" >&6; }
3960
3961 # So? What about this header?
3962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3963 yes:no: )
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;}
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
3969 ;;
3970 no:yes:* )
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;}
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;}
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;}
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;}
3983
3984 ;;
3985 esac
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
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 eval "$as_ac_Header=\$ac_header_preproc"
3992 fi
3993 ac_res=`eval echo '${'$as_ac_Header'}'`
3994 { echo "$as_me:$LINENO: result: $ac_res" >&5
3995 echo "${ECHO_T}$ac_res" >&6; }
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
4010 # Check whether --enable-debug was given.
4011 if test "${enable_debug+set}" = set; then
4012 enableval=$enable_debug; if test "$enableval" = "no"
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
4027 fi
4028
4029
4030
4031
4032 # Check whether --enable-static was given.
4033 if test "${enable_static+set}" = set; then
4034 enableval=$enable_static; if test "$enableval" = "no"
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
4047 fi
4048
4049
4050
4051 # Check whether --enable-staticz was given.
4052 if test "${enable_staticz+set}" = set; then
4053 enableval=$enable_staticz; if test "$enableval" = "no"
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
4066 fi
4067
4068
4069 # Check whether --enable-rmt was given.
4070 if test "${enable_rmt+set}" = set; then
4071 enableval=$enable_rmt; if test "$enableval" = "no"
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
4087 fi
4088
4089
4090
4091 # Check whether --enable-ermt was given.
4092 if test "${enable_ermt+set}" = set; then
4093 enableval=$enable_ermt; if test "$enableval" = "no"
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
4115 fi
4116
4117
4118
4119
4120 # Check whether --enable-kerberos was given.
4121 if test "${enable_kerberos+set}" = set; then
4122 enableval=$enable_kerberos; if test "$enableval" = "yes"
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
4135 fi
4136
4137
4138
4139 # Check whether --enable-readline was given.
4140 if test "${enable_readline+set}" = set; then
4141 enableval=$enable_readline; if test "$enableval" = "no"
4142 then
4143 READLINE=""
4144 echo "Not including readline support"
4145 else
4146 READLINE="yes"
4147
4148 cat >>confdefs.h <<\_ACEOF
4149 #define HAVE_READLINE 1
4150 _ACEOF
4151
4152 echo "Including readline support"
4153 fi
4154
4155 else
4156 READLINE="yes"
4157
4158 cat >>confdefs.h <<\_ACEOF
4159 #define HAVE_READLINE 1
4160 _ACEOF
4161
4162 echo "Including readline support by default"
4163
4164 fi
4165
4166
4167 # Check whether --enable-oldstylefscript was given.
4168 if test "${enable_oldstylefscript+set}" = set; then
4169 enableval=$enable_oldstylefscript; if test "$enableval" = "yes"
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
4184 fi
4185
4186
4187 # Check whether --enable-largefile was given.
4188 if test "${enable_largefile+set}" = set; then
4189 enableval=$enable_largefile; if test "$enableval" = "yes"
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"
4208
4209 fi
4210
4211
4212 # Check whether --enable-qfa was given.
4213 if test "${enable_qfa+set}" = set; then
4214 enableval=$enable_qfa; if test "$enableval" = "yes"
4215 then
4216
4217 cat >>confdefs.h <<\_ACEOF
4218 #define USE_QFA 1
4219 _ACEOF
4220
4221 echo "Enabling Quick File Access support"
4222 else
4223 echo "Not enabling Quick File Access support"
4224 fi
4225
4226 else
4227
4228 cat >>confdefs.h <<\_ACEOF
4229 #define USE_QFA 1
4230 _ACEOF
4231
4232 echo "Enabling Quick File Access support by default"
4233
4234 fi
4235
4236
4237 # Check whether --enable-qfadebug was given.
4238 if test "${enable_qfadebug+set}" = set; then
4239 enableval=$enable_qfadebug; if test "$enableval" = "yes"
4240 then
4241
4242 cat >>confdefs.h <<\_ACEOF
4243 #define DEBUG_QFA 1
4244 _ACEOF
4245
4246 echo "Including Quick File Access debugging code"
4247 else
4248 echo "Not including Quick File Access debugging code"
4249 fi
4250
4251 else
4252 echo "Not including Quick File Access debugging code by default"
4253
4254 fi
4255
4256
4257 # Check whether --enable-macosx was given.
4258 if test "${enable_macosx+set}" = set; then
4259 enableval=$enable_macosx; if test "$enableval" = "yes"
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
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
4299
4300
4301
4302 # Check whether --with-cc was given.
4303 if test "${with_cc+set}" = set; then
4304 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
4305 echo "${ECHO_T}CC=$withval" >&6; }
4306 CC=$withval
4307 else
4308 if test -z "$CC" ; then CC=cc; fi
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
4313
4314
4315
4316 # Check whether --with-linker was given.
4317 if test "${with_linker+set}" = set; then
4318 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
4319 echo "${ECHO_T}LD=$withval" >&6; }
4320 LD=$withval
4321 else
4322 if test -z "$LD" ; then LD=$CC; fi
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
4327
4328
4329
4330 # Check whether --with-ccopts was given.
4331 if test "${with_ccopts+set}" = set; then
4332 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
4333 echo "${ECHO_T}CCOPTS is $withval" >&6; }
4334 CCOPTS=$withval
4335 CFLAGS="$CFLAGS $withval"
4336 else
4337 CCOPTS=
4338 fi
4339
4340
4341
4342 # Check whether --with-ldopts was given.
4343 if test "${with_ldopts+set}" = set; then
4344 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
4345 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
4346 LDOPTS=$withval
4347 LDFLAGS="$LDFLAGS $withval"
4348 else
4349 LDOPTS=
4350 fi
4351
4352
4353
4354 # Check whether --with-binowner was given.
4355 if test "${with_binowner+set}" = set; then
4356 withval=$with_binowner; { echo "$as_me:$LINENO: result: BINOWNER is $withval" >&5
4357 echo "${ECHO_T}BINOWNER is $withval" >&6; }
4358 BINOWNER=$withval
4359 else
4360 BINOWNER=root
4361 echo "BINOWNER defaults to $BINOWNER"
4362
4363 fi
4364
4365
4366
4367 # Check whether --with-bingrp was given.
4368 if test "${with_bingrp+set}" = set; then
4369 withval=$with_bingrp; { echo "$as_me:$LINENO: result: BINGRP is $withval" >&5
4370 echo "${ECHO_T}BINGRP is $withval" >&6; }
4371 BINGRP=$withval
4372 else
4373 BINGRP=tty
4374 echo "BINGRP defaults to $BINGRP"
4375
4376 fi
4377
4378
4379
4380 # Check whether --with-binmode was given.
4381 if test "${with_binmode+set}" = set; then
4382 withval=$with_binmode; { echo "$as_me:$LINENO: result: BINMODE is $withval" >&5
4383 echo "${ECHO_T}BINMODE is $withval" >&6; }
4384 BINMODE=$withval
4385 else
4386 BINMODE=0755
4387 echo "BINMODE defaults to $BINMODE"
4388
4389 fi
4390
4391
4392
4393 # Check whether --with-manowner was given.
4394 if test "${with_manowner+set}" = set; then
4395 withval=$with_manowner; { echo "$as_me:$LINENO: result: MANOWNER is $withval" >&5
4396 echo "${ECHO_T}MANOWNER is $withval" >&6; }
4397 MANOWNER=$withval
4398 else
4399 MANOWNER=man
4400 echo "MANOWNER defaults to $MANOWNER"
4401
4402 fi
4403
4404
4405
4406 # Check whether --with-mangrp was given.
4407 if test "${with_mangrp+set}" = set; then
4408 withval=$with_mangrp; { echo "$as_me:$LINENO: result: MANGRP is $withval" >&5
4409 echo "${ECHO_T}MANGRP is $withval" >&6; }
4410 MANGRP=$withval
4411 else
4412 MANGRP=tty
4413 echo "MANGRP defaults to $MANGRP"
4414
4415 fi
4416
4417
4418
4419 # Check whether --with-manmode was given.
4420 if test "${with_manmode+set}" = set; then
4421 withval=$with_manmode; { echo "$as_me:$LINENO: result: MANMODE is $withval" >&5
4422 echo "${ECHO_T}MANMODE is $withval" >&6; }
4423 MANMODE=$withval
4424 else
4425 MANMODE=0644
4426 echo "MANMODE defaults to $MANMODE"
4427
4428 fi
4429
4430
4431
4432 # Check whether --with-dumpdatespath was given.
4433 if test "${with_dumpdatespath+set}" = set; then
4434 withval=$with_dumpdatespath; { echo "$as_me:$LINENO: result: DUMPDATESPATH is $withval" >&5
4435 echo "${ECHO_T}DUMPDATESPATH is $withval" >&6; }
4436 DUMPDATESPATH=$withval
4437 else
4438 DUMPDATESPATH="${sysconfdir}/dumpdates"
4439 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
4440
4441 fi
4442
4443
4444 { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
4445 echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; }
4446 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <ext2fs/ext2fs.h>
4456 _ACEOF
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
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
4473 ac_cv_header_ext2fs_ext2fs_h=yes
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_cv_header_ext2fs_ext2fs_h=no
4479 fi
4480
4481 rm -f conftest.err conftest.$ac_ext
4482 fi
4483 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
4484 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; }
4485 if test $ac_cv_header_ext2fs_ext2fs_h = yes; then
4486 ext2fs_h=yes
4487 else
4488 ext2fs_h=no
4489 fi
4490
4491
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; }
4494 if test "${ac_cv_lib_ext2fs_ext2fs_open+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497 ac_check_lib_save_LIBS=$LIBS
4498 LIBS="-lext2fs -lcom_err $LIBS"
4499 cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h. */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505
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. */
4509 #ifdef __cplusplus
4510 extern "C"
4511 #endif
4512 char ext2fs_open ();
4513 int
4514 main ()
4515 {
4516 return ext2fs_open ();
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest.$ac_objext conftest$ac_exeext
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
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
4539 ac_cv_lib_ext2fs_ext2fs_open=yes
4540 else
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 ac_cv_lib_ext2fs_ext2fs_open=no
4545 fi
4546
4547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4548 conftest$ac_exeext conftest.$ac_ext
4549 LIBS=$ac_check_lib_save_LIBS
4550 fi
4551 { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_open" >&5
4552 echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_open" >&6; }
4553 if test $ac_cv_lib_ext2fs_ext2fs_open = yes; then
4554 ext2fs_lib=yes
4555 else
4556 ext2fs_lib=no
4557 fi
4558
4559 if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then
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; }; }
4563 fi
4564
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; }
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
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. */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 char ext2fs_read_inode_full ();
4586 int
4587 main ()
4588 {
4589 return ext2fs_read_inode_full ();
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 rm -f conftest.$ac_objext conftest$ac_exeext
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
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
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
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
4617 ac_cv_lib_ext2fs_ext2fs_read_inode_full=no
4618 fi
4619
4620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4621 conftest$ac_exeext conftest.$ac_ext
4622 LIBS=$ac_check_lib_save_LIBS
4623 fi
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; }
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
4640
4641 for ac_header in ext2fs/ext2_fs.h
4642 do
4643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h. */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 #include <$ac_header>
4656 _ACEOF
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
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
4673 eval "$as_ac_Header=yes"
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 eval "$as_ac_Header=no"
4679 fi
4680
4681 rm -f conftest.err conftest.$ac_ext
4682 fi
4683 ac_res=`eval echo '${'$as_ac_Header'}'`
4684 { echo "$as_me:$LINENO: result: $ac_res" >&5
4685 echo "${ECHO_T}$ac_res" >&6; }
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
4691 fi
4692
4693 done
4694
4695
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; }
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <stdio.h>
4705 #ifdef HAVE_EXT2FS_EXT2_FS_H
4706 #include <ext2fs/ext2_fs.h>
4707 #else
4708 #include <linux/ext2_fs.h>
4709 #endif
4710 #include <ext2fs/ext2fs.h>
4711 int
4712 main ()
4713 {
4714 ext2_ino_t ino = 0;
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
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
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest.$ac_objext; then
4736
4737 cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_EXT2_INO_T 1
4739 _ACEOF
4740
4741 { echo "$as_me:$LINENO: result: yes" >&5
4742 echo "${ECHO_T}yes" >&6; }
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4749 fi
4750
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; }
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <stdio.h>
4762 #ifdef HAVE_EXT2FS_EXT2_FS_H
4763 #include <ext2fs/ext2_fs.h>
4764 #else
4765 #include <linux/ext2_fs.h>
4766 #endif
4767 #include <ext2fs/ext2fs.h>
4768 int
4769 main ()
4770 {
4771 struct ext2_super_block es; es.s_journal_inum = 0;
4772 ;
4773 return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext
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
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4793
4794 cat >>confdefs.h <<\_ACEOF
4795 #define HAVE_EXT2_JOURNAL_INUM 1
4796 _ACEOF
4797
4798 { echo "$as_me:$LINENO: result: yes" >&5
4799 echo "${ECHO_T}yes" >&6; }
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804 { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4806 fi
4807
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; }
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
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
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
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
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
4846
4847 rm -f conftest.err conftest.$ac_ext
4848 fi
4849 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
4850 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
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
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; }
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
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. */
4875 #ifdef __cplusplus
4876 extern "C"
4877 #endif
4878 char blkid_get_devname ();
4879 int
4880 main ()
4881 {
4882 return blkid_get_devname ();
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext conftest$ac_exeext
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
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
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
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
4910 ac_cv_lib_blkid_blkid_get_devname=no
4911 fi
4912
4913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4914 conftest$ac_exeext conftest.$ac_ext
4915 LIBS=$ac_check_lib_save_LIBS
4916 fi
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; }
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
4931 BLKID="-lblkid -luuid -ldevmapper -lselinux -lsepol"
4932 fi
4933
4934
4935 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4936 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
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
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. */
4952 #ifdef __cplusplus
4953 extern "C"
4954 #endif
4955 char tgetent ();
4956 int
4957 main ()
4958 {
4959 return tgetent ();
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 rm -f conftest.$ac_objext conftest$ac_exeext
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
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
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
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
4987 ac_cv_lib_ncurses_tgetent=no
4988 fi
4989
4990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4991 conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4993 fi
4994 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
4996 if test $ac_cv_lib_ncurses_tgetent = yes; then
4997 ncurses_lib=yes
4998 else
4999 ncurses_lib=no
5000 fi
5001
5002 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5003 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
5004 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-ltermcap $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015
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. */
5019 #ifdef __cplusplus
5020 extern "C"
5021 #endif
5022 char tgetent ();
5023 int
5024 main ()
5025 {
5026 return tgetent ();
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
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
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5049 ac_cv_lib_termcap_tgetent=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 ac_cv_lib_termcap_tgetent=no
5055 fi
5056
5057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5058 conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5060 fi
5061 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5062 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
5063 if test $ac_cv_lib_termcap_tgetent = yes; then
5064 termcap_lib=yes
5065 else
5066 termcap_lib=no
5067 fi
5068
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. */
5082
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
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;}
5141 { (exit 1); exit 1; }; }
5142 fi
5143 fi
5144 if test "$tinfo_lib" = yes; then
5145 rdllib="-ltinfo"
5146 elif test "$ncurses_lib" = yes; then
5147 rdllib="-lncurses"
5148 elif test "$termcap_lib" = yes; then
5149 rdllib="-ltermcap"
5150 fi
5151
5152 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
5153 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
5154 if test "${ac_cv_header_readline_readline_h+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #include <readline/readline.h>
5164 _ACEOF
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
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5181 ac_cv_header_readline_readline_h=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_cv_header_readline_readline_h=no
5187 fi
5188
5189 rm -f conftest.err conftest.$ac_ext
5190 fi
5191 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
5192 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
5193 if test $ac_cv_header_readline_readline_h = yes; then
5194 readline_h=yes
5195 else
5196 readline_h=no
5197 fi
5198
5199
5200 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
5201 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
5202 if test "${ac_cv_lib_readline_readline+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 ac_check_lib_save_LIBS=$LIBS
5206 LIBS="-lreadline $rdllib $LIBS"
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213
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. */
5217 #ifdef __cplusplus
5218 extern "C"
5219 #endif
5220 char readline ();
5221 int
5222 main ()
5223 {
5224 return readline ();
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 rm -f conftest.$ac_objext conftest$ac_exeext
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
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5247 ac_cv_lib_readline_readline=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 ac_cv_lib_readline_readline=no
5253 fi
5254
5255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5256 conftest$ac_exeext conftest.$ac_ext
5257 LIBS=$ac_check_lib_save_LIBS
5258 fi
5259 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
5260 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
5261 if test $ac_cv_lib_readline_readline = yes; then
5262 readline_lib=yes
5263 else
5264 readline_lib=no
5265 fi
5266
5267 if test "$readline_h" = no -o "$readline_lib" = no; then
5268 if test "$READLINE" = "yes"; then
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; }; }
5272 fi
5273 fi
5274 if test "$READLINE" = yes; then
5275 READLINE="-lreadline $rdllib"
5276 fi
5277
5278
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; }
5281 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 ac_check_lib_save_LIBS=$LIBS
5285 LIBS="-lreadline "-ltermcap" $LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292
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. */
5296 #ifdef __cplusplus
5297 extern "C"
5298 #endif
5299 char rl_completion_matches ();
5300 int
5301 main ()
5302 {
5303 return rl_completion_matches ();
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
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
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5326 ac_cv_lib_readline_rl_completion_matches=yes
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_cv_lib_readline_rl_completion_matches=no
5332 fi
5333
5334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5335 conftest$ac_exeext conftest.$ac_ext
5336 LIBS=$ac_check_lib_save_LIBS
5337 fi
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; }
5340 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
5341 rlcm=yes
5342 else
5343 rlcm=no
5344 fi
5345
5346 if test "$rlcm" = yes; then
5347
5348 cat >>confdefs.h <<\_ACEOF
5349 #define HAVE_READLINE_RLCM 1
5350 _ACEOF
5351
5352 fi
5353
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; }
5356 if test "${ac_cv_lib_readline_rl_completion_append_character+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 ac_check_lib_save_LIBS=$LIBS
5360 LIBS="-lreadline "-ltermcap" $LIBS"
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367
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. */
5371 #ifdef __cplusplus
5372 extern "C"
5373 #endif
5374 char rl_completion_append_character ();
5375 int
5376 main ()
5377 {
5378 return rl_completion_append_character ();
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.$ac_objext conftest$ac_exeext
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
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5401 ac_cv_lib_readline_rl_completion_append_character=yes
5402 else
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 ac_cv_lib_readline_rl_completion_append_character=no
5407 fi
5408
5409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5410 conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5412 fi
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; }
5415 if test $ac_cv_lib_readline_rl_completion_append_character = yes; then
5416 rcac=yes
5417 else
5418 rcac=no
5419 fi
5420
5421 if test "$rcac" = yes; then
5422
5423 cat >>confdefs.h <<\_ACEOF
5424 #define HAVE_READLINE_CAC 1
5425 _ACEOF
5426
5427 fi
5428
5429 { echo "$as_me:$LINENO: checking for zlib.h" >&5
5430 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
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
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 #include <zlib.h>
5441 _ACEOF
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
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5458 ac_cv_header_zlib_h=yes
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 ac_cv_header_zlib_h=no
5464 fi
5465
5466 rm -f conftest.err conftest.$ac_ext
5467 fi
5468 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5469 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
5470 if test $ac_cv_header_zlib_h = yes; then
5471 zlib_h=yes
5472 else
5473 zlib_h=no
5474 fi
5475
5476
5477 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
5478 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
5479 if test "${ac_cv_lib_z_compress2+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 ac_check_lib_save_LIBS=$LIBS
5483 LIBS="-lz $LIBS"
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490
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. */
5494 #ifdef __cplusplus
5495 extern "C"
5496 #endif
5497 char compress2 ();
5498 int
5499 main ()
5500 {
5501 return compress2 ();
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 rm -f conftest.$ac_objext conftest$ac_exeext
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
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5524 ac_cv_lib_z_compress2=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_cv_lib_z_compress2=no
5530 fi
5531
5532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5533 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5535 fi
5536 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
5537 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
5538 if test $ac_cv_lib_z_compress2 = yes; then
5539 zlib_lib=yes
5540 else
5541 zlib_lib=no
5542 fi
5543
5544 if test "$zlib_h" = yes -a "$zlib_lib" = yes; then
5545 if test "$STATICZ" = yes; then
5546 ZLIB="-Wl,-Bstatic -lz -Wl,-Bdynamic"
5547 else
5548 ZLIB="-lz"
5549 fi
5550
5551 cat >>confdefs.h <<\_ACEOF
5552 #define HAVE_ZLIB 1
5553 _ACEOF
5554
5555 else
5556 ZLIB=""
5557 fi
5558
5559
5560 { echo "$as_me:$LINENO: checking for bzlib.h" >&5
5561 echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; }
5562 if test "${ac_cv_header_bzlib_h+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <bzlib.h>
5572 _ACEOF
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
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5589 ac_cv_header_bzlib_h=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ac_cv_header_bzlib_h=no
5595 fi
5596
5597 rm -f conftest.err conftest.$ac_ext
5598 fi
5599 { echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
5600 echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; }
5601 if test $ac_cv_header_bzlib_h = yes; then
5602 bzlib_h=yes
5603 else
5604 bzlib_h=no
5605 fi
5606
5607
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; }
5610 if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 ac_check_lib_save_LIBS=$LIBS
5614 LIBS="-lbz2 $LIBS"
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621
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. */
5625 #ifdef __cplusplus
5626 extern "C"
5627 #endif
5628 char BZ2_bzBuffToBuffCompress ();
5629 int
5630 main ()
5631 {
5632 return BZ2_bzBuffToBuffCompress ();
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext conftest$ac_exeext
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
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5655 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
5661 fi
5662
5663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5664 conftest$ac_exeext conftest.$ac_ext
5665 LIBS=$ac_check_lib_save_LIBS
5666 fi
5667 { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
5668 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
5669 if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then
5670 bzlib_lib=yes
5671 else
5672 bzlib_lib=no
5673 fi
5674
5675 if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then
5676 if test "$STATICZ" = yes; then
5677 BZLIB="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
5678 else
5679 BZLIB="-lbz2"
5680 fi
5681
5682 cat >>confdefs.h <<\_ACEOF
5683 #define HAVE_BZLIB 1
5684 _ACEOF
5685
5686 else
5687 BZLIB=""
5688 fi
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
5702 do
5703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
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
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
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
5719 /* System header to define __stub macros and hopefully few prototypes,
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. */
5723
5724 #ifdef __STDC__
5725 # include <limits.h>
5726 #else
5727 # include <assert.h>
5728 #endif
5729
5730 #undef $ac_func
5731
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. */
5735 #ifdef __cplusplus
5736 extern "C"
5737 #endif
5738 char $ac_func ();
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. */
5742 #if defined __stub_$ac_func || defined __stub___$ac_func
5743 choke me
5744 #endif
5745
5746 int
5747 main ()
5748 {
5749 return $ac_func ();
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext conftest$ac_exeext
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
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5772 eval "$as_ac_var=yes"
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 eval "$as_ac_var=no"
5778 fi
5779
5780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5781 conftest$ac_exeext conftest.$ac_ext
5782 fi
5783 ac_res=`eval echo '${'$as_ac_var'}'`
5784 { echo "$as_me:$LINENO: result: $ac_res" >&5
5785 echo "${ECHO_T}$ac_res" >&6; }
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
5790
5791 fi
5792 done
5793
5794 { echo "$as_me:$LINENO: checking for glob" >&5
5795 echo $ECHO_N "checking for glob... $ECHO_C" >&6; }
5796 if test "${ac_cv_func_glob+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
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
5809 /* System header to define __stub macros and hopefully few prototypes,
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. */
5813
5814 #ifdef __STDC__
5815 # include <limits.h>
5816 #else
5817 # include <assert.h>
5818 #endif
5819
5820 #undef glob
5821
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. */
5825 #ifdef __cplusplus
5826 extern "C"
5827 #endif
5828 char glob ();
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. */
5832 #if defined __stub_glob || defined __stub___glob
5833 choke me
5834 #endif
5835
5836 int
5837 main ()
5838 {
5839 return glob ();
5840 ;
5841 return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext conftest$ac_exeext
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
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5862 ac_cv_func_glob=yes
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ac_cv_func_glob=no
5868 fi
5869
5870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5871 conftest$ac_exeext conftest.$ac_ext
5872 fi
5873 { echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5
5874 echo "${ECHO_T}$ac_cv_func_glob" >&6; }
5875
5876
5877 { echo "$as_me:$LINENO: checking for extended glob routines" >&5
5878 echo $ECHO_N "checking for extended glob routines... $ECHO_C" >&6; }
5879 if test "$ac_cv_func_glob" = "yes"; then
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886
5887 # include <glob.h>
5888 # ifdef GLOB_ALTDIRFUNC
5889 yes
5890 # endif
5891
5892 _ACEOF
5893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5894 $EGREP "yes" >/dev/null 2>&1; then
5895
5896
5897 cat >>confdefs.h <<\_ACEOF
5898 #define HAVE_GLOB 1
5899 _ACEOF
5900
5901 { echo "$as_me:$LINENO: result: yes" >&5
5902 echo "${ECHO_T}yes" >&6; }
5903
5904 else
5905
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 echo "Your system does not support extended glob, will use the internal routines"
5909
5910 fi
5911 rm -f conftest*
5912
5913 fi
5914
5915 if test "$ERMT" != ""; then
5916 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
5917 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
5918 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
5919 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 fi
5922 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
5923 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
5924 else
5925 # Is the header compilable?
5926 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
5927 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
5928 cat >conftest.$ac_ext <<_ACEOF
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
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
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
5954 ac_header_compiler=yes
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_header_compiler=no
5960 fi
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; }
5965
5966 # Is the header present?
5967 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
5968 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
5969 cat >conftest.$ac_ext <<_ACEOF
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
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
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
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
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
6000
6001 rm -f conftest.err conftest.$ac_ext
6002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6003 echo "${ECHO_T}$ac_header_preproc" >&6; }
6004
6005 # So? What about this header?
6006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6007 yes:no: )
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;}
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
6013 ;;
6014 no:yes:* )
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;}
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;}
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;}
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;}
6027
6028 ;;
6029 esac
6030 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
6031 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
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
6037 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
6038 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
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
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; }
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
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061
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. */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 char EVP_CIPHER_CTX_set_padding ();
6069 int
6070 main ()
6071 {
6072 return EVP_CIPHER_CTX_set_padding ();
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
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
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
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
6100 ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no
6101 fi
6102
6103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6104 conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_check_lib_save_LIBS
6106 fi
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; }
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
6122 { echo "$as_me:$LINENO: checking for quad_t" >&5
6123 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; }
6124 if test "${ac_cv_type_quad_t+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 $ac_includes_default
6134 typedef quad_t ac__type_new_;
6135 int
6136 main ()
6137 {
6138 if ((ac__type_new_ *) 0)
6139 return 0;
6140 if (sizeof (ac__type_new_))
6141 return 0;
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
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
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 ac_cv_type_quad_t=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_cv_type_quad_t=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 { echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_quad_t" >&6; }
6175 if test $ac_cv_type_quad_t = yes; then
6176 :
6177 else
6178
6179 cat >>confdefs.h <<_ACEOF
6180 #define quad_t int64_t
6181 _ACEOF
6182
6183 fi
6184
6185 { echo "$as_me:$LINENO: checking for u_quad_t" >&5
6186 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6; }
6187 if test "${ac_cv_type_u_quad_t+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 typedef u_quad_t ac__type_new_;
6198 int
6199 main ()
6200 {
6201 if ((ac__type_new_ *) 0)
6202 return 0;
6203 if (sizeof (ac__type_new_))
6204 return 0;
6205 ;
6206 return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext
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
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest.$ac_objext; then
6226 ac_cv_type_u_quad_t=yes
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 ac_cv_type_u_quad_t=no
6232 fi
6233
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 { echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
6237 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6; }
6238 if test $ac_cv_type_u_quad_t = yes; then
6239 :
6240 else
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define u_quad_t uint64_t
6244 _ACEOF
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
6255 ac_config_files="$ac_config_files MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"
6256
6257 cat >confcache <<\_ACEOF
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
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.
6263 #
6264 # config.status only pays attention to the cache file if you give it
6265 # the --recheck option to rerun configure.
6266 #
6267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6269 # following values.
6270
6271 _ACEOF
6272
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.
6275 # So, we kill variables containing newlines.
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.
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
6294 (set) 2>&1 |
6295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6296 *${as_nl}ac_space=\ *)
6297 # `set' does not quote correctly, so add quotes (double-quote
6298 # substitution turns \\\\ into \\, and sed turns \\ into \).
6299 sed -n \
6300 "s/'/'\\\\''/g;
6301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6302 ;; #(
6303 *)
6304 # `set' quotes correctly as required by POSIX, so do not add quotes.
6305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6306 ;;
6307 esac |
6308 sort
6309 ) |
6310 sed '
6311 /^ac_cv_env_/b end
6312 t clear
6313 :clear
6314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6315 t end
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;}
6323 cat confcache >$cache_file
6324 else
6325 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6327 fi
6328 fi
6329 rm -f confcache
6330
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
6335 DEFS=-DHAVE_CONFIG_H
6336
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.
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'
6347 done
6348 LIBOBJS=$ac_libobjs
6349
6350 LTLIBOBJS=$ac_ltlibobjs
6351
6352
6353
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.
6362 # Run this file to recreate the current configuration.
6363 # Compiler output produced by configure, useful for debugging
6364 # configure, is in config.log if it exists.
6365
6366 debug=false
6367 ac_cs_recheck=false
6368 ac_cs_silent=false
6369 SHELL=\${CONFIG_SHELL-$SHELL}
6370 _ACEOF
6371
6372 cat >>$CONFIG_STATUS <<\_ACEOF
6373 ## --------------------- ##
6374 ## M4sh Initialization. ##
6375 ## --------------------- ##
6376
6377 # Be more Bourne compatible
6378 DUALCASE=1; export DUALCASE # for MKS sh
6379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6380 emulate sh
6381 NULLCMD=:
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+"$@"}'='"$@"'
6385 setopt NO_GLOB_SUBST
6386 else
6387 case `(set -o) 2>/dev/null` in
6388 *posix*) set -o posix ;;
6389 esac
6390
6391 fi
6392
6393
6394
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
6417 # Support unset when possible.
6418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6419 as_unset=unset
6420 else
6421 as_unset=false
6422 fi
6423
6424
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
6458 # Work around bugs in pre-3.0 UWIN ksh.
6459 for as_var in ENV MAIL MAILPATH
6460 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6461 done
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
6472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6473 eval $as_var=C; export $as_var
6474 else
6475 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6476 fi
6477 done
6478
6479 # Required to use basename.
6480 if expr a : '\(a\)' >/dev/null 2>&1 &&
6481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6482 as_expr=expr
6483 else
6484 as_expr=false
6485 fi
6486
6487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6488 as_basename=basename
6489 else
6490 as_basename=false
6491 fi
6492
6493
6494 # Name of the executable.
6495 as_me=`$as_basename -- "$0" ||
6496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6497 X"$0" : 'X\(//\)$' \| \
6498 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6499 echo X/"$0" |
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'`
6513
6514 # CDPATH.
6515 $as_unset CDPATH
6516
6517
6518
6519 as_lineno_1=$LINENO
6520 as_lineno_2=$LINENO
6521 test "x$as_lineno_1" != "x$as_lineno_2" &&
6522 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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.
6531 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
6538 sed '
6539 s/[$]LINENO.*/&-/
6540 t lineno
6541 b
6542 :lineno
6543 N
6544 :loop
6545 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6546 t loop
6547 s/-\n.*//
6548 ' >$as_me.lineno &&
6549 chmod +x "$as_me.lineno" ||
6550 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
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
6555 # original and so on. Autoconf is especially sensitive to this).
6556 . "./$as_me.lineno"
6557 # Exit status is that of the last command.
6558 exit
6559 }
6560
6561
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';;
6577 esac
6578
6579 if expr a : '\(a\)' >/dev/null 2>&1 &&
6580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6581 as_expr=expr
6582 else
6583 as_expr=false
6584 fi
6585
6586 rm -f conf$$ conf$$.exe conf$$.file
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
6593 echo >conf$$.file
6594 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
6601 as_ln_s='cp -p'
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
6607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6608 rmdir conf$$.dir 2>/dev/null
6609
6610 if mkdir -p . 2>/dev/null; then
6611 as_mkdir_p=:
6612 else
6613 test -d ./-p && rmdir ./-p
6614 as_mkdir_p=false
6615 fi
6616
6617 if test -x / >/dev/null 2>&1; then
6618 as_test_x='test -x'
6619 else
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 '
6637 fi
6638 as_executable_p=$as_test_x
6639
6640 # Sed expression to map a string onto a valid CPP name.
6641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6642
6643 # Sed expression to map a string onto a valid variable name.
6644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6645
6646
6647 exec 6>&1
6648
6649 # Save the log message, to keep $[0] and so on meaningful, and to
6650 # report actual input values of CONFIG_FILES etc. instead of their
6651 # values after options handling.
6652 ac_log="
6653 This file was extended by $as_me, which was
6654 generated by GNU Autoconf 2.61. Invocation command line was
6655
6656 CONFIG_FILES = $CONFIG_FILES
6657 CONFIG_HEADERS = $CONFIG_HEADERS
6658 CONFIG_LINKS = $CONFIG_LINKS
6659 CONFIG_COMMANDS = $CONFIG_COMMANDS
6660 $ $0 $@
6661
6662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6663 "
6664
6665 _ACEOF
6666
6667 cat >>$CONFIG_STATUS <<_ACEOF
6668 # Files that config.status was made for.
6669 config_files="$ac_config_files"
6670 config_headers="$ac_config_headers"
6671
6672 _ACEOF
6673
6674 cat >>$CONFIG_STATUS <<\_ACEOF
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
6682 -V, --version print version number and configuration settings, then exit
6683 -q, --quiet do not print progress messages
6684 -d, --debug don't remove temporary files
6685 --recheck update $as_me by reconfiguring in the same conditions
6686 --file=FILE[:TEMPLATE]
6687 instantiate the configuration file FILE
6688 --header=FILE[:TEMPLATE]
6689 instantiate the configuration header FILE
6690
6691 Configuration files:
6692 $config_files
6693
6694 Configuration headers:
6695 $config_headers
6696
6697 Report bugs to <bug-autoconf@gnu.org>."
6698
6699 _ACEOF
6700 cat >>$CONFIG_STATUS <<_ACEOF
6701 ac_cs_version="\\
6702 config.status
6703 configured by $0, generated by GNU Autoconf 2.61,
6704 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6705
6706 Copyright (C) 2006 Free Software Foundation, Inc.
6707 This config.status script is free software; the Free Software Foundation
6708 gives unlimited permission to copy, distribute and modify it."
6709
6710 ac_pwd='$ac_pwd'
6711 srcdir='$srcdir'
6712 INSTALL='$INSTALL'
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
6720 do
6721 case $1 in
6722 --*=*)
6723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6725 ac_shift=:
6726 ;;
6727 *)
6728 ac_option=$1
6729 ac_optarg=$2
6730 ac_shift=shift
6731 ;;
6732 esac
6733
6734 case $ac_option in
6735 # Handling of the options.
6736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6737 ac_cs_recheck=: ;;
6738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6739 echo "$ac_cs_version"; exit ;;
6740 --debug | --debu | --deb | --de | --d | -d )
6741 debug=: ;;
6742 --file | --fil | --fi | --f )
6743 $ac_shift
6744 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6745 ac_need_defaults=false;;
6746 --header | --heade | --head | --hea )
6747 $ac_shift
6748 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6749 ac_need_defaults=false;;
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 ;;
6757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6759 ac_cs_silent=: ;;
6760
6761 # This is an error.
6762 -*) { echo "$as_me: error: unrecognized option: $1
6763 Try \`$0 --help' for more information." >&2
6764 { (exit 1); exit 1; }; } ;;
6765
6766 *) ac_config_targets="$ac_config_targets $1"
6767 ac_need_defaults=false ;;
6768
6769 esac
6770 shift
6771 done
6772
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
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
6787 fi
6788
6789 _ACEOF
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
6799
6800 _ACEOF
6801 cat >>$CONFIG_STATUS <<_ACEOF
6802 _ACEOF
6803
6804 cat >>$CONFIG_STATUS <<\_ACEOF
6805
6806 # Handling of arguments.
6807 for ac_config_target in $ac_config_targets
6808 do
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
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
6826
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
6836 # Have a temporary directory for convenience. Make it in the build tree
6837 # simply because there is no reason against having it here, and in addition,
6838 # creating and moving files from /tmp can sometimes cause problems.
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'.
6842 $debug ||
6843 {
6844 tmp=
6845 trap 'exit_status=$?
6846 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6847 ' 0
6848 trap '{ (exit 1); exit 1; }' 1 2 13 15
6849 }
6850 # Create a (secure) tmp directory for tmp files.
6851
6852 {
6853 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6854 test -n "$tmp" && test -d "$tmp"
6855 } ||
6856 {
6857 tmp=./conf$$-$RANDOM
6858 (umask 077 && mkdir "$tmp")
6859 } ||
6860 {
6861 echo "$me: cannot create a temporary directory in ." >&2
6862 { (exit 1); exit 1; }
6863 }
6864
6865 #
6866 # Set up the sed scripts for CONFIG_FILES section.
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
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!! "
6979 fi
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
6987
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
7010 _ACEOF
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
7028 cat >>$CONFIG_STATUS <<\_ACEOF
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;;
7044 esac
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
7052
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" ||
7094 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7095 X"$ac_file" : 'X\(//\)[^/]' \| \
7096 X"$ac_file" : 'X\(//\)$' \| \
7097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7098 echo X"$ac_file" |
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"; } || {
7121 as_dirs=
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" ||
7129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7130 X"$as_dir" : 'X\(//\)[^/]' \| \
7131 X"$as_dir" : 'X\(//\)$' \| \
7132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7133 echo X"$as_dir" |
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
7152 done
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;}
7156 { (exit 1); exit 1; }; }; }
7157 ac_builddir=.
7158
7159 case "$ac_dir" in
7160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7161 *)
7162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
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
7174
7175 case $srcdir in
7176 .) # We are building in place.
7177 ac_srcdir=.
7178 ac_top_srcdir=$ac_top_builddir_sub
7179 ac_abs_top_srcdir=$ac_pwd ;;
7180 [\\/]* | ?:[\\/]* ) # Absolute name.
7181 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
7188 esac
7189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7190
7191
7192 case $ac_mode in
7193 :F)
7194 #
7195 # CONFIG_FILE
7196 #
7197
7198 case $INSTALL in
7199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7200 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7201 esac
7202 _ACEOF
7203
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
7233 _ACEOF
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?
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
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"
7267 case $ac_file in
7268 -) cat "$tmp/out"; rm -f "$tmp/out";;
7269 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7270 esac
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
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.
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 :
7331 do
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
7342 echo 'CEOF
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
7347 rm -f conftest.defines
7348 mv conftest.tail conftest.defines
7349 done
7350 rm -f conftest.defines conftest.tail
7351
7352 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7353 cat >>$CONFIG_STATUS <<\_ACEOF
7354 if test x"$ac_file" != x-; then
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
7358 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7359 echo "$as_me: $ac_file is unchanged" >&6;}
7360 else
7361 rm -f $ac_file
7362 mv "$tmp/config.h" $ac_file
7363 fi
7364 else
7365 echo "/* $configure_input */"
7366 cat "$ac_result"
7367 fi
7368 rm -f "$tmp/out12"
7369 ;;
7370
7371
7372 esac
7373
7374 done # for ac_tag
7375
7376
7377 { (exit 0); exit 0; }
7378 _ACEOF
7379 chmod +x $CONFIG_STATUS
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=:
7393 ac_config_status_args=
7394 test "$silent" = yes &&
7395 ac_config_status_args="$ac_config_status_args --quiet"
7396 exec 5>/dev/null
7397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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
7403