]> sourceware.org Git - lvm2.git/blob - configure
autoreconf
[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 DMEVENTD
705 DM_COMPAT
706 DM_DEVICE_GID
707 DM_DEVICE_MODE
708 DM_DEVICE_UID
709 DM_IOCTLS
710 DM_LIB_VERSION
711 DM_LIB_PATCHLEVEL
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 interface
736 kerneldir
737 missingkernel
738 kernelvsn
739 tmpdir
740 usrlibdir
741 usrsbindir
742 LTLIBOBJS'
743 ac_subst_files=''
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP'
753
754
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
774
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
800
801 ac_prev=
802 ac_dashdash=
803 for ac_option
804 do
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
810 fi
811
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=no ;;
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
873
874 -enable-* | --enable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=\$ac_optarg ;;
882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_$ac_package=\$ac_optarg ;;
1079
1080 -without-* | --without-*)
1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=no ;;
1088
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1092
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1099
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1106
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1120
1121 *)
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 ;;
1128
1129 esac
1130 done
1131
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1136 fi
1137
1138 # Be sure to have absolute directory names.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1143 do
1144 eval ac_val=\$$ac_var
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1151 done
1152
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1156 build=$build_alias
1157 host=$host_alias
1158 target=$target_alias
1159
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1168 fi
1169 fi
1170
1171 ac_tool_prefix=
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173
1174 test "$silent" = yes && exec 6>/dev/null
1175
1176
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1185
1186
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1196 echo X"$0" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\).*/{
1210 s//\1/
1211 q
1212 }
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1217 fi
1218 else
1219 ac_srcdir_defaulted=no
1220 fi
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1225 fi
1226 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234 fi
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1247
1248 #
1249 # Report the --help message.
1250 #
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures this package to adapt to many kinds of systems.
1256
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262 Defaults for the options are specified in brackets.
1263
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1280
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1285
1286 For better control, use the options below.
1287
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1309
1310 cat <<\_ACEOF
1311
1312 System types:
1313 --build=BUILD configure for building on BUILD [guessed]
1314 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1315 --target=TARGET configure for building compilers for TARGET [HOST]
1316 _ACEOF
1317 fi
1318
1319 if test -n "$ac_init_help"; then
1320
1321 cat <<\_ACEOF
1322
1323 Optional Features:
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1327 device-mapper is missing from the kernel
1328 --disable-readline Disable readline support
1329 --disable-realtime Disable realtime clock support
1330 --enable-debug Enable debugging
1331 --enable-profiling Gather gcov profiling data
1332 --disable-devmapper Disable LVM2 device-mapper interaction
1333 --enable-compat Enable support for old device-mapper versions
1334 --disable-driver Disable calls to device-mapper in the kernel
1335 --disable-o_direct Disable O_DIRECT
1336 --enable-cmdlib Build shared command library
1337 --enable-pkgconfig Install pkgconfig support
1338 --enable-fsadm Enable fsadm
1339 --enable-dmeventd Enable the device-mapper event daemon
1340 --enable-static_link Use this to link the tools to their libraries
1341 statically. Default is dynamic linking
1342 --disable-selinux Disable selinux support
1343 --enable-nls Enable Native Language Support
1344
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --with-user=USER Set the owner of installed files [USER=root]
1349 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1350 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1351 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1352 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1353 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1354 TYPE=internal
1355 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1356 TYPE=internal
1357 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1358 TYPE=internal
1359 --with-snapshots=TYPE Snapshot support: internal/shared/none
1360 TYPE=internal
1361 --with-mirrors=TYPE Mirror support: internal/shared/none
1362 TYPE=internal
1363 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
1364 TYPE=none
1365 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1366 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1367 --with-confdir=DIR Configuration files in DIR /etc
1368 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
1369 --with-usrlibdir=DIR
1370 --with-usrsbindir=DIR
1371 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1372 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1373 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1374
1375 Some influential environment variables:
1376 CC C compiler command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379 nonstandard directory <lib dir>
1380 LIBS libraries to pass to the linker, e.g. -l<library>
1381 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1382 you have headers in a nonstandard directory <include dir>
1383 CPP C preprocessor
1384
1385 Use these variables to override the choices made by `configure' or to help
1386 it to find libraries and programs with nonstandard names/locations.
1387
1388 _ACEOF
1389 ac_status=$?
1390 fi
1391
1392 if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1395 test -d "$ac_dir" || continue
1396 ac_builddir=.
1397
1398 case "$ac_dir" in
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *)
1401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408 esac
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1413
1414 case $srcdir in
1415 .) # We are building in place.
1416 ac_srcdir=.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 esac
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1438 else
1439 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1442 done
1443 fi
1444
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1447 cat <<\_ACEOF
1448 configure
1449 generated by GNU Autoconf 2.61
1450
1451 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1452 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1453 This configure script is free software; the Free Software Foundation
1454 gives unlimited permission to copy, distribute and modify it.
1455 _ACEOF
1456 exit
1457 fi
1458 cat >config.log <<_ACEOF
1459 This file contains any messages produced by compilers while
1460 running configure, to aid debugging if configure makes a mistake.
1461
1462 It was created by $as_me, which was
1463 generated by GNU Autoconf 2.61. Invocation command line was
1464
1465 $ $0 $@
1466
1467 _ACEOF
1468 exec 5>>config.log
1469 {
1470 cat <<_ASUNAME
1471 ## --------- ##
1472 ## Platform. ##
1473 ## --------- ##
1474
1475 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1477 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1478 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1479 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1480
1481 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1482 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1483
1484 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1485 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1487 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1488 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1489 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1490 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1491
1492 _ASUNAME
1493
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1496 do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 echo "PATH: $as_dir"
1500 done
1501 IFS=$as_save_IFS
1502
1503 } >&5
1504
1505 cat >&5 <<_ACEOF
1506
1507
1508 ## ----------- ##
1509 ## Core tests. ##
1510 ## ----------- ##
1511
1512 _ACEOF
1513
1514
1515 # Keep a trace of the command line.
1516 # Strip out --no-create and --no-recursion so they do not pile up.
1517 # Strip out --silent because we don't want to record it for future runs.
1518 # Also quote any args containing shell meta-characters.
1519 # Make two passes to allow for proper duplicate-argument suppression.
1520 ac_configure_args=
1521 ac_configure_args0=
1522 ac_configure_args1=
1523 ac_must_keep_next=false
1524 for ac_pass in 1 2
1525 do
1526 for ac_arg
1527 do
1528 case $ac_arg in
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 continue ;;
1533 *\'*)
1534 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 esac
1536 case $ac_pass in
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1538 2)
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
1541 ac_must_keep_next=false # Got value, back to normal.
1542 else
1543 case $ac_arg in
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 esac
1551 ;;
1552 -* ) ac_must_keep_next=true ;;
1553 esac
1554 fi
1555 ac_configure_args="$ac_configure_args '$ac_arg'"
1556 ;;
1557 esac
1558 done
1559 done
1560 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1562
1563 # When interrupted or exit'd, cleanup temporary files, and complete
1564 # config.log. We remove comments because anyway the quotes in there
1565 # would cause problems or look ugly.
1566 # WARNING: Use '\'' to represent an apostrophe within the trap.
1567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568 trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1570 {
1571 echo
1572
1573 cat <<\_ASBOX
1574 ## ---------------- ##
1575 ## Cache variables. ##
1576 ## ---------------- ##
1577 _ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
1580 (
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1592 esac ;;
1593 esac
1594 done
1595 (set) 2>&1 |
1596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
1598 sed -n \
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 ;; #(
1602 *)
1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1604 ;;
1605 esac |
1606 sort
1607 )
1608 echo
1609
1610 cat <<\_ASBOX
1611 ## ----------------- ##
1612 ## Output variables. ##
1613 ## ----------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_vars
1617 do
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1625
1626 if test -n "$ac_subst_files"; then
1627 cat <<\_ASBOX
1628 ## ------------------- ##
1629 ## File substitutions. ##
1630 ## ------------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_files
1634 do
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1642 fi
1643
1644 if test -s confdefs.h; then
1645 cat <<\_ASBOX
1646 ## ----------- ##
1647 ## confdefs.h. ##
1648 ## ----------- ##
1649 _ASBOX
1650 echo
1651 cat confdefs.h
1652 echo
1653 fi
1654 test "$ac_signal" != 0 &&
1655 echo "$as_me: caught signal $ac_signal"
1656 echo "$as_me: exit $exit_status"
1657 } >&5
1658 rm -f core *.core core.conftest.* &&
1659 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1660 exit $exit_status
1661 ' 0
1662 for ac_signal in 1 2 13 15; do
1663 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1664 done
1665 ac_signal=0
1666
1667 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1668 rm -f -r conftest* confdefs.h
1669
1670 # Predefined preprocessor variables.
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_NAME "$PACKAGE_NAME"
1674 _ACEOF
1675
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1684 _ACEOF
1685
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_STRING "$PACKAGE_STRING"
1689 _ACEOF
1690
1691
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694 _ACEOF
1695
1696
1697 # Let the site file select an alternate cache file if it wants to.
1698 # Prefer explicitly selected file to automatically selected ones.
1699 if test -n "$CONFIG_SITE"; then
1700 set x "$CONFIG_SITE"
1701 elif test "x$prefix" != xNONE; then
1702 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1703 else
1704 set x "$ac_default_prefix/share/config.site" \
1705 "$ac_default_prefix/etc/config.site"
1706 fi
1707 shift
1708 for ac_site_file
1709 do
1710 if test -r "$ac_site_file"; then
1711 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1712 echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file"
1715 fi
1716 done
1717
1718 if test -r "$cache_file"; then
1719 # Some versions of bash will fail to source /dev/null (special
1720 # files actually), so we avoid doing that.
1721 if test -f "$cache_file"; then
1722 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1723 echo "$as_me: loading cache $cache_file" >&6;}
1724 case $cache_file in
1725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726 *) . "./$cache_file";;
1727 esac
1728 fi
1729 else
1730 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1731 echo "$as_me: creating cache $cache_file" >&6;}
1732 >$cache_file
1733 fi
1734
1735 # Check that the precious variables saved in the cache have kept the same
1736 # value.
1737 ac_cache_corrupted=false
1738 for ac_var in $ac_precious_vars; do
1739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740 eval ac_new_set=\$ac_env_${ac_var}_set
1741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742 eval ac_new_val=\$ac_env_${ac_var}_value
1743 case $ac_old_set,$ac_new_set in
1744 set,)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,set)
1749 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1750 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,);;
1753 *)
1754 if test "x$ac_old_val" != "x$ac_new_val"; then
1755 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1758 echo "$as_me: former value: $ac_old_val" >&2;}
1759 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1760 echo "$as_me: current value: $ac_new_val" >&2;}
1761 ac_cache_corrupted=:
1762 fi;;
1763 esac
1764 # Pass precious variables to config.status.
1765 if test "$ac_new_set" = set; then
1766 case $ac_new_val in
1767 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 *) ac_arg=$ac_var=$ac_new_val ;;
1769 esac
1770 case " $ac_configure_args " in
1771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1772 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1773 esac
1774 fi
1775 done
1776 if $ac_cache_corrupted; then
1777 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1778 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1779 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1780 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1781 { (exit 1); exit 1; }; }
1782 fi
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1809
1810
1811 ################################################################################
1812 ac_aux_dir=
1813 for ac_dir in autoconf "$srcdir"/autoconf; do
1814 if test -f "$ac_dir/install-sh"; then
1815 ac_aux_dir=$ac_dir
1816 ac_install_sh="$ac_aux_dir/install-sh -c"
1817 break
1818 elif test -f "$ac_dir/install.sh"; then
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install.sh -c"
1821 break
1822 elif test -f "$ac_dir/shtool"; then
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/shtool install -c"
1825 break
1826 fi
1827 done
1828 if test -z "$ac_aux_dir"; then
1829 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1830 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1831 { (exit 1); exit 1; }; }
1832 fi
1833
1834 # These three variables are undocumented and unsupported,
1835 # and are intended to be withdrawn in a future Autoconf release.
1836 # They can cause serious problems if a builder's source tree is in a directory
1837 # whose full name contains unusual characters.
1838 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1839 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1840 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1841
1842
1843
1844 ################################################################################
1845 # Make sure we can run config.sub.
1846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1847 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1848 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1849 { (exit 1); exit 1; }; }
1850
1851 { echo "$as_me:$LINENO: checking build system type" >&5
1852 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1853 if test "${ac_cv_build+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 ac_build_alias=$build_alias
1857 test "x$ac_build_alias" = x &&
1858 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1859 test "x$ac_build_alias" = x &&
1860 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1861 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1862 { (exit 1); exit 1; }; }
1863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1864 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1865 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1866 { (exit 1); exit 1; }; }
1867
1868 fi
1869 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1870 echo "${ECHO_T}$ac_cv_build" >&6; }
1871 case $ac_cv_build in
1872 *-*-*) ;;
1873 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1874 echo "$as_me: error: invalid value of canonical build" >&2;}
1875 { (exit 1); exit 1; }; };;
1876 esac
1877 build=$ac_cv_build
1878 ac_save_IFS=$IFS; IFS='-'
1879 set x $ac_cv_build
1880 shift
1881 build_cpu=$1
1882 build_vendor=$2
1883 shift; shift
1884 # Remember, the first character of IFS is used to create $*,
1885 # except with old shells:
1886 build_os=$*
1887 IFS=$ac_save_IFS
1888 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1889
1890
1891 { echo "$as_me:$LINENO: checking host system type" >&5
1892 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1893 if test "${ac_cv_host+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896 if test "x$host_alias" = x; then
1897 ac_cv_host=$ac_cv_build
1898 else
1899 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1900 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1901 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
1905 fi
1906 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1907 echo "${ECHO_T}$ac_cv_host" >&6; }
1908 case $ac_cv_host in
1909 *-*-*) ;;
1910 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1911 echo "$as_me: error: invalid value of canonical host" >&2;}
1912 { (exit 1); exit 1; }; };;
1913 esac
1914 host=$ac_cv_host
1915 ac_save_IFS=$IFS; IFS='-'
1916 set x $ac_cv_host
1917 shift
1918 host_cpu=$1
1919 host_vendor=$2
1920 shift; shift
1921 # Remember, the first character of IFS is used to create $*,
1922 # except with old shells:
1923 host_os=$*
1924 IFS=$ac_save_IFS
1925 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1926
1927
1928 { echo "$as_me:$LINENO: checking target system type" >&5
1929 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1930 if test "${ac_cv_target+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test "x$target_alias" = x; then
1934 ac_cv_target=$ac_cv_host
1935 else
1936 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1939 { (exit 1); exit 1; }; }
1940 fi
1941
1942 fi
1943 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1944 echo "${ECHO_T}$ac_cv_target" >&6; }
1945 case $ac_cv_target in
1946 *-*-*) ;;
1947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1948 echo "$as_me: error: invalid value of canonical target" >&2;}
1949 { (exit 1); exit 1; }; };;
1950 esac
1951 target=$ac_cv_target
1952 ac_save_IFS=$IFS; IFS='-'
1953 set x $ac_cv_target
1954 shift
1955 target_cpu=$1
1956 target_vendor=$2
1957 shift; shift
1958 # Remember, the first character of IFS is used to create $*,
1959 # except with old shells:
1960 target_os=$*
1961 IFS=$ac_save_IFS
1962 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1963
1964
1965 # The aliases save the names the user supplied, while $host etc.
1966 # will get canonicalized.
1967 test -n "$target_alias" &&
1968 test "$program_prefix$program_suffix$program_transform_name" = \
1969 NONENONEs,x,x, &&
1970 program_prefix=${target_alias}-
1971
1972 case "$host_os" in
1973 linux*)
1974 COPTIMISE_FLAG="-O2"
1975 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1976 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1977 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1978 LDDEPS="$LDDEPS .export.sym"
1979 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
1980 LIB_SUFFIX=so
1981 DEVMAPPER=yes
1982 ODIRECT=yes
1983 DM_IOCTLS=yes
1984 SELINUX=yes
1985 REALTIME=yes
1986 CLUSTER=internal
1987 FSADM=yes
1988 ;;
1989 darwin*)
1990 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1991 COPTIMISE_FLAG="-O2"
1992 CLDFLAGS="$CLDFLAGS"
1993 CLDWHOLEARCHIVE="-all_load"
1994 CLDNOWHOLEARCHIVE=
1995 LIB_SUFFIX=dylib
1996 DEVMAPPER=yes
1997 ODIRECT=no
1998 DM_IOCTLS=no
1999 SELINUX=no
2000 REALTIME=no
2001 CLUSTER=none
2002 FSADM=no
2003 ;;
2004 esac
2005
2006 ################################################################################
2007 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2008 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2009 if test "${ac_cv_path_SED+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2013 for ac_i in 1 2 3 4 5 6 7; do
2014 ac_script="$ac_script$as_nl$ac_script"
2015 done
2016 echo "$ac_script" | sed 99q >conftest.sed
2017 $as_unset ac_script || ac_script=
2018 # Extract the first word of "sed gsed" to use in msg output
2019 if test -z "$SED"; then
2020 set dummy sed gsed; ac_prog_name=$2
2021 if test "${ac_cv_path_SED+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 ac_path_SED_found=false
2025 # Loop through the user's path and test for each of PROGNAME-LIST
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_prog in sed gsed; do
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2034 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2035 # Check for GNU ac_path_SED and select it if it is found.
2036 # Check for GNU $ac_path_SED
2037 case `"$ac_path_SED" --version 2>&1` in
2038 *GNU*)
2039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2040 *)
2041 ac_count=0
2042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2043 while :
2044 do
2045 cat "conftest.in" "conftest.in" >"conftest.tmp"
2046 mv "conftest.tmp" "conftest.in"
2047 cp "conftest.in" "conftest.nl"
2048 echo '' >> "conftest.nl"
2049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2051 ac_count=`expr $ac_count + 1`
2052 if test $ac_count -gt ${ac_path_SED_max-0}; then
2053 # Best one so far, save it but keep looking for a better one
2054 ac_cv_path_SED="$ac_path_SED"
2055 ac_path_SED_max=$ac_count
2056 fi
2057 # 10*(2^10) chars as input seems more than enough
2058 test $ac_count -gt 10 && break
2059 done
2060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2061 esac
2062
2063
2064 $ac_path_SED_found && break 3
2065 done
2066 done
2067
2068 done
2069 IFS=$as_save_IFS
2070
2071
2072 fi
2073
2074 SED="$ac_cv_path_SED"
2075 if test -z "$SED"; then
2076 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2077 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2078 { (exit 1); exit 1; }; }
2079 fi
2080
2081 else
2082 ac_cv_path_SED=$SED
2083 fi
2084
2085 fi
2086 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2087 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2088 SED="$ac_cv_path_SED"
2089 rm -f conftest.sed
2090
2091 for ac_prog in gawk mawk nawk awk
2092 do
2093 # Extract the first word of "$ac_prog", so it can be a program name with args.
2094 set dummy $ac_prog; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_AWK+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$AWK"; then
2101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_prog_AWK="$ac_prog"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2113 fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118 fi
2119 fi
2120 AWK=$ac_cv_prog_AWK
2121 if test -n "$AWK"; then
2122 { echo "$as_me:$LINENO: result: $AWK" >&5
2123 echo "${ECHO_T}$AWK" >&6; }
2124 else
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2127 fi
2128
2129
2130 test -n "$AWK" && break
2131 done
2132
2133 ac_ext=c
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143 if test "${ac_cv_prog_CC+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test -n "$CC"; then
2147 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160 done
2161 done
2162 IFS=$as_save_IFS
2163
2164 fi
2165 fi
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168 { echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6; }
2170 else
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2173 fi
2174
2175
2176 fi
2177 if test -z "$ac_cv_prog_CC"; then
2178 ac_ct_CC=$CC
2179 # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_ac_ct_CC="gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2199 fi
2200 done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205 fi
2206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2207 if test -n "$ac_ct_CC"; then
2208 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2209 echo "${ECHO_T}$ac_ct_CC" >&6; }
2210 else
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2213 fi
2214
2215 if test "x$ac_ct_CC" = x; then
2216 CC=""
2217 else
2218 case $cross_compiling:$ac_tool_warned in
2219 yes:)
2220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2221 whose name does not start with the host triplet. If you think this
2222 configuration is useful to you, please write to autoconf@gnu.org." >&5
2223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2224 whose name does not start with the host triplet. If you think this
2225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2226 ac_tool_warned=yes ;;
2227 esac
2228 CC=$ac_ct_CC
2229 fi
2230 else
2231 CC="$ac_cv_prog_CC"
2232 fi
2233
2234 if test -z "$CC"; then
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}cc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="${ac_tool_prefix}cc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2256 fi
2257 done
2258 done
2259 IFS=$as_save_IFS
2260
2261 fi
2262 fi
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270 fi
2271
2272
2273 fi
2274 fi
2275 if test -z "$CC"; then
2276 # Extract the first word of "cc", so it can be a program name with args.
2277 set dummy cc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 else
2286 ac_prog_rejected=no
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2295 ac_prog_rejected=yes
2296 continue
2297 fi
2298 ac_cv_prog_CC="cc"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2301 fi
2302 done
2303 done
2304 IFS=$as_save_IFS
2305
2306 if test $ac_prog_rejected = yes; then
2307 # We found a bogon in the path, so make sure we never use it.
2308 set dummy $ac_cv_prog_CC
2309 shift
2310 if test $# != 0; then
2311 # We chose a different compiler from the bogus one.
2312 # However, it has the same basename, so the bogon will be chosen
2313 # first if we set CC to just the basename; use the full file name.
2314 shift
2315 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2316 fi
2317 fi
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2324 else
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2328
2329
2330 fi
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 for ac_prog in cl.exe
2334 do
2335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 { echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6; }
2366 else
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2369 fi
2370
2371
2372 test -n "$CC" && break
2373 done
2374 fi
2375 if test -z "$CC"; then
2376 ac_ct_CC=$CC
2377 for ac_prog in cl.exe
2378 do
2379 # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 set dummy $ac_prog; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CC="$ac_prog"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 break 2
2399 fi
2400 done
2401 done
2402 IFS=$as_save_IFS
2403
2404 fi
2405 fi
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2410 else
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2413 fi
2414
2415
2416 test -n "$ac_ct_CC" && break
2417 done
2418
2419 if test "x$ac_ct_CC" = x; then
2420 CC=""
2421 else
2422 case $cross_compiling:$ac_tool_warned in
2423 yes:)
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432 CC=$ac_ct_CC
2433 fi
2434 fi
2435
2436 fi
2437
2438
2439 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2440 See \`config.log' for more details." >&5
2441 echo "$as_me: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&2;}
2443 { (exit 1); exit 1; }; }
2444
2445 # Provide some information about the compiler.
2446 echo "$as_me:$LINENO: checking for C compiler version" >&5
2447 ac_compiler=`set X $ac_compile; echo $2`
2448 { (ac_try="$ac_compiler --version >&5"
2449 case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compiler --version >&5") 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2458 { (ac_try="$ac_compiler -v >&5"
2459 case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compiler -v >&5") 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2468 { (ac_try="$ac_compiler -V >&5"
2469 case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472 esac
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_compiler -V >&5") 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }
2478
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485
2486 int
2487 main ()
2488 {
2489
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 ac_clean_files_save=$ac_clean_files
2495 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2496 # Try to create an executable without -o first, disregard a.out.
2497 # It will help us diagnose broken compilers, and finding out an intuition
2498 # of exeext.
2499 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2500 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2501 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502 #
2503 # List of possible output files, starting from the most likely.
2504 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2505 # only as a last resort. b.out is created by i960 compilers.
2506 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2507 #
2508 # The IRIX 6 linker writes into existing files which may not be
2509 # executable, retaining their permissions. Remove them first so a
2510 # subsequent execution test works.
2511 ac_rmfiles=
2512 for ac_file in $ac_files
2513 do
2514 case $ac_file in
2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2517 esac
2518 done
2519 rm -f $ac_rmfiles
2520
2521 if { (ac_try="$ac_link_default"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link_default") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2532 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2533 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2534 # so that the user can short-circuit this test for compilers unknown to
2535 # Autoconf.
2536 for ac_file in $ac_files ''
2537 do
2538 test -f "$ac_file" || continue
2539 case $ac_file in
2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2541 ;;
2542 [ab].out )
2543 # We found the default executable, but exeext='' is most
2544 # certainly right.
2545 break;;
2546 *.* )
2547 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2548 then :; else
2549 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 fi
2551 # We set ac_cv_exeext here because the later test for it is not
2552 # safe: cross compilers may not add the suffix if given an `-o'
2553 # argument, so we may need to know it at that point already.
2554 # Even if this section looks crufty: it has the advantage of
2555 # actually working.
2556 break;;
2557 * )
2558 break;;
2559 esac
2560 done
2561 test "$ac_cv_exeext" = no && ac_cv_exeext=
2562
2563 else
2564 ac_file=''
2565 fi
2566
2567 { echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6; }
2569 if test -z "$ac_file"; then
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&2;}
2577 { (exit 77); exit 77; }; }
2578 fi
2579
2580 ac_exeext=$ac_cv_exeext
2581
2582 # Check that the compiler produces executables we can run. If not, either
2583 # the compiler is broken, or we cross compile.
2584 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2585 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2587 # If not cross compiling, check that we can run a simple program.
2588 if test "$cross_compiling" != yes; then
2589 if { ac_try='./$ac_file'
2590 { (case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_try") 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 cross_compiling=no
2600 else
2601 if test "$cross_compiling" = maybe; then
2602 cross_compiling=yes
2603 else
2604 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot run C compiled programs.
2608 If you meant to cross compile, use \`--host'.
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2611 fi
2612 fi
2613 fi
2614 { echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6; }
2616
2617 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2618 ac_clean_files=$ac_clean_files_save
2619 # Check that the compiler produces executables we can run. If not, either
2620 # the compiler is broken, or we cross compile.
2621 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2622 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2623 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2624 echo "${ECHO_T}$cross_compiling" >&6; }
2625
2626 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2627 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2628 if { (ac_try="$ac_link"
2629 case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632 esac
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_link") 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; then
2638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2641 # `rm'.
2642 for ac_file in conftest.exe conftest conftest.*; do
2643 test -f "$ac_file" || continue
2644 case $ac_file in
2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647 break;;
2648 * ) break;;
2649 esac
2650 done
2651 else
2652 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&2;}
2656 { (exit 1); exit 1; }; }
2657 fi
2658
2659 rm -f conftest$ac_cv_exeext
2660 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2661 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2662
2663 rm -f conftest.$ac_ext
2664 EXEEXT=$ac_cv_exeext
2665 ac_exeext=$EXEEXT
2666 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2667 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2668 if test "${ac_cv_objext+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2677
2678 int
2679 main ()
2680 {
2681
2682 ;
2683 return 0;
2684 }
2685 _ACEOF
2686 rm -f conftest.o conftest.obj
2687 if { (ac_try="$ac_compile"
2688 case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691 esac
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compile") 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; then
2697 for ac_file in conftest.o conftest.obj conftest.*; do
2698 test -f "$ac_file" || continue;
2699 case $ac_file in
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702 break;;
2703 esac
2704 done
2705 else
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2714 fi
2715
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 fi
2718 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6; }
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$OBJEXT
2722 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733
2734 int
2735 main ()
2736 {
2737 #ifndef __GNUC__
2738 choke me
2739 #endif
2740
2741 ;
2742 return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compile") 2>conftest.er1
2753 ac_status=$?
2754 grep -v '^ *+' conftest.er1 >conftest.err
2755 rm -f conftest.er1
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } && {
2759 test -z "$ac_c_werror_flag" ||
2760 test ! -s conftest.err
2761 } && test -s conftest.$ac_objext; then
2762 ac_compiler_gnu=yes
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 ac_compiler_gnu=no
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2772
2773 fi
2774 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2775 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2776 GCC=`test $ac_compiler_gnu = yes && echo yes`
2777 ac_test_CFLAGS=${CFLAGS+set}
2778 ac_save_CFLAGS=$CFLAGS
2779 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 ac_save_c_werror_flag=$ac_c_werror_flag
2785 ac_c_werror_flag=yes
2786 ac_cv_prog_cc_g=no
2787 CFLAGS="-g"
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794
2795 int
2796 main ()
2797 {
2798
2799 ;
2800 return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (ac_try="$ac_compile"
2805 case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_compile") 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } && {
2817 test -z "$ac_c_werror_flag" ||
2818 test ! -s conftest.err
2819 } && test -s conftest.$ac_objext; then
2820 ac_cv_prog_cc_g=yes
2821 else
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 CFLAGS=""
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h. */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832
2833 int
2834 main ()
2835 {
2836
2837 ;
2838 return 0;
2839 }
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (ac_try="$ac_compile"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compile") 2>conftest.er1
2849 ac_status=$?
2850 grep -v '^ *+' conftest.er1 >conftest.err
2851 rm -f conftest.er1
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.$ac_objext; then
2858 :
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 ac_c_werror_flag=$ac_save_c_werror_flag
2864 CFLAGS="-g"
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871
2872 int
2873 main ()
2874 {
2875
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } && {
2894 test -z "$ac_c_werror_flag" ||
2895 test ! -s conftest.err
2896 } && test -s conftest.$ac_objext; then
2897 ac_cv_prog_cc_g=yes
2898 else
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902
2903 fi
2904
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 fi
2907
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 fi
2910
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_c_werror_flag=$ac_save_c_werror_flag
2913 fi
2914 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2915 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2916 if test "$ac_test_CFLAGS" = set; then
2917 CFLAGS=$ac_save_CFLAGS
2918 elif test $ac_cv_prog_cc_g = yes; then
2919 if test "$GCC" = yes; then
2920 CFLAGS="-g -O2"
2921 else
2922 CFLAGS="-g"
2923 fi
2924 else
2925 if test "$GCC" = yes; then
2926 CFLAGS="-O2"
2927 else
2928 CFLAGS=
2929 fi
2930 fi
2931 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2932 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_cc_c89+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936 ac_cv_prog_cc_c89=no
2937 ac_save_CC=$CC
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944 #include <stdarg.h>
2945 #include <stdio.h>
2946 #include <sys/types.h>
2947 #include <sys/stat.h>
2948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2949 struct buf { int x; };
2950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2951 static char *e (p, i)
2952 char **p;
2953 int i;
2954 {
2955 return p[i];
2956 }
2957 static char *f (char * (*g) (char **, int), char **p, ...)
2958 {
2959 char *s;
2960 va_list v;
2961 va_start (v,p);
2962 s = g (p, va_arg (v,int));
2963 va_end (v);
2964 return s;
2965 }
2966
2967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2968 function prototypes and stuff, but not '\xHH' hex character constants.
2969 These don't provoke an error unfortunately, instead are silently treated
2970 as 'x'. The following induces an error, until -std is added to get
2971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2972 array size at least. It's necessary to write '\x00'==0 to get something
2973 that's true only with -std. */
2974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975
2976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2977 inside strings and character constants. */
2978 #define FOO(x) 'x'
2979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980
2981 int test (int i, double x);
2982 struct s1 {int (*f) (int a);};
2983 struct s2 {int (*f) (double a);};
2984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2985 int argc;
2986 char **argv;
2987 int
2988 main ()
2989 {
2990 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2997 do
2998 CC="$ac_save_CC $ac_arg"
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_prog_cc_c89=$ac_arg
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021
3022 fi
3023
3024 rm -f core conftest.err conftest.$ac_objext
3025 test "x$ac_cv_prog_cc_c89" != "xno" && break
3026 done
3027 rm -f conftest.$ac_ext
3028 CC=$ac_save_CC
3029
3030 fi
3031 # AC_CACHE_VAL
3032 case "x$ac_cv_prog_cc_c89" in
3033 x)
3034 { echo "$as_me:$LINENO: result: none needed" >&5
3035 echo "${ECHO_T}none needed" >&6; } ;;
3036 xno)
3037 { echo "$as_me:$LINENO: result: unsupported" >&5
3038 echo "${ECHO_T}unsupported" >&6; } ;;
3039 *)
3040 CC="$CC $ac_cv_prog_cc_c89"
3041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3043 esac
3044
3045
3046 ac_ext=c
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051
3052
3053
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3060 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3061 # On Suns, sometimes $CPP names a directory.
3062 if test -n "$CPP" && test -d "$CPP"; then
3063 CPP=
3064 fi
3065 if test -z "$CPP"; then
3066 if test "${ac_cv_prog_CPP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 # Double quotes because CPP needs to be expanded
3070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3071 do
3072 ac_preproc_ok=false
3073 for ac_c_preproc_warn_flag in '' yes
3074 do
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #ifdef __STDC__
3088 # include <limits.h>
3089 #else
3090 # include <assert.h>
3091 #endif
3092 Syntax error
3093 _ACEOF
3094 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 }; then
3110 :
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 # Broken: fails on valid input.
3116 continue
3117 fi
3118
3119 rm -f conftest.err conftest.$ac_ext
3120
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3130 _ACEOF
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 }; then
3147 # Broken: success on invalid input.
3148 continue
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 # Passes both tests.
3154 ac_preproc_ok=:
3155 break
3156 fi
3157
3158 rm -f conftest.err conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164 break
3165 fi
3166
3167 done
3168 ac_cv_prog_CPP=$CPP
3169
3170 fi
3171 CPP=$ac_cv_prog_CPP
3172 else
3173 ac_cv_prog_CPP=$CPP
3174 fi
3175 { echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6; }
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3179 do
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3192 #ifdef __STDC__
3193 # include <limits.h>
3194 #else
3195 # include <assert.h>
3196 #endif
3197 Syntax error
3198 _ACEOF
3199 if { (ac_try="$ac_cpp conftest.$ac_ext"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null && {
3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 }; then
3215 :
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 # Broken: fails on valid input.
3221 continue
3222 fi
3223
3224 rm -f conftest.err conftest.$ac_ext
3225
3226 # OK, works on sane cases. Now check whether nonexistent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3235 _ACEOF
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null && {
3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3251 }; then
3252 # Broken: success on invalid input.
3253 continue
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 # Passes both tests.
3259 ac_preproc_ok=:
3260 break
3261 fi
3262
3263 rm -f conftest.err conftest.$ac_ext
3264
3265 done
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3269 :
3270 else
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3276 fi
3277
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283
3284
3285 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3286 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3287 if test "${ac_cv_path_GREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 # Extract the first word of "grep ggrep" to use in msg output
3291 if test -z "$GREP"; then
3292 set dummy grep ggrep; ac_prog_name=$2
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 ac_path_GREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in grep ggrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309 case `"$ac_path_GREP" --version 2>&1` in
3310 *GNU*)
3311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3312 *)
3313 ac_count=0
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP="$ac_path_GREP"
3327 ac_path_GREP_max=$ac_count
3328 fi
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3334
3335
3336 $ac_path_GREP_found && break 3
3337 done
3338 done
3339
3340 done
3341 IFS=$as_save_IFS
3342
3343
3344 fi
3345
3346 GREP="$ac_cv_path_GREP"
3347 if test -z "$GREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3351 fi
3352
3353 else
3354 ac_cv_path_GREP=$GREP
3355 fi
3356
3357
3358 fi
3359 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3360 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3361 GREP="$ac_cv_path_GREP"
3362
3363
3364 { echo "$as_me:$LINENO: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_EGREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3370 then ac_cv_path_EGREP="$GREP -E"
3371 else
3372 # Extract the first word of "egrep" to use in msg output
3373 if test -z "$EGREP"; then
3374 set dummy egrep; ac_prog_name=$2
3375 if test "${ac_cv_path_EGREP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 ac_path_EGREP_found=false
3379 # Loop through the user's path and test for each of PROGNAME-LIST
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_prog in egrep; do
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3389 # Check for GNU ac_path_EGREP and select it if it is found.
3390 # Check for GNU $ac_path_EGREP
3391 case `"$ac_path_EGREP" --version 2>&1` in
3392 *GNU*)
3393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3394 *)
3395 ac_count=0
3396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3397 while :
3398 do
3399 cat "conftest.in" "conftest.in" >"conftest.tmp"
3400 mv "conftest.tmp" "conftest.in"
3401 cp "conftest.in" "conftest.nl"
3402 echo 'EGREP' >> "conftest.nl"
3403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3405 ac_count=`expr $ac_count + 1`
3406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3407 # Best one so far, save it but keep looking for a better one
3408 ac_cv_path_EGREP="$ac_path_EGREP"
3409 ac_path_EGREP_max=$ac_count
3410 fi
3411 # 10*(2^10) chars as input seems more than enough
3412 test $ac_count -gt 10 && break
3413 done
3414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3415 esac
3416
3417
3418 $ac_path_EGREP_found && break 3
3419 done
3420 done
3421
3422 done
3423 IFS=$as_save_IFS
3424
3425
3426 fi
3427
3428 EGREP="$ac_cv_path_EGREP"
3429 if test -z "$EGREP"; then
3430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3431 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3432 { (exit 1); exit 1; }; }
3433 fi
3434
3435 else
3436 ac_cv_path_EGREP=$EGREP
3437 fi
3438
3439
3440 fi
3441 fi
3442 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3443 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3444 EGREP="$ac_cv_path_EGREP"
3445
3446
3447 if test $ac_cv_c_compiler_gnu = yes; then
3448 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3449 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 ac_pattern="Autoconf.*'x'"
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #include <sgtty.h>
3461 Autoconf TIOCGETP
3462 _ACEOF
3463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3465 ac_cv_prog_gcc_traditional=yes
3466 else
3467 ac_cv_prog_gcc_traditional=no
3468 fi
3469 rm -f conftest*
3470
3471
3472 if test $ac_cv_prog_gcc_traditional = no; then
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <termio.h>
3480 Autoconf TCGETA
3481 _ACEOF
3482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3484 ac_cv_prog_gcc_traditional=yes
3485 fi
3486 rm -f conftest*
3487
3488 fi
3489 fi
3490 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3491 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3492 if test $ac_cv_prog_gcc_traditional = yes; then
3493 CC="$CC -traditional"
3494 fi
3495 fi
3496
3497 # Find a good install program. We prefer a C program (faster),
3498 # so one script is as good as another. But avoid the broken or
3499 # incompatible versions:
3500 # SysV /etc/install, /usr/sbin/install
3501 # SunOS /usr/etc/install
3502 # IRIX /sbin/install
3503 # AIX /bin/install
3504 # AmigaOS /C/install, which installs bootblocks on floppy discs
3505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3508 # OS/2's system install, which has a completely different semantic
3509 # ./install, which can be erroneously created by make from ./install.sh.
3510 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3511 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3512 if test -z "$INSTALL"; then
3513 if test "${ac_cv_path_install+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 # Account for people who put trailing slashes in PATH elements.
3522 case $as_dir/ in
3523 ./ | .// | /cC/* | \
3524 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3525 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3526 /usr/ucb/* ) ;;
3527 *)
3528 # OSF1 and SCO ODT 3.0 have their own names for install.
3529 # Don't use installbsd from OSF since it installs stuff as root
3530 # by default.
3531 for ac_prog in ginstall scoinst install; do
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3534 if test $ac_prog = install &&
3535 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3536 # AIX install. It has an incompatible calling convention.
3537 :
3538 elif test $ac_prog = install &&
3539 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3540 # program-specific install script used by HP pwplus--don't use.
3541 :
3542 else
3543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3544 break 3
3545 fi
3546 fi
3547 done
3548 done
3549 ;;
3550 esac
3551 done
3552 IFS=$as_save_IFS
3553
3554
3555 fi
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
3558 else
3559 # As a last resort, use the slow shell script. Don't cache a
3560 # value for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the value is a relative name.
3563 INSTALL=$ac_install_sh
3564 fi
3565 fi
3566 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3567 echo "${ECHO_T}$INSTALL" >&6; }
3568
3569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570 # It thinks the first close brace ends the variable substitution.
3571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572
3573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574
3575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
3577 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3578 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3579 LN_S=$as_ln_s
3580 if test "$LN_S" = "ln -s"; then
3581 { echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6; }
3583 else
3584 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3585 echo "${ECHO_T}no, using $LN_S" >&6; }
3586 fi
3587
3588 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3589 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3590 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3591 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 cat >conftest.make <<\_ACEOF
3595 SHELL = /bin/sh
3596 all:
3597 @echo '@@@%%%=$(MAKE)=@@@%%%'
3598 _ACEOF
3599 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3600 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3601 *@@@%%%=?*=@@@%%%*)
3602 eval ac_cv_prog_make_${ac_make}_set=yes;;
3603 *)
3604 eval ac_cv_prog_make_${ac_make}_set=no;;
3605 esac
3606 rm -f conftest.make
3607 fi
3608 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3609 { echo "$as_me:$LINENO: result: yes" >&5
3610 echo "${ECHO_T}yes" >&6; }
3611 SET_MAKE=
3612 else
3613 { echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6; }
3615 SET_MAKE="MAKE=${MAKE-make}"
3616 fi
3617
3618 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3619 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3620 if test -z "$MKDIR_P"; then
3621 if test "${ac_cv_path_mkdir+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3626 do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in mkdir gmkdir; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3632 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3633 'mkdir (GNU coreutils) '* | \
3634 'mkdir (coreutils) '* | \
3635 'mkdir (fileutils) '4.1*)
3636 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3637 break 3;;
3638 esac
3639 done
3640 done
3641 done
3642 IFS=$as_save_IFS
3643
3644 fi
3645
3646 if test "${ac_cv_path_mkdir+set}" = set; then
3647 MKDIR_P="$ac_cv_path_mkdir -p"
3648 else
3649 # As a last resort, use the slow shell script. Don't cache a
3650 # value for MKDIR_P within a source directory, because that will
3651 # break other packages using the cache if that directory is
3652 # removed, or if the value is a relative name.
3653 test -d ./--version && rmdir ./--version
3654 MKDIR_P="$ac_install_sh -d"
3655 fi
3656 fi
3657 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3658 echo "${ECHO_T}$MKDIR_P" >&6; }
3659
3660 if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3665 if test "${ac_cv_prog_RANLIB+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 if test -n "$RANLIB"; then
3669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682 done
3683 done
3684 IFS=$as_save_IFS
3685
3686 fi
3687 fi
3688 RANLIB=$ac_cv_prog_RANLIB
3689 if test -n "$RANLIB"; then
3690 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3691 echo "${ECHO_T}$RANLIB" >&6; }
3692 else
3693 { echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6; }
3695 fi
3696
3697
3698 fi
3699 if test -z "$ac_cv_prog_RANLIB"; then
3700 ac_ct_RANLIB=$RANLIB
3701 # Extract the first word of "ranlib", so it can be a program name with args.
3702 set dummy ranlib; ac_word=$2
3703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3705 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -n "$ac_ct_RANLIB"; then
3709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_ac_ct_RANLIB="ranlib"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722 done
3723 done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3729 if test -n "$ac_ct_RANLIB"; then
3730 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3731 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3732 else
3733 { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3735 fi
3736
3737 if test "x$ac_ct_RANLIB" = x; then
3738 RANLIB=":"
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741 yes:)
3742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3743 whose name does not start with the host triplet. If you think this
3744 configuration is useful to you, please write to autoconf@gnu.org." >&5
3745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3746 whose name does not start with the host triplet. If you think this
3747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3748 ac_tool_warned=yes ;;
3749 esac
3750 RANLIB=$ac_ct_RANLIB
3751 fi
3752 else
3753 RANLIB="$ac_cv_prog_RANLIB"
3754 fi
3755
3756 # Extract the first word of "cflow", so it can be a program name with args.
3757 set dummy cflow; ac_word=$2
3758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3760 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 case $CFLOW_CMD in
3764 [\\/]* | ?:[\\/]*)
3765 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3766 ;;
3767 *)
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779 done
3780 done
3781 IFS=$as_save_IFS
3782
3783 ;;
3784 esac
3785 fi
3786 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3787 if test -n "$CFLOW_CMD"; then
3788 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3789 echo "${ECHO_T}$CFLOW_CMD" >&6; }
3790 else
3791 { echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6; }
3793 fi
3794
3795
3796 # Extract the first word of "cscope", so it can be a program name with args.
3797 set dummy cscope; ac_word=$2
3798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3800 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 case $CSCOPE_CMD in
3804 [\\/]* | ?:[\\/]*)
3805 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3806 ;;
3807 *)
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 ;;
3824 esac
3825 fi
3826 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3827 if test -n "$CSCOPE_CMD"; then
3828 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3829 echo "${ECHO_T}$CSCOPE_CMD" >&6; }
3830 else
3831 { echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6; }
3833 fi
3834
3835
3836
3837 ################################################################################
3838
3839
3840
3841
3842
3843 ac_header_dirent=no
3844 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3845 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3846 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3847 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <sys/types.h>
3858 #include <$ac_hdr>
3859
3860 int
3861 main ()
3862 {
3863 if ((DIR *) 0)
3864 return 0;
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_compile") 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } && {
3883 test -z "$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3885 } && test -s conftest.$ac_objext; then
3886 eval "$as_ac_Header=yes"
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 eval "$as_ac_Header=no"
3892 fi
3893
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 fi
3896 ac_res=`eval echo '${'$as_ac_Header'}'`
3897 { echo "$as_me:$LINENO: result: $ac_res" >&5
3898 echo "${ECHO_T}$ac_res" >&6; }
3899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3900 cat >>confdefs.h <<_ACEOF
3901 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3902 _ACEOF
3903
3904 ac_header_dirent=$ac_hdr; break
3905 fi
3906
3907 done
3908 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3909 if test $ac_header_dirent = dirent.h; then
3910 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3911 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3912 if test "${ac_cv_search_opendir+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 ac_func_search_save_LIBS=$LIBS
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h. */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922
3923 /* Override any GCC internal prototype to avoid an error.
3924 Use char because int might match the return type of a GCC
3925 builtin and then its argument prototype would still apply. */
3926 #ifdef __cplusplus
3927 extern "C"
3928 #endif
3929 char opendir ();
3930 int
3931 main ()
3932 {
3933 return opendir ();
3934 ;
3935 return 0;
3936 }
3937 _ACEOF
3938 for ac_lib in '' dir; do
3939 if test -z "$ac_lib"; then
3940 ac_res="none required"
3941 else
3942 ac_res=-l$ac_lib
3943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3944 fi
3945 rm -f conftest.$ac_objext conftest$ac_exeext
3946 if { (ac_try="$ac_link"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_link") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } && {
3959 test -z "$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 } && test -s conftest$ac_exeext &&
3962 $as_test_x conftest$ac_exeext; then
3963 ac_cv_search_opendir=$ac_res
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968
3969 fi
3970
3971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3972 conftest$ac_exeext
3973 if test "${ac_cv_search_opendir+set}" = set; then
3974 break
3975 fi
3976 done
3977 if test "${ac_cv_search_opendir+set}" = set; then
3978 :
3979 else
3980 ac_cv_search_opendir=no
3981 fi
3982 rm conftest.$ac_ext
3983 LIBS=$ac_func_search_save_LIBS
3984 fi
3985 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3986 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3987 ac_res=$ac_cv_search_opendir
3988 if test "$ac_res" != no; then
3989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3990
3991 fi
3992
3993 else
3994 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3995 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3996 if test "${ac_cv_search_opendir+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_func_search_save_LIBS=$LIBS
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006
4007 /* Override any GCC internal prototype to avoid an error.
4008 Use char because int might match the return type of a GCC
4009 builtin and then its argument prototype would still apply. */
4010 #ifdef __cplusplus
4011 extern "C"
4012 #endif
4013 char opendir ();
4014 int
4015 main ()
4016 {
4017 return opendir ();
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 for ac_lib in '' x; do
4023 if test -z "$ac_lib"; then
4024 ac_res="none required"
4025 else
4026 ac_res=-l$ac_lib
4027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4028 fi
4029 rm -f conftest.$ac_objext conftest$ac_exeext
4030 if { (ac_try="$ac_link"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_link") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest$ac_exeext &&
4046 $as_test_x conftest$ac_exeext; then
4047 ac_cv_search_opendir=$ac_res
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052
4053 fi
4054
4055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4056 conftest$ac_exeext
4057 if test "${ac_cv_search_opendir+set}" = set; then
4058 break
4059 fi
4060 done
4061 if test "${ac_cv_search_opendir+set}" = set; then
4062 :
4063 else
4064 ac_cv_search_opendir=no
4065 fi
4066 rm conftest.$ac_ext
4067 LIBS=$ac_func_search_save_LIBS
4068 fi
4069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4071 ac_res=$ac_cv_search_opendir
4072 if test "$ac_res" != no; then
4073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4074
4075 fi
4076
4077 fi
4078
4079 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <stdlib.h>
4091 #include <stdarg.h>
4092 #include <string.h>
4093 #include <float.h>
4094
4095 int
4096 main ()
4097 {
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4120 ac_cv_header_stdc=yes
4121 else
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 ac_cv_header_stdc=no
4126 fi
4127
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129
4130 if test $ac_cv_header_stdc = yes; then
4131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <string.h>
4139
4140 _ACEOF
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "memchr" >/dev/null 2>&1; then
4143 :
4144 else
4145 ac_cv_header_stdc=no
4146 fi
4147 rm -f conftest*
4148
4149 fi
4150
4151 if test $ac_cv_header_stdc = yes; then
4152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 #include <stdlib.h>
4160
4161 _ACEOF
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163 $EGREP "free" >/dev/null 2>&1; then
4164 :
4165 else
4166 ac_cv_header_stdc=no
4167 fi
4168 rm -f conftest*
4169
4170 fi
4171
4172 if test $ac_cv_header_stdc = yes; then
4173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4174 if test "$cross_compiling" = yes; then
4175 :
4176 else
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 #include <ctype.h>
4184 #include <stdlib.h>
4185 #if ((' ' & 0x0FF) == 0x020)
4186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4188 #else
4189 # define ISLOWER(c) \
4190 (('a' <= (c) && (c) <= 'i') \
4191 || ('j' <= (c) && (c) <= 'r') \
4192 || ('s' <= (c) && (c) <= 'z'))
4193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4194 #endif
4195
4196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4197 int
4198 main ()
4199 {
4200 int i;
4201 for (i = 0; i < 256; i++)
4202 if (XOR (islower (i), ISLOWER (i))
4203 || toupper (i) != TOUPPER (i))
4204 return 2;
4205 return 0;
4206 }
4207 _ACEOF
4208 rm -f conftest$ac_exeext
4209 if { (ac_try="$ac_link"
4210 case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_link") 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4219 { (case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_try") 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 :
4229 else
4230 echo "$as_me: program exited with status $ac_status" >&5
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 ( exit $ac_status )
4235 ac_cv_header_stdc=no
4236 fi
4237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4238 fi
4239
4240
4241 fi
4242 fi
4243 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4244 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4245 if test $ac_cv_header_stdc = yes; then
4246
4247 cat >>confdefs.h <<\_ACEOF
4248 #define STDC_HEADERS 1
4249 _ACEOF
4250
4251 fi
4252
4253 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4254 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4255 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #include <sys/types.h>
4265 #include <sys/wait.h>
4266 #ifndef WEXITSTATUS
4267 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4268 #endif
4269 #ifndef WIFEXITED
4270 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4271 #endif
4272
4273 int
4274 main ()
4275 {
4276 int s;
4277 wait (&s);
4278 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
4300 ac_cv_header_sys_wait_h=yes
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ac_cv_header_sys_wait_h=no
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4311 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4312 if test $ac_cv_header_sys_wait_h = yes; then
4313
4314 cat >>confdefs.h <<\_ACEOF
4315 #define HAVE_SYS_WAIT_H 1
4316 _ACEOF
4317
4318 fi
4319
4320 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4321 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4322 if test "${ac_cv_header_time+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <sys/types.h>
4332 #include <sys/time.h>
4333 #include <time.h>
4334
4335 int
4336 main ()
4337 {
4338 if ((struct tm *) 0)
4339 return 0;
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 ac_cv_header_time=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_header_time=no
4367 fi
4368
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4372 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4373 if test $ac_cv_header_time = yes; then
4374
4375 cat >>confdefs.h <<\_ACEOF
4376 #define TIME_WITH_SYS_TIME 1
4377 _ACEOF
4378
4379 fi
4380
4381
4382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4393 inttypes.h stdint.h unistd.h
4394 do
4395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 $ac_includes_default
4408
4409 #include <$ac_header>
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_compile") 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4428 eval "$as_ac_Header=yes"
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 eval "$as_ac_Header=no"
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 fi
4438 ac_res=`eval echo '${'$as_ac_Header'}'`
4439 { echo "$as_me:$LINENO: result: $ac_res" >&5
4440 echo "${ECHO_T}$ac_res" >&6; }
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4442 cat >>confdefs.h <<_ACEOF
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444 _ACEOF
4445
4446 fi
4447
4448 done
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4465 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4466 do
4467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 fi
4474 ac_res=`eval echo '${'$as_ac_Header'}'`
4475 { echo "$as_me:$LINENO: result: $ac_res" >&5
4476 echo "${ECHO_T}$ac_res" >&6; }
4477 else
4478 # Is the header compilable?
4479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 $ac_includes_default
4488 #include <$ac_header>
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (ac_try="$ac_compile"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_compile") 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } && {
4504 test -z "$ac_c_werror_flag" ||
4505 test ! -s conftest.err
4506 } && test -s conftest.$ac_objext; then
4507 ac_header_compiler=yes
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512 ac_header_compiler=no
4513 fi
4514
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4517 echo "${ECHO_T}$ac_header_compiler" >&6; }
4518
4519 # Is the header present?
4520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 #include <$ac_header>
4529 _ACEOF
4530 if { (ac_try="$ac_cpp conftest.$ac_ext"
4531 case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534 esac
4535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4537 ac_status=$?
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } >/dev/null && {
4543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4544 test ! -s conftest.err
4545 }; then
4546 ac_header_preproc=yes
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 ac_header_preproc=no
4552 fi
4553
4554 rm -f conftest.err conftest.$ac_ext
4555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4556 echo "${ECHO_T}$ac_header_preproc" >&6; }
4557
4558 # So? What about this header?
4559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4560 yes:no: )
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4565 ac_header_preproc=yes
4566 ;;
4567 no:yes:* )
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4580
4581 ;;
4582 esac
4583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 eval "$as_ac_Header=\$ac_header_preproc"
4589 fi
4590 ac_res=`eval echo '${'$as_ac_Header'}'`
4591 { echo "$as_me:$LINENO: result: $ac_res" >&5
4592 echo "${ECHO_T}$ac_res" >&6; }
4593
4594 fi
4595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4596 cat >>confdefs.h <<_ACEOF
4597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4598 _ACEOF
4599
4600 else
4601 { { echo "$as_me:$LINENO: error: bailing out" >&5
4602 echo "$as_me: error: bailing out" >&2;}
4603 { (exit 1); exit 1; }; }
4604 fi
4605
4606 done
4607
4608
4609 case "$host_os" in
4610 linux*)
4611
4612
4613
4614 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4615 do
4616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 fi
4623 ac_res=`eval echo '${'$as_ac_Header'}'`
4624 { echo "$as_me:$LINENO: result: $ac_res" >&5
4625 echo "${ECHO_T}$ac_res" >&6; }
4626 else
4627 # Is the header compilable?
4628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4637 #include <$ac_header>
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4656 ac_header_compiler=yes
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ac_header_compiler=no
4662 fi
4663
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4666 echo "${ECHO_T}$ac_header_compiler" >&6; }
4667
4668 # Is the header present?
4669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4671 cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h. */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <$ac_header>
4678 _ACEOF
4679 if { (ac_try="$ac_cpp conftest.$ac_ext"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } >/dev/null && {
4692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 }; then
4695 ac_header_preproc=yes
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 ac_header_preproc=no
4701 fi
4702
4703 rm -f conftest.err conftest.$ac_ext
4704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4705 echo "${ECHO_T}$ac_header_preproc" >&6; }
4706
4707 # So? What about this header?
4708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4709 yes:no: )
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4714 ac_header_preproc=yes
4715 ;;
4716 no:yes:* )
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4729
4730 ;;
4731 esac
4732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 eval "$as_ac_Header=\$ac_header_preproc"
4738 fi
4739 ac_res=`eval echo '${'$as_ac_Header'}'`
4740 { echo "$as_me:$LINENO: result: $ac_res" >&5
4741 echo "${ECHO_T}$ac_res" >&6; }
4742
4743 fi
4744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4745 cat >>confdefs.h <<_ACEOF
4746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747 _ACEOF
4748
4749 else
4750 { { echo "$as_me:$LINENO: error: bailing out" >&5
4751 echo "$as_me: error: bailing out" >&2;}
4752 { (exit 1); exit 1; }; }
4753 fi
4754
4755 done
4756 ;;
4757 darwin*)
4758
4759
4760 for ac_header in machine/endian.h sys/disk.h
4761 do
4762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 fi
4769 ac_res=`eval echo '${'$as_ac_Header'}'`
4770 { echo "$as_me:$LINENO: result: $ac_res" >&5
4771 echo "${ECHO_T}$ac_res" >&6; }
4772 else
4773 # Is the header compilable?
4774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4783 #include <$ac_header>
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (ac_try="$ac_compile"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_compile") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && {
4799 test -z "$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest.$ac_objext; then
4802 ac_header_compiler=yes
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 ac_header_compiler=no
4808 fi
4809
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4812 echo "${ECHO_T}$ac_header_compiler" >&6; }
4813
4814 # Is the header present?
4815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <$ac_header>
4824 _ACEOF
4825 if { (ac_try="$ac_cpp conftest.$ac_ext"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } >/dev/null && {
4838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4840 }; then
4841 ac_header_preproc=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_header_preproc=no
4847 fi
4848
4849 rm -f conftest.err conftest.$ac_ext
4850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4851 echo "${ECHO_T}$ac_header_preproc" >&6; }
4852
4853 # So? What about this header?
4854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4855 yes:no: )
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4860 ac_header_preproc=yes
4861 ;;
4862 no:yes:* )
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4875
4876 ;;
4877 esac
4878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 eval "$as_ac_Header=\$ac_header_preproc"
4884 fi
4885 ac_res=`eval echo '${'$as_ac_Header'}'`
4886 { echo "$as_me:$LINENO: result: $ac_res" >&5
4887 echo "${ECHO_T}$ac_res" >&6; }
4888
4889 fi
4890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4891 cat >>confdefs.h <<_ACEOF
4892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4893 _ACEOF
4894
4895 else
4896 { { echo "$as_me:$LINENO: error: bailing out" >&5
4897 echo "$as_me: error: bailing out" >&2;}
4898 { (exit 1); exit 1; }; }
4899 fi
4900
4901 done
4902 ;;
4903 esac
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4922 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4923 sys/types.h unistd.h
4924 do
4925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 fi
4932 ac_res=`eval echo '${'$as_ac_Header'}'`
4933 { echo "$as_me:$LINENO: result: $ac_res" >&5
4934 echo "${ECHO_T}$ac_res" >&6; }
4935 else
4936 # Is the header compilable?
4937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 $ac_includes_default
4946 #include <$ac_header>
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4965 ac_header_compiler=yes
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ac_header_compiler=no
4971 fi
4972
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4975 echo "${ECHO_T}$ac_header_compiler" >&6; }
4976
4977 # Is the header present?
4978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 #include <$ac_header>
4987 _ACEOF
4988 if { (ac_try="$ac_cpp conftest.$ac_ext"
4989 case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null && {
5001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 }; then
5004 ac_header_preproc=yes
5005 else
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 ac_header_preproc=no
5010 fi
5011
5012 rm -f conftest.err conftest.$ac_ext
5013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5014 echo "${ECHO_T}$ac_header_preproc" >&6; }
5015
5016 # So? What about this header?
5017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5018 yes:no: )
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5023 ac_header_preproc=yes
5024 ;;
5025 no:yes:* )
5026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5038
5039 ;;
5040 esac
5041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 eval "$as_ac_Header=\$ac_header_preproc"
5047 fi
5048 ac_res=`eval echo '${'$as_ac_Header'}'`
5049 { echo "$as_me:$LINENO: result: $ac_res" >&5
5050 echo "${ECHO_T}$ac_res" >&6; }
5051
5052 fi
5053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5054 cat >>confdefs.h <<_ACEOF
5055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5056 _ACEOF
5057
5058 else
5059 { { echo "$as_me:$LINENO: error: bailing out" >&5
5060 echo "$as_me: error: bailing out" >&2;}
5061 { (exit 1); exit 1; }; }
5062 fi
5063
5064 done
5065
5066
5067
5068 for ac_header in termios.h sys/statvfs.h
5069 do
5070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 fi
5077 ac_res=`eval echo '${'$as_ac_Header'}'`
5078 { echo "$as_me:$LINENO: result: $ac_res" >&5
5079 echo "${ECHO_T}$ac_res" >&6; }
5080 else
5081 # Is the header compilable?
5082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5084 cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h. */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5091 #include <$ac_header>
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (ac_try="$ac_compile"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100 (eval "$ac_compile") 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && {
5107 test -z "$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest.$ac_objext; then
5110 ac_header_compiler=yes
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ac_header_compiler=no
5116 fi
5117
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6; }
5121
5122 # Is the header present?
5123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5125 cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <$ac_header>
5132 _ACEOF
5133 if { (ac_try="$ac_cpp conftest.$ac_ext"
5134 case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null && {
5146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 }; then
5149 ac_header_preproc=yes
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ac_header_preproc=no
5155 fi
5156
5157 rm -f conftest.err conftest.$ac_ext
5158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5159 echo "${ECHO_T}$ac_header_preproc" >&6; }
5160
5161 # So? What about this header?
5162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5163 yes:no: )
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5168 ac_header_preproc=yes
5169 ;;
5170 no:yes:* )
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5183
5184 ;;
5185 esac
5186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 eval "$as_ac_Header=\$ac_header_preproc"
5192 fi
5193 ac_res=`eval echo '${'$as_ac_Header'}'`
5194 { echo "$as_me:$LINENO: result: $ac_res" >&5
5195 echo "${ECHO_T}$ac_res" >&6; }
5196
5197 fi
5198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5199 cat >>confdefs.h <<_ACEOF
5200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5201 _ACEOF
5202
5203 fi
5204
5205 done
5206
5207
5208 ################################################################################
5209 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5210 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5211 if test "${ac_cv_c_const+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220
5221 int
5222 main ()
5223 {
5224 /* FIXME: Include the comments suggested by Paul. */
5225 #ifndef __cplusplus
5226 /* Ultrix mips cc rejects this. */
5227 typedef int charset[2];
5228 const charset cs;
5229 /* SunOS 4.1.1 cc rejects this. */
5230 char const *const *pcpcc;
5231 char **ppc;
5232 /* NEC SVR4.0.2 mips cc rejects this. */
5233 struct point {int x, y;};
5234 static struct point const zero = {0,0};
5235 /* AIX XL C 1.02.0.0 rejects this.
5236 It does not let you subtract one const X* pointer from another in
5237 an arm of an if-expression whose if-part is not a constant
5238 expression */
5239 const char *g = "string";
5240 pcpcc = &g + (g ? g-g : 0);
5241 /* HPUX 7.0 cc rejects these. */
5242 ++pcpcc;
5243 ppc = (char**) pcpcc;
5244 pcpcc = (char const *const *) ppc;
5245 { /* SCO 3.2v4 cc rejects this. */
5246 char *t;
5247 char const *s = 0 ? (char *) 0 : (char const *) 0;
5248
5249 *t++ = 0;
5250 if (s) return 0;
5251 }
5252 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5253 int x[] = {25, 17};
5254 const int *foo = &x[0];
5255 ++foo;
5256 }
5257 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5258 typedef const int *iptr;
5259 iptr p = 0;
5260 ++p;
5261 }
5262 { /* AIX XL C 1.02.0.0 rejects this saying
5263 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5264 struct s { int j; const int *ap[3]; };
5265 struct s *b; b->j = 5;
5266 }
5267 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5268 const int foo = 10;
5269 if (!foo) return 0;
5270 }
5271 return !cs[0] && !zero.x;
5272 #endif
5273
5274 ;
5275 return 0;
5276 }
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (ac_try="$ac_compile"
5280 case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
5295 ac_cv_c_const=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300 ac_cv_c_const=no
5301 fi
5302
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5306 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5307 if test $ac_cv_c_const = no; then
5308
5309 cat >>confdefs.h <<\_ACEOF
5310 #define const
5311 _ACEOF
5312
5313 fi
5314
5315 { echo "$as_me:$LINENO: checking for inline" >&5
5316 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5317 if test "${ac_cv_c_inline+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 ac_cv_c_inline=no
5321 for ac_kw in inline __inline__ __inline; do
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #ifndef __cplusplus
5329 typedef int foo_t;
5330 static $ac_kw foo_t static_foo () {return 0; }
5331 $ac_kw foo_t foo () {return 0; }
5332 #endif
5333
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5337 case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && {
5349 test -z "$ac_c_werror_flag" ||
5350 test ! -s conftest.err
5351 } && test -s conftest.$ac_objext; then
5352 ac_cv_c_inline=$ac_kw
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357
5358 fi
5359
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 test "$ac_cv_c_inline" != no && break
5362 done
5363
5364 fi
5365 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5366 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5367
5368
5369 case $ac_cv_c_inline in
5370 inline | yes) ;;
5371 *)
5372 case $ac_cv_c_inline in
5373 no) ac_val=;;
5374 *) ac_val=$ac_cv_c_inline;;
5375 esac
5376 cat >>confdefs.h <<_ACEOF
5377 #ifndef __cplusplus
5378 #define inline $ac_val
5379 #endif
5380 _ACEOF
5381 ;;
5382 esac
5383
5384 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5385 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5386 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5396 int
5397 main ()
5398 {
5399 static struct stat ac_aggr;
5400 if (ac_aggr.st_rdev)
5401 return 0;
5402 ;
5403 return 0;
5404 }
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (ac_try="$ac_compile"
5408 case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_compile") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } && {
5420 test -z "$ac_c_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
5423 ac_cv_member_struct_stat_st_rdev=yes
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 $ac_includes_default
5435 int
5436 main ()
5437 {
5438 static struct stat ac_aggr;
5439 if (sizeof ac_aggr.st_rdev)
5440 return 0;
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_member_struct_stat_st_rdev=yes
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_cv_member_struct_stat_st_rdev=no
5468 fi
5469
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 fi
5475 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5476 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5477 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5478
5479 cat >>confdefs.h <<_ACEOF
5480 #define HAVE_STRUCT_STAT_ST_RDEV 1
5481 _ACEOF
5482
5483
5484 fi
5485
5486 { echo "$as_me:$LINENO: checking for off_t" >&5
5487 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5488 if test "${ac_cv_type_off_t+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5498 typedef off_t ac__type_new_;
5499 int
5500 main ()
5501 {
5502 if ((ac__type_new_ *) 0)
5503 return 0;
5504 if (sizeof (ac__type_new_))
5505 return 0;
5506 ;
5507 return 0;
5508 }
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5512 case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
5527 ac_cv_type_off_t=yes
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 ac_cv_type_off_t=no
5533 fi
5534
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 fi
5537 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5538 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5539 if test $ac_cv_type_off_t = yes; then
5540 :
5541 else
5542
5543 cat >>confdefs.h <<_ACEOF
5544 #define off_t long int
5545 _ACEOF
5546
5547 fi
5548
5549 { echo "$as_me:$LINENO: checking for pid_t" >&5
5550 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5551 if test "${ac_cv_type_pid_t+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 $ac_includes_default
5561 typedef pid_t ac__type_new_;
5562 int
5563 main ()
5564 {
5565 if ((ac__type_new_ *) 0)
5566 return 0;
5567 if (sizeof (ac__type_new_))
5568 return 0;
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5575 case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.$ac_objext; then
5590 ac_cv_type_pid_t=yes
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595 ac_cv_type_pid_t=no
5596 fi
5597
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5601 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5602 if test $ac_cv_type_pid_t = yes; then
5603 :
5604 else
5605
5606 cat >>confdefs.h <<_ACEOF
5607 #define pid_t int
5608 _ACEOF
5609
5610 fi
5611
5612 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5613 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5614 if test "${ac_cv_type_signal+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <signal.h>
5625
5626 int
5627 main ()
5628 {
5629 return *(signal (0, 0)) (0) == 1;
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5636 case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compile") 2>conftest.er1
5642 ac_status=$?
5643 grep -v '^ *+' conftest.er1 >conftest.err
5644 rm -f conftest.er1
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && {
5648 test -z "$ac_c_werror_flag" ||
5649 test ! -s conftest.err
5650 } && test -s conftest.$ac_objext; then
5651 ac_cv_type_signal=int
5652 else
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5655
5656 ac_cv_type_signal=void
5657 fi
5658
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 fi
5661 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5662 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5663
5664 cat >>confdefs.h <<_ACEOF
5665 #define RETSIGTYPE $ac_cv_type_signal
5666 _ACEOF
5667
5668
5669 { echo "$as_me:$LINENO: checking for size_t" >&5
5670 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5671 if test "${ac_cv_type_size_t+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 typedef size_t ac__type_new_;
5682 int
5683 main ()
5684 {
5685 if ((ac__type_new_ *) 0)
5686 return 0;
5687 if (sizeof (ac__type_new_))
5688 return 0;
5689 ;
5690 return 0;
5691 }
5692 _ACEOF
5693 rm -f conftest.$ac_objext
5694 if { (ac_try="$ac_compile"
5695 case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compile") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest.$ac_objext; then
5710 ac_cv_type_size_t=yes
5711 else
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 ac_cv_type_size_t=no
5716 fi
5717
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 fi
5720 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5721 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5722 if test $ac_cv_type_size_t = yes; then
5723 :
5724 else
5725
5726 cat >>confdefs.h <<_ACEOF
5727 #define size_t unsigned int
5728 _ACEOF
5729
5730 fi
5731
5732 { echo "$as_me:$LINENO: checking for mode_t" >&5
5733 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
5734 if test "${ac_cv_type_mode_t+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5744 typedef mode_t ac__type_new_;
5745 int
5746 main ()
5747 {
5748 if ((ac__type_new_ *) 0)
5749 return 0;
5750 if (sizeof (ac__type_new_))
5751 return 0;
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5758 case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
5773 ac_cv_type_mode_t=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_cv_type_mode_t=no
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5784 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5785 if test $ac_cv_type_mode_t = yes; then
5786 :
5787 else
5788
5789 cat >>confdefs.h <<_ACEOF
5790 #define mode_t int
5791 _ACEOF
5792
5793 fi
5794
5795 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5796 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5797 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 $ac_includes_default
5807 int
5808 main ()
5809 {
5810 static struct stat ac_aggr;
5811 if (ac_aggr.st_rdev)
5812 return 0;
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5819 case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
5834 ac_cv_member_struct_stat_st_rdev=yes
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5846 int
5847 main ()
5848 {
5849 static struct stat ac_aggr;
5850 if (sizeof ac_aggr.st_rdev)
5851 return 0;
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 ac_cv_member_struct_stat_st_rdev=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 ac_cv_member_struct_stat_st_rdev=no
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 fi
5886 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5887 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5888 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5889
5890 cat >>confdefs.h <<_ACEOF
5891 #define HAVE_STRUCT_STAT_ST_RDEV 1
5892 _ACEOF
5893
5894
5895 fi
5896
5897 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5898 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5899 if test "${ac_cv_struct_tm+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <sys/types.h>
5909 #include <time.h>
5910
5911 int
5912 main ()
5913 {
5914 struct tm tm;
5915 int *p = &tm.tm_sec;
5916 return !p;
5917 ;
5918 return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (ac_try="$ac_compile"
5923 case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && {
5935 test -z "$ac_c_werror_flag" ||
5936 test ! -s conftest.err
5937 } && test -s conftest.$ac_objext; then
5938 ac_cv_struct_tm=time.h
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 ac_cv_struct_tm=sys/time.h
5944 fi
5945
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 fi
5948 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5949 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5950 if test $ac_cv_struct_tm = sys/time.h; then
5951
5952 cat >>confdefs.h <<\_ACEOF
5953 #define TM_IN_SYS_TIME 1
5954 _ACEOF
5955
5956 fi
5957
5958
5959 ################################################################################
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5978 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5979 uname
5980 do
5981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987 cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h. */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5995 #define $ac_func innocuous_$ac_func
5996
5997 /* System header to define __stub macros and hopefully few prototypes,
5998 which can conflict with char $ac_func (); below.
5999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000 <limits.h> exists even on freestanding compilers. */
6001
6002 #ifdef __STDC__
6003 # include <limits.h>
6004 #else
6005 # include <assert.h>
6006 #endif
6007
6008 #undef $ac_func
6009
6010 /* Override any GCC internal prototype to avoid an error.
6011 Use char because int might match the return type of a GCC
6012 builtin and then its argument prototype would still apply. */
6013 #ifdef __cplusplus
6014 extern "C"
6015 #endif
6016 char $ac_func ();
6017 /* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020 #if defined __stub_$ac_func || defined __stub___$ac_func
6021 choke me
6022 #endif
6023
6024 int
6025 main ()
6026 {
6027 return $ac_func ();
6028 ;
6029 return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (ac_try="$ac_link"
6034 case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_link") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } && {
6046 test -z "$ac_c_werror_flag" ||
6047 test ! -s conftest.err
6048 } && test -s conftest$ac_exeext &&
6049 $as_test_x conftest$ac_exeext; then
6050 eval "$as_ac_var=yes"
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 eval "$as_ac_var=no"
6056 fi
6057
6058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6059 conftest$ac_exeext conftest.$ac_ext
6060 fi
6061 ac_res=`eval echo '${'$as_ac_var'}'`
6062 { echo "$as_me:$LINENO: result: $ac_res" >&5
6063 echo "${ECHO_T}$ac_res" >&6; }
6064 if test `eval echo '${'$as_ac_var'}'` = yes; then
6065 cat >>confdefs.h <<_ACEOF
6066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6067 _ACEOF
6068
6069 else
6070 { { echo "$as_me:$LINENO: error: bailing out" >&5
6071 echo "$as_me: error: bailing out" >&2;}
6072 { (exit 1); exit 1; }; }
6073 fi
6074 done
6075
6076 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6077 # for constant arguments. Useless!
6078 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6079 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6080 if test "${ac_cv_working_alloca_h+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <alloca.h>
6090 int
6091 main ()
6092 {
6093 char *p = (char *) alloca (2 * sizeof (int));
6094 if (p) return 0;
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext conftest$ac_exeext
6100 if { (ac_try="$ac_link"
6101 case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_link") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest$ac_exeext &&
6116 $as_test_x conftest$ac_exeext; then
6117 ac_cv_working_alloca_h=yes
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 ac_cv_working_alloca_h=no
6123 fi
6124
6125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6126 conftest$ac_exeext conftest.$ac_ext
6127 fi
6128 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6129 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6130 if test $ac_cv_working_alloca_h = yes; then
6131
6132 cat >>confdefs.h <<\_ACEOF
6133 #define HAVE_ALLOCA_H 1
6134 _ACEOF
6135
6136 fi
6137
6138 { echo "$as_me:$LINENO: checking for alloca" >&5
6139 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6140 if test "${ac_cv_func_alloca_works+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #ifdef __GNUC__
6150 # define alloca __builtin_alloca
6151 #else
6152 # ifdef _MSC_VER
6153 # include <malloc.h>
6154 # define alloca _alloca
6155 # else
6156 # ifdef HAVE_ALLOCA_H
6157 # include <alloca.h>
6158 # else
6159 # ifdef _AIX
6160 #pragma alloca
6161 # else
6162 # ifndef alloca /* predefined by HP cc +Olibcalls */
6163 char *alloca ();
6164 # endif
6165 # endif
6166 # endif
6167 # endif
6168 #endif
6169
6170 int
6171 main ()
6172 {
6173 char *p = (char *) alloca (1);
6174 if (p) return 0;
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (ac_try="$ac_link"
6181 case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_link") 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest$ac_exeext &&
6196 $as_test_x conftest$ac_exeext; then
6197 ac_cv_func_alloca_works=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_cv_func_alloca_works=no
6203 fi
6204
6205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6206 conftest$ac_exeext conftest.$ac_ext
6207 fi
6208 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6209 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6210
6211 if test $ac_cv_func_alloca_works = yes; then
6212
6213 cat >>confdefs.h <<\_ACEOF
6214 #define HAVE_ALLOCA 1
6215 _ACEOF
6216
6217 else
6218 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6219 # that cause trouble. Some versions do not even contain alloca or
6220 # contain a buggy version. If you still want to use their alloca,
6221 # use ar to extract alloca.o from them instead of compiling alloca.c.
6222
6223 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6224
6225 cat >>confdefs.h <<\_ACEOF
6226 #define C_ALLOCA 1
6227 _ACEOF
6228
6229
6230 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6231 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6232 if test "${ac_cv_os_cray+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #if defined CRAY && ! defined CRAY2
6242 webecray
6243 #else
6244 wenotbecray
6245 #endif
6246
6247 _ACEOF
6248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6249 $EGREP "webecray" >/dev/null 2>&1; then
6250 ac_cv_os_cray=yes
6251 else
6252 ac_cv_os_cray=no
6253 fi
6254 rm -f conftest*
6255
6256 fi
6257 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6258 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6259 if test $ac_cv_os_cray = yes; then
6260 for ac_func in _getb67 GETB67 getb67; do
6261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6275 #define $ac_func innocuous_$ac_func
6276
6277 /* System header to define __stub macros and hopefully few prototypes,
6278 which can conflict with char $ac_func (); below.
6279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280 <limits.h> exists even on freestanding compilers. */
6281
6282 #ifdef __STDC__
6283 # include <limits.h>
6284 #else
6285 # include <assert.h>
6286 #endif
6287
6288 #undef $ac_func
6289
6290 /* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6293 #ifdef __cplusplus
6294 extern "C"
6295 #endif
6296 char $ac_func ();
6297 /* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
6300 #if defined __stub_$ac_func || defined __stub___$ac_func
6301 choke me
6302 #endif
6303
6304 int
6305 main ()
6306 {
6307 return $ac_func ();
6308 ;
6309 return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (ac_try="$ac_link"
6314 case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_link") 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 } && test -s conftest$ac_exeext &&
6329 $as_test_x conftest$ac_exeext; then
6330 eval "$as_ac_var=yes"
6331 else
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 eval "$as_ac_var=no"
6336 fi
6337
6338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6339 conftest$ac_exeext conftest.$ac_ext
6340 fi
6341 ac_res=`eval echo '${'$as_ac_var'}'`
6342 { echo "$as_me:$LINENO: result: $ac_res" >&5
6343 echo "${ECHO_T}$ac_res" >&6; }
6344 if test `eval echo '${'$as_ac_var'}'` = yes; then
6345
6346 cat >>confdefs.h <<_ACEOF
6347 #define CRAY_STACKSEG_END $ac_func
6348 _ACEOF
6349
6350 break
6351 fi
6352
6353 done
6354 fi
6355
6356 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6358 if test "${ac_cv_c_stack_direction+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 if test "$cross_compiling" = yes; then
6362 ac_cv_c_stack_direction=0
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 int
6372 find_stack_direction ()
6373 {
6374 static char *addr = 0;
6375 auto char dummy;
6376 if (addr == 0)
6377 {
6378 addr = &dummy;
6379 return find_stack_direction ();
6380 }
6381 else
6382 return (&dummy > addr) ? 1 : -1;
6383 }
6384
6385 int
6386 main ()
6387 {
6388 return find_stack_direction () < 0;
6389 }
6390 _ACEOF
6391 rm -f conftest$ac_exeext
6392 if { (ac_try="$ac_link"
6393 case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_link") 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_cv_c_stack_direction=1
6412 else
6413 echo "$as_me: program exited with status $ac_status" >&5
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ( exit $ac_status )
6418 ac_cv_c_stack_direction=-1
6419 fi
6420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6421 fi
6422
6423
6424 fi
6425 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6426 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6427
6428 cat >>confdefs.h <<_ACEOF
6429 #define STACK_DIRECTION $ac_cv_c_stack_direction
6430 _ACEOF
6431
6432
6433 fi
6434
6435 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6436 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
6437 if test "${ac_cv_func_closedir_void+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 if test "$cross_compiling" = yes; then
6441 ac_cv_func_closedir_void=yes
6442 else
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 $ac_includes_default
6450 #include <$ac_header_dirent>
6451 #ifndef __cplusplus
6452 int closedir ();
6453 #endif
6454
6455 int
6456 main ()
6457 {
6458 return closedir (opendir (".")) != 0;
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest$ac_exeext
6464 if { (ac_try="$ac_link"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_link") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6474 { (case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_try") 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_func_closedir_void=no
6484 else
6485 echo "$as_me: program exited with status $ac_status" >&5
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 ( exit $ac_status )
6490 ac_cv_func_closedir_void=yes
6491 fi
6492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6493 fi
6494
6495
6496 fi
6497 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6498 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
6499 if test $ac_cv_func_closedir_void = yes; then
6500
6501 cat >>confdefs.h <<\_ACEOF
6502 #define CLOSEDIR_VOID 1
6503 _ACEOF
6504
6505 fi
6506
6507
6508 for ac_header in vfork.h
6509 do
6510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 fi
6517 ac_res=`eval echo '${'$as_ac_Header'}'`
6518 { echo "$as_me:$LINENO: result: $ac_res" >&5
6519 echo "${ECHO_T}$ac_res" >&6; }
6520 else
6521 # Is the header compilable?
6522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6531 #include <$ac_header>
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest.$ac_objext; then
6550 ac_header_compiler=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_header_compiler=no
6556 fi
6557
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560 echo "${ECHO_T}$ac_header_compiler" >&6; }
6561
6562 # Is the header present?
6563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <$ac_header>
6572 _ACEOF
6573 if { (ac_try="$ac_cpp conftest.$ac_ext"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
6589 ac_header_preproc=yes
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_header_preproc=no
6595 fi
6596
6597 rm -f conftest.err conftest.$ac_ext
6598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 echo "${ECHO_T}$ac_header_preproc" >&6; }
6600
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6609 ;;
6610 no:yes:* )
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6623
6624 ;;
6625 esac
6626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 eval "$as_ac_Header=\$ac_header_preproc"
6632 fi
6633 ac_res=`eval echo '${'$as_ac_Header'}'`
6634 { echo "$as_me:$LINENO: result: $ac_res" >&5
6635 echo "${ECHO_T}$ac_res" >&6; }
6636
6637 fi
6638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6639 cat >>confdefs.h <<_ACEOF
6640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641 _ACEOF
6642
6643 fi
6644
6645 done
6646
6647
6648
6649 for ac_func in fork vfork
6650 do
6651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6665 #define $ac_func innocuous_$ac_func
6666
6667 /* System header to define __stub macros and hopefully few prototypes,
6668 which can conflict with char $ac_func (); below.
6669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6670 <limits.h> exists even on freestanding compilers. */
6671
6672 #ifdef __STDC__
6673 # include <limits.h>
6674 #else
6675 # include <assert.h>
6676 #endif
6677
6678 #undef $ac_func
6679
6680 /* Override any GCC internal prototype to avoid an error.
6681 Use char because int might match the return type of a GCC
6682 builtin and then its argument prototype would still apply. */
6683 #ifdef __cplusplus
6684 extern "C"
6685 #endif
6686 char $ac_func ();
6687 /* The GNU C library defines this for functions which it implements
6688 to always fail with ENOSYS. Some functions are actually named
6689 something starting with __ and the normal name is an alias. */
6690 #if defined __stub_$ac_func || defined __stub___$ac_func
6691 choke me
6692 #endif
6693
6694 int
6695 main ()
6696 {
6697 return $ac_func ();
6698 ;
6699 return 0;
6700 }
6701 _ACEOF
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (ac_try="$ac_link"
6704 case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707 esac
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_link") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
6720 eval "$as_ac_var=yes"
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 eval "$as_ac_var=no"
6726 fi
6727
6728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6729 conftest$ac_exeext conftest.$ac_ext
6730 fi
6731 ac_res=`eval echo '${'$as_ac_var'}'`
6732 { echo "$as_me:$LINENO: result: $ac_res" >&5
6733 echo "${ECHO_T}$ac_res" >&6; }
6734 if test `eval echo '${'$as_ac_var'}'` = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6737 _ACEOF
6738
6739 fi
6740 done
6741
6742 if test "x$ac_cv_func_fork" = xyes; then
6743 { echo "$as_me:$LINENO: checking for working fork" >&5
6744 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6745 if test "${ac_cv_func_fork_works+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 if test "$cross_compiling" = yes; then
6749 ac_cv_func_fork_works=cross
6750 else
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6758 int
6759 main ()
6760 {
6761
6762 /* By Ruediger Kuhlmann. */
6763 return fork () < 0;
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest$ac_exeext
6770 if { (ac_try="$ac_link"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_link") 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6780 { (case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783 esac
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_try") 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_func_fork_works=yes
6790 else
6791 echo "$as_me: program exited with status $ac_status" >&5
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ( exit $ac_status )
6796 ac_cv_func_fork_works=no
6797 fi
6798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6799 fi
6800
6801
6802 fi
6803 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6804 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6805
6806 else
6807 ac_cv_func_fork_works=$ac_cv_func_fork
6808 fi
6809 if test "x$ac_cv_func_fork_works" = xcross; then
6810 case $host in
6811 *-*-amigaos* | *-*-msdosdjgpp*)
6812 # Override, as these systems have only a dummy fork() stub
6813 ac_cv_func_fork_works=no
6814 ;;
6815 *)
6816 ac_cv_func_fork_works=yes
6817 ;;
6818 esac
6819 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6820 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6821 fi
6822 ac_cv_func_vfork_works=$ac_cv_func_vfork
6823 if test "x$ac_cv_func_vfork" = xyes; then
6824 { echo "$as_me:$LINENO: checking for working vfork" >&5
6825 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6826 if test "${ac_cv_func_vfork_works+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 if test "$cross_compiling" = yes; then
6830 ac_cv_func_vfork_works=cross
6831 else
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 /* Thanks to Paul Eggert for this test. */
6839 $ac_includes_default
6840 #include <sys/wait.h>
6841 #ifdef HAVE_VFORK_H
6842 # include <vfork.h>
6843 #endif
6844 /* On some sparc systems, changes by the child to local and incoming
6845 argument registers are propagated back to the parent. The compiler
6846 is told about this with #include <vfork.h>, but some compilers
6847 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6848 static variable whose address is put into a register that is
6849 clobbered by the vfork. */
6850 static void
6851 #ifdef __cplusplus
6852 sparc_address_test (int arg)
6853 # else
6854 sparc_address_test (arg) int arg;
6855 #endif
6856 {
6857 static pid_t child;
6858 if (!child) {
6859 child = vfork ();
6860 if (child < 0) {
6861 perror ("vfork");
6862 _exit(2);
6863 }
6864 if (!child) {
6865 arg = getpid();
6866 write(-1, "", 0);
6867 _exit (arg);
6868 }
6869 }
6870 }
6871
6872 int
6873 main ()
6874 {
6875 pid_t parent = getpid ();
6876 pid_t child;
6877
6878 sparc_address_test (0);
6879
6880 child = vfork ();
6881
6882 if (child == 0) {
6883 /* Here is another test for sparc vfork register problems. This
6884 test uses lots of local variables, at least as many local
6885 variables as main has allocated so far including compiler
6886 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6887 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6888 reuse the register of parent for one of the local variables,
6889 since it will think that parent can't possibly be used any more
6890 in this routine. Assigning to the local variable will thus
6891 munge parent in the parent process. */
6892 pid_t
6893 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6894 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6895 /* Convince the compiler that p..p7 are live; otherwise, it might
6896 use the same hardware register for all 8 local variables. */
6897 if (p != p1 || p != p2 || p != p3 || p != p4
6898 || p != p5 || p != p6 || p != p7)
6899 _exit(1);
6900
6901 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6902 from child file descriptors. If the child closes a descriptor
6903 before it execs or exits, this munges the parent's descriptor
6904 as well. Test for this by closing stdout in the child. */
6905 _exit(close(fileno(stdout)) != 0);
6906 } else {
6907 int status;
6908 struct stat st;
6909
6910 while (wait(&status) != child)
6911 ;
6912 return (
6913 /* Was there some problem with vforking? */
6914 child < 0
6915
6916 /* Did the child fail? (This shouldn't happen.) */
6917 || status
6918
6919 /* Did the vfork/compiler bug occur? */
6920 || parent != getpid()
6921
6922 /* Did the file descriptor bug occur? */
6923 || fstat(fileno(stdout), &st) != 0
6924 );
6925 }
6926 }
6927 _ACEOF
6928 rm -f conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_func_vfork_works=yes
6949 else
6950 echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ( exit $ac_status )
6955 ac_cv_func_vfork_works=no
6956 fi
6957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6958 fi
6959
6960
6961 fi
6962 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6963 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6964
6965 fi;
6966 if test "x$ac_cv_func_fork_works" = xcross; then
6967 ac_cv_func_vfork_works=$ac_cv_func_vfork
6968 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6969 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6970 fi
6971
6972 if test "x$ac_cv_func_vfork_works" = xyes; then
6973
6974 cat >>confdefs.h <<\_ACEOF
6975 #define HAVE_WORKING_VFORK 1
6976 _ACEOF
6977
6978 else
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 #define vfork fork
6982 _ACEOF
6983
6984 fi
6985 if test "x$ac_cv_func_fork_works" = xyes; then
6986
6987 cat >>confdefs.h <<\_ACEOF
6988 #define HAVE_WORKING_FORK 1
6989 _ACEOF
6990
6991 fi
6992
6993 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6994 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6995 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 rm -f conftest.sym conftest.file
6999 echo >conftest.file
7000 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7001 if test "$cross_compiling" = yes; then
7002 ac_cv_func_lstat_dereferences_slashed_symlink=no
7003 else
7004 cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7011 int
7012 main ()
7013 {
7014 struct stat sbuf;
7015 /* Linux will dereference the symlink and fail.
7016 That is better in the sense that it means we will not
7017 have to compile and use the lstat wrapper. */
7018 return lstat ("conftest.sym/", &sbuf) == 0;
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 rm -f conftest$ac_exeext
7024 if { (ac_try="$ac_link"
7025 case "(($ac_try" in
7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7028 esac
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030 (eval "$ac_link") 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7034 { (case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_try") 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7044 else
7045 echo "$as_me: program exited with status $ac_status" >&5
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 ( exit $ac_status )
7050 ac_cv_func_lstat_dereferences_slashed_symlink=no
7051 fi
7052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7053 fi
7054
7055
7056 else
7057 # If the `ln -s' command failed, then we probably don't even
7058 # have an lstat function.
7059 ac_cv_func_lstat_dereferences_slashed_symlink=no
7060 fi
7061 rm -f conftest.sym conftest.file
7062
7063 fi
7064 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7065 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7066
7067 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7068
7069 cat >>confdefs.h <<_ACEOF
7070 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7071 _ACEOF
7072
7073
7074 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7075 case " $LIBOBJS " in
7076 *" lstat.$ac_objext "* ) ;;
7077 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7078 ;;
7079 esac
7080
7081 fi
7082
7083 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7084 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
7085 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 if test "$cross_compiling" = yes; then
7089 ac_cv_func_lstat_empty_string_bug=yes
7090 else
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7098 int
7099 main ()
7100 {
7101 struct stat sbuf;
7102 return lstat ("", &sbuf) == 0;
7103 ;
7104 return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest$ac_exeext
7108 if { (ac_try="$ac_link"
7109 case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112 esac
7113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_link") 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7118 { (case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121 esac
7122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123 (eval "$ac_try") 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_func_lstat_empty_string_bug=no
7128 else
7129 echo "$as_me: program exited with status $ac_status" >&5
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 ( exit $ac_status )
7134 ac_cv_func_lstat_empty_string_bug=yes
7135 fi
7136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 fi
7138
7139
7140 fi
7141 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7142 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
7143 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7144 case " $LIBOBJS " in
7145 *" lstat.$ac_objext "* ) ;;
7146 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7147 ;;
7148 esac
7149
7150
7151 cat >>confdefs.h <<_ACEOF
7152 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7153 _ACEOF
7154
7155 fi
7156
7157
7158 for ac_header in stdlib.h
7159 do
7160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 fi
7167 ac_res=`eval echo '${'$as_ac_Header'}'`
7168 { echo "$as_me:$LINENO: result: $ac_res" >&5
7169 echo "${ECHO_T}$ac_res" >&6; }
7170 else
7171 # Is the header compilable?
7172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7181 #include <$ac_header>
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
7200 ac_header_compiler=yes
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 ac_header_compiler=no
7206 fi
7207
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7210 echo "${ECHO_T}$ac_header_compiler" >&6; }
7211
7212 # Is the header present?
7213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7215 cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h. */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 #include <$ac_header>
7222 _ACEOF
7223 if { (ac_try="$ac_cpp conftest.$ac_ext"
7224 case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227 esac
7228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } >/dev/null && {
7236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 }; then
7239 ac_header_preproc=yes
7240 else
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ac_header_preproc=no
7245 fi
7246
7247 rm -f conftest.err conftest.$ac_ext
7248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7249 echo "${ECHO_T}$ac_header_preproc" >&6; }
7250
7251 # So? What about this header?
7252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7253 yes:no: )
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7258 ac_header_preproc=yes
7259 ;;
7260 no:yes:* )
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7273
7274 ;;
7275 esac
7276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281 eval "$as_ac_Header=\$ac_header_preproc"
7282 fi
7283 ac_res=`eval echo '${'$as_ac_Header'}'`
7284 { echo "$as_me:$LINENO: result: $ac_res" >&5
7285 echo "${ECHO_T}$ac_res" >&6; }
7286
7287 fi
7288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7289 cat >>confdefs.h <<_ACEOF
7290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291 _ACEOF
7292
7293 fi
7294
7295 done
7296
7297 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7298 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
7299 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 if test "$cross_compiling" = yes; then
7303 ac_cv_func_malloc_0_nonnull=no
7304 else
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7312 # include <stdlib.h>
7313 #else
7314 char *malloc ();
7315 #endif
7316
7317 int
7318 main ()
7319 {
7320 return ! malloc (0);
7321 ;
7322 return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest$ac_exeext
7326 if { (ac_try="$ac_link"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_link") 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7336 { (case "(($ac_try" in
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7339 esac
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_try") 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7345 ac_cv_func_malloc_0_nonnull=yes
7346 else
7347 echo "$as_me: program exited with status $ac_status" >&5
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ( exit $ac_status )
7352 ac_cv_func_malloc_0_nonnull=no
7353 fi
7354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7355 fi
7356
7357
7358 fi
7359 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7360 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
7361 if test $ac_cv_func_malloc_0_nonnull = yes; then
7362
7363 cat >>confdefs.h <<\_ACEOF
7364 #define HAVE_MALLOC 1
7365 _ACEOF
7366
7367 else
7368 cat >>confdefs.h <<\_ACEOF
7369 #define HAVE_MALLOC 0
7370 _ACEOF
7371
7372 case " $LIBOBJS " in
7373 *" malloc.$ac_objext "* ) ;;
7374 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7375 ;;
7376 esac
7377
7378
7379 cat >>confdefs.h <<\_ACEOF
7380 #define malloc rpl_malloc
7381 _ACEOF
7382
7383 fi
7384
7385
7386
7387 { echo "$as_me:$LINENO: checking for working memcmp" >&5
7388 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
7389 if test "${ac_cv_func_memcmp_working+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 if test "$cross_compiling" = yes; then
7393 ac_cv_func_memcmp_working=no
7394 else
7395 cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h. */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 $ac_includes_default
7402 int
7403 main ()
7404 {
7405
7406 /* Some versions of memcmp are not 8-bit clean. */
7407 char c0 = '\100', c1 = '\200', c2 = '\201';
7408 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7409 return 1;
7410
7411 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7412 or more and with at least one buffer not starting on a 4-byte boundary.
7413 William Lewis provided this test program. */
7414 {
7415 char foo[21];
7416 char bar[21];
7417 int i;
7418 for (i = 0; i < 4; i++)
7419 {
7420 char *a = foo + i;
7421 char *b = bar + i;
7422 strcpy (a, "--------01111111");
7423 strcpy (b, "--------10000000");
7424 if (memcmp (a, b, 16) >= 0)
7425 return 1;
7426 }
7427 return 0;
7428 }
7429
7430 ;
7431 return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest$ac_exeext
7435 if { (ac_try="$ac_link"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_link") 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7445 { (case "(($ac_try" in
7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 *) ac_try_echo=$ac_try;;
7448 esac
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450 (eval "$ac_try") 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 ac_cv_func_memcmp_working=yes
7455 else
7456 echo "$as_me: program exited with status $ac_status" >&5
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7459
7460 ( exit $ac_status )
7461 ac_cv_func_memcmp_working=no
7462 fi
7463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7464 fi
7465
7466
7467 fi
7468 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7469 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7470 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7471 *" memcmp.$ac_objext "* ) ;;
7472 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7473 ;;
7474 esac
7475
7476
7477
7478
7479 for ac_header in stdlib.h unistd.h
7480 do
7481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 fi
7488 ac_res=`eval echo '${'$as_ac_Header'}'`
7489 { echo "$as_me:$LINENO: result: $ac_res" >&5
7490 echo "${ECHO_T}$ac_res" >&6; }
7491 else
7492 # Is the header compilable?
7493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7502 #include <$ac_header>
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (ac_try="$ac_compile"
7506 case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509 esac
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_header_compiler=yes
7522 else
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 ac_header_compiler=no
7527 fi
7528
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531 echo "${ECHO_T}$ac_header_compiler" >&6; }
7532
7533 # Is the header present?
7534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 #include <$ac_header>
7543 _ACEOF
7544 if { (ac_try="$ac_cpp conftest.$ac_ext"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } >/dev/null && {
7557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 }; then
7560 ac_header_preproc=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ac_header_preproc=no
7566 fi
7567
7568 rm -f conftest.err conftest.$ac_ext
7569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7570 echo "${ECHO_T}$ac_header_preproc" >&6; }
7571
7572 # So? What about this header?
7573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7574 yes:no: )
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7579 ac_header_preproc=yes
7580 ;;
7581 no:yes:* )
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7594
7595 ;;
7596 esac
7597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602 eval "$as_ac_Header=\$ac_header_preproc"
7603 fi
7604 ac_res=`eval echo '${'$as_ac_Header'}'`
7605 { echo "$as_me:$LINENO: result: $ac_res" >&5
7606 echo "${ECHO_T}$ac_res" >&6; }
7607
7608 fi
7609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7610 cat >>confdefs.h <<_ACEOF
7611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7612 _ACEOF
7613
7614 fi
7615
7616 done
7617
7618
7619 for ac_func in getpagesize
7620 do
7621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7635 #define $ac_func innocuous_$ac_func
7636
7637 /* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char $ac_func (); below.
7639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 <limits.h> exists even on freestanding compilers. */
7641
7642 #ifdef __STDC__
7643 # include <limits.h>
7644 #else
7645 # include <assert.h>
7646 #endif
7647
7648 #undef $ac_func
7649
7650 /* Override any GCC internal prototype to avoid an error.
7651 Use char because int might match the return type of a GCC
7652 builtin and then its argument prototype would still apply. */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 char $ac_func ();
7657 /* The GNU C library defines this for functions which it implements
7658 to always fail with ENOSYS. Some functions are actually named
7659 something starting with __ and the normal name is an alias. */
7660 #if defined __stub_$ac_func || defined __stub___$ac_func
7661 choke me
7662 #endif
7663
7664 int
7665 main ()
7666 {
7667 return $ac_func ();
7668 ;
7669 return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (ac_try="$ac_link"
7674 case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677 esac
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_link") 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest$ac_exeext &&
7689 $as_test_x conftest$ac_exeext; then
7690 eval "$as_ac_var=yes"
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695 eval "$as_ac_var=no"
7696 fi
7697
7698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7699 conftest$ac_exeext conftest.$ac_ext
7700 fi
7701 ac_res=`eval echo '${'$as_ac_var'}'`
7702 { echo "$as_me:$LINENO: result: $ac_res" >&5
7703 echo "${ECHO_T}$ac_res" >&6; }
7704 if test `eval echo '${'$as_ac_var'}'` = yes; then
7705 cat >>confdefs.h <<_ACEOF
7706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7707 _ACEOF
7708
7709 fi
7710 done
7711
7712 { echo "$as_me:$LINENO: checking for working mmap" >&5
7713 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7714 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 if test "$cross_compiling" = yes; then
7718 ac_cv_func_mmap_fixed_mapped=no
7719 else
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 /* malloc might have been renamed as rpl_malloc. */
7728 #undef malloc
7729
7730 /* Thanks to Mike Haertel and Jim Avera for this test.
7731 Here is a matrix of mmap possibilities:
7732 mmap private not fixed
7733 mmap private fixed at somewhere currently unmapped
7734 mmap private fixed at somewhere already mapped
7735 mmap shared not fixed
7736 mmap shared fixed at somewhere currently unmapped
7737 mmap shared fixed at somewhere already mapped
7738 For private mappings, we should verify that changes cannot be read()
7739 back from the file, nor mmap's back from the file at a different
7740 address. (There have been systems where private was not correctly
7741 implemented like the infamous i386 svr4.0, and systems where the
7742 VM page cache was not coherent with the file system buffer cache
7743 like early versions of FreeBSD and possibly contemporary NetBSD.)
7744 For shared mappings, we should conversely verify that changes get
7745 propagated back to all the places they're supposed to be.
7746
7747 Grep wants private fixed already mapped.
7748 The main things grep needs to know about mmap are:
7749 * does it exist and is it safe to write into the mmap'd area
7750 * how to use it (BSD variants) */
7751
7752 #include <fcntl.h>
7753 #include <sys/mman.h>
7754
7755 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7756 char *malloc ();
7757 #endif
7758
7759 /* This mess was copied from the GNU getpagesize.h. */
7760 #ifndef HAVE_GETPAGESIZE
7761 /* Assume that all systems that can run configure have sys/param.h. */
7762 # ifndef HAVE_SYS_PARAM_H
7763 # define HAVE_SYS_PARAM_H 1
7764 # endif
7765
7766 # ifdef _SC_PAGESIZE
7767 # define getpagesize() sysconf(_SC_PAGESIZE)
7768 # else /* no _SC_PAGESIZE */
7769 # ifdef HAVE_SYS_PARAM_H
7770 # include <sys/param.h>
7771 # ifdef EXEC_PAGESIZE
7772 # define getpagesize() EXEC_PAGESIZE
7773 # else /* no EXEC_PAGESIZE */
7774 # ifdef NBPG
7775 # define getpagesize() NBPG * CLSIZE
7776 # ifndef CLSIZE
7777 # define CLSIZE 1
7778 # endif /* no CLSIZE */
7779 # else /* no NBPG */
7780 # ifdef NBPC
7781 # define getpagesize() NBPC
7782 # else /* no NBPC */
7783 # ifdef PAGESIZE
7784 # define getpagesize() PAGESIZE
7785 # endif /* PAGESIZE */
7786 # endif /* no NBPC */
7787 # endif /* no NBPG */
7788 # endif /* no EXEC_PAGESIZE */
7789 # else /* no HAVE_SYS_PARAM_H */
7790 # define getpagesize() 8192 /* punt totally */
7791 # endif /* no HAVE_SYS_PARAM_H */
7792 # endif /* no _SC_PAGESIZE */
7793
7794 #endif /* no HAVE_GETPAGESIZE */
7795
7796 int
7797 main ()
7798 {
7799 char *data, *data2, *data3;
7800 int i, pagesize;
7801 int fd;
7802
7803 pagesize = getpagesize ();
7804
7805 /* First, make a file with some known garbage in it. */
7806 data = (char *) malloc (pagesize);
7807 if (!data)
7808 return 1;
7809 for (i = 0; i < pagesize; ++i)
7810 *(data + i) = rand ();
7811 umask (0);
7812 fd = creat ("conftest.mmap", 0600);
7813 if (fd < 0)
7814 return 1;
7815 if (write (fd, data, pagesize) != pagesize)
7816 return 1;
7817 close (fd);
7818
7819 /* Next, try to mmap the file at a fixed address which already has
7820 something else allocated at it. If we can, also make sure that
7821 we see the same garbage. */
7822 fd = open ("conftest.mmap", O_RDWR);
7823 if (fd < 0)
7824 return 1;
7825 data2 = (char *) malloc (2 * pagesize);
7826 if (!data2)
7827 return 1;
7828 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7829 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7830 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7831 return 1;
7832 for (i = 0; i < pagesize; ++i)
7833 if (*(data + i) != *(data2 + i))
7834 return 1;
7835
7836 /* Finally, make sure that changes to the mapped area do not
7837 percolate back to the file as seen by read(). (This is a bug on
7838 some variants of i386 svr4.0.) */
7839 for (i = 0; i < pagesize; ++i)
7840 *(data2 + i) = *(data2 + i) + 1;
7841 data3 = (char *) malloc (pagesize);
7842 if (!data3)
7843 return 1;
7844 if (read (fd, data3, pagesize) != pagesize)
7845 return 1;
7846 for (i = 0; i < pagesize; ++i)
7847 if (*(data + i) != *(data3 + i))
7848 return 1;
7849 close (fd);
7850 return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7855 case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_link") 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7864 { (case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_try") 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 ac_cv_func_mmap_fixed_mapped=yes
7874 else
7875 echo "$as_me: program exited with status $ac_status" >&5
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 ( exit $ac_status )
7880 ac_cv_func_mmap_fixed_mapped=no
7881 fi
7882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7883 fi
7884
7885
7886 fi
7887 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7888 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_MMAP 1
7893 _ACEOF
7894
7895 fi
7896 rm -f conftest.mmap
7897
7898 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7899 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7900 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903 if test "$cross_compiling" = yes; then
7904 ac_cv_func_stat_empty_string_bug=yes
7905 else
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 $ac_includes_default
7913 int
7914 main ()
7915 {
7916 struct stat sbuf;
7917 return stat ("", &sbuf) == 0;
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7924 case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7933 { (case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_try") 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_func_stat_empty_string_bug=no
7943 else
7944 echo "$as_me: program exited with status $ac_status" >&5
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948 ( exit $ac_status )
7949 ac_cv_func_stat_empty_string_bug=yes
7950 fi
7951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7952 fi
7953
7954
7955 fi
7956 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7957 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7958 if test $ac_cv_func_stat_empty_string_bug = yes; then
7959 case " $LIBOBJS " in
7960 *" stat.$ac_objext "* ) ;;
7961 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7962 ;;
7963 esac
7964
7965
7966 cat >>confdefs.h <<_ACEOF
7967 #define HAVE_STAT_EMPTY_STRING_BUG 1
7968 _ACEOF
7969
7970 fi
7971
7972 { echo "$as_me:$LINENO: checking for working strtod" >&5
7973 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
7974 if test "${ac_cv_func_strtod+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 if test "$cross_compiling" = yes; then
7978 ac_cv_func_strtod=no
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986
7987 $ac_includes_default
7988 #ifndef strtod
7989 double strtod ();
7990 #endif
7991 int
7992 main()
7993 {
7994 {
7995 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7996 char *string = " +69";
7997 char *term;
7998 double value;
7999 value = strtod (string, &term);
8000 if (value != 69 || term != (string + 4))
8001 return 1;
8002 }
8003
8004 {
8005 /* Under Solaris 2.4, strtod returns the wrong value for the
8006 terminating character under some conditions. */
8007 char *string = "NaN";
8008 char *term;
8009 strtod (string, &term);
8010 if (term != string && *(term - 1) == 0)
8011 return 1;
8012 }
8013 return 0;
8014 }
8015
8016 _ACEOF
8017 rm -f conftest$ac_exeext
8018 if { (ac_try="$ac_link"
8019 case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_link") 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8028 { (case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_try") 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_func_strtod=yes
8038 else
8039 echo "$as_me: program exited with status $ac_status" >&5
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ( exit $ac_status )
8044 ac_cv_func_strtod=no
8045 fi
8046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8047 fi
8048
8049
8050 fi
8051 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8052 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
8053 if test $ac_cv_func_strtod = no; then
8054 case " $LIBOBJS " in
8055 *" strtod.$ac_objext "* ) ;;
8056 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8057 ;;
8058 esac
8059
8060 { echo "$as_me:$LINENO: checking for pow" >&5
8061 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
8062 if test "${ac_cv_func_pow+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8073 #define pow innocuous_pow
8074
8075 /* System header to define __stub macros and hopefully few prototypes,
8076 which can conflict with char pow (); below.
8077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8078 <limits.h> exists even on freestanding compilers. */
8079
8080 #ifdef __STDC__
8081 # include <limits.h>
8082 #else
8083 # include <assert.h>
8084 #endif
8085
8086 #undef pow
8087
8088 /* Override any GCC internal prototype to avoid an error.
8089 Use char because int might match the return type of a GCC
8090 builtin and then its argument prototype would still apply. */
8091 #ifdef __cplusplus
8092 extern "C"
8093 #endif
8094 char pow ();
8095 /* The GNU C library defines this for functions which it implements
8096 to always fail with ENOSYS. Some functions are actually named
8097 something starting with __ and the normal name is an alias. */
8098 #if defined __stub_pow || defined __stub___pow
8099 choke me
8100 #endif
8101
8102 int
8103 main ()
8104 {
8105 return pow ();
8106 ;
8107 return 0;
8108 }
8109 _ACEOF
8110 rm -f conftest.$ac_objext conftest$ac_exeext
8111 if { (ac_try="$ac_link"
8112 case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_link") 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest$ac_exeext &&
8127 $as_test_x conftest$ac_exeext; then
8128 ac_cv_func_pow=yes
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_cv_func_pow=no
8134 fi
8135
8136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8137 conftest$ac_exeext conftest.$ac_ext
8138 fi
8139 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8140 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
8141
8142 if test $ac_cv_func_pow = no; then
8143 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8144 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
8145 if test "${ac_cv_lib_m_pow+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 ac_check_lib_save_LIBS=$LIBS
8149 LIBS="-lm $LIBS"
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156
8157 /* Override any GCC internal prototype to avoid an error.
8158 Use char because int might match the return type of a GCC
8159 builtin and then its argument prototype would still apply. */
8160 #ifdef __cplusplus
8161 extern "C"
8162 #endif
8163 char pow ();
8164 int
8165 main ()
8166 {
8167 return pow ();
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest$ac_exeext &&
8189 $as_test_x conftest$ac_exeext; then
8190 ac_cv_lib_m_pow=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_cv_lib_m_pow=no
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199 conftest$ac_exeext conftest.$ac_ext
8200 LIBS=$ac_check_lib_save_LIBS
8201 fi
8202 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8203 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
8204 if test $ac_cv_lib_m_pow = yes; then
8205 POW_LIB=-lm
8206 else
8207 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8208 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8209 fi
8210
8211 fi
8212
8213 fi
8214
8215
8216 for ac_func in vprintf
8217 do
8218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8232 #define $ac_func innocuous_$ac_func
8233
8234 /* System header to define __stub macros and hopefully few prototypes,
8235 which can conflict with char $ac_func (); below.
8236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8237 <limits.h> exists even on freestanding compilers. */
8238
8239 #ifdef __STDC__
8240 # include <limits.h>
8241 #else
8242 # include <assert.h>
8243 #endif
8244
8245 #undef $ac_func
8246
8247 /* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 char $ac_func ();
8254 /* The GNU C library defines this for functions which it implements
8255 to always fail with ENOSYS. Some functions are actually named
8256 something starting with __ and the normal name is an alias. */
8257 #if defined __stub_$ac_func || defined __stub___$ac_func
8258 choke me
8259 #endif
8260
8261 int
8262 main ()
8263 {
8264 return $ac_func ();
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext conftest$ac_exeext
8270 if { (ac_try="$ac_link"
8271 case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_link") 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest$ac_exeext &&
8286 $as_test_x conftest$ac_exeext; then
8287 eval "$as_ac_var=yes"
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 eval "$as_ac_var=no"
8293 fi
8294
8295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8296 conftest$ac_exeext conftest.$ac_ext
8297 fi
8298 ac_res=`eval echo '${'$as_ac_var'}'`
8299 { echo "$as_me:$LINENO: result: $ac_res" >&5
8300 echo "${ECHO_T}$ac_res" >&6; }
8301 if test `eval echo '${'$as_ac_var'}'` = yes; then
8302 cat >>confdefs.h <<_ACEOF
8303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8304 _ACEOF
8305
8306 { echo "$as_me:$LINENO: checking for _doprnt" >&5
8307 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8308 if test "${ac_cv_func__doprnt+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8319 #define _doprnt innocuous__doprnt
8320
8321 /* System header to define __stub macros and hopefully few prototypes,
8322 which can conflict with char _doprnt (); below.
8323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324 <limits.h> exists even on freestanding compilers. */
8325
8326 #ifdef __STDC__
8327 # include <limits.h>
8328 #else
8329 # include <assert.h>
8330 #endif
8331
8332 #undef _doprnt
8333
8334 /* Override any GCC internal prototype to avoid an error.
8335 Use char because int might match the return type of a GCC
8336 builtin and then its argument prototype would still apply. */
8337 #ifdef __cplusplus
8338 extern "C"
8339 #endif
8340 char _doprnt ();
8341 /* The GNU C library defines this for functions which it implements
8342 to always fail with ENOSYS. Some functions are actually named
8343 something starting with __ and the normal name is an alias. */
8344 #if defined __stub__doprnt || defined __stub____doprnt
8345 choke me
8346 #endif
8347
8348 int
8349 main ()
8350 {
8351 return _doprnt ();
8352 ;
8353 return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_link") 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest$ac_exeext &&
8373 $as_test_x conftest$ac_exeext; then
8374 ac_cv_func__doprnt=yes
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_cv_func__doprnt=no
8380 fi
8381
8382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8383 conftest$ac_exeext conftest.$ac_ext
8384 fi
8385 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8386 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8387 if test $ac_cv_func__doprnt = yes; then
8388
8389 cat >>confdefs.h <<\_ACEOF
8390 #define HAVE_DOPRNT 1
8391 _ACEOF
8392
8393 fi
8394
8395 fi
8396 done
8397
8398
8399
8400 ################################################################################
8401
8402
8403 ################################################################################
8404 { echo "$as_me:$LINENO: checking file owner" >&5
8405 echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
8406 OWNER="root"
8407
8408
8409 # Check whether --with-user was given.
8410 if test "${with_user+set}" = set; then
8411 withval=$with_user; OWNER="$withval"
8412 fi
8413
8414 { echo "$as_me:$LINENO: result: $OWNER" >&5
8415 echo "${ECHO_T}$OWNER" >&6; }
8416
8417 if test x$OWNER != x; then
8418 OWNER="-o $OWNER"
8419 fi
8420
8421 ################################################################################
8422 { echo "$as_me:$LINENO: checking group owner" >&5
8423 echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
8424 GROUP="root"
8425
8426 # Check whether --with-group was given.
8427 if test "${with_group+set}" = set; then
8428 withval=$with_group; GROUP="$withval"
8429 fi
8430
8431 { echo "$as_me:$LINENO: result: $GROUP" >&5
8432 echo "${ECHO_T}$GROUP" >&6; }
8433
8434 if test x$GROUP != x; then
8435 GROUP="-g $GROUP"
8436 fi
8437
8438 ################################################################################
8439 { echo "$as_me:$LINENO: checking device node uid" >&5
8440 echo $ECHO_N "checking device node uid... $ECHO_C" >&6; }
8441
8442
8443 # Check whether --with-device-uid was given.
8444 if test "${with_device_uid+set}" = set; then
8445 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8446 else
8447 DM_DEVICE_UID="0"
8448 fi
8449
8450 { echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8451 echo "${ECHO_T}$DM_DEVICE_UID" >&6; }
8452
8453 ################################################################################
8454 { echo "$as_me:$LINENO: checking device node gid" >&5
8455 echo $ECHO_N "checking device node gid... $ECHO_C" >&6; }
8456
8457
8458 # Check whether --with-device-gid was given.
8459 if test "${with_device_gid+set}" = set; then
8460 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8461 else
8462 DM_DEVICE_GID="0"
8463 fi
8464
8465 { echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8466 echo "${ECHO_T}$DM_DEVICE_GID" >&6; }
8467
8468 ################################################################################
8469 { echo "$as_me:$LINENO: checking device node mode" >&5
8470 echo $ECHO_N "checking device node mode... $ECHO_C" >&6; }
8471
8472
8473 # Check whether --with-device-mode was given.
8474 if test "${with_device_mode+set}" = set; then
8475 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8476 else
8477 DM_DEVICE_MODE="0600"
8478 fi
8479
8480 { echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8481 echo "${ECHO_T}$DM_DEVICE_MODE" >&6; }
8482
8483 ################################################################################
8484 { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8485 echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
8486 # Check whether --enable-lvm1_fallback was given.
8487 if test "${enable_lvm1_fallback+set}" = set; then
8488 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8489 else
8490 LVM1_FALLBACK=no
8491 fi
8492
8493 { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8494 echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
8495
8496 if test x$LVM1_FALLBACK = xyes; then
8497
8498 cat >>confdefs.h <<\_ACEOF
8499 #define LVM1_FALLBACK 1
8500 _ACEOF
8501
8502 fi
8503
8504 ################################################################################
8505 { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8506 echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
8507
8508 # Check whether --with-lvm1 was given.
8509 if test "${with_lvm1+set}" = set; then
8510 withval=$with_lvm1; LVM1="$withval"
8511 else
8512 LVM1="internal"
8513 fi
8514
8515 { echo "$as_me:$LINENO: result: $LVM1" >&5
8516 echo "${ECHO_T}$LVM1" >&6; }
8517
8518 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8519 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
8520 " >&5
8521 echo "$as_me: error: --with-lvm1 parameter invalid
8522 " >&2;}
8523 { (exit 1); exit 1; }; }
8524 fi;
8525
8526 if test x$LVM1 = xinternal; then
8527
8528 cat >>confdefs.h <<\_ACEOF
8529 #define LVM1_INTERNAL 1
8530 _ACEOF
8531
8532 fi
8533
8534 ################################################################################
8535 { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8536 echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
8537
8538 # Check whether --with-pool was given.
8539 if test "${with_pool+set}" = set; then
8540 withval=$with_pool; POOL="$withval"
8541 else
8542 POOL="internal"
8543 fi
8544
8545 { echo "$as_me:$LINENO: result: $POOL" >&5
8546 echo "${ECHO_T}$POOL" >&6; }
8547
8548 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
8549 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
8550 " >&5
8551 echo "$as_me: error: --with-pool parameter invalid
8552 " >&2;}
8553 { (exit 1); exit 1; }; }
8554 fi;
8555
8556 if test x$POOL = xinternal; then
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define POOL_INTERNAL 1
8560 _ACEOF
8561
8562 fi
8563
8564 ################################################################################
8565 { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8566 echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
8567
8568 # Check whether --with-cluster was given.
8569 if test "${with_cluster+set}" = set; then
8570 withval=$with_cluster; CLUSTER="$withval"
8571 fi
8572
8573 { echo "$as_me:$LINENO: result: $CLUSTER" >&5
8574 echo "${ECHO_T}$CLUSTER" >&6; }
8575
8576 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
8577 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
8578 " >&5
8579 echo "$as_me: error: --with-cluster parameter invalid
8580 " >&2;}
8581 { (exit 1); exit 1; }; }
8582 fi;
8583
8584 if test x$CLUSTER = xinternal; then
8585
8586 cat >>confdefs.h <<\_ACEOF
8587 #define CLUSTER_LOCKING_INTERNAL 1
8588 _ACEOF
8589
8590 fi
8591
8592 ################################################################################
8593 { echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8594 echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
8595
8596 # Check whether --with-snapshots was given.
8597 if test "${with_snapshots+set}" = set; then
8598 withval=$with_snapshots; SNAPSHOTS="$withval"
8599 else
8600 SNAPSHOTS="internal"
8601 fi
8602
8603 { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8604 echo "${ECHO_T}$SNAPSHOTS" >&6; }
8605
8606 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
8607 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
8608 " >&5
8609 echo "$as_me: error: --with-snapshots parameter invalid
8610 " >&2;}
8611 { (exit 1); exit 1; }; }
8612 fi;
8613
8614 if test x$SNAPSHOTS = xinternal; then
8615
8616 cat >>confdefs.h <<\_ACEOF
8617 #define SNAPSHOT_INTERNAL 1
8618 _ACEOF
8619
8620 fi
8621
8622 ################################################################################
8623 { echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8624 echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
8625
8626 # Check whether --with-mirrors was given.
8627 if test "${with_mirrors+set}" = set; then
8628 withval=$with_mirrors; MIRRORS="$withval"
8629 else
8630 MIRRORS="internal"
8631 fi
8632
8633 { echo "$as_me:$LINENO: result: $MIRRORS" >&5
8634 echo "${ECHO_T}$MIRRORS" >&6; }
8635
8636 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
8637 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
8638 " >&5
8639 echo "$as_me: error: --with-mirrors parameter invalid
8640 " >&2;}
8641 { (exit 1); exit 1; }; }
8642 fi;
8643
8644 if test x$MIRRORS = xinternal; then
8645
8646 cat >>confdefs.h <<\_ACEOF
8647 #define MIRRORED_INTERNAL 1
8648 _ACEOF
8649
8650 fi
8651
8652 ################################################################################
8653 { echo "$as_me:$LINENO: checking whether to enable readline" >&5
8654 echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
8655 # Check whether --enable-readline was given.
8656 if test "${enable_readline+set}" = set; then
8657 enableval=$enable_readline; READLINE=$enableval
8658 else
8659 READLINE=maybe
8660 fi
8661
8662 { echo "$as_me:$LINENO: result: $READLINE" >&5
8663 echo "${ECHO_T}$READLINE" >&6; }
8664
8665 ################################################################################
8666 { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8667 echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
8668 # Check whether --enable-realtime was given.
8669 if test "${enable_realtime+set}" = set; then
8670 enableval=$enable_realtime; REALTIME=$enableval
8671 fi
8672
8673 { echo "$as_me:$LINENO: result: $REALTIME" >&5
8674 echo "${ECHO_T}$REALTIME" >&6; }
8675
8676 ################################################################################
8677 { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8678 echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
8679
8680 # Check whether --with-clvmd was given.
8681 if test "${with_clvmd+set}" = set; then
8682 withval=$with_clvmd; CLVMD="$withval"
8683 else
8684 CLVMD="none"
8685 fi
8686
8687 if test x$CLVMD = xyes; then
8688 CLVMD=all
8689 fi
8690 { echo "$as_me:$LINENO: result: $CLVMD" >&5
8691 echo "${ECHO_T}$CLVMD" >&6; }
8692
8693 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8694 CLUSTER=internal
8695 fi
8696
8697 ################################################################################
8698 { echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8699 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
8700 # Check whether --enable-debug was given.
8701 if test "${enable_debug+set}" = set; then
8702 enableval=$enable_debug; DEBUG=$enableval
8703 else
8704 DEBUG=no
8705 fi
8706
8707 { echo "$as_me:$LINENO: result: $DEBUG" >&5
8708 echo "${ECHO_T}$DEBUG" >&6; }
8709
8710 if test x$DEBUG = xyes; then
8711 COPTIMISE_FLAG=
8712 else
8713 CSCOPE_CMD=
8714 fi
8715
8716 ################################################################################
8717 { echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8718 echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
8719
8720 # Check whether --with-optimisation was given.
8721 if test "${with_optimisation+set}" = set; then
8722 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8723 fi
8724
8725 { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8726 echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
8727
8728 ################################################################################
8729 { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8730 echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
8731 # Check whether --enable-profiling was given.
8732 if test "${enable_profiling+set}" = set; then
8733 enableval=$enable_profiling; PROFILING=$enableval
8734 else
8735 PROFILING=no
8736 fi
8737
8738 { echo "$as_me:$LINENO: result: $PROFILING" >&5
8739 echo "${ECHO_T}$PROFILING" >&6; }
8740
8741 if test "x$PROFILING" = xyes; then
8742 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8743 # Extract the first word of "lcov", so it can be a program name with args.
8744 set dummy lcov; ac_word=$2
8745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8747 if test "${ac_cv_path_LCOV+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 else
8750 case $LCOV in
8751 [\\/]* | ?:[\\/]*)
8752 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8753 ;;
8754 *)
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756 for as_dir in $PATH
8757 do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8762 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766 done
8767 done
8768 IFS=$as_save_IFS
8769
8770 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
8771 ;;
8772 esac
8773 fi
8774 LCOV=$ac_cv_path_LCOV
8775 if test -n "$LCOV"; then
8776 { echo "$as_me:$LINENO: result: $LCOV" >&5
8777 echo "${ECHO_T}$LCOV" >&6; }
8778 else
8779 { echo "$as_me:$LINENO: result: no" >&5
8780 echo "${ECHO_T}no" >&6; }
8781 fi
8782
8783
8784 # Extract the first word of "genhtml", so it can be a program name with args.
8785 set dummy genhtml; ac_word=$2
8786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8788 if test "${ac_cv_path_GENHTML+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 case $GENHTML in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8794 ;;
8795 *)
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8806 fi
8807 done
8808 done
8809 IFS=$as_save_IFS
8810
8811 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
8812 ;;
8813 esac
8814 fi
8815 GENHTML=$ac_cv_path_GENHTML
8816 if test -n "$GENHTML"; then
8817 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8818 echo "${ECHO_T}$GENHTML" >&6; }
8819 else
8820 { echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6; }
8822 fi
8823
8824
8825 if test "$LCOV" = no -o "$GENHTML" = no ; then
8826 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8827 echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
8828 { (exit 1); exit 1; }; }
8829 fi
8830 fi
8831
8832 ################################################################################
8833 { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8834 echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
8835 # Check whether --enable-devmapper was given.
8836 if test "${enable_devmapper+set}" = set; then
8837 enableval=$enable_devmapper; DEVMAPPER=$enableval
8838 fi
8839
8840 { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8841 echo "${ECHO_T}$DEVMAPPER" >&6; }
8842
8843 if test x$DEVMAPPER = xyes; then
8844
8845 cat >>confdefs.h <<\_ACEOF
8846 #define DEVMAPPER_SUPPORT 1
8847 _ACEOF
8848
8849 fi
8850
8851 ################################################################################
8852 # Check whether --enable-compat was given.
8853 if test "${enable_compat+set}" = set; then
8854 enableval=$enable_compat; DM_COMPAT=$enableval
8855 else
8856 DM_COMPAT=no
8857 fi
8858
8859
8860 ################################################################################
8861 # Check whether --enable-ioctl was given.
8862 if test "${enable_ioctl+set}" = set; then
8863 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8864 fi
8865
8866
8867 ################################################################################
8868 { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8869 echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
8870 # Check whether --enable-o_direct was given.
8871 if test "${enable_o_direct+set}" = set; then
8872 enableval=$enable_o_direct; ODIRECT=$enableval
8873 fi
8874
8875 { echo "$as_me:$LINENO: result: $ODIRECT" >&5
8876 echo "${ECHO_T}$ODIRECT" >&6; }
8877
8878 if test x$ODIRECT = xyes; then
8879
8880 cat >>confdefs.h <<\_ACEOF
8881 #define O_DIRECT_SUPPORT 1
8882 _ACEOF
8883
8884 fi
8885
8886 ################################################################################
8887 { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8888 echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
8889 # Check whether --enable-cmdlib was given.
8890 if test "${enable_cmdlib+set}" = set; then
8891 enableval=$enable_cmdlib; CMDLIB=$enableval
8892 else
8893 CMDLIB=no
8894 fi
8895
8896 { echo "$as_me:$LINENO: result: $CMDLIB" >&5
8897 echo "${ECHO_T}$CMDLIB" >&6; }
8898
8899 test x$CMDLIB = xyes \
8900 && LVM2CMD_LIB=-llvm2cmd \
8901 || LVM2CMD_LIB=
8902
8903 ################################################################################
8904 # Check whether --enable-pkgconfig was given.
8905 if test "${enable_pkgconfig+set}" = set; then
8906 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8907 else
8908 PKGCONFIG=no
8909 fi
8910
8911
8912 ################################################################################
8913 { echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8914 echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
8915 # Check whether --enable-fsadm was given.
8916 if test "${enable_fsadm+set}" = set; then
8917 enableval=$enable_fsadm; FSADM=$enableval
8918 fi
8919
8920 { echo "$as_me:$LINENO: result: $FSADM" >&5
8921 echo "${ECHO_T}$FSADM" >&6; }
8922
8923 ################################################################################
8924 { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8925 echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
8926 # Check whether --enable-dmeventd was given.
8927 if test "${enable_dmeventd+set}" = set; then
8928 enableval=$enable_dmeventd; DMEVENTD=$enableval
8929 fi
8930
8931 { echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8932 echo "${ECHO_T}$DMEVENTD" >&6; }
8933
8934 BUILD_DMEVENTD=$DMEVENTD
8935
8936 if test x$DMEVENTD = xyes; then
8937 if test x$MIRRORS != xinternal; then
8938 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
8939 " >&5
8940 echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
8941 " >&2;}
8942 { (exit 1); exit 1; }; }
8943 fi
8944 if test x$CMDLIB = xno; then
8945 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8946 " >&5
8947 echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8948 " >&2;}
8949 { (exit 1); exit 1; }; }
8950 fi
8951 fi
8952
8953 if test x$DMEVENTD = xyes; then
8954
8955 cat >>confdefs.h <<\_ACEOF
8956 #define DMEVENTD 1
8957 _ACEOF
8958
8959 fi
8960
8961 ################################################################################
8962
8963 { echo "$as_me:$LINENO: checking for getline in -lc" >&5
8964 echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; }
8965 if test "${ac_cv_lib_c_getline+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968 ac_check_lib_save_LIBS=$LIBS
8969 LIBS="-lc $LIBS"
8970 cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h. */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8976
8977 /* Override any GCC internal prototype to avoid an error.
8978 Use char because int might match the return type of a GCC
8979 builtin and then its argument prototype would still apply. */
8980 #ifdef __cplusplus
8981 extern "C"
8982 #endif
8983 char getline ();
8984 int
8985 main ()
8986 {
8987 return getline ();
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8994 case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_link") 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest$ac_exeext &&
9009 $as_test_x conftest$ac_exeext; then
9010 ac_cv_lib_c_getline=yes
9011 else
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 ac_cv_lib_c_getline=no
9016 fi
9017
9018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9019 conftest$ac_exeext conftest.$ac_ext
9020 LIBS=$ac_check_lib_save_LIBS
9021 fi
9022 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9023 echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; }
9024 if test $ac_cv_lib_c_getline = yes; then
9025
9026 cat >>confdefs.h <<\_ACEOF
9027 #define HAVE_GETLINE 1
9028 _ACEOF
9029
9030 fi
9031
9032
9033 ################################################################################
9034
9035 { echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9036 echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; }
9037 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-lc $LIBS"
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char canonicalize_file_name ();
9056 int
9057 main ()
9058 {
9059 return canonicalize_file_name ();
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9066 case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && {
9078 test -z "$ac_c_werror_flag" ||
9079 test ! -s conftest.err
9080 } && test -s conftest$ac_exeext &&
9081 $as_test_x conftest$ac_exeext; then
9082 ac_cv_lib_c_canonicalize_file_name=yes
9083 else
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 ac_cv_lib_c_canonicalize_file_name=no
9088 fi
9089
9090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 conftest$ac_exeext conftest.$ac_ext
9092 LIBS=$ac_check_lib_save_LIBS
9093 fi
9094 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9095 echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; }
9096 if test $ac_cv_lib_c_canonicalize_file_name = yes; then
9097
9098 cat >>confdefs.h <<\_ACEOF
9099 #define HAVE_CANONICALIZE_FILE_NAME 1
9100 _ACEOF
9101
9102 fi
9103
9104
9105 ################################################################################
9106 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9107 then exec_prefix="";
9108 fi;
9109
9110 ################################################################################
9111 if test x$READLINE != xno; then
9112 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9113 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
9114 if test "${ac_cv_search_tgetent+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 ac_func_search_save_LIBS=$LIBS
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124
9125 /* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 char tgetent ();
9132 int
9133 main ()
9134 {
9135 return tgetent ();
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 for ac_lib in '' ncurses curses termcap termlib; do
9141 if test -z "$ac_lib"; then
9142 ac_res="none required"
9143 else
9144 ac_res=-l$ac_lib
9145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9146 fi
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (ac_try="$ac_link"
9149 case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_link") 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && {
9161 test -z "$ac_c_werror_flag" ||
9162 test ! -s conftest.err
9163 } && test -s conftest$ac_exeext &&
9164 $as_test_x conftest$ac_exeext; then
9165 ac_cv_search_tgetent=$ac_res
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170
9171 fi
9172
9173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9174 conftest$ac_exeext
9175 if test "${ac_cv_search_tgetent+set}" = set; then
9176 break
9177 fi
9178 done
9179 if test "${ac_cv_search_tgetent+set}" = set; then
9180 :
9181 else
9182 ac_cv_search_tgetent=no
9183 fi
9184 rm conftest.$ac_ext
9185 LIBS=$ac_func_search_save_LIBS
9186 fi
9187 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9188 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
9189 ac_res=$ac_cv_search_tgetent
9190 if test "$ac_res" != no; then
9191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9192 tg_found=yes
9193 else
9194 tg_found=no
9195 fi
9196
9197 test x$READLINE:$tg_found = xyes:no &&
9198 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
9199 --enable-readline option (which is enabled by default). Either disable readline
9200 support with --disable-readline or download and install termcap from:
9201 ftp.gnu.org/gnu/termcap
9202 Note: if you are using precompiled packages you will also need the development
9203 package as well (which may be called termcap-devel or something similar).
9204 Note: (n)curses also seems to work as a substitute for termcap. This was
9205 not found either - but you could try installing that as well.
9206 " >&5
9207 echo "$as_me: error: termcap could not be found which is required for the
9208 --enable-readline option (which is enabled by default). Either disable readline
9209 support with --disable-readline or download and install termcap from:
9210 ftp.gnu.org/gnu/termcap
9211 Note: if you are using precompiled packages you will also need the development
9212 package as well (which may be called termcap-devel or something similar).
9213 Note: (n)curses also seems to work as a substitute for termcap. This was
9214 not found either - but you could try installing that as well.
9215 " >&2;}
9216 { (exit 1); exit 1; }; }
9217 fi
9218
9219 ################################################################################
9220 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9221 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9222 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225 ac_check_lib_save_LIBS=$LIBS
9226 LIBS="-ldl $LIBS"
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233
9234 /* Override any GCC internal prototype to avoid an error.
9235 Use char because int might match the return type of a GCC
9236 builtin and then its argument prototype would still apply. */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 char dlopen ();
9241 int
9242 main ()
9243 {
9244 return dlopen ();
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (ac_try="$ac_link"
9251 case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_link") 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
9267 ac_cv_lib_dl_dlopen=yes
9268 else
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 ac_cv_lib_dl_dlopen=no
9273 fi
9274
9275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9276 conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9281 if test $ac_cv_lib_dl_dlopen = yes; then
9282 HAVE_LIBDL=yes
9283 else
9284 HAVE_LIBDL=no
9285 fi
9286
9287
9288 if [ "x$HAVE_LIBDL" = xyes ]; then
9289
9290 cat >>confdefs.h <<\_ACEOF
9291 #define HAVE_LIBDL 1
9292 _ACEOF
9293
9294 LIBS="-ldl $LIBS"
9295 else
9296 HAVE_LIBDL=no
9297 fi
9298
9299 ################################################################################
9300 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9301 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9302 \) -a "x$STATIC_LINK" = xyes ];
9303 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
9304 " >&5
9305 echo "$as_me: error: Features cannot be 'shared' when building statically
9306 " >&2;}
9307 { (exit 1); exit 1; }; }
9308 fi
9309
9310 ################################################################################
9311 { echo "$as_me:$LINENO: checking whether to use static linking" >&5
9312 echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
9313 # Check whether --enable-static_link was given.
9314 if test "${enable_static_link+set}" = set; then
9315 enableval=$enable_static_link; STATIC_LINK=$enableval
9316 else
9317 STATIC_LINK=no
9318 fi
9319
9320 { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9321 echo "${ECHO_T}$STATIC_LINK" >&6; }
9322
9323 ################################################################################
9324 { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9325 echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
9326 # Check whether --enable-selinux was given.
9327 if test "${enable_selinux+set}" = set; then
9328 enableval=$enable_selinux; SELINUX=$enableval
9329 fi
9330
9331 { echo "$as_me:$LINENO: result: $SELINUX" >&5
9332 echo "${ECHO_T}$SELINUX" >&6; }
9333
9334 ################################################################################
9335 if test x$SELINUX = xyes; then
9336 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9337 echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
9338 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 ac_check_lib_save_LIBS=$LIBS
9342 LIBS="-lsepol $LIBS"
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h. */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349
9350 /* Override any GCC internal prototype to avoid an error.
9351 Use char because int might match the return type of a GCC
9352 builtin and then its argument prototype would still apply. */
9353 #ifdef __cplusplus
9354 extern "C"
9355 #endif
9356 char sepol_check_context ();
9357 int
9358 main ()
9359 {
9360 return sepol_check_context ();
9361 ;
9362 return 0;
9363 }
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (ac_try="$ac_link"
9367 case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370 esac
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_link") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest$ac_exeext &&
9382 $as_test_x conftest$ac_exeext; then
9383 ac_cv_lib_sepol_sepol_check_context=yes
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 ac_cv_lib_sepol_sepol_check_context=no
9389 fi
9390
9391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9392 conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9394 fi
9395 { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9396 echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
9397 if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9398 HAVE_SEPOL=yes
9399 else
9400 HAVE_SEPOL=no
9401 fi
9402
9403
9404 if test x$HAVE_SEPOL = xyes; then
9405
9406 cat >>confdefs.h <<\_ACEOF
9407 #define HAVE_SEPOL 1
9408 _ACEOF
9409
9410 LIBS="-lsepol $LIBS"
9411 fi
9412
9413 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9414 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
9415 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418 ac_check_lib_save_LIBS=$LIBS
9419 LIBS="-lselinux $LIBS"
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 char is_selinux_enabled ();
9434 int
9435 main ()
9436 {
9437 return is_selinux_enabled ();
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext conftest$ac_exeext
9443 if { (ac_try="$ac_link"
9444 case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447 esac
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_link") 2>conftest.er1
9450 ac_status=$?
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && {
9456 test -z "$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9458 } && test -s conftest$ac_exeext &&
9459 $as_test_x conftest$ac_exeext; then
9460 ac_cv_lib_selinux_is_selinux_enabled=yes
9461 else
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465 ac_cv_lib_selinux_is_selinux_enabled=no
9466 fi
9467
9468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9469 conftest$ac_exeext conftest.$ac_ext
9470 LIBS=$ac_check_lib_save_LIBS
9471 fi
9472 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9473 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9474 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9475 HAVE_SELINUX=yes
9476 else
9477 HAVE_SELINUX=no
9478 fi
9479
9480
9481 if test x$HAVE_SELINUX = xyes; then
9482
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_SELINUX 1
9485 _ACEOF
9486
9487 LIBS="-lselinux $LIBS"
9488 else
9489 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9490 echo "$as_me: WARNING: Disabling selinux" >&2;}
9491 fi
9492
9493 # With --enable-static_link and selinux enabled, linking
9494 # fails on at least Debian unstable due to unsatisfied references
9495 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9496 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9497 lvm_saved_libs=$LIBS
9498 LIBS="$LIBS -static"
9499 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9500 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9501 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 ac_func_search_save_LIBS=$LIBS
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char pthread_mutex_lock ();
9519 int
9520 main ()
9521 {
9522 return pthread_mutex_lock ();
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 for ac_lib in '' pthread; do
9528 if test -z "$ac_lib"; then
9529 ac_res="none required"
9530 else
9531 ac_res=-l$ac_lib
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9533 fi
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9536 case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539 esac
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
9550 } && test -s conftest$ac_exeext &&
9551 $as_test_x conftest$ac_exeext; then
9552 ac_cv_search_pthread_mutex_lock=$ac_res
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557
9558 fi
9559
9560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561 conftest$ac_exeext
9562 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9563 break
9564 fi
9565 done
9566 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9567 :
9568 else
9569 ac_cv_search_pthread_mutex_lock=no
9570 fi
9571 rm conftest.$ac_ext
9572 LIBS=$ac_func_search_save_LIBS
9573 fi
9574 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9575 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9576 ac_res=$ac_cv_search_pthread_mutex_lock
9577 if test "$ac_res" != no; then
9578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9579 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9580 LIB_PTHREAD=-lpthread
9581 fi
9582
9583 LIBS=$lvm_saved_libs
9584 fi
9585 fi
9586
9587 ################################################################################
9588 if test x$REALTIME = xyes; then
9589 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9590 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-lrt $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char clock_gettime ();
9610 int
9611 main ()
9612 {
9613 return clock_gettime ();
9614 ;
9615 return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
9636 ac_cv_lib_rt_clock_gettime=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641 ac_cv_lib_rt_clock_gettime=no
9642 fi
9643
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9646 LIBS=$ac_check_lib_save_LIBS
9647 fi
9648 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9649 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9650 if test $ac_cv_lib_rt_clock_gettime = yes; then
9651 HAVE_REALTIME=yes
9652 else
9653 HAVE_REALTIME=no
9654 fi
9655
9656
9657 if test x$HAVE_REALTIME = xyes; then
9658
9659 cat >>confdefs.h <<\_ACEOF
9660 #define HAVE_REALTIME 1
9661 _ACEOF
9662
9663 LIBS="-lrt $LIBS"
9664 else
9665 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9666 echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9667 fi
9668 fi
9669
9670 ################################################################################
9671
9672 for ac_header in getopt.h
9673 do
9674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 fi
9681 ac_res=`eval echo '${'$as_ac_Header'}'`
9682 { echo "$as_me:$LINENO: result: $ac_res" >&5
9683 echo "${ECHO_T}$ac_res" >&6; }
9684 else
9685 # Is the header compilable?
9686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 $ac_includes_default
9695 #include <$ac_header>
9696 _ACEOF
9697 rm -f conftest.$ac_objext
9698 if { (ac_try="$ac_compile"
9699 case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702 esac
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_compile") 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest.$ac_objext; then
9714 ac_header_compiler=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_header_compiler=no
9720 fi
9721
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9724 echo "${ECHO_T}$ac_header_compiler" >&6; }
9725
9726 # Is the header present?
9727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 #include <$ac_header>
9736 _ACEOF
9737 if { (ac_try="$ac_cpp conftest.$ac_ext"
9738 case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741 esac
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } >/dev/null && {
9750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 }; then
9753 ac_header_preproc=yes
9754 else
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_header_preproc=no
9759 fi
9760
9761 rm -f conftest.err conftest.$ac_ext
9762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9763 echo "${ECHO_T}$ac_header_preproc" >&6; }
9764
9765 # So? What about this header?
9766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9767 yes:no: )
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9772 ac_header_preproc=yes
9773 ;;
9774 no:yes:* )
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9787
9788 ;;
9789 esac
9790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 eval "$as_ac_Header=\$ac_header_preproc"
9796 fi
9797 ac_res=`eval echo '${'$as_ac_Header'}'`
9798 { echo "$as_me:$LINENO: result: $ac_res" >&5
9799 echo "${ECHO_T}$ac_res" >&6; }
9800
9801 fi
9802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9803 cat >>confdefs.h <<_ACEOF
9804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9805 _ACEOF
9806
9807 cat >>confdefs.h <<\_ACEOF
9808 #define HAVE_GETOPTLONG 1
9809 _ACEOF
9810
9811 fi
9812
9813 done
9814
9815
9816 ################################################################################
9817 if test x$READLINE != xno; then
9818 rl_found=yes
9819
9820 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9821 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
9822 if test "${ac_cv_lib_readline_readline+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 ac_check_lib_save_LIBS=$LIBS
9826 LIBS="-lreadline $LIBS"
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h. */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 char readline ();
9841 int
9842 main ()
9843 {
9844 return readline ();
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (ac_try="$ac_link"
9851 case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_link") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest$ac_exeext &&
9866 $as_test_x conftest$ac_exeext; then
9867 ac_cv_lib_readline_readline=yes
9868 else
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 ac_cv_lib_readline_readline=no
9873 fi
9874
9875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9876 conftest$ac_exeext conftest.$ac_ext
9877 LIBS=$ac_check_lib_save_LIBS
9878 fi
9879 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9880 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
9881 if test $ac_cv_lib_readline_readline = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883 #define HAVE_LIBREADLINE 1
9884 _ACEOF
9885
9886 LIBS="-lreadline $LIBS"
9887
9888 else
9889 rl_found=no
9890 fi
9891
9892 test x$READLINE:$rl_found = xyes:no &&
9893 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
9894 --enable-readline option (which is enabled by default). Either disable readline
9895 support with --disable-readline or download and install readline from:
9896 ftp.gnu.org/gnu/readline
9897 Note: if you are using precompiled packages you will also need the development
9898 package as well (which may be called readline-devel or something similar).
9899 " >&5
9900 echo "$as_me: error: GNU Readline could not be found which is required for the
9901 --enable-readline option (which is enabled by default). Either disable readline
9902 support with --disable-readline or download and install readline from:
9903 ftp.gnu.org/gnu/readline
9904 Note: if you are using precompiled packages you will also need the development
9905 package as well (which may be called readline-devel or something similar).
9906 " >&2;}
9907 { (exit 1); exit 1; }; }
9908 if test $rl_found = yes; then
9909
9910 for ac_func in rl_completion_matches
9911 do
9912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9926 #define $ac_func innocuous_$ac_func
9927
9928 /* System header to define __stub macros and hopefully few prototypes,
9929 which can conflict with char $ac_func (); below.
9930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9931 <limits.h> exists even on freestanding compilers. */
9932
9933 #ifdef __STDC__
9934 # include <limits.h>
9935 #else
9936 # include <assert.h>
9937 #endif
9938
9939 #undef $ac_func
9940
9941 /* Override any GCC internal prototype to avoid an error.
9942 Use char because int might match the return type of a GCC
9943 builtin and then its argument prototype would still apply. */
9944 #ifdef __cplusplus
9945 extern "C"
9946 #endif
9947 char $ac_func ();
9948 /* The GNU C library defines this for functions which it implements
9949 to always fail with ENOSYS. Some functions are actually named
9950 something starting with __ and the normal name is an alias. */
9951 #if defined __stub_$ac_func || defined __stub___$ac_func
9952 choke me
9953 #endif
9954
9955 int
9956 main ()
9957 {
9958 return $ac_func ();
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest$ac_exeext &&
9980 $as_test_x conftest$ac_exeext; then
9981 eval "$as_ac_var=yes"
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 eval "$as_ac_var=no"
9987 fi
9988
9989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9990 conftest$ac_exeext conftest.$ac_ext
9991 fi
9992 ac_res=`eval echo '${'$as_ac_var'}'`
9993 { echo "$as_me:$LINENO: result: $ac_res" >&5
9994 echo "${ECHO_T}$ac_res" >&6; }
9995 if test `eval echo '${'$as_ac_var'}'` = yes; then
9996 cat >>confdefs.h <<_ACEOF
9997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9998 _ACEOF
9999
10000 fi
10001 done
10002
10003
10004 cat >>confdefs.h <<\_ACEOF
10005 #define READLINE_SUPPORT 1
10006 _ACEOF
10007
10008 fi
10009 fi
10010
10011 ################################################################################
10012 { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10013 echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
10014 # Check whether --enable-nls was given.
10015 if test "${enable_nls+set}" = set; then
10016 enableval=$enable_nls; INTL=$enableval
10017 else
10018 INTL=no
10019 fi
10020
10021 { echo "$as_me:$LINENO: result: $INTL" >&5
10022 echo "${ECHO_T}$INTL" >&6; }
10023
10024 if test x$INTL = xyes; then
10025 # FIXME - Move this - can be device-mapper too
10026 INTL_PACKAGE="lvm2"
10027 # Extract the first word of "msgfmt", so it can be a program name with args.
10028 set dummy msgfmt; ac_word=$2
10029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10031 if test "${ac_cv_path_MSGFMT+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 case $MSGFMT in
10035 [\\/]* | ?:[\\/]*)
10036 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10037 ;;
10038 *)
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10041 do
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10046 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10048 break 2
10049 fi
10050 done
10051 done
10052 IFS=$as_save_IFS
10053
10054 ;;
10055 esac
10056 fi
10057 MSGFMT=$ac_cv_path_MSGFMT
10058 if test -n "$MSGFMT"; then
10059 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10060 echo "${ECHO_T}$MSGFMT" >&6; }
10061 else
10062 { echo "$as_me:$LINENO: result: no" >&5
10063 echo "${ECHO_T}no" >&6; }
10064 fi
10065
10066
10067 if [ "x$MSGFMT" == x ];
10068 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10069 " >&5
10070 echo "$as_me: error: msgfmt not found in path $PATH
10071 " >&2;}
10072 { (exit 1); exit 1; }; }
10073 fi;
10074
10075
10076 # Check whether --with-localedir was given.
10077 if test "${with_localedir+set}" = set; then
10078 withval=$with_localedir; LOCALEDIR="$withval"
10079 else
10080 LOCALEDIR='${prefix}/share/locale'
10081 fi
10082
10083 fi
10084
10085 ################################################################################
10086
10087 # Check whether --with-confdir was given.
10088 if test "${with_confdir+set}" = set; then
10089 withval=$with_confdir; CONFDIR="$withval"
10090 else
10091 CONFDIR='/etc'
10092 fi
10093
10094
10095
10096 # Check whether --with-staticdir was given.
10097 if test "${with_staticdir+set}" = set; then
10098 withval=$with_staticdir; STATICDIR="$withval"
10099 else
10100 STATICDIR='${exec_prefix}/sbin'
10101 fi
10102
10103
10104
10105 # Check whether --with-usrlibdir was given.
10106 if test "${with_usrlibdir+set}" = set; then
10107 withval=$with_usrlibdir; usrlibdir="$withval"
10108 else
10109 usrlibdir='${prefix}/lib'
10110 fi
10111
10112
10113
10114 # Check whether --with-usrsbindir was given.
10115 if test "${with_usrsbindir+set}" = set; then
10116 withval=$with_usrsbindir; usrsbindir="$withval"
10117 else
10118 usrsbindir='${prefix}/sbin'
10119 fi
10120
10121
10122 ################################################################################
10123 if test x$READLINE = xyes; then
10124
10125
10126 for ac_header in readline/readline.h readline/history.h
10127 do
10128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 fi
10135 ac_res=`eval echo '${'$as_ac_Header'}'`
10136 { echo "$as_me:$LINENO: result: $ac_res" >&5
10137 echo "${ECHO_T}$ac_res" >&6; }
10138 else
10139 # Is the header compilable?
10140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 $ac_includes_default
10149 #include <$ac_header>
10150 _ACEOF
10151 rm -f conftest.$ac_objext
10152 if { (ac_try="$ac_compile"
10153 case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156 esac
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_compile") 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
10167 } && test -s conftest.$ac_objext; then
10168 ac_header_compiler=yes
10169 else
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_header_compiler=no
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10178 echo "${ECHO_T}$ac_header_compiler" >&6; }
10179
10180 # Is the header present?
10181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <$ac_header>
10190 _ACEOF
10191 if { (ac_try="$ac_cpp conftest.$ac_ext"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } >/dev/null && {
10204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 }; then
10207 ac_header_preproc=yes
10208 else
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ac_header_preproc=no
10213 fi
10214
10215 rm -f conftest.err conftest.$ac_ext
10216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10217 echo "${ECHO_T}$ac_header_preproc" >&6; }
10218
10219 # So? What about this header?
10220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10221 yes:no: )
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10226 ac_header_preproc=yes
10227 ;;
10228 no:yes:* )
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10241
10242 ;;
10243 esac
10244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249 eval "$as_ac_Header=\$ac_header_preproc"
10250 fi
10251 ac_res=`eval echo '${'$as_ac_Header'}'`
10252 { echo "$as_me:$LINENO: result: $ac_res" >&5
10253 echo "${ECHO_T}$ac_res" >&6; }
10254
10255 fi
10256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10257 cat >>confdefs.h <<_ACEOF
10258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10259 _ACEOF
10260
10261 else
10262 { { echo "$as_me:$LINENO: error: bailing out" >&5
10263 echo "$as_me: error: bailing out" >&2;}
10264 { (exit 1); exit 1; }; }
10265 fi
10266
10267 done
10268
10269 fi
10270
10271 if test x$CLVMD != xnone; then
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282 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
10283 do
10284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 fi
10291 ac_res=`eval echo '${'$as_ac_Header'}'`
10292 { echo "$as_me:$LINENO: result: $ac_res" >&5
10293 echo "${ECHO_T}$ac_res" >&6; }
10294 else
10295 # Is the header compilable?
10296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 $ac_includes_default
10305 #include <$ac_header>
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (ac_try="$ac_compile"
10309 case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_compile") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
10324 ac_header_compiler=yes
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 ac_header_compiler=no
10330 fi
10331
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334 echo "${ECHO_T}$ac_header_compiler" >&6; }
10335
10336 # Is the header present?
10337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <$ac_header>
10346 _ACEOF
10347 if { (ac_try="$ac_cpp conftest.$ac_ext"
10348 case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351 esac
10352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } >/dev/null && {
10360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 }; then
10363 ac_header_preproc=yes
10364 else
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 ac_header_preproc=no
10369 fi
10370
10371 rm -f conftest.err conftest.$ac_ext
10372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10373 echo "${ECHO_T}$ac_header_preproc" >&6; }
10374
10375 # So? What about this header?
10376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10377 yes:no: )
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10382 ac_header_preproc=yes
10383 ;;
10384 no:yes:* )
10385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10397
10398 ;;
10399 esac
10400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 eval "$as_ac_Header=\$ac_header_preproc"
10406 fi
10407 ac_res=`eval echo '${'$as_ac_Header'}'`
10408 { echo "$as_me:$LINENO: result: $ac_res" >&5
10409 echo "${ECHO_T}$ac_res" >&6; }
10410
10411 fi
10412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10413 cat >>confdefs.h <<_ACEOF
10414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10415 _ACEOF
10416
10417 else
10418 { { echo "$as_me:$LINENO: error: bailing out" >&5
10419 echo "$as_me: error: bailing out" >&2;}
10420 { (exit 1); exit 1; }; }
10421 fi
10422
10423 done
10424
10425
10426
10427
10428
10429
10430 for ac_func in dup2 getmntent memmove select socket
10431 do
10432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h. */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10446 #define $ac_func innocuous_$ac_func
10447
10448 /* System header to define __stub macros and hopefully few prototypes,
10449 which can conflict with char $ac_func (); below.
10450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451 <limits.h> exists even on freestanding compilers. */
10452
10453 #ifdef __STDC__
10454 # include <limits.h>
10455 #else
10456 # include <assert.h>
10457 #endif
10458
10459 #undef $ac_func
10460
10461 /* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10464 #ifdef __cplusplus
10465 extern "C"
10466 #endif
10467 char $ac_func ();
10468 /* The GNU C library defines this for functions which it implements
10469 to always fail with ENOSYS. Some functions are actually named
10470 something starting with __ and the normal name is an alias. */
10471 #if defined __stub_$ac_func || defined __stub___$ac_func
10472 choke me
10473 #endif
10474
10475 int
10476 main ()
10477 {
10478 return $ac_func ();
10479 ;
10480 return 0;
10481 }
10482 _ACEOF
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_link") 2>conftest.er1
10491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
10499 } && test -s conftest$ac_exeext &&
10500 $as_test_x conftest$ac_exeext; then
10501 eval "$as_ac_var=yes"
10502 else
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10505
10506 eval "$as_ac_var=no"
10507 fi
10508
10509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10510 conftest$ac_exeext conftest.$ac_ext
10511 fi
10512 ac_res=`eval echo '${'$as_ac_var'}'`
10513 { echo "$as_me:$LINENO: result: $ac_res" >&5
10514 echo "${ECHO_T}$ac_res" >&6; }
10515 if test `eval echo '${'$as_ac_var'}'` = yes; then
10516 cat >>confdefs.h <<_ACEOF
10517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10518 _ACEOF
10519
10520 else
10521 { { echo "$as_me:$LINENO: error: bailing out" >&5
10522 echo "$as_me: error: bailing out" >&2;}
10523 { (exit 1); exit 1; }; }
10524 fi
10525 done
10526
10527 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10528 # -lseq on Dynix/PTX, -lgen on Unixware.
10529 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10530 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
10531 if test "${ac_cv_search_getmntent+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534 ac_func_search_save_LIBS=$LIBS
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char getmntent ();
10549 int
10550 main ()
10551 {
10552 return getmntent ();
10553 ;
10554 return 0;
10555 }
10556 _ACEOF
10557 for ac_lib in '' sun seq gen; do
10558 if test -z "$ac_lib"; then
10559 ac_res="none required"
10560 else
10561 ac_res=-l$ac_lib
10562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10563 fi
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
10582 ac_cv_search_getmntent=$ac_res
10583 else
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587
10588 fi
10589
10590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext
10592 if test "${ac_cv_search_getmntent+set}" = set; then
10593 break
10594 fi
10595 done
10596 if test "${ac_cv_search_getmntent+set}" = set; then
10597 :
10598 else
10599 ac_cv_search_getmntent=no
10600 fi
10601 rm conftest.$ac_ext
10602 LIBS=$ac_func_search_save_LIBS
10603 fi
10604 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10605 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
10606 ac_res=$ac_cv_search_getmntent
10607 if test "$ac_res" != no; then
10608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10609 ac_cv_func_getmntent=yes
10610
10611 cat >>confdefs.h <<\_ACEOF
10612 #define HAVE_GETMNTENT
10613 _ACEOF
10614
10615 else
10616 ac_cv_func_getmntent=no
10617 fi
10618
10619
10620 # AC_FUNC_REALLOC
10621
10622
10623 for ac_header in sys/select.h sys/socket.h
10624 do
10625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 fi
10632 ac_res=`eval echo '${'$as_ac_Header'}'`
10633 { echo "$as_me:$LINENO: result: $ac_res" >&5
10634 echo "${ECHO_T}$ac_res" >&6; }
10635 else
10636 # Is the header compilable?
10637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 $ac_includes_default
10646 #include <$ac_header>
10647 _ACEOF
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
10665 ac_header_compiler=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ac_header_compiler=no
10671 fi
10672
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10675 echo "${ECHO_T}$ac_header_compiler" >&6; }
10676
10677 # Is the header present?
10678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 #include <$ac_header>
10687 _ACEOF
10688 if { (ac_try="$ac_cpp conftest.$ac_ext"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } >/dev/null && {
10701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 }; then
10704 ac_header_preproc=yes
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_header_preproc=no
10710 fi
10711
10712 rm -f conftest.err conftest.$ac_ext
10713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10714 echo "${ECHO_T}$ac_header_preproc" >&6; }
10715
10716 # So? What about this header?
10717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10718 yes:no: )
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10723 ac_header_preproc=yes
10724 ;;
10725 no:yes:* )
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10738
10739 ;;
10740 esac
10741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746 eval "$as_ac_Header=\$ac_header_preproc"
10747 fi
10748 ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750 echo "${ECHO_T}$ac_res" >&6; }
10751
10752 fi
10753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10754 cat >>confdefs.h <<_ACEOF
10755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10756 _ACEOF
10757
10758 fi
10759
10760 done
10761
10762 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
10763 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
10764 if test "${ac_cv_func_select_args+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10768 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10769 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 $ac_includes_default
10777 #ifdef HAVE_SYS_SELECT_H
10778 # include <sys/select.h>
10779 #endif
10780 #ifdef HAVE_SYS_SOCKET_H
10781 # include <sys/socket.h>
10782 #endif
10783
10784 int
10785 main ()
10786 {
10787 extern int select ($ac_arg1,
10788 $ac_arg234, $ac_arg234, $ac_arg234,
10789 $ac_arg5);
10790 ;
10791 return 0;
10792 }
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (ac_try="$ac_compile"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_compile") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest.$ac_objext; then
10811 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816
10817 fi
10818
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 done
10821 done
10822 done
10823 # Provide a safe default value.
10824 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10825
10826 fi
10827 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10828 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
10829 ac_save_IFS=$IFS; IFS=','
10830 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10831 IFS=$ac_save_IFS
10832 shift
10833
10834 cat >>confdefs.h <<_ACEOF
10835 #define SELECT_TYPE_ARG1 $1
10836 _ACEOF
10837
10838
10839 cat >>confdefs.h <<_ACEOF
10840 #define SELECT_TYPE_ARG234 ($2)
10841 _ACEOF
10842
10843
10844 cat >>confdefs.h <<_ACEOF
10845 #define SELECT_TYPE_ARG5 ($3)
10846 _ACEOF
10847
10848 rm -f conftest*
10849
10850 fi
10851
10852 if test x$CLUSTER != xnone; then
10853
10854
10855 for ac_header in sys/socket.h sys/un.h
10856 do
10857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 fi
10864 ac_res=`eval echo '${'$as_ac_Header'}'`
10865 { echo "$as_me:$LINENO: result: $ac_res" >&5
10866 echo "${ECHO_T}$ac_res" >&6; }
10867 else
10868 # Is the header compilable?
10869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 $ac_includes_default
10878 #include <$ac_header>
10879 _ACEOF
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_compile") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest.$ac_objext; then
10897 ac_header_compiler=yes
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902 ac_header_compiler=no
10903 fi
10904
10905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10907 echo "${ECHO_T}$ac_header_compiler" >&6; }
10908
10909 # Is the header present?
10910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h. */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 #include <$ac_header>
10919 _ACEOF
10920 if { (ac_try="$ac_cpp conftest.$ac_ext"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } >/dev/null && {
10933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 }; then
10936 ac_header_preproc=yes
10937 else
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10940
10941 ac_header_preproc=no
10942 fi
10943
10944 rm -f conftest.err conftest.$ac_ext
10945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10946 echo "${ECHO_T}$ac_header_preproc" >&6; }
10947
10948 # So? What about this header?
10949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10950 yes:no: )
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10955 ac_header_preproc=yes
10956 ;;
10957 no:yes:* )
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10970
10971 ;;
10972 esac
10973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978 eval "$as_ac_Header=\$ac_header_preproc"
10979 fi
10980 ac_res=`eval echo '${'$as_ac_Header'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982 echo "${ECHO_T}$ac_res" >&6; }
10983
10984 fi
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10988 _ACEOF
10989
10990 else
10991 { { echo "$as_me:$LINENO: error: bailing out" >&5
10992 echo "$as_me: error: bailing out" >&2;}
10993 { (exit 1); exit 1; }; }
10994 fi
10995
10996 done
10997
10998
10999 for ac_func in socket
11000 do
11001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11015 #define $ac_func innocuous_$ac_func
11016
11017 /* System header to define __stub macros and hopefully few prototypes,
11018 which can conflict with char $ac_func (); below.
11019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 <limits.h> exists even on freestanding compilers. */
11021
11022 #ifdef __STDC__
11023 # include <limits.h>
11024 #else
11025 # include <assert.h>
11026 #endif
11027
11028 #undef $ac_func
11029
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char $ac_func ();
11037 /* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
11040 #if defined __stub_$ac_func || defined __stub___$ac_func
11041 choke me
11042 #endif
11043
11044 int
11045 main ()
11046 {
11047 return $ac_func ();
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (ac_try="$ac_link"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_link") 2>conftest.er1
11060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest$ac_exeext &&
11069 $as_test_x conftest$ac_exeext; then
11070 eval "$as_ac_var=yes"
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 eval "$as_ac_var=no"
11076 fi
11077
11078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11079 conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087 _ACEOF
11088
11089 else
11090 { { echo "$as_me:$LINENO: error: bailing out" >&5
11091 echo "$as_me: error: bailing out" >&2;}
11092 { (exit 1); exit 1; }; }
11093 fi
11094 done
11095
11096 fi
11097
11098 if test x$HAVE_LIBDL = xyes; then
11099
11100 for ac_header in dlfcn.h
11101 do
11102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 fi
11109 ac_res=`eval echo '${'$as_ac_Header'}'`
11110 { echo "$as_me:$LINENO: result: $ac_res" >&5
11111 echo "${ECHO_T}$ac_res" >&6; }
11112 else
11113 # Is the header compilable?
11114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 $ac_includes_default
11123 #include <$ac_header>
11124 _ACEOF
11125 rm -f conftest.$ac_objext
11126 if { (ac_try="$ac_compile"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_compile") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest.$ac_objext; then
11142 ac_header_compiler=yes
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_header_compiler=no
11148 fi
11149
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6; }
11153
11154 # Is the header present?
11155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h. */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 #include <$ac_header>
11164 _ACEOF
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null && {
11178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 }; then
11181 ac_header_preproc=yes
11182 else
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ac_header_preproc=no
11187 fi
11188
11189 rm -f conftest.err conftest.$ac_ext
11190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11191 echo "${ECHO_T}$ac_header_preproc" >&6; }
11192
11193 # So? What about this header?
11194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11195 yes:no: )
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11200 ac_header_preproc=yes
11201 ;;
11202 no:yes:* )
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11215
11216 ;;
11217 esac
11218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223 eval "$as_ac_Header=\$ac_header_preproc"
11224 fi
11225 ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result: $ac_res" >&5
11227 echo "${ECHO_T}$ac_res" >&6; }
11228
11229 fi
11230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11233 _ACEOF
11234
11235 else
11236 { { echo "$as_me:$LINENO: error: bailing out" >&5
11237 echo "$as_me: error: bailing out" >&2;}
11238 { (exit 1); exit 1; }; }
11239 fi
11240
11241 done
11242
11243 fi
11244
11245 if test x$INTL = xyes; then
11246
11247 for ac_header in libintl.h
11248 do
11249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 fi
11256 ac_res=`eval echo '${'$as_ac_Header'}'`
11257 { echo "$as_me:$LINENO: result: $ac_res" >&5
11258 echo "${ECHO_T}$ac_res" >&6; }
11259 else
11260 # Is the header compilable?
11261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11263 cat >conftest.$ac_ext <<_ACEOF
11264 /* confdefs.h. */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11269 $ac_includes_default
11270 #include <$ac_header>
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (ac_try="$ac_compile"
11274 case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_compile") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest.$ac_objext; then
11289 ac_header_compiler=yes
11290 else
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 ac_header_compiler=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <$ac_header>
11311 _ACEOF
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null && {
11325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 }; then
11328 ac_header_preproc=yes
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 ac_header_preproc=no
11334 fi
11335
11336 rm -f conftest.err conftest.$ac_ext
11337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11338 echo "${ECHO_T}$ac_header_preproc" >&6; }
11339
11340 # So? What about this header?
11341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11342 yes:no: )
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11347 ac_header_preproc=yes
11348 ;;
11349 no:yes:* )
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11362
11363 ;;
11364 esac
11365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370 eval "$as_ac_Header=\$ac_header_preproc"
11371 fi
11372 ac_res=`eval echo '${'$as_ac_Header'}'`
11373 { echo "$as_me:$LINENO: result: $ac_res" >&5
11374 echo "${ECHO_T}$ac_res" >&6; }
11375
11376 fi
11377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11380 _ACEOF
11381
11382 else
11383 { { echo "$as_me:$LINENO: error: bailing out" >&5
11384 echo "$as_me: error: bailing out" >&2;}
11385 { (exit 1); exit 1; }; }
11386 fi
11387
11388 done
11389
11390 fi
11391
11392
11393 for ac_header in libdevmapper.h
11394 do
11395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 fi
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403 { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11405 else
11406 # Is the header compilable?
11407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h. */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 $ac_includes_default
11416 #include <$ac_header>
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } && {
11432 test -z "$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 } && test -s conftest.$ac_objext; then
11435 ac_header_compiler=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 ac_header_compiler=no
11441 fi
11442
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11445 echo "${ECHO_T}$ac_header_compiler" >&6; }
11446
11447 # Is the header present?
11448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11450 cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h. */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 #include <$ac_header>
11457 _ACEOF
11458 if { (ac_try="$ac_cpp conftest.$ac_ext"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } >/dev/null && {
11471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 }; then
11474 ac_header_preproc=yes
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 ac_header_preproc=no
11480 fi
11481
11482 rm -f conftest.err conftest.$ac_ext
11483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11484 echo "${ECHO_T}$ac_header_preproc" >&6; }
11485
11486 # So? What about this header?
11487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11488 yes:no: )
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11493 ac_header_preproc=yes
11494 ;;
11495 no:yes:* )
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11508
11509 ;;
11510 esac
11511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516 eval "$as_ac_Header=\$ac_header_preproc"
11517 fi
11518 ac_res=`eval echo '${'$as_ac_Header'}'`
11519 { echo "$as_me:$LINENO: result: $ac_res" >&5
11520 echo "${ECHO_T}$ac_res" >&6; }
11521
11522 fi
11523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11524 cat >>confdefs.h <<_ACEOF
11525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11526 _ACEOF
11527
11528 else
11529 { { echo "$as_me:$LINENO: error: bailing out" >&5
11530 echo "$as_me: error: bailing out" >&2;}
11531 { (exit 1); exit 1; }; }
11532 fi
11533
11534 done
11535
11536
11537 if test x$HAVE_SELINUX = xyes; then
11538
11539 for ac_header in selinux/selinux.h
11540 do
11541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 fi
11548 ac_res=`eval echo '${'$as_ac_Header'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551 else
11552 # Is the header compilable?
11553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 #include <$ac_header>
11563 _ACEOF
11564 rm -f conftest.$ac_objext
11565 if { (ac_try="$ac_compile"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_header_compiler=yes
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586 ac_header_compiler=no
11587 fi
11588
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11591 echo "${ECHO_T}$ac_header_compiler" >&6; }
11592
11593 # Is the header present?
11594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11596 cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h. */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 #include <$ac_header>
11603 _ACEOF
11604 if { (ac_try="$ac_cpp conftest.$ac_ext"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } >/dev/null && {
11617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 }; then
11620 ac_header_preproc=yes
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 ac_header_preproc=no
11626 fi
11627
11628 rm -f conftest.err conftest.$ac_ext
11629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11630 echo "${ECHO_T}$ac_header_preproc" >&6; }
11631
11632 # So? What about this header?
11633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11634 yes:no: )
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11639 ac_header_preproc=yes
11640 ;;
11641 no:yes:* )
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11654
11655 ;;
11656 esac
11657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 eval "$as_ac_Header=\$ac_header_preproc"
11663 fi
11664 ac_res=`eval echo '${'$as_ac_Header'}'`
11665 { echo "$as_me:$LINENO: result: $ac_res" >&5
11666 echo "${ECHO_T}$ac_res" >&6; }
11667
11668 fi
11669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11672 _ACEOF
11673
11674 else
11675 { { echo "$as_me:$LINENO: error: bailing out" >&5
11676 echo "$as_me: error: bailing out" >&2;}
11677 { (exit 1); exit 1; }; }
11678 fi
11679
11680 done
11681
11682 fi
11683
11684 ################################################################################
11685 # Extract the first word of "modprobe", so it can be a program name with args.
11686 set dummy modprobe; ac_word=$2
11687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11689 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 case $MODPROBE_CMD in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11695 ;;
11696 *)
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11699 do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11707 fi
11708 done
11709 done
11710 IFS=$as_save_IFS
11711
11712 ;;
11713 esac
11714 fi
11715 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
11716 if test -n "$MODPROBE_CMD"; then
11717 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11718 echo "${ECHO_T}$MODPROBE_CMD" >&6; }
11719 else
11720 { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11722 fi
11723
11724
11725
11726 if test x$MODPROBE_CMD != x; then
11727
11728 cat >>confdefs.h <<_ACEOF
11729 #define MODPROBE_CMD "$MODPROBE_CMD"
11730 _ACEOF
11731
11732 fi
11733
11734 ################################################################################
11735
11736
11737 if test "$BUILD_DMEVENTD" = yes; then
11738
11739 # Check whether --with-dmeventd-pidfile was given.
11740 if test "${with_dmeventd_pidfile+set}" = set; then
11741 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
11742 #define DMEVENTD_PIDFILE "$withval"
11743 _ACEOF
11744
11745 else
11746 cat >>confdefs.h <<_ACEOF
11747 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
11748 _ACEOF
11749
11750 fi
11751
11752 fi
11753
11754
11755
11756 if test "$BUILD_DMEVENTD" = yes; then
11757 dmeventd_prefix="$exec_prefix"
11758 if test "x$dmeventd_prefix" = "xNONE"; then
11759 dmeventd_prefix="$prefix"
11760 fi
11761 if test "x$dmeventd_prefix" = "xNONE"; then
11762 dmeventd_prefix=""
11763 fi
11764
11765 # Check whether --with-dmeventd-path was given.
11766 if test "${with_dmeventd_path+set}" = set; then
11767 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
11768 #define DMEVENTD_PATH "$withval"
11769 _ACEOF
11770
11771 else
11772 cat >>confdefs.h <<_ACEOF
11773 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
11774 _ACEOF
11775
11776 fi
11777
11778 fi
11779
11780 ################################################################################
11781 { echo "$as_me:$LINENO: checking for kernel interface choice" >&5
11782 echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; }
11783
11784 # Check whether --with-interface was given.
11785 if test "${with_interface+set}" = set; then
11786 withval=$with_interface; interface="$withval"
11787 else
11788 interface=ioctl
11789 fi
11790
11791 if [ "x$interface" != xioctl ];
11792 then
11793 { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
11794 echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
11795 { (exit 1); exit 1; }; }
11796 fi
11797 { echo "$as_me:$LINENO: result: $interface" >&5
11798 echo "${ECHO_T}$interface" >&6; }
11799
11800 ################################################################################
11801 DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\""
11802
11803 cat >>confdefs.h <<_ACEOF
11804 #define DM_LIB_VERSION $DM_LIB_VERSION
11805 _ACEOF
11806
11807
11808 DM_LIB_PATCHLEVEL=`cat VERSION_LIB | awk -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
11809
11810 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
11811
11812 ################################################################################
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867 ################################################################################
11868 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h"
11869
11870 cat >confcache <<\_ACEOF
11871 # This file is a shell script that caches the results of configure
11872 # tests run on this system so they can be shared between configure
11873 # scripts and configure runs, see configure's option --config-cache.
11874 # It is not useful on other systems. If it contains results you don't
11875 # want to keep, you may remove or edit it.
11876 #
11877 # config.status only pays attention to the cache file if you give it
11878 # the --recheck option to rerun configure.
11879 #
11880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11882 # following values.
11883
11884 _ACEOF
11885
11886 # The following way of writing the cache mishandles newlines in values,
11887 # but we know of no workaround that is simple, portable, and efficient.
11888 # So, we kill variables containing newlines.
11889 # Ultrix sh set writes to stderr and can't be redirected directly,
11890 # and sets the high bit in the cache file unless we assign to the vars.
11891 (
11892 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11893 eval ac_val=\$$ac_var
11894 case $ac_val in #(
11895 *${as_nl}*)
11896 case $ac_var in #(
11897 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11898 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11899 esac
11900 case $ac_var in #(
11901 _ | IFS | as_nl) ;; #(
11902 *) $as_unset $ac_var ;;
11903 esac ;;
11904 esac
11905 done
11906
11907 (set) 2>&1 |
11908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11909 *${as_nl}ac_space=\ *)
11910 # `set' does not quote correctly, so add quotes (double-quote
11911 # substitution turns \\\\ into \\, and sed turns \\ into \).
11912 sed -n \
11913 "s/'/'\\\\''/g;
11914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11915 ;; #(
11916 *)
11917 # `set' quotes correctly as required by POSIX, so do not add quotes.
11918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11919 ;;
11920 esac |
11921 sort
11922 ) |
11923 sed '
11924 /^ac_cv_env_/b end
11925 t clear
11926 :clear
11927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11928 t end
11929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11930 :end' >>confcache
11931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11932 if test -w "$cache_file"; then
11933 test "x$cache_file" != "x/dev/null" &&
11934 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11935 echo "$as_me: updating cache $cache_file" >&6;}
11936 cat confcache >$cache_file
11937 else
11938 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11939 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11940 fi
11941 fi
11942 rm -f confcache
11943
11944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11945 # Let make expand exec_prefix.
11946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11947
11948 DEFS=-DHAVE_CONFIG_H
11949
11950 ac_libobjs=
11951 ac_ltlibobjs=
11952 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11953 # 1. Remove the extension, and $U if already installed.
11954 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11955 ac_i=`echo "$ac_i" | sed "$ac_script"`
11956 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11957 # will be set to the directory where LIBOBJS objects are built.
11958 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11959 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11960 done
11961 LIBOBJS=$ac_libobjs
11962
11963 LTLIBOBJS=$ac_ltlibobjs
11964
11965
11966
11967 : ${CONFIG_STATUS=./config.status}
11968 ac_clean_files_save=$ac_clean_files
11969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11970 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11971 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11972 cat >$CONFIG_STATUS <<_ACEOF
11973 #! $SHELL
11974 # Generated by $as_me.
11975 # Run this file to recreate the current configuration.
11976 # Compiler output produced by configure, useful for debugging
11977 # configure, is in config.log if it exists.
11978
11979 debug=false
11980 ac_cs_recheck=false
11981 ac_cs_silent=false
11982 SHELL=\${CONFIG_SHELL-$SHELL}
11983 _ACEOF
11984
11985 cat >>$CONFIG_STATUS <<\_ACEOF
11986 ## --------------------- ##
11987 ## M4sh Initialization. ##
11988 ## --------------------- ##
11989
11990 # Be more Bourne compatible
11991 DUALCASE=1; export DUALCASE # for MKS sh
11992 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11993 emulate sh
11994 NULLCMD=:
11995 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11996 # is contrary to our usage. Disable this feature.
11997 alias -g '${1+"$@"}'='"$@"'
11998 setopt NO_GLOB_SUBST
11999 else
12000 case `(set -o) 2>/dev/null` in
12001 *posix*) set -o posix ;;
12002 esac
12003
12004 fi
12005
12006
12007
12008
12009 # PATH needs CR
12010 # Avoid depending upon Character Ranges.
12011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12014 as_cr_digits='0123456789'
12015 as_cr_alnum=$as_cr_Letters$as_cr_digits
12016
12017 # The user is always right.
12018 if test "${PATH_SEPARATOR+set}" != set; then
12019 echo "#! /bin/sh" >conf$$.sh
12020 echo "exit 0" >>conf$$.sh
12021 chmod +x conf$$.sh
12022 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12023 PATH_SEPARATOR=';'
12024 else
12025 PATH_SEPARATOR=:
12026 fi
12027 rm -f conf$$.sh
12028 fi
12029
12030 # Support unset when possible.
12031 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12032 as_unset=unset
12033 else
12034 as_unset=false
12035 fi
12036
12037
12038 # IFS
12039 # We need space, tab and new line, in precisely that order. Quoting is
12040 # there to prevent editors from complaining about space-tab.
12041 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12042 # splitting by setting IFS to empty value.)
12043 as_nl='
12044 '
12045 IFS=" "" $as_nl"
12046
12047 # Find who we are. Look in the path if we contain no directory separator.
12048 case $0 in
12049 *[\\/]* ) as_myself=$0 ;;
12050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12052 do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12056 done
12057 IFS=$as_save_IFS
12058
12059 ;;
12060 esac
12061 # We did not find ourselves, most probably we were run as `sh COMMAND'
12062 # in which case we are not to be found in the path.
12063 if test "x$as_myself" = x; then
12064 as_myself=$0
12065 fi
12066 if test ! -f "$as_myself"; then
12067 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12068 { (exit 1); exit 1; }
12069 fi
12070
12071 # Work around bugs in pre-3.0 UWIN ksh.
12072 for as_var in ENV MAIL MAILPATH
12073 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12074 done
12075 PS1='$ '
12076 PS2='> '
12077 PS4='+ '
12078
12079 # NLS nuisances.
12080 for as_var in \
12081 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12082 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12083 LC_TELEPHONE LC_TIME
12084 do
12085 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12086 eval $as_var=C; export $as_var
12087 else
12088 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12089 fi
12090 done
12091
12092 # Required to use basename.
12093 if expr a : '\(a\)' >/dev/null 2>&1 &&
12094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12095 as_expr=expr
12096 else
12097 as_expr=false
12098 fi
12099
12100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12101 as_basename=basename
12102 else
12103 as_basename=false
12104 fi
12105
12106
12107 # Name of the executable.
12108 as_me=`$as_basename -- "$0" ||
12109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12110 X"$0" : 'X\(//\)$' \| \
12111 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12112 echo X/"$0" |
12113 sed '/^.*\/\([^/][^/]*\)\/*$/{
12114 s//\1/
12115 q
12116 }
12117 /^X\/\(\/\/\)$/{
12118 s//\1/
12119 q
12120 }
12121 /^X\/\(\/\).*/{
12122 s//\1/
12123 q
12124 }
12125 s/.*/./; q'`
12126
12127 # CDPATH.
12128 $as_unset CDPATH
12129
12130
12131
12132 as_lineno_1=$LINENO
12133 as_lineno_2=$LINENO
12134 test "x$as_lineno_1" != "x$as_lineno_2" &&
12135 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12136
12137 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12138 # uniformly replaced by the line number. The first 'sed' inserts a
12139 # line-number line after each line using $LINENO; the second 'sed'
12140 # does the real work. The second script uses 'N' to pair each
12141 # line-number line with the line containing $LINENO, and appends
12142 # trailing '-' during substitution so that $LINENO is not a special
12143 # case at line end.
12144 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12145 # scripts with optimization help from Paolo Bonzini. Blame Lee
12146 # E. McMahon (1931-1989) for sed's syntax. :-)
12147 sed -n '
12148 p
12149 /[$]LINENO/=
12150 ' <$as_myself |
12151 sed '
12152 s/[$]LINENO.*/&-/
12153 t lineno
12154 b
12155 :lineno
12156 N
12157 :loop
12158 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12159 t loop
12160 s/-\n.*//
12161 ' >$as_me.lineno &&
12162 chmod +x "$as_me.lineno" ||
12163 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12164 { (exit 1); exit 1; }; }
12165
12166 # Don't try to exec as it changes $[0], causing all sort of problems
12167 # (the dirname of $[0] is not the place where we might find the
12168 # original and so on. Autoconf is especially sensitive to this).
12169 . "./$as_me.lineno"
12170 # Exit status is that of the last command.
12171 exit
12172 }
12173
12174
12175 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12176 as_dirname=dirname
12177 else
12178 as_dirname=false
12179 fi
12180
12181 ECHO_C= ECHO_N= ECHO_T=
12182 case `echo -n x` in
12183 -n*)
12184 case `echo 'x\c'` in
12185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12186 *) ECHO_C='\c';;
12187 esac;;
12188 *)
12189 ECHO_N='-n';;
12190 esac
12191
12192 if expr a : '\(a\)' >/dev/null 2>&1 &&
12193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12194 as_expr=expr
12195 else
12196 as_expr=false
12197 fi
12198
12199 rm -f conf$$ conf$$.exe conf$$.file
12200 if test -d conf$$.dir; then
12201 rm -f conf$$.dir/conf$$.file
12202 else
12203 rm -f conf$$.dir
12204 mkdir conf$$.dir
12205 fi
12206 echo >conf$$.file
12207 if ln -s conf$$.file conf$$ 2>/dev/null; then
12208 as_ln_s='ln -s'
12209 # ... but there are two gotchas:
12210 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12211 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12212 # In both cases, we have to default to `cp -p'.
12213 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12214 as_ln_s='cp -p'
12215 elif ln conf$$.file conf$$ 2>/dev/null; then
12216 as_ln_s=ln
12217 else
12218 as_ln_s='cp -p'
12219 fi
12220 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12221 rmdir conf$$.dir 2>/dev/null
12222
12223 if mkdir -p . 2>/dev/null; then
12224 as_mkdir_p=:
12225 else
12226 test -d ./-p && rmdir ./-p
12227 as_mkdir_p=false
12228 fi
12229
12230 if test -x / >/dev/null 2>&1; then
12231 as_test_x='test -x'
12232 else
12233 if ls -dL / >/dev/null 2>&1; then
12234 as_ls_L_option=L
12235 else
12236 as_ls_L_option=
12237 fi
12238 as_test_x='
12239 eval sh -c '\''
12240 if test -d "$1"; then
12241 test -d "$1/.";
12242 else
12243 case $1 in
12244 -*)set "./$1";;
12245 esac;
12246 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12247 ???[sx]*):;;*)false;;esac;fi
12248 '\'' sh
12249 '
12250 fi
12251 as_executable_p=$as_test_x
12252
12253 # Sed expression to map a string onto a valid CPP name.
12254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12255
12256 # Sed expression to map a string onto a valid variable name.
12257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12258
12259
12260 exec 6>&1
12261
12262 # Save the log message, to keep $[0] and so on meaningful, and to
12263 # report actual input values of CONFIG_FILES etc. instead of their
12264 # values after options handling.
12265 ac_log="
12266 This file was extended by $as_me, which was
12267 generated by GNU Autoconf 2.61. Invocation command line was
12268
12269 CONFIG_FILES = $CONFIG_FILES
12270 CONFIG_HEADERS = $CONFIG_HEADERS
12271 CONFIG_LINKS = $CONFIG_LINKS
12272 CONFIG_COMMANDS = $CONFIG_COMMANDS
12273 $ $0 $@
12274
12275 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12276 "
12277
12278 _ACEOF
12279
12280 cat >>$CONFIG_STATUS <<_ACEOF
12281 # Files that config.status was made for.
12282 config_files="$ac_config_files"
12283 config_headers="$ac_config_headers"
12284
12285 _ACEOF
12286
12287 cat >>$CONFIG_STATUS <<\_ACEOF
12288 ac_cs_usage="\
12289 \`$as_me' instantiates files from templates according to the
12290 current configuration.
12291
12292 Usage: $0 [OPTIONS] [FILE]...
12293
12294 -h, --help print this help, then exit
12295 -V, --version print version number and configuration settings, then exit
12296 -q, --quiet do not print progress messages
12297 -d, --debug don't remove temporary files
12298 --recheck update $as_me by reconfiguring in the same conditions
12299 --file=FILE[:TEMPLATE]
12300 instantiate the configuration file FILE
12301 --header=FILE[:TEMPLATE]
12302 instantiate the configuration header FILE
12303
12304 Configuration files:
12305 $config_files
12306
12307 Configuration headers:
12308 $config_headers
12309
12310 Report bugs to <bug-autoconf@gnu.org>."
12311
12312 _ACEOF
12313 cat >>$CONFIG_STATUS <<_ACEOF
12314 ac_cs_version="\\
12315 config.status
12316 configured by $0, generated by GNU Autoconf 2.61,
12317 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12318
12319 Copyright (C) 2006 Free Software Foundation, Inc.
12320 This config.status script is free software; the Free Software Foundation
12321 gives unlimited permission to copy, distribute and modify it."
12322
12323 ac_pwd='$ac_pwd'
12324 srcdir='$srcdir'
12325 INSTALL='$INSTALL'
12326 MKDIR_P='$MKDIR_P'
12327 _ACEOF
12328
12329 cat >>$CONFIG_STATUS <<\_ACEOF
12330 # If no file are specified by the user, then we need to provide default
12331 # value. By we need to know if files were specified by the user.
12332 ac_need_defaults=:
12333 while test $# != 0
12334 do
12335 case $1 in
12336 --*=*)
12337 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12338 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12339 ac_shift=:
12340 ;;
12341 *)
12342 ac_option=$1
12343 ac_optarg=$2
12344 ac_shift=shift
12345 ;;
12346 esac
12347
12348 case $ac_option in
12349 # Handling of the options.
12350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12351 ac_cs_recheck=: ;;
12352 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12353 echo "$ac_cs_version"; exit ;;
12354 --debug | --debu | --deb | --de | --d | -d )
12355 debug=: ;;
12356 --file | --fil | --fi | --f )
12357 $ac_shift
12358 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12359 ac_need_defaults=false;;
12360 --header | --heade | --head | --hea )
12361 $ac_shift
12362 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12363 ac_need_defaults=false;;
12364 --he | --h)
12365 # Conflict between --help and --header
12366 { echo "$as_me: error: ambiguous option: $1
12367 Try \`$0 --help' for more information." >&2
12368 { (exit 1); exit 1; }; };;
12369 --help | --hel | -h )
12370 echo "$ac_cs_usage"; exit ;;
12371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12373 ac_cs_silent=: ;;
12374
12375 # This is an error.
12376 -*) { echo "$as_me: error: unrecognized option: $1
12377 Try \`$0 --help' for more information." >&2
12378 { (exit 1); exit 1; }; } ;;
12379
12380 *) ac_config_targets="$ac_config_targets $1"
12381 ac_need_defaults=false ;;
12382
12383 esac
12384 shift
12385 done
12386
12387 ac_configure_extra_args=
12388
12389 if $ac_cs_silent; then
12390 exec 6>/dev/null
12391 ac_configure_extra_args="$ac_configure_extra_args --silent"
12392 fi
12393
12394 _ACEOF
12395 cat >>$CONFIG_STATUS <<_ACEOF
12396 if \$ac_cs_recheck; then
12397 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12398 CONFIG_SHELL=$SHELL
12399 export CONFIG_SHELL
12400 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12401 fi
12402
12403 _ACEOF
12404 cat >>$CONFIG_STATUS <<\_ACEOF
12405 exec 5>>config.log
12406 {
12407 echo
12408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12409 ## Running $as_me. ##
12410 _ASBOX
12411 echo "$ac_log"
12412 } >&5
12413
12414 _ACEOF
12415 cat >>$CONFIG_STATUS <<_ACEOF
12416 _ACEOF
12417
12418 cat >>$CONFIG_STATUS <<\_ACEOF
12419
12420 # Handling of arguments.
12421 for ac_config_target in $ac_config_targets
12422 do
12423 case $ac_config_target in
12424 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12425 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12426 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12427 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12428 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
12429 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12430 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
12431 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
12432 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12433 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
12434 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12435 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12436 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12437 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12438 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12439 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12440 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12441 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
12442 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12443 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12444 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12445 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12446 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12447 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12448 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12449 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
12450
12451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12452 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12453 { (exit 1); exit 1; }; };;
12454 esac
12455 done
12456
12457
12458 # If the user did not use the arguments to specify the items to instantiate,
12459 # then the envvar interface is used. Set only those that are not.
12460 # We use the long form for the default assignment because of an extremely
12461 # bizarre bug on SunOS 4.1.3.
12462 if $ac_need_defaults; then
12463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12465 fi
12466
12467 # Have a temporary directory for convenience. Make it in the build tree
12468 # simply because there is no reason against having it here, and in addition,
12469 # creating and moving files from /tmp can sometimes cause problems.
12470 # Hook for its removal unless debugging.
12471 # Note that there is a small window in which the directory will not be cleaned:
12472 # after its creation but before its name has been assigned to `$tmp'.
12473 $debug ||
12474 {
12475 tmp=
12476 trap 'exit_status=$?
12477 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12478 ' 0
12479 trap '{ (exit 1); exit 1; }' 1 2 13 15
12480 }
12481 # Create a (secure) tmp directory for tmp files.
12482
12483 {
12484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12485 test -n "$tmp" && test -d "$tmp"
12486 } ||
12487 {
12488 tmp=./conf$$-$RANDOM
12489 (umask 077 && mkdir "$tmp")
12490 } ||
12491 {
12492 echo "$me: cannot create a temporary directory in ." >&2
12493 { (exit 1); exit 1; }
12494 }
12495
12496 #
12497 # Set up the sed scripts for CONFIG_FILES section.
12498 #
12499
12500 # No need to generate the scripts if there are no CONFIG_FILES.
12501 # This happens for instance when ./config.status config.h
12502 if test -n "$CONFIG_FILES"; then
12503
12504 _ACEOF
12505
12506
12507
12508 ac_delim='%!_!# '
12509 for ac_last_try in false false false false false :; do
12510 cat >conf$$subs.sed <<_ACEOF
12511 SHELL!$SHELL$ac_delim
12512 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12513 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12514 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12515 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12516 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12517 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12518 exec_prefix!$exec_prefix$ac_delim
12519 prefix!$prefix$ac_delim
12520 program_transform_name!$program_transform_name$ac_delim
12521 bindir!$bindir$ac_delim
12522 sbindir!$sbindir$ac_delim
12523 libexecdir!$libexecdir$ac_delim
12524 datarootdir!$datarootdir$ac_delim
12525 datadir!$datadir$ac_delim
12526 sysconfdir!$sysconfdir$ac_delim
12527 sharedstatedir!$sharedstatedir$ac_delim
12528 localstatedir!$localstatedir$ac_delim
12529 includedir!$includedir$ac_delim
12530 oldincludedir!$oldincludedir$ac_delim
12531 docdir!$docdir$ac_delim
12532 infodir!$infodir$ac_delim
12533 htmldir!$htmldir$ac_delim
12534 dvidir!$dvidir$ac_delim
12535 pdfdir!$pdfdir$ac_delim
12536 psdir!$psdir$ac_delim
12537 libdir!$libdir$ac_delim
12538 localedir!$localedir$ac_delim
12539 mandir!$mandir$ac_delim
12540 DEFS!$DEFS$ac_delim
12541 ECHO_C!$ECHO_C$ac_delim
12542 ECHO_N!$ECHO_N$ac_delim
12543 ECHO_T!$ECHO_T$ac_delim
12544 LIBS!$LIBS$ac_delim
12545 build_alias!$build_alias$ac_delim
12546 host_alias!$host_alias$ac_delim
12547 target_alias!$target_alias$ac_delim
12548 build!$build$ac_delim
12549 build_cpu!$build_cpu$ac_delim
12550 build_vendor!$build_vendor$ac_delim
12551 build_os!$build_os$ac_delim
12552 host!$host$ac_delim
12553 host_cpu!$host_cpu$ac_delim
12554 host_vendor!$host_vendor$ac_delim
12555 host_os!$host_os$ac_delim
12556 target!$target$ac_delim
12557 target_cpu!$target_cpu$ac_delim
12558 target_vendor!$target_vendor$ac_delim
12559 target_os!$target_os$ac_delim
12560 SED!$SED$ac_delim
12561 AWK!$AWK$ac_delim
12562 CC!$CC$ac_delim
12563 CFLAGS!$CFLAGS$ac_delim
12564 LDFLAGS!$LDFLAGS$ac_delim
12565 CPPFLAGS!$CPPFLAGS$ac_delim
12566 ac_ct_CC!$ac_ct_CC$ac_delim
12567 EXEEXT!$EXEEXT$ac_delim
12568 OBJEXT!$OBJEXT$ac_delim
12569 CPP!$CPP$ac_delim
12570 GREP!$GREP$ac_delim
12571 EGREP!$EGREP$ac_delim
12572 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12573 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12574 INSTALL_DATA!$INSTALL_DATA$ac_delim
12575 LN_S!$LN_S$ac_delim
12576 SET_MAKE!$SET_MAKE$ac_delim
12577 RANLIB!$RANLIB$ac_delim
12578 CFLOW_CMD!$CFLOW_CMD$ac_delim
12579 CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12580 ALLOCA!$ALLOCA$ac_delim
12581 LIBOBJS!$LIBOBJS$ac_delim
12582 POW_LIB!$POW_LIB$ac_delim
12583 LCOV!$LCOV$ac_delim
12584 GENHTML!$GENHTML$ac_delim
12585 LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12586 MSGFMT!$MSGFMT$ac_delim
12587 MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12588 BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12589 CLDFLAGS!$CLDFLAGS$ac_delim
12590 CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12591 CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12592 CLUSTER!$CLUSTER$ac_delim
12593 CLVMD!$CLVMD$ac_delim
12594 CMDLIB!$CMDLIB$ac_delim
12595 COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12596 DEBUG!$DEBUG$ac_delim
12597 DEVMAPPER!$DEVMAPPER$ac_delim
12598 DMEVENTD!$DMEVENTD$ac_delim
12599 DM_COMPAT!$DM_COMPAT$ac_delim
12600 DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12601 DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12602 DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12603 DM_IOCTLS!$DM_IOCTLS$ac_delim
12604 DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12605 DM_LIB_PATCHLEVEL!$DM_LIB_PATCHLEVEL$ac_delim
12606 FSADM!$FSADM$ac_delim
12607 GROUP!$GROUP$ac_delim
12608 _ACEOF
12609
12610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12611 break
12612 elif $ac_last_try; then
12613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12614 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12615 { (exit 1); exit 1; }; }
12616 else
12617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12618 fi
12619 done
12620
12621 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12622 if test -n "$ac_eof"; then
12623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12624 ac_eof=`expr $ac_eof + 1`
12625 fi
12626
12627 cat >>$CONFIG_STATUS <<_ACEOF
12628 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12630 _ACEOF
12631 sed '
12632 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12633 s/^/s,@/; s/!/@,|#_!!_#|/
12634 :n
12635 t n
12636 s/'"$ac_delim"'$/,g/; t
12637 s/$/\\/; p
12638 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12639 ' >>$CONFIG_STATUS <conf$$subs.sed
12640 rm -f conf$$subs.sed
12641 cat >>$CONFIG_STATUS <<_ACEOF
12642 CEOF$ac_eof
12643 _ACEOF
12644
12645
12646 ac_delim='%!_!# '
12647 for ac_last_try in false false false false false :; do
12648 cat >conf$$subs.sed <<_ACEOF
12649 HAVE_LIBDL!$HAVE_LIBDL$ac_delim
12650 HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12651 HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12652 INTL!$INTL$ac_delim
12653 INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12654 JOBS!$JOBS$ac_delim
12655 LDDEPS!$LDDEPS$ac_delim
12656 LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12657 LOCALEDIR!$LOCALEDIR$ac_delim
12658 LVM1!$LVM1$ac_delim
12659 LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12660 CONFDIR!$CONFDIR$ac_delim
12661 LVM_VERSION!$LVM_VERSION$ac_delim
12662 MIRRORS!$MIRRORS$ac_delim
12663 OWNER!$OWNER$ac_delim
12664 PKGCONFIG!$PKGCONFIG$ac_delim
12665 POOL!$POOL$ac_delim
12666 SNAPSHOTS!$SNAPSHOTS$ac_delim
12667 STATICDIR!$STATICDIR$ac_delim
12668 STATIC_LINK!$STATIC_LINK$ac_delim
12669 LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12670 interface!$interface$ac_delim
12671 kerneldir!$kerneldir$ac_delim
12672 missingkernel!$missingkernel$ac_delim
12673 kernelvsn!$kernelvsn$ac_delim
12674 tmpdir!$tmpdir$ac_delim
12675 usrlibdir!$usrlibdir$ac_delim
12676 usrsbindir!$usrsbindir$ac_delim
12677 LTLIBOBJS!$LTLIBOBJS$ac_delim
12678 _ACEOF
12679
12680 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
12681 break
12682 elif $ac_last_try; then
12683 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12684 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12685 { (exit 1); exit 1; }; }
12686 else
12687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12688 fi
12689 done
12690
12691 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12692 if test -n "$ac_eof"; then
12693 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12694 ac_eof=`expr $ac_eof + 1`
12695 fi
12696
12697 cat >>$CONFIG_STATUS <<_ACEOF
12698 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12700 _ACEOF
12701 sed '
12702 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12703 s/^/s,@/; s/!/@,|#_!!_#|/
12704 :n
12705 t n
12706 s/'"$ac_delim"'$/,g/; t
12707 s/$/\\/; p
12708 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12709 ' >>$CONFIG_STATUS <conf$$subs.sed
12710 rm -f conf$$subs.sed
12711 cat >>$CONFIG_STATUS <<_ACEOF
12712 :end
12713 s/|#_!!_#|//g
12714 CEOF$ac_eof
12715 _ACEOF
12716
12717
12718 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12719 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12720 # trailing colons and then remove the whole line if VPATH becomes empty
12721 # (actually we leave an empty line to preserve line numbers).
12722 if test "x$srcdir" = x.; then
12723 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12724 s/:*\$(srcdir):*/:/
12725 s/:*\${srcdir}:*/:/
12726 s/:*@srcdir@:*/:/
12727 s/^\([^=]*=[ ]*\):*/\1/
12728 s/:*$//
12729 s/^[^=]*=[ ]*$//
12730 }'
12731 fi
12732
12733 cat >>$CONFIG_STATUS <<\_ACEOF
12734 fi # test -n "$CONFIG_FILES"
12735
12736
12737 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12738 do
12739 case $ac_tag in
12740 :[FHLC]) ac_mode=$ac_tag; continue;;
12741 esac
12742 case $ac_mode$ac_tag in
12743 :[FHL]*:*);;
12744 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12745 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12746 { (exit 1); exit 1; }; };;
12747 :[FH]-) ac_tag=-:-;;
12748 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12749 esac
12750 ac_save_IFS=$IFS
12751 IFS=:
12752 set x $ac_tag
12753 IFS=$ac_save_IFS
12754 shift
12755 ac_file=$1
12756 shift
12757
12758 case $ac_mode in
12759 :L) ac_source=$1;;
12760 :[FH])
12761 ac_file_inputs=
12762 for ac_f
12763 do
12764 case $ac_f in
12765 -) ac_f="$tmp/stdin";;
12766 *) # Look for the file first in the build tree, then in the source tree
12767 # (if the path is not absolute). The absolute path cannot be DOS-style,
12768 # because $ac_f cannot contain `:'.
12769 test -f "$ac_f" ||
12770 case $ac_f in
12771 [\\/$]*) false;;
12772 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12773 esac ||
12774 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12775 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12776 { (exit 1); exit 1; }; };;
12777 esac
12778 ac_file_inputs="$ac_file_inputs $ac_f"
12779 done
12780
12781 # Let's still pretend it is `configure' which instantiates (i.e., don't
12782 # use $as_me), people would be surprised to read:
12783 # /* config.h. Generated by config.status. */
12784 configure_input="Generated from "`IFS=:
12785 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12786 if test x"$ac_file" != x-; then
12787 configure_input="$ac_file. $configure_input"
12788 { echo "$as_me:$LINENO: creating $ac_file" >&5
12789 echo "$as_me: creating $ac_file" >&6;}
12790 fi
12791
12792 case $ac_tag in
12793 *:-:* | *:-) cat >"$tmp/stdin";;
12794 esac
12795 ;;
12796 esac
12797
12798 ac_dir=`$as_dirname -- "$ac_file" ||
12799 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12800 X"$ac_file" : 'X\(//\)[^/]' \| \
12801 X"$ac_file" : 'X\(//\)$' \| \
12802 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12803 echo X"$ac_file" |
12804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12805 s//\1/
12806 q
12807 }
12808 /^X\(\/\/\)[^/].*/{
12809 s//\1/
12810 q
12811 }
12812 /^X\(\/\/\)$/{
12813 s//\1/
12814 q
12815 }
12816 /^X\(\/\).*/{
12817 s//\1/
12818 q
12819 }
12820 s/.*/./; q'`
12821 { as_dir="$ac_dir"
12822 case $as_dir in #(
12823 -*) as_dir=./$as_dir;;
12824 esac
12825 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12826 as_dirs=
12827 while :; do
12828 case $as_dir in #(
12829 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12830 *) as_qdir=$as_dir;;
12831 esac
12832 as_dirs="'$as_qdir' $as_dirs"
12833 as_dir=`$as_dirname -- "$as_dir" ||
12834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12835 X"$as_dir" : 'X\(//\)[^/]' \| \
12836 X"$as_dir" : 'X\(//\)$' \| \
12837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12838 echo X"$as_dir" |
12839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12840 s//\1/
12841 q
12842 }
12843 /^X\(\/\/\)[^/].*/{
12844 s//\1/
12845 q
12846 }
12847 /^X\(\/\/\)$/{
12848 s//\1/
12849 q
12850 }
12851 /^X\(\/\).*/{
12852 s//\1/
12853 q
12854 }
12855 s/.*/./; q'`
12856 test -d "$as_dir" && break
12857 done
12858 test -z "$as_dirs" || eval "mkdir $as_dirs"
12859 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12860 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12861 { (exit 1); exit 1; }; }; }
12862 ac_builddir=.
12863
12864 case "$ac_dir" in
12865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12866 *)
12867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12868 # A ".." for each directory in $ac_dir_suffix.
12869 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12870 case $ac_top_builddir_sub in
12871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12873 esac ;;
12874 esac
12875 ac_abs_top_builddir=$ac_pwd
12876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12877 # for backward compatibility:
12878 ac_top_builddir=$ac_top_build_prefix
12879
12880 case $srcdir in
12881 .) # We are building in place.
12882 ac_srcdir=.
12883 ac_top_srcdir=$ac_top_builddir_sub
12884 ac_abs_top_srcdir=$ac_pwd ;;
12885 [\\/]* | ?:[\\/]* ) # Absolute name.
12886 ac_srcdir=$srcdir$ac_dir_suffix;
12887 ac_top_srcdir=$srcdir
12888 ac_abs_top_srcdir=$srcdir ;;
12889 *) # Relative name.
12890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12891 ac_top_srcdir=$ac_top_build_prefix$srcdir
12892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12893 esac
12894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12895
12896
12897 case $ac_mode in
12898 :F)
12899 #
12900 # CONFIG_FILE
12901 #
12902
12903 case $INSTALL in
12904 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12905 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12906 esac
12907 ac_MKDIR_P=$MKDIR_P
12908 case $MKDIR_P in
12909 [\\/$]* | ?:[\\/]* ) ;;
12910 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12911 esac
12912 _ACEOF
12913
12914 cat >>$CONFIG_STATUS <<\_ACEOF
12915 # If the template does not know about datarootdir, expand it.
12916 # FIXME: This hack should be removed a few years after 2.60.
12917 ac_datarootdir_hack=; ac_datarootdir_seen=
12918
12919 case `sed -n '/datarootdir/ {
12920 p
12921 q
12922 }
12923 /@datadir@/p
12924 /@docdir@/p
12925 /@infodir@/p
12926 /@localedir@/p
12927 /@mandir@/p
12928 ' $ac_file_inputs` in
12929 *datarootdir*) ac_datarootdir_seen=yes;;
12930 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12931 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12932 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12933 _ACEOF
12934 cat >>$CONFIG_STATUS <<_ACEOF
12935 ac_datarootdir_hack='
12936 s&@datadir@&$datadir&g
12937 s&@docdir@&$docdir&g
12938 s&@infodir@&$infodir&g
12939 s&@localedir@&$localedir&g
12940 s&@mandir@&$mandir&g
12941 s&\\\${datarootdir}&$datarootdir&g' ;;
12942 esac
12943 _ACEOF
12944
12945 # Neutralize VPATH when `$srcdir' = `.'.
12946 # Shell code in configure.ac might set extrasub.
12947 # FIXME: do we really want to maintain this feature?
12948 cat >>$CONFIG_STATUS <<_ACEOF
12949 sed "$ac_vpsub
12950 $extrasub
12951 _ACEOF
12952 cat >>$CONFIG_STATUS <<\_ACEOF
12953 :t
12954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12955 s&@configure_input@&$configure_input&;t t
12956 s&@top_builddir@&$ac_top_builddir_sub&;t t
12957 s&@srcdir@&$ac_srcdir&;t t
12958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12959 s&@top_srcdir@&$ac_top_srcdir&;t t
12960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12961 s&@builddir@&$ac_builddir&;t t
12962 s&@abs_builddir@&$ac_abs_builddir&;t t
12963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12964 s&@INSTALL@&$ac_INSTALL&;t t
12965 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12966 $ac_datarootdir_hack
12967 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12968
12969 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12970 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12971 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12972 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12973 which seems to be undefined. Please make sure it is defined." >&5
12974 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12975 which seems to be undefined. Please make sure it is defined." >&2;}
12976
12977 rm -f "$tmp/stdin"
12978 case $ac_file in
12979 -) cat "$tmp/out"; rm -f "$tmp/out";;
12980 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12981 esac
12982 ;;
12983 :H)
12984 #
12985 # CONFIG_HEADER
12986 #
12987 _ACEOF
12988
12989 # Transform confdefs.h into a sed script `conftest.defines', that
12990 # substitutes the proper values into config.h.in to produce config.h.
12991 rm -f conftest.defines conftest.tail
12992 # First, append a space to every undef/define line, to ease matching.
12993 echo 's/$/ /' >conftest.defines
12994 # Then, protect against being on the right side of a sed subst, or in
12995 # an unquoted here document, in config.status. If some macros were
12996 # called several times there might be several #defines for the same
12997 # symbol, which is useless. But do not sort them, since the last
12998 # AC_DEFINE must be honored.
12999 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13000 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13001 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13002 # PARAMS is the parameter list in the macro definition--in most cases, it's
13003 # just an empty string.
13004 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13005 ac_dB='\\)[ (].*,\\1define\\2'
13006 ac_dC=' '
13007 ac_dD=' ,'
13008
13009 uniq confdefs.h |
13010 sed -n '
13011 t rset
13012 :rset
13013 s/^[ ]*#[ ]*define[ ][ ]*//
13014 t ok
13015 d
13016 :ok
13017 s/[\\&,]/\\&/g
13018 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13019 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13020 ' >>conftest.defines
13021
13022 # Remove the space that was appended to ease matching.
13023 # Then replace #undef with comments. This is necessary, for
13024 # example, in the case of _POSIX_SOURCE, which is predefined and required
13025 # on some systems where configure will not decide to define it.
13026 # (The regexp can be short, since the line contains either #define or #undef.)
13027 echo 's/ $//
13028 s,^[ #]*u.*,/* & */,' >>conftest.defines
13029
13030 # Break up conftest.defines:
13031 ac_max_sed_lines=50
13032
13033 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13034 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13035 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13036 # et cetera.
13037 ac_in='$ac_file_inputs'
13038 ac_out='"$tmp/out1"'
13039 ac_nxt='"$tmp/out2"'
13040
13041 while :
13042 do
13043 # Write a here document:
13044 cat >>$CONFIG_STATUS <<_ACEOF
13045 # First, check the format of the line:
13046 cat >"\$tmp/defines.sed" <<\\CEOF
13047 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13048 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13049 b
13050 :def
13051 _ACEOF
13052 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13053 echo 'CEOF
13054 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13055 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13056 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13057 grep . conftest.tail >/dev/null || break
13058 rm -f conftest.defines
13059 mv conftest.tail conftest.defines
13060 done
13061 rm -f conftest.defines conftest.tail
13062
13063 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13064 cat >>$CONFIG_STATUS <<\_ACEOF
13065 if test x"$ac_file" != x-; then
13066 echo "/* $configure_input */" >"$tmp/config.h"
13067 cat "$ac_result" >>"$tmp/config.h"
13068 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13069 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13070 echo "$as_me: $ac_file is unchanged" >&6;}
13071 else
13072 rm -f $ac_file
13073 mv "$tmp/config.h" $ac_file
13074 fi
13075 else
13076 echo "/* $configure_input */"
13077 cat "$ac_result"
13078 fi
13079 rm -f "$tmp/out12"
13080 ;;
13081
13082
13083 esac
13084
13085 done # for ac_tag
13086
13087
13088 { (exit 0); exit 0; }
13089 _ACEOF
13090 chmod +x $CONFIG_STATUS
13091 ac_clean_files=$ac_clean_files_save
13092
13093
13094 # configure is writing to config.log, and then calls config.status.
13095 # config.status does its own redirection, appending to config.log.
13096 # Unfortunately, on DOS this fails, as config.log is still kept open
13097 # by configure, so config.status won't be able to write to it; its
13098 # output is simply discarded. So we exec the FD to /dev/null,
13099 # effectively closing config.log, so it can be properly (re)opened and
13100 # appended to by config.status. When coming back to configure, we
13101 # need to make the FD available again.
13102 if test "$no_create" != yes; then
13103 ac_cs_success=:
13104 ac_config_status_args=
13105 test "$silent" = yes &&
13106 ac_config_status_args="$ac_config_status_args --quiet"
13107 exec 5>/dev/null
13108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13109 exec 5>>config.log
13110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13111 # would make configure fail if this is the last instruction.
13112 $ac_cs_success || { (exit 1); exit 1; }
13113 fi
13114
13115
13116 if test x$ODIRECT != xyes; then
13117 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13118 echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
13119 fi
This page took 0.796269 seconds and 6 git commands to generate.