]> sourceware.org Git - lvm2.git/blob - configure
Generate man pages from templates and include version. (romster)
[lvm2.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="lib/device/dev-cache.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_default_prefix=/usr
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SED
667 AWK
668 CC
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
675 CPP
676 GREP
677 EGREP
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 LN_S
682 SET_MAKE
683 RANLIB
684 CFLOW_CMD
685 CSCOPE_CMD
686 ALLOCA
687 LIBOBJS
688 POW_LIB
689 LCOV
690 GENHTML
691 LVM2CMD_LIB
692 MSGFMT
693 MODPROBE_CMD
694 BUILD_DMEVENTD
695 CLDFLAGS
696 CLDNOWHOLEARCHIVE
697 CLDWHOLEARCHIVE
698 CLUSTER
699 CLVMD
700 CMDLIB
701 COPTIMISE_FLAG
702 DEBUG
703 DEVMAPPER
704 DMDIR
705 DMEVENTD
706 DM_COMPAT
707 DM_DEVICE_GID
708 DM_DEVICE_MODE
709 DM_DEVICE_UID
710 DM_IOCTLS
711 DM_LIB_VERSION
712 FSADM
713 GROUP
714 HAVE_LIBDL
715 HAVE_REALTIME
716 HAVE_SELINUX
717 INTL
718 INTL_PACKAGE
719 JOBS
720 LDDEPS
721 LIB_SUFFIX
722 LOCALEDIR
723 LVM1
724 LVM1_FALLBACK
725 CONFDIR
726 LVM_VERSION
727 MIRRORS
728 OWNER
729 PKGCONFIG
730 POOL
731 SNAPSHOTS
732 STATICDIR
733 STATIC_LINK
734 LIB_PTHREAD
735 usrlibdir
736 usrsbindir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
769
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
795
796 ac_prev=
797 ac_dashdash=
798 for ac_option
799 do
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
805 fi
806
807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
811
812 # Accept the important Cygnus configure options, so we can diagnose typos.
813
814 case $ac_dashdash$ac_option in
815 --)
816 ac_dashdash=yes ;;
817
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 bindir=$ac_optarg ;;
822
823 -build | --build | --buil | --bui | --bu)
824 ac_prev=build_alias ;;
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826 build_alias=$ac_optarg ;;
827
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833 cache_file=$ac_optarg ;;
834
835 --config-cache | -C)
836 cache_file=config.cache ;;
837
838 -datadir | --datadir | --datadi | --datad)
839 ac_prev=datadir ;;
840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
841 datadir=$ac_optarg ;;
842
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
849
850 -disable-* | --disable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
858
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
863
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
868
869 -enable-* | --enable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
877
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
886
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
890
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
897
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
902
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
908
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
915
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
920
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
925
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
932
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
937
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
944
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
949
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
953
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
957
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
961
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
970
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
975
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
982
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
989
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1006
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1011
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1016
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1020
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1026
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1037
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1042
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1047
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1054
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1059
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1062
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1065
1066 -with-* | --with-*)
1067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
1074
1075 -without-* | --without-*)
1076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
1083
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1087
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1094
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1101
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1105 ;;
1106
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1115
1116 *)
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 ;;
1123
1124 esac
1125 done
1126
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1131 fi
1132
1133 # Be sure to have absolute directory names.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1138 do
1139 eval ac_val=\$$ac_var
1140 case $ac_val in
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143 esac
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1146 done
1147
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1151 build=$build_alias
1152 host=$host_alias
1153 target=$target_alias
1154
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1163 fi
1164 fi
1165
1166 ac_tool_prefix=
1167 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168
1169 test "$silent" = yes && exec 6>/dev/null
1170
1171
1172 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di=`ls -di .` &&
1174 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1180
1181
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 echo X"$0" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\).*/{
1205 s//\1/
1206 q
1207 }
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1212 fi
1213 else
1214 ac_srcdir_defaulted=no
1215 fi
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1220 fi
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 ac_abs_confdir=`(
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1229 fi
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1242
1243 #
1244 # Report the --help message.
1245 #
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures this package to adapt to many kinds of systems.
1251
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1256
1257 Defaults for the options are specified in brackets.
1258
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1275
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1280
1281 For better control, use the options below.
1282
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1304
1305 cat <<\_ACEOF
1306
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 --target=TARGET configure for building compilers for TARGET [HOST]
1311 _ACEOF
1312 fi
1313
1314 if test -n "$ac_init_help"; then
1315
1316 cat <<\_ACEOF
1317
1318 Optional Features:
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1321 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1322 device-mapper is missing from the kernel
1323 --disable-readline Disable readline support
1324 --disable-realtime Disable realtime clock support
1325 --enable-debug Enable debugging
1326 --enable-profiling Gather gcov profiling data
1327 --disable-devmapper Disable device-mapper interaction
1328 --disable-o_direct Disable O_DIRECT
1329 --enable-cmdlib Build shared command library
1330 --enable-fsadm Enable fsadm
1331 --enable-dmeventd Enable the device-mapper event daemon
1332 --enable-static_link Use this to link the tools to their libraries
1333 statically. Default is dynamic linking
1334 --disable-selinux Disable selinux support
1335 --enable-nls Enable Native Language Support
1336
1337 Optional Packages:
1338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1340 --with-user=USER Set the owner of installed files [USER=root]
1341 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1342 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1343 TYPE=internal
1344 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1345 TYPE=internal
1346 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1347 TYPE=internal
1348 --with-snapshots=TYPE Snapshot support: internal/shared/none
1349 TYPE=internal
1350 --with-mirrors=TYPE Mirror support: internal/shared/none
1351 TYPE=internal
1352 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
1353 TYPE=none
1354 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1355 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1356 --with-confdir=DIR Configuration files in DIR /etc
1357 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
1358 --with-dmdir=DIR Build against device-mapper source tree in DIR
1359 --with-usrlibdir=DIR
1360 --with-usrsbindir=DIR
1361
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1370 CPP C preprocessor
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 # Check that the precious variables saved in the cache have kept the same
1723 # value.
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1731 set,)
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,set)
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1737 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,);;
1740 *)
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1744 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1745 echo "$as_me: former value: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1747 echo "$as_me: current value: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1749 fi;;
1750 esac
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1753 case $ac_new_val in
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1756 esac
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 esac
1761 fi
1762 done
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1765 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1769 fi
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792
1793
1794
1795 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1796
1797
1798 ################################################################################
1799 ac_aux_dir=
1800 for ac_dir in autoconf "$srcdir"/autoconf; do
1801 if test -f "$ac_dir/install-sh"; then
1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/install-sh -c"
1804 break
1805 elif test -f "$ac_dir/install.sh"; then
1806 ac_aux_dir=$ac_dir
1807 ac_install_sh="$ac_aux_dir/install.sh -c"
1808 break
1809 elif test -f "$ac_dir/shtool"; then
1810 ac_aux_dir=$ac_dir
1811 ac_install_sh="$ac_aux_dir/shtool install -c"
1812 break
1813 fi
1814 done
1815 if test -z "$ac_aux_dir"; then
1816 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1817 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1818 { (exit 1); exit 1; }; }
1819 fi
1820
1821 # These three variables are undocumented and unsupported,
1822 # and are intended to be withdrawn in a future Autoconf release.
1823 # They can cause serious problems if a builder's source tree is in a directory
1824 # whose full name contains unusual characters.
1825 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1826 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1827 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1828
1829
1830
1831 ################################################################################
1832 # Make sure we can run config.sub.
1833 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1834 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1835 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1836 { (exit 1); exit 1; }; }
1837
1838 { echo "$as_me:$LINENO: checking build system type" >&5
1839 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1840 if test "${ac_cv_build+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 ac_build_alias=$build_alias
1844 test "x$ac_build_alias" = x &&
1845 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1846 test "x$ac_build_alias" = x &&
1847 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1848 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1849 { (exit 1); exit 1; }; }
1850 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1853 { (exit 1); exit 1; }; }
1854
1855 fi
1856 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1857 echo "${ECHO_T}$ac_cv_build" >&6; }
1858 case $ac_cv_build in
1859 *-*-*) ;;
1860 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1861 echo "$as_me: error: invalid value of canonical build" >&2;}
1862 { (exit 1); exit 1; }; };;
1863 esac
1864 build=$ac_cv_build
1865 ac_save_IFS=$IFS; IFS='-'
1866 set x $ac_cv_build
1867 shift
1868 build_cpu=$1
1869 build_vendor=$2
1870 shift; shift
1871 # Remember, the first character of IFS is used to create $*,
1872 # except with old shells:
1873 build_os=$*
1874 IFS=$ac_save_IFS
1875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1876
1877
1878 { echo "$as_me:$LINENO: checking host system type" >&5
1879 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1880 if test "${ac_cv_host+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test "x$host_alias" = x; then
1884 ac_cv_host=$ac_cv_build
1885 else
1886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1887 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1888 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1889 { (exit 1); exit 1; }; }
1890 fi
1891
1892 fi
1893 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1894 echo "${ECHO_T}$ac_cv_host" >&6; }
1895 case $ac_cv_host in
1896 *-*-*) ;;
1897 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1898 echo "$as_me: error: invalid value of canonical host" >&2;}
1899 { (exit 1); exit 1; }; };;
1900 esac
1901 host=$ac_cv_host
1902 ac_save_IFS=$IFS; IFS='-'
1903 set x $ac_cv_host
1904 shift
1905 host_cpu=$1
1906 host_vendor=$2
1907 shift; shift
1908 # Remember, the first character of IFS is used to create $*,
1909 # except with old shells:
1910 host_os=$*
1911 IFS=$ac_save_IFS
1912 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1913
1914
1915 { echo "$as_me:$LINENO: checking target system type" >&5
1916 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_target+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test "x$target_alias" = x; then
1921 ac_cv_target=$ac_cv_host
1922 else
1923 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1924 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1925 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1926 { (exit 1); exit 1; }; }
1927 fi
1928
1929 fi
1930 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1931 echo "${ECHO_T}$ac_cv_target" >&6; }
1932 case $ac_cv_target in
1933 *-*-*) ;;
1934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1935 echo "$as_me: error: invalid value of canonical target" >&2;}
1936 { (exit 1); exit 1; }; };;
1937 esac
1938 target=$ac_cv_target
1939 ac_save_IFS=$IFS; IFS='-'
1940 set x $ac_cv_target
1941 shift
1942 target_cpu=$1
1943 target_vendor=$2
1944 shift; shift
1945 # Remember, the first character of IFS is used to create $*,
1946 # except with old shells:
1947 target_os=$*
1948 IFS=$ac_save_IFS
1949 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1950
1951
1952 # The aliases save the names the user supplied, while $host etc.
1953 # will get canonicalized.
1954 test -n "$target_alias" &&
1955 test "$program_prefix$program_suffix$program_transform_name" = \
1956 NONENONEs,x,x, &&
1957 program_prefix=${target_alias}-
1958
1959 case "$host_os" in
1960 linux*)
1961 COPTIMISE_FLAG="-O2"
1962 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1963 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1964 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1965 LDDEPS="$LDDEPS .export.sym"
1966 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
1967 LIB_SUFFIX=so
1968 DEVMAPPER=yes
1969 ODIRECT=yes
1970 DM_IOCTLS=yes
1971 SELINUX=yes
1972 REALTIME=yes
1973 CLUSTER=internal
1974 FSADM=no
1975 ;;
1976 darwin*)
1977 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1978 COPTIMISE_FLAG="-O2"
1979 CLDFLAGS="$CLDFLAGS"
1980 CLDWHOLEARCHIVE="-all_load"
1981 CLDNOWHOLEARCHIVE=
1982 LIB_SUFFIX=dylib
1983 DEVMAPPER=yes
1984 ODIRECT=no
1985 DM_IOCTLS=no
1986 SELINUX=no
1987 REALTIME=no
1988 CLUSTER=none
1989 FSADM=no
1990 ;;
1991 esac
1992
1993 ################################################################################
1994 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
1995 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1996 if test "${ac_cv_path_SED+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2000 for ac_i in 1 2 3 4 5 6 7; do
2001 ac_script="$ac_script$as_nl$ac_script"
2002 done
2003 echo "$ac_script" | sed 99q >conftest.sed
2004 $as_unset ac_script || ac_script=
2005 # Extract the first word of "sed gsed" to use in msg output
2006 if test -z "$SED"; then
2007 set dummy sed gsed; ac_prog_name=$2
2008 if test "${ac_cv_path_SED+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 ac_path_SED_found=false
2012 # Loop through the user's path and test for each of PROGNAME-LIST
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_prog in sed gsed; do
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2022 # Check for GNU ac_path_SED and select it if it is found.
2023 # Check for GNU $ac_path_SED
2024 case `"$ac_path_SED" --version 2>&1` in
2025 *GNU*)
2026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2027 *)
2028 ac_count=0
2029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2030 while :
2031 do
2032 cat "conftest.in" "conftest.in" >"conftest.tmp"
2033 mv "conftest.tmp" "conftest.in"
2034 cp "conftest.in" "conftest.nl"
2035 echo '' >> "conftest.nl"
2036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2038 ac_count=`expr $ac_count + 1`
2039 if test $ac_count -gt ${ac_path_SED_max-0}; then
2040 # Best one so far, save it but keep looking for a better one
2041 ac_cv_path_SED="$ac_path_SED"
2042 ac_path_SED_max=$ac_count
2043 fi
2044 # 10*(2^10) chars as input seems more than enough
2045 test $ac_count -gt 10 && break
2046 done
2047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2048 esac
2049
2050
2051 $ac_path_SED_found && break 3
2052 done
2053 done
2054
2055 done
2056 IFS=$as_save_IFS
2057
2058
2059 fi
2060
2061 SED="$ac_cv_path_SED"
2062 if test -z "$SED"; then
2063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2064 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068 else
2069 ac_cv_path_SED=$SED
2070 fi
2071
2072 fi
2073 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2074 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2075 SED="$ac_cv_path_SED"
2076 rm -f conftest.sed
2077
2078 for ac_prog in gawk mawk nawk awk
2079 do
2080 # Extract the first word of "$ac_prog", so it can be a program name with args.
2081 set dummy $ac_prog; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_prog_AWK+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 if test -n "$AWK"; then
2088 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 ac_cv_prog_AWK="$ac_prog"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2100 fi
2101 done
2102 done
2103 IFS=$as_save_IFS
2104
2105 fi
2106 fi
2107 AWK=$ac_cv_prog_AWK
2108 if test -n "$AWK"; then
2109 { echo "$as_me:$LINENO: result: $AWK" >&5
2110 echo "${ECHO_T}$AWK" >&6; }
2111 else
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2114 fi
2115
2116
2117 test -n "$AWK" && break
2118 done
2119
2120 ac_ext=c
2121 ac_cpp='$CPP $CPPFLAGS'
2122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147 done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152 fi
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155 { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2157 else
2158 { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2160 fi
2161
2162
2163 fi
2164 if test -z "$ac_cv_prog_CC"; then
2165 ac_ct_CC=$CC
2166 # Extract the first word of "gcc", so it can be a program name with args.
2167 set dummy gcc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$ac_ct_CC"; then
2174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183 ac_cv_prog_ac_ct_CC="gcc"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2186 fi
2187 done
2188 done
2189 IFS=$as_save_IFS
2190
2191 fi
2192 fi
2193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6; }
2197 else
2198 { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2200 fi
2201
2202 if test "x$ac_ct_CC" = x; then
2203 CC=""
2204 else
2205 case $cross_compiling:$ac_tool_warned in
2206 yes:)
2207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2208 whose name does not start with the host triplet. If you think this
2209 configuration is useful to you, please write to autoconf@gnu.org." >&5
2210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet. If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2213 ac_tool_warned=yes ;;
2214 esac
2215 CC=$ac_ct_CC
2216 fi
2217 else
2218 CC="$ac_cv_prog_CC"
2219 fi
2220
2221 if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2224 set dummy ${ac_tool_prefix}cc; ac_word=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2235 do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240 ac_cv_prog_CC="${ac_tool_prefix}cc"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2243 fi
2244 done
2245 done
2246 IFS=$as_save_IFS
2247
2248 fi
2249 fi
2250 CC=$ac_cv_prog_CC
2251 if test -n "$CC"; then
2252 { echo "$as_me:$LINENO: result: $CC" >&5
2253 echo "${ECHO_T}$CC" >&6; }
2254 else
2255 { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2257 fi
2258
2259
2260 fi
2261 fi
2262 if test -z "$CC"; then
2263 # Extract the first word of "cc", so it can be a program name with args.
2264 set dummy cc; ac_word=$2
2265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2267 if test "${ac_cv_prog_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2272 else
2273 ac_prog_rejected=no
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2282 ac_prog_rejected=yes
2283 continue
2284 fi
2285 ac_cv_prog_CC="cc"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2288 fi
2289 done
2290 done
2291 IFS=$as_save_IFS
2292
2293 if test $ac_prog_rejected = yes; then
2294 # We found a bogon in the path, so make sure we never use it.
2295 set dummy $ac_cv_prog_CC
2296 shift
2297 if test $# != 0; then
2298 # We chose a different compiler from the bogus one.
2299 # However, it has the same basename, so the bogon will be chosen
2300 # first if we set CC to just the basename; use the full file name.
2301 shift
2302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2303 fi
2304 fi
2305 fi
2306 fi
2307 CC=$ac_cv_prog_CC
2308 if test -n "$CC"; then
2309 { echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2314 fi
2315
2316
2317 fi
2318 if test -z "$CC"; then
2319 if test -n "$ac_tool_prefix"; then
2320 for ac_prog in cl.exe
2321 do
2322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2356 fi
2357
2358
2359 test -n "$CC" && break
2360 done
2361 fi
2362 if test -z "$CC"; then
2363 ac_ct_CC=$CC
2364 for ac_prog in cl.exe
2365 do
2366 # Extract the first word of "$ac_prog", so it can be a program name with args.
2367 set dummy $ac_prog; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373 if test -n "$ac_ct_CC"; then
2374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2383 ac_cv_prog_ac_ct_CC="$ac_prog"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2386 fi
2387 done
2388 done
2389 IFS=$as_save_IFS
2390
2391 fi
2392 fi
2393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2394 if test -n "$ac_ct_CC"; then
2395 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2396 echo "${ECHO_T}$ac_ct_CC" >&6; }
2397 else
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400 fi
2401
2402
2403 test -n "$ac_ct_CC" && break
2404 done
2405
2406 if test "x$ac_ct_CC" = x; then
2407 CC=""
2408 else
2409 case $cross_compiling:$ac_tool_warned in
2410 yes:)
2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2412 whose name does not start with the host triplet. If you think this
2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417 ac_tool_warned=yes ;;
2418 esac
2419 CC=$ac_ct_CC
2420 fi
2421 fi
2422
2423 fi
2424
2425
2426 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: no acceptable C compiler found in \$PATH
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2431
2432 # Provide some information about the compiler.
2433 echo "$as_me:$LINENO: checking for C compiler version" >&5
2434 ac_compiler=`set X $ac_compile; echo $2`
2435 { (ac_try="$ac_compiler --version >&5"
2436 case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2439 esac
2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441 (eval "$ac_compiler --version >&5") 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }
2445 { (ac_try="$ac_compiler -v >&5"
2446 case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_compiler -v >&5") 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }
2455 { (ac_try="$ac_compiler -V >&5"
2456 case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler -V >&5") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2465
2466 cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h. */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2472
2473 int
2474 main ()
2475 {
2476
2477 ;
2478 return 0;
2479 }
2480 _ACEOF
2481 ac_clean_files_save=$ac_clean_files
2482 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2483 # Try to create an executable without -o first, disregard a.out.
2484 # It will help us diagnose broken compilers, and finding out an intuition
2485 # of exeext.
2486 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2487 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2488 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2489 #
2490 # List of possible output files, starting from the most likely.
2491 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2492 # only as a last resort. b.out is created by i960 compilers.
2493 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2494 #
2495 # The IRIX 6 linker writes into existing files which may not be
2496 # executable, retaining their permissions. Remove them first so a
2497 # subsequent execution test works.
2498 ac_rmfiles=
2499 for ac_file in $ac_files
2500 do
2501 case $ac_file in
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2504 esac
2505 done
2506 rm -f $ac_rmfiles
2507
2508 if { (ac_try="$ac_link_default"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_link_default") 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; then
2518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2521 # so that the user can short-circuit this test for compilers unknown to
2522 # Autoconf.
2523 for ac_file in $ac_files ''
2524 do
2525 test -f "$ac_file" || continue
2526 case $ac_file in
2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2528 ;;
2529 [ab].out )
2530 # We found the default executable, but exeext='' is most
2531 # certainly right.
2532 break;;
2533 *.* )
2534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2535 then :; else
2536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537 fi
2538 # We set ac_cv_exeext here because the later test for it is not
2539 # safe: cross compilers may not add the suffix if given an `-o'
2540 # argument, so we may need to know it at that point already.
2541 # Even if this section looks crufty: it has the advantage of
2542 # actually working.
2543 break;;
2544 * )
2545 break;;
2546 esac
2547 done
2548 test "$ac_cv_exeext" = no && ac_cv_exeext=
2549
2550 else
2551 ac_file=''
2552 fi
2553
2554 { echo "$as_me:$LINENO: result: $ac_file" >&5
2555 echo "${ECHO_T}$ac_file" >&6; }
2556 if test -z "$ac_file"; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: C compiler cannot create executables
2563 See \`config.log' for more details." >&2;}
2564 { (exit 77); exit 77; }; }
2565 fi
2566
2567 ac_exeext=$ac_cv_exeext
2568
2569 # Check that the compiler produces executables we can run. If not, either
2570 # the compiler is broken, or we cross compile.
2571 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2572 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2573 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2574 # If not cross compiling, check that we can run a simple program.
2575 if test "$cross_compiling" != yes; then
2576 if { ac_try='./$ac_file'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 cross_compiling=no
2587 else
2588 if test "$cross_compiling" = maybe; then
2589 cross_compiling=yes
2590 else
2591 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&5
2594 echo "$as_me: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
2598 fi
2599 fi
2600 fi
2601 { echo "$as_me:$LINENO: result: yes" >&5
2602 echo "${ECHO_T}yes" >&6; }
2603
2604 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2605 ac_clean_files=$ac_clean_files_save
2606 # Check that the compiler produces executables we can run. If not, either
2607 # the compiler is broken, or we cross compile.
2608 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2609 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2610 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2611 echo "${ECHO_T}$cross_compiling" >&6; }
2612
2613 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2614 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2615 if { (ac_try="$ac_link"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_link") 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; then
2625 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2626 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2627 # work properly (i.e., refer to `conftest.exe'), while it won't with
2628 # `rm'.
2629 for ac_file in conftest.exe conftest conftest.*; do
2630 test -f "$ac_file" || continue
2631 case $ac_file in
2632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2633 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634 break;;
2635 * ) break;;
2636 esac
2637 done
2638 else
2639 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2644 fi
2645
2646 rm -f conftest$ac_cv_exeext
2647 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2649
2650 rm -f conftest.$ac_ext
2651 EXEEXT=$ac_cv_exeext
2652 ac_exeext=$EXEEXT
2653 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2654 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2655 if test "${ac_cv_objext+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2664
2665 int
2666 main ()
2667 {
2668
2669 ;
2670 return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.o conftest.obj
2674 if { (ac_try="$ac_compile"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compile") 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; then
2684 for ac_file in conftest.o conftest.obj conftest.*; do
2685 test -f "$ac_file" || continue;
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689 break;;
2690 esac
2691 done
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2701 fi
2702
2703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704 fi
2705 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 echo "${ECHO_T}$ac_cv_objext" >&6; }
2707 OBJEXT=$ac_cv_objext
2708 ac_objext=$OBJEXT
2709 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2720
2721 int
2722 main ()
2723 {
2724 #ifndef __GNUC__
2725 choke me
2726 #endif
2727
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2749 ac_compiler_gnu=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_compiler_gnu=no
2755 fi
2756
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2759
2760 fi
2761 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2762 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2763 GCC=`test $ac_compiler_gnu = yes && echo yes`
2764 ac_test_CFLAGS=${CFLAGS+set}
2765 ac_save_CFLAGS=$CFLAGS
2766 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_cc_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 ac_save_c_werror_flag=$ac_c_werror_flag
2772 ac_c_werror_flag=yes
2773 ac_cv_prog_cc_g=no
2774 CFLAGS="-g"
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h. */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2781
2782 int
2783 main ()
2784 {
2785
2786 ;
2787 return 0;
2788 }
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (ac_try="$ac_compile"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_compile") 2>conftest.er1
2798 ac_status=$?
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && {
2804 test -z "$ac_c_werror_flag" ||
2805 test ! -s conftest.err
2806 } && test -s conftest.$ac_objext; then
2807 ac_cv_prog_cc_g=yes
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 CFLAGS=""
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819
2820 int
2821 main ()
2822 {
2823
2824 ;
2825 return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (ac_try="$ac_compile"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compile") 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
2845 :
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 ac_c_werror_flag=$ac_save_c_werror_flag
2851 CFLAGS="-g"
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858
2859 int
2860 main ()
2861 {
2862
2863 ;
2864 return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (ac_try="$ac_compile"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } && {
2881 test -z "$ac_c_werror_flag" ||
2882 test ! -s conftest.err
2883 } && test -s conftest.$ac_objext; then
2884 ac_cv_prog_cc_g=yes
2885 else
2886 echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2888
2889
2890 fi
2891
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 fi
2894
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 fi
2897
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_c_werror_flag=$ac_save_c_werror_flag
2900 fi
2901 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2902 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2903 if test "$ac_test_CFLAGS" = set; then
2904 CFLAGS=$ac_save_CFLAGS
2905 elif test $ac_cv_prog_cc_g = yes; then
2906 if test "$GCC" = yes; then
2907 CFLAGS="-g -O2"
2908 else
2909 CFLAGS="-g"
2910 fi
2911 else
2912 if test "$GCC" = yes; then
2913 CFLAGS="-O2"
2914 else
2915 CFLAGS=
2916 fi
2917 fi
2918 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2919 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_cc_c89+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 ac_cv_prog_cc_c89=no
2924 ac_save_CC=$CC
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <stdarg.h>
2932 #include <stdio.h>
2933 #include <sys/types.h>
2934 #include <sys/stat.h>
2935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2936 struct buf { int x; };
2937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938 static char *e (p, i)
2939 char **p;
2940 int i;
2941 {
2942 return p[i];
2943 }
2944 static char *f (char * (*g) (char **, int), char **p, ...)
2945 {
2946 char *s;
2947 va_list v;
2948 va_start (v,p);
2949 s = g (p, va_arg (v,int));
2950 va_end (v);
2951 return s;
2952 }
2953
2954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2955 function prototypes and stuff, but not '\xHH' hex character constants.
2956 These don't provoke an error unfortunately, instead are silently treated
2957 as 'x'. The following induces an error, until -std is added to get
2958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2959 array size at least. It's necessary to write '\x00'==0 to get something
2960 that's true only with -std. */
2961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2962
2963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2964 inside strings and character constants. */
2965 #define FOO(x) 'x'
2966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2967
2968 int test (int i, double x);
2969 struct s1 {int (*f) (int a);};
2970 struct s2 {int (*f) (double a);};
2971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2972 int argc;
2973 char **argv;
2974 int
2975 main ()
2976 {
2977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2978 ;
2979 return 0;
2980 }
2981 _ACEOF
2982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2984 do
2985 CC="$ac_save_CC $ac_arg"
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3003 ac_cv_prog_cc_c89=$ac_arg
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext
3012 test "x$ac_cv_prog_cc_c89" != "xno" && break
3013 done
3014 rm -f conftest.$ac_ext
3015 CC=$ac_save_CC
3016
3017 fi
3018 # AC_CACHE_VAL
3019 case "x$ac_cv_prog_cc_c89" in
3020 x)
3021 { echo "$as_me:$LINENO: result: none needed" >&5
3022 echo "${ECHO_T}none needed" >&6; } ;;
3023 xno)
3024 { echo "$as_me:$LINENO: result: unsupported" >&5
3025 echo "${ECHO_T}unsupported" >&6; } ;;
3026 *)
3027 CC="$CC $ac_cv_prog_cc_c89"
3028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3029 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3030 esac
3031
3032
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038
3039
3040
3041 ac_ext=c
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3048 # On Suns, sometimes $CPP names a directory.
3049 if test -n "$CPP" && test -d "$CPP"; then
3050 CPP=
3051 fi
3052 if test -z "$CPP"; then
3053 if test "${ac_cv_prog_CPP+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 # Double quotes because CPP needs to be expanded
3057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3058 do
3059 ac_preproc_ok=false
3060 for ac_c_preproc_warn_flag in '' yes
3061 do
3062 # Use a header file that comes with gcc, so configuring glibc
3063 # with a fresh cross-compiler works.
3064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065 # <limits.h> exists even on freestanding compilers.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #ifdef __STDC__
3075 # include <limits.h>
3076 #else
3077 # include <assert.h>
3078 #endif
3079 Syntax error
3080 _ACEOF
3081 if { (ac_try="$ac_cpp conftest.$ac_ext"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null && {
3094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 }; then
3097 :
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 # Broken: fails on valid input.
3103 continue
3104 fi
3105
3106 rm -f conftest.err conftest.$ac_ext
3107
3108 # OK, works on sane cases. Now check whether nonexistent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if { (ac_try="$ac_cpp conftest.$ac_ext"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } >/dev/null && {
3131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3132 test ! -s conftest.err
3133 }; then
3134 # Broken: success on invalid input.
3135 continue
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 # Passes both tests.
3141 ac_preproc_ok=:
3142 break
3143 fi
3144
3145 rm -f conftest.err conftest.$ac_ext
3146
3147 done
3148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149 rm -f conftest.err conftest.$ac_ext
3150 if $ac_preproc_ok; then
3151 break
3152 fi
3153
3154 done
3155 ac_cv_prog_CPP=$CPP
3156
3157 fi
3158 CPP=$ac_cv_prog_CPP
3159 else
3160 ac_cv_prog_CPP=$CPP
3161 fi
3162 { echo "$as_me:$LINENO: result: $CPP" >&5
3163 echo "${ECHO_T}$CPP" >&6; }
3164 ac_preproc_ok=false
3165 for ac_c_preproc_warn_flag in '' yes
3166 do
3167 # Use a header file that comes with gcc, so configuring glibc
3168 # with a fresh cross-compiler works.
3169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3170 # <limits.h> exists even on freestanding compilers.
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp. "Syntax error" is here to catch this case.
3173 cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 #ifdef __STDC__
3180 # include <limits.h>
3181 #else
3182 # include <assert.h>
3183 #endif
3184 Syntax error
3185 _ACEOF
3186 if { (ac_try="$ac_cpp conftest.$ac_ext"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null && {
3199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3201 }; then
3202 :
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 # Broken: fails on valid input.
3208 continue
3209 fi
3210
3211 rm -f conftest.err conftest.$ac_ext
3212
3213 # OK, works on sane cases. Now check whether nonexistent headers
3214 # can be detected and how.
3215 cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3221 #include <ac_nonexistent.h>
3222 _ACEOF
3223 if { (ac_try="$ac_cpp conftest.$ac_ext"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } >/dev/null && {
3236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 }; then
3239 # Broken: success on invalid input.
3240 continue
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 # Passes both tests.
3246 ac_preproc_ok=:
3247 break
3248 fi
3249
3250 rm -f conftest.err conftest.$ac_ext
3251
3252 done
3253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254 rm -f conftest.err conftest.$ac_ext
3255 if $ac_preproc_ok; then
3256 :
3257 else
3258 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3259 See \`config.log' for more details." >&5
3260 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3261 See \`config.log' for more details." >&2;}
3262 { (exit 1); exit 1; }; }
3263 fi
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271
3272 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3273 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3274 if test "${ac_cv_path_GREP+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 # Extract the first word of "grep ggrep" to use in msg output
3278 if test -z "$GREP"; then
3279 set dummy grep ggrep; ac_prog_name=$2
3280 if test "${ac_cv_path_GREP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 ac_path_GREP_found=false
3284 # Loop through the user's path and test for each of PROGNAME-LIST
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_prog in grep ggrep; do
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3293 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3294 # Check for GNU ac_path_GREP and select it if it is found.
3295 # Check for GNU $ac_path_GREP
3296 case `"$ac_path_GREP" --version 2>&1` in
3297 *GNU*)
3298 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3299 *)
3300 ac_count=0
3301 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3302 while :
3303 do
3304 cat "conftest.in" "conftest.in" >"conftest.tmp"
3305 mv "conftest.tmp" "conftest.in"
3306 cp "conftest.in" "conftest.nl"
3307 echo 'GREP' >> "conftest.nl"
3308 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3310 ac_count=`expr $ac_count + 1`
3311 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3312 # Best one so far, save it but keep looking for a better one
3313 ac_cv_path_GREP="$ac_path_GREP"
3314 ac_path_GREP_max=$ac_count
3315 fi
3316 # 10*(2^10) chars as input seems more than enough
3317 test $ac_count -gt 10 && break
3318 done
3319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3320 esac
3321
3322
3323 $ac_path_GREP_found && break 3
3324 done
3325 done
3326
3327 done
3328 IFS=$as_save_IFS
3329
3330
3331 fi
3332
3333 GREP="$ac_cv_path_GREP"
3334 if test -z "$GREP"; then
3335 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3336 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3337 { (exit 1); exit 1; }; }
3338 fi
3339
3340 else
3341 ac_cv_path_GREP=$GREP
3342 fi
3343
3344
3345 fi
3346 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3347 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3348 GREP="$ac_cv_path_GREP"
3349
3350
3351 { echo "$as_me:$LINENO: checking for egrep" >&5
3352 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3353 if test "${ac_cv_path_EGREP+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3357 then ac_cv_path_EGREP="$GREP -E"
3358 else
3359 # Extract the first word of "egrep" to use in msg output
3360 if test -z "$EGREP"; then
3361 set dummy egrep; ac_prog_name=$2
3362 if test "${ac_cv_path_EGREP+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_path_EGREP_found=false
3366 # Loop through the user's path and test for each of PROGNAME-LIST
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_prog in egrep; do
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3375 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3376 # Check for GNU ac_path_EGREP and select it if it is found.
3377 # Check for GNU $ac_path_EGREP
3378 case `"$ac_path_EGREP" --version 2>&1` in
3379 *GNU*)
3380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3381 *)
3382 ac_count=0
3383 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3384 while :
3385 do
3386 cat "conftest.in" "conftest.in" >"conftest.tmp"
3387 mv "conftest.tmp" "conftest.in"
3388 cp "conftest.in" "conftest.nl"
3389 echo 'EGREP' >> "conftest.nl"
3390 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3392 ac_count=`expr $ac_count + 1`
3393 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3394 # Best one so far, save it but keep looking for a better one
3395 ac_cv_path_EGREP="$ac_path_EGREP"
3396 ac_path_EGREP_max=$ac_count
3397 fi
3398 # 10*(2^10) chars as input seems more than enough
3399 test $ac_count -gt 10 && break
3400 done
3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3402 esac
3403
3404
3405 $ac_path_EGREP_found && break 3
3406 done
3407 done
3408
3409 done
3410 IFS=$as_save_IFS
3411
3412
3413 fi
3414
3415 EGREP="$ac_cv_path_EGREP"
3416 if test -z "$EGREP"; then
3417 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3418 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3419 { (exit 1); exit 1; }; }
3420 fi
3421
3422 else
3423 ac_cv_path_EGREP=$EGREP
3424 fi
3425
3426
3427 fi
3428 fi
3429 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3430 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3431 EGREP="$ac_cv_path_EGREP"
3432
3433
3434 if test $ac_cv_c_compiler_gnu = yes; then
3435 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3436 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 ac_pattern="Autoconf.*'x'"
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <sgtty.h>
3448 Autoconf TIOCGETP
3449 _ACEOF
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3452 ac_cv_prog_gcc_traditional=yes
3453 else
3454 ac_cv_prog_gcc_traditional=no
3455 fi
3456 rm -f conftest*
3457
3458
3459 if test $ac_cv_prog_gcc_traditional = no; then
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 #include <termio.h>
3467 Autoconf TCGETA
3468 _ACEOF
3469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3471 ac_cv_prog_gcc_traditional=yes
3472 fi
3473 rm -f conftest*
3474
3475 fi
3476 fi
3477 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3478 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3479 if test $ac_cv_prog_gcc_traditional = yes; then
3480 CC="$CC -traditional"
3481 fi
3482 fi
3483
3484 # Find a good install program. We prefer a C program (faster),
3485 # so one script is as good as another. But avoid the broken or
3486 # incompatible versions:
3487 # SysV /etc/install, /usr/sbin/install
3488 # SunOS /usr/etc/install
3489 # IRIX /sbin/install
3490 # AIX /bin/install
3491 # AmigaOS /C/install, which installs bootblocks on floppy discs
3492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3495 # OS/2's system install, which has a completely different semantic
3496 # ./install, which can be erroneously created by make from ./install.sh.
3497 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3498 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3499 if test -z "$INSTALL"; then
3500 if test "${ac_cv_path_install+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 # Account for people who put trailing slashes in PATH elements.
3509 case $as_dir/ in
3510 ./ | .// | /cC/* | \
3511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3512 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3513 /usr/ucb/* ) ;;
3514 *)
3515 # OSF1 and SCO ODT 3.0 have their own names for install.
3516 # Don't use installbsd from OSF since it installs stuff as root
3517 # by default.
3518 for ac_prog in ginstall scoinst install; do
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3521 if test $ac_prog = install &&
3522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3523 # AIX install. It has an incompatible calling convention.
3524 :
3525 elif test $ac_prog = install &&
3526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527 # program-specific install script used by HP pwplus--don't use.
3528 :
3529 else
3530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3531 break 3
3532 fi
3533 fi
3534 done
3535 done
3536 ;;
3537 esac
3538 done
3539 IFS=$as_save_IFS
3540
3541
3542 fi
3543 if test "${ac_cv_path_install+set}" = set; then
3544 INSTALL=$ac_cv_path_install
3545 else
3546 # As a last resort, use the slow shell script. Don't cache a
3547 # value for INSTALL within a source directory, because that will
3548 # break other packages using the cache if that directory is
3549 # removed, or if the value is a relative name.
3550 INSTALL=$ac_install_sh
3551 fi
3552 fi
3553 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3554 echo "${ECHO_T}$INSTALL" >&6; }
3555
3556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3557 # It thinks the first close brace ends the variable substitution.
3558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3559
3560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3561
3562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3563
3564 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3565 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3566 LN_S=$as_ln_s
3567 if test "$LN_S" = "ln -s"; then
3568 { echo "$as_me:$LINENO: result: yes" >&5
3569 echo "${ECHO_T}yes" >&6; }
3570 else
3571 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3572 echo "${ECHO_T}no, using $LN_S" >&6; }
3573 fi
3574
3575 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3577 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3578 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581 cat >conftest.make <<\_ACEOF
3582 SHELL = /bin/sh
3583 all:
3584 @echo '@@@%%%=$(MAKE)=@@@%%%'
3585 _ACEOF
3586 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3587 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3588 *@@@%%%=?*=@@@%%%*)
3589 eval ac_cv_prog_make_${ac_make}_set=yes;;
3590 *)
3591 eval ac_cv_prog_make_${ac_make}_set=no;;
3592 esac
3593 rm -f conftest.make
3594 fi
3595 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3596 { echo "$as_me:$LINENO: result: yes" >&5
3597 echo "${ECHO_T}yes" >&6; }
3598 SET_MAKE=
3599 else
3600 { echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6; }
3602 SET_MAKE="MAKE=${MAKE-make}"
3603 fi
3604
3605 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3606 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3607 if test -z "$MKDIR_P"; then
3608 if test "${ac_cv_path_mkdir+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_prog in mkdir gmkdir; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3619 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3620 'mkdir (GNU coreutils) '* | \
3621 'mkdir (coreutils) '* | \
3622 'mkdir (fileutils) '4.1*)
3623 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3624 break 3;;
3625 esac
3626 done
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi
3632
3633 if test "${ac_cv_path_mkdir+set}" = set; then
3634 MKDIR_P="$ac_cv_path_mkdir -p"
3635 else
3636 # As a last resort, use the slow shell script. Don't cache a
3637 # value for MKDIR_P within a source directory, because that will
3638 # break other packages using the cache if that directory is
3639 # removed, or if the value is a relative name.
3640 test -d ./--version && rmdir ./--version
3641 MKDIR_P="$ac_install_sh -d"
3642 fi
3643 fi
3644 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3645 echo "${ECHO_T}$MKDIR_P" >&6; }
3646
3647 if test -n "$ac_tool_prefix"; then
3648 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3649 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3652 if test "${ac_cv_prog_RANLIB+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -n "$RANLIB"; then
3656 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669 done
3670 done
3671 IFS=$as_save_IFS
3672
3673 fi
3674 fi
3675 RANLIB=$ac_cv_prog_RANLIB
3676 if test -n "$RANLIB"; then
3677 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3678 echo "${ECHO_T}$RANLIB" >&6; }
3679 else
3680 { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3682 fi
3683
3684
3685 fi
3686 if test -z "$ac_cv_prog_RANLIB"; then
3687 ac_ct_RANLIB=$RANLIB
3688 # Extract the first word of "ranlib", so it can be a program name with args.
3689 set dummy ranlib; ac_word=$2
3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 if test -n "$ac_ct_RANLIB"; then
3696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_RANLIB="ranlib"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3708 fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3716 if test -n "$ac_ct_RANLIB"; then
3717 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3718 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3719 else
3720 { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3722 fi
3723
3724 if test "x$ac_ct_RANLIB" = x; then
3725 RANLIB=":"
3726 else
3727 case $cross_compiling:$ac_tool_warned in
3728 yes:)
3729 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3730 whose name does not start with the host triplet. If you think this
3731 configuration is useful to you, please write to autoconf@gnu.org." >&5
3732 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3733 whose name does not start with the host triplet. If you think this
3734 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3735 ac_tool_warned=yes ;;
3736 esac
3737 RANLIB=$ac_ct_RANLIB
3738 fi
3739 else
3740 RANLIB="$ac_cv_prog_RANLIB"
3741 fi
3742
3743 # Extract the first word of "cflow", so it can be a program name with args.
3744 set dummy cflow; ac_word=$2
3745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 case $CFLOW_CMD in
3751 [\\/]* | ?:[\\/]*)
3752 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3753 ;;
3754 *)
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766 done
3767 done
3768 IFS=$as_save_IFS
3769
3770 ;;
3771 esac
3772 fi
3773 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3774 if test -n "$CFLOW_CMD"; then
3775 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3776 echo "${ECHO_T}$CFLOW_CMD" >&6; }
3777 else
3778 { echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; }
3780 fi
3781
3782
3783 # Extract the first word of "cscope", so it can be a program name with args.
3784 set dummy cscope; ac_word=$2
3785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3787 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 case $CSCOPE_CMD in
3791 [\\/]* | ?:[\\/]*)
3792 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3793 ;;
3794 *)
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806 done
3807 done
3808 IFS=$as_save_IFS
3809
3810 ;;
3811 esac
3812 fi
3813 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3814 if test -n "$CSCOPE_CMD"; then
3815 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3816 echo "${ECHO_T}$CSCOPE_CMD" >&6; }
3817 else
3818 { echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6; }
3820 fi
3821
3822
3823
3824 ################################################################################
3825
3826
3827
3828
3829
3830 ac_header_dirent=no
3831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3833 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3834 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <sys/types.h>
3845 #include <$ac_hdr>
3846
3847 int
3848 main ()
3849 {
3850 if ((DIR *) 0)
3851 return 0;
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3873 eval "$as_ac_Header=yes"
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 eval "$as_ac_Header=no"
3879 fi
3880
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 fi
3883 ac_res=`eval echo '${'$as_ac_Header'}'`
3884 { echo "$as_me:$LINENO: result: $ac_res" >&5
3885 echo "${ECHO_T}$ac_res" >&6; }
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h <<_ACEOF
3888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3889 _ACEOF
3890
3891 ac_header_dirent=$ac_hdr; break
3892 fi
3893
3894 done
3895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3896 if test $ac_header_dirent = dirent.h; then
3897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3899 if test "${ac_cv_search_opendir+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 ac_func_search_save_LIBS=$LIBS
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909
3910 /* Override any GCC internal prototype to avoid an error.
3911 Use char because int might match the return type of a GCC
3912 builtin and then its argument prototype would still apply. */
3913 #ifdef __cplusplus
3914 extern "C"
3915 #endif
3916 char opendir ();
3917 int
3918 main ()
3919 {
3920 return opendir ();
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 for ac_lib in '' dir; do
3926 if test -z "$ac_lib"; then
3927 ac_res="none required"
3928 else
3929 ac_res=-l$ac_lib
3930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3931 fi
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933 if { (ac_try="$ac_link"
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_link") 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); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest$ac_exeext &&
3949 $as_test_x conftest$ac_exeext; then
3950 ac_cv_search_opendir=$ac_res
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955
3956 fi
3957
3958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3959 conftest$ac_exeext
3960 if test "${ac_cv_search_opendir+set}" = set; then
3961 break
3962 fi
3963 done
3964 if test "${ac_cv_search_opendir+set}" = set; then
3965 :
3966 else
3967 ac_cv_search_opendir=no
3968 fi
3969 rm conftest.$ac_ext
3970 LIBS=$ac_func_search_save_LIBS
3971 fi
3972 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3973 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3974 ac_res=$ac_cv_search_opendir
3975 if test "$ac_res" != no; then
3976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3977
3978 fi
3979
3980 else
3981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3983 if test "${ac_cv_search_opendir+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 ac_func_search_save_LIBS=$LIBS
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993
3994 /* Override any GCC internal prototype to avoid an error.
3995 Use char because int might match the return type of a GCC
3996 builtin and then its argument prototype would still apply. */
3997 #ifdef __cplusplus
3998 extern "C"
3999 #endif
4000 char opendir ();
4001 int
4002 main ()
4003 {
4004 return opendir ();
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 for ac_lib in '' x; do
4010 if test -z "$ac_lib"; then
4011 ac_res="none required"
4012 else
4013 ac_res=-l$ac_lib
4014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4015 fi
4016 rm -f conftest.$ac_objext conftest$ac_exeext
4017 if { (ac_try="$ac_link"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_link") 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } && {
4030 test -z "$ac_c_werror_flag" ||
4031 test ! -s conftest.err
4032 } && test -s conftest$ac_exeext &&
4033 $as_test_x conftest$ac_exeext; then
4034 ac_cv_search_opendir=$ac_res
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4043 conftest$ac_exeext
4044 if test "${ac_cv_search_opendir+set}" = set; then
4045 break
4046 fi
4047 done
4048 if test "${ac_cv_search_opendir+set}" = set; then
4049 :
4050 else
4051 ac_cv_search_opendir=no
4052 fi
4053 rm conftest.$ac_ext
4054 LIBS=$ac_func_search_save_LIBS
4055 fi
4056 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4057 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4058 ac_res=$ac_cv_search_opendir
4059 if test "$ac_res" != no; then
4060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4061
4062 fi
4063
4064 fi
4065
4066 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4068 if test "${ac_cv_header_stdc+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <stdlib.h>
4078 #include <stdarg.h>
4079 #include <string.h>
4080 #include <float.h>
4081
4082 int
4083 main ()
4084 {
4085
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_compile") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } && {
4104 test -z "$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 } && test -s conftest.$ac_objext; then
4107 ac_cv_header_stdc=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_cv_header_stdc=no
4113 fi
4114
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116
4117 if test $ac_cv_header_stdc = yes; then
4118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 #include <string.h>
4126
4127 _ACEOF
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "memchr" >/dev/null 2>&1; then
4130 :
4131 else
4132 ac_cv_header_stdc=no
4133 fi
4134 rm -f conftest*
4135
4136 fi
4137
4138 if test $ac_cv_header_stdc = yes; then
4139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <stdlib.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "free" >/dev/null 2>&1; then
4151 :
4152 else
4153 ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161 if test "$cross_compiling" = yes; then
4162 :
4163 else
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 #include <ctype.h>
4171 #include <stdlib.h>
4172 #if ((' ' & 0x0FF) == 0x020)
4173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4175 #else
4176 # define ISLOWER(c) \
4177 (('a' <= (c) && (c) <= 'i') \
4178 || ('j' <= (c) && (c) <= 'r') \
4179 || ('s' <= (c) && (c) <= 'z'))
4180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4181 #endif
4182
4183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184 int
4185 main ()
4186 {
4187 int i;
4188 for (i = 0; i < 256; i++)
4189 if (XOR (islower (i), ISLOWER (i))
4190 || toupper (i) != TOUPPER (i))
4191 return 2;
4192 return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest$ac_exeext
4196 if { (ac_try="$ac_link"
4197 case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_link") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4206 { (case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_try") 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 :
4216 else
4217 echo "$as_me: program exited with status $ac_status" >&5
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221 ( exit $ac_status )
4222 ac_cv_header_stdc=no
4223 fi
4224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4225 fi
4226
4227
4228 fi
4229 fi
4230 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4231 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4232 if test $ac_cv_header_stdc = yes; then
4233
4234 cat >>confdefs.h <<\_ACEOF
4235 #define STDC_HEADERS 1
4236 _ACEOF
4237
4238 fi
4239
4240 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4241 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4242 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <sys/types.h>
4252 #include <sys/wait.h>
4253 #ifndef WEXITSTATUS
4254 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4255 #endif
4256 #ifndef WIFEXITED
4257 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4258 #endif
4259
4260 int
4261 main ()
4262 {
4263 int s;
4264 wait (&s);
4265 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4272 case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compile") 2>conftest.er1
4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } && {
4284 test -z "$ac_c_werror_flag" ||
4285 test ! -s conftest.err
4286 } && test -s conftest.$ac_objext; then
4287 ac_cv_header_sys_wait_h=yes
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ac_cv_header_sys_wait_h=no
4293 fi
4294
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4298 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4299 if test $ac_cv_header_sys_wait_h = yes; then
4300
4301 cat >>confdefs.h <<\_ACEOF
4302 #define HAVE_SYS_WAIT_H 1
4303 _ACEOF
4304
4305 fi
4306
4307 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4308 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4309 if test "${ac_cv_header_time+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 #include <sys/time.h>
4320 #include <time.h>
4321
4322 int
4323 main ()
4324 {
4325 if ((struct tm *) 0)
4326 return 0;
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4333 case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_compile") 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && {
4345 test -z "$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 } && test -s conftest.$ac_objext; then
4348 ac_cv_header_time=yes
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 ac_cv_header_time=no
4354 fi
4355
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 fi
4358 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4359 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4360 if test $ac_cv_header_time = yes; then
4361
4362 cat >>confdefs.h <<\_ACEOF
4363 #define TIME_WITH_SYS_TIME 1
4364 _ACEOF
4365
4366 fi
4367
4368
4369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4380 inttypes.h stdint.h unistd.h
4381 do
4382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4395
4396 #include <$ac_header>
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4400 case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest.$ac_objext; then
4415 eval "$as_ac_Header=yes"
4416 else
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 eval "$as_ac_Header=no"
4421 fi
4422
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 fi
4425 ac_res=`eval echo '${'$as_ac_Header'}'`
4426 { echo "$as_me:$LINENO: result: $ac_res" >&5
4427 echo "${ECHO_T}$ac_res" >&6; }
4428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4429 cat >>confdefs.h <<_ACEOF
4430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431 _ACEOF
4432
4433 fi
4434
4435 done
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4452 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4453 do
4454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 fi
4461 ac_res=`eval echo '${'$as_ac_Header'}'`
4462 { echo "$as_me:$LINENO: result: $ac_res" >&5
4463 echo "${ECHO_T}$ac_res" >&6; }
4464 else
4465 # Is the header compilable?
4466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 $ac_includes_default
4475 #include <$ac_header>
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (ac_try="$ac_compile"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest.$ac_objext; then
4494 ac_header_compiler=yes
4495 else
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 ac_header_compiler=no
4500 fi
4501
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4504 echo "${ECHO_T}$ac_header_compiler" >&6; }
4505
4506 # Is the header present?
4507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <$ac_header>
4516 _ACEOF
4517 if { (ac_try="$ac_cpp conftest.$ac_ext"
4518 case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4524 ac_status=$?
4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } >/dev/null && {
4530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4531 test ! -s conftest.err
4532 }; then
4533 ac_header_preproc=yes
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 ac_header_preproc=no
4539 fi
4540
4541 rm -f conftest.err conftest.$ac_ext
4542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4543 echo "${ECHO_T}$ac_header_preproc" >&6; }
4544
4545 # So? What about this header?
4546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4547 yes:no: )
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4552 ac_header_preproc=yes
4553 ;;
4554 no:yes:* )
4555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4567
4568 ;;
4569 esac
4570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 eval "$as_ac_Header=\$ac_header_preproc"
4576 fi
4577 ac_res=`eval echo '${'$as_ac_Header'}'`
4578 { echo "$as_me:$LINENO: result: $ac_res" >&5
4579 echo "${ECHO_T}$ac_res" >&6; }
4580
4581 fi
4582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4583 cat >>confdefs.h <<_ACEOF
4584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 _ACEOF
4586
4587 else
4588 { { echo "$as_me:$LINENO: error: bailing out" >&5
4589 echo "$as_me: error: bailing out" >&2;}
4590 { (exit 1); exit 1; }; }
4591 fi
4592
4593 done
4594
4595
4596 case "$host_os" in
4597 linux*)
4598
4599
4600
4601 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4602 do
4603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 fi
4610 ac_res=`eval echo '${'$as_ac_Header'}'`
4611 { echo "$as_me:$LINENO: result: $ac_res" >&5
4612 echo "${ECHO_T}$ac_res" >&6; }
4613 else
4614 # Is the header compilable?
4615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 $ac_includes_default
4624 #include <$ac_header>
4625 _ACEOF
4626 rm -f conftest.$ac_objext
4627 if { (ac_try="$ac_compile"
4628 case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631 esac
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_compile") 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } && {
4640 test -z "$ac_c_werror_flag" ||
4641 test ! -s conftest.err
4642 } && test -s conftest.$ac_objext; then
4643 ac_header_compiler=yes
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 ac_header_compiler=no
4649 fi
4650
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4653 echo "${ECHO_T}$ac_header_compiler" >&6; }
4654
4655 # Is the header present?
4656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 #include <$ac_header>
4665 _ACEOF
4666 if { (ac_try="$ac_cpp conftest.$ac_ext"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } >/dev/null && {
4679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4680 test ! -s conftest.err
4681 }; then
4682 ac_header_preproc=yes
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ac_header_preproc=no
4688 fi
4689
4690 rm -f conftest.err conftest.$ac_ext
4691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4692 echo "${ECHO_T}$ac_header_preproc" >&6; }
4693
4694 # So? What about this header?
4695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4696 yes:no: )
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4701 ac_header_preproc=yes
4702 ;;
4703 no:yes:* )
4704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4716
4717 ;;
4718 esac
4719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 eval "$as_ac_Header=\$ac_header_preproc"
4725 fi
4726 ac_res=`eval echo '${'$as_ac_Header'}'`
4727 { echo "$as_me:$LINENO: result: $ac_res" >&5
4728 echo "${ECHO_T}$ac_res" >&6; }
4729
4730 fi
4731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4732 cat >>confdefs.h <<_ACEOF
4733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4734 _ACEOF
4735
4736 else
4737 { { echo "$as_me:$LINENO: error: bailing out" >&5
4738 echo "$as_me: error: bailing out" >&2;}
4739 { (exit 1); exit 1; }; }
4740 fi
4741
4742 done
4743 ;;
4744 darwin*)
4745
4746
4747 for ac_header in machine/endian.h sys/disk.h
4748 do
4749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 fi
4756 ac_res=`eval echo '${'$as_ac_Header'}'`
4757 { echo "$as_me:$LINENO: result: $ac_res" >&5
4758 echo "${ECHO_T}$ac_res" >&6; }
4759 else
4760 # Is the header compilable?
4761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4770 #include <$ac_header>
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (ac_try="$ac_compile"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_compile") 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } && {
4786 test -z "$ac_c_werror_flag" ||
4787 test ! -s conftest.err
4788 } && test -s conftest.$ac_objext; then
4789 ac_header_compiler=yes
4790 else
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 ac_header_compiler=no
4795 fi
4796
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4799 echo "${ECHO_T}$ac_header_compiler" >&6; }
4800
4801 # Is the header present?
4802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #include <$ac_header>
4811 _ACEOF
4812 if { (ac_try="$ac_cpp conftest.$ac_ext"
4813 case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816 esac
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null && {
4825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 }; then
4828 ac_header_preproc=yes
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_header_preproc=no
4834 fi
4835
4836 rm -f conftest.err conftest.$ac_ext
4837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4838 echo "${ECHO_T}$ac_header_preproc" >&6; }
4839
4840 # So? What about this header?
4841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4842 yes:no: )
4843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4847 ac_header_preproc=yes
4848 ;;
4849 no:yes:* )
4850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4862
4863 ;;
4864 esac
4865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 eval "$as_ac_Header=\$ac_header_preproc"
4871 fi
4872 ac_res=`eval echo '${'$as_ac_Header'}'`
4873 { echo "$as_me:$LINENO: result: $ac_res" >&5
4874 echo "${ECHO_T}$ac_res" >&6; }
4875
4876 fi
4877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4878 cat >>confdefs.h <<_ACEOF
4879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4880 _ACEOF
4881
4882 else
4883 { { echo "$as_me:$LINENO: error: bailing out" >&5
4884 echo "$as_me: error: bailing out" >&2;}
4885 { (exit 1); exit 1; }; }
4886 fi
4887
4888 done
4889 ;;
4890 esac
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4909 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4910 sys/types.h unistd.h
4911 do
4912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 fi
4919 ac_res=`eval echo '${'$as_ac_Header'}'`
4920 { echo "$as_me:$LINENO: result: $ac_res" >&5
4921 echo "${ECHO_T}$ac_res" >&6; }
4922 else
4923 # Is the header compilable?
4924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4933 #include <$ac_header>
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (ac_try="$ac_compile"
4937 case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940 esac
4941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_compile") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.$ac_objext; then
4952 ac_header_compiler=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_header_compiler=no
4958 fi
4959
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4962 echo "${ECHO_T}$ac_header_compiler" >&6; }
4963
4964 # Is the header present?
4965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #include <$ac_header>
4974 _ACEOF
4975 if { (ac_try="$ac_cpp conftest.$ac_ext"
4976 case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null && {
4988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 }; then
4991 ac_header_preproc=yes
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 ac_header_preproc=no
4997 fi
4998
4999 rm -f conftest.err conftest.$ac_ext
5000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5001 echo "${ECHO_T}$ac_header_preproc" >&6; }
5002
5003 # So? What about this header?
5004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5005 yes:no: )
5006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5010 ac_header_preproc=yes
5011 ;;
5012 no:yes:* )
5013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5025
5026 ;;
5027 esac
5028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 eval "$as_ac_Header=\$ac_header_preproc"
5034 fi
5035 ac_res=`eval echo '${'$as_ac_Header'}'`
5036 { echo "$as_me:$LINENO: result: $ac_res" >&5
5037 echo "${ECHO_T}$ac_res" >&6; }
5038
5039 fi
5040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5041 cat >>confdefs.h <<_ACEOF
5042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5043 _ACEOF
5044
5045 else
5046 { { echo "$as_me:$LINENO: error: bailing out" >&5
5047 echo "$as_me: error: bailing out" >&2;}
5048 { (exit 1); exit 1; }; }
5049 fi
5050
5051 done
5052
5053
5054
5055 for ac_header in termios.h sys/statvfs.h
5056 do
5057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 fi
5064 ac_res=`eval echo '${'$as_ac_Header'}'`
5065 { echo "$as_me:$LINENO: result: $ac_res" >&5
5066 echo "${ECHO_T}$ac_res" >&6; }
5067 else
5068 # Is the header compilable?
5069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 $ac_includes_default
5078 #include <$ac_header>
5079 _ACEOF
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5097 ac_header_compiler=yes
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 ac_header_compiler=no
5103 fi
5104
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107 echo "${ECHO_T}$ac_header_compiler" >&6; }
5108
5109 # Is the header present?
5110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <$ac_header>
5119 _ACEOF
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5121 case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null && {
5133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 }; then
5136 ac_header_preproc=yes
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_header_preproc=no
5142 fi
5143
5144 rm -f conftest.err conftest.$ac_ext
5145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5146 echo "${ECHO_T}$ac_header_preproc" >&6; }
5147
5148 # So? What about this header?
5149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5150 yes:no: )
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5155 ac_header_preproc=yes
5156 ;;
5157 no:yes:* )
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5170
5171 ;;
5172 esac
5173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 eval "$as_ac_Header=\$ac_header_preproc"
5179 fi
5180 ac_res=`eval echo '${'$as_ac_Header'}'`
5181 { echo "$as_me:$LINENO: result: $ac_res" >&5
5182 echo "${ECHO_T}$ac_res" >&6; }
5183
5184 fi
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186 cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188 _ACEOF
5189
5190 fi
5191
5192 done
5193
5194
5195 ################################################################################
5196 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5197 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5198 if test "${ac_cv_c_const+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207
5208 int
5209 main ()
5210 {
5211 /* FIXME: Include the comments suggested by Paul. */
5212 #ifndef __cplusplus
5213 /* Ultrix mips cc rejects this. */
5214 typedef int charset[2];
5215 const charset cs;
5216 /* SunOS 4.1.1 cc rejects this. */
5217 char const *const *pcpcc;
5218 char **ppc;
5219 /* NEC SVR4.0.2 mips cc rejects this. */
5220 struct point {int x, y;};
5221 static struct point const zero = {0,0};
5222 /* AIX XL C 1.02.0.0 rejects this.
5223 It does not let you subtract one const X* pointer from another in
5224 an arm of an if-expression whose if-part is not a constant
5225 expression */
5226 const char *g = "string";
5227 pcpcc = &g + (g ? g-g : 0);
5228 /* HPUX 7.0 cc rejects these. */
5229 ++pcpcc;
5230 ppc = (char**) pcpcc;
5231 pcpcc = (char const *const *) ppc;
5232 { /* SCO 3.2v4 cc rejects this. */
5233 char *t;
5234 char const *s = 0 ? (char *) 0 : (char const *) 0;
5235
5236 *t++ = 0;
5237 if (s) return 0;
5238 }
5239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5240 int x[] = {25, 17};
5241 const int *foo = &x[0];
5242 ++foo;
5243 }
5244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5245 typedef const int *iptr;
5246 iptr p = 0;
5247 ++p;
5248 }
5249 { /* AIX XL C 1.02.0.0 rejects this saying
5250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5251 struct s { int j; const int *ap[3]; };
5252 struct s *b; b->j = 5;
5253 }
5254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5255 const int foo = 10;
5256 if (!foo) return 0;
5257 }
5258 return !cs[0] && !zero.x;
5259 #endif
5260
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (ac_try="$ac_compile"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_compile") 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
5282 ac_cv_c_const=yes
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_cv_c_const=no
5288 fi
5289
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 fi
5292 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5293 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5294 if test $ac_cv_c_const = no; then
5295
5296 cat >>confdefs.h <<\_ACEOF
5297 #define const
5298 _ACEOF
5299
5300 fi
5301
5302 { echo "$as_me:$LINENO: checking for inline" >&5
5303 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5304 if test "${ac_cv_c_inline+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 ac_cv_c_inline=no
5308 for ac_kw in inline __inline__ __inline; do
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #ifndef __cplusplus
5316 typedef int foo_t;
5317 static $ac_kw foo_t static_foo () {return 0; }
5318 $ac_kw foo_t foo () {return 0; }
5319 #endif
5320
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5324 case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327 esac
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compile") 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest.$ac_objext; then
5339 ac_cv_c_inline=$ac_kw
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344
5345 fi
5346
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 test "$ac_cv_c_inline" != no && break
5349 done
5350
5351 fi
5352 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5353 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5354
5355
5356 case $ac_cv_c_inline in
5357 inline | yes) ;;
5358 *)
5359 case $ac_cv_c_inline in
5360 no) ac_val=;;
5361 *) ac_val=$ac_cv_c_inline;;
5362 esac
5363 cat >>confdefs.h <<_ACEOF
5364 #ifndef __cplusplus
5365 #define inline $ac_val
5366 #endif
5367 _ACEOF
5368 ;;
5369 esac
5370
5371 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5372 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5373 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 $ac_includes_default
5383 int
5384 main ()
5385 {
5386 static struct stat ac_aggr;
5387 if (ac_aggr.st_rdev)
5388 return 0;
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5395 case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_compile") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_c_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5410 ac_cv_member_struct_stat_st_rdev=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 $ac_includes_default
5422 int
5423 main ()
5424 {
5425 static struct stat ac_aggr;
5426 if (sizeof ac_aggr.st_rdev)
5427 return 0;
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5434 case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_cv_member_struct_stat_st_rdev=yes
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_cv_member_struct_stat_st_rdev=no
5455 fi
5456
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 fi
5459
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 fi
5462 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5463 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5464 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5465
5466 cat >>confdefs.h <<_ACEOF
5467 #define HAVE_STRUCT_STAT_ST_RDEV 1
5468 _ACEOF
5469
5470
5471 fi
5472
5473 { echo "$as_me:$LINENO: checking for off_t" >&5
5474 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5475 if test "${ac_cv_type_off_t+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h. */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 $ac_includes_default
5485 typedef off_t ac__type_new_;
5486 int
5487 main ()
5488 {
5489 if ((ac__type_new_ *) 0)
5490 return 0;
5491 if (sizeof (ac__type_new_))
5492 return 0;
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (ac_try="$ac_compile"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compile") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } && {
5511 test -z "$ac_c_werror_flag" ||
5512 test ! -s conftest.err
5513 } && test -s conftest.$ac_objext; then
5514 ac_cv_type_off_t=yes
5515 else
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5518
5519 ac_cv_type_off_t=no
5520 fi
5521
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
5524 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5525 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5526 if test $ac_cv_type_off_t = yes; then
5527 :
5528 else
5529
5530 cat >>confdefs.h <<_ACEOF
5531 #define off_t long int
5532 _ACEOF
5533
5534 fi
5535
5536 { echo "$as_me:$LINENO: checking for pid_t" >&5
5537 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5538 if test "${ac_cv_type_pid_t+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 $ac_includes_default
5548 typedef pid_t ac__type_new_;
5549 int
5550 main ()
5551 {
5552 if ((ac__type_new_ *) 0)
5553 return 0;
5554 if (sizeof (ac__type_new_))
5555 return 0;
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_cv_type_pid_t=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 ac_cv_type_pid_t=no
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5588 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5589 if test $ac_cv_type_pid_t = yes; then
5590 :
5591 else
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define pid_t int
5595 _ACEOF
5596
5597 fi
5598
5599 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5600 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5601 if test "${ac_cv_type_signal+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #include <sys/types.h>
5611 #include <signal.h>
5612
5613 int
5614 main ()
5615 {
5616 return *(signal (0, 0)) (0) == 1;
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.$ac_objext; then
5638 ac_cv_type_signal=int
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_cv_type_signal=void
5644 fi
5645
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 fi
5648 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5649 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define RETSIGTYPE $ac_cv_type_signal
5653 _ACEOF
5654
5655
5656 { echo "$as_me:$LINENO: checking for size_t" >&5
5657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5658 if test "${ac_cv_type_size_t+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 $ac_includes_default
5668 typedef size_t ac__type_new_;
5669 int
5670 main ()
5671 {
5672 if ((ac__type_new_ *) 0)
5673 return 0;
5674 if (sizeof (ac__type_new_))
5675 return 0;
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 ac_cv_type_size_t=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 ac_cv_type_size_t=no
5703 fi
5704
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 fi
5707 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5708 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5709 if test $ac_cv_type_size_t = yes; then
5710 :
5711 else
5712
5713 cat >>confdefs.h <<_ACEOF
5714 #define size_t unsigned int
5715 _ACEOF
5716
5717 fi
5718
5719 { echo "$as_me:$LINENO: checking for mode_t" >&5
5720 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
5721 if test "${ac_cv_type_mode_t+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 $ac_includes_default
5731 typedef mode_t ac__type_new_;
5732 int
5733 main ()
5734 {
5735 if ((ac__type_new_ *) 0)
5736 return 0;
5737 if (sizeof (ac__type_new_))
5738 return 0;
5739 ;
5740 return 0;
5741 }
5742 _ACEOF
5743 rm -f conftest.$ac_objext
5744 if { (ac_try="$ac_compile"
5745 case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compile") 2>conftest.er1
5751 ac_status=$?
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && {
5757 test -z "$ac_c_werror_flag" ||
5758 test ! -s conftest.err
5759 } && test -s conftest.$ac_objext; then
5760 ac_cv_type_mode_t=yes
5761 else
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 ac_cv_type_mode_t=no
5766 fi
5767
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5771 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5772 if test $ac_cv_type_mode_t = yes; then
5773 :
5774 else
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define mode_t int
5778 _ACEOF
5779
5780 fi
5781
5782 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5783 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5784 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 int
5795 main ()
5796 {
5797 static struct stat ac_aggr;
5798 if (ac_aggr.st_rdev)
5799 return 0;
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (ac_try="$ac_compile"
5806 case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compile") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest.$ac_objext; then
5821 ac_cv_member_struct_stat_st_rdev=yes
5822 else
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 $ac_includes_default
5833 int
5834 main ()
5835 {
5836 static struct stat ac_aggr;
5837 if (sizeof ac_aggr.st_rdev)
5838 return 0;
5839 ;
5840 return 0;
5841 }
5842 _ACEOF
5843 rm -f conftest.$ac_objext
5844 if { (ac_try="$ac_compile"
5845 case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848 esac
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.$ac_objext; then
5860 ac_cv_member_struct_stat_st_rdev=yes
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 ac_cv_member_struct_stat_st_rdev=no
5866 fi
5867
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 fi
5870
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 fi
5873 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5874 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5875 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5876
5877 cat >>confdefs.h <<_ACEOF
5878 #define HAVE_STRUCT_STAT_ST_RDEV 1
5879 _ACEOF
5880
5881
5882 fi
5883
5884 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5886 if test "${ac_cv_struct_tm+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <time.h>
5897
5898 int
5899 main ()
5900 {
5901 struct tm tm;
5902 int *p = &tm.tm_sec;
5903 return !p;
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
5925 ac_cv_struct_tm=time.h
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_cv_struct_tm=sys/time.h
5931 fi
5932
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 fi
5935 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5936 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5937 if test $ac_cv_struct_tm = sys/time.h; then
5938
5939 cat >>confdefs.h <<\_ACEOF
5940 #define TM_IN_SYS_TIME 1
5941 _ACEOF
5942
5943 fi
5944
5945
5946 ################################################################################
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5965 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5966 uname
5967 do
5968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5982 #define $ac_func innocuous_$ac_func
5983
5984 /* System header to define __stub macros and hopefully few prototypes,
5985 which can conflict with char $ac_func (); below.
5986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 <limits.h> exists even on freestanding compilers. */
5988
5989 #ifdef __STDC__
5990 # include <limits.h>
5991 #else
5992 # include <assert.h>
5993 #endif
5994
5995 #undef $ac_func
5996
5997 /* Override any GCC internal prototype to avoid an error.
5998 Use char because int might match the return type of a GCC
5999 builtin and then its argument prototype would still apply. */
6000 #ifdef __cplusplus
6001 extern "C"
6002 #endif
6003 char $ac_func ();
6004 /* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
6007 #if defined __stub_$ac_func || defined __stub___$ac_func
6008 choke me
6009 #endif
6010
6011 int
6012 main ()
6013 {
6014 return $ac_func ();
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 rm -f conftest.$ac_objext conftest$ac_exeext
6020 if { (ac_try="$ac_link"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_link") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest$ac_exeext &&
6036 $as_test_x conftest$ac_exeext; then
6037 eval "$as_ac_var=yes"
6038 else
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 eval "$as_ac_var=no"
6043 fi
6044
6045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6046 conftest$ac_exeext conftest.$ac_ext
6047 fi
6048 ac_res=`eval echo '${'$as_ac_var'}'`
6049 { echo "$as_me:$LINENO: result: $ac_res" >&5
6050 echo "${ECHO_T}$ac_res" >&6; }
6051 if test `eval echo '${'$as_ac_var'}'` = yes; then
6052 cat >>confdefs.h <<_ACEOF
6053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6054 _ACEOF
6055
6056 else
6057 { { echo "$as_me:$LINENO: error: bailing out" >&5
6058 echo "$as_me: error: bailing out" >&2;}
6059 { (exit 1); exit 1; }; }
6060 fi
6061 done
6062
6063 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6064 # for constant arguments. Useless!
6065 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6066 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6067 if test "${ac_cv_working_alloca_h+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 #include <alloca.h>
6077 int
6078 main ()
6079 {
6080 char *p = (char *) alloca (2 * sizeof (int));
6081 if (p) return 0;
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (ac_try="$ac_link"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_link") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest$ac_exeext &&
6103 $as_test_x conftest$ac_exeext; then
6104 ac_cv_working_alloca_h=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_cv_working_alloca_h=no
6110 fi
6111
6112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6113 conftest$ac_exeext conftest.$ac_ext
6114 fi
6115 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6116 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6117 if test $ac_cv_working_alloca_h = yes; then
6118
6119 cat >>confdefs.h <<\_ACEOF
6120 #define HAVE_ALLOCA_H 1
6121 _ACEOF
6122
6123 fi
6124
6125 { echo "$as_me:$LINENO: checking for alloca" >&5
6126 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6127 if test "${ac_cv_func_alloca_works+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #ifdef __GNUC__
6137 # define alloca __builtin_alloca
6138 #else
6139 # ifdef _MSC_VER
6140 # include <malloc.h>
6141 # define alloca _alloca
6142 # else
6143 # ifdef HAVE_ALLOCA_H
6144 # include <alloca.h>
6145 # else
6146 # ifdef _AIX
6147 #pragma alloca
6148 # else
6149 # ifndef alloca /* predefined by HP cc +Olibcalls */
6150 char *alloca ();
6151 # endif
6152 # endif
6153 # endif
6154 # endif
6155 #endif
6156
6157 int
6158 main ()
6159 {
6160 char *p = (char *) alloca (1);
6161 if (p) return 0;
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 rm -f conftest.$ac_objext conftest$ac_exeext
6167 if { (ac_try="$ac_link"
6168 case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_link") 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && {
6180 test -z "$ac_c_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest$ac_exeext &&
6183 $as_test_x conftest$ac_exeext; then
6184 ac_cv_func_alloca_works=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_cv_func_alloca_works=no
6190 fi
6191
6192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6193 conftest$ac_exeext conftest.$ac_ext
6194 fi
6195 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6196 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6197
6198 if test $ac_cv_func_alloca_works = yes; then
6199
6200 cat >>confdefs.h <<\_ACEOF
6201 #define HAVE_ALLOCA 1
6202 _ACEOF
6203
6204 else
6205 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6206 # that cause trouble. Some versions do not even contain alloca or
6207 # contain a buggy version. If you still want to use their alloca,
6208 # use ar to extract alloca.o from them instead of compiling alloca.c.
6209
6210 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6211
6212 cat >>confdefs.h <<\_ACEOF
6213 #define C_ALLOCA 1
6214 _ACEOF
6215
6216
6217 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6218 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6219 if test "${ac_cv_os_cray+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #if defined CRAY && ! defined CRAY2
6229 webecray
6230 #else
6231 wenotbecray
6232 #endif
6233
6234 _ACEOF
6235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6236 $EGREP "webecray" >/dev/null 2>&1; then
6237 ac_cv_os_cray=yes
6238 else
6239 ac_cv_os_cray=no
6240 fi
6241 rm -f conftest*
6242
6243 fi
6244 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6245 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6246 if test $ac_cv_os_cray = yes; then
6247 for ac_func in _getb67 GETB67 getb67; do
6248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6262 #define $ac_func innocuous_$ac_func
6263
6264 /* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char $ac_func (); below.
6266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 <limits.h> exists even on freestanding compilers. */
6268
6269 #ifdef __STDC__
6270 # include <limits.h>
6271 #else
6272 # include <assert.h>
6273 #endif
6274
6275 #undef $ac_func
6276
6277 /* Override any GCC internal prototype to avoid an error.
6278 Use char because int might match the return type of a GCC
6279 builtin and then its argument prototype would still apply. */
6280 #ifdef __cplusplus
6281 extern "C"
6282 #endif
6283 char $ac_func ();
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined __stub_$ac_func || defined __stub___$ac_func
6288 choke me
6289 #endif
6290
6291 int
6292 main ()
6293 {
6294 return $ac_func ();
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext conftest$ac_exeext
6300 if { (ac_try="$ac_link"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_link") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest$ac_exeext &&
6316 $as_test_x conftest$ac_exeext; then
6317 eval "$as_ac_var=yes"
6318 else
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 eval "$as_ac_var=no"
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6326 conftest$ac_exeext conftest.$ac_ext
6327 fi
6328 ac_res=`eval echo '${'$as_ac_var'}'`
6329 { echo "$as_me:$LINENO: result: $ac_res" >&5
6330 echo "${ECHO_T}$ac_res" >&6; }
6331 if test `eval echo '${'$as_ac_var'}'` = yes; then
6332
6333 cat >>confdefs.h <<_ACEOF
6334 #define CRAY_STACKSEG_END $ac_func
6335 _ACEOF
6336
6337 break
6338 fi
6339
6340 done
6341 fi
6342
6343 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6344 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6345 if test "${ac_cv_c_stack_direction+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 if test "$cross_compiling" = yes; then
6349 ac_cv_c_stack_direction=0
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 int
6359 find_stack_direction ()
6360 {
6361 static char *addr = 0;
6362 auto char dummy;
6363 if (addr == 0)
6364 {
6365 addr = &dummy;
6366 return find_stack_direction ();
6367 }
6368 else
6369 return (&dummy > addr) ? 1 : -1;
6370 }
6371
6372 int
6373 main ()
6374 {
6375 return find_stack_direction () < 0;
6376 }
6377 _ACEOF
6378 rm -f conftest$ac_exeext
6379 if { (ac_try="$ac_link"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_link") 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6389 { (case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_try") 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_c_stack_direction=1
6399 else
6400 echo "$as_me: program exited with status $ac_status" >&5
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 ( exit $ac_status )
6405 ac_cv_c_stack_direction=-1
6406 fi
6407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6408 fi
6409
6410
6411 fi
6412 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6413 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6414
6415 cat >>confdefs.h <<_ACEOF
6416 #define STACK_DIRECTION $ac_cv_c_stack_direction
6417 _ACEOF
6418
6419
6420 fi
6421
6422 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6423 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
6424 if test "${ac_cv_func_closedir_void+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 if test "$cross_compiling" = yes; then
6428 ac_cv_func_closedir_void=yes
6429 else
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6437 #include <$ac_header_dirent>
6438 #ifndef __cplusplus
6439 int closedir ();
6440 #endif
6441
6442 int
6443 main ()
6444 {
6445 return closedir (opendir (".")) != 0;
6446 ;
6447 return 0;
6448 }
6449 _ACEOF
6450 rm -f conftest$ac_exeext
6451 if { (ac_try="$ac_link"
6452 case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455 esac
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_link") 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_func_closedir_void=no
6471 else
6472 echo "$as_me: program exited with status $ac_status" >&5
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 ( exit $ac_status )
6477 ac_cv_func_closedir_void=yes
6478 fi
6479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6480 fi
6481
6482
6483 fi
6484 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6485 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
6486 if test $ac_cv_func_closedir_void = yes; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define CLOSEDIR_VOID 1
6490 _ACEOF
6491
6492 fi
6493
6494
6495 for ac_header in vfork.h
6496 do
6497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 fi
6504 ac_res=`eval echo '${'$as_ac_Header'}'`
6505 { echo "$as_me:$LINENO: result: $ac_res" >&5
6506 echo "${ECHO_T}$ac_res" >&6; }
6507 else
6508 # Is the header compilable?
6509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6518 #include <$ac_header>
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (ac_try="$ac_compile"
6522 case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525 esac
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_compile") 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && {
6534 test -z "$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 } && test -s conftest.$ac_objext; then
6537 ac_header_compiler=yes
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 ac_header_compiler=no
6543 fi
6544
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6547 echo "${ECHO_T}$ac_header_compiler" >&6; }
6548
6549 # Is the header present?
6550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 #include <$ac_header>
6559 _ACEOF
6560 if { (ac_try="$ac_cpp conftest.$ac_ext"
6561 case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564 esac
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } >/dev/null && {
6573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 }; then
6576 ac_header_preproc=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_header_preproc=no
6582 fi
6583
6584 rm -f conftest.err conftest.$ac_ext
6585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6586 echo "${ECHO_T}$ac_header_preproc" >&6; }
6587
6588 # So? What about this header?
6589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6590 yes:no: )
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6595 ac_header_preproc=yes
6596 ;;
6597 no:yes:* )
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6610
6611 ;;
6612 esac
6613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 eval "$as_ac_Header=\$ac_header_preproc"
6619 fi
6620 ac_res=`eval echo '${'$as_ac_Header'}'`
6621 { echo "$as_me:$LINENO: result: $ac_res" >&5
6622 echo "${ECHO_T}$ac_res" >&6; }
6623
6624 fi
6625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6626 cat >>confdefs.h <<_ACEOF
6627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6628 _ACEOF
6629
6630 fi
6631
6632 done
6633
6634
6635
6636 for ac_func in fork vfork
6637 do
6638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6652 #define $ac_func innocuous_$ac_func
6653
6654 /* System header to define __stub macros and hopefully few prototypes,
6655 which can conflict with char $ac_func (); below.
6656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6657 <limits.h> exists even on freestanding compilers. */
6658
6659 #ifdef __STDC__
6660 # include <limits.h>
6661 #else
6662 # include <assert.h>
6663 #endif
6664
6665 #undef $ac_func
6666
6667 /* Override any GCC internal prototype to avoid an error.
6668 Use char because int might match the return type of a GCC
6669 builtin and then its argument prototype would still apply. */
6670 #ifdef __cplusplus
6671 extern "C"
6672 #endif
6673 char $ac_func ();
6674 /* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677 #if defined __stub_$ac_func || defined __stub___$ac_func
6678 choke me
6679 #endif
6680
6681 int
6682 main ()
6683 {
6684 return $ac_func ();
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext conftest$ac_exeext
6690 if { (ac_try="$ac_link"
6691 case "(($ac_try" in
6692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693 *) ac_try_echo=$ac_try;;
6694 esac
6695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696 (eval "$ac_link") 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } && {
6703 test -z "$ac_c_werror_flag" ||
6704 test ! -s conftest.err
6705 } && test -s conftest$ac_exeext &&
6706 $as_test_x conftest$ac_exeext; then
6707 eval "$as_ac_var=yes"
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712 eval "$as_ac_var=no"
6713 fi
6714
6715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6716 conftest$ac_exeext conftest.$ac_ext
6717 fi
6718 ac_res=`eval echo '${'$as_ac_var'}'`
6719 { echo "$as_me:$LINENO: result: $ac_res" >&5
6720 echo "${ECHO_T}$ac_res" >&6; }
6721 if test `eval echo '${'$as_ac_var'}'` = yes; then
6722 cat >>confdefs.h <<_ACEOF
6723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6724 _ACEOF
6725
6726 fi
6727 done
6728
6729 if test "x$ac_cv_func_fork" = xyes; then
6730 { echo "$as_me:$LINENO: checking for working fork" >&5
6731 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6732 if test "${ac_cv_func_fork_works+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735 if test "$cross_compiling" = yes; then
6736 ac_cv_func_fork_works=cross
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 int
6746 main ()
6747 {
6748
6749 /* By Ruediger Kuhlmann. */
6750 return fork () < 0;
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest$ac_exeext
6757 if { (ac_try="$ac_link"
6758 case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_link") 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6767 { (case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_try") 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_func_fork_works=yes
6777 else
6778 echo "$as_me: program exited with status $ac_status" >&5
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 ( exit $ac_status )
6783 ac_cv_func_fork_works=no
6784 fi
6785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6786 fi
6787
6788
6789 fi
6790 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6791 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6792
6793 else
6794 ac_cv_func_fork_works=$ac_cv_func_fork
6795 fi
6796 if test "x$ac_cv_func_fork_works" = xcross; then
6797 case $host in
6798 *-*-amigaos* | *-*-msdosdjgpp*)
6799 # Override, as these systems have only a dummy fork() stub
6800 ac_cv_func_fork_works=no
6801 ;;
6802 *)
6803 ac_cv_func_fork_works=yes
6804 ;;
6805 esac
6806 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6807 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6808 fi
6809 ac_cv_func_vfork_works=$ac_cv_func_vfork
6810 if test "x$ac_cv_func_vfork" = xyes; then
6811 { echo "$as_me:$LINENO: checking for working vfork" >&5
6812 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6813 if test "${ac_cv_func_vfork_works+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 if test "$cross_compiling" = yes; then
6817 ac_cv_func_vfork_works=cross
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 /* Thanks to Paul Eggert for this test. */
6826 $ac_includes_default
6827 #include <sys/wait.h>
6828 #ifdef HAVE_VFORK_H
6829 # include <vfork.h>
6830 #endif
6831 /* On some sparc systems, changes by the child to local and incoming
6832 argument registers are propagated back to the parent. The compiler
6833 is told about this with #include <vfork.h>, but some compilers
6834 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6835 static variable whose address is put into a register that is
6836 clobbered by the vfork. */
6837 static void
6838 #ifdef __cplusplus
6839 sparc_address_test (int arg)
6840 # else
6841 sparc_address_test (arg) int arg;
6842 #endif
6843 {
6844 static pid_t child;
6845 if (!child) {
6846 child = vfork ();
6847 if (child < 0) {
6848 perror ("vfork");
6849 _exit(2);
6850 }
6851 if (!child) {
6852 arg = getpid();
6853 write(-1, "", 0);
6854 _exit (arg);
6855 }
6856 }
6857 }
6858
6859 int
6860 main ()
6861 {
6862 pid_t parent = getpid ();
6863 pid_t child;
6864
6865 sparc_address_test (0);
6866
6867 child = vfork ();
6868
6869 if (child == 0) {
6870 /* Here is another test for sparc vfork register problems. This
6871 test uses lots of local variables, at least as many local
6872 variables as main has allocated so far including compiler
6873 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6874 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6875 reuse the register of parent for one of the local variables,
6876 since it will think that parent can't possibly be used any more
6877 in this routine. Assigning to the local variable will thus
6878 munge parent in the parent process. */
6879 pid_t
6880 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6881 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6882 /* Convince the compiler that p..p7 are live; otherwise, it might
6883 use the same hardware register for all 8 local variables. */
6884 if (p != p1 || p != p2 || p != p3 || p != p4
6885 || p != p5 || p != p6 || p != p7)
6886 _exit(1);
6887
6888 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6889 from child file descriptors. If the child closes a descriptor
6890 before it execs or exits, this munges the parent's descriptor
6891 as well. Test for this by closing stdout in the child. */
6892 _exit(close(fileno(stdout)) != 0);
6893 } else {
6894 int status;
6895 struct stat st;
6896
6897 while (wait(&status) != child)
6898 ;
6899 return (
6900 /* Was there some problem with vforking? */
6901 child < 0
6902
6903 /* Did the child fail? (This shouldn't happen.) */
6904 || status
6905
6906 /* Did the vfork/compiler bug occur? */
6907 || parent != getpid()
6908
6909 /* Did the file descriptor bug occur? */
6910 || fstat(fileno(stdout), &st) != 0
6911 );
6912 }
6913 }
6914 _ACEOF
6915 rm -f conftest$ac_exeext
6916 if { (ac_try="$ac_link"
6917 case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_link") 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6926 { (case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_try") 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_func_vfork_works=yes
6936 else
6937 echo "$as_me: program exited with status $ac_status" >&5
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 ( exit $ac_status )
6942 ac_cv_func_vfork_works=no
6943 fi
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6945 fi
6946
6947
6948 fi
6949 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6950 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6951
6952 fi;
6953 if test "x$ac_cv_func_fork_works" = xcross; then
6954 ac_cv_func_vfork_works=$ac_cv_func_vfork
6955 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6956 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6957 fi
6958
6959 if test "x$ac_cv_func_vfork_works" = xyes; then
6960
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_WORKING_VFORK 1
6963 _ACEOF
6964
6965 else
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define vfork fork
6969 _ACEOF
6970
6971 fi
6972 if test "x$ac_cv_func_fork_works" = xyes; then
6973
6974 cat >>confdefs.h <<\_ACEOF
6975 #define HAVE_WORKING_FORK 1
6976 _ACEOF
6977
6978 fi
6979
6980 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6981 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6982 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 rm -f conftest.sym conftest.file
6986 echo >conftest.file
6987 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6988 if test "$cross_compiling" = yes; then
6989 ac_cv_func_lstat_dereferences_slashed_symlink=no
6990 else
6991 cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h. */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 $ac_includes_default
6998 int
6999 main ()
7000 {
7001 struct stat sbuf;
7002 /* Linux will dereference the symlink and fail.
7003 That is better in the sense that it means we will not
7004 have to compile and use the lstat wrapper. */
7005 return lstat ("conftest.sym/", &sbuf) == 0;
7006 ;
7007 return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest$ac_exeext
7011 if { (ac_try="$ac_link"
7012 case "(($ac_try" in
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7015 esac
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_link") 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7021 { (case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_try") 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7031 else
7032 echo "$as_me: program exited with status $ac_status" >&5
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ( exit $ac_status )
7037 ac_cv_func_lstat_dereferences_slashed_symlink=no
7038 fi
7039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7040 fi
7041
7042
7043 else
7044 # If the `ln -s' command failed, then we probably don't even
7045 # have an lstat function.
7046 ac_cv_func_lstat_dereferences_slashed_symlink=no
7047 fi
7048 rm -f conftest.sym conftest.file
7049
7050 fi
7051 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7052 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7053
7054 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7055
7056 cat >>confdefs.h <<_ACEOF
7057 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7058 _ACEOF
7059
7060
7061 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7062 case " $LIBOBJS " in
7063 *" lstat.$ac_objext "* ) ;;
7064 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7065 ;;
7066 esac
7067
7068 fi
7069
7070 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7071 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
7072 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 if test "$cross_compiling" = yes; then
7076 ac_cv_func_lstat_empty_string_bug=yes
7077 else
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 $ac_includes_default
7085 int
7086 main ()
7087 {
7088 struct stat sbuf;
7089 return lstat ("", &sbuf) == 0;
7090 ;
7091 return 0;
7092 }
7093 _ACEOF
7094 rm -f conftest$ac_exeext
7095 if { (ac_try="$ac_link"
7096 case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7099 esac
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101 (eval "$ac_link") 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7105 { (case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108 esac
7109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7110 (eval "$ac_try") 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_cv_func_lstat_empty_string_bug=no
7115 else
7116 echo "$as_me: program exited with status $ac_status" >&5
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ( exit $ac_status )
7121 ac_cv_func_lstat_empty_string_bug=yes
7122 fi
7123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7124 fi
7125
7126
7127 fi
7128 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7129 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
7130 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7131 case " $LIBOBJS " in
7132 *" lstat.$ac_objext "* ) ;;
7133 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7134 ;;
7135 esac
7136
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7140 _ACEOF
7141
7142 fi
7143
7144
7145 for ac_header in stdlib.h
7146 do
7147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 fi
7154 ac_res=`eval echo '${'$as_ac_Header'}'`
7155 { echo "$as_me:$LINENO: result: $ac_res" >&5
7156 echo "${ECHO_T}$ac_res" >&6; }
7157 else
7158 # Is the header compilable?
7159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7161 cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h. */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 $ac_includes_default
7168 #include <$ac_header>
7169 _ACEOF
7170 rm -f conftest.$ac_objext
7171 if { (ac_try="$ac_compile"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_compile") 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest.$ac_objext; then
7187 ac_header_compiler=yes
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 ac_header_compiler=no
7193 fi
7194
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7197 echo "${ECHO_T}$ac_header_compiler" >&6; }
7198
7199 # Is the header present?
7200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 #include <$ac_header>
7209 _ACEOF
7210 if { (ac_try="$ac_cpp conftest.$ac_ext"
7211 case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214 esac
7215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } >/dev/null && {
7223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 }; then
7226 ac_header_preproc=yes
7227 else
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 ac_header_preproc=no
7232 fi
7233
7234 rm -f conftest.err conftest.$ac_ext
7235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7236 echo "${ECHO_T}$ac_header_preproc" >&6; }
7237
7238 # So? What about this header?
7239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7240 yes:no: )
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7245 ac_header_preproc=yes
7246 ;;
7247 no:yes:* )
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7260
7261 ;;
7262 esac
7263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 eval "$as_ac_Header=\$ac_header_preproc"
7269 fi
7270 ac_res=`eval echo '${'$as_ac_Header'}'`
7271 { echo "$as_me:$LINENO: result: $ac_res" >&5
7272 echo "${ECHO_T}$ac_res" >&6; }
7273
7274 fi
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276 cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7285 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
7286 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 if test "$cross_compiling" = yes; then
7290 ac_cv_func_malloc_0_nonnull=no
7291 else
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7299 # include <stdlib.h>
7300 #else
7301 char *malloc ();
7302 #endif
7303
7304 int
7305 main ()
7306 {
7307 return ! malloc (0);
7308 ;
7309 return 0;
7310 }
7311 _ACEOF
7312 rm -f conftest$ac_exeext
7313 if { (ac_try="$ac_link"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_link") 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7323 { (case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_try") 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 ac_cv_func_malloc_0_nonnull=yes
7333 else
7334 echo "$as_me: program exited with status $ac_status" >&5
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 ( exit $ac_status )
7339 ac_cv_func_malloc_0_nonnull=no
7340 fi
7341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7342 fi
7343
7344
7345 fi
7346 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7347 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
7348 if test $ac_cv_func_malloc_0_nonnull = yes; then
7349
7350 cat >>confdefs.h <<\_ACEOF
7351 #define HAVE_MALLOC 1
7352 _ACEOF
7353
7354 else
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_MALLOC 0
7357 _ACEOF
7358
7359 case " $LIBOBJS " in
7360 *" malloc.$ac_objext "* ) ;;
7361 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7362 ;;
7363 esac
7364
7365
7366 cat >>confdefs.h <<\_ACEOF
7367 #define malloc rpl_malloc
7368 _ACEOF
7369
7370 fi
7371
7372
7373
7374 { echo "$as_me:$LINENO: checking for working memcmp" >&5
7375 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
7376 if test "${ac_cv_func_memcmp_working+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379 if test "$cross_compiling" = yes; then
7380 ac_cv_func_memcmp_working=no
7381 else
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7389 int
7390 main ()
7391 {
7392
7393 /* Some versions of memcmp are not 8-bit clean. */
7394 char c0 = '\100', c1 = '\200', c2 = '\201';
7395 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7396 return 1;
7397
7398 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7399 or more and with at least one buffer not starting on a 4-byte boundary.
7400 William Lewis provided this test program. */
7401 {
7402 char foo[21];
7403 char bar[21];
7404 int i;
7405 for (i = 0; i < 4; i++)
7406 {
7407 char *a = foo + i;
7408 char *b = bar + i;
7409 strcpy (a, "--------01111111");
7410 strcpy (b, "--------10000000");
7411 if (memcmp (a, b, 16) >= 0)
7412 return 1;
7413 }
7414 return 0;
7415 }
7416
7417 ;
7418 return 0;
7419 }
7420 _ACEOF
7421 rm -f conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7423 case "(($ac_try" in
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_link") 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7432 { (case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_try") 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 ac_cv_func_memcmp_working=yes
7442 else
7443 echo "$as_me: program exited with status $ac_status" >&5
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 ( exit $ac_status )
7448 ac_cv_func_memcmp_working=no
7449 fi
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7451 fi
7452
7453
7454 fi
7455 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7456 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7457 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7458 *" memcmp.$ac_objext "* ) ;;
7459 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7460 ;;
7461 esac
7462
7463
7464
7465
7466 for ac_header in stdlib.h unistd.h
7467 do
7468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 fi
7475 ac_res=`eval echo '${'$as_ac_Header'}'`
7476 { echo "$as_me:$LINENO: result: $ac_res" >&5
7477 echo "${ECHO_T}$ac_res" >&6; }
7478 else
7479 # Is the header compilable?
7480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h. */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 $ac_includes_default
7489 #include <$ac_header>
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7493 case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7508 ac_header_compiler=yes
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7512
7513 ac_header_compiler=no
7514 fi
7515
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7518 echo "${ECHO_T}$ac_header_compiler" >&6; }
7519
7520 # Is the header present?
7521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #include <$ac_header>
7530 _ACEOF
7531 if { (ac_try="$ac_cpp conftest.$ac_ext"
7532 case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535 esac
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7538 ac_status=$?
7539 grep -v '^ *+' conftest.er1 >conftest.err
7540 rm -f conftest.er1
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } >/dev/null && {
7544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 }; then
7547 ac_header_preproc=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 ac_header_preproc=no
7553 fi
7554
7555 rm -f conftest.err conftest.$ac_ext
7556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7557 echo "${ECHO_T}$ac_header_preproc" >&6; }
7558
7559 # So? What about this header?
7560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7561 yes:no: )
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7566 ac_header_preproc=yes
7567 ;;
7568 no:yes:* )
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7581
7582 ;;
7583 esac
7584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 eval "$as_ac_Header=\$ac_header_preproc"
7590 fi
7591 ac_res=`eval echo '${'$as_ac_Header'}'`
7592 { echo "$as_me:$LINENO: result: $ac_res" >&5
7593 echo "${ECHO_T}$ac_res" >&6; }
7594
7595 fi
7596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7597 cat >>confdefs.h <<_ACEOF
7598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7599 _ACEOF
7600
7601 fi
7602
7603 done
7604
7605
7606 for ac_func in getpagesize
7607 do
7608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7622 #define $ac_func innocuous_$ac_func
7623
7624 /* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char $ac_func (); below.
7626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627 <limits.h> exists even on freestanding compilers. */
7628
7629 #ifdef __STDC__
7630 # include <limits.h>
7631 #else
7632 # include <assert.h>
7633 #endif
7634
7635 #undef $ac_func
7636
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char $ac_func ();
7644 /* The GNU C library defines this for functions which it implements
7645 to always fail with ENOSYS. Some functions are actually named
7646 something starting with __ and the normal name is an alias. */
7647 #if defined __stub_$ac_func || defined __stub___$ac_func
7648 choke me
7649 #endif
7650
7651 int
7652 main ()
7653 {
7654 return $ac_func ();
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (ac_try="$ac_link"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext &&
7676 $as_test_x conftest$ac_exeext; then
7677 eval "$as_ac_var=yes"
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 eval "$as_ac_var=no"
7683 fi
7684
7685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7686 conftest$ac_exeext conftest.$ac_ext
7687 fi
7688 ac_res=`eval echo '${'$as_ac_var'}'`
7689 { echo "$as_me:$LINENO: result: $ac_res" >&5
7690 echo "${ECHO_T}$ac_res" >&6; }
7691 if test `eval echo '${'$as_ac_var'}'` = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7694 _ACEOF
7695
7696 fi
7697 done
7698
7699 { echo "$as_me:$LINENO: checking for working mmap" >&5
7700 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7701 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704 if test "$cross_compiling" = yes; then
7705 ac_cv_func_mmap_fixed_mapped=no
7706 else
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h. */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 $ac_includes_default
7714 /* malloc might have been renamed as rpl_malloc. */
7715 #undef malloc
7716
7717 /* Thanks to Mike Haertel and Jim Avera for this test.
7718 Here is a matrix of mmap possibilities:
7719 mmap private not fixed
7720 mmap private fixed at somewhere currently unmapped
7721 mmap private fixed at somewhere already mapped
7722 mmap shared not fixed
7723 mmap shared fixed at somewhere currently unmapped
7724 mmap shared fixed at somewhere already mapped
7725 For private mappings, we should verify that changes cannot be read()
7726 back from the file, nor mmap's back from the file at a different
7727 address. (There have been systems where private was not correctly
7728 implemented like the infamous i386 svr4.0, and systems where the
7729 VM page cache was not coherent with the file system buffer cache
7730 like early versions of FreeBSD and possibly contemporary NetBSD.)
7731 For shared mappings, we should conversely verify that changes get
7732 propagated back to all the places they're supposed to be.
7733
7734 Grep wants private fixed already mapped.
7735 The main things grep needs to know about mmap are:
7736 * does it exist and is it safe to write into the mmap'd area
7737 * how to use it (BSD variants) */
7738
7739 #include <fcntl.h>
7740 #include <sys/mman.h>
7741
7742 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7743 char *malloc ();
7744 #endif
7745
7746 /* This mess was copied from the GNU getpagesize.h. */
7747 #ifndef HAVE_GETPAGESIZE
7748 /* Assume that all systems that can run configure have sys/param.h. */
7749 # ifndef HAVE_SYS_PARAM_H
7750 # define HAVE_SYS_PARAM_H 1
7751 # endif
7752
7753 # ifdef _SC_PAGESIZE
7754 # define getpagesize() sysconf(_SC_PAGESIZE)
7755 # else /* no _SC_PAGESIZE */
7756 # ifdef HAVE_SYS_PARAM_H
7757 # include <sys/param.h>
7758 # ifdef EXEC_PAGESIZE
7759 # define getpagesize() EXEC_PAGESIZE
7760 # else /* no EXEC_PAGESIZE */
7761 # ifdef NBPG
7762 # define getpagesize() NBPG * CLSIZE
7763 # ifndef CLSIZE
7764 # define CLSIZE 1
7765 # endif /* no CLSIZE */
7766 # else /* no NBPG */
7767 # ifdef NBPC
7768 # define getpagesize() NBPC
7769 # else /* no NBPC */
7770 # ifdef PAGESIZE
7771 # define getpagesize() PAGESIZE
7772 # endif /* PAGESIZE */
7773 # endif /* no NBPC */
7774 # endif /* no NBPG */
7775 # endif /* no EXEC_PAGESIZE */
7776 # else /* no HAVE_SYS_PARAM_H */
7777 # define getpagesize() 8192 /* punt totally */
7778 # endif /* no HAVE_SYS_PARAM_H */
7779 # endif /* no _SC_PAGESIZE */
7780
7781 #endif /* no HAVE_GETPAGESIZE */
7782
7783 int
7784 main ()
7785 {
7786 char *data, *data2, *data3;
7787 int i, pagesize;
7788 int fd;
7789
7790 pagesize = getpagesize ();
7791
7792 /* First, make a file with some known garbage in it. */
7793 data = (char *) malloc (pagesize);
7794 if (!data)
7795 return 1;
7796 for (i = 0; i < pagesize; ++i)
7797 *(data + i) = rand ();
7798 umask (0);
7799 fd = creat ("conftest.mmap", 0600);
7800 if (fd < 0)
7801 return 1;
7802 if (write (fd, data, pagesize) != pagesize)
7803 return 1;
7804 close (fd);
7805
7806 /* Next, try to mmap the file at a fixed address which already has
7807 something else allocated at it. If we can, also make sure that
7808 we see the same garbage. */
7809 fd = open ("conftest.mmap", O_RDWR);
7810 if (fd < 0)
7811 return 1;
7812 data2 = (char *) malloc (2 * pagesize);
7813 if (!data2)
7814 return 1;
7815 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7816 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7817 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7818 return 1;
7819 for (i = 0; i < pagesize; ++i)
7820 if (*(data + i) != *(data2 + i))
7821 return 1;
7822
7823 /* Finally, make sure that changes to the mapped area do not
7824 percolate back to the file as seen by read(). (This is a bug on
7825 some variants of i386 svr4.0.) */
7826 for (i = 0; i < pagesize; ++i)
7827 *(data2 + i) = *(data2 + i) + 1;
7828 data3 = (char *) malloc (pagesize);
7829 if (!data3)
7830 return 1;
7831 if (read (fd, data3, pagesize) != pagesize)
7832 return 1;
7833 for (i = 0; i < pagesize; ++i)
7834 if (*(data + i) != *(data3 + i))
7835 return 1;
7836 close (fd);
7837 return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7842 case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_func_mmap_fixed_mapped=yes
7861 else
7862 echo "$as_me: program exited with status $ac_status" >&5
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866 ( exit $ac_status )
7867 ac_cv_func_mmap_fixed_mapped=no
7868 fi
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7870 fi
7871
7872
7873 fi
7874 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7875 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7876 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7877
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_MMAP 1
7880 _ACEOF
7881
7882 fi
7883 rm -f conftest.mmap
7884
7885 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7886 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7887 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 if test "$cross_compiling" = yes; then
7891 ac_cv_func_stat_empty_string_bug=yes
7892 else
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 $ac_includes_default
7900 int
7901 main ()
7902 {
7903 struct stat sbuf;
7904 return stat ("", &sbuf) == 0;
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7911 case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914 esac
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_link") 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7920 { (case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_try") 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 ac_cv_func_stat_empty_string_bug=no
7930 else
7931 echo "$as_me: program exited with status $ac_status" >&5
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 ( exit $ac_status )
7936 ac_cv_func_stat_empty_string_bug=yes
7937 fi
7938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7939 fi
7940
7941
7942 fi
7943 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7944 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7945 if test $ac_cv_func_stat_empty_string_bug = yes; then
7946 case " $LIBOBJS " in
7947 *" stat.$ac_objext "* ) ;;
7948 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7949 ;;
7950 esac
7951
7952
7953 cat >>confdefs.h <<_ACEOF
7954 #define HAVE_STAT_EMPTY_STRING_BUG 1
7955 _ACEOF
7956
7957 fi
7958
7959 { echo "$as_me:$LINENO: checking for working strtod" >&5
7960 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
7961 if test "${ac_cv_func_strtod+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964 if test "$cross_compiling" = yes; then
7965 ac_cv_func_strtod=no
7966 else
7967 cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h. */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973
7974 $ac_includes_default
7975 #ifndef strtod
7976 double strtod ();
7977 #endif
7978 int
7979 main()
7980 {
7981 {
7982 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7983 char *string = " +69";
7984 char *term;
7985 double value;
7986 value = strtod (string, &term);
7987 if (value != 69 || term != (string + 4))
7988 return 1;
7989 }
7990
7991 {
7992 /* Under Solaris 2.4, strtod returns the wrong value for the
7993 terminating character under some conditions. */
7994 char *string = "NaN";
7995 char *term;
7996 strtod (string, &term);
7997 if (term != string && *(term - 1) == 0)
7998 return 1;
7999 }
8000 return 0;
8001 }
8002
8003 _ACEOF
8004 rm -f conftest$ac_exeext
8005 if { (ac_try="$ac_link"
8006 case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_link") 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8015 { (case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_try") 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_cv_func_strtod=yes
8025 else
8026 echo "$as_me: program exited with status $ac_status" >&5
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 ( exit $ac_status )
8031 ac_cv_func_strtod=no
8032 fi
8033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8034 fi
8035
8036
8037 fi
8038 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8039 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
8040 if test $ac_cv_func_strtod = no; then
8041 case " $LIBOBJS " in
8042 *" strtod.$ac_objext "* ) ;;
8043 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8044 ;;
8045 esac
8046
8047 { echo "$as_me:$LINENO: checking for pow" >&5
8048 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
8049 if test "${ac_cv_func_pow+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8060 #define pow innocuous_pow
8061
8062 /* System header to define __stub macros and hopefully few prototypes,
8063 which can conflict with char pow (); below.
8064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8065 <limits.h> exists even on freestanding compilers. */
8066
8067 #ifdef __STDC__
8068 # include <limits.h>
8069 #else
8070 # include <assert.h>
8071 #endif
8072
8073 #undef pow
8074
8075 /* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
8078 #ifdef __cplusplus
8079 extern "C"
8080 #endif
8081 char pow ();
8082 /* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
8085 #if defined __stub_pow || defined __stub___pow
8086 choke me
8087 #endif
8088
8089 int
8090 main ()
8091 {
8092 return pow ();
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8099 case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest$ac_exeext &&
8114 $as_test_x conftest$ac_exeext; then
8115 ac_cv_func_pow=yes
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120 ac_cv_func_pow=no
8121 fi
8122
8123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8124 conftest$ac_exeext conftest.$ac_ext
8125 fi
8126 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8127 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
8128
8129 if test $ac_cv_func_pow = no; then
8130 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8131 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
8132 if test "${ac_cv_lib_m_pow+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-lm $LIBS"
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143
8144 /* Override any GCC internal prototype to avoid an error.
8145 Use char because int might match the return type of a GCC
8146 builtin and then its argument prototype would still apply. */
8147 #ifdef __cplusplus
8148 extern "C"
8149 #endif
8150 char pow ();
8151 int
8152 main ()
8153 {
8154 return pow ();
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_link") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest$ac_exeext &&
8176 $as_test_x conftest$ac_exeext; then
8177 ac_cv_lib_m_pow=yes
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ac_cv_lib_m_pow=no
8183 fi
8184
8185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8186 conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_lib_save_LIBS
8188 fi
8189 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8190 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
8191 if test $ac_cv_lib_m_pow = yes; then
8192 POW_LIB=-lm
8193 else
8194 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8195 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8196 fi
8197
8198 fi
8199
8200 fi
8201
8202
8203 for ac_func in vprintf
8204 do
8205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8206 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8219 #define $ac_func innocuous_$ac_func
8220
8221 /* System header to define __stub macros and hopefully few prototypes,
8222 which can conflict with char $ac_func (); below.
8223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8224 <limits.h> exists even on freestanding compilers. */
8225
8226 #ifdef __STDC__
8227 # include <limits.h>
8228 #else
8229 # include <assert.h>
8230 #endif
8231
8232 #undef $ac_func
8233
8234 /* Override any GCC internal prototype to avoid an error.
8235 Use char because int might match the return type of a GCC
8236 builtin and then its argument prototype would still apply. */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 char $ac_func ();
8241 /* The GNU C library defines this for functions which it implements
8242 to always fail with ENOSYS. Some functions are actually named
8243 something starting with __ and the normal name is an alias. */
8244 #if defined __stub_$ac_func || defined __stub___$ac_func
8245 choke me
8246 #endif
8247
8248 int
8249 main ()
8250 {
8251 return $ac_func ();
8252 ;
8253 return 0;
8254 }
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8258 case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_link") 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest$ac_exeext &&
8273 $as_test_x conftest$ac_exeext; then
8274 eval "$as_ac_var=yes"
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279 eval "$as_ac_var=no"
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8283 conftest$ac_exeext conftest.$ac_ext
8284 fi
8285 ac_res=`eval echo '${'$as_ac_var'}'`
8286 { echo "$as_me:$LINENO: result: $ac_res" >&5
8287 echo "${ECHO_T}$ac_res" >&6; }
8288 if test `eval echo '${'$as_ac_var'}'` = yes; then
8289 cat >>confdefs.h <<_ACEOF
8290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8291 _ACEOF
8292
8293 { echo "$as_me:$LINENO: checking for _doprnt" >&5
8294 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8295 if test "${ac_cv_func__doprnt+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8306 #define _doprnt innocuous__doprnt
8307
8308 /* System header to define __stub macros and hopefully few prototypes,
8309 which can conflict with char _doprnt (); below.
8310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8311 <limits.h> exists even on freestanding compilers. */
8312
8313 #ifdef __STDC__
8314 # include <limits.h>
8315 #else
8316 # include <assert.h>
8317 #endif
8318
8319 #undef _doprnt
8320
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char _doprnt ();
8328 /* The GNU C library defines this for functions which it implements
8329 to always fail with ENOSYS. Some functions are actually named
8330 something starting with __ and the normal name is an alias. */
8331 #if defined __stub__doprnt || defined __stub____doprnt
8332 choke me
8333 #endif
8334
8335 int
8336 main ()
8337 {
8338 return _doprnt ();
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (ac_try="$ac_link"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_link") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest$ac_exeext &&
8360 $as_test_x conftest$ac_exeext; then
8361 ac_cv_func__doprnt=yes
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366 ac_cv_func__doprnt=no
8367 fi
8368
8369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8370 conftest$ac_exeext conftest.$ac_ext
8371 fi
8372 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8373 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8374 if test $ac_cv_func__doprnt = yes; then
8375
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_DOPRNT 1
8378 _ACEOF
8379
8380 fi
8381
8382 fi
8383 done
8384
8385
8386
8387 ################################################################################
8388
8389
8390 ################################################################################
8391 { echo "$as_me:$LINENO: checking file owner" >&5
8392 echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
8393 OWNER="root"
8394
8395
8396 # Check whether --with-user was given.
8397 if test "${with_user+set}" = set; then
8398 withval=$with_user; OWNER="$withval"
8399 fi
8400
8401 { echo "$as_me:$LINENO: result: $OWNER" >&5
8402 echo "${ECHO_T}$OWNER" >&6; }
8403
8404 if test x$OWNER != x; then
8405 OWNER="-o $OWNER"
8406 fi
8407
8408 ################################################################################
8409 { echo "$as_me:$LINENO: checking group owner" >&5
8410 echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
8411 GROUP="root"
8412
8413 # Check whether --with-group was given.
8414 if test "${with_group+set}" = set; then
8415 withval=$with_group; GROUP="$withval"
8416 fi
8417
8418 { echo "$as_me:$LINENO: result: $GROUP" >&5
8419 echo "${ECHO_T}$GROUP" >&6; }
8420
8421 if test x$GROUP != x; then
8422 GROUP="-g $GROUP"
8423 fi
8424
8425 ################################################################################
8426 { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8427 echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
8428 # Check whether --enable-lvm1_fallback was given.
8429 if test "${enable_lvm1_fallback+set}" = set; then
8430 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8431 else
8432 LVM1_FALLBACK=no
8433 fi
8434
8435 { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8436 echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
8437
8438 if test x$LVM1_FALLBACK = xyes; then
8439
8440 cat >>confdefs.h <<\_ACEOF
8441 #define LVM1_FALLBACK 1
8442 _ACEOF
8443
8444 fi
8445
8446 ################################################################################
8447 { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8448 echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
8449
8450 # Check whether --with-lvm1 was given.
8451 if test "${with_lvm1+set}" = set; then
8452 withval=$with_lvm1; LVM1="$withval"
8453 else
8454 LVM1="internal"
8455 fi
8456
8457 { echo "$as_me:$LINENO: result: $LVM1" >&5
8458 echo "${ECHO_T}$LVM1" >&6; }
8459
8460 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8461 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
8462 " >&5
8463 echo "$as_me: error: --with-lvm1 parameter invalid
8464 " >&2;}
8465 { (exit 1); exit 1; }; }
8466 fi;
8467
8468 if test x$LVM1 = xinternal; then
8469
8470 cat >>confdefs.h <<\_ACEOF
8471 #define LVM1_INTERNAL 1
8472 _ACEOF
8473
8474 fi
8475
8476 ################################################################################
8477 { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8478 echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
8479
8480 # Check whether --with-pool was given.
8481 if test "${with_pool+set}" = set; then
8482 withval=$with_pool; POOL="$withval"
8483 else
8484 POOL="internal"
8485 fi
8486
8487 { echo "$as_me:$LINENO: result: $POOL" >&5
8488 echo "${ECHO_T}$POOL" >&6; }
8489
8490 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
8491 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
8492 " >&5
8493 echo "$as_me: error: --with-pool parameter invalid
8494 " >&2;}
8495 { (exit 1); exit 1; }; }
8496 fi;
8497
8498 if test x$POOL = xinternal; then
8499
8500 cat >>confdefs.h <<\_ACEOF
8501 #define POOL_INTERNAL 1
8502 _ACEOF
8503
8504 fi
8505
8506 ################################################################################
8507 { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8508 echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
8509
8510 # Check whether --with-cluster was given.
8511 if test "${with_cluster+set}" = set; then
8512 withval=$with_cluster; CLUSTER="$withval"
8513 fi
8514
8515 { echo "$as_me:$LINENO: result: $CLUSTER" >&5
8516 echo "${ECHO_T}$CLUSTER" >&6; }
8517
8518 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
8519 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
8520 " >&5
8521 echo "$as_me: error: --with-cluster parameter invalid
8522 " >&2;}
8523 { (exit 1); exit 1; }; }
8524 fi;
8525
8526 if test x$CLUSTER = xinternal; then
8527
8528 cat >>confdefs.h <<\_ACEOF
8529 #define CLUSTER_LOCKING_INTERNAL 1
8530 _ACEOF
8531
8532 fi
8533
8534 ################################################################################
8535 { echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8536 echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
8537
8538 # Check whether --with-snapshots was given.
8539 if test "${with_snapshots+set}" = set; then
8540 withval=$with_snapshots; SNAPSHOTS="$withval"
8541 else
8542 SNAPSHOTS="internal"
8543 fi
8544
8545 { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8546 echo "${ECHO_T}$SNAPSHOTS" >&6; }
8547
8548 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
8549 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
8550 " >&5
8551 echo "$as_me: error: --with-snapshots parameter invalid
8552 " >&2;}
8553 { (exit 1); exit 1; }; }
8554 fi;
8555
8556 if test x$SNAPSHOTS = xinternal; then
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define SNAPSHOT_INTERNAL 1
8560 _ACEOF
8561
8562 fi
8563
8564 ################################################################################
8565 { echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8566 echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
8567
8568 # Check whether --with-mirrors was given.
8569 if test "${with_mirrors+set}" = set; then
8570 withval=$with_mirrors; MIRRORS="$withval"
8571 else
8572 MIRRORS="internal"
8573 fi
8574
8575 { echo "$as_me:$LINENO: result: $MIRRORS" >&5
8576 echo "${ECHO_T}$MIRRORS" >&6; }
8577
8578 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
8579 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
8580 " >&5
8581 echo "$as_me: error: --with-mirrors parameter invalid
8582 " >&2;}
8583 { (exit 1); exit 1; }; }
8584 fi;
8585
8586 if test x$MIRRORS = xinternal; then
8587
8588 cat >>confdefs.h <<\_ACEOF
8589 #define MIRRORED_INTERNAL 1
8590 _ACEOF
8591
8592 fi
8593
8594 ################################################################################
8595 { echo "$as_me:$LINENO: checking whether to enable readline" >&5
8596 echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
8597 # Check whether --enable-readline was given.
8598 if test "${enable_readline+set}" = set; then
8599 enableval=$enable_readline; READLINE=$enableval
8600 else
8601 READLINE=maybe
8602 fi
8603
8604 { echo "$as_me:$LINENO: result: $READLINE" >&5
8605 echo "${ECHO_T}$READLINE" >&6; }
8606
8607 ################################################################################
8608 { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8609 echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
8610 # Check whether --enable-realtime was given.
8611 if test "${enable_realtime+set}" = set; then
8612 enableval=$enable_realtime; REALTIME=$enableval
8613 fi
8614
8615 { echo "$as_me:$LINENO: result: $REALTIME" >&5
8616 echo "${ECHO_T}$REALTIME" >&6; }
8617
8618 ################################################################################
8619 { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8620 echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
8621
8622 # Check whether --with-clvmd was given.
8623 if test "${with_clvmd+set}" = set; then
8624 withval=$with_clvmd; CLVMD="$withval"
8625 else
8626 CLVMD="none"
8627 fi
8628
8629 if test x$CLVMD = xyes; then
8630 CLVMD=all
8631 fi
8632 { echo "$as_me:$LINENO: result: $CLVMD" >&5
8633 echo "${ECHO_T}$CLVMD" >&6; }
8634
8635 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8636 CLUSTER=internal
8637 fi
8638
8639 ################################################################################
8640 { echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8641 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
8642 # Check whether --enable-debug was given.
8643 if test "${enable_debug+set}" = set; then
8644 enableval=$enable_debug; DEBUG=$enableval
8645 else
8646 DEBUG=no
8647 fi
8648
8649 { echo "$as_me:$LINENO: result: $DEBUG" >&5
8650 echo "${ECHO_T}$DEBUG" >&6; }
8651
8652 if test x$DEBUG = xyes; then
8653 COPTIMISE_FLAG=
8654 else
8655 CSCOPE_CMD=
8656 fi
8657
8658 ################################################################################
8659 { echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8660 echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
8661
8662 # Check whether --with-optimisation was given.
8663 if test "${with_optimisation+set}" = set; then
8664 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8665 fi
8666
8667 { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8668 echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
8669
8670 ################################################################################
8671 { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8672 echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
8673 # Check whether --enable-profiling was given.
8674 if test "${enable_profiling+set}" = set; then
8675 enableval=$enable_profiling; PROFILING=$enableval
8676 else
8677 PROFILING=no
8678 fi
8679
8680 { echo "$as_me:$LINENO: result: $PROFILING" >&5
8681 echo "${ECHO_T}$PROFILING" >&6; }
8682
8683 if test "x$PROFILING" = xyes; then
8684 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8685 # Extract the first word of "lcov", so it can be a program name with args.
8686 set dummy lcov; ac_word=$2
8687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8689 if test "${ac_cv_path_LCOV+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 case $LCOV in
8693 [\\/]* | ?:[\\/]*)
8694 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8695 ;;
8696 *)
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8707 fi
8708 done
8709 done
8710 IFS=$as_save_IFS
8711
8712 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
8713 ;;
8714 esac
8715 fi
8716 LCOV=$ac_cv_path_LCOV
8717 if test -n "$LCOV"; then
8718 { echo "$as_me:$LINENO: result: $LCOV" >&5
8719 echo "${ECHO_T}$LCOV" >&6; }
8720 else
8721 { echo "$as_me:$LINENO: result: no" >&5
8722 echo "${ECHO_T}no" >&6; }
8723 fi
8724
8725
8726 # Extract the first word of "genhtml", so it can be a program name with args.
8727 set dummy genhtml; ac_word=$2
8728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8730 if test "${ac_cv_path_GENHTML+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733 case $GENHTML in
8734 [\\/]* | ?:[\\/]*)
8735 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8736 ;;
8737 *)
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8748 fi
8749 done
8750 done
8751 IFS=$as_save_IFS
8752
8753 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
8754 ;;
8755 esac
8756 fi
8757 GENHTML=$ac_cv_path_GENHTML
8758 if test -n "$GENHTML"; then
8759 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8760 echo "${ECHO_T}$GENHTML" >&6; }
8761 else
8762 { echo "$as_me:$LINENO: result: no" >&5
8763 echo "${ECHO_T}no" >&6; }
8764 fi
8765
8766
8767 if test "$LCOV" = no -o "$GENHTML" = no ; then
8768 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8769 echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
8770 { (exit 1); exit 1; }; }
8771 fi
8772 fi
8773
8774 ################################################################################
8775 { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8776 echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
8777 # Check whether --enable-devmapper was given.
8778 if test "${enable_devmapper+set}" = set; then
8779 enableval=$enable_devmapper; DEVMAPPER=$enableval
8780 fi
8781
8782 { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8783 echo "${ECHO_T}$DEVMAPPER" >&6; }
8784
8785 if test x$DEVMAPPER = xyes; then
8786
8787 cat >>confdefs.h <<\_ACEOF
8788 #define DEVMAPPER_SUPPORT 1
8789 _ACEOF
8790
8791 fi
8792
8793 ################################################################################
8794 { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8795 echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
8796 # Check whether --enable-o_direct was given.
8797 if test "${enable_o_direct+set}" = set; then
8798 enableval=$enable_o_direct; ODIRECT=$enableval
8799 fi
8800
8801 { echo "$as_me:$LINENO: result: $ODIRECT" >&5
8802 echo "${ECHO_T}$ODIRECT" >&6; }
8803
8804 if test x$ODIRECT = xyes; then
8805
8806 cat >>confdefs.h <<\_ACEOF
8807 #define O_DIRECT_SUPPORT 1
8808 _ACEOF
8809
8810 fi
8811
8812 ################################################################################
8813 { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8814 echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
8815 # Check whether --enable-cmdlib was given.
8816 if test "${enable_cmdlib+set}" = set; then
8817 enableval=$enable_cmdlib; CMDLIB=$enableval
8818 else
8819 CMDLIB=no
8820 fi
8821
8822 { echo "$as_me:$LINENO: result: $CMDLIB" >&5
8823 echo "${ECHO_T}$CMDLIB" >&6; }
8824
8825 test x$CMDLIB = xyes \
8826 && LVM2CMD_LIB=-llvm2cmd \
8827 || LVM2CMD_LIB=
8828
8829
8830 ################################################################################
8831 { echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8832 echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
8833 # Check whether --enable-fsadm was given.
8834 if test "${enable_fsadm+set}" = set; then
8835 enableval=$enable_fsadm; FSADM=$enableval
8836 fi
8837
8838 { echo "$as_me:$LINENO: result: $FSADM" >&5
8839 echo "${ECHO_T}$FSADM" >&6; }
8840
8841 ################################################################################
8842 { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8843 echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
8844 # Check whether --enable-dmeventd was given.
8845 if test "${enable_dmeventd+set}" = set; then
8846 enableval=$enable_dmeventd; DMEVENTD=$enableval
8847 fi
8848
8849 { echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8850 echo "${ECHO_T}$DMEVENTD" >&6; }
8851
8852 if test x$DMEVENTD = xyes; then
8853 if test x$MIRRORS != xinternal; then
8854 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
8855 " >&5
8856 echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
8857 " >&2;}
8858 { (exit 1); exit 1; }; }
8859 fi
8860 if test x$CMDLIB = xno; then
8861 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8862 " >&5
8863 echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8864 " >&2;}
8865 { (exit 1); exit 1; }; }
8866 fi
8867 fi
8868
8869 if test x$DMEVENTD = xyes; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define DMEVENTD 1
8873 _ACEOF
8874
8875 fi
8876 ################################################################################
8877 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8878 then exec_prefix="";
8879 fi;
8880
8881 ################################################################################
8882 if test x$READLINE != xno; then
8883 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8884 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
8885 if test "${ac_cv_search_tgetent+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888 ac_func_search_save_LIBS=$LIBS
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char tgetent ();
8903 int
8904 main ()
8905 {
8906 return tgetent ();
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 for ac_lib in '' ncurses curses termcap termlib; do
8912 if test -z "$ac_lib"; then
8913 ac_res="none required"
8914 else
8915 ac_res=-l$ac_lib
8916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8917 fi
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (ac_try="$ac_link"
8920 case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923 esac
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_link") 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8934 } && test -s conftest$ac_exeext &&
8935 $as_test_x conftest$ac_exeext; then
8936 ac_cv_search_tgetent=$ac_res
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941
8942 fi
8943
8944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8945 conftest$ac_exeext
8946 if test "${ac_cv_search_tgetent+set}" = set; then
8947 break
8948 fi
8949 done
8950 if test "${ac_cv_search_tgetent+set}" = set; then
8951 :
8952 else
8953 ac_cv_search_tgetent=no
8954 fi
8955 rm conftest.$ac_ext
8956 LIBS=$ac_func_search_save_LIBS
8957 fi
8958 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8959 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
8960 ac_res=$ac_cv_search_tgetent
8961 if test "$ac_res" != no; then
8962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8963 tg_found=yes
8964 else
8965 tg_found=no
8966 fi
8967
8968 test x$READLINE:$tg_found = xyes:no &&
8969 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
8970 --enable-readline option (which is enabled by default). Either disable readline
8971 support with --disable-readline or download and install termcap from:
8972 ftp.gnu.org/gnu/termcap
8973 Note: if you are using precompiled packages you will also need the development
8974 package as well (which may be called termcap-devel or something similar).
8975 Note: (n)curses also seems to work as a substitute for termcap. This was
8976 not found either - but you could try installing that as well.
8977 " >&5
8978 echo "$as_me: error: termcap could not be found which is required for the
8979 --enable-readline option (which is enabled by default). Either disable readline
8980 support with --disable-readline or download and install termcap from:
8981 ftp.gnu.org/gnu/termcap
8982 Note: if you are using precompiled packages you will also need the development
8983 package as well (which may be called termcap-devel or something similar).
8984 Note: (n)curses also seems to work as a substitute for termcap. This was
8985 not found either - but you could try installing that as well.
8986 " >&2;}
8987 { (exit 1); exit 1; }; }
8988 fi
8989
8990 ################################################################################
8991 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8992 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-ldl $LIBS"
8998 cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h. */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004
9005 /* Override any GCC internal prototype to avoid an error.
9006 Use char because int might match the return type of a GCC
9007 builtin and then its argument prototype would still apply. */
9008 #ifdef __cplusplus
9009 extern "C"
9010 #endif
9011 char dlopen ();
9012 int
9013 main ()
9014 {
9015 return dlopen ();
9016 ;
9017 return 0;
9018 }
9019 _ACEOF
9020 rm -f conftest.$ac_objext conftest$ac_exeext
9021 if { (ac_try="$ac_link"
9022 case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025 esac
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_link") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest$ac_exeext &&
9037 $as_test_x conftest$ac_exeext; then
9038 ac_cv_lib_dl_dlopen=yes
9039 else
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 ac_cv_lib_dl_dlopen=no
9044 fi
9045
9046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9047 conftest$ac_exeext conftest.$ac_ext
9048 LIBS=$ac_check_lib_save_LIBS
9049 fi
9050 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9051 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9052 if test $ac_cv_lib_dl_dlopen = yes; then
9053 HAVE_LIBDL=yes
9054 else
9055 HAVE_LIBDL=no
9056 fi
9057
9058
9059 if [ "x$HAVE_LIBDL" = xyes ]; then
9060
9061 cat >>confdefs.h <<\_ACEOF
9062 #define HAVE_LIBDL 1
9063 _ACEOF
9064
9065 LIBS="-ldl $LIBS"
9066 else
9067 HAVE_LIBDL=no
9068 fi
9069
9070 ################################################################################
9071 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9072 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9073 \) -a "x$STATIC_LINK" = xyes ];
9074 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
9075 " >&5
9076 echo "$as_me: error: Features cannot be 'shared' when building statically
9077 " >&2;}
9078 { (exit 1); exit 1; }; }
9079 fi
9080
9081 ################################################################################
9082 { echo "$as_me:$LINENO: checking whether to use static linking" >&5
9083 echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
9084 # Check whether --enable-static_link was given.
9085 if test "${enable_static_link+set}" = set; then
9086 enableval=$enable_static_link; STATIC_LINK=$enableval
9087 else
9088 STATIC_LINK=no
9089 fi
9090
9091 { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9092 echo "${ECHO_T}$STATIC_LINK" >&6; }
9093
9094 ################################################################################
9095 { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9096 echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
9097 # Check whether --enable-selinux was given.
9098 if test "${enable_selinux+set}" = set; then
9099 enableval=$enable_selinux; SELINUX=$enableval
9100 fi
9101
9102 { echo "$as_me:$LINENO: result: $SELINUX" >&5
9103 echo "${ECHO_T}$SELINUX" >&6; }
9104
9105 ################################################################################
9106 if test x$SELINUX = xyes; then
9107 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9108 echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
9109 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 ac_check_lib_save_LIBS=$LIBS
9113 LIBS="-lsepol $LIBS"
9114 cat >conftest.$ac_ext <<_ACEOF
9115 /* confdefs.h. */
9116 _ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9120
9121 /* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9124 #ifdef __cplusplus
9125 extern "C"
9126 #endif
9127 char sepol_check_context ();
9128 int
9129 main ()
9130 {
9131 return sepol_check_context ();
9132 ;
9133 return 0;
9134 }
9135 _ACEOF
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (ac_try="$ac_link"
9138 case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_link") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest$ac_exeext &&
9153 $as_test_x conftest$ac_exeext; then
9154 ac_cv_lib_sepol_sepol_check_context=yes
9155 else
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 ac_cv_lib_sepol_sepol_check_context=no
9160 fi
9161
9162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9163 conftest$ac_exeext conftest.$ac_ext
9164 LIBS=$ac_check_lib_save_LIBS
9165 fi
9166 { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9167 echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
9168 if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9169 HAVE_SEPOL=yes
9170 else
9171 HAVE_SEPOL=no
9172 fi
9173
9174
9175 if test x$HAVE_SEPOL = xyes; then
9176
9177 cat >>confdefs.h <<\_ACEOF
9178 #define HAVE_SEPOL 1
9179 _ACEOF
9180
9181 LIBS="-lsepol $LIBS"
9182 fi
9183
9184 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9185 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
9186 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189 ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lselinux $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h. */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 char is_selinux_enabled ();
9205 int
9206 main ()
9207 {
9208 return is_selinux_enabled ();
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9215 case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218 esac
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_link") 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } && {
9227 test -z "$ac_c_werror_flag" ||
9228 test ! -s conftest.err
9229 } && test -s conftest$ac_exeext &&
9230 $as_test_x conftest$ac_exeext; then
9231 ac_cv_lib_selinux_is_selinux_enabled=yes
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 ac_cv_lib_selinux_is_selinux_enabled=no
9237 fi
9238
9239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9240 conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9242 fi
9243 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9244 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9245 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9246 HAVE_SELINUX=yes
9247 else
9248 HAVE_SELINUX=no
9249 fi
9250
9251
9252 if test x$HAVE_SELINUX = xyes; then
9253
9254 cat >>confdefs.h <<\_ACEOF
9255 #define HAVE_SELINUX 1
9256 _ACEOF
9257
9258 LIBS="-lselinux $LIBS"
9259 else
9260 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9261 echo "$as_me: WARNING: Disabling selinux" >&2;}
9262 fi
9263
9264 # With --enable-static_link and selinux enabled, linking
9265 # fails on at least Debian unstable due to unsatisfied references
9266 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9267 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9268 lvm_saved_libs=$LIBS
9269 LIBS="$LIBS -static"
9270 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9271 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9272 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 ac_func_search_save_LIBS=$LIBS
9276 cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h. */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 char pthread_mutex_lock ();
9290 int
9291 main ()
9292 {
9293 return pthread_mutex_lock ();
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 for ac_lib in '' pthread; do
9299 if test -z "$ac_lib"; then
9300 ac_res="none required"
9301 else
9302 ac_res=-l$ac_lib
9303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9304 fi
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (ac_try="$ac_link"
9307 case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_link") 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest$ac_exeext &&
9322 $as_test_x conftest$ac_exeext; then
9323 ac_cv_search_pthread_mutex_lock=$ac_res
9324 else
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328
9329 fi
9330
9331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9332 conftest$ac_exeext
9333 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9334 break
9335 fi
9336 done
9337 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9338 :
9339 else
9340 ac_cv_search_pthread_mutex_lock=no
9341 fi
9342 rm conftest.$ac_ext
9343 LIBS=$ac_func_search_save_LIBS
9344 fi
9345 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9346 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9347 ac_res=$ac_cv_search_pthread_mutex_lock
9348 if test "$ac_res" != no; then
9349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9350 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9351 LIB_PTHREAD=-lpthread
9352 fi
9353
9354 LIBS=$lvm_saved_libs
9355 fi
9356 fi
9357
9358 ################################################################################
9359 if test x$REALTIME = xyes; then
9360 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9361 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9362 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lrt $LIBS"
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373
9374 /* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 char clock_gettime ();
9381 int
9382 main ()
9383 {
9384 return clock_gettime ();
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9391 case "(($ac_try" in
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_link") 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } && {
9403 test -z "$ac_c_werror_flag" ||
9404 test ! -s conftest.err
9405 } && test -s conftest$ac_exeext &&
9406 $as_test_x conftest$ac_exeext; then
9407 ac_cv_lib_rt_clock_gettime=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 ac_cv_lib_rt_clock_gettime=no
9413 fi
9414
9415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9416 conftest$ac_exeext conftest.$ac_ext
9417 LIBS=$ac_check_lib_save_LIBS
9418 fi
9419 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9420 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9421 if test $ac_cv_lib_rt_clock_gettime = yes; then
9422 HAVE_REALTIME=yes
9423 else
9424 HAVE_REALTIME=no
9425 fi
9426
9427
9428 if test x$HAVE_REALTIME = xyes; then
9429
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_REALTIME 1
9432 _ACEOF
9433
9434 LIBS="-lrt $LIBS"
9435 else
9436 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9437 echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9438 fi
9439 fi
9440
9441 ################################################################################
9442
9443 for ac_header in getopt.h
9444 do
9445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 fi
9452 ac_res=`eval echo '${'$as_ac_Header'}'`
9453 { echo "$as_me:$LINENO: result: $ac_res" >&5
9454 echo "${ECHO_T}$ac_res" >&6; }
9455 else
9456 # Is the header compilable?
9457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 #include <$ac_header>
9467 _ACEOF
9468 rm -f conftest.$ac_objext
9469 if { (ac_try="$ac_compile"
9470 case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9473 esac
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_compile") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest.$ac_objext; then
9485 ac_header_compiler=yes
9486 else
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9489
9490 ac_header_compiler=no
9491 fi
9492
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9495 echo "${ECHO_T}$ac_header_compiler" >&6; }
9496
9497 # Is the header present?
9498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h. */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 #include <$ac_header>
9507 _ACEOF
9508 if { (ac_try="$ac_cpp conftest.$ac_ext"
9509 case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } >/dev/null && {
9521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 }; then
9524 ac_header_preproc=yes
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_header_preproc=no
9530 fi
9531
9532 rm -f conftest.err conftest.$ac_ext
9533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534 echo "${ECHO_T}$ac_header_preproc" >&6; }
9535
9536 # So? What about this header?
9537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9538 yes:no: )
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9543 ac_header_preproc=yes
9544 ;;
9545 no:yes:* )
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9558
9559 ;;
9560 esac
9561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 eval "$as_ac_Header=\$ac_header_preproc"
9567 fi
9568 ac_res=`eval echo '${'$as_ac_Header'}'`
9569 { echo "$as_me:$LINENO: result: $ac_res" >&5
9570 echo "${ECHO_T}$ac_res" >&6; }
9571
9572 fi
9573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9576 _ACEOF
9577
9578 cat >>confdefs.h <<\_ACEOF
9579 #define HAVE_GETOPTLONG 1
9580 _ACEOF
9581
9582 fi
9583
9584 done
9585
9586
9587 ################################################################################
9588 if test x$READLINE != xno; then
9589 rl_found=yes
9590
9591 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9592 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
9593 if test "${ac_cv_lib_readline_readline+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 ac_check_lib_save_LIBS=$LIBS
9597 LIBS="-lreadline $LIBS"
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604
9605 /* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608 #ifdef __cplusplus
9609 extern "C"
9610 #endif
9611 char readline ();
9612 int
9613 main ()
9614 {
9615 return readline ();
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9622 case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_link") 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest$ac_exeext &&
9637 $as_test_x conftest$ac_exeext; then
9638 ac_cv_lib_readline_readline=yes
9639 else
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643 ac_cv_lib_readline_readline=no
9644 fi
9645
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9649 fi
9650 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9651 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
9652 if test $ac_cv_lib_readline_readline = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_LIBREADLINE 1
9655 _ACEOF
9656
9657 LIBS="-lreadline $LIBS"
9658
9659 else
9660 rl_found=no
9661 fi
9662
9663 test x$READLINE:$rl_found = xyes:no &&
9664 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
9665 --enable-readline option (which is enabled by default). Either disable readline
9666 support with --disable-readline or download and install readline from:
9667 ftp.gnu.org/gnu/readline
9668 Note: if you are using precompiled packages you will also need the development
9669 package as well (which may be called readline-devel or something similar).
9670 " >&5
9671 echo "$as_me: error: GNU Readline could not be found which is required for the
9672 --enable-readline option (which is enabled by default). Either disable readline
9673 support with --disable-readline or download and install readline from:
9674 ftp.gnu.org/gnu/readline
9675 Note: if you are using precompiled packages you will also need the development
9676 package as well (which may be called readline-devel or something similar).
9677 " >&2;}
9678 { (exit 1); exit 1; }; }
9679 if test $rl_found = yes; then
9680
9681 for ac_func in rl_completion_matches
9682 do
9683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697 #define $ac_func innocuous_$ac_func
9698
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char $ac_func (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9703
9704 #ifdef __STDC__
9705 # include <limits.h>
9706 #else
9707 # include <assert.h>
9708 #endif
9709
9710 #undef $ac_func
9711
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char $ac_func ();
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined __stub_$ac_func || defined __stub___$ac_func
9723 choke me
9724 #endif
9725
9726 int
9727 main ()
9728 {
9729 return $ac_func ();
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 eval "$as_ac_var=yes"
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 eval "$as_ac_var=no"
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 fi
9763 ac_res=`eval echo '${'$as_ac_var'}'`
9764 { echo "$as_me:$LINENO: result: $ac_res" >&5
9765 echo "${ECHO_T}$ac_res" >&6; }
9766 if test `eval echo '${'$as_ac_var'}'` = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9769 _ACEOF
9770
9771 fi
9772 done
9773
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define READLINE_SUPPORT 1
9777 _ACEOF
9778
9779 fi
9780 fi
9781
9782 ################################################################################
9783 { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9784 echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
9785 # Check whether --enable-nls was given.
9786 if test "${enable_nls+set}" = set; then
9787 enableval=$enable_nls; INTL=$enableval
9788 else
9789 INTL=no
9790 fi
9791
9792 { echo "$as_me:$LINENO: result: $INTL" >&5
9793 echo "${ECHO_T}$INTL" >&6; }
9794
9795 if test x$INTL = xyes; then
9796 INTL_PACKAGE="lvm2"
9797 # Extract the first word of "msgfmt", so it can be a program name with args.
9798 set dummy msgfmt; ac_word=$2
9799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9801 if test "${ac_cv_path_MSGFMT+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804 case $MSGFMT in
9805 [\\/]* | ?:[\\/]*)
9806 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9807 ;;
9808 *)
9809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 for as_dir in $PATH
9811 do
9812 IFS=$as_save_IFS
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9816 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 break 2
9819 fi
9820 done
9821 done
9822 IFS=$as_save_IFS
9823
9824 ;;
9825 esac
9826 fi
9827 MSGFMT=$ac_cv_path_MSGFMT
9828 if test -n "$MSGFMT"; then
9829 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9830 echo "${ECHO_T}$MSGFMT" >&6; }
9831 else
9832 { echo "$as_me:$LINENO: result: no" >&5
9833 echo "${ECHO_T}no" >&6; }
9834 fi
9835
9836
9837 if [ "x$MSGFMT" == x ];
9838 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
9839 " >&5
9840 echo "$as_me: error: msgfmt not found in path $PATH
9841 " >&2;}
9842 { (exit 1); exit 1; }; }
9843 fi;
9844
9845
9846 # Check whether --with-localedir was given.
9847 if test "${with_localedir+set}" = set; then
9848 withval=$with_localedir; LOCALEDIR="$withval"
9849 else
9850 LOCALEDIR='${prefix}/share/locale'
9851 fi
9852
9853 fi
9854
9855 ################################################################################
9856
9857 # Check whether --with-confdir was given.
9858 if test "${with_confdir+set}" = set; then
9859 withval=$with_confdir; CONFDIR="$withval"
9860 else
9861 CONFDIR='/etc'
9862 fi
9863
9864
9865
9866 # Check whether --with-staticdir was given.
9867 if test "${with_staticdir+set}" = set; then
9868 withval=$with_staticdir; STATICDIR="$withval"
9869 else
9870 STATICDIR='${exec_prefix}/sbin'
9871 fi
9872
9873
9874
9875 # Check whether --with-dmdir was given.
9876 if test "${with_dmdir+set}" = set; then
9877 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
9878 else
9879 DMDIR=
9880 fi
9881
9882
9883 # Convert a relative dir name to absolute.
9884 case $DMDIR in
9885 /*) ;;
9886 *) DMDIR="`pwd`/$DMDIR" ;;
9887 esac
9888
9889
9890 # Check whether --with-usrlibdir was given.
9891 if test "${with_usrlibdir+set}" = set; then
9892 withval=$with_usrlibdir; usrlibdir="$withval"
9893 else
9894 usrlibdir='${prefix}/lib'
9895 fi
9896
9897
9898
9899 # Check whether --with-usrsbindir was given.
9900 if test "${with_usrsbindir+set}" = set; then
9901 withval=$with_usrsbindir; usrsbindir="$withval"
9902 else
9903 usrsbindir='${prefix}/sbin'
9904 fi
9905
9906
9907 ################################################################################
9908 if test x$READLINE = xyes; then
9909
9910
9911 for ac_header in readline/readline.h readline/history.h
9912 do
9913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 fi
9920 ac_res=`eval echo '${'$as_ac_Header'}'`
9921 { echo "$as_me:$LINENO: result: $ac_res" >&5
9922 echo "${ECHO_T}$ac_res" >&6; }
9923 else
9924 # Is the header compilable?
9925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 $ac_includes_default
9934 #include <$ac_header>
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
9953 ac_header_compiler=yes
9954 else
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9957
9958 ac_header_compiler=no
9959 fi
9960
9961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9963 echo "${ECHO_T}$ac_header_compiler" >&6; }
9964
9965 # Is the header present?
9966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974 #include <$ac_header>
9975 _ACEOF
9976 if { (ac_try="$ac_cpp conftest.$ac_ext"
9977 case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } >/dev/null && {
9989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 }; then
9992 ac_header_preproc=yes
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_header_preproc=no
9998 fi
9999
10000 rm -f conftest.err conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10002 echo "${ECHO_T}$ac_header_preproc" >&6; }
10003
10004 # So? What about this header?
10005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10006 yes:no: )
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10011 ac_header_preproc=yes
10012 ;;
10013 no:yes:* )
10014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10026
10027 ;;
10028 esac
10029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 eval "$as_ac_Header=\$ac_header_preproc"
10035 fi
10036 ac_res=`eval echo '${'$as_ac_Header'}'`
10037 { echo "$as_me:$LINENO: result: $ac_res" >&5
10038 echo "${ECHO_T}$ac_res" >&6; }
10039
10040 fi
10041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10042 cat >>confdefs.h <<_ACEOF
10043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10044 _ACEOF
10045
10046 else
10047 { { echo "$as_me:$LINENO: error: bailing out" >&5
10048 echo "$as_me: error: bailing out" >&2;}
10049 { (exit 1); exit 1; }; }
10050 fi
10051
10052 done
10053
10054 fi
10055
10056 if test x$CLVMD != xnone; then
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067 for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h
10068 do
10069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 fi
10076 ac_res=`eval echo '${'$as_ac_Header'}'`
10077 { echo "$as_me:$LINENO: result: $ac_res" >&5
10078 echo "${ECHO_T}$ac_res" >&6; }
10079 else
10080 # Is the header compilable?
10081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 $ac_includes_default
10090 #include <$ac_header>
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_compile") 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.$ac_objext; then
10109 ac_header_compiler=yes
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_header_compiler=no
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10119 echo "${ECHO_T}$ac_header_compiler" >&6; }
10120
10121 # Is the header present?
10122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10124 cat >conftest.$ac_ext <<_ACEOF
10125 /* confdefs.h. */
10126 _ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10130 #include <$ac_header>
10131 _ACEOF
10132 if { (ac_try="$ac_cpp conftest.$ac_ext"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } >/dev/null && {
10145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 }; then
10148 ac_header_preproc=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 ac_header_preproc=no
10154 fi
10155
10156 rm -f conftest.err conftest.$ac_ext
10157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10158 echo "${ECHO_T}$ac_header_preproc" >&6; }
10159
10160 # So? What about this header?
10161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10162 yes:no: )
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10167 ac_header_preproc=yes
10168 ;;
10169 no:yes:* )
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10182
10183 ;;
10184 esac
10185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 eval "$as_ac_Header=\$ac_header_preproc"
10191 fi
10192 ac_res=`eval echo '${'$as_ac_Header'}'`
10193 { echo "$as_me:$LINENO: result: $ac_res" >&5
10194 echo "${ECHO_T}$ac_res" >&6; }
10195
10196 fi
10197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10200 _ACEOF
10201
10202 else
10203 { { echo "$as_me:$LINENO: error: bailing out" >&5
10204 echo "$as_me: error: bailing out" >&2;}
10205 { (exit 1); exit 1; }; }
10206 fi
10207
10208 done
10209
10210
10211
10212
10213
10214
10215 for ac_func in dup2 getmntent memmove select socket
10216 do
10217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231 #define $ac_func innocuous_$ac_func
10232
10233 /* System header to define __stub macros and hopefully few prototypes,
10234 which can conflict with char $ac_func (); below.
10235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236 <limits.h> exists even on freestanding compilers. */
10237
10238 #ifdef __STDC__
10239 # include <limits.h>
10240 #else
10241 # include <assert.h>
10242 #endif
10243
10244 #undef $ac_func
10245
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char $ac_func ();
10253 /* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256 #if defined __stub_$ac_func || defined __stub___$ac_func
10257 choke me
10258 #endif
10259
10260 int
10261 main ()
10262 {
10263 return $ac_func ();
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest$ac_exeext &&
10285 $as_test_x conftest$ac_exeext; then
10286 eval "$as_ac_var=yes"
10287 else
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10290
10291 eval "$as_ac_var=no"
10292 fi
10293
10294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10295 conftest$ac_exeext conftest.$ac_ext
10296 fi
10297 ac_res=`eval echo '${'$as_ac_var'}'`
10298 { echo "$as_me:$LINENO: result: $ac_res" >&5
10299 echo "${ECHO_T}$ac_res" >&6; }
10300 if test `eval echo '${'$as_ac_var'}'` = yes; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10303 _ACEOF
10304
10305 else
10306 { { echo "$as_me:$LINENO: error: bailing out" >&5
10307 echo "$as_me: error: bailing out" >&2;}
10308 { (exit 1); exit 1; }; }
10309 fi
10310 done
10311
10312 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10313 # -lseq on Dynix/PTX, -lgen on Unixware.
10314 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10315 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
10316 if test "${ac_cv_search_getmntent+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319 ac_func_search_save_LIBS=$LIBS
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 char getmntent ();
10334 int
10335 main ()
10336 {
10337 return getmntent ();
10338 ;
10339 return 0;
10340 }
10341 _ACEOF
10342 for ac_lib in '' sun seq gen; do
10343 if test -z "$ac_lib"; then
10344 ac_res="none required"
10345 else
10346 ac_res=-l$ac_lib
10347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10348 fi
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest$ac_exeext &&
10366 $as_test_x conftest$ac_exeext; then
10367 ac_cv_search_getmntent=$ac_res
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372
10373 fi
10374
10375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10376 conftest$ac_exeext
10377 if test "${ac_cv_search_getmntent+set}" = set; then
10378 break
10379 fi
10380 done
10381 if test "${ac_cv_search_getmntent+set}" = set; then
10382 :
10383 else
10384 ac_cv_search_getmntent=no
10385 fi
10386 rm conftest.$ac_ext
10387 LIBS=$ac_func_search_save_LIBS
10388 fi
10389 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10390 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
10391 ac_res=$ac_cv_search_getmntent
10392 if test "$ac_res" != no; then
10393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10394 ac_cv_func_getmntent=yes
10395
10396 cat >>confdefs.h <<\_ACEOF
10397 #define HAVE_GETMNTENT
10398 _ACEOF
10399
10400 else
10401 ac_cv_func_getmntent=no
10402 fi
10403
10404
10405 # AC_FUNC_REALLOC
10406
10407
10408 for ac_header in sys/select.h sys/socket.h
10409 do
10410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 fi
10417 ac_res=`eval echo '${'$as_ac_Header'}'`
10418 { echo "$as_me:$LINENO: result: $ac_res" >&5
10419 echo "${ECHO_T}$ac_res" >&6; }
10420 else
10421 # Is the header compilable?
10422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 $ac_includes_default
10431 #include <$ac_header>
10432 _ACEOF
10433 rm -f conftest.$ac_objext
10434 if { (ac_try="$ac_compile"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_compile") 2>conftest.er1
10441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest.$ac_objext; then
10450 ac_header_compiler=yes
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455 ac_header_compiler=no
10456 fi
10457
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10460 echo "${ECHO_T}$ac_header_compiler" >&6; }
10461
10462 # Is the header present?
10463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 #include <$ac_header>
10472 _ACEOF
10473 if { (ac_try="$ac_cpp conftest.$ac_ext"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } >/dev/null && {
10486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 }; then
10489 ac_header_preproc=yes
10490 else
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 ac_header_preproc=no
10495 fi
10496
10497 rm -f conftest.err conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499 echo "${ECHO_T}$ac_header_preproc" >&6; }
10500
10501 # So? What about this header?
10502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10503 yes:no: )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10508 ac_header_preproc=yes
10509 ;;
10510 no:yes:* )
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10523
10524 ;;
10525 esac
10526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531 eval "$as_ac_Header=\$ac_header_preproc"
10532 fi
10533 ac_res=`eval echo '${'$as_ac_Header'}'`
10534 { echo "$as_me:$LINENO: result: $ac_res" >&5
10535 echo "${ECHO_T}$ac_res" >&6; }
10536
10537 fi
10538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10539 cat >>confdefs.h <<_ACEOF
10540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10541 _ACEOF
10542
10543 fi
10544
10545 done
10546
10547 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
10548 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
10549 if test "${ac_cv_func_select_args+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10553 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10554 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 $ac_includes_default
10562 #ifdef HAVE_SYS_SELECT_H
10563 # include <sys/select.h>
10564 #endif
10565 #ifdef HAVE_SYS_SOCKET_H
10566 # include <sys/socket.h>
10567 #endif
10568
10569 int
10570 main ()
10571 {
10572 extern int select ($ac_arg1,
10573 $ac_arg234, $ac_arg234, $ac_arg234,
10574 $ac_arg5);
10575 ;
10576 return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (ac_try="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_compile") 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.$ac_objext; then
10596 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 done
10606 done
10607 done
10608 # Provide a safe default value.
10609 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10610
10611 fi
10612 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10613 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
10614 ac_save_IFS=$IFS; IFS=','
10615 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10616 IFS=$ac_save_IFS
10617 shift
10618
10619 cat >>confdefs.h <<_ACEOF
10620 #define SELECT_TYPE_ARG1 $1
10621 _ACEOF
10622
10623
10624 cat >>confdefs.h <<_ACEOF
10625 #define SELECT_TYPE_ARG234 ($2)
10626 _ACEOF
10627
10628
10629 cat >>confdefs.h <<_ACEOF
10630 #define SELECT_TYPE_ARG5 ($3)
10631 _ACEOF
10632
10633 rm -f conftest*
10634
10635 fi
10636
10637 if test x$CLUSTER != xnone; then
10638
10639
10640 for ac_header in sys/socket.h sys/un.h
10641 do
10642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 fi
10649 ac_res=`eval echo '${'$as_ac_Header'}'`
10650 { echo "$as_me:$LINENO: result: $ac_res" >&5
10651 echo "${ECHO_T}$ac_res" >&6; }
10652 else
10653 # Is the header compilable?
10654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 $ac_includes_default
10663 #include <$ac_header>
10664 _ACEOF
10665 rm -f conftest.$ac_objext
10666 if { (ac_try="$ac_compile"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_compile") 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest.$ac_objext; then
10682 ac_header_compiler=yes
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_header_compiler=no
10688 fi
10689
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10692 echo "${ECHO_T}$ac_header_compiler" >&6; }
10693
10694 # Is the header present?
10695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 #include <$ac_header>
10704 _ACEOF
10705 if { (ac_try="$ac_cpp conftest.$ac_ext"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null && {
10718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 }; then
10721 ac_header_preproc=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_header_preproc=no
10727 fi
10728
10729 rm -f conftest.err conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10731 echo "${ECHO_T}$ac_header_preproc" >&6; }
10732
10733 # So? What about this header?
10734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10735 yes:no: )
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10740 ac_header_preproc=yes
10741 ;;
10742 no:yes:* )
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10755
10756 ;;
10757 esac
10758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 eval "$as_ac_Header=\$ac_header_preproc"
10764 fi
10765 ac_res=`eval echo '${'$as_ac_Header'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767 echo "${ECHO_T}$ac_res" >&6; }
10768
10769 fi
10770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10771 cat >>confdefs.h <<_ACEOF
10772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10773 _ACEOF
10774
10775 else
10776 { { echo "$as_me:$LINENO: error: bailing out" >&5
10777 echo "$as_me: error: bailing out" >&2;}
10778 { (exit 1); exit 1; }; }
10779 fi
10780
10781 done
10782
10783
10784 for ac_func in socket
10785 do
10786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800 #define $ac_func innocuous_$ac_func
10801
10802 /* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char $ac_func (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10806
10807 #ifdef __STDC__
10808 # include <limits.h>
10809 #else
10810 # include <assert.h>
10811 #endif
10812
10813 #undef $ac_func
10814
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char $ac_func ();
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined __stub_$ac_func || defined __stub___$ac_func
10826 choke me
10827 #endif
10828
10829 int
10830 main ()
10831 {
10832 return $ac_func ();
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
10853 } && test -s conftest$ac_exeext &&
10854 $as_test_x conftest$ac_exeext; then
10855 eval "$as_ac_var=yes"
10856 else
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10859
10860 eval "$as_ac_var=no"
10861 fi
10862
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
10865 fi
10866 ac_res=`eval echo '${'$as_ac_var'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10869 if test `eval echo '${'$as_ac_var'}'` = yes; then
10870 cat >>confdefs.h <<_ACEOF
10871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10872 _ACEOF
10873
10874 else
10875 { { echo "$as_me:$LINENO: error: bailing out" >&5
10876 echo "$as_me: error: bailing out" >&2;}
10877 { (exit 1); exit 1; }; }
10878 fi
10879 done
10880
10881 fi
10882
10883 if test x$HAVE_LIBDL = xyes; then
10884
10885 for ac_header in dlfcn.h
10886 do
10887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 fi
10894 ac_res=`eval echo '${'$as_ac_Header'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896 echo "${ECHO_T}$ac_res" >&6; }
10897 else
10898 # Is the header compilable?
10899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h. */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 $ac_includes_default
10908 #include <$ac_header>
10909 _ACEOF
10910 rm -f conftest.$ac_objext
10911 if { (ac_try="$ac_compile"
10912 case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_compile") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest.$ac_objext; then
10927 ac_header_compiler=yes
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10931
10932 ac_header_compiler=no
10933 fi
10934
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10937 echo "${ECHO_T}$ac_header_compiler" >&6; }
10938
10939 # Is the header present?
10940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 #include <$ac_header>
10949 _ACEOF
10950 if { (ac_try="$ac_cpp conftest.$ac_ext"
10951 case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } >/dev/null && {
10963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 }; then
10966 ac_header_preproc=yes
10967 else
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_header_preproc=no
10972 fi
10973
10974 rm -f conftest.err conftest.$ac_ext
10975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10976 echo "${ECHO_T}$ac_header_preproc" >&6; }
10977
10978 # So? What about this header?
10979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 yes:no: )
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10985 ac_header_preproc=yes
10986 ;;
10987 no:yes:* )
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11000
11001 ;;
11002 esac
11003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008 eval "$as_ac_Header=\$ac_header_preproc"
11009 fi
11010 ac_res=`eval echo '${'$as_ac_Header'}'`
11011 { echo "$as_me:$LINENO: result: $ac_res" >&5
11012 echo "${ECHO_T}$ac_res" >&6; }
11013
11014 fi
11015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11016 cat >>confdefs.h <<_ACEOF
11017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11018 _ACEOF
11019
11020 else
11021 { { echo "$as_me:$LINENO: error: bailing out" >&5
11022 echo "$as_me: error: bailing out" >&2;}
11023 { (exit 1); exit 1; }; }
11024 fi
11025
11026 done
11027
11028 fi
11029
11030 if test x$INTL = xyes; then
11031
11032 for ac_header in libintl.h
11033 do
11034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 fi
11041 ac_res=`eval echo '${'$as_ac_Header'}'`
11042 { echo "$as_me:$LINENO: result: $ac_res" >&5
11043 echo "${ECHO_T}$ac_res" >&6; }
11044 else
11045 # Is the header compilable?
11046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 $ac_includes_default
11055 #include <$ac_header>
11056 _ACEOF
11057 rm -f conftest.$ac_objext
11058 if { (ac_try="$ac_compile"
11059 case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_compile") 2>conftest.er1
11065 ac_status=$?
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && {
11071 test -z "$ac_c_werror_flag" ||
11072 test ! -s conftest.err
11073 } && test -s conftest.$ac_objext; then
11074 ac_header_compiler=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 ac_header_compiler=no
11080 fi
11081
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11084 echo "${ECHO_T}$ac_header_compiler" >&6; }
11085
11086 # Is the header present?
11087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 #include <$ac_header>
11096 _ACEOF
11097 if { (ac_try="$ac_cpp conftest.$ac_ext"
11098 case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101 esac
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } >/dev/null && {
11110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 }; then
11113 ac_header_preproc=yes
11114 else
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 ac_header_preproc=no
11119 fi
11120
11121 rm -f conftest.err conftest.$ac_ext
11122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11123 echo "${ECHO_T}$ac_header_preproc" >&6; }
11124
11125 # So? What about this header?
11126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11127 yes:no: )
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11132 ac_header_preproc=yes
11133 ;;
11134 no:yes:* )
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11147
11148 ;;
11149 esac
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155 eval "$as_ac_Header=\$ac_header_preproc"
11156 fi
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160
11161 fi
11162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165 _ACEOF
11166
11167 else
11168 { { echo "$as_me:$LINENO: error: bailing out" >&5
11169 echo "$as_me: error: bailing out" >&2;}
11170 { (exit 1); exit 1; }; }
11171 fi
11172
11173 done
11174
11175 fi
11176
11177
11178 for ac_header in libdevmapper.h
11179 do
11180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 fi
11187 ac_res=`eval echo '${'$as_ac_Header'}'`
11188 { echo "$as_me:$LINENO: result: $ac_res" >&5
11189 echo "${ECHO_T}$ac_res" >&6; }
11190 else
11191 # Is the header compilable?
11192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 $ac_includes_default
11201 #include <$ac_header>
11202 _ACEOF
11203 rm -f conftest.$ac_objext
11204 if { (ac_try="$ac_compile"
11205 case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11220 ac_header_compiler=yes
11221 else
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225 ac_header_compiler=no
11226 fi
11227
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 echo "${ECHO_T}$ac_header_compiler" >&6; }
11231
11232 # Is the header present?
11233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h. */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <$ac_header>
11242 _ACEOF
11243 if { (ac_try="$ac_cpp conftest.$ac_ext"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev/null && {
11256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 }; then
11259 ac_header_preproc=yes
11260 else
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 ac_header_preproc=no
11265 fi
11266
11267 rm -f conftest.err conftest.$ac_ext
11268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269 echo "${ECHO_T}$ac_header_preproc" >&6; }
11270
11271 # So? What about this header?
11272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273 yes:no: )
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11278 ac_header_preproc=yes
11279 ;;
11280 no:yes:* )
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11293
11294 ;;
11295 esac
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 eval "$as_ac_Header=\$ac_header_preproc"
11302 fi
11303 ac_res=`eval echo '${'$as_ac_Header'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306
11307 fi
11308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11309 cat >>confdefs.h <<_ACEOF
11310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11311 _ACEOF
11312
11313 else
11314 { { echo "$as_me:$LINENO: error: bailing out" >&5
11315 echo "$as_me: error: bailing out" >&2;}
11316 { (exit 1); exit 1; }; }
11317 fi
11318
11319 done
11320
11321
11322 if test x$HAVE_SELINUX = xyes; then
11323
11324 for ac_header in selinux/selinux.h
11325 do
11326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 fi
11333 ac_res=`eval echo '${'$as_ac_Header'}'`
11334 { echo "$as_me:$LINENO: result: $ac_res" >&5
11335 echo "${ECHO_T}$ac_res" >&6; }
11336 else
11337 # Is the header compilable?
11338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h. */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 $ac_includes_default
11347 #include <$ac_header>
11348 _ACEOF
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.$ac_objext; then
11366 ac_header_compiler=yes
11367 else
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371 ac_header_compiler=no
11372 fi
11373
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376 echo "${ECHO_T}$ac_header_compiler" >&6; }
11377
11378 # Is the header present?
11379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h. */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 #include <$ac_header>
11388 _ACEOF
11389 if { (ac_try="$ac_cpp conftest.$ac_ext"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } >/dev/null && {
11402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 }; then
11405 ac_header_preproc=yes
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_header_preproc=no
11411 fi
11412
11413 rm -f conftest.err conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11415 echo "${ECHO_T}$ac_header_preproc" >&6; }
11416
11417 # So? What about this header?
11418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11419 yes:no: )
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11424 ac_header_preproc=yes
11425 ;;
11426 no:yes:* )
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11439
11440 ;;
11441 esac
11442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 eval "$as_ac_Header=\$ac_header_preproc"
11448 fi
11449 ac_res=`eval echo '${'$as_ac_Header'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11452
11453 fi
11454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11457 _ACEOF
11458
11459 else
11460 { { echo "$as_me:$LINENO: error: bailing out" >&5
11461 echo "$as_me: error: bailing out" >&2;}
11462 { (exit 1); exit 1; }; }
11463 fi
11464
11465 done
11466
11467 fi
11468
11469 ################################################################################
11470 # Extract the first word of "modprobe", so it can be a program name with args.
11471 set dummy modprobe; ac_word=$2
11472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11474 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477 case $MODPROBE_CMD in
11478 [\\/]* | ?:[\\/]*)
11479 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11480 ;;
11481 *)
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11484 do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11489 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 break 2
11492 fi
11493 done
11494 done
11495 IFS=$as_save_IFS
11496
11497 ;;
11498 esac
11499 fi
11500 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
11501 if test -n "$MODPROBE_CMD"; then
11502 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11503 echo "${ECHO_T}$MODPROBE_CMD" >&6; }
11504 else
11505 { echo "$as_me:$LINENO: result: no" >&5
11506 echo "${ECHO_T}no" >&6; }
11507 fi
11508
11509
11510
11511 if test x$MODPROBE_CMD != x; then
11512
11513 cat >>confdefs.h <<_ACEOF
11514 #define MODPROBE_CMD "$MODPROBE_CMD"
11515 _ACEOF
11516
11517 fi
11518
11519 ################################################################################
11520 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
11521
11522 ################################################################################
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537 # FIXME: rename to LVM_USE_DMEVENTD
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559 # FIXME: rename to LVM_CONF_DIR
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574 ################################################################################
11575 ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h"
11576
11577 cat >confcache <<\_ACEOF
11578 # This file is a shell script that caches the results of configure
11579 # tests run on this system so they can be shared between configure
11580 # scripts and configure runs, see configure's option --config-cache.
11581 # It is not useful on other systems. If it contains results you don't
11582 # want to keep, you may remove or edit it.
11583 #
11584 # config.status only pays attention to the cache file if you give it
11585 # the --recheck option to rerun configure.
11586 #
11587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11589 # following values.
11590
11591 _ACEOF
11592
11593 # The following way of writing the cache mishandles newlines in values,
11594 # but we know of no workaround that is simple, portable, and efficient.
11595 # So, we kill variables containing newlines.
11596 # Ultrix sh set writes to stderr and can't be redirected directly,
11597 # and sets the high bit in the cache file unless we assign to the vars.
11598 (
11599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11600 eval ac_val=\$$ac_var
11601 case $ac_val in #(
11602 *${as_nl}*)
11603 case $ac_var in #(
11604 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11605 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11606 esac
11607 case $ac_var in #(
11608 _ | IFS | as_nl) ;; #(
11609 *) $as_unset $ac_var ;;
11610 esac ;;
11611 esac
11612 done
11613
11614 (set) 2>&1 |
11615 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11616 *${as_nl}ac_space=\ *)
11617 # `set' does not quote correctly, so add quotes (double-quote
11618 # substitution turns \\\\ into \\, and sed turns \\ into \).
11619 sed -n \
11620 "s/'/'\\\\''/g;
11621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11622 ;; #(
11623 *)
11624 # `set' quotes correctly as required by POSIX, so do not add quotes.
11625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11626 ;;
11627 esac |
11628 sort
11629 ) |
11630 sed '
11631 /^ac_cv_env_/b end
11632 t clear
11633 :clear
11634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11635 t end
11636 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11637 :end' >>confcache
11638 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11639 if test -w "$cache_file"; then
11640 test "x$cache_file" != "x/dev/null" &&
11641 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11642 echo "$as_me: updating cache $cache_file" >&6;}
11643 cat confcache >$cache_file
11644 else
11645 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11646 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11647 fi
11648 fi
11649 rm -f confcache
11650
11651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11652 # Let make expand exec_prefix.
11653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11654
11655 DEFS=-DHAVE_CONFIG_H
11656
11657 ac_libobjs=
11658 ac_ltlibobjs=
11659 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11660 # 1. Remove the extension, and $U if already installed.
11661 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11662 ac_i=`echo "$ac_i" | sed "$ac_script"`
11663 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11664 # will be set to the directory where LIBOBJS objects are built.
11665 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11666 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11667 done
11668 LIBOBJS=$ac_libobjs
11669
11670 LTLIBOBJS=$ac_ltlibobjs
11671
11672
11673
11674 : ${CONFIG_STATUS=./config.status}
11675 ac_clean_files_save=$ac_clean_files
11676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11677 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11678 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11679 cat >$CONFIG_STATUS <<_ACEOF
11680 #! $SHELL
11681 # Generated by $as_me.
11682 # Run this file to recreate the current configuration.
11683 # Compiler output produced by configure, useful for debugging
11684 # configure, is in config.log if it exists.
11685
11686 debug=false
11687 ac_cs_recheck=false
11688 ac_cs_silent=false
11689 SHELL=\${CONFIG_SHELL-$SHELL}
11690 _ACEOF
11691
11692 cat >>$CONFIG_STATUS <<\_ACEOF
11693 ## --------------------- ##
11694 ## M4sh Initialization. ##
11695 ## --------------------- ##
11696
11697 # Be more Bourne compatible
11698 DUALCASE=1; export DUALCASE # for MKS sh
11699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11700 emulate sh
11701 NULLCMD=:
11702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11703 # is contrary to our usage. Disable this feature.
11704 alias -g '${1+"$@"}'='"$@"'
11705 setopt NO_GLOB_SUBST
11706 else
11707 case `(set -o) 2>/dev/null` in
11708 *posix*) set -o posix ;;
11709 esac
11710
11711 fi
11712
11713
11714
11715
11716 # PATH needs CR
11717 # Avoid depending upon Character Ranges.
11718 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11719 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11720 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11721 as_cr_digits='0123456789'
11722 as_cr_alnum=$as_cr_Letters$as_cr_digits
11723
11724 # The user is always right.
11725 if test "${PATH_SEPARATOR+set}" != set; then
11726 echo "#! /bin/sh" >conf$$.sh
11727 echo "exit 0" >>conf$$.sh
11728 chmod +x conf$$.sh
11729 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11730 PATH_SEPARATOR=';'
11731 else
11732 PATH_SEPARATOR=:
11733 fi
11734 rm -f conf$$.sh
11735 fi
11736
11737 # Support unset when possible.
11738 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11739 as_unset=unset
11740 else
11741 as_unset=false
11742 fi
11743
11744
11745 # IFS
11746 # We need space, tab and new line, in precisely that order. Quoting is
11747 # there to prevent editors from complaining about space-tab.
11748 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11749 # splitting by setting IFS to empty value.)
11750 as_nl='
11751 '
11752 IFS=" "" $as_nl"
11753
11754 # Find who we are. Look in the path if we contain no directory separator.
11755 case $0 in
11756 *[\\/]* ) as_myself=$0 ;;
11757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11759 do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11763 done
11764 IFS=$as_save_IFS
11765
11766 ;;
11767 esac
11768 # We did not find ourselves, most probably we were run as `sh COMMAND'
11769 # in which case we are not to be found in the path.
11770 if test "x$as_myself" = x; then
11771 as_myself=$0
11772 fi
11773 if test ! -f "$as_myself"; then
11774 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11775 { (exit 1); exit 1; }
11776 fi
11777
11778 # Work around bugs in pre-3.0 UWIN ksh.
11779 for as_var in ENV MAIL MAILPATH
11780 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11781 done
11782 PS1='$ '
11783 PS2='> '
11784 PS4='+ '
11785
11786 # NLS nuisances.
11787 for as_var in \
11788 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11789 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11790 LC_TELEPHONE LC_TIME
11791 do
11792 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11793 eval $as_var=C; export $as_var
11794 else
11795 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11796 fi
11797 done
11798
11799 # Required to use basename.
11800 if expr a : '\(a\)' >/dev/null 2>&1 &&
11801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11802 as_expr=expr
11803 else
11804 as_expr=false
11805 fi
11806
11807 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11808 as_basename=basename
11809 else
11810 as_basename=false
11811 fi
11812
11813
11814 # Name of the executable.
11815 as_me=`$as_basename -- "$0" ||
11816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11817 X"$0" : 'X\(//\)$' \| \
11818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11819 echo X/"$0" |
11820 sed '/^.*\/\([^/][^/]*\)\/*$/{
11821 s//\1/
11822 q
11823 }
11824 /^X\/\(\/\/\)$/{
11825 s//\1/
11826 q
11827 }
11828 /^X\/\(\/\).*/{
11829 s//\1/
11830 q
11831 }
11832 s/.*/./; q'`
11833
11834 # CDPATH.
11835 $as_unset CDPATH
11836
11837
11838
11839 as_lineno_1=$LINENO
11840 as_lineno_2=$LINENO
11841 test "x$as_lineno_1" != "x$as_lineno_2" &&
11842 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11843
11844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11845 # uniformly replaced by the line number. The first 'sed' inserts a
11846 # line-number line after each line using $LINENO; the second 'sed'
11847 # does the real work. The second script uses 'N' to pair each
11848 # line-number line with the line containing $LINENO, and appends
11849 # trailing '-' during substitution so that $LINENO is not a special
11850 # case at line end.
11851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11852 # scripts with optimization help from Paolo Bonzini. Blame Lee
11853 # E. McMahon (1931-1989) for sed's syntax. :-)
11854 sed -n '
11855 p
11856 /[$]LINENO/=
11857 ' <$as_myself |
11858 sed '
11859 s/[$]LINENO.*/&-/
11860 t lineno
11861 b
11862 :lineno
11863 N
11864 :loop
11865 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11866 t loop
11867 s/-\n.*//
11868 ' >$as_me.lineno &&
11869 chmod +x "$as_me.lineno" ||
11870 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11871 { (exit 1); exit 1; }; }
11872
11873 # Don't try to exec as it changes $[0], causing all sort of problems
11874 # (the dirname of $[0] is not the place where we might find the
11875 # original and so on. Autoconf is especially sensitive to this).
11876 . "./$as_me.lineno"
11877 # Exit status is that of the last command.
11878 exit
11879 }
11880
11881
11882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11883 as_dirname=dirname
11884 else
11885 as_dirname=false
11886 fi
11887
11888 ECHO_C= ECHO_N= ECHO_T=
11889 case `echo -n x` in
11890 -n*)
11891 case `echo 'x\c'` in
11892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11893 *) ECHO_C='\c';;
11894 esac;;
11895 *)
11896 ECHO_N='-n';;
11897 esac
11898
11899 if expr a : '\(a\)' >/dev/null 2>&1 &&
11900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11901 as_expr=expr
11902 else
11903 as_expr=false
11904 fi
11905
11906 rm -f conf$$ conf$$.exe conf$$.file
11907 if test -d conf$$.dir; then
11908 rm -f conf$$.dir/conf$$.file
11909 else
11910 rm -f conf$$.dir
11911 mkdir conf$$.dir
11912 fi
11913 echo >conf$$.file
11914 if ln -s conf$$.file conf$$ 2>/dev/null; then
11915 as_ln_s='ln -s'
11916 # ... but there are two gotchas:
11917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11919 # In both cases, we have to default to `cp -p'.
11920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11921 as_ln_s='cp -p'
11922 elif ln conf$$.file conf$$ 2>/dev/null; then
11923 as_ln_s=ln
11924 else
11925 as_ln_s='cp -p'
11926 fi
11927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11928 rmdir conf$$.dir 2>/dev/null
11929
11930 if mkdir -p . 2>/dev/null; then
11931 as_mkdir_p=:
11932 else
11933 test -d ./-p && rmdir ./-p
11934 as_mkdir_p=false
11935 fi
11936
11937 if test -x / >/dev/null 2>&1; then
11938 as_test_x='test -x'
11939 else
11940 if ls -dL / >/dev/null 2>&1; then
11941 as_ls_L_option=L
11942 else
11943 as_ls_L_option=
11944 fi
11945 as_test_x='
11946 eval sh -c '\''
11947 if test -d "$1"; then
11948 test -d "$1/.";
11949 else
11950 case $1 in
11951 -*)set "./$1";;
11952 esac;
11953 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11954 ???[sx]*):;;*)false;;esac;fi
11955 '\'' sh
11956 '
11957 fi
11958 as_executable_p=$as_test_x
11959
11960 # Sed expression to map a string onto a valid CPP name.
11961 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11962
11963 # Sed expression to map a string onto a valid variable name.
11964 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11965
11966
11967 exec 6>&1
11968
11969 # Save the log message, to keep $[0] and so on meaningful, and to
11970 # report actual input values of CONFIG_FILES etc. instead of their
11971 # values after options handling.
11972 ac_log="
11973 This file was extended by $as_me, which was
11974 generated by GNU Autoconf 2.61. Invocation command line was
11975
11976 CONFIG_FILES = $CONFIG_FILES
11977 CONFIG_HEADERS = $CONFIG_HEADERS
11978 CONFIG_LINKS = $CONFIG_LINKS
11979 CONFIG_COMMANDS = $CONFIG_COMMANDS
11980 $ $0 $@
11981
11982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11983 "
11984
11985 _ACEOF
11986
11987 cat >>$CONFIG_STATUS <<_ACEOF
11988 # Files that config.status was made for.
11989 config_files="$ac_config_files"
11990 config_headers="$ac_config_headers"
11991
11992 _ACEOF
11993
11994 cat >>$CONFIG_STATUS <<\_ACEOF
11995 ac_cs_usage="\
11996 \`$as_me' instantiates files from templates according to the
11997 current configuration.
11998
11999 Usage: $0 [OPTIONS] [FILE]...
12000
12001 -h, --help print this help, then exit
12002 -V, --version print version number and configuration settings, then exit
12003 -q, --quiet do not print progress messages
12004 -d, --debug don't remove temporary files
12005 --recheck update $as_me by reconfiguring in the same conditions
12006 --file=FILE[:TEMPLATE]
12007 instantiate the configuration file FILE
12008 --header=FILE[:TEMPLATE]
12009 instantiate the configuration header FILE
12010
12011 Configuration files:
12012 $config_files
12013
12014 Configuration headers:
12015 $config_headers
12016
12017 Report bugs to <bug-autoconf@gnu.org>."
12018
12019 _ACEOF
12020 cat >>$CONFIG_STATUS <<_ACEOF
12021 ac_cs_version="\\
12022 config.status
12023 configured by $0, generated by GNU Autoconf 2.61,
12024 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12025
12026 Copyright (C) 2006 Free Software Foundation, Inc.
12027 This config.status script is free software; the Free Software Foundation
12028 gives unlimited permission to copy, distribute and modify it."
12029
12030 ac_pwd='$ac_pwd'
12031 srcdir='$srcdir'
12032 INSTALL='$INSTALL'
12033 MKDIR_P='$MKDIR_P'
12034 _ACEOF
12035
12036 cat >>$CONFIG_STATUS <<\_ACEOF
12037 # If no file are specified by the user, then we need to provide default
12038 # value. By we need to know if files were specified by the user.
12039 ac_need_defaults=:
12040 while test $# != 0
12041 do
12042 case $1 in
12043 --*=*)
12044 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12045 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12046 ac_shift=:
12047 ;;
12048 *)
12049 ac_option=$1
12050 ac_optarg=$2
12051 ac_shift=shift
12052 ;;
12053 esac
12054
12055 case $ac_option in
12056 # Handling of the options.
12057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12058 ac_cs_recheck=: ;;
12059 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12060 echo "$ac_cs_version"; exit ;;
12061 --debug | --debu | --deb | --de | --d | -d )
12062 debug=: ;;
12063 --file | --fil | --fi | --f )
12064 $ac_shift
12065 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12066 ac_need_defaults=false;;
12067 --header | --heade | --head | --hea )
12068 $ac_shift
12069 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12070 ac_need_defaults=false;;
12071 --he | --h)
12072 # Conflict between --help and --header
12073 { echo "$as_me: error: ambiguous option: $1
12074 Try \`$0 --help' for more information." >&2
12075 { (exit 1); exit 1; }; };;
12076 --help | --hel | -h )
12077 echo "$ac_cs_usage"; exit ;;
12078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12080 ac_cs_silent=: ;;
12081
12082 # This is an error.
12083 -*) { echo "$as_me: error: unrecognized option: $1
12084 Try \`$0 --help' for more information." >&2
12085 { (exit 1); exit 1; }; } ;;
12086
12087 *) ac_config_targets="$ac_config_targets $1"
12088 ac_need_defaults=false ;;
12089
12090 esac
12091 shift
12092 done
12093
12094 ac_configure_extra_args=
12095
12096 if $ac_cs_silent; then
12097 exec 6>/dev/null
12098 ac_configure_extra_args="$ac_configure_extra_args --silent"
12099 fi
12100
12101 _ACEOF
12102 cat >>$CONFIG_STATUS <<_ACEOF
12103 if \$ac_cs_recheck; then
12104 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12105 CONFIG_SHELL=$SHELL
12106 export CONFIG_SHELL
12107 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12108 fi
12109
12110 _ACEOF
12111 cat >>$CONFIG_STATUS <<\_ACEOF
12112 exec 5>>config.log
12113 {
12114 echo
12115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12116 ## Running $as_me. ##
12117 _ASBOX
12118 echo "$ac_log"
12119 } >&5
12120
12121 _ACEOF
12122 cat >>$CONFIG_STATUS <<_ACEOF
12123 _ACEOF
12124
12125 cat >>$CONFIG_STATUS <<\_ACEOF
12126
12127 # Handling of arguments.
12128 for ac_config_target in $ac_config_targets
12129 do
12130 case $ac_config_target in
12131 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12132 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12133 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12134 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12135 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12136 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12137 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12138 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
12139 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12140 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
12141 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
12142 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
12143 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12144 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12145 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12146 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12147 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12148 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
12149 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12150 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12151 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12152 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
12153
12154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12156 { (exit 1); exit 1; }; };;
12157 esac
12158 done
12159
12160
12161 # If the user did not use the arguments to specify the items to instantiate,
12162 # then the envvar interface is used. Set only those that are not.
12163 # We use the long form for the default assignment because of an extremely
12164 # bizarre bug on SunOS 4.1.3.
12165 if $ac_need_defaults; then
12166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12168 fi
12169
12170 # Have a temporary directory for convenience. Make it in the build tree
12171 # simply because there is no reason against having it here, and in addition,
12172 # creating and moving files from /tmp can sometimes cause problems.
12173 # Hook for its removal unless debugging.
12174 # Note that there is a small window in which the directory will not be cleaned:
12175 # after its creation but before its name has been assigned to `$tmp'.
12176 $debug ||
12177 {
12178 tmp=
12179 trap 'exit_status=$?
12180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12181 ' 0
12182 trap '{ (exit 1); exit 1; }' 1 2 13 15
12183 }
12184 # Create a (secure) tmp directory for tmp files.
12185
12186 {
12187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12188 test -n "$tmp" && test -d "$tmp"
12189 } ||
12190 {
12191 tmp=./conf$$-$RANDOM
12192 (umask 077 && mkdir "$tmp")
12193 } ||
12194 {
12195 echo "$me: cannot create a temporary directory in ." >&2
12196 { (exit 1); exit 1; }
12197 }
12198
12199 #
12200 # Set up the sed scripts for CONFIG_FILES section.
12201 #
12202
12203 # No need to generate the scripts if there are no CONFIG_FILES.
12204 # This happens for instance when ./config.status config.h
12205 if test -n "$CONFIG_FILES"; then
12206
12207 _ACEOF
12208
12209
12210
12211 ac_delim='%!_!# '
12212 for ac_last_try in false false false false false :; do
12213 cat >conf$$subs.sed <<_ACEOF
12214 SHELL!$SHELL$ac_delim
12215 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12216 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12217 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12218 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12219 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12220 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12221 exec_prefix!$exec_prefix$ac_delim
12222 prefix!$prefix$ac_delim
12223 program_transform_name!$program_transform_name$ac_delim
12224 bindir!$bindir$ac_delim
12225 sbindir!$sbindir$ac_delim
12226 libexecdir!$libexecdir$ac_delim
12227 datarootdir!$datarootdir$ac_delim
12228 datadir!$datadir$ac_delim
12229 sysconfdir!$sysconfdir$ac_delim
12230 sharedstatedir!$sharedstatedir$ac_delim
12231 localstatedir!$localstatedir$ac_delim
12232 includedir!$includedir$ac_delim
12233 oldincludedir!$oldincludedir$ac_delim
12234 docdir!$docdir$ac_delim
12235 infodir!$infodir$ac_delim
12236 htmldir!$htmldir$ac_delim
12237 dvidir!$dvidir$ac_delim
12238 pdfdir!$pdfdir$ac_delim
12239 psdir!$psdir$ac_delim
12240 libdir!$libdir$ac_delim
12241 localedir!$localedir$ac_delim
12242 mandir!$mandir$ac_delim
12243 DEFS!$DEFS$ac_delim
12244 ECHO_C!$ECHO_C$ac_delim
12245 ECHO_N!$ECHO_N$ac_delim
12246 ECHO_T!$ECHO_T$ac_delim
12247 LIBS!$LIBS$ac_delim
12248 build_alias!$build_alias$ac_delim
12249 host_alias!$host_alias$ac_delim
12250 target_alias!$target_alias$ac_delim
12251 build!$build$ac_delim
12252 build_cpu!$build_cpu$ac_delim
12253 build_vendor!$build_vendor$ac_delim
12254 build_os!$build_os$ac_delim
12255 host!$host$ac_delim
12256 host_cpu!$host_cpu$ac_delim
12257 host_vendor!$host_vendor$ac_delim
12258 host_os!$host_os$ac_delim
12259 target!$target$ac_delim
12260 target_cpu!$target_cpu$ac_delim
12261 target_vendor!$target_vendor$ac_delim
12262 target_os!$target_os$ac_delim
12263 SED!$SED$ac_delim
12264 AWK!$AWK$ac_delim
12265 CC!$CC$ac_delim
12266 CFLAGS!$CFLAGS$ac_delim
12267 LDFLAGS!$LDFLAGS$ac_delim
12268 CPPFLAGS!$CPPFLAGS$ac_delim
12269 ac_ct_CC!$ac_ct_CC$ac_delim
12270 EXEEXT!$EXEEXT$ac_delim
12271 OBJEXT!$OBJEXT$ac_delim
12272 CPP!$CPP$ac_delim
12273 GREP!$GREP$ac_delim
12274 EGREP!$EGREP$ac_delim
12275 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12276 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12277 INSTALL_DATA!$INSTALL_DATA$ac_delim
12278 LN_S!$LN_S$ac_delim
12279 SET_MAKE!$SET_MAKE$ac_delim
12280 RANLIB!$RANLIB$ac_delim
12281 CFLOW_CMD!$CFLOW_CMD$ac_delim
12282 CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12283 ALLOCA!$ALLOCA$ac_delim
12284 LIBOBJS!$LIBOBJS$ac_delim
12285 POW_LIB!$POW_LIB$ac_delim
12286 LCOV!$LCOV$ac_delim
12287 GENHTML!$GENHTML$ac_delim
12288 LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12289 MSGFMT!$MSGFMT$ac_delim
12290 MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12291 BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12292 CLDFLAGS!$CLDFLAGS$ac_delim
12293 CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12294 CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12295 CLUSTER!$CLUSTER$ac_delim
12296 CLVMD!$CLVMD$ac_delim
12297 CMDLIB!$CMDLIB$ac_delim
12298 COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12299 DEBUG!$DEBUG$ac_delim
12300 DEVMAPPER!$DEVMAPPER$ac_delim
12301 DMDIR!$DMDIR$ac_delim
12302 DMEVENTD!$DMEVENTD$ac_delim
12303 DM_COMPAT!$DM_COMPAT$ac_delim
12304 DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12305 DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12306 DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12307 DM_IOCTLS!$DM_IOCTLS$ac_delim
12308 DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12309 FSADM!$FSADM$ac_delim
12310 GROUP!$GROUP$ac_delim
12311 _ACEOF
12312
12313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12314 break
12315 elif $ac_last_try; then
12316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12317 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12318 { (exit 1); exit 1; }; }
12319 else
12320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12321 fi
12322 done
12323
12324 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12325 if test -n "$ac_eof"; then
12326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12327 ac_eof=`expr $ac_eof + 1`
12328 fi
12329
12330 cat >>$CONFIG_STATUS <<_ACEOF
12331 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12333 _ACEOF
12334 sed '
12335 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12336 s/^/s,@/; s/!/@,|#_!!_#|/
12337 :n
12338 t n
12339 s/'"$ac_delim"'$/,g/; t
12340 s/$/\\/; p
12341 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12342 ' >>$CONFIG_STATUS <conf$$subs.sed
12343 rm -f conf$$subs.sed
12344 cat >>$CONFIG_STATUS <<_ACEOF
12345 CEOF$ac_eof
12346 _ACEOF
12347
12348
12349 ac_delim='%!_!# '
12350 for ac_last_try in false false false false false :; do
12351 cat >conf$$subs.sed <<_ACEOF
12352 HAVE_LIBDL!$HAVE_LIBDL$ac_delim
12353 HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12354 HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12355 INTL!$INTL$ac_delim
12356 INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12357 JOBS!$JOBS$ac_delim
12358 LDDEPS!$LDDEPS$ac_delim
12359 LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12360 LOCALEDIR!$LOCALEDIR$ac_delim
12361 LVM1!$LVM1$ac_delim
12362 LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12363 CONFDIR!$CONFDIR$ac_delim
12364 LVM_VERSION!$LVM_VERSION$ac_delim
12365 MIRRORS!$MIRRORS$ac_delim
12366 OWNER!$OWNER$ac_delim
12367 PKGCONFIG!$PKGCONFIG$ac_delim
12368 POOL!$POOL$ac_delim
12369 SNAPSHOTS!$SNAPSHOTS$ac_delim
12370 STATICDIR!$STATICDIR$ac_delim
12371 STATIC_LINK!$STATIC_LINK$ac_delim
12372 LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12373 usrlibdir!$usrlibdir$ac_delim
12374 usrsbindir!$usrsbindir$ac_delim
12375 LTLIBOBJS!$LTLIBOBJS$ac_delim
12376 _ACEOF
12377
12378 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
12379 break
12380 elif $ac_last_try; then
12381 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12382 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12383 { (exit 1); exit 1; }; }
12384 else
12385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12386 fi
12387 done
12388
12389 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12390 if test -n "$ac_eof"; then
12391 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12392 ac_eof=`expr $ac_eof + 1`
12393 fi
12394
12395 cat >>$CONFIG_STATUS <<_ACEOF
12396 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12398 _ACEOF
12399 sed '
12400 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12401 s/^/s,@/; s/!/@,|#_!!_#|/
12402 :n
12403 t n
12404 s/'"$ac_delim"'$/,g/; t
12405 s/$/\\/; p
12406 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12407 ' >>$CONFIG_STATUS <conf$$subs.sed
12408 rm -f conf$$subs.sed
12409 cat >>$CONFIG_STATUS <<_ACEOF
12410 :end
12411 s/|#_!!_#|//g
12412 CEOF$ac_eof
12413 _ACEOF
12414
12415
12416 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12417 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12418 # trailing colons and then remove the whole line if VPATH becomes empty
12419 # (actually we leave an empty line to preserve line numbers).
12420 if test "x$srcdir" = x.; then
12421 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12422 s/:*\$(srcdir):*/:/
12423 s/:*\${srcdir}:*/:/
12424 s/:*@srcdir@:*/:/
12425 s/^\([^=]*=[ ]*\):*/\1/
12426 s/:*$//
12427 s/^[^=]*=[ ]*$//
12428 }'
12429 fi
12430
12431 cat >>$CONFIG_STATUS <<\_ACEOF
12432 fi # test -n "$CONFIG_FILES"
12433
12434
12435 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12436 do
12437 case $ac_tag in
12438 :[FHLC]) ac_mode=$ac_tag; continue;;
12439 esac
12440 case $ac_mode$ac_tag in
12441 :[FHL]*:*);;
12442 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12443 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12444 { (exit 1); exit 1; }; };;
12445 :[FH]-) ac_tag=-:-;;
12446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12447 esac
12448 ac_save_IFS=$IFS
12449 IFS=:
12450 set x $ac_tag
12451 IFS=$ac_save_IFS
12452 shift
12453 ac_file=$1
12454 shift
12455
12456 case $ac_mode in
12457 :L) ac_source=$1;;
12458 :[FH])
12459 ac_file_inputs=
12460 for ac_f
12461 do
12462 case $ac_f in
12463 -) ac_f="$tmp/stdin";;
12464 *) # Look for the file first in the build tree, then in the source tree
12465 # (if the path is not absolute). The absolute path cannot be DOS-style,
12466 # because $ac_f cannot contain `:'.
12467 test -f "$ac_f" ||
12468 case $ac_f in
12469 [\\/$]*) false;;
12470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12471 esac ||
12472 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12473 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12474 { (exit 1); exit 1; }; };;
12475 esac
12476 ac_file_inputs="$ac_file_inputs $ac_f"
12477 done
12478
12479 # Let's still pretend it is `configure' which instantiates (i.e., don't
12480 # use $as_me), people would be surprised to read:
12481 # /* config.h. Generated by config.status. */
12482 configure_input="Generated from "`IFS=:
12483 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12484 if test x"$ac_file" != x-; then
12485 configure_input="$ac_file. $configure_input"
12486 { echo "$as_me:$LINENO: creating $ac_file" >&5
12487 echo "$as_me: creating $ac_file" >&6;}
12488 fi
12489
12490 case $ac_tag in
12491 *:-:* | *:-) cat >"$tmp/stdin";;
12492 esac
12493 ;;
12494 esac
12495
12496 ac_dir=`$as_dirname -- "$ac_file" ||
12497 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12498 X"$ac_file" : 'X\(//\)[^/]' \| \
12499 X"$ac_file" : 'X\(//\)$' \| \
12500 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12501 echo X"$ac_file" |
12502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12503 s//\1/
12504 q
12505 }
12506 /^X\(\/\/\)[^/].*/{
12507 s//\1/
12508 q
12509 }
12510 /^X\(\/\/\)$/{
12511 s//\1/
12512 q
12513 }
12514 /^X\(\/\).*/{
12515 s//\1/
12516 q
12517 }
12518 s/.*/./; q'`
12519 { as_dir="$ac_dir"
12520 case $as_dir in #(
12521 -*) as_dir=./$as_dir;;
12522 esac
12523 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12524 as_dirs=
12525 while :; do
12526 case $as_dir in #(
12527 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12528 *) as_qdir=$as_dir;;
12529 esac
12530 as_dirs="'$as_qdir' $as_dirs"
12531 as_dir=`$as_dirname -- "$as_dir" ||
12532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12533 X"$as_dir" : 'X\(//\)[^/]' \| \
12534 X"$as_dir" : 'X\(//\)$' \| \
12535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12536 echo X"$as_dir" |
12537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12538 s//\1/
12539 q
12540 }
12541 /^X\(\/\/\)[^/].*/{
12542 s//\1/
12543 q
12544 }
12545 /^X\(\/\/\)$/{
12546 s//\1/
12547 q
12548 }
12549 /^X\(\/\).*/{
12550 s//\1/
12551 q
12552 }
12553 s/.*/./; q'`
12554 test -d "$as_dir" && break
12555 done
12556 test -z "$as_dirs" || eval "mkdir $as_dirs"
12557 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12558 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12559 { (exit 1); exit 1; }; }; }
12560 ac_builddir=.
12561
12562 case "$ac_dir" in
12563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12564 *)
12565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12566 # A ".." for each directory in $ac_dir_suffix.
12567 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12568 case $ac_top_builddir_sub in
12569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12571 esac ;;
12572 esac
12573 ac_abs_top_builddir=$ac_pwd
12574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12575 # for backward compatibility:
12576 ac_top_builddir=$ac_top_build_prefix
12577
12578 case $srcdir in
12579 .) # We are building in place.
12580 ac_srcdir=.
12581 ac_top_srcdir=$ac_top_builddir_sub
12582 ac_abs_top_srcdir=$ac_pwd ;;
12583 [\\/]* | ?:[\\/]* ) # Absolute name.
12584 ac_srcdir=$srcdir$ac_dir_suffix;
12585 ac_top_srcdir=$srcdir
12586 ac_abs_top_srcdir=$srcdir ;;
12587 *) # Relative name.
12588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12589 ac_top_srcdir=$ac_top_build_prefix$srcdir
12590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12591 esac
12592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12593
12594
12595 case $ac_mode in
12596 :F)
12597 #
12598 # CONFIG_FILE
12599 #
12600
12601 case $INSTALL in
12602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12604 esac
12605 ac_MKDIR_P=$MKDIR_P
12606 case $MKDIR_P in
12607 [\\/$]* | ?:[\\/]* ) ;;
12608 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12609 esac
12610 _ACEOF
12611
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613 # If the template does not know about datarootdir, expand it.
12614 # FIXME: This hack should be removed a few years after 2.60.
12615 ac_datarootdir_hack=; ac_datarootdir_seen=
12616
12617 case `sed -n '/datarootdir/ {
12618 p
12619 q
12620 }
12621 /@datadir@/p
12622 /@docdir@/p
12623 /@infodir@/p
12624 /@localedir@/p
12625 /@mandir@/p
12626 ' $ac_file_inputs` in
12627 *datarootdir*) ac_datarootdir_seen=yes;;
12628 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12629 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12630 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12631 _ACEOF
12632 cat >>$CONFIG_STATUS <<_ACEOF
12633 ac_datarootdir_hack='
12634 s&@datadir@&$datadir&g
12635 s&@docdir@&$docdir&g
12636 s&@infodir@&$infodir&g
12637 s&@localedir@&$localedir&g
12638 s&@mandir@&$mandir&g
12639 s&\\\${datarootdir}&$datarootdir&g' ;;
12640 esac
12641 _ACEOF
12642
12643 # Neutralize VPATH when `$srcdir' = `.'.
12644 # Shell code in configure.ac might set extrasub.
12645 # FIXME: do we really want to maintain this feature?
12646 cat >>$CONFIG_STATUS <<_ACEOF
12647 sed "$ac_vpsub
12648 $extrasub
12649 _ACEOF
12650 cat >>$CONFIG_STATUS <<\_ACEOF
12651 :t
12652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12653 s&@configure_input@&$configure_input&;t t
12654 s&@top_builddir@&$ac_top_builddir_sub&;t t
12655 s&@srcdir@&$ac_srcdir&;t t
12656 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12657 s&@top_srcdir@&$ac_top_srcdir&;t t
12658 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12659 s&@builddir@&$ac_builddir&;t t
12660 s&@abs_builddir@&$ac_abs_builddir&;t t
12661 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12662 s&@INSTALL@&$ac_INSTALL&;t t
12663 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12664 $ac_datarootdir_hack
12665 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12666
12667 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12668 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12670 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12671 which seems to be undefined. Please make sure it is defined." >&5
12672 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12673 which seems to be undefined. Please make sure it is defined." >&2;}
12674
12675 rm -f "$tmp/stdin"
12676 case $ac_file in
12677 -) cat "$tmp/out"; rm -f "$tmp/out";;
12678 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12679 esac
12680 ;;
12681 :H)
12682 #
12683 # CONFIG_HEADER
12684 #
12685 _ACEOF
12686
12687 # Transform confdefs.h into a sed script `conftest.defines', that
12688 # substitutes the proper values into config.h.in to produce config.h.
12689 rm -f conftest.defines conftest.tail
12690 # First, append a space to every undef/define line, to ease matching.
12691 echo 's/$/ /' >conftest.defines
12692 # Then, protect against being on the right side of a sed subst, or in
12693 # an unquoted here document, in config.status. If some macros were
12694 # called several times there might be several #defines for the same
12695 # symbol, which is useless. But do not sort them, since the last
12696 # AC_DEFINE must be honored.
12697 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12698 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12699 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12700 # PARAMS is the parameter list in the macro definition--in most cases, it's
12701 # just an empty string.
12702 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12703 ac_dB='\\)[ (].*,\\1define\\2'
12704 ac_dC=' '
12705 ac_dD=' ,'
12706
12707 uniq confdefs.h |
12708 sed -n '
12709 t rset
12710 :rset
12711 s/^[ ]*#[ ]*define[ ][ ]*//
12712 t ok
12713 d
12714 :ok
12715 s/[\\&,]/\\&/g
12716 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12717 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12718 ' >>conftest.defines
12719
12720 # Remove the space that was appended to ease matching.
12721 # Then replace #undef with comments. This is necessary, for
12722 # example, in the case of _POSIX_SOURCE, which is predefined and required
12723 # on some systems where configure will not decide to define it.
12724 # (The regexp can be short, since the line contains either #define or #undef.)
12725 echo 's/ $//
12726 s,^[ #]*u.*,/* & */,' >>conftest.defines
12727
12728 # Break up conftest.defines:
12729 ac_max_sed_lines=50
12730
12731 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12732 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12733 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12734 # et cetera.
12735 ac_in='$ac_file_inputs'
12736 ac_out='"$tmp/out1"'
12737 ac_nxt='"$tmp/out2"'
12738
12739 while :
12740 do
12741 # Write a here document:
12742 cat >>$CONFIG_STATUS <<_ACEOF
12743 # First, check the format of the line:
12744 cat >"\$tmp/defines.sed" <<\\CEOF
12745 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12746 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12747 b
12748 :def
12749 _ACEOF
12750 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12751 echo 'CEOF
12752 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12753 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12754 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12755 grep . conftest.tail >/dev/null || break
12756 rm -f conftest.defines
12757 mv conftest.tail conftest.defines
12758 done
12759 rm -f conftest.defines conftest.tail
12760
12761 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12762 cat >>$CONFIG_STATUS <<\_ACEOF
12763 if test x"$ac_file" != x-; then
12764 echo "/* $configure_input */" >"$tmp/config.h"
12765 cat "$ac_result" >>"$tmp/config.h"
12766 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12767 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12768 echo "$as_me: $ac_file is unchanged" >&6;}
12769 else
12770 rm -f $ac_file
12771 mv "$tmp/config.h" $ac_file
12772 fi
12773 else
12774 echo "/* $configure_input */"
12775 cat "$ac_result"
12776 fi
12777 rm -f "$tmp/out12"
12778 ;;
12779
12780
12781 esac
12782
12783 done # for ac_tag
12784
12785
12786 { (exit 0); exit 0; }
12787 _ACEOF
12788 chmod +x $CONFIG_STATUS
12789 ac_clean_files=$ac_clean_files_save
12790
12791
12792 # configure is writing to config.log, and then calls config.status.
12793 # config.status does its own redirection, appending to config.log.
12794 # Unfortunately, on DOS this fails, as config.log is still kept open
12795 # by configure, so config.status won't be able to write to it; its
12796 # output is simply discarded. So we exec the FD to /dev/null,
12797 # effectively closing config.log, so it can be properly (re)opened and
12798 # appended to by config.status. When coming back to configure, we
12799 # need to make the FD available again.
12800 if test "$no_create" != yes; then
12801 ac_cs_success=:
12802 ac_config_status_args=
12803 test "$silent" = yes &&
12804 ac_config_status_args="$ac_config_status_args --quiet"
12805 exec 5>/dev/null
12806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12807 exec 5>>config.log
12808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12809 # would make configure fail if this is the last instruction.
12810 $ac_cs_success || { (exit 1); exit 1; }
12811 fi
12812
12813
12814 if test x$ODIRECT != xyes; then
12815 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12816 echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
12817 fi
12818
12819 if test x$FSADM == xyes; then
12820 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12821 echo "$as_me: WARNING: fsadm support is untested" >&2;}
12822 fi
12823
12824 if test x$DMEVENTD == xyes; then
12825 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12826 echo "$as_me: WARNING: dmeventd support is untested" >&2;}
12827 fi
This page took 0.746548 seconds and 6 git commands to generate.