]> sourceware.org Git - lvm2.git/blob - configure
add not-yet-working udev options
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
640 usrsbindir
641 usrlibdir
642 udevdir
643 udev_prefix
644 tmpdir
645 kernelvsn
646 missingkernel
647 kerneldir
648 interface
649 LIB_PTHREAD
650 UDEV_RULES
651 STATIC_LINK
652 STATICDIR
653 SNAPSHOTS
654 POOL
655 PKGCONFIG
656 OWNER
657 MIRRORS
658 LVM_RELEASE_DATE
659 LVM_RELEASE
660 LVM_PATCHLEVEL
661 LVM_MINOR
662 LVM_MAJOR
663 LVM_LIBAPI
664 LVM_VERSION
665 LVM1_FALLBACK
666 LVM1
667 LOCALEDIR
668 LIB_SUFFIX
669 LDDEPS
670 JOBS
671 INTL_PACKAGE
672 INTL
673 HAVE_SELINUX
674 HAVE_REALTIME
675 HAVE_LIBDL
676 GROUP
677 FSADM
678 DM_LIB_PATCHLEVEL
679 DM_LIB_VERSION
680 DM_IOCTLS
681 DM_DEVICE_UID
682 DM_DEVICE_MODE
683 DM_DEVICE_GID
684 DM_COMPAT
685 DMEVENTD
686 DEVMAPPER
687 DEBUG
688 COPTIMISE_FLAG
689 CONFDIR
690 CMDLIB
691 CLVMD
692 CLUSTER
693 CLDWHOLEARCHIVE
694 CLDNOWHOLEARCHIVE
695 CLDFLAGS
696 BUILD_DMEVENTD
697 APPLIB
698 MODPROBE_CMD
699 MSGFMT
700 LVM2CMD_LIB
701 LVM2APP_LIB
702 GENHTML
703 LCOV
704 CPG_LIBS
705 CPG_CFLAGS
706 CONFDB_LIBS
707 CONFDB_CFLAGS
708 QUORUM_LIBS
709 QUORUM_CFLAGS
710 PKG_CONFIG
711 POW_LIB
712 LIBOBJS
713 ALLOCA
714 CSCOPE_CMD
715 CFLOW_CMD
716 RANLIB
717 MKDIR_P
718 SET_MAKE
719 LN_S
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 EGREP
724 GREP
725 CPP
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 AWK
734 SED
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_static_link
788 with_user
789 with_group
790 with_device_uid
791 with_device_gid
792 with_device_mode
793 enable_lvm1_fallback
794 with_lvm1
795 with_pool
796 with_cluster
797 with_snapshots
798 with_mirrors
799 enable_readline
800 enable_realtime
801 with_clvmd
802 enable_debug
803 with_optimisation
804 enable_profiling
805 enable_devmapper
806 enable_udev_sync
807 enable_udev_rules
808 enable_compat
809 enable_ioctl
810 enable_o_direct
811 enable_applib
812 enable_cmdlib
813 enable_pkgconfig
814 enable_fsadm
815 enable_dmeventd
816 enable_selinux
817 enable_nls
818 with_localedir
819 with_confdir
820 with_staticdir
821 with_usrlibdir
822 with_usrsbindir
823 with_udev_prefix
824 with_dmeventd_pidfile
825 with_dmeventd_path
826 with_interface
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 CPP
837 PKG_CONFIG
838 QUORUM_CFLAGS
839 QUORUM_LIBS
840 CONFDB_CFLAGS
841 CONFDB_LIBS
842 CPG_CFLAGS
843 CPG_LIBS'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
903 fi
904
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
980 { (exit 1); exit 1; }; }
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1011
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1016
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1046
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1120
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1185 { (exit 1); exit 1; }; }
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1233 Try \`$0 --help' for more information." >&2
1234 { (exit 1); exit 1; }; }
1235 ;;
1236
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1242 { (exit 1); exit 1; }; }
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 ;;
1253
1254 esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1260 { (exit 1); exit 1; }; }
1261 fi
1262
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1267 { (exit 1); exit 1; }; } ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270 fi
1271
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277 do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures this package to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-static_link Use this to link the tools to their libraries
1469 statically. Default is dynamic linking
1470 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1471 device-mapper is missing from the kernel
1472 --disable-readline Disable readline support
1473 --disable-realtime Disable realtime clock support
1474 --enable-debug Enable debugging
1475 --enable-profiling Gather gcov profiling data
1476 --disable-devmapper Disable LVM2 device-mapper interaction
1477 --enable-udev_sync Enable synchronisation with udev processing
1478 --enable-udev_rules Install rule files needed for udev synchronisation
1479 --enable-compat Enable support for old device-mapper versions
1480 --disable-driver Disable calls to device-mapper in the kernel
1481 --disable-o_direct Disable O_DIRECT
1482 --enable-applib Build application library
1483 --enable-cmdlib Build shared command library
1484 --enable-pkgconfig Install pkgconfig support
1485 --enable-fsadm Enable fsadm
1486 --enable-dmeventd Enable the device-mapper event daemon
1487 --disable-selinux Disable selinux support
1488 --enable-nls Enable Native Language Support
1489
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-user=USER Set the owner of installed files [USER=root]
1494 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1495 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1496 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1497 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1498 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1499 TYPE=internal
1500 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1501 TYPE=internal
1502 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1503 TYPE=internal
1504 --with-snapshots=TYPE Snapshot support: internal/shared/none
1505 TYPE=internal
1506 --with-mirrors=TYPE Mirror support: internal/shared/none
1507 TYPE=internal
1508 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
1509 TYPE=none
1510 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1511 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1512 --with-confdir=DIR Configuration files in DIR [/etc]
1513 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1514 --with-usrlibdir=DIR
1515 --with-usrsbindir=DIR
1516 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1517 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1518 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1519 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1520
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 PKG_CONFIG path to pkg-config utility
1531 QUORUM_CFLAGS
1532 C compiler flags for QUORUM, overriding pkg-config
1533 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1534 CONFDB_CFLAGS
1535 C compiler flags for CONFDB, overriding pkg-config
1536 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1537 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1538 CPG_LIBS linker flags for CPG, overriding pkg-config
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
1553 ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 configure
1606 generated by GNU Autoconf 2.63
1607
1608 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1609 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613 exit
1614 fi
1615 cat >config.log <<_ACEOF
1616 This file contains any messages produced by compilers while
1617 running configure, to aid debugging if configure makes a mistake.
1618
1619 It was created by $as_me, which was
1620 generated by GNU Autoconf 2.63. Invocation command line was
1621
1622 $ $0 $@
1623
1624 _ACEOF
1625 exec 5>>config.log
1626 {
1627 cat <<_ASUNAME
1628 ## --------- ##
1629 ## Platform. ##
1630 ## --------- ##
1631
1632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1637
1638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1640
1641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648
1649 _ASUNAME
1650
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 $as_echo "PATH: $as_dir"
1657 done
1658 IFS=$as_save_IFS
1659
1660 } >&5
1661
1662 cat >&5 <<_ACEOF
1663
1664
1665 ## ----------- ##
1666 ## Core tests. ##
1667 ## ----------- ##
1668
1669 _ACEOF
1670
1671
1672 # Keep a trace of the command line.
1673 # Strip out --no-create and --no-recursion so they do not pile up.
1674 # Strip out --silent because we don't want to record it for future runs.
1675 # Also quote any args containing shell meta-characters.
1676 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_configure_args=
1678 ac_configure_args0=
1679 ac_configure_args1=
1680 ac_must_keep_next=false
1681 for ac_pass in 1 2
1682 do
1683 for ac_arg
1684 do
1685 case $ac_arg in
1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1689 continue ;;
1690 *\'*)
1691 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 esac
1693 case $ac_pass in
1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1695 2)
1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697 if test $ac_must_keep_next = true; then
1698 ac_must_keep_next=false # Got value, back to normal.
1699 else
1700 case $ac_arg in
1701 *=* | --config-cache | -C | -disable-* | --disable-* \
1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704 | -with-* | --with-* | -without-* | --without-* | --x)
1705 case "$ac_configure_args0 " in
1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707 esac
1708 ;;
1709 -* ) ac_must_keep_next=true ;;
1710 esac
1711 fi
1712 ac_configure_args="$ac_configure_args '$ac_arg'"
1713 ;;
1714 esac
1715 done
1716 done
1717 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1719
1720 # When interrupted or exit'd, cleanup temporary files, and complete
1721 # config.log. We remove comments because anyway the quotes in there
1722 # would cause problems or look ugly.
1723 # WARNING: Use '\'' to represent an apostrophe within the trap.
1724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1725 trap 'exit_status=$?
1726 # Save into config.log some information that might help in debugging.
1727 {
1728 echo
1729
1730 cat <<\_ASBOX
1731 ## ---------------- ##
1732 ## Cache variables. ##
1733 ## ---------------- ##
1734 _ASBOX
1735 echo
1736 # The following way of writing the cache mishandles newlines in values,
1737 (
1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in #(
1741 *${as_nl}*)
1742 case $ac_var in #(
1743 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1745 esac
1746 case $ac_var in #(
1747 _ | IFS | as_nl) ;; #(
1748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1749 *) $as_unset $ac_var ;;
1750 esac ;;
1751 esac
1752 done
1753 (set) 2>&1 |
1754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1755 *${as_nl}ac_space=\ *)
1756 sed -n \
1757 "s/'\''/'\''\\\\'\'''\''/g;
1758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759 ;; #(
1760 *)
1761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 ;;
1763 esac |
1764 sort
1765 )
1766 echo
1767
1768 cat <<\_ASBOX
1769 ## ----------------- ##
1770 ## Output variables. ##
1771 ## ----------------- ##
1772 _ASBOX
1773 echo
1774 for ac_var in $ac_subst_vars
1775 do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in
1778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 esac
1780 $as_echo "$ac_var='\''$ac_val'\''"
1781 done | sort
1782 echo
1783
1784 if test -n "$ac_subst_files"; then
1785 cat <<\_ASBOX
1786 ## ------------------- ##
1787 ## File substitutions. ##
1788 ## ------------------- ##
1789 _ASBOX
1790 echo
1791 for ac_var in $ac_subst_files
1792 do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
1795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 esac
1797 $as_echo "$ac_var='\''$ac_val'\''"
1798 done | sort
1799 echo
1800 fi
1801
1802 if test -s confdefs.h; then
1803 cat <<\_ASBOX
1804 ## ----------- ##
1805 ## confdefs.h. ##
1806 ## ----------- ##
1807 _ASBOX
1808 echo
1809 cat confdefs.h
1810 echo
1811 fi
1812 test "$ac_signal" != 0 &&
1813 $as_echo "$as_me: caught signal $ac_signal"
1814 $as_echo "$as_me: exit $exit_status"
1815 } >&5
1816 rm -f core *.core core.conftest.* &&
1817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1818 exit $exit_status
1819 ' 0
1820 for ac_signal in 1 2 13 15; do
1821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822 done
1823 ac_signal=0
1824
1825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1826 rm -f -r conftest* confdefs.h
1827
1828 # Predefined preprocessor variables.
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_NAME "$PACKAGE_NAME"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_STRING "$PACKAGE_STRING"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852 _ACEOF
1853
1854
1855 # Let the site file select an alternate cache file if it wants to.
1856 # Prefer an explicitly selected file to automatically selected ones.
1857 ac_site_file1=NONE
1858 ac_site_file2=NONE
1859 if test -n "$CONFIG_SITE"; then
1860 ac_site_file1=$CONFIG_SITE
1861 elif test "x$prefix" != xNONE; then
1862 ac_site_file1=$prefix/share/config.site
1863 ac_site_file2=$prefix/etc/config.site
1864 else
1865 ac_site_file1=$ac_default_prefix/share/config.site
1866 ac_site_file2=$ac_default_prefix/etc/config.site
1867 fi
1868 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1869 do
1870 test "x$ac_site_file" = xNONE && continue
1871 if test -r "$ac_site_file"; then
1872 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1874 sed 's/^/| /' "$ac_site_file" >&5
1875 . "$ac_site_file"
1876 fi
1877 done
1878
1879 if test -r "$cache_file"; then
1880 # Some versions of bash will fail to source /dev/null (special
1881 # files actually), so we avoid doing that.
1882 if test -f "$cache_file"; then
1883 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884 $as_echo "$as_me: loading cache $cache_file" >&6;}
1885 case $cache_file in
1886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
1888 esac
1889 fi
1890 else
1891 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892 $as_echo "$as_me: creating cache $cache_file" >&6;}
1893 >$cache_file
1894 fi
1895
1896 # Check that the precious variables saved in the cache have kept the same
1897 # value.
1898 ac_cache_corrupted=false
1899 for ac_var in $ac_precious_vars; do
1900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1901 eval ac_new_set=\$ac_env_${ac_var}_set
1902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1903 eval ac_new_val=\$ac_env_${ac_var}_value
1904 case $ac_old_set,$ac_new_set in
1905 set,)
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1907 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1909 ,set)
1910 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1911 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,);;
1914 *)
1915 if test "x$ac_old_val" != "x$ac_new_val"; then
1916 # differences in whitespace do not lead to failure.
1917 ac_old_val_w=`echo x $ac_old_val`
1918 ac_new_val_w=`echo x $ac_new_val`
1919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 ac_cache_corrupted=:
1923 else
1924 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1926 eval $ac_var=\$ac_old_val
1927 fi
1928 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1929 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1930 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1931 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1932 fi;;
1933 esac
1934 # Pass precious variables to config.status.
1935 if test "$ac_new_set" = set; then
1936 case $ac_new_val in
1937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 *) ac_arg=$ac_var=$ac_new_val ;;
1939 esac
1940 case " $ac_configure_args " in
1941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1942 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1943 esac
1944 fi
1945 done
1946 if $ac_cache_corrupted; then
1947 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1949 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1954 fi
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978
1979
1980 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1981
1982
1983 ################################################################################
1984 ac_aux_dir=
1985 for ac_dir in autoconf "$srcdir"/autoconf; do
1986 if test -f "$ac_dir/install-sh"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install-sh -c"
1989 break
1990 elif test -f "$ac_dir/install.sh"; then
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/install.sh -c"
1993 break
1994 elif test -f "$ac_dir/shtool"; then
1995 ac_aux_dir=$ac_dir
1996 ac_install_sh="$ac_aux_dir/shtool install -c"
1997 break
1998 fi
1999 done
2000 if test -z "$ac_aux_dir"; then
2001 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2002 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2003 { (exit 1); exit 1; }; }
2004 fi
2005
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2013
2014
2015
2016 ################################################################################
2017 # Make sure we can run config.sub.
2018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2019 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021 { (exit 1); exit 1; }; }
2022
2023 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2024 $as_echo_n "checking build system type... " >&6; }
2025 if test "${ac_cv_build+set}" = set; then
2026 $as_echo_n "(cached) " >&6
2027 else
2028 ac_build_alias=$build_alias
2029 test "x$ac_build_alias" = x &&
2030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031 test "x$ac_build_alias" = x &&
2032 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034 { (exit 1); exit 1; }; }
2035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
2039
2040 fi
2041 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 $as_echo "$ac_cv_build" >&6; }
2043 case $ac_cv_build in
2044 *-*-*) ;;
2045 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2047 { (exit 1); exit 1; }; };;
2048 esac
2049 build=$ac_cv_build
2050 ac_save_IFS=$IFS; IFS='-'
2051 set x $ac_cv_build
2052 shift
2053 build_cpu=$1
2054 build_vendor=$2
2055 shift; shift
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2058 build_os=$*
2059 IFS=$ac_save_IFS
2060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061
2062
2063 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2064 $as_echo_n "checking host system type... " >&6; }
2065 if test "${ac_cv_host+set}" = set; then
2066 $as_echo_n "(cached) " >&6
2067 else
2068 if test "x$host_alias" = x; then
2069 ac_cv_host=$ac_cv_build
2070 else
2071 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2075 fi
2076
2077 fi
2078 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079 $as_echo "$ac_cv_host" >&6; }
2080 case $ac_cv_host in
2081 *-*-*) ;;
2082 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2084 { (exit 1); exit 1; }; };;
2085 esac
2086 host=$ac_cv_host
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_host
2089 shift
2090 host_cpu=$1
2091 host_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 host_os=$*
2096 IFS=$ac_save_IFS
2097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098
2099
2100 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2101 $as_echo_n "checking target system type... " >&6; }
2102 if test "${ac_cv_target+set}" = set; then
2103 $as_echo_n "(cached) " >&6
2104 else
2105 if test "x$target_alias" = x; then
2106 ac_cv_target=$ac_cv_host
2107 else
2108 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2112 fi
2113
2114 fi
2115 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116 $as_echo "$ac_cv_target" >&6; }
2117 case $ac_cv_target in
2118 *-*-*) ;;
2119 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2121 { (exit 1); exit 1; }; };;
2122 esac
2123 target=$ac_cv_target
2124 ac_save_IFS=$IFS; IFS='-'
2125 set x $ac_cv_target
2126 shift
2127 target_cpu=$1
2128 target_vendor=$2
2129 shift; shift
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2132 target_os=$*
2133 IFS=$ac_save_IFS
2134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135
2136
2137 # The aliases save the names the user supplied, while $host etc.
2138 # will get canonicalized.
2139 test -n "$target_alias" &&
2140 test "$program_prefix$program_suffix$program_transform_name" = \
2141 NONENONEs,x,x, &&
2142 program_prefix=${target_alias}-
2143
2144 case "$host_os" in
2145 linux*)
2146 CFLAGS="$CFLAGS"
2147 COPTIMISE_FLAG="-O2"
2148 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2149 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2150 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2151 LDDEPS="$LDDEPS .export.sym"
2152 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2153 LIB_SUFFIX=so
2154 DEVMAPPER=yes
2155 ODIRECT=yes
2156 DM_IOCTLS=yes
2157 SELINUX=yes
2158 REALTIME=yes
2159 CLUSTER=internal
2160 FSADM=yes
2161 ;;
2162 darwin*)
2163 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2164 COPTIMISE_FLAG="-O2"
2165 CLDFLAGS="$CLDFLAGS"
2166 CLDWHOLEARCHIVE="-all_load"
2167 CLDNOWHOLEARCHIVE=
2168 LIB_SUFFIX=dylib
2169 DEVMAPPER=yes
2170 ODIRECT=no
2171 DM_IOCTLS=no
2172 SELINUX=no
2173 REALTIME=no
2174 CLUSTER=none
2175 FSADM=no
2176 ;;
2177 esac
2178
2179 ################################################################################
2180 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2182 if test "${ac_cv_path_SED+set}" = set; then
2183 $as_echo_n "(cached) " >&6
2184 else
2185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2186 for ac_i in 1 2 3 4 5 6 7; do
2187 ac_script="$ac_script$as_nl$ac_script"
2188 done
2189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2190 $as_unset ac_script || ac_script=
2191 if test -z "$SED"; then
2192 ac_path_SED_found=false
2193 # Loop through the user's path and test for each of PROGNAME-LIST
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_prog in sed gsed; do
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2202 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2203 # Check for GNU ac_path_SED and select it if it is found.
2204 # Check for GNU $ac_path_SED
2205 case `"$ac_path_SED" --version 2>&1` in
2206 *GNU*)
2207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2208 *)
2209 ac_count=0
2210 $as_echo_n 0123456789 >"conftest.in"
2211 while :
2212 do
2213 cat "conftest.in" "conftest.in" >"conftest.tmp"
2214 mv "conftest.tmp" "conftest.in"
2215 cp "conftest.in" "conftest.nl"
2216 $as_echo '' >> "conftest.nl"
2217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2219 ac_count=`expr $ac_count + 1`
2220 if test $ac_count -gt ${ac_path_SED_max-0}; then
2221 # Best one so far, save it but keep looking for a better one
2222 ac_cv_path_SED="$ac_path_SED"
2223 ac_path_SED_max=$ac_count
2224 fi
2225 # 10*(2^10) chars as input seems more than enough
2226 test $ac_count -gt 10 && break
2227 done
2228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2229 esac
2230
2231 $ac_path_SED_found && break 3
2232 done
2233 done
2234 done
2235 IFS=$as_save_IFS
2236 if test -z "$ac_cv_path_SED"; then
2237 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2238 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2239 { (exit 1); exit 1; }; }
2240 fi
2241 else
2242 ac_cv_path_SED=$SED
2243 fi
2244
2245 fi
2246 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2247 $as_echo "$ac_cv_path_SED" >&6; }
2248 SED="$ac_cv_path_SED"
2249 rm -f conftest.sed
2250
2251 for ac_prog in gawk mawk nawk awk
2252 do
2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; }
2257 if test "${ac_cv_prog_AWK+set}" = set; then
2258 $as_echo_n "(cached) " >&6
2259 else
2260 if test -n "$AWK"; then
2261 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2265 do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_AWK="$ac_prog"
2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2273 fi
2274 done
2275 done
2276 IFS=$as_save_IFS
2277
2278 fi
2279 fi
2280 AWK=$ac_cv_prog_AWK
2281 if test -n "$AWK"; then
2282 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2283 $as_echo "$AWK" >&6; }
2284 else
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286 $as_echo "no" >&6; }
2287 fi
2288
2289
2290 test -n "$AWK" && break
2291 done
2292
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 if test -n "$ac_tool_prefix"; then
2299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 $as_echo_n "checking for $ac_word... " >&6; }
2303 if test "${ac_cv_prog_CC+set}" = set; then
2304 $as_echo_n "(cached) " >&6
2305 else
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324 fi
2325 fi
2326 CC=$ac_cv_prog_CC
2327 if test -n "$CC"; then
2328 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2329 $as_echo "$CC" >&6; }
2330 else
2331 { $as_echo "$as_me:$LINENO: result: no" >&5
2332 $as_echo "no" >&6; }
2333 fi
2334
2335
2336 fi
2337 if test -z "$ac_cv_prog_CC"; then
2338 ac_ct_CC=$CC
2339 # Extract the first word of "gcc", so it can be a program name with args.
2340 set dummy gcc; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2344 $as_echo_n "(cached) " >&6
2345 else
2346 if test -n "$ac_ct_CC"; then
2347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_ac_ct_CC="gcc"
2357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2359 fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2367 if test -n "$ac_ct_CC"; then
2368 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2369 $as_echo "$ac_ct_CC" >&6; }
2370 else
2371 { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375 if test "x$ac_ct_CC" = x; then
2376 CC=""
2377 else
2378 case $cross_compiling:$ac_tool_warned in
2379 yes:)
2380 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2382 ac_tool_warned=yes ;;
2383 esac
2384 CC=$ac_ct_CC
2385 fi
2386 else
2387 CC="$ac_cv_prog_CC"
2388 fi
2389
2390 if test -z "$CC"; then
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}cc; ac_word=$2
2394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 $as_echo_n "checking for $ac_word... " >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}cc"
2410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2422 $as_echo "$CC" >&6; }
2423 else
2424 { $as_echo "$as_me:$LINENO: result: no" >&5
2425 $as_echo "no" >&6; }
2426 fi
2427
2428
2429 fi
2430 fi
2431 if test -z "$CC"; then
2432 # Extract the first word of "cc", so it can be a program name with args.
2433 set dummy cc; ac_word=$2
2434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 ac_prog_rejected=no
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2451 ac_prog_rejected=yes
2452 continue
2453 fi
2454 ac_cv_prog_CC="cc"
2455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458 done
2459 done
2460 IFS=$as_save_IFS
2461
2462 if test $ac_prog_rejected = yes; then
2463 # We found a bogon in the path, so make sure we never use it.
2464 set dummy $ac_cv_prog_CC
2465 shift
2466 if test $# != 0; then
2467 # We chose a different compiler from the bogus one.
2468 # However, it has the same basename, so the bogon will be chosen
2469 # first if we set CC to just the basename; use the full file name.
2470 shift
2471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2472 fi
2473 fi
2474 fi
2475 fi
2476 CC=$ac_cv_prog_CC
2477 if test -n "$CC"; then
2478 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2479 $as_echo "$CC" >&6; }
2480 else
2481 { $as_echo "$as_me:$LINENO: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485
2486 fi
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 for ac_prog in cl.exe
2490 do
2491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 $as_echo_n "(cached) " >&6
2497 else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2521 $as_echo "$CC" >&6; }
2522 else
2523 { $as_echo "$as_me:$LINENO: result: no" >&5
2524 $as_echo "no" >&6; }
2525 fi
2526
2527
2528 test -n "$CC" && break
2529 done
2530 fi
2531 if test -z "$CC"; then
2532 ac_ct_CC=$CC
2533 for ac_prog in cl.exe
2534 do
2535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2536 set dummy $ac_prog; ac_word=$2
2537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test -n "$ac_ct_CC"; then
2543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_ac_ct_CC="$ac_prog"
2553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2563 if test -n "$ac_ct_CC"; then
2564 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2565 $as_echo "$ac_ct_CC" >&6; }
2566 else
2567 { $as_echo "$as_me:$LINENO: result: no" >&5
2568 $as_echo "no" >&6; }
2569 fi
2570
2571
2572 test -n "$ac_ct_CC" && break
2573 done
2574
2575 if test "x$ac_ct_CC" = x; then
2576 CC=""
2577 else
2578 case $cross_compiling:$ac_tool_warned in
2579 yes:)
2580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582 ac_tool_warned=yes ;;
2583 esac
2584 CC=$ac_ct_CC
2585 fi
2586 fi
2587
2588 fi
2589
2590
2591 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2594 See \`config.log' for more details." >&5
2595 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }; }
2598
2599 # Provide some information about the compiler.
2600 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2601 set X $ac_compile
2602 ac_compiler=$2
2603 { (ac_try="$ac_compiler --version >&5"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2609 $as_echo "$ac_try_echo") >&5
2610 (eval "$ac_compiler --version >&5") 2>&5
2611 ac_status=$?
2612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }
2614 { (ac_try="$ac_compiler -v >&5"
2615 case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618 esac
2619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2620 $as_echo "$ac_try_echo") >&5
2621 (eval "$ac_compiler -v >&5") 2>&5
2622 ac_status=$?
2623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }
2625 { (ac_try="$ac_compiler -V >&5"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2631 $as_echo "$ac_try_echo") >&5
2632 (eval "$ac_compiler -V >&5") 2>&5
2633 ac_status=$?
2634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }
2636
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643
2644 int
2645 main ()
2646 {
2647
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 ac_clean_files_save=$ac_clean_files
2653 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2654 # Try to create an executable without -o first, disregard a.out.
2655 # It will help us diagnose broken compilers, and finding out an intuition
2656 # of exeext.
2657 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2658 $as_echo_n "checking for C compiler default output file name... " >&6; }
2659 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2660
2661 # The possible output files:
2662 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2663
2664 ac_rmfiles=
2665 for ac_file in $ac_files
2666 do
2667 case $ac_file in
2668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2669 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2670 esac
2671 done
2672 rm -f $ac_rmfiles
2673
2674 if { (ac_try="$ac_link_default"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680 $as_echo "$ac_try_echo") >&5
2681 (eval "$ac_link_default") 2>&5
2682 ac_status=$?
2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2686 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2687 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2688 # so that the user can short-circuit this test for compilers unknown to
2689 # Autoconf.
2690 for ac_file in $ac_files ''
2691 do
2692 test -f "$ac_file" || continue
2693 case $ac_file in
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2695 ;;
2696 [ab].out )
2697 # We found the default executable, but exeext='' is most
2698 # certainly right.
2699 break;;
2700 *.* )
2701 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2702 then :; else
2703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2704 fi
2705 # We set ac_cv_exeext here because the later test for it is not
2706 # safe: cross compilers may not add the suffix if given an `-o'
2707 # argument, so we may need to know it at that point already.
2708 # Even if this section looks crufty: it has the advantage of
2709 # actually working.
2710 break;;
2711 * )
2712 break;;
2713 esac
2714 done
2715 test "$ac_cv_exeext" = no && ac_cv_exeext=
2716
2717 else
2718 ac_file=''
2719 fi
2720
2721 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2722 $as_echo "$ac_file" >&6; }
2723 if test -z "$ac_file"; then
2724 $as_echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2729 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2730 See \`config.log' for more details." >&5
2731 $as_echo "$as_me: error: C compiler cannot create executables
2732 See \`config.log' for more details." >&2;}
2733 { (exit 77); exit 77; }; }; }
2734 fi
2735
2736 ac_exeext=$ac_cv_exeext
2737
2738 # Check that the compiler produces executables we can run. If not, either
2739 # the compiler is broken, or we cross compile.
2740 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2741 $as_echo_n "checking whether the C compiler works... " >&6; }
2742 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2743 # If not cross compiling, check that we can run a simple program.
2744 if test "$cross_compiling" != yes; then
2745 if { ac_try='./$ac_file'
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2751 $as_echo "$ac_try_echo") >&5
2752 (eval "$ac_try") 2>&5
2753 ac_status=$?
2754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 cross_compiling=no
2757 else
2758 if test "$cross_compiling" = maybe; then
2759 cross_compiling=yes
2760 else
2761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2764 If you meant to cross compile, use \`--host'.
2765 See \`config.log' for more details." >&5
2766 $as_echo "$as_me: error: cannot run C compiled programs.
2767 If you meant to cross compile, use \`--host'.
2768 See \`config.log' for more details." >&2;}
2769 { (exit 1); exit 1; }; }; }
2770 fi
2771 fi
2772 fi
2773 { $as_echo "$as_me:$LINENO: result: yes" >&5
2774 $as_echo "yes" >&6; }
2775
2776 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2777 ac_clean_files=$ac_clean_files_save
2778 # Check that the compiler produces executables we can run. If not, either
2779 # the compiler is broken, or we cross compile.
2780 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2781 $as_echo_n "checking whether we are cross compiling... " >&6; }
2782 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2783 $as_echo "$cross_compiling" >&6; }
2784
2785 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2786 $as_echo_n "checking for suffix of executables... " >&6; }
2787 if { (ac_try="$ac_link"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2793 $as_echo "$ac_try_echo") >&5
2794 (eval "$ac_link") 2>&5
2795 ac_status=$?
2796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; then
2798 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2799 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2800 # work properly (i.e., refer to `conftest.exe'), while it won't with
2801 # `rm'.
2802 for ac_file in conftest.exe conftest conftest.*; do
2803 test -f "$ac_file" || continue
2804 case $ac_file in
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 break;;
2808 * ) break;;
2809 esac
2810 done
2811 else
2812 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2815 See \`config.log' for more details." >&5
2816 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2817 See \`config.log' for more details." >&2;}
2818 { (exit 1); exit 1; }; }; }
2819 fi
2820
2821 rm -f conftest$ac_cv_exeext
2822 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2823 $as_echo "$ac_cv_exeext" >&6; }
2824
2825 rm -f conftest.$ac_ext
2826 EXEEXT=$ac_cv_exeext
2827 ac_exeext=$EXEEXT
2828 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2829 $as_echo_n "checking for suffix of object files... " >&6; }
2830 if test "${ac_cv_objext+set}" = set; then
2831 $as_echo_n "(cached) " >&6
2832 else
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839
2840 int
2841 main ()
2842 {
2843
2844 ;
2845 return 0;
2846 }
2847 _ACEOF
2848 rm -f conftest.o conftest.obj
2849 if { (ac_try="$ac_compile"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856 (eval "$ac_compile") 2>&5
2857 ac_status=$?
2858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; then
2860 for ac_file in conftest.o conftest.obj conftest.*; do
2861 test -f "$ac_file" || continue;
2862 case $ac_file in
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2865 break;;
2866 esac
2867 done
2868 else
2869 $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2875 See \`config.log' for more details." >&5
2876 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }; }
2879 fi
2880
2881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2882 fi
2883 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2884 $as_echo "$ac_cv_objext" >&6; }
2885 OBJEXT=$ac_cv_objext
2886 ac_objext=$OBJEXT
2887 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2888 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2889 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2890 $as_echo_n "(cached) " >&6
2891 else
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898
2899 int
2900 main ()
2901 {
2902 #ifndef __GNUC__
2903 choke me
2904 #endif
2905
2906 ;
2907 return 0;
2908 }
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (ac_try="$ac_compile"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917 $as_echo "$ac_try_echo") >&5
2918 (eval "$ac_compile") 2>conftest.er1
2919 ac_status=$?
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
2923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } && {
2925 test -z "$ac_c_werror_flag" ||
2926 test ! -s conftest.err
2927 } && test -s conftest.$ac_objext; then
2928 ac_compiler_gnu=yes
2929 else
2930 $as_echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 ac_compiler_gnu=no
2934 fi
2935
2936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2938
2939 fi
2940 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2942 if test $ac_compiler_gnu = yes; then
2943 GCC=yes
2944 else
2945 GCC=
2946 fi
2947 ac_test_CFLAGS=${CFLAGS+set}
2948 ac_save_CFLAGS=$CFLAGS
2949 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2950 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2951 if test "${ac_cv_prog_cc_g+set}" = set; then
2952 $as_echo_n "(cached) " >&6
2953 else
2954 ac_save_c_werror_flag=$ac_c_werror_flag
2955 ac_c_werror_flag=yes
2956 ac_cv_prog_cc_g=no
2957 CFLAGS="-g"
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964
2965 int
2966 main ()
2967 {
2968
2969 ;
2970 return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2980 $as_echo "$ac_try_echo") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } && {
2988 test -z "$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
2991 ac_cv_prog_cc_g=yes
2992 else
2993 $as_echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 CFLAGS=""
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003
3004 int
3005 main ()
3006 {
3007
3008 ;
3009 return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3014 case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3019 $as_echo "$ac_try_echo") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && {
3027 test -z "$ac_c_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest.$ac_objext; then
3030 :
3031 else
3032 $as_echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036 CFLAGS="-g"
3037 cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h. */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3043
3044 int
3045 main ()
3046 {
3047
3048 ;
3049 return 0;
3050 }
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (ac_try="$ac_compile"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3059 $as_echo "$ac_try_echo") >&5
3060 (eval "$ac_compile") 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } && {
3067 test -z "$ac_c_werror_flag" ||
3068 test ! -s conftest.err
3069 } && test -s conftest.$ac_objext; then
3070 ac_cv_prog_cc_g=yes
3071 else
3072 $as_echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075
3076 fi
3077
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 fi
3080
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 fi
3083
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_c_werror_flag=$ac_save_c_werror_flag
3086 fi
3087 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3088 $as_echo "$ac_cv_prog_cc_g" >&6; }
3089 if test "$ac_test_CFLAGS" = set; then
3090 CFLAGS=$ac_save_CFLAGS
3091 elif test $ac_cv_prog_cc_g = yes; then
3092 if test "$GCC" = yes; then
3093 CFLAGS="-g -O2"
3094 else
3095 CFLAGS="-g"
3096 fi
3097 else
3098 if test "$GCC" = yes; then
3099 CFLAGS="-O2"
3100 else
3101 CFLAGS=
3102 fi
3103 fi
3104 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3105 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3106 if test "${ac_cv_prog_cc_c89+set}" = set; then
3107 $as_echo_n "(cached) " >&6
3108 else
3109 ac_cv_prog_cc_c89=no
3110 ac_save_CC=$CC
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117 #include <stdarg.h>
3118 #include <stdio.h>
3119 #include <sys/types.h>
3120 #include <sys/stat.h>
3121 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3122 struct buf { int x; };
3123 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3124 static char *e (p, i)
3125 char **p;
3126 int i;
3127 {
3128 return p[i];
3129 }
3130 static char *f (char * (*g) (char **, int), char **p, ...)
3131 {
3132 char *s;
3133 va_list v;
3134 va_start (v,p);
3135 s = g (p, va_arg (v,int));
3136 va_end (v);
3137 return s;
3138 }
3139
3140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3141 function prototypes and stuff, but not '\xHH' hex character constants.
3142 These don't provoke an error unfortunately, instead are silently treated
3143 as 'x'. The following induces an error, until -std is added to get
3144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3145 array size at least. It's necessary to write '\x00'==0 to get something
3146 that's true only with -std. */
3147 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3148
3149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3150 inside strings and character constants. */
3151 #define FOO(x) 'x'
3152 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3153
3154 int test (int i, double x);
3155 struct s1 {int (*f) (int a);};
3156 struct s2 {int (*f) (double a);};
3157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3158 int argc;
3159 char **argv;
3160 int
3161 main ()
3162 {
3163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3170 do
3171 CC="$ac_save_CC $ac_arg"
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179 $as_echo "$ac_try_echo") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 ac_cv_prog_cc_c89=$ac_arg
3191 else
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext
3199 test "x$ac_cv_prog_cc_c89" != "xno" && break
3200 done
3201 rm -f conftest.$ac_ext
3202 CC=$ac_save_CC
3203
3204 fi
3205 # AC_CACHE_VAL
3206 case "x$ac_cv_prog_cc_c89" in
3207 x)
3208 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3209 $as_echo "none needed" >&6; } ;;
3210 xno)
3211 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3212 $as_echo "unsupported" >&6; } ;;
3213 *)
3214 CC="$CC $ac_cv_prog_cc_c89"
3215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3216 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3217 esac
3218
3219
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225
3226
3227
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3234 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3235 # On Suns, sometimes $CPP names a directory.
3236 if test -n "$CPP" && test -d "$CPP"; then
3237 CPP=
3238 fi
3239 if test -z "$CPP"; then
3240 if test "${ac_cv_prog_CPP+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 # Double quotes because CPP needs to be expanded
3244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3245 do
3246 ac_preproc_ok=false
3247 for ac_c_preproc_warn_flag in '' yes
3248 do
3249 # Use a header file that comes with gcc, so configuring glibc
3250 # with a fresh cross-compiler works.
3251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3252 # <limits.h> exists even on freestanding compilers.
3253 # On the NeXT, cc -E runs the code through the compiler's parser,
3254 # not just through cpp. "Syntax error" is here to catch this case.
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #ifdef __STDC__
3262 # include <limits.h>
3263 #else
3264 # include <assert.h>
3265 #endif
3266 Syntax error
3267 _ACEOF
3268 if { (ac_try="$ac_cpp conftest.$ac_ext"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null && {
3282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 }; then
3285 :
3286 else
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 # Broken: fails on valid input.
3291 continue
3292 fi
3293
3294 rm -f conftest.err conftest.$ac_ext
3295
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <ac_nonexistent.h>
3305 _ACEOF
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null && {
3320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3321 test ! -s conftest.err
3322 }; then
3323 # Broken: success on invalid input.
3324 continue
3325 else
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329 # Passes both tests.
3330 ac_preproc_ok=:
3331 break
3332 fi
3333
3334 rm -f conftest.err conftest.$ac_ext
3335
3336 done
3337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338 rm -f conftest.err conftest.$ac_ext
3339 if $ac_preproc_ok; then
3340 break
3341 fi
3342
3343 done
3344 ac_cv_prog_CPP=$CPP
3345
3346 fi
3347 CPP=$ac_cv_prog_CPP
3348 else
3349 ac_cv_prog_CPP=$CPP
3350 fi
3351 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3352 $as_echo "$CPP" >&6; }
3353 ac_preproc_ok=false
3354 for ac_c_preproc_warn_flag in '' yes
3355 do
3356 # Use a header file that comes with gcc, so configuring glibc
3357 # with a fresh cross-compiler works.
3358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359 # <limits.h> exists even on freestanding compilers.
3360 # On the NeXT, cc -E runs the code through the compiler's parser,
3361 # not just through cpp. "Syntax error" is here to catch this case.
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #ifdef __STDC__
3369 # include <limits.h>
3370 #else
3371 # include <assert.h>
3372 #endif
3373 Syntax error
3374 _ACEOF
3375 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381 $as_echo "$ac_try_echo") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 :
3393 else
3394 $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 # Broken: fails on valid input.
3398 continue
3399 fi
3400
3401 rm -f conftest.err conftest.$ac_ext
3402
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3419 $as_echo "$ac_try_echo") >&5
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null && {
3427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 }; then
3430 # Broken: success on invalid input.
3431 continue
3432 else
3433 $as_echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 # Passes both tests.
3437 ac_preproc_ok=:
3438 break
3439 fi
3440
3441 rm -f conftest.err conftest.$ac_ext
3442
3443 done
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3447 :
3448 else
3449 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -z "$GREP"; then
3471 ac_path_GREP_found=false
3472 # Loop through the user's path and test for each of PROGNAME-LIST
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3475 do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_prog in grep ggrep; do
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3482 # Check for GNU ac_path_GREP and select it if it is found.
3483 # Check for GNU $ac_path_GREP
3484 case `"$ac_path_GREP" --version 2>&1` in
3485 *GNU*)
3486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3487 *)
3488 ac_count=0
3489 $as_echo_n 0123456789 >"conftest.in"
3490 while :
3491 do
3492 cat "conftest.in" "conftest.in" >"conftest.tmp"
3493 mv "conftest.tmp" "conftest.in"
3494 cp "conftest.in" "conftest.nl"
3495 $as_echo 'GREP' >> "conftest.nl"
3496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3498 ac_count=`expr $ac_count + 1`
3499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3500 # Best one so far, save it but keep looking for a better one
3501 ac_cv_path_GREP="$ac_path_GREP"
3502 ac_path_GREP_max=$ac_count
3503 fi
3504 # 10*(2^10) chars as input seems more than enough
3505 test $ac_count -gt 10 && break
3506 done
3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3508 esac
3509
3510 $ac_path_GREP_found && break 3
3511 done
3512 done
3513 done
3514 IFS=$as_save_IFS
3515 if test -z "$ac_cv_path_GREP"; then
3516 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3517 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3518 { (exit 1); exit 1; }; }
3519 fi
3520 else
3521 ac_cv_path_GREP=$GREP
3522 fi
3523
3524 fi
3525 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3526 $as_echo "$ac_cv_path_GREP" >&6; }
3527 GREP="$ac_cv_path_GREP"
3528
3529
3530 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3531 $as_echo_n "checking for egrep... " >&6; }
3532 if test "${ac_cv_path_EGREP+set}" = set; then
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3536 then ac_cv_path_EGREP="$GREP -E"
3537 else
3538 if test -z "$EGREP"; then
3539 ac_path_EGREP_found=false
3540 # Loop through the user's path and test for each of PROGNAME-LIST
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_prog in egrep; do
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3549 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3550 # Check for GNU ac_path_EGREP and select it if it is found.
3551 # Check for GNU $ac_path_EGREP
3552 case `"$ac_path_EGREP" --version 2>&1` in
3553 *GNU*)
3554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3555 *)
3556 ac_count=0
3557 $as_echo_n 0123456789 >"conftest.in"
3558 while :
3559 do
3560 cat "conftest.in" "conftest.in" >"conftest.tmp"
3561 mv "conftest.tmp" "conftest.in"
3562 cp "conftest.in" "conftest.nl"
3563 $as_echo 'EGREP' >> "conftest.nl"
3564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3566 ac_count=`expr $ac_count + 1`
3567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3568 # Best one so far, save it but keep looking for a better one
3569 ac_cv_path_EGREP="$ac_path_EGREP"
3570 ac_path_EGREP_max=$ac_count
3571 fi
3572 # 10*(2^10) chars as input seems more than enough
3573 test $ac_count -gt 10 && break
3574 done
3575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3576 esac
3577
3578 $ac_path_EGREP_found && break 3
3579 done
3580 done
3581 done
3582 IFS=$as_save_IFS
3583 if test -z "$ac_cv_path_EGREP"; then
3584 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3585 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3586 { (exit 1); exit 1; }; }
3587 fi
3588 else
3589 ac_cv_path_EGREP=$EGREP
3590 fi
3591
3592 fi
3593 fi
3594 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3595 $as_echo "$ac_cv_path_EGREP" >&6; }
3596 EGREP="$ac_cv_path_EGREP"
3597
3598
3599 if test $ac_cv_c_compiler_gnu = yes; then
3600 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3601 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3602 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3603 $as_echo_n "(cached) " >&6
3604 else
3605 ac_pattern="Autoconf.*'x'"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <sgtty.h>
3613 Autoconf TIOCGETP
3614 _ACEOF
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3617 ac_cv_prog_gcc_traditional=yes
3618 else
3619 ac_cv_prog_gcc_traditional=no
3620 fi
3621 rm -f conftest*
3622
3623
3624 if test $ac_cv_prog_gcc_traditional = no; then
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include <termio.h>
3632 Autoconf TCGETA
3633 _ACEOF
3634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3635 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3636 ac_cv_prog_gcc_traditional=yes
3637 fi
3638 rm -f conftest*
3639
3640 fi
3641 fi
3642 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3643 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3644 if test $ac_cv_prog_gcc_traditional = yes; then
3645 CC="$CC -traditional"
3646 fi
3647 fi
3648
3649 # Find a good install program. We prefer a C program (faster),
3650 # so one script is as good as another. But avoid the broken or
3651 # incompatible versions:
3652 # SysV /etc/install, /usr/sbin/install
3653 # SunOS /usr/etc/install
3654 # IRIX /sbin/install
3655 # AIX /bin/install
3656 # AmigaOS /C/install, which installs bootblocks on floppy discs
3657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3660 # OS/2's system install, which has a completely different semantic
3661 # ./install, which can be erroneously created by make from ./install.sh.
3662 # Reject install programs that cannot install multiple files.
3663 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3664 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3665 if test -z "$INSTALL"; then
3666 if test "${ac_cv_path_install+set}" = set; then
3667 $as_echo_n "(cached) " >&6
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 # Account for people who put trailing slashes in PATH elements.
3675 case $as_dir/ in
3676 ./ | .// | /cC/* | \
3677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3678 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3679 /usr/ucb/* ) ;;
3680 *)
3681 # OSF1 and SCO ODT 3.0 have their own names for install.
3682 # Don't use installbsd from OSF since it installs stuff as root
3683 # by default.
3684 for ac_prog in ginstall scoinst install; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3687 if test $ac_prog = install &&
3688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3689 # AIX install. It has an incompatible calling convention.
3690 :
3691 elif test $ac_prog = install &&
3692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693 # program-specific install script used by HP pwplus--don't use.
3694 :
3695 else
3696 rm -rf conftest.one conftest.two conftest.dir
3697 echo one > conftest.one
3698 echo two > conftest.two
3699 mkdir conftest.dir
3700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3701 test -s conftest.one && test -s conftest.two &&
3702 test -s conftest.dir/conftest.one &&
3703 test -s conftest.dir/conftest.two
3704 then
3705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3706 break 3
3707 fi
3708 fi
3709 fi
3710 done
3711 done
3712 ;;
3713 esac
3714
3715 done
3716 IFS=$as_save_IFS
3717
3718 rm -rf conftest.one conftest.two conftest.dir
3719
3720 fi
3721 if test "${ac_cv_path_install+set}" = set; then
3722 INSTALL=$ac_cv_path_install
3723 else
3724 # As a last resort, use the slow shell script. Don't cache a
3725 # value for INSTALL within a source directory, because that will
3726 # break other packages using the cache if that directory is
3727 # removed, or if the value is a relative name.
3728 INSTALL=$ac_install_sh
3729 fi
3730 fi
3731 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3732 $as_echo "$INSTALL" >&6; }
3733
3734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735 # It thinks the first close brace ends the variable substitution.
3736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3737
3738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3739
3740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741
3742 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3743 $as_echo_n "checking whether ln -s works... " >&6; }
3744 LN_S=$as_ln_s
3745 if test "$LN_S" = "ln -s"; then
3746 { $as_echo "$as_me:$LINENO: result: yes" >&5
3747 $as_echo "yes" >&6; }
3748 else
3749 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3750 $as_echo "no, using $LN_S" >&6; }
3751 fi
3752
3753 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3754 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3755 set x ${MAKE-make}
3756 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3757 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3758 $as_echo_n "(cached) " >&6
3759 else
3760 cat >conftest.make <<\_ACEOF
3761 SHELL = /bin/sh
3762 all:
3763 @echo '@@@%%%=$(MAKE)=@@@%%%'
3764 _ACEOF
3765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3767 *@@@%%%=?*=@@@%%%*)
3768 eval ac_cv_prog_make_${ac_make}_set=yes;;
3769 *)
3770 eval ac_cv_prog_make_${ac_make}_set=no;;
3771 esac
3772 rm -f conftest.make
3773 fi
3774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3775 { $as_echo "$as_me:$LINENO: result: yes" >&5
3776 $as_echo "yes" >&6; }
3777 SET_MAKE=
3778 else
3779 { $as_echo "$as_me:$LINENO: result: no" >&5
3780 $as_echo "no" >&6; }
3781 SET_MAKE="MAKE=${MAKE-make}"
3782 fi
3783
3784 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3785 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3786 if test -z "$MKDIR_P"; then
3787 if test "${ac_cv_path_mkdir+set}" = set; then
3788 $as_echo_n "(cached) " >&6
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_prog in mkdir gmkdir; do
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3799 'mkdir (GNU coreutils) '* | \
3800 'mkdir (coreutils) '* | \
3801 'mkdir (fileutils) '4.1*)
3802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3803 break 3;;
3804 esac
3805 done
3806 done
3807 done
3808 IFS=$as_save_IFS
3809
3810 fi
3811
3812 if test "${ac_cv_path_mkdir+set}" = set; then
3813 MKDIR_P="$ac_cv_path_mkdir -p"
3814 else
3815 # As a last resort, use the slow shell script. Don't cache a
3816 # value for MKDIR_P within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the value is a relative name.
3819 test -d ./--version && rmdir ./--version
3820 MKDIR_P="$ac_install_sh -d"
3821 fi
3822 fi
3823 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3824 $as_echo "$MKDIR_P" >&6; }
3825
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if test "${ac_cv_prog_RANLIB+set}" = set; then
3832 $as_echo_n "(cached) " >&6
3833 else
3834 if test -n "$RANLIB"; then
3835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848 done
3849 done
3850 IFS=$as_save_IFS
3851
3852 fi
3853 fi
3854 RANLIB=$ac_cv_prog_RANLIB
3855 if test -n "$RANLIB"; then
3856 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3857 $as_echo "$RANLIB" >&6; }
3858 else
3859 { $as_echo "$as_me:$LINENO: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$ac_cv_prog_RANLIB"; then
3866 ac_ct_RANLIB=$RANLIB
3867 # Extract the first word of "ranlib", so it can be a program name with args.
3868 set dummy ranlib; ac_word=$2
3869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3872 $as_echo_n "(cached) " >&6
3873 else
3874 if test -n "$ac_ct_RANLIB"; then
3875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884 ac_cv_prog_ac_ct_RANLIB="ranlib"
3885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi
3893 fi
3894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3895 if test -n "$ac_ct_RANLIB"; then
3896 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3897 $as_echo "$ac_ct_RANLIB" >&6; }
3898 else
3899 { $as_echo "$as_me:$LINENO: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903 if test "x$ac_ct_RANLIB" = x; then
3904 RANLIB=":"
3905 else
3906 case $cross_compiling:$ac_tool_warned in
3907 yes:)
3908 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3911 esac
3912 RANLIB=$ac_ct_RANLIB
3913 fi
3914 else
3915 RANLIB="$ac_cv_prog_RANLIB"
3916 fi
3917
3918 # Extract the first word of "cflow", so it can be a program name with args.
3919 set dummy cflow; ac_word=$2
3920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3923 $as_echo_n "(cached) " >&6
3924 else
3925 case $CFLOW_CMD in
3926 [\\/]* | ?:[\\/]*)
3927 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3928 ;;
3929 *)
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 ;;
3946 esac
3947 fi
3948 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3949 if test -n "$CFLOW_CMD"; then
3950 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3951 $as_echo "$CFLOW_CMD" >&6; }
3952 else
3953 { $as_echo "$as_me:$LINENO: result: no" >&5
3954 $as_echo "no" >&6; }
3955 fi
3956
3957
3958 # Extract the first word of "cscope", so it can be a program name with args.
3959 set dummy cscope; ac_word=$2
3960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3963 $as_echo_n "(cached) " >&6
3964 else
3965 case $CSCOPE_CMD in
3966 [\\/]* | ?:[\\/]*)
3967 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3968 ;;
3969 *)
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981 done
3982 done
3983 IFS=$as_save_IFS
3984
3985 ;;
3986 esac
3987 fi
3988 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3989 if test -n "$CSCOPE_CMD"; then
3990 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3991 $as_echo "$CSCOPE_CMD" >&6; }
3992 else
3993 { $as_echo "$as_me:$LINENO: result: no" >&5
3994 $as_echo "no" >&6; }
3995 fi
3996
3997
3998
3999 ################################################################################
4000
4001
4002
4003
4004
4005 ac_header_dirent=no
4006 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4007 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4008 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4009 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4011 $as_echo_n "(cached) " >&6
4012 else
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019 #include <sys/types.h>
4020 #include <$ac_hdr>
4021
4022 int
4023 main ()
4024 {
4025 if ((DIR *) 0)
4026 return 0;
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4038 $as_echo "$ac_try_echo") >&5
4039 (eval "$ac_compile") 2>conftest.er1
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } && {
4046 test -z "$ac_c_werror_flag" ||
4047 test ! -s conftest.err
4048 } && test -s conftest.$ac_objext; then
4049 eval "$as_ac_Header=yes"
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 eval "$as_ac_Header=no"
4055 fi
4056
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 fi
4059 ac_res=`eval 'as_val=${'$as_ac_Header'}
4060 $as_echo "$as_val"'`
4061 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4062 $as_echo "$ac_res" >&6; }
4063 as_val=`eval 'as_val=${'$as_ac_Header'}
4064 $as_echo "$as_val"'`
4065 if test "x$as_val" = x""yes; then
4066 cat >>confdefs.h <<_ACEOF
4067 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4068 _ACEOF
4069
4070 ac_header_dirent=$ac_hdr; break
4071 fi
4072
4073 done
4074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4075 if test $ac_header_dirent = dirent.h; then
4076 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4077 $as_echo_n "checking for library containing opendir... " >&6; }
4078 if test "${ac_cv_search_opendir+set}" = set; then
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_func_search_save_LIBS=$LIBS
4082 cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088
4089 /* Override any GCC internal prototype to avoid an error.
4090 Use char because int might match the return type of a GCC
4091 builtin and then its argument prototype would still apply. */
4092 #ifdef __cplusplus
4093 extern "C"
4094 #endif
4095 char opendir ();
4096 int
4097 main ()
4098 {
4099 return opendir ();
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 for ac_lib in '' dir; do
4105 if test -z "$ac_lib"; then
4106 ac_res="none required"
4107 else
4108 ac_res=-l$ac_lib
4109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4110 fi
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112 if { (ac_try="$ac_link"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4118 $as_echo "$ac_try_echo") >&5
4119 (eval "$ac_link") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && {
4126 test -z "$ac_c_werror_flag" ||
4127 test ! -s conftest.err
4128 } && test -s conftest$ac_exeext && {
4129 test "$cross_compiling" = yes ||
4130 $as_test_x conftest$ac_exeext
4131 }; then
4132 ac_cv_search_opendir=$ac_res
4133 else
4134 $as_echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137
4138 fi
4139
4140 rm -rf conftest.dSYM
4141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4142 conftest$ac_exeext
4143 if test "${ac_cv_search_opendir+set}" = set; then
4144 break
4145 fi
4146 done
4147 if test "${ac_cv_search_opendir+set}" = set; then
4148 :
4149 else
4150 ac_cv_search_opendir=no
4151 fi
4152 rm conftest.$ac_ext
4153 LIBS=$ac_func_search_save_LIBS
4154 fi
4155 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4156 $as_echo "$ac_cv_search_opendir" >&6; }
4157 ac_res=$ac_cv_search_opendir
4158 if test "$ac_res" != no; then
4159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4160
4161 fi
4162
4163 else
4164 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4165 $as_echo_n "checking for library containing opendir... " >&6; }
4166 if test "${ac_cv_search_opendir+set}" = set; then
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_func_search_save_LIBS=$LIBS
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176
4177 /* Override any GCC internal prototype to avoid an error.
4178 Use char because int might match the return type of a GCC
4179 builtin and then its argument prototype would still apply. */
4180 #ifdef __cplusplus
4181 extern "C"
4182 #endif
4183 char opendir ();
4184 int
4185 main ()
4186 {
4187 return opendir ();
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 for ac_lib in '' x; do
4193 if test -z "$ac_lib"; then
4194 ac_res="none required"
4195 else
4196 ac_res=-l$ac_lib
4197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4198 fi
4199 rm -f conftest.$ac_objext conftest$ac_exeext
4200 if { (ac_try="$ac_link"
4201 case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206 $as_echo "$ac_try_echo") >&5
4207 (eval "$ac_link") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest$ac_exeext && {
4217 test "$cross_compiling" = yes ||
4218 $as_test_x conftest$ac_exeext
4219 }; then
4220 ac_cv_search_opendir=$ac_res
4221 else
4222 $as_echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225
4226 fi
4227
4228 rm -rf conftest.dSYM
4229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4230 conftest$ac_exeext
4231 if test "${ac_cv_search_opendir+set}" = set; then
4232 break
4233 fi
4234 done
4235 if test "${ac_cv_search_opendir+set}" = set; then
4236 :
4237 else
4238 ac_cv_search_opendir=no
4239 fi
4240 rm conftest.$ac_ext
4241 LIBS=$ac_func_search_save_LIBS
4242 fi
4243 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4244 $as_echo "$ac_cv_search_opendir" >&6; }
4245 ac_res=$ac_cv_search_opendir
4246 if test "$ac_res" != no; then
4247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4248
4249 fi
4250
4251 fi
4252
4253 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4254 $as_echo_n "checking for ANSI C header files... " >&6; }
4255 if test "${ac_cv_header_stdc+set}" = set; then
4256 $as_echo_n "(cached) " >&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 <stdlib.h>
4265 #include <stdarg.h>
4266 #include <string.h>
4267 #include <float.h>
4268
4269 int
4270 main ()
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285 (eval "$ac_compile") 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && {
4292 test -z "$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4294 } && test -s conftest.$ac_objext; then
4295 ac_cv_header_stdc=yes
4296 else
4297 $as_echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 ac_cv_header_stdc=no
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
4305 if test $ac_cv_header_stdc = yes; then
4306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <string.h>
4314
4315 _ACEOF
4316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317 $EGREP "memchr" >/dev/null 2>&1; then
4318 :
4319 else
4320 ac_cv_header_stdc=no
4321 fi
4322 rm -f conftest*
4323
4324 fi
4325
4326 if test $ac_cv_header_stdc = yes; then
4327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <stdlib.h>
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "free" >/dev/null 2>&1; then
4339 :
4340 else
4341 ac_cv_header_stdc=no
4342 fi
4343 rm -f conftest*
4344
4345 fi
4346
4347 if test $ac_cv_header_stdc = yes; then
4348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349 if test "$cross_compiling" = yes; then
4350 :
4351 else
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <ctype.h>
4359 #include <stdlib.h>
4360 #if ((' ' & 0x0FF) == 0x020)
4361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4363 #else
4364 # define ISLOWER(c) \
4365 (('a' <= (c) && (c) <= 'i') \
4366 || ('j' <= (c) && (c) <= 'r') \
4367 || ('s' <= (c) && (c) <= 'z'))
4368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4369 #endif
4370
4371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4372 int
4373 main ()
4374 {
4375 int i;
4376 for (i = 0; i < 256; i++)
4377 if (XOR (islower (i), ISLOWER (i))
4378 || toupper (i) != TOUPPER (i))
4379 return 2;
4380 return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest$ac_exeext
4384 if { (ac_try="$ac_link"
4385 case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4390 $as_echo "$ac_try_echo") >&5
4391 (eval "$ac_link") 2>&5
4392 ac_status=$?
4393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4395 { (case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4400 $as_echo "$ac_try_echo") >&5
4401 (eval "$ac_try") 2>&5
4402 ac_status=$?
4403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 :
4406 else
4407 $as_echo "$as_me: program exited with status $ac_status" >&5
4408 $as_echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ( exit $ac_status )
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -rf conftest.dSYM
4415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4416 fi
4417
4418
4419 fi
4420 fi
4421 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4422 $as_echo "$ac_cv_header_stdc" >&6; }
4423 if test $ac_cv_header_stdc = yes; then
4424
4425 cat >>confdefs.h <<\_ACEOF
4426 #define STDC_HEADERS 1
4427 _ACEOF
4428
4429 fi
4430
4431 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4432 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4433 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4434 $as_echo_n "(cached) " >&6
4435 else
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 #include <sys/types.h>
4443 #include <sys/wait.h>
4444 #ifndef WEXITSTATUS
4445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4446 #endif
4447 #ifndef WIFEXITED
4448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4449 #endif
4450
4451 int
4452 main ()
4453 {
4454 int s;
4455 wait (&s);
4456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468 $as_echo "$ac_try_echo") >&5
4469 (eval "$ac_compile") 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
4479 ac_cv_header_sys_wait_h=yes
4480 else
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ac_cv_header_sys_wait_h=no
4485 fi
4486
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4490 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4491 if test $ac_cv_header_sys_wait_h = yes; then
4492
4493 cat >>confdefs.h <<\_ACEOF
4494 #define HAVE_SYS_WAIT_H 1
4495 _ACEOF
4496
4497 fi
4498
4499 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4500 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4501 if test "${ac_cv_header_time+set}" = set; then
4502 $as_echo_n "(cached) " >&6
4503 else
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h. */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4510 #include <sys/types.h>
4511 #include <sys/time.h>
4512 #include <time.h>
4513
4514 int
4515 main ()
4516 {
4517 if ((struct tm *) 0)
4518 return 0;
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (ac_try="$ac_compile"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530 $as_echo "$ac_try_echo") >&5
4531 (eval "$ac_compile") 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest.$ac_objext; then
4541 ac_cv_header_time=yes
4542 else
4543 $as_echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 ac_cv_header_time=no
4547 fi
4548
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 fi
4551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4552 $as_echo "$ac_cv_header_time" >&6; }
4553 if test $ac_cv_header_time = yes; then
4554
4555 cat >>confdefs.h <<\_ACEOF
4556 #define TIME_WITH_SYS_TIME 1
4557 _ACEOF
4558
4559 fi
4560
4561
4562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4573 inttypes.h stdint.h unistd.h
4574 do
4575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4577 $as_echo_n "checking for $ac_header... " >&6; }
4578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4579 $as_echo_n "(cached) " >&6
4580 else
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 $ac_includes_default
4588
4589 #include <$ac_header>
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (ac_try="$ac_compile"
4593 case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596 esac
4597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4598 $as_echo "$ac_try_echo") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } && {
4606 test -z "$ac_c_werror_flag" ||
4607 test ! -s conftest.err
4608 } && test -s conftest.$ac_objext; then
4609 eval "$as_ac_Header=yes"
4610 else
4611 $as_echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 eval "$as_ac_Header=no"
4615 fi
4616
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 fi
4619 ac_res=`eval 'as_val=${'$as_ac_Header'}
4620 $as_echo "$as_val"'`
4621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4622 $as_echo "$ac_res" >&6; }
4623 as_val=`eval 'as_val=${'$as_ac_Header'}
4624 $as_echo "$as_val"'`
4625 if test "x$as_val" = x""yes; then
4626 cat >>confdefs.h <<_ACEOF
4627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4628 _ACEOF
4629
4630 fi
4631
4632 done
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4649 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4650 do
4651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4654 $as_echo_n "checking for $ac_header... " >&6; }
4655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4656 $as_echo_n "(cached) " >&6
4657 fi
4658 ac_res=`eval 'as_val=${'$as_ac_Header'}
4659 $as_echo "$as_val"'`
4660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4661 $as_echo "$ac_res" >&6; }
4662 else
4663 # Is the header compilable?
4664 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4665 $as_echo_n "checking $ac_header usability... " >&6; }
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 #include <$ac_header>
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 ac_header_compiler=yes
4694 else
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_header_compiler=no
4699 fi
4700
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4703 $as_echo "$ac_header_compiler" >&6; }
4704
4705 # Is the header present?
4706 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4707 $as_echo_n "checking $ac_header presence... " >&6; }
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include <$ac_header>
4715 _ACEOF
4716 if { (ac_try="$ac_cpp conftest.$ac_ext"
4717 case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null && {
4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4732 }; then
4733 ac_header_preproc=yes
4734 else
4735 $as_echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 ac_header_preproc=no
4739 fi
4740
4741 rm -f conftest.err conftest.$ac_ext
4742 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4743 $as_echo "$ac_header_preproc" >&6; }
4744
4745 # So? What about this header?
4746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4747 yes:no: )
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4749 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4752 ac_header_preproc=yes
4753 ;;
4754 no:yes:* )
4755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4756 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4758 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4760 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4762 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4766 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4767
4768 ;;
4769 esac
4770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4771 $as_echo_n "checking for $ac_header... " >&6; }
4772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4773 $as_echo_n "(cached) " >&6
4774 else
4775 eval "$as_ac_Header=\$ac_header_preproc"
4776 fi
4777 ac_res=`eval 'as_val=${'$as_ac_Header'}
4778 $as_echo "$as_val"'`
4779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4780 $as_echo "$ac_res" >&6; }
4781
4782 fi
4783 as_val=`eval 'as_val=${'$as_ac_Header'}
4784 $as_echo "$as_val"'`
4785 if test "x$as_val" = x""yes; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4789
4790 else
4791 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4792 $as_echo "$as_me: error: bailing out" >&2;}
4793 { (exit 1); exit 1; }; }
4794 fi
4795
4796 done
4797
4798
4799 case "$host_os" in
4800 linux*)
4801
4802
4803
4804 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4805 do
4806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 $as_echo_n "checking for $ac_header... " >&6; }
4810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4811 $as_echo_n "(cached) " >&6
4812 fi
4813 ac_res=`eval 'as_val=${'$as_ac_Header'}
4814 $as_echo "$as_val"'`
4815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4816 $as_echo "$ac_res" >&6; }
4817 else
4818 # Is the header compilable?
4819 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4820 $as_echo_n "checking $ac_header usability... " >&6; }
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 $ac_includes_default
4828 #include <$ac_header>
4829 _ACEOF
4830 rm -f conftest.$ac_objext
4831 if { (ac_try="$ac_compile"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4837 $as_echo "$ac_try_echo") >&5
4838 (eval "$ac_compile") 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
4848 ac_header_compiler=yes
4849 else
4850 $as_echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853 ac_header_compiler=no
4854 fi
4855
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858 $as_echo "$ac_header_compiler" >&6; }
4859
4860 # Is the header present?
4861 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4862 $as_echo_n "checking $ac_header presence... " >&6; }
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <$ac_header>
4870 _ACEOF
4871 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4877 $as_echo "$ac_try_echo") >&5
4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } >/dev/null && {
4885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 }; then
4888 ac_header_preproc=yes
4889 else
4890 $as_echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ac_header_preproc=no
4894 fi
4895
4896 rm -f conftest.err conftest.$ac_ext
4897 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898 $as_echo "$ac_header_preproc" >&6; }
4899
4900 # So? What about this header?
4901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4902 yes:no: )
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4904 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4906 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4907 ac_header_preproc=yes
4908 ;;
4909 no:yes:* )
4910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4911 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4913 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4915 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4917 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4921 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4922
4923 ;;
4924 esac
4925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4926 $as_echo_n "checking for $ac_header... " >&6; }
4927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4928 $as_echo_n "(cached) " >&6
4929 else
4930 eval "$as_ac_Header=\$ac_header_preproc"
4931 fi
4932 ac_res=`eval 'as_val=${'$as_ac_Header'}
4933 $as_echo "$as_val"'`
4934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4935 $as_echo "$ac_res" >&6; }
4936
4937 fi
4938 as_val=`eval 'as_val=${'$as_ac_Header'}
4939 $as_echo "$as_val"'`
4940 if test "x$as_val" = x""yes; then
4941 cat >>confdefs.h <<_ACEOF
4942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 _ACEOF
4944
4945 else
4946 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4947 $as_echo "$as_me: error: bailing out" >&2;}
4948 { (exit 1); exit 1; }; }
4949 fi
4950
4951 done
4952 ;;
4953 darwin*)
4954
4955
4956 for ac_header in machine/endian.h sys/disk.h
4957 do
4958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4961 $as_echo_n "checking for $ac_header... " >&6; }
4962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4963 $as_echo_n "(cached) " >&6
4964 fi
4965 ac_res=`eval 'as_val=${'$as_ac_Header'}
4966 $as_echo "$as_val"'`
4967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4968 $as_echo "$ac_res" >&6; }
4969 else
4970 # Is the header compilable?
4971 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4972 $as_echo_n "checking $ac_header usability... " >&6; }
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4980 #include <$ac_header>
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (ac_try="$ac_compile"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989 $as_echo "$ac_try_echo") >&5
4990 (eval "$ac_compile") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } && {
4997 test -z "$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 } && test -s conftest.$ac_objext; then
5000 ac_header_compiler=yes
5001 else
5002 $as_echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 ac_header_compiler=no
5006 fi
5007
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5010 $as_echo "$ac_header_compiler" >&6; }
5011
5012 # Is the header present?
5013 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5014 $as_echo_n "checking $ac_header presence... " >&6; }
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h. */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <$ac_header>
5022 _ACEOF
5023 if { (ac_try="$ac_cpp conftest.$ac_ext"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null && {
5037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 }; then
5040 ac_header_preproc=yes
5041 else
5042 $as_echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045 ac_header_preproc=no
5046 fi
5047
5048 rm -f conftest.err conftest.$ac_ext
5049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5050 $as_echo "$ac_header_preproc" >&6; }
5051
5052 # So? What about this header?
5053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5054 yes:no: )
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5056 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5059 ac_header_preproc=yes
5060 ;;
5061 no:yes:* )
5062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5063 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5065 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5067 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5069 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5073 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5074
5075 ;;
5076 esac
5077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5078 $as_echo_n "checking for $ac_header... " >&6; }
5079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5080 $as_echo_n "(cached) " >&6
5081 else
5082 eval "$as_ac_Header=\$ac_header_preproc"
5083 fi
5084 ac_res=`eval 'as_val=${'$as_ac_Header'}
5085 $as_echo "$as_val"'`
5086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5087 $as_echo "$ac_res" >&6; }
5088
5089 fi
5090 as_val=`eval 'as_val=${'$as_ac_Header'}
5091 $as_echo "$as_val"'`
5092 if test "x$as_val" = x""yes; then
5093 cat >>confdefs.h <<_ACEOF
5094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5095 _ACEOF
5096
5097 else
5098 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5099 $as_echo "$as_me: error: bailing out" >&2;}
5100 { (exit 1); exit 1; }; }
5101 fi
5102
5103 done
5104 ;;
5105 esac
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5124 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5125 sys/types.h unistd.h
5126 do
5127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5130 $as_echo_n "checking for $ac_header... " >&6; }
5131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5132 $as_echo_n "(cached) " >&6
5133 fi
5134 ac_res=`eval 'as_val=${'$as_ac_Header'}
5135 $as_echo "$as_val"'`
5136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5137 $as_echo "$ac_res" >&6; }
5138 else
5139 # Is the header compilable?
5140 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5141 $as_echo_n "checking $ac_header usability... " >&6; }
5142 cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h. */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 $ac_includes_default
5149 #include <$ac_header>
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (ac_try="$ac_compile"
5153 case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5156 esac
5157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5158 $as_echo "$ac_try_echo") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.$ac_objext; then
5169 ac_header_compiler=yes
5170 else
5171 $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_header_compiler=no
5175 fi
5176
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5179 $as_echo "$ac_header_compiler" >&6; }
5180
5181 # Is the header present?
5182 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5183 $as_echo_n "checking $ac_header presence... " >&6; }
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <$ac_header>
5191 _ACEOF
5192 if { (ac_try="$ac_cpp conftest.$ac_ext"
5193 case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196 esac
5197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5198 $as_echo "$ac_try_echo") >&5
5199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null && {
5206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 }; then
5209 ac_header_preproc=yes
5210 else
5211 $as_echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_header_preproc=no
5215 fi
5216
5217 rm -f conftest.err conftest.$ac_ext
5218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5219 $as_echo "$ac_header_preproc" >&6; }
5220
5221 # So? What about this header?
5222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5223 yes:no: )
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5225 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5228 ac_header_preproc=yes
5229 ;;
5230 no:yes:* )
5231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5232 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5234 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5236 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5238 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5242 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5243
5244 ;;
5245 esac
5246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5247 $as_echo_n "checking for $ac_header... " >&6; }
5248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5249 $as_echo_n "(cached) " >&6
5250 else
5251 eval "$as_ac_Header=\$ac_header_preproc"
5252 fi
5253 ac_res=`eval 'as_val=${'$as_ac_Header'}
5254 $as_echo "$as_val"'`
5255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5256 $as_echo "$ac_res" >&6; }
5257
5258 fi
5259 as_val=`eval 'as_val=${'$as_ac_Header'}
5260 $as_echo "$as_val"'`
5261 if test "x$as_val" = x""yes; then
5262 cat >>confdefs.h <<_ACEOF
5263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5264 _ACEOF
5265
5266 else
5267 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5268 $as_echo "$as_me: error: bailing out" >&2;}
5269 { (exit 1); exit 1; }; }
5270 fi
5271
5272 done
5273
5274
5275
5276 for ac_header in termios.h sys/statvfs.h
5277 do
5278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5280 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5281 $as_echo_n "checking for $ac_header... " >&6; }
5282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5283 $as_echo_n "(cached) " >&6
5284 fi
5285 ac_res=`eval 'as_val=${'$as_ac_Header'}
5286 $as_echo "$as_val"'`
5287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5288 $as_echo "$ac_res" >&6; }
5289 else
5290 # Is the header compilable?
5291 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5292 $as_echo_n "checking $ac_header usability... " >&6; }
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5300 #include <$ac_header>
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (ac_try="$ac_compile"
5304 case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5309 $as_echo "$ac_try_echo") >&5
5310 (eval "$ac_compile") 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } && {
5317 test -z "$ac_c_werror_flag" ||
5318 test ! -s conftest.err
5319 } && test -s conftest.$ac_objext; then
5320 ac_header_compiler=yes
5321 else
5322 $as_echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_header_compiler=no
5326 fi
5327
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330 $as_echo "$ac_header_compiler" >&6; }
5331
5332 # Is the header present?
5333 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334 $as_echo_n "checking $ac_header presence... " >&6; }
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <$ac_header>
5342 _ACEOF
5343 if { (ac_try="$ac_cpp conftest.$ac_ext"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5349 $as_echo "$ac_try_echo") >&5
5350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null && {
5357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 }; then
5360 ac_header_preproc=yes
5361 else
5362 $as_echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_header_preproc=no
5366 fi
5367
5368 rm -f conftest.err conftest.$ac_ext
5369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370 $as_echo "$ac_header_preproc" >&6; }
5371
5372 # So? What about this header?
5373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5374 yes:no: )
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5379 ac_header_preproc=yes
5380 ;;
5381 no:yes:* )
5382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5385 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5389 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5393 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5394
5395 ;;
5396 esac
5397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5398 $as_echo_n "checking for $ac_header... " >&6; }
5399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 eval "$as_ac_Header=\$ac_header_preproc"
5403 fi
5404 ac_res=`eval 'as_val=${'$as_ac_Header'}
5405 $as_echo "$as_val"'`
5406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5407 $as_echo "$ac_res" >&6; }
5408
5409 fi
5410 as_val=`eval 'as_val=${'$as_ac_Header'}
5411 $as_echo "$as_val"'`
5412 if test "x$as_val" = x""yes; then
5413 cat >>confdefs.h <<_ACEOF
5414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5415 _ACEOF
5416
5417 fi
5418
5419 done
5420
5421
5422 ################################################################################
5423 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5424 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5425 if test "${ac_cv_c_const+set}" = set; then
5426 $as_echo_n "(cached) " >&6
5427 else
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
5435 int
5436 main ()
5437 {
5438 /* FIXME: Include the comments suggested by Paul. */
5439 #ifndef __cplusplus
5440 /* Ultrix mips cc rejects this. */
5441 typedef int charset[2];
5442 const charset cs;
5443 /* SunOS 4.1.1 cc rejects this. */
5444 char const *const *pcpcc;
5445 char **ppc;
5446 /* NEC SVR4.0.2 mips cc rejects this. */
5447 struct point {int x, y;};
5448 static struct point const zero = {0,0};
5449 /* AIX XL C 1.02.0.0 rejects this.
5450 It does not let you subtract one const X* pointer from another in
5451 an arm of an if-expression whose if-part is not a constant
5452 expression */
5453 const char *g = "string";
5454 pcpcc = &g + (g ? g-g : 0);
5455 /* HPUX 7.0 cc rejects these. */
5456 ++pcpcc;
5457 ppc = (char**) pcpcc;
5458 pcpcc = (char const *const *) ppc;
5459 { /* SCO 3.2v4 cc rejects this. */
5460 char *t;
5461 char const *s = 0 ? (char *) 0 : (char const *) 0;
5462
5463 *t++ = 0;
5464 if (s) return 0;
5465 }
5466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5467 int x[] = {25, 17};
5468 const int *foo = &x[0];
5469 ++foo;
5470 }
5471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5472 typedef const int *iptr;
5473 iptr p = 0;
5474 ++p;
5475 }
5476 { /* AIX XL C 1.02.0.0 rejects this saying
5477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5478 struct s { int j; const int *ap[3]; };
5479 struct s *b; b->j = 5;
5480 }
5481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5482 const int foo = 10;
5483 if (!foo) return 0;
5484 }
5485 return !cs[0] && !zero.x;
5486 #endif
5487
5488 ;
5489 return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_c_const=yes
5511 else
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 ac_cv_c_const=no
5516 fi
5517
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5521 $as_echo "$ac_cv_c_const" >&6; }
5522 if test $ac_cv_c_const = no; then
5523
5524 cat >>confdefs.h <<\_ACEOF
5525 #define const /**/
5526 _ACEOF
5527
5528 fi
5529
5530 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5531 $as_echo_n "checking for inline... " >&6; }
5532 if test "${ac_cv_c_inline+set}" = set; then
5533 $as_echo_n "(cached) " >&6
5534 else
5535 ac_cv_c_inline=no
5536 for ac_kw in inline __inline__ __inline; do
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 #ifndef __cplusplus
5544 typedef int foo_t;
5545 static $ac_kw foo_t static_foo () {return 0; }
5546 $ac_kw foo_t foo () {return 0; }
5547 #endif
5548
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557 $as_echo "$ac_try_echo") >&5
5558 (eval "$ac_compile") 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest.$ac_objext; then
5568 ac_cv_c_inline=$ac_kw
5569 else
5570 $as_echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573
5574 fi
5575
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 test "$ac_cv_c_inline" != no && break
5578 done
5579
5580 fi
5581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5582 $as_echo "$ac_cv_c_inline" >&6; }
5583
5584
5585 case $ac_cv_c_inline in
5586 inline | yes) ;;
5587 *)
5588 case $ac_cv_c_inline in
5589 no) ac_val=;;
5590 *) ac_val=$ac_cv_c_inline;;
5591 esac
5592 cat >>confdefs.h <<_ACEOF
5593 #ifndef __cplusplus
5594 #define inline $ac_val
5595 #endif
5596 _ACEOF
5597 ;;
5598 esac
5599
5600 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5601 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5602 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5603 $as_echo_n "(cached) " >&6
5604 else
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 $ac_includes_default
5612 int
5613 main ()
5614 {
5615 static struct stat ac_aggr;
5616 if (ac_aggr.st_rdev)
5617 return 0;
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5624 case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5640 ac_cv_member_struct_stat_st_rdev=yes
5641 else
5642 $as_echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5652 int
5653 main ()
5654 {
5655 static struct stat ac_aggr;
5656 if (sizeof ac_aggr.st_rdev)
5657 return 0;
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5664 case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5669 $as_echo "$ac_try_echo") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.$ac_objext; then
5680 ac_cv_member_struct_stat_st_rdev=yes
5681 else
5682 $as_echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_cv_member_struct_stat_st_rdev=no
5686 fi
5687
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 fi
5690
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 fi
5693 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5694 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5695 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5696
5697 cat >>confdefs.h <<_ACEOF
5698 #define HAVE_STRUCT_STAT_ST_RDEV 1
5699 _ACEOF
5700
5701
5702 fi
5703
5704 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5705 $as_echo_n "checking for off_t... " >&6; }
5706 if test "${ac_cv_type_off_t+set}" = set; then
5707 $as_echo_n "(cached) " >&6
5708 else
5709 ac_cv_type_off_t=no
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 $ac_includes_default
5717 int
5718 main ()
5719 {
5720 if (sizeof (off_t))
5721 return 0;
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5733 $as_echo "$ac_try_echo") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.$ac_objext; then
5744 cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5751 int
5752 main ()
5753 {
5754 if (sizeof ((off_t)))
5755 return 0;
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (ac_try="$ac_compile"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest.$ac_objext; then
5778 :
5779 else
5780 $as_echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5782
5783 ac_cv_type_off_t=yes
5784 fi
5785
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 else
5788 $as_echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791
5792 fi
5793
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 fi
5796 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5797 $as_echo "$ac_cv_type_off_t" >&6; }
5798 if test "x$ac_cv_type_off_t" = x""yes; then
5799 :
5800 else
5801
5802 cat >>confdefs.h <<_ACEOF
5803 #define off_t long int
5804 _ACEOF
5805
5806 fi
5807
5808 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5809 $as_echo_n "checking for pid_t... " >&6; }
5810 if test "${ac_cv_type_pid_t+set}" = set; then
5811 $as_echo_n "(cached) " >&6
5812 else
5813 ac_cv_type_pid_t=no
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 $ac_includes_default
5821 int
5822 main ()
5823 {
5824 if (sizeof (pid_t))
5825 return 0;
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5837 $as_echo "$ac_try_echo") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5855 int
5856 main ()
5857 {
5858 if (sizeof ((pid_t)))
5859 return 0;
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5866 case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869 esac
5870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871 $as_echo "$ac_try_echo") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5882 :
5883 else
5884 $as_echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_cv_type_pid_t=yes
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 else
5892 $as_echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895
5896 fi
5897
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 fi
5900 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5901 $as_echo "$ac_cv_type_pid_t" >&6; }
5902 if test "x$ac_cv_type_pid_t" = x""yes; then
5903 :
5904 else
5905
5906 cat >>confdefs.h <<_ACEOF
5907 #define pid_t int
5908 _ACEOF
5909
5910 fi
5911
5912 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5913 $as_echo_n "checking return type of signal handlers... " >&6; }
5914 if test "${ac_cv_type_signal+set}" = set; then
5915 $as_echo_n "(cached) " >&6
5916 else
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #include <sys/types.h>
5924 #include <signal.h>
5925
5926 int
5927 main ()
5928 {
5929 return *(signal (0, 0)) (0) == 1;
5930 ;
5931 return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5936 case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941 $as_echo "$ac_try_echo") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
5952 ac_cv_type_signal=int
5953 else
5954 $as_echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957 ac_cv_type_signal=void
5958 fi
5959
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 fi
5962 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5963 $as_echo "$ac_cv_type_signal" >&6; }
5964
5965 cat >>confdefs.h <<_ACEOF
5966 #define RETSIGTYPE $ac_cv_type_signal
5967 _ACEOF
5968
5969
5970 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5971 $as_echo_n "checking for size_t... " >&6; }
5972 if test "${ac_cv_type_size_t+set}" = set; then
5973 $as_echo_n "(cached) " >&6
5974 else
5975 ac_cv_type_size_t=no
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5983 int
5984 main ()
5985 {
5986 if (sizeof (size_t))
5987 return 0;
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999 $as_echo "$ac_try_echo") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 $ac_includes_default
6017 int
6018 main ()
6019 {
6020 if (sizeof ((size_t)))
6021 return 0;
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext
6027 if { (ac_try="$ac_compile"
6028 case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031 esac
6032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6033 $as_echo "$ac_try_echo") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
6044 :
6045 else
6046 $as_echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049 ac_cv_type_size_t=yes
6050 fi
6051
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 else
6054 $as_echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057
6058 fi
6059
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 fi
6062 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6063 $as_echo "$ac_cv_type_size_t" >&6; }
6064 if test "x$ac_cv_type_size_t" = x""yes; then
6065 :
6066 else
6067
6068 cat >>confdefs.h <<_ACEOF
6069 #define size_t unsigned int
6070 _ACEOF
6071
6072 fi
6073
6074 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6075 $as_echo_n "checking for mode_t... " >&6; }
6076 if test "${ac_cv_type_mode_t+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6078 else
6079 ac_cv_type_mode_t=no
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 $ac_includes_default
6087 int
6088 main ()
6089 {
6090 if (sizeof (mode_t))
6091 return 0;
6092 ;
6093 return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6121 int
6122 main ()
6123 {
6124 if (sizeof ((mode_t)))
6125 return 0;
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 :
6149 else
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153 ac_cv_type_mode_t=yes
6154 fi
6155
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 else
6158 $as_echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161
6162 fi
6163
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 fi
6166 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6167 $as_echo "$ac_cv_type_mode_t" >&6; }
6168 if test "x$ac_cv_type_mode_t" = x""yes; then
6169 :
6170 else
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define mode_t int
6174 _ACEOF
6175
6176 fi
6177
6178 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6179 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6180 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6181 $as_echo_n "(cached) " >&6
6182 else
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6190 int
6191 main ()
6192 {
6193 static struct stat ac_aggr;
6194 if (ac_aggr.st_rdev)
6195 return 0;
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205 esac
6206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6207 $as_echo "$ac_try_echo") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 ac_cv_member_struct_stat_st_rdev=yes
6219 else
6220 $as_echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 $ac_includes_default
6230 int
6231 main ()
6232 {
6233 static struct stat ac_aggr;
6234 if (sizeof ac_aggr.st_rdev)
6235 return 0;
6236 ;
6237 return 0;
6238 }
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (ac_try="$ac_compile"
6242 case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245 esac
6246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6247 $as_echo "$ac_try_echo") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.$ac_objext; then
6258 ac_cv_member_struct_stat_st_rdev=yes
6259 else
6260 $as_echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 ac_cv_member_struct_stat_st_rdev=no
6264 fi
6265
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 fi
6268
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 fi
6271 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6272 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6273 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define HAVE_STRUCT_STAT_ST_RDEV 1
6277 _ACEOF
6278
6279
6280 fi
6281
6282 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6283 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6284 if test "${ac_cv_struct_tm+set}" = set; then
6285 $as_echo_n "(cached) " >&6
6286 else
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #include <sys/types.h>
6294 #include <time.h>
6295
6296 int
6297 main ()
6298 {
6299 struct tm tm;
6300 int *p = &tm.tm_sec;
6301 return !p;
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 rm -f conftest.$ac_objext
6307 if { (ac_try="$ac_compile"
6308 case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311 esac
6312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6313 $as_echo "$ac_try_echo") >&5
6314 (eval "$ac_compile") 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } && {
6321 test -z "$ac_c_werror_flag" ||
6322 test ! -s conftest.err
6323 } && test -s conftest.$ac_objext; then
6324 ac_cv_struct_tm=time.h
6325 else
6326 $as_echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329 ac_cv_struct_tm=sys/time.h
6330 fi
6331
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6335 $as_echo "$ac_cv_struct_tm" >&6; }
6336 if test $ac_cv_struct_tm = sys/time.h; then
6337
6338 cat >>confdefs.h <<\_ACEOF
6339 #define TM_IN_SYS_TIME 1
6340 _ACEOF
6341
6342 fi
6343
6344
6345 ################################################################################
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6364 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6365 uname
6366 do
6367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6368 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6369 $as_echo_n "checking for $ac_func... " >&6; }
6370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6371 $as_echo_n "(cached) " >&6
6372 else
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6381 #define $ac_func innocuous_$ac_func
6382
6383 /* System header to define __stub macros and hopefully few prototypes,
6384 which can conflict with char $ac_func (); below.
6385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6386 <limits.h> exists even on freestanding compilers. */
6387
6388 #ifdef __STDC__
6389 # include <limits.h>
6390 #else
6391 # include <assert.h>
6392 #endif
6393
6394 #undef $ac_func
6395
6396 /* Override any GCC internal prototype to avoid an error.
6397 Use char because int might match the return type of a GCC
6398 builtin and then its argument prototype would still apply. */
6399 #ifdef __cplusplus
6400 extern "C"
6401 #endif
6402 char $ac_func ();
6403 /* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
6406 #if defined __stub_$ac_func || defined __stub___$ac_func
6407 choke me
6408 #endif
6409
6410 int
6411 main ()
6412 {
6413 return $ac_func ();
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6425 $as_echo "$ac_try_echo") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext && {
6436 test "$cross_compiling" = yes ||
6437 $as_test_x conftest$ac_exeext
6438 }; then
6439 eval "$as_ac_var=yes"
6440 else
6441 $as_echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 eval "$as_ac_var=no"
6445 fi
6446
6447 rm -rf conftest.dSYM
6448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6449 conftest$ac_exeext conftest.$ac_ext
6450 fi
6451 ac_res=`eval 'as_val=${'$as_ac_var'}
6452 $as_echo "$as_val"'`
6453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6454 $as_echo "$ac_res" >&6; }
6455 as_val=`eval 'as_val=${'$as_ac_var'}
6456 $as_echo "$as_val"'`
6457 if test "x$as_val" = x""yes; then
6458 cat >>confdefs.h <<_ACEOF
6459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6460 _ACEOF
6461
6462 else
6463 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6464 $as_echo "$as_me: error: bailing out" >&2;}
6465 { (exit 1); exit 1; }; }
6466 fi
6467 done
6468
6469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6470 # for constant arguments. Useless!
6471 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6472 $as_echo_n "checking for working alloca.h... " >&6; }
6473 if test "${ac_cv_working_alloca_h+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475 else
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 #include <alloca.h>
6483 int
6484 main ()
6485 {
6486 char *p = (char *) alloca (2 * sizeof (int));
6487 if (p) return 0;
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (ac_try="$ac_link"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500 (eval "$ac_link") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest$ac_exeext && {
6510 test "$cross_compiling" = yes ||
6511 $as_test_x conftest$ac_exeext
6512 }; then
6513 ac_cv_working_alloca_h=yes
6514 else
6515 $as_echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ac_cv_working_alloca_h=no
6519 fi
6520
6521 rm -rf conftest.dSYM
6522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523 conftest$ac_exeext conftest.$ac_ext
6524 fi
6525 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6526 $as_echo "$ac_cv_working_alloca_h" >&6; }
6527 if test $ac_cv_working_alloca_h = yes; then
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define HAVE_ALLOCA_H 1
6531 _ACEOF
6532
6533 fi
6534
6535 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6536 $as_echo_n "checking for alloca... " >&6; }
6537 if test "${ac_cv_func_alloca_works+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6539 else
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #ifdef __GNUC__
6547 # define alloca __builtin_alloca
6548 #else
6549 # ifdef _MSC_VER
6550 # include <malloc.h>
6551 # define alloca _alloca
6552 # else
6553 # ifdef HAVE_ALLOCA_H
6554 # include <alloca.h>
6555 # else
6556 # ifdef _AIX
6557 #pragma alloca
6558 # else
6559 # ifndef alloca /* predefined by HP cc +Olibcalls */
6560 char *alloca ();
6561 # endif
6562 # endif
6563 # endif
6564 # endif
6565 #endif
6566
6567 int
6568 main ()
6569 {
6570 char *p = (char *) alloca (1);
6571 if (p) return 0;
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6578 case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581 esac
6582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583 $as_echo "$ac_try_echo") >&5
6584 (eval "$ac_link") 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 } && test -s conftest$ac_exeext && {
6594 test "$cross_compiling" = yes ||
6595 $as_test_x conftest$ac_exeext
6596 }; then
6597 ac_cv_func_alloca_works=yes
6598 else
6599 $as_echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 ac_cv_func_alloca_works=no
6603 fi
6604
6605 rm -rf conftest.dSYM
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607 conftest$ac_exeext conftest.$ac_ext
6608 fi
6609 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6610 $as_echo "$ac_cv_func_alloca_works" >&6; }
6611
6612 if test $ac_cv_func_alloca_works = yes; then
6613
6614 cat >>confdefs.h <<\_ACEOF
6615 #define HAVE_ALLOCA 1
6616 _ACEOF
6617
6618 else
6619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6620 # that cause trouble. Some versions do not even contain alloca or
6621 # contain a buggy version. If you still want to use their alloca,
6622 # use ar to extract alloca.o from them instead of compiling alloca.c.
6623
6624 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6625
6626 cat >>confdefs.h <<\_ACEOF
6627 #define C_ALLOCA 1
6628 _ACEOF
6629
6630
6631 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6632 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6633 if test "${ac_cv_os_cray+set}" = set; then
6634 $as_echo_n "(cached) " >&6
6635 else
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 #if defined CRAY && ! defined CRAY2
6643 webecray
6644 #else
6645 wenotbecray
6646 #endif
6647
6648 _ACEOF
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "webecray" >/dev/null 2>&1; then
6651 ac_cv_os_cray=yes
6652 else
6653 ac_cv_os_cray=no
6654 fi
6655 rm -f conftest*
6656
6657 fi
6658 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6659 $as_echo "$ac_cv_os_cray" >&6; }
6660 if test $ac_cv_os_cray = yes; then
6661 for ac_func in _getb67 GETB67 getb67; do
6662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6664 $as_echo_n "checking for $ac_func... " >&6; }
6665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6666 $as_echo_n "(cached) " >&6
6667 else
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6676 #define $ac_func innocuous_$ac_func
6677
6678 /* System header to define __stub macros and hopefully few prototypes,
6679 which can conflict with char $ac_func (); below.
6680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681 <limits.h> exists even on freestanding compilers. */
6682
6683 #ifdef __STDC__
6684 # include <limits.h>
6685 #else
6686 # include <assert.h>
6687 #endif
6688
6689 #undef $ac_func
6690
6691 /* Override any GCC internal prototype to avoid an error.
6692 Use char because int might match the return type of a GCC
6693 builtin and then its argument prototype would still apply. */
6694 #ifdef __cplusplus
6695 extern "C"
6696 #endif
6697 char $ac_func ();
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined __stub_$ac_func || defined __stub___$ac_func
6702 choke me
6703 #endif
6704
6705 int
6706 main ()
6707 {
6708 return $ac_func ();
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6720 $as_echo "$ac_try_echo") >&5
6721 (eval "$ac_link") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest$ac_exeext && {
6731 test "$cross_compiling" = yes ||
6732 $as_test_x conftest$ac_exeext
6733 }; then
6734 eval "$as_ac_var=yes"
6735 else
6736 $as_echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6738
6739 eval "$as_ac_var=no"
6740 fi
6741
6742 rm -rf conftest.dSYM
6743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6744 conftest$ac_exeext conftest.$ac_ext
6745 fi
6746 ac_res=`eval 'as_val=${'$as_ac_var'}
6747 $as_echo "$as_val"'`
6748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6749 $as_echo "$ac_res" >&6; }
6750 as_val=`eval 'as_val=${'$as_ac_var'}
6751 $as_echo "$as_val"'`
6752 if test "x$as_val" = x""yes; then
6753
6754 cat >>confdefs.h <<_ACEOF
6755 #define CRAY_STACKSEG_END $ac_func
6756 _ACEOF
6757
6758 break
6759 fi
6760
6761 done
6762 fi
6763
6764 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6765 $as_echo_n "checking stack direction for C alloca... " >&6; }
6766 if test "${ac_cv_c_stack_direction+set}" = set; then
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test "$cross_compiling" = yes; then
6770 ac_cv_c_stack_direction=0
6771 else
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6779 int
6780 find_stack_direction ()
6781 {
6782 static char *addr = 0;
6783 auto char dummy;
6784 if (addr == 0)
6785 {
6786 addr = &dummy;
6787 return find_stack_direction ();
6788 }
6789 else
6790 return (&dummy > addr) ? 1 : -1;
6791 }
6792
6793 int
6794 main ()
6795 {
6796 return find_stack_direction () < 0;
6797 }
6798 _ACEOF
6799 rm -f conftest$ac_exeext
6800 if { (ac_try="$ac_link"
6801 case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6806 $as_echo "$ac_try_echo") >&5
6807 (eval "$ac_link") 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6811 { (case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816 $as_echo "$ac_try_echo") >&5
6817 (eval "$ac_try") 2>&5
6818 ac_status=$?
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_c_stack_direction=1
6822 else
6823 $as_echo "$as_me: program exited with status $ac_status" >&5
6824 $as_echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ( exit $ac_status )
6828 ac_cv_c_stack_direction=-1
6829 fi
6830 rm -rf conftest.dSYM
6831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6832 fi
6833
6834
6835 fi
6836 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6837 $as_echo "$ac_cv_c_stack_direction" >&6; }
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define STACK_DIRECTION $ac_cv_c_stack_direction
6841 _ACEOF
6842
6843
6844 fi
6845
6846 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6847 $as_echo_n "checking whether closedir returns void... " >&6; }
6848 if test "${ac_cv_func_closedir_void+set}" = set; then
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test "$cross_compiling" = yes; then
6852 ac_cv_func_closedir_void=yes
6853 else
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6861 #include <$ac_header_dirent>
6862 #ifndef __cplusplus
6863 int closedir ();
6864 #endif
6865
6866 int
6867 main ()
6868 {
6869 return closedir (opendir (".")) != 0;
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest$ac_exeext
6875 if { (ac_try="$ac_link"
6876 case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879 esac
6880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881 $as_echo "$ac_try_echo") >&5
6882 (eval "$ac_link") 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6886 { (case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889 esac
6890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6891 $as_echo "$ac_try_echo") >&5
6892 (eval "$ac_try") 2>&5
6893 ac_status=$?
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_func_closedir_void=no
6897 else
6898 $as_echo "$as_me: program exited with status $ac_status" >&5
6899 $as_echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 ( exit $ac_status )
6903 ac_cv_func_closedir_void=yes
6904 fi
6905 rm -rf conftest.dSYM
6906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6907 fi
6908
6909
6910 fi
6911 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6912 $as_echo "$ac_cv_func_closedir_void" >&6; }
6913 if test $ac_cv_func_closedir_void = yes; then
6914
6915 cat >>confdefs.h <<\_ACEOF
6916 #define CLOSEDIR_VOID 1
6917 _ACEOF
6918
6919 fi
6920
6921
6922 for ac_header in vfork.h
6923 do
6924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6927 $as_echo_n "checking for $ac_header... " >&6; }
6928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6929 $as_echo_n "(cached) " >&6
6930 fi
6931 ac_res=`eval 'as_val=${'$as_ac_Header'}
6932 $as_echo "$as_val"'`
6933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6934 $as_echo "$ac_res" >&6; }
6935 else
6936 # Is the header compilable?
6937 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938 $as_echo_n "checking $ac_header usability... " >&6; }
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 $ac_includes_default
6946 #include <$ac_header>
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_header_compiler=yes
6967 else
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 ac_header_compiler=no
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976 $as_echo "$ac_header_compiler" >&6; }
6977
6978 # Is the header present?
6979 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980 $as_echo_n "checking $ac_header presence... " >&6; }
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #include <$ac_header>
6988 _ACEOF
6989 if { (ac_try="$ac_cpp conftest.$ac_ext"
6990 case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6993 esac
6994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6995 $as_echo "$ac_try_echo") >&5
6996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } >/dev/null && {
7003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7005 }; then
7006 ac_header_preproc=yes
7007 else
7008 $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_header_preproc=no
7012 fi
7013
7014 rm -f conftest.err conftest.$ac_ext
7015 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7016 $as_echo "$ac_header_preproc" >&6; }
7017
7018 # So? What about this header?
7019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7020 yes:no: )
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7025 ac_header_preproc=yes
7026 ;;
7027 no:yes:* )
7028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7031 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7033 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7035 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7039 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7040
7041 ;;
7042 esac
7043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7044 $as_echo_n "checking for $ac_header... " >&6; }
7045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7046 $as_echo_n "(cached) " >&6
7047 else
7048 eval "$as_ac_Header=\$ac_header_preproc"
7049 fi
7050 ac_res=`eval 'as_val=${'$as_ac_Header'}
7051 $as_echo "$as_val"'`
7052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7053 $as_echo "$ac_res" >&6; }
7054
7055 fi
7056 as_val=`eval 'as_val=${'$as_ac_Header'}
7057 $as_echo "$as_val"'`
7058 if test "x$as_val" = x""yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7061 _ACEOF
7062
7063 fi
7064
7065 done
7066
7067
7068
7069 for ac_func in fork vfork
7070 do
7071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7073 $as_echo_n "checking for $ac_func... " >&6; }
7074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7085 #define $ac_func innocuous_$ac_func
7086
7087 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func (); below.
7089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090 <limits.h> exists even on freestanding compilers. */
7091
7092 #ifdef __STDC__
7093 # include <limits.h>
7094 #else
7095 # include <assert.h>
7096 #endif
7097
7098 #undef $ac_func
7099
7100 /* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
7103 #ifdef __cplusplus
7104 extern "C"
7105 #endif
7106 char $ac_func ();
7107 /* The GNU C library defines this for functions which it implements
7108 to always fail with ENOSYS. Some functions are actually named
7109 something starting with __ and the normal name is an alias. */
7110 #if defined __stub_$ac_func || defined __stub___$ac_func
7111 choke me
7112 #endif
7113
7114 int
7115 main ()
7116 {
7117 return $ac_func ();
7118 ;
7119 return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (ac_try="$ac_link"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7129 $as_echo "$ac_try_echo") >&5
7130 (eval "$ac_link") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest$ac_exeext && {
7140 test "$cross_compiling" = yes ||
7141 $as_test_x conftest$ac_exeext
7142 }; then
7143 eval "$as_ac_var=yes"
7144 else
7145 $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 eval "$as_ac_var=no"
7149 fi
7150
7151 rm -rf conftest.dSYM
7152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7153 conftest$ac_exeext conftest.$ac_ext
7154 fi
7155 ac_res=`eval 'as_val=${'$as_ac_var'}
7156 $as_echo "$as_val"'`
7157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7158 $as_echo "$ac_res" >&6; }
7159 as_val=`eval 'as_val=${'$as_ac_var'}
7160 $as_echo "$as_val"'`
7161 if test "x$as_val" = x""yes; then
7162 cat >>confdefs.h <<_ACEOF
7163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7164 _ACEOF
7165
7166 fi
7167 done
7168
7169 if test "x$ac_cv_func_fork" = xyes; then
7170 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7171 $as_echo_n "checking for working fork... " >&6; }
7172 if test "${ac_cv_func_fork_works+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test "$cross_compiling" = yes; then
7176 ac_cv_func_fork_works=cross
7177 else
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 $ac_includes_default
7185 int
7186 main ()
7187 {
7188
7189 /* By Ruediger Kuhlmann. */
7190 return fork () < 0;
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest$ac_exeext
7197 if { (ac_try="$ac_link"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_link") 2>&5
7205 ac_status=$?
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7208 { (case "(($ac_try" in
7209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210 *) ac_try_echo=$ac_try;;
7211 esac
7212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7213 $as_echo "$ac_try_echo") >&5
7214 (eval "$ac_try") 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_func_fork_works=yes
7219 else
7220 $as_echo "$as_me: program exited with status $ac_status" >&5
7221 $as_echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7223
7224 ( exit $ac_status )
7225 ac_cv_func_fork_works=no
7226 fi
7227 rm -rf conftest.dSYM
7228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7229 fi
7230
7231
7232 fi
7233 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7234 $as_echo "$ac_cv_func_fork_works" >&6; }
7235
7236 else
7237 ac_cv_func_fork_works=$ac_cv_func_fork
7238 fi
7239 if test "x$ac_cv_func_fork_works" = xcross; then
7240 case $host in
7241 *-*-amigaos* | *-*-msdosdjgpp*)
7242 # Override, as these systems have only a dummy fork() stub
7243 ac_cv_func_fork_works=no
7244 ;;
7245 *)
7246 ac_cv_func_fork_works=yes
7247 ;;
7248 esac
7249 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7250 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7251 fi
7252 ac_cv_func_vfork_works=$ac_cv_func_vfork
7253 if test "x$ac_cv_func_vfork" = xyes; then
7254 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7255 $as_echo_n "checking for working vfork... " >&6; }
7256 if test "${ac_cv_func_vfork_works+set}" = set; then
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test "$cross_compiling" = yes; then
7260 ac_cv_func_vfork_works=cross
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 /* Thanks to Paul Eggert for this test. */
7269 $ac_includes_default
7270 #include <sys/wait.h>
7271 #ifdef HAVE_VFORK_H
7272 # include <vfork.h>
7273 #endif
7274 /* On some sparc systems, changes by the child to local and incoming
7275 argument registers are propagated back to the parent. The compiler
7276 is told about this with #include <vfork.h>, but some compilers
7277 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7278 static variable whose address is put into a register that is
7279 clobbered by the vfork. */
7280 static void
7281 #ifdef __cplusplus
7282 sparc_address_test (int arg)
7283 # else
7284 sparc_address_test (arg) int arg;
7285 #endif
7286 {
7287 static pid_t child;
7288 if (!child) {
7289 child = vfork ();
7290 if (child < 0) {
7291 perror ("vfork");
7292 _exit(2);
7293 }
7294 if (!child) {
7295 arg = getpid();
7296 write(-1, "", 0);
7297 _exit (arg);
7298 }
7299 }
7300 }
7301
7302 int
7303 main ()
7304 {
7305 pid_t parent = getpid ();
7306 pid_t child;
7307
7308 sparc_address_test (0);
7309
7310 child = vfork ();
7311
7312 if (child == 0) {
7313 /* Here is another test for sparc vfork register problems. This
7314 test uses lots of local variables, at least as many local
7315 variables as main has allocated so far including compiler
7316 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7317 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7318 reuse the register of parent for one of the local variables,
7319 since it will think that parent can't possibly be used any more
7320 in this routine. Assigning to the local variable will thus
7321 munge parent in the parent process. */
7322 pid_t
7323 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7324 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7325 /* Convince the compiler that p..p7 are live; otherwise, it might
7326 use the same hardware register for all 8 local variables. */
7327 if (p != p1 || p != p2 || p != p3 || p != p4
7328 || p != p5 || p != p6 || p != p7)
7329 _exit(1);
7330
7331 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7332 from child file descriptors. If the child closes a descriptor
7333 before it execs or exits, this munges the parent's descriptor
7334 as well. Test for this by closing stdout in the child. */
7335 _exit(close(fileno(stdout)) != 0);
7336 } else {
7337 int status;
7338 struct stat st;
7339
7340 while (wait(&status) != child)
7341 ;
7342 return (
7343 /* Was there some problem with vforking? */
7344 child < 0
7345
7346 /* Did the child fail? (This shouldn't happen.) */
7347 || status
7348
7349 /* Did the vfork/compiler bug occur? */
7350 || parent != getpid()
7351
7352 /* Did the file descriptor bug occur? */
7353 || fstat(fileno(stdout), &st) != 0
7354 );
7355 }
7356 }
7357 _ACEOF
7358 rm -f conftest$ac_exeext
7359 if { (ac_try="$ac_link"
7360 case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363 esac
7364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7365 $as_echo "$ac_try_echo") >&5
7366 (eval "$ac_link") 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7370 { (case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376 (eval "$ac_try") 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; }; then
7380 ac_cv_func_vfork_works=yes
7381 else
7382 $as_echo "$as_me: program exited with status $ac_status" >&5
7383 $as_echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7385
7386 ( exit $ac_status )
7387 ac_cv_func_vfork_works=no
7388 fi
7389 rm -rf conftest.dSYM
7390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7391 fi
7392
7393
7394 fi
7395 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7396 $as_echo "$ac_cv_func_vfork_works" >&6; }
7397
7398 fi;
7399 if test "x$ac_cv_func_fork_works" = xcross; then
7400 ac_cv_func_vfork_works=$ac_cv_func_vfork
7401 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7402 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7403 fi
7404
7405 if test "x$ac_cv_func_vfork_works" = xyes; then
7406
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_WORKING_VFORK 1
7409 _ACEOF
7410
7411 else
7412
7413 cat >>confdefs.h <<\_ACEOF
7414 #define vfork fork
7415 _ACEOF
7416
7417 fi
7418 if test "x$ac_cv_func_fork_works" = xyes; then
7419
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_WORKING_FORK 1
7422 _ACEOF
7423
7424 fi
7425
7426 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7427 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7428 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7429 $as_echo_n "(cached) " >&6
7430 else
7431 rm -f conftest.sym conftest.file
7432 echo >conftest.file
7433 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7434 if test "$cross_compiling" = yes; then
7435 ac_cv_func_lstat_dereferences_slashed_symlink=no
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 int
7445 main ()
7446 {
7447 struct stat sbuf;
7448 /* Linux will dereference the symlink and fail.
7449 That is better in the sense that it means we will not
7450 have to compile and use the lstat wrapper. */
7451 return lstat ("conftest.sym/", &sbuf) == 0;
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest$ac_exeext
7457 if { (ac_try="$ac_link"
7458 case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461 esac
7462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463 $as_echo "$ac_try_echo") >&5
7464 (eval "$ac_link") 2>&5
7465 ac_status=$?
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7468 { (case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471 esac
7472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7473 $as_echo "$ac_try_echo") >&5
7474 (eval "$ac_try") 2>&5
7475 ac_status=$?
7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7479 else
7480 $as_echo "$as_me: program exited with status $ac_status" >&5
7481 $as_echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 ( exit $ac_status )
7485 ac_cv_func_lstat_dereferences_slashed_symlink=no
7486 fi
7487 rm -rf conftest.dSYM
7488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7489 fi
7490
7491
7492 else
7493 # If the `ln -s' command failed, then we probably don't even
7494 # have an lstat function.
7495 ac_cv_func_lstat_dereferences_slashed_symlink=no
7496 fi
7497 rm -f conftest.sym conftest.file
7498
7499 fi
7500 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7501 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7502
7503 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7504
7505 cat >>confdefs.h <<_ACEOF
7506 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7507 _ACEOF
7508
7509
7510 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7511 case " $LIBOBJS " in
7512 *" lstat.$ac_objext "* ) ;;
7513 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7514 ;;
7515 esac
7516
7517 fi
7518
7519 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7520 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7521 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7522 $as_echo_n "(cached) " >&6
7523 else
7524 if test "$cross_compiling" = yes; then
7525 ac_cv_func_lstat_empty_string_bug=yes
7526 else
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7534 int
7535 main ()
7536 {
7537 struct stat sbuf;
7538 return lstat ("", &sbuf) == 0;
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest$ac_exeext
7544 if { (ac_try="$ac_link"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550 $as_echo "$ac_try_echo") >&5
7551 (eval "$ac_link") 2>&5
7552 ac_status=$?
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7555 { (case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561 (eval "$ac_try") 2>&5
7562 ac_status=$?
7563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_func_lstat_empty_string_bug=no
7566 else
7567 $as_echo "$as_me: program exited with status $ac_status" >&5
7568 $as_echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ( exit $ac_status )
7572 ac_cv_func_lstat_empty_string_bug=yes
7573 fi
7574 rm -rf conftest.dSYM
7575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7576 fi
7577
7578
7579 fi
7580 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7581 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7582 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7583 case " $LIBOBJS " in
7584 *" lstat.$ac_objext "* ) ;;
7585 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7586 ;;
7587 esac
7588
7589
7590 cat >>confdefs.h <<_ACEOF
7591 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7592 _ACEOF
7593
7594 fi
7595
7596
7597 for ac_header in stdlib.h
7598 do
7599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7602 $as_echo_n "checking for $ac_header... " >&6; }
7603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7604 $as_echo_n "(cached) " >&6
7605 fi
7606 ac_res=`eval 'as_val=${'$as_ac_Header'}
7607 $as_echo "$as_val"'`
7608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7609 $as_echo "$ac_res" >&6; }
7610 else
7611 # Is the header compilable?
7612 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7613 $as_echo_n "checking $ac_header usability... " >&6; }
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 $ac_includes_default
7621 #include <$ac_header>
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7625 case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628 esac
7629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7630 $as_echo "$ac_try_echo") >&5
7631 (eval "$ac_compile") 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } && {
7638 test -z "$ac_c_werror_flag" ||
7639 test ! -s conftest.err
7640 } && test -s conftest.$ac_objext; then
7641 ac_header_compiler=yes
7642 else
7643 $as_echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646 ac_header_compiler=no
7647 fi
7648
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7651 $as_echo "$ac_header_compiler" >&6; }
7652
7653 # Is the header present?
7654 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7655 $as_echo_n "checking $ac_header presence... " >&6; }
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 #include <$ac_header>
7663 _ACEOF
7664 if { (ac_try="$ac_cpp conftest.$ac_ext"
7665 case "(($ac_try" in
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7668 esac
7669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7670 $as_echo "$ac_try_echo") >&5
7671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7672 ac_status=$?
7673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
7676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } >/dev/null && {
7678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 }; then
7681 ac_header_preproc=yes
7682 else
7683 $as_echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 ac_header_preproc=no
7687 fi
7688
7689 rm -f conftest.err conftest.$ac_ext
7690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7691 $as_echo "$ac_header_preproc" >&6; }
7692
7693 # So? What about this header?
7694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7695 yes:no: )
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7697 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7700 ac_header_preproc=yes
7701 ;;
7702 no:yes:* )
7703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7704 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7706 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7708 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7710 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7714 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7715
7716 ;;
7717 esac
7718 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7719 $as_echo_n "checking for $ac_header... " >&6; }
7720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7721 $as_echo_n "(cached) " >&6
7722 else
7723 eval "$as_ac_Header=\$ac_header_preproc"
7724 fi
7725 ac_res=`eval 'as_val=${'$as_ac_Header'}
7726 $as_echo "$as_val"'`
7727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7728 $as_echo "$ac_res" >&6; }
7729
7730 fi
7731 as_val=`eval 'as_val=${'$as_ac_Header'}
7732 $as_echo "$as_val"'`
7733 if test "x$as_val" = x""yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7743 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7744 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test "$cross_compiling" = yes; then
7748 ac_cv_func_malloc_0_nonnull=no
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7757 # include <stdlib.h>
7758 #else
7759 char *malloc ();
7760 #endif
7761
7762 int
7763 main ()
7764 {
7765 return ! malloc (0);
7766 ;
7767 return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7772 case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775 esac
7776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7777 $as_echo "$ac_try_echo") >&5
7778 (eval "$ac_link") 2>&5
7779 ac_status=$?
7780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785 esac
7786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7787 $as_echo "$ac_try_echo") >&5
7788 (eval "$ac_try") 2>&5
7789 ac_status=$?
7790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_cv_func_malloc_0_nonnull=yes
7793 else
7794 $as_echo "$as_me: program exited with status $ac_status" >&5
7795 $as_echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798 ( exit $ac_status )
7799 ac_cv_func_malloc_0_nonnull=no
7800 fi
7801 rm -rf conftest.dSYM
7802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7803 fi
7804
7805
7806 fi
7807 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7808 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7809 if test $ac_cv_func_malloc_0_nonnull = yes; then
7810
7811 cat >>confdefs.h <<\_ACEOF
7812 #define HAVE_MALLOC 1
7813 _ACEOF
7814
7815 else
7816 cat >>confdefs.h <<\_ACEOF
7817 #define HAVE_MALLOC 0
7818 _ACEOF
7819
7820 case " $LIBOBJS " in
7821 *" malloc.$ac_objext "* ) ;;
7822 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7823 ;;
7824 esac
7825
7826
7827 cat >>confdefs.h <<\_ACEOF
7828 #define malloc rpl_malloc
7829 _ACEOF
7830
7831 fi
7832
7833
7834
7835 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7836 $as_echo_n "checking for working memcmp... " >&6; }
7837 if test "${ac_cv_func_memcmp_working+set}" = set; then
7838 $as_echo_n "(cached) " >&6
7839 else
7840 if test "$cross_compiling" = yes; then
7841 ac_cv_func_memcmp_working=no
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 int
7851 main ()
7852 {
7853
7854 /* Some versions of memcmp are not 8-bit clean. */
7855 char c0 = '\100', c1 = '\200', c2 = '\201';
7856 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7857 return 1;
7858
7859 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7860 or more and with at least one buffer not starting on a 4-byte boundary.
7861 William Lewis provided this test program. */
7862 {
7863 char foo[21];
7864 char bar[21];
7865 int i;
7866 for (i = 0; i < 4; i++)
7867 {
7868 char *a = foo + i;
7869 char *b = bar + i;
7870 strcpy (a, "--------01111111");
7871 strcpy (b, "--------10000000");
7872 if (memcmp (a, b, 16) >= 0)
7873 return 1;
7874 }
7875 return 0;
7876 }
7877
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889 $as_echo "$ac_try_echo") >&5
7890 (eval "$ac_link") 2>&5
7891 ac_status=$?
7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897 esac
7898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7899 $as_echo "$ac_try_echo") >&5
7900 (eval "$ac_try") 2>&5
7901 ac_status=$?
7902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_func_memcmp_working=yes
7905 else
7906 $as_echo "$as_me: program exited with status $ac_status" >&5
7907 $as_echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ( exit $ac_status )
7911 ac_cv_func_memcmp_working=no
7912 fi
7913 rm -rf conftest.dSYM
7914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7915 fi
7916
7917
7918 fi
7919 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7920 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7921 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7922 *" memcmp.$ac_objext "* ) ;;
7923 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7924 ;;
7925 esac
7926
7927
7928
7929
7930 for ac_header in stdlib.h unistd.h
7931 do
7932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7935 $as_echo_n "checking for $ac_header... " >&6; }
7936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7937 $as_echo_n "(cached) " >&6
7938 fi
7939 ac_res=`eval 'as_val=${'$as_ac_Header'}
7940 $as_echo "$as_val"'`
7941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7942 $as_echo "$ac_res" >&6; }
7943 else
7944 # Is the header compilable?
7945 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7946 $as_echo_n "checking $ac_header usability... " >&6; }
7947 cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h. */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7953 $ac_includes_default
7954 #include <$ac_header>
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (ac_try="$ac_compile"
7958 case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961 esac
7962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7963 $as_echo "$ac_try_echo") >&5
7964 (eval "$ac_compile") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest.$ac_objext; then
7974 ac_header_compiler=yes
7975 else
7976 $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 ac_header_compiler=no
7980 fi
7981
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7984 $as_echo "$ac_header_compiler" >&6; }
7985
7986 # Is the header present?
7987 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7988 $as_echo_n "checking $ac_header presence... " >&6; }
7989 cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7995 #include <$ac_header>
7996 _ACEOF
7997 if { (ac_try="$ac_cpp conftest.$ac_ext"
7998 case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001 esac
8002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8003 $as_echo "$ac_try_echo") >&5
8004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } >/dev/null && {
8011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 }; then
8014 ac_header_preproc=yes
8015 else
8016 $as_echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019 ac_header_preproc=no
8020 fi
8021
8022 rm -f conftest.err conftest.$ac_ext
8023 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8024 $as_echo "$ac_header_preproc" >&6; }
8025
8026 # So? What about this header?
8027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8028 yes:no: )
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8030 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8032 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8033 ac_header_preproc=yes
8034 ;;
8035 no:yes:* )
8036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8037 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8039 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8041 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8043 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8045 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8047 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8048
8049 ;;
8050 esac
8051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8052 $as_echo_n "checking for $ac_header... " >&6; }
8053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8054 $as_echo_n "(cached) " >&6
8055 else
8056 eval "$as_ac_Header=\$ac_header_preproc"
8057 fi
8058 ac_res=`eval 'as_val=${'$as_ac_Header'}
8059 $as_echo "$as_val"'`
8060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8061 $as_echo "$ac_res" >&6; }
8062
8063 fi
8064 as_val=`eval 'as_val=${'$as_ac_Header'}
8065 $as_echo "$as_val"'`
8066 if test "x$as_val" = x""yes; then
8067 cat >>confdefs.h <<_ACEOF
8068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8069 _ACEOF
8070
8071 fi
8072
8073 done
8074
8075
8076 for ac_func in getpagesize
8077 do
8078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8079 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8080 $as_echo_n "checking for $ac_func... " >&6; }
8081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8082 $as_echo_n "(cached) " >&6
8083 else
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8092 #define $ac_func innocuous_$ac_func
8093
8094 /* System header to define __stub macros and hopefully few prototypes,
8095 which can conflict with char $ac_func (); below.
8096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097 <limits.h> exists even on freestanding compilers. */
8098
8099 #ifdef __STDC__
8100 # include <limits.h>
8101 #else
8102 # include <assert.h>
8103 #endif
8104
8105 #undef $ac_func
8106
8107 /* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
8110 #ifdef __cplusplus
8111 extern "C"
8112 #endif
8113 char $ac_func ();
8114 /* The GNU C library defines this for functions which it implements
8115 to always fail with ENOSYS. Some functions are actually named
8116 something starting with __ and the normal name is an alias. */
8117 #if defined __stub_$ac_func || defined __stub___$ac_func
8118 choke me
8119 #endif
8120
8121 int
8122 main ()
8123 {
8124 return $ac_func ();
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 rm -f conftest.$ac_objext conftest$ac_exeext
8130 if { (ac_try="$ac_link"
8131 case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8136 $as_echo "$ac_try_echo") >&5
8137 (eval "$ac_link") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest$ac_exeext && {
8147 test "$cross_compiling" = yes ||
8148 $as_test_x conftest$ac_exeext
8149 }; then
8150 eval "$as_ac_var=yes"
8151 else
8152 $as_echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 eval "$as_ac_var=no"
8156 fi
8157
8158 rm -rf conftest.dSYM
8159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8160 conftest$ac_exeext conftest.$ac_ext
8161 fi
8162 ac_res=`eval 'as_val=${'$as_ac_var'}
8163 $as_echo "$as_val"'`
8164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8165 $as_echo "$ac_res" >&6; }
8166 as_val=`eval 'as_val=${'$as_ac_var'}
8167 $as_echo "$as_val"'`
8168 if test "x$as_val" = x""yes; then
8169 cat >>confdefs.h <<_ACEOF
8170 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8171 _ACEOF
8172
8173 fi
8174 done
8175
8176 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8177 $as_echo_n "checking for working mmap... " >&6; }
8178 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8179 $as_echo_n "(cached) " >&6
8180 else
8181 if test "$cross_compiling" = yes; then
8182 ac_cv_func_mmap_fixed_mapped=no
8183 else
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8191 /* malloc might have been renamed as rpl_malloc. */
8192 #undef malloc
8193
8194 /* Thanks to Mike Haertel and Jim Avera for this test.
8195 Here is a matrix of mmap possibilities:
8196 mmap private not fixed
8197 mmap private fixed at somewhere currently unmapped
8198 mmap private fixed at somewhere already mapped
8199 mmap shared not fixed
8200 mmap shared fixed at somewhere currently unmapped
8201 mmap shared fixed at somewhere already mapped
8202 For private mappings, we should verify that changes cannot be read()
8203 back from the file, nor mmap's back from the file at a different
8204 address. (There have been systems where private was not correctly
8205 implemented like the infamous i386 svr4.0, and systems where the
8206 VM page cache was not coherent with the file system buffer cache
8207 like early versions of FreeBSD and possibly contemporary NetBSD.)
8208 For shared mappings, we should conversely verify that changes get
8209 propagated back to all the places they're supposed to be.
8210
8211 Grep wants private fixed already mapped.
8212 The main things grep needs to know about mmap are:
8213 * does it exist and is it safe to write into the mmap'd area
8214 * how to use it (BSD variants) */
8215
8216 #include <fcntl.h>
8217 #include <sys/mman.h>
8218
8219 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8220 char *malloc ();
8221 #endif
8222
8223 /* This mess was copied from the GNU getpagesize.h. */
8224 #ifndef HAVE_GETPAGESIZE
8225 /* Assume that all systems that can run configure have sys/param.h. */
8226 # ifndef HAVE_SYS_PARAM_H
8227 # define HAVE_SYS_PARAM_H 1
8228 # endif
8229
8230 # ifdef _SC_PAGESIZE
8231 # define getpagesize() sysconf(_SC_PAGESIZE)
8232 # else /* no _SC_PAGESIZE */
8233 # ifdef HAVE_SYS_PARAM_H
8234 # include <sys/param.h>
8235 # ifdef EXEC_PAGESIZE
8236 # define getpagesize() EXEC_PAGESIZE
8237 # else /* no EXEC_PAGESIZE */
8238 # ifdef NBPG
8239 # define getpagesize() NBPG * CLSIZE
8240 # ifndef CLSIZE
8241 # define CLSIZE 1
8242 # endif /* no CLSIZE */
8243 # else /* no NBPG */
8244 # ifdef NBPC
8245 # define getpagesize() NBPC
8246 # else /* no NBPC */
8247 # ifdef PAGESIZE
8248 # define getpagesize() PAGESIZE
8249 # endif /* PAGESIZE */
8250 # endif /* no NBPC */
8251 # endif /* no NBPG */
8252 # endif /* no EXEC_PAGESIZE */
8253 # else /* no HAVE_SYS_PARAM_H */
8254 # define getpagesize() 8192 /* punt totally */
8255 # endif /* no HAVE_SYS_PARAM_H */
8256 # endif /* no _SC_PAGESIZE */
8257
8258 #endif /* no HAVE_GETPAGESIZE */
8259
8260 int
8261 main ()
8262 {
8263 char *data, *data2, *data3;
8264 int i, pagesize;
8265 int fd;
8266
8267 pagesize = getpagesize ();
8268
8269 /* First, make a file with some known garbage in it. */
8270 data = (char *) malloc (pagesize);
8271 if (!data)
8272 return 1;
8273 for (i = 0; i < pagesize; ++i)
8274 *(data + i) = rand ();
8275 umask (0);
8276 fd = creat ("conftest.mmap", 0600);
8277 if (fd < 0)
8278 return 1;
8279 if (write (fd, data, pagesize) != pagesize)
8280 return 1;
8281 close (fd);
8282
8283 /* Next, try to mmap the file at a fixed address which already has
8284 something else allocated at it. If we can, also make sure that
8285 we see the same garbage. */
8286 fd = open ("conftest.mmap", O_RDWR);
8287 if (fd < 0)
8288 return 1;
8289 data2 = (char *) malloc (2 * pagesize);
8290 if (!data2)
8291 return 1;
8292 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8293 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8294 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8295 return 1;
8296 for (i = 0; i < pagesize; ++i)
8297 if (*(data + i) != *(data2 + i))
8298 return 1;
8299
8300 /* Finally, make sure that changes to the mapped area do not
8301 percolate back to the file as seen by read(). (This is a bug on
8302 some variants of i386 svr4.0.) */
8303 for (i = 0; i < pagesize; ++i)
8304 *(data2 + i) = *(data2 + i) + 1;
8305 data3 = (char *) malloc (pagesize);
8306 if (!data3)
8307 return 1;
8308 if (read (fd, data3, pagesize) != pagesize)
8309 return 1;
8310 for (i = 0; i < pagesize; ++i)
8311 if (*(data + i) != *(data3 + i))
8312 return 1;
8313 close (fd);
8314 return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest$ac_exeext
8318 if { (ac_try="$ac_link"
8319 case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322 esac
8323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8324 $as_echo "$ac_try_echo") >&5
8325 (eval "$ac_link") 2>&5
8326 ac_status=$?
8327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8329 { (case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332 esac
8333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8334 $as_echo "$ac_try_echo") >&5
8335 (eval "$ac_try") 2>&5
8336 ac_status=$?
8337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_mmap_fixed_mapped=yes
8340 else
8341 $as_echo "$as_me: program exited with status $ac_status" >&5
8342 $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ( exit $ac_status )
8346 ac_cv_func_mmap_fixed_mapped=no
8347 fi
8348 rm -rf conftest.dSYM
8349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8350 fi
8351
8352
8353 fi
8354 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8355 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8356 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8357
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_MMAP 1
8360 _ACEOF
8361
8362 fi
8363 rm -f conftest.mmap
8364
8365 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8366 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8367 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test "$cross_compiling" = yes; then
8371 ac_cv_func_stat_empty_string_bug=yes
8372 else
8373 cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h. */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8379 $ac_includes_default
8380 int
8381 main ()
8382 {
8383 struct stat sbuf;
8384 return stat ("", &sbuf) == 0;
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396 $as_echo "$ac_try_echo") >&5
8397 (eval "$ac_link") 2>&5
8398 ac_status=$?
8399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8406 $as_echo "$ac_try_echo") >&5
8407 (eval "$ac_try") 2>&5
8408 ac_status=$?
8409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_func_stat_empty_string_bug=no
8412 else
8413 $as_echo "$as_me: program exited with status $ac_status" >&5
8414 $as_echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417 ( exit $ac_status )
8418 ac_cv_func_stat_empty_string_bug=yes
8419 fi
8420 rm -rf conftest.dSYM
8421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8422 fi
8423
8424
8425 fi
8426 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8427 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8428 if test $ac_cv_func_stat_empty_string_bug = yes; then
8429 case " $LIBOBJS " in
8430 *" stat.$ac_objext "* ) ;;
8431 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8432 ;;
8433 esac
8434
8435
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_STAT_EMPTY_STRING_BUG 1
8438 _ACEOF
8439
8440 fi
8441
8442 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8443 $as_echo_n "checking for working strtod... " >&6; }
8444 if test "${ac_cv_func_strtod+set}" = set; then
8445 $as_echo_n "(cached) " >&6
8446 else
8447 if test "$cross_compiling" = yes; then
8448 ac_cv_func_strtod=no
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456
8457 $ac_includes_default
8458 #ifndef strtod
8459 double strtod ();
8460 #endif
8461 int
8462 main()
8463 {
8464 {
8465 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8466 char *string = " +69";
8467 char *term;
8468 double value;
8469 value = strtod (string, &term);
8470 if (value != 69 || term != (string + 4))
8471 return 1;
8472 }
8473
8474 {
8475 /* Under Solaris 2.4, strtod returns the wrong value for the
8476 terminating character under some conditions. */
8477 char *string = "NaN";
8478 char *term;
8479 strtod (string, &term);
8480 if (term != string && *(term - 1) == 0)
8481 return 1;
8482 }
8483 return 0;
8484 }
8485
8486 _ACEOF
8487 rm -f conftest$ac_exeext
8488 if { (ac_try="$ac_link"
8489 case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492 esac
8493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494 $as_echo "$ac_try_echo") >&5
8495 (eval "$ac_link") 2>&5
8496 ac_status=$?
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8499 { (case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502 esac
8503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504 $as_echo "$ac_try_echo") >&5
8505 (eval "$ac_try") 2>&5
8506 ac_status=$?
8507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_func_strtod=yes
8510 else
8511 $as_echo "$as_me: program exited with status $ac_status" >&5
8512 $as_echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ( exit $ac_status )
8516 ac_cv_func_strtod=no
8517 fi
8518 rm -rf conftest.dSYM
8519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8520 fi
8521
8522
8523 fi
8524 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8525 $as_echo "$ac_cv_func_strtod" >&6; }
8526 if test $ac_cv_func_strtod = no; then
8527 case " $LIBOBJS " in
8528 *" strtod.$ac_objext "* ) ;;
8529 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8530 ;;
8531 esac
8532
8533 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8534 $as_echo_n "checking for pow... " >&6; }
8535 if test "${ac_cv_func_pow+set}" = set; then
8536 $as_echo_n "(cached) " >&6
8537 else
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8546 #define pow innocuous_pow
8547
8548 /* System header to define __stub macros and hopefully few prototypes,
8549 which can conflict with char pow (); below.
8550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8551 <limits.h> exists even on freestanding compilers. */
8552
8553 #ifdef __STDC__
8554 # include <limits.h>
8555 #else
8556 # include <assert.h>
8557 #endif
8558
8559 #undef pow
8560
8561 /* Override any GCC internal prototype to avoid an error.
8562 Use char because int might match the return type of a GCC
8563 builtin and then its argument prototype would still apply. */
8564 #ifdef __cplusplus
8565 extern "C"
8566 #endif
8567 char pow ();
8568 /* The GNU C library defines this for functions which it implements
8569 to always fail with ENOSYS. Some functions are actually named
8570 something starting with __ and the normal name is an alias. */
8571 #if defined __stub_pow || defined __stub___pow
8572 choke me
8573 #endif
8574
8575 int
8576 main ()
8577 {
8578 return pow ();
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (ac_try="$ac_link"
8585 case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588 esac
8589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8590 $as_echo "$ac_try_echo") >&5
8591 (eval "$ac_link") 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
8600 } && test -s conftest$ac_exeext && {
8601 test "$cross_compiling" = yes ||
8602 $as_test_x conftest$ac_exeext
8603 }; then
8604 ac_cv_func_pow=yes
8605 else
8606 $as_echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609 ac_cv_func_pow=no
8610 fi
8611
8612 rm -rf conftest.dSYM
8613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8614 conftest$ac_exeext conftest.$ac_ext
8615 fi
8616 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8617 $as_echo "$ac_cv_func_pow" >&6; }
8618
8619 if test $ac_cv_func_pow = no; then
8620 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8621 $as_echo_n "checking for pow in -lm... " >&6; }
8622 if test "${ac_cv_lib_m_pow+set}" = set; then
8623 $as_echo_n "(cached) " >&6
8624 else
8625 ac_check_lib_save_LIBS=$LIBS
8626 LIBS="-lm $LIBS"
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8637 #ifdef __cplusplus
8638 extern "C"
8639 #endif
8640 char pow ();
8641 int
8642 main ()
8643 {
8644 return pow ();
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (ac_try="$ac_link"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657 (eval "$ac_link") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest$ac_exeext && {
8667 test "$cross_compiling" = yes ||
8668 $as_test_x conftest$ac_exeext
8669 }; then
8670 ac_cv_lib_m_pow=yes
8671 else
8672 $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_cv_lib_m_pow=no
8676 fi
8677
8678 rm -rf conftest.dSYM
8679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8680 conftest$ac_exeext conftest.$ac_ext
8681 LIBS=$ac_check_lib_save_LIBS
8682 fi
8683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8684 $as_echo "$ac_cv_lib_m_pow" >&6; }
8685 if test "x$ac_cv_lib_m_pow" = x""yes; then
8686 POW_LIB=-lm
8687 else
8688 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8689 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8690 fi
8691
8692 fi
8693
8694 fi
8695
8696
8697 for ac_func in vprintf
8698 do
8699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8701 $as_echo_n "checking for $ac_func... " >&6; }
8702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8703 $as_echo_n "(cached) " >&6
8704 else
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h. */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8713 #define $ac_func innocuous_$ac_func
8714
8715 /* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char $ac_func (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
8719
8720 #ifdef __STDC__
8721 # include <limits.h>
8722 #else
8723 # include <assert.h>
8724 #endif
8725
8726 #undef $ac_func
8727
8728 /* Override any GCC internal prototype to avoid an error.
8729 Use char because int might match the return type of a GCC
8730 builtin and then its argument prototype would still apply. */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 char $ac_func ();
8735 /* The GNU C library defines this for functions which it implements
8736 to always fail with ENOSYS. Some functions are actually named
8737 something starting with __ and the normal name is an alias. */
8738 #if defined __stub_$ac_func || defined __stub___$ac_func
8739 choke me
8740 #endif
8741
8742 int
8743 main ()
8744 {
8745 return $ac_func ();
8746 ;
8747 return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8752 case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755 esac
8756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757 $as_echo "$ac_try_echo") >&5
8758 (eval "$ac_link") 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest$ac_exeext && {
8768 test "$cross_compiling" = yes ||
8769 $as_test_x conftest$ac_exeext
8770 }; then
8771 eval "$as_ac_var=yes"
8772 else
8773 $as_echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 eval "$as_ac_var=no"
8777 fi
8778
8779 rm -rf conftest.dSYM
8780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781 conftest$ac_exeext conftest.$ac_ext
8782 fi
8783 ac_res=`eval 'as_val=${'$as_ac_var'}
8784 $as_echo "$as_val"'`
8785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8786 $as_echo "$ac_res" >&6; }
8787 as_val=`eval 'as_val=${'$as_ac_var'}
8788 $as_echo "$as_val"'`
8789 if test "x$as_val" = x""yes; then
8790 cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8792 _ACEOF
8793
8794 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8795 $as_echo_n "checking for _doprnt... " >&6; }
8796 if test "${ac_cv_func__doprnt+set}" = set; then
8797 $as_echo_n "(cached) " >&6
8798 else
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8807 #define _doprnt innocuous__doprnt
8808
8809 /* System header to define __stub macros and hopefully few prototypes,
8810 which can conflict with char _doprnt (); below.
8811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8812 <limits.h> exists even on freestanding compilers. */
8813
8814 #ifdef __STDC__
8815 # include <limits.h>
8816 #else
8817 # include <assert.h>
8818 #endif
8819
8820 #undef _doprnt
8821
8822 /* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 char _doprnt ();
8829 /* The GNU C library defines this for functions which it implements
8830 to always fail with ENOSYS. Some functions are actually named
8831 something starting with __ and the normal name is an alias. */
8832 #if defined __stub__doprnt || defined __stub____doprnt
8833 choke me
8834 #endif
8835
8836 int
8837 main ()
8838 {
8839 return _doprnt ();
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (ac_try="$ac_link"
8846 case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849 esac
8850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8851 $as_echo "$ac_try_echo") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest$ac_exeext && {
8862 test "$cross_compiling" = yes ||
8863 $as_test_x conftest$ac_exeext
8864 }; then
8865 ac_cv_func__doprnt=yes
8866 else
8867 $as_echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870 ac_cv_func__doprnt=no
8871 fi
8872
8873 rm -rf conftest.dSYM
8874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8875 conftest$ac_exeext conftest.$ac_ext
8876 fi
8877 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8878 $as_echo "$ac_cv_func__doprnt" >&6; }
8879 if test "x$ac_cv_func__doprnt" = x""yes; then
8880
8881 cat >>confdefs.h <<\_ACEOF
8882 #define HAVE_DOPRNT 1
8883 _ACEOF
8884
8885 fi
8886
8887 fi
8888 done
8889
8890
8891
8892 ################################################################################
8893 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8894 $as_echo_n "checking whether to use static linking... " >&6; }
8895 # Check whether --enable-static_link was given.
8896 if test "${enable_static_link+set}" = set; then
8897 enableval=$enable_static_link; STATIC_LINK=$enableval
8898 else
8899 STATIC_LINK=no
8900 fi
8901
8902 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8903 $as_echo "$STATIC_LINK" >&6; }
8904
8905 ################################################################################
8906
8907
8908 ################################################################################
8909 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8910 $as_echo_n "checking file owner... " >&6; }
8911 OWNER="root"
8912
8913
8914 # Check whether --with-user was given.
8915 if test "${with_user+set}" = set; then
8916 withval=$with_user; OWNER="$withval"
8917 fi
8918
8919 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8920 $as_echo "$OWNER" >&6; }
8921
8922 if test x$OWNER != x; then
8923 OWNER="-o $OWNER"
8924 fi
8925
8926 ################################################################################
8927 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8928 $as_echo_n "checking group owner... " >&6; }
8929 GROUP="root"
8930
8931 # Check whether --with-group was given.
8932 if test "${with_group+set}" = set; then
8933 withval=$with_group; GROUP="$withval"
8934 fi
8935
8936 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8937 $as_echo "$GROUP" >&6; }
8938
8939 if test x$GROUP != x; then
8940 GROUP="-g $GROUP"
8941 fi
8942
8943 ################################################################################
8944 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
8945 $as_echo_n "checking device node uid... " >&6; }
8946
8947
8948 # Check whether --with-device-uid was given.
8949 if test "${with_device_uid+set}" = set; then
8950 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8951 else
8952 DM_DEVICE_UID="0"
8953 fi
8954
8955 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8956 $as_echo "$DM_DEVICE_UID" >&6; }
8957
8958 ################################################################################
8959 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
8960 $as_echo_n "checking device node gid... " >&6; }
8961
8962
8963 # Check whether --with-device-gid was given.
8964 if test "${with_device_gid+set}" = set; then
8965 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8966 else
8967 DM_DEVICE_GID="0"
8968 fi
8969
8970 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8971 $as_echo "$DM_DEVICE_GID" >&6; }
8972
8973 ################################################################################
8974 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
8975 $as_echo_n "checking device node mode... " >&6; }
8976
8977
8978 # Check whether --with-device-mode was given.
8979 if test "${with_device_mode+set}" = set; then
8980 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8981 else
8982 DM_DEVICE_MODE="0600"
8983 fi
8984
8985 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8986 $as_echo "$DM_DEVICE_MODE" >&6; }
8987
8988 ################################################################################
8989 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8990 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
8991 # Check whether --enable-lvm1_fallback was given.
8992 if test "${enable_lvm1_fallback+set}" = set; then
8993 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8994 else
8995 LVM1_FALLBACK=no
8996 fi
8997
8998 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8999 $as_echo "$LVM1_FALLBACK" >&6; }
9000
9001 if test x$LVM1_FALLBACK = xyes; then
9002
9003 cat >>confdefs.h <<\_ACEOF
9004 #define LVM1_FALLBACK 1
9005 _ACEOF
9006
9007 fi
9008
9009 ################################################################################
9010 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9011 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9012
9013 # Check whether --with-lvm1 was given.
9014 if test "${with_lvm1+set}" = set; then
9015 withval=$with_lvm1; LVM1="$withval"
9016 else
9017 LVM1="internal"
9018 fi
9019
9020 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9021 $as_echo "$LVM1" >&6; }
9022
9023 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9024 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9025 " >&5
9026 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9027 " >&2;}
9028 { (exit 1); exit 1; }; }
9029 fi;
9030
9031 if test x$LVM1 = xinternal; then
9032
9033 cat >>confdefs.h <<\_ACEOF
9034 #define LVM1_INTERNAL 1
9035 _ACEOF
9036
9037 fi
9038
9039 ################################################################################
9040 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9041 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9042
9043 # Check whether --with-pool was given.
9044 if test "${with_pool+set}" = set; then
9045 withval=$with_pool; POOL="$withval"
9046 else
9047 POOL="internal"
9048 fi
9049
9050 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9051 $as_echo "$POOL" >&6; }
9052
9053 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9054 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9055 " >&5
9056 $as_echo "$as_me: error: --with-pool parameter invalid
9057 " >&2;}
9058 { (exit 1); exit 1; }; }
9059 fi;
9060
9061 if test x$POOL = xinternal; then
9062
9063 cat >>confdefs.h <<\_ACEOF
9064 #define POOL_INTERNAL 1
9065 _ACEOF
9066
9067 fi
9068
9069 ################################################################################
9070 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9071 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9072
9073 # Check whether --with-cluster was given.
9074 if test "${with_cluster+set}" = set; then
9075 withval=$with_cluster; CLUSTER="$withval"
9076 fi
9077
9078 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9079 $as_echo "$CLUSTER" >&6; }
9080
9081 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9082 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9083 " >&5
9084 $as_echo "$as_me: error: --with-cluster parameter invalid
9085 " >&2;}
9086 { (exit 1); exit 1; }; }
9087 fi;
9088
9089 if test x$CLUSTER = xinternal; then
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define CLUSTER_LOCKING_INTERNAL 1
9093 _ACEOF
9094
9095 fi
9096
9097 ################################################################################
9098 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9099 $as_echo_n "checking whether to include snapshots... " >&6; }
9100
9101 # Check whether --with-snapshots was given.
9102 if test "${with_snapshots+set}" = set; then
9103 withval=$with_snapshots; SNAPSHOTS="$withval"
9104 else
9105 SNAPSHOTS="internal"
9106 fi
9107
9108 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9109 $as_echo "$SNAPSHOTS" >&6; }
9110
9111 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9112 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9113 " >&5
9114 $as_echo "$as_me: error: --with-snapshots parameter invalid
9115 " >&2;}
9116 { (exit 1); exit 1; }; }
9117 fi;
9118
9119 if test x$SNAPSHOTS = xinternal; then
9120
9121 cat >>confdefs.h <<\_ACEOF
9122 #define SNAPSHOT_INTERNAL 1
9123 _ACEOF
9124
9125 fi
9126
9127 ################################################################################
9128 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9129 $as_echo_n "checking whether to include mirrors... " >&6; }
9130
9131 # Check whether --with-mirrors was given.
9132 if test "${with_mirrors+set}" = set; then
9133 withval=$with_mirrors; MIRRORS="$withval"
9134 else
9135 MIRRORS="internal"
9136 fi
9137
9138 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9139 $as_echo "$MIRRORS" >&6; }
9140
9141 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9142 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9143 " >&5
9144 $as_echo "$as_me: error: --with-mirrors parameter invalid
9145 " >&2;}
9146 { (exit 1); exit 1; }; }
9147 fi;
9148
9149 if test x$MIRRORS = xinternal; then
9150
9151 cat >>confdefs.h <<\_ACEOF
9152 #define MIRRORED_INTERNAL 1
9153 _ACEOF
9154
9155 fi
9156
9157 ################################################################################
9158 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9159 $as_echo_n "checking whether to enable readline... " >&6; }
9160 # Check whether --enable-readline was given.
9161 if test "${enable_readline+set}" = set; then
9162 enableval=$enable_readline; READLINE=$enableval
9163 else
9164 READLINE=maybe
9165 fi
9166
9167 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9168 $as_echo "$READLINE" >&6; }
9169
9170 ################################################################################
9171 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9172 $as_echo_n "checking whether to enable realtime support... " >&6; }
9173 # Check whether --enable-realtime was given.
9174 if test "${enable_realtime+set}" = set; then
9175 enableval=$enable_realtime; REALTIME=$enableval
9176 fi
9177
9178 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9179 $as_echo "$REALTIME" >&6; }
9180
9181 ################################################################################
9182 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9183 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9184
9185 # Check whether --with-clvmd was given.
9186 if test "${with_clvmd+set}" = set; then
9187 withval=$with_clvmd; CLVMD="$withval"
9188 else
9189 CLVMD="none"
9190 fi
9191
9192 if test x$CLVMD = xyes; then
9193 CLVMD=all
9194 fi
9195 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9196 $as_echo "$CLVMD" >&6; }
9197
9198 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9199 CLUSTER=internal
9200 fi
9201
9202 if [ "x$CLVMD" = xall -o `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9203
9204
9205 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9206 if test -n "$ac_tool_prefix"; then
9207 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9208 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9212 $as_echo_n "(cached) " >&6
9213 else
9214 case $PKG_CONFIG in
9215 [\\/]* | ?:[\\/]*)
9216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9217 ;;
9218 *)
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9221 do
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9229 fi
9230 done
9231 done
9232 IFS=$as_save_IFS
9233
9234 ;;
9235 esac
9236 fi
9237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9238 if test -n "$PKG_CONFIG"; then
9239 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9240 $as_echo "$PKG_CONFIG" >&6; }
9241 else
9242 { $as_echo "$as_me:$LINENO: result: no" >&5
9243 $as_echo "no" >&6; }
9244 fi
9245
9246
9247 fi
9248 if test -z "$ac_cv_path_PKG_CONFIG"; then
9249 ac_pt_PKG_CONFIG=$PKG_CONFIG
9250 # Extract the first word of "pkg-config", so it can be a program name with args.
9251 set dummy pkg-config; ac_word=$2
9252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9255 $as_echo_n "(cached) " >&6
9256 else
9257 case $ac_pt_PKG_CONFIG in
9258 [\\/]* | ?:[\\/]*)
9259 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9260 ;;
9261 *)
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9264 do
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9272 fi
9273 done
9274 done
9275 IFS=$as_save_IFS
9276
9277 ;;
9278 esac
9279 fi
9280 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9281 if test -n "$ac_pt_PKG_CONFIG"; then
9282 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9283 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9284 else
9285 { $as_echo "$as_me:$LINENO: result: no" >&5
9286 $as_echo "no" >&6; }
9287 fi
9288
9289 if test "x$ac_pt_PKG_CONFIG" = x; then
9290 PKG_CONFIG=""
9291 else
9292 case $cross_compiling:$ac_tool_warned in
9293 yes:)
9294 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296 ac_tool_warned=yes ;;
9297 esac
9298 PKG_CONFIG=$ac_pt_PKG_CONFIG
9299 fi
9300 else
9301 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9302 fi
9303
9304 fi
9305 if test -n "$PKG_CONFIG"; then
9306 _pkg_min_version=0.9.0
9307 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9308 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9309 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9310 { $as_echo "$as_me:$LINENO: result: yes" >&5
9311 $as_echo "yes" >&6; }
9312 else
9313 { $as_echo "$as_me:$LINENO: result: no" >&5
9314 $as_echo "no" >&6; }
9315 PKG_CONFIG=""
9316 fi
9317
9318 fi
9319
9320 pkg_failed=no
9321 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9322 $as_echo_n "checking for QUORUM... " >&6; }
9323
9324 if test -n "$QUORUM_CFLAGS"; then
9325 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9326 elif test -n "$PKG_CONFIG"; then
9327 if test -n "$PKG_CONFIG" && \
9328 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9329 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9330 ac_status=$?
9331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; then
9333 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9334 else
9335 pkg_failed=yes
9336 fi
9337 else
9338 pkg_failed=untried
9339 fi
9340 if test -n "$QUORUM_LIBS"; then
9341 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9342 elif test -n "$PKG_CONFIG"; then
9343 if test -n "$PKG_CONFIG" && \
9344 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9345 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9346 ac_status=$?
9347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; then
9349 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9350 else
9351 pkg_failed=yes
9352 fi
9353 else
9354 pkg_failed=untried
9355 fi
9356
9357
9358
9359 if test $pkg_failed = yes; then
9360
9361 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9362 _pkg_short_errors_supported=yes
9363 else
9364 _pkg_short_errors_supported=no
9365 fi
9366 if test $_pkg_short_errors_supported = yes; then
9367 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9368 else
9369 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9370 fi
9371 # Put the nasty error message in config.log where it belongs
9372 echo "$QUORUM_PKG_ERRORS" >&5
9373
9374 { $as_echo "$as_me:$LINENO: result: no" >&5
9375 $as_echo "no" >&6; }
9376 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9377 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9378 QUORUM_LIBS="-lquorum"
9379 elif test $pkg_failed = untried; then
9380 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9381 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9382 QUORUM_LIBS="-lquorum"
9383 else
9384 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9385 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9386 { $as_echo "$as_me:$LINENO: result: yes" >&5
9387 $as_echo "yes" >&6; }
9388 :
9389 fi
9390
9391 pkg_failed=no
9392 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9393 $as_echo_n "checking for CONFDB... " >&6; }
9394
9395 if test -n "$CONFDB_CFLAGS"; then
9396 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9397 elif test -n "$PKG_CONFIG"; then
9398 if test -n "$PKG_CONFIG" && \
9399 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9400 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9401 ac_status=$?
9402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; then
9404 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9405 else
9406 pkg_failed=yes
9407 fi
9408 else
9409 pkg_failed=untried
9410 fi
9411 if test -n "$CONFDB_LIBS"; then
9412 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9413 elif test -n "$PKG_CONFIG"; then
9414 if test -n "$PKG_CONFIG" && \
9415 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9416 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9417 ac_status=$?
9418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; then
9420 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9421 else
9422 pkg_failed=yes
9423 fi
9424 else
9425 pkg_failed=untried
9426 fi
9427
9428
9429
9430 if test $pkg_failed = yes; then
9431
9432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9433 _pkg_short_errors_supported=yes
9434 else
9435 _pkg_short_errors_supported=no
9436 fi
9437 if test $_pkg_short_errors_supported = yes; then
9438 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9439 else
9440 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9441 fi
9442 # Put the nasty error message in config.log where it belongs
9443 echo "$CONFDB_PKG_ERRORS" >&5
9444
9445 { $as_echo "$as_me:$LINENO: result: no" >&5
9446 $as_echo "no" >&6; }
9447 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9448 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9449 CONFDB_LIBS="-lconfdb"
9450 elif test $pkg_failed = untried; then
9451 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9452 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9453 CONFDB_LIBS="-lconfdb"
9454 else
9455 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9456 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9457 { $as_echo "$as_me:$LINENO: result: yes" >&5
9458 $as_echo "yes" >&6; }
9459 :
9460 fi
9461
9462 pkg_failed=no
9463 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
9464 $as_echo_n "checking for CPG... " >&6; }
9465
9466 if test -n "$CPG_CFLAGS"; then
9467 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9468 elif test -n "$PKG_CONFIG"; then
9469 if test -n "$PKG_CONFIG" && \
9470 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9471 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9472 ac_status=$?
9473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; then
9475 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9476 else
9477 pkg_failed=yes
9478 fi
9479 else
9480 pkg_failed=untried
9481 fi
9482 if test -n "$CPG_LIBS"; then
9483 pkg_cv_CPG_LIBS="$CPG_LIBS"
9484 elif test -n "$PKG_CONFIG"; then
9485 if test -n "$PKG_CONFIG" && \
9486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9487 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9488 ac_status=$?
9489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; then
9491 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9492 else
9493 pkg_failed=yes
9494 fi
9495 else
9496 pkg_failed=untried
9497 fi
9498
9499
9500
9501 if test $pkg_failed = yes; then
9502
9503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9504 _pkg_short_errors_supported=yes
9505 else
9506 _pkg_short_errors_supported=no
9507 fi
9508 if test $_pkg_short_errors_supported = yes; then
9509 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9510 else
9511 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9512 fi
9513 # Put the nasty error message in config.log where it belongs
9514 echo "$CPG_PKG_ERRORS" >&5
9515
9516 { $as_echo "$as_me:$LINENO: result: no" >&5
9517 $as_echo "no" >&6; }
9518 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9519 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9520 CPG_LIBS="-lcpg"
9521 elif test $pkg_failed = untried; then
9522 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9523 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9524 CPG_LIBS="-lcpg"
9525 else
9526 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9527 CPG_LIBS=$pkg_cv_CPG_LIBS
9528 { $as_echo "$as_me:$LINENO: result: yes" >&5
9529 $as_echo "yes" >&6; }
9530 :
9531 fi
9532 fi
9533
9534 ################################################################################
9535 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9536 $as_echo_n "checking whether to enable debugging... " >&6; }
9537 # Check whether --enable-debug was given.
9538 if test "${enable_debug+set}" = set; then
9539 enableval=$enable_debug; DEBUG=$enableval
9540 else
9541 DEBUG=no
9542 fi
9543
9544 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9545 $as_echo "$DEBUG" >&6; }
9546
9547 if test x$DEBUG = xyes; then
9548 COPTIMISE_FLAG=
9549 else
9550 CSCOPE_CMD=
9551 fi
9552
9553 ################################################################################
9554 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9555 $as_echo_n "checking for C optimisation flag... " >&6; }
9556
9557 # Check whether --with-optimisation was given.
9558 if test "${with_optimisation+set}" = set; then
9559 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9560 fi
9561
9562 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9563 $as_echo "$COPTIMISE_FLAG" >&6; }
9564
9565 ################################################################################
9566 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9567 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
9568 # Check whether --enable-profiling was given.
9569 if test "${enable_profiling+set}" = set; then
9570 enableval=$enable_profiling; PROFILING=$enableval
9571 else
9572 PROFILING=no
9573 fi
9574
9575 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9576 $as_echo "$PROFILING" >&6; }
9577
9578 if test "x$PROFILING" = xyes; then
9579 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9580 # Extract the first word of "lcov", so it can be a program name with args.
9581 set dummy lcov; ac_word=$2
9582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9583 $as_echo_n "checking for $ac_word... " >&6; }
9584 if test "${ac_cv_path_LCOV+set}" = set; then
9585 $as_echo_n "(cached) " >&6
9586 else
9587 case $LCOV in
9588 [\\/]* | ?:[\\/]*)
9589 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9590 ;;
9591 *)
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
9600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9602 fi
9603 done
9604 done
9605 IFS=$as_save_IFS
9606
9607 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
9608 ;;
9609 esac
9610 fi
9611 LCOV=$ac_cv_path_LCOV
9612 if test -n "$LCOV"; then
9613 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9614 $as_echo "$LCOV" >&6; }
9615 else
9616 { $as_echo "$as_me:$LINENO: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619
9620
9621 # Extract the first word of "genhtml", so it can be a program name with args.
9622 set dummy genhtml; ac_word=$2
9623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if test "${ac_cv_path_GENHTML+set}" = set; then
9626 $as_echo_n "(cached) " >&6
9627 else
9628 case $GENHTML in
9629 [\\/]* | ?:[\\/]*)
9630 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9631 ;;
9632 *)
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9635 do
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
9641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9643 fi
9644 done
9645 done
9646 IFS=$as_save_IFS
9647
9648 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
9649 ;;
9650 esac
9651 fi
9652 GENHTML=$ac_cv_path_GENHTML
9653 if test -n "$GENHTML"; then
9654 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9655 $as_echo "$GENHTML" >&6; }
9656 else
9657 { $as_echo "$as_me:$LINENO: result: no" >&5
9658 $as_echo "no" >&6; }
9659 fi
9660
9661
9662 if test "$LCOV" = no -o "$GENHTML" = no ; then
9663 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9664 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
9665 { (exit 1); exit 1; }; }
9666 fi
9667 fi
9668
9669 ################################################################################
9670 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9671 $as_echo_n "checking whether to use device-mapper... " >&6; }
9672 # Check whether --enable-devmapper was given.
9673 if test "${enable_devmapper+set}" = set; then
9674 enableval=$enable_devmapper; DEVMAPPER=$enableval
9675 fi
9676
9677 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9678 $as_echo "$DEVMAPPER" >&6; }
9679
9680 if test x$DEVMAPPER = xyes; then
9681
9682 cat >>confdefs.h <<\_ACEOF
9683 #define DEVMAPPER_SUPPORT 1
9684 _ACEOF
9685
9686 fi
9687
9688 ################################################################################
9689 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
9690 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
9691 # Check whether --enable-udev_sync was given.
9692 if test "${enable_udev_sync+set}" = set; then
9693 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
9694 else
9695 UDEV_SYNC=no
9696 fi
9697
9698 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
9699 $as_echo "$UDEV_SYNC" >&6; }
9700
9701 if test x$UDEV_SYNC = xyes; then
9702
9703 cat >>confdefs.h <<\_ACEOF
9704 #define UDEV_SYNC_SUPPORT 1
9705 _ACEOF
9706
9707 fi
9708
9709 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
9710 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
9711 # Check whether --enable-udev_rules was given.
9712 if test "${enable_udev_rules+set}" = set; then
9713 enableval=$enable_udev_rules; UDEV_RULES=$enableval
9714 else
9715 UDEV_RULES=$UDEV_SYNC
9716 fi
9717
9718 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
9719 $as_echo "$UDEV_RULES" >&6; }
9720
9721 ################################################################################
9722 # Check whether --enable-compat was given.
9723 if test "${enable_compat+set}" = set; then
9724 enableval=$enable_compat; DM_COMPAT=$enableval
9725 else
9726 DM_COMPAT=no
9727 fi
9728
9729
9730 ################################################################################
9731 # Check whether --enable-ioctl was given.
9732 if test "${enable_ioctl+set}" = set; then
9733 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9734 fi
9735
9736
9737 ################################################################################
9738 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9739 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9740 # Check whether --enable-o_direct was given.
9741 if test "${enable_o_direct+set}" = set; then
9742 enableval=$enable_o_direct; ODIRECT=$enableval
9743 fi
9744
9745 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9746 $as_echo "$ODIRECT" >&6; }
9747
9748 if test x$ODIRECT = xyes; then
9749
9750 cat >>confdefs.h <<\_ACEOF
9751 #define O_DIRECT_SUPPORT 1
9752 _ACEOF
9753
9754 fi
9755
9756 ################################################################################
9757 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
9758 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9759 # Check whether --enable-applib was given.
9760 if test "${enable_applib+set}" = set; then
9761 enableval=$enable_applib; APPLIB=$enableval
9762 else
9763 APPLIB=no
9764 fi
9765
9766 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
9767 $as_echo "$APPLIB" >&6; }
9768
9769 test x$APPLIB = xyes \
9770 && LVM2APP_LIB=-llvm2app \
9771 || LVM2APP_LIB=
9772
9773 ################################################################################
9774 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9775 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9776 # Check whether --enable-cmdlib was given.
9777 if test "${enable_cmdlib+set}" = set; then
9778 enableval=$enable_cmdlib; CMDLIB=$enableval
9779 else
9780 CMDLIB=no
9781 fi
9782
9783 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9784 $as_echo "$CMDLIB" >&6; }
9785
9786 test x$CMDLIB = xyes \
9787 && LVM2CMD_LIB=-llvm2cmd \
9788 || LVM2CMD_LIB=
9789
9790 ################################################################################
9791 # Check whether --enable-pkgconfig was given.
9792 if test "${enable_pkgconfig+set}" = set; then
9793 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9794 else
9795 PKGCONFIG=no
9796 fi
9797
9798
9799 ################################################################################
9800 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9801 $as_echo_n "checking whether to install fsadm... " >&6; }
9802 # Check whether --enable-fsadm was given.
9803 if test "${enable_fsadm+set}" = set; then
9804 enableval=$enable_fsadm; FSADM=$enableval
9805 fi
9806
9807 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9808 $as_echo "$FSADM" >&6; }
9809
9810 ################################################################################
9811 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9812 $as_echo_n "checking whether to use dmeventd... " >&6; }
9813 # Check whether --enable-dmeventd was given.
9814 if test "${enable_dmeventd+set}" = set; then
9815 enableval=$enable_dmeventd; DMEVENTD=$enableval
9816 fi
9817
9818 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9819 $as_echo "$DMEVENTD" >&6; }
9820
9821 BUILD_DMEVENTD=$DMEVENTD
9822
9823 if test x$DMEVENTD = xyes; then
9824 if test x$MIRRORS != xinternal; then
9825 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
9826 " >&5
9827 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
9828 " >&2;}
9829 { (exit 1); exit 1; }; }
9830 fi
9831 if test x$CMDLIB = xno; then
9832 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9833 " >&5
9834 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9835 " >&2;}
9836 { (exit 1); exit 1; }; }
9837 fi
9838 fi
9839
9840 if test x$DMEVENTD = xyes; then
9841
9842 cat >>confdefs.h <<\_ACEOF
9843 #define DMEVENTD 1
9844 _ACEOF
9845
9846 fi
9847
9848 ################################################################################
9849
9850 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9851 $as_echo_n "checking for getline in -lc... " >&6; }
9852 if test "${ac_cv_lib_c_getline+set}" = set; then
9853 $as_echo_n "(cached) " >&6
9854 else
9855 ac_check_lib_save_LIBS=$LIBS
9856 LIBS="-lc $LIBS"
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h. */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863
9864 /* Override any GCC internal prototype to avoid an error.
9865 Use char because int might match the return type of a GCC
9866 builtin and then its argument prototype would still apply. */
9867 #ifdef __cplusplus
9868 extern "C"
9869 #endif
9870 char getline ();
9871 int
9872 main ()
9873 {
9874 return getline ();
9875 ;
9876 return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9881 case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884 esac
9885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9886 $as_echo "$ac_try_echo") >&5
9887 (eval "$ac_link") 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && {
9894 test -z "$ac_c_werror_flag" ||
9895 test ! -s conftest.err
9896 } && test -s conftest$ac_exeext && {
9897 test "$cross_compiling" = yes ||
9898 $as_test_x conftest$ac_exeext
9899 }; then
9900 ac_cv_lib_c_getline=yes
9901 else
9902 $as_echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9904
9905 ac_cv_lib_c_getline=no
9906 fi
9907
9908 rm -rf conftest.dSYM
9909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9912 fi
9913 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9914 $as_echo "$ac_cv_lib_c_getline" >&6; }
9915 if test "x$ac_cv_lib_c_getline" = x""yes; then
9916
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_GETLINE 1
9919 _ACEOF
9920
9921 fi
9922
9923
9924 ################################################################################
9925
9926 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9927 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9928 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9929 $as_echo_n "(cached) " >&6
9930 else
9931 ac_check_lib_save_LIBS=$LIBS
9932 LIBS="-lc $LIBS"
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char canonicalize_file_name ();
9947 int
9948 main ()
9949 {
9950 return canonicalize_file_name ();
9951 ;
9952 return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960 esac
9961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9962 $as_echo "$ac_try_echo") >&5
9963 (eval "$ac_link") 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest$ac_exeext && {
9973 test "$cross_compiling" = yes ||
9974 $as_test_x conftest$ac_exeext
9975 }; then
9976 ac_cv_lib_c_canonicalize_file_name=yes
9977 else
9978 $as_echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 ac_cv_lib_c_canonicalize_file_name=no
9982 fi
9983
9984 rm -rf conftest.dSYM
9985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986 conftest$ac_exeext conftest.$ac_ext
9987 LIBS=$ac_check_lib_save_LIBS
9988 fi
9989 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9990 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9991 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
9992
9993 cat >>confdefs.h <<\_ACEOF
9994 #define HAVE_CANONICALIZE_FILE_NAME 1
9995 _ACEOF
9996
9997 fi
9998
9999
10000 ################################################################################
10001 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
10002 then exec_prefix="";
10003 fi;
10004
10005 ################################################################################
10006 if test x$READLINE != xno; then
10007 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10008 $as_echo_n "checking for library containing tgetent... " >&6; }
10009 if test "${ac_cv_search_tgetent+set}" = set; then
10010 $as_echo_n "(cached) " >&6
10011 else
10012 ac_func_search_save_LIBS=$LIBS
10013 cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h. */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char tgetent ();
10027 int
10028 main ()
10029 {
10030 return tgetent ();
10031 ;
10032 return 0;
10033 }
10034 _ACEOF
10035 for ac_lib in '' tinfo ncurses curses termcap termlib; do
10036 if test -z "$ac_lib"; then
10037 ac_res="none required"
10038 else
10039 ac_res=-l$ac_lib
10040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10041 fi
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10049 $as_echo "$ac_try_echo") >&5
10050 (eval "$ac_link") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest$ac_exeext && {
10060 test "$cross_compiling" = yes ||
10061 $as_test_x conftest$ac_exeext
10062 }; then
10063 ac_cv_search_tgetent=$ac_res
10064 else
10065 $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068
10069 fi
10070
10071 rm -rf conftest.dSYM
10072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10073 conftest$ac_exeext
10074 if test "${ac_cv_search_tgetent+set}" = set; then
10075 break
10076 fi
10077 done
10078 if test "${ac_cv_search_tgetent+set}" = set; then
10079 :
10080 else
10081 ac_cv_search_tgetent=no
10082 fi
10083 rm conftest.$ac_ext
10084 LIBS=$ac_func_search_save_LIBS
10085 fi
10086 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10087 $as_echo "$ac_cv_search_tgetent" >&6; }
10088 ac_res=$ac_cv_search_tgetent
10089 if test "$ac_res" != no; then
10090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10091 tg_found=yes
10092 else
10093 tg_found=no
10094 fi
10095
10096 test x$READLINE:$tg_found = xyes:no &&
10097 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
10098 --enable-readline option (which is enabled by default). Either disable readline
10099 support with --disable-readline or download and install termcap from:
10100 ftp.gnu.org/gnu/termcap
10101 Note: if you are using precompiled packages you will also need the development
10102 package as well (which may be called termcap-devel or something similar).
10103 Note: (n)curses also seems to work as a substitute for termcap. This was
10104 not found either - but you could try installing that as well.
10105 " >&5
10106 $as_echo "$as_me: error: termcap could not be found which is required for the
10107 --enable-readline option (which is enabled by default). Either disable readline
10108 support with --disable-readline or download and install termcap from:
10109 ftp.gnu.org/gnu/termcap
10110 Note: if you are using precompiled packages you will also need the development
10111 package as well (which may be called termcap-devel or something similar).
10112 Note: (n)curses also seems to work as a substitute for termcap. This was
10113 not found either - but you could try installing that as well.
10114 " >&2;}
10115 { (exit 1); exit 1; }; }
10116 fi
10117
10118 ################################################################################
10119 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10122 $as_echo_n "(cached) " >&6
10123 else
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldl $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char dlopen ();
10140 int
10141 main ()
10142 {
10143 return dlopen ();
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155 $as_echo "$ac_try_echo") >&5
10156 (eval "$ac_link") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest$ac_exeext && {
10166 test "$cross_compiling" = yes ||
10167 $as_test_x conftest$ac_exeext
10168 }; then
10169 ac_cv_lib_dl_dlopen=yes
10170 else
10171 $as_echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_cv_lib_dl_dlopen=no
10175 fi
10176
10177 rm -rf conftest.dSYM
10178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LIBS=$ac_check_lib_save_LIBS
10181 fi
10182 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10184 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10185 HAVE_LIBDL=yes
10186 else
10187 HAVE_LIBDL=no
10188 fi
10189
10190
10191 if [ "x$HAVE_LIBDL" = xyes ]; then
10192
10193 cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_LIBDL 1
10195 _ACEOF
10196
10197 LIBS="-ldl $LIBS"
10198 else
10199 HAVE_LIBDL=no
10200 fi
10201
10202 ################################################################################
10203 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10204 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10205 \) -a "x$STATIC_LINK" = xyes ];
10206 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
10207 " >&5
10208 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
10209 " >&2;}
10210 { (exit 1); exit 1; }; }
10211 fi
10212
10213 ################################################################################
10214 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10215 $as_echo_n "checking whether to enable selinux support... " >&6; }
10216 # Check whether --enable-selinux was given.
10217 if test "${enable_selinux+set}" = set; then
10218 enableval=$enable_selinux; SELINUX=$enableval
10219 fi
10220
10221 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10222 $as_echo "$SELINUX" >&6; }
10223
10224 ################################################################################
10225 if test x$SELINUX = xyes; then
10226 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10227 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
10228 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
10229 $as_echo_n "(cached) " >&6
10230 else
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-lsepol $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char sepol_check_context ();
10247 int
10248 main ()
10249 {
10250 return sepol_check_context ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10275 }; then
10276 ac_cv_lib_sepol_sepol_check_context=yes
10277 else
10278 $as_echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_lib_sepol_sepol_check_context=no
10282 fi
10283
10284 rm -rf conftest.dSYM
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10288 fi
10289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10290 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10291 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
10292 HAVE_SEPOL=yes
10293 else
10294 HAVE_SEPOL=no
10295 fi
10296
10297
10298 if test x$HAVE_SEPOL = xyes; then
10299
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_SEPOL 1
10302 _ACEOF
10303
10304 LIBS="-lsepol $LIBS"
10305 fi
10306
10307 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10308 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
10309 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
10310 $as_echo_n "(cached) " >&6
10311 else
10312 ac_check_lib_save_LIBS=$LIBS
10313 LIBS="-lselinux $LIBS"
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320
10321 /* Override any GCC internal prototype to avoid an error.
10322 Use char because int might match the return type of a GCC
10323 builtin and then its argument prototype would still apply. */
10324 #ifdef __cplusplus
10325 extern "C"
10326 #endif
10327 char is_selinux_enabled ();
10328 int
10329 main ()
10330 {
10331 return is_selinux_enabled ();
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341 esac
10342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10343 $as_echo "$ac_try_echo") >&5
10344 (eval "$ac_link") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest$ac_exeext && {
10354 test "$cross_compiling" = yes ||
10355 $as_test_x conftest$ac_exeext
10356 }; then
10357 ac_cv_lib_selinux_is_selinux_enabled=yes
10358 else
10359 $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ac_cv_lib_selinux_is_selinux_enabled=no
10363 fi
10364
10365 rm -rf conftest.dSYM
10366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367 conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10369 fi
10370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10371 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10372 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
10373 HAVE_SELINUX=yes
10374 else
10375 HAVE_SELINUX=no
10376 fi
10377
10378
10379 if test x$HAVE_SELINUX = xyes; then
10380
10381 cat >>confdefs.h <<\_ACEOF
10382 #define HAVE_SELINUX 1
10383 _ACEOF
10384
10385 LIBS="-lselinux $LIBS"
10386 else
10387 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10388 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
10389 fi
10390
10391 # With --enable-static_link and selinux enabled, linking
10392 # fails on at least Debian unstable due to unsatisfied references
10393 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10394 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10395 lvm_saved_libs=$LIBS
10396 LIBS="$LIBS -static"
10397 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10398 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10399 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10400 $as_echo_n "(cached) " >&6
10401 else
10402 ac_func_search_save_LIBS=$LIBS
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h. */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409
10410 /* Override any GCC internal prototype to avoid an error.
10411 Use char because int might match the return type of a GCC
10412 builtin and then its argument prototype would still apply. */
10413 #ifdef __cplusplus
10414 extern "C"
10415 #endif
10416 char pthread_mutex_lock ();
10417 int
10418 main ()
10419 {
10420 return pthread_mutex_lock ();
10421 ;
10422 return 0;
10423 }
10424 _ACEOF
10425 for ac_lib in '' pthread; do
10426 if test -z "$ac_lib"; then
10427 ac_res="none required"
10428 else
10429 ac_res=-l$ac_lib
10430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10431 fi
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (ac_try="$ac_link"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10439 $as_echo "$ac_try_echo") >&5
10440 (eval "$ac_link") 2>conftest.er1
10441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
10445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest$ac_exeext && {
10450 test "$cross_compiling" = yes ||
10451 $as_test_x conftest$ac_exeext
10452 }; then
10453 ac_cv_search_pthread_mutex_lock=$ac_res
10454 else
10455 $as_echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458
10459 fi
10460
10461 rm -rf conftest.dSYM
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext
10464 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10465 break
10466 fi
10467 done
10468 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10469 :
10470 else
10471 ac_cv_search_pthread_mutex_lock=no
10472 fi
10473 rm conftest.$ac_ext
10474 LIBS=$ac_func_search_save_LIBS
10475 fi
10476 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10477 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10478 ac_res=$ac_cv_search_pthread_mutex_lock
10479 if test "$ac_res" != no; then
10480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10481 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10482 LIB_PTHREAD=-lpthread
10483 fi
10484
10485 LIBS=$lvm_saved_libs
10486 fi
10487 fi
10488
10489 ################################################################################
10490 if test x$REALTIME = xyes; then
10491 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10492 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10493 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
10494 $as_echo_n "(cached) " >&6
10495 else
10496 ac_check_lib_save_LIBS=$LIBS
10497 LIBS="-lrt $LIBS"
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504
10505 /* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10508 #ifdef __cplusplus
10509 extern "C"
10510 #endif
10511 char clock_gettime ();
10512 int
10513 main ()
10514 {
10515 return clock_gettime ();
10516 ;
10517 return 0;
10518 }
10519 _ACEOF
10520 rm -f conftest.$ac_objext conftest$ac_exeext
10521 if { (ac_try="$ac_link"
10522 case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525 esac
10526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527 $as_echo "$ac_try_echo") >&5
10528 (eval "$ac_link") 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest$ac_exeext && {
10538 test "$cross_compiling" = yes ||
10539 $as_test_x conftest$ac_exeext
10540 }; then
10541 ac_cv_lib_rt_clock_gettime=yes
10542 else
10543 $as_echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 ac_cv_lib_rt_clock_gettime=no
10547 fi
10548
10549 rm -rf conftest.dSYM
10550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10553 fi
10554 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10555 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10556 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
10557 HAVE_REALTIME=yes
10558 else
10559 HAVE_REALTIME=no
10560 fi
10561
10562
10563 if test x$HAVE_REALTIME = xyes; then
10564
10565 cat >>confdefs.h <<\_ACEOF
10566 #define HAVE_REALTIME 1
10567 _ACEOF
10568
10569 LIBS="-lrt $LIBS"
10570 else
10571 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10572 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
10573 fi
10574 fi
10575
10576 ################################################################################
10577
10578 for ac_header in getopt.h
10579 do
10580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10583 $as_echo_n "checking for $ac_header... " >&6; }
10584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585 $as_echo_n "(cached) " >&6
10586 fi
10587 ac_res=`eval 'as_val=${'$as_ac_Header'}
10588 $as_echo "$as_val"'`
10589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10590 $as_echo "$ac_res" >&6; }
10591 else
10592 # Is the header compilable?
10593 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10594 $as_echo_n "checking $ac_header usability... " >&6; }
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 $ac_includes_default
10602 #include <$ac_header>
10603 _ACEOF
10604 rm -f conftest.$ac_objext
10605 if { (ac_try="$ac_compile"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609 esac
10610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10611 $as_echo "$ac_try_echo") >&5
10612 (eval "$ac_compile") 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest.$ac_objext; then
10622 ac_header_compiler=yes
10623 else
10624 $as_echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627 ac_header_compiler=no
10628 fi
10629
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10632 $as_echo "$ac_header_compiler" >&6; }
10633
10634 # Is the header present?
10635 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10636 $as_echo_n "checking $ac_header presence... " >&6; }
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h. */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 #include <$ac_header>
10644 _ACEOF
10645 if { (ac_try="$ac_cpp conftest.$ac_ext"
10646 case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649 esac
10650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10651 $as_echo "$ac_try_echo") >&5
10652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } >/dev/null && {
10659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 }; then
10662 ac_header_preproc=yes
10663 else
10664 $as_echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_header_preproc=no
10668 fi
10669
10670 rm -f conftest.err conftest.$ac_ext
10671 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10672 $as_echo "$ac_header_preproc" >&6; }
10673
10674 # So? What about this header?
10675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10676 yes:no: )
10677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10678 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10681 ac_header_preproc=yes
10682 ;;
10683 no:yes:* )
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10689 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10691 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10695 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10696
10697 ;;
10698 esac
10699 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10700 $as_echo_n "checking for $ac_header... " >&6; }
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702 $as_echo_n "(cached) " >&6
10703 else
10704 eval "$as_ac_Header=\$ac_header_preproc"
10705 fi
10706 ac_res=`eval 'as_val=${'$as_ac_Header'}
10707 $as_echo "$as_val"'`
10708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10709 $as_echo "$ac_res" >&6; }
10710
10711 fi
10712 as_val=`eval 'as_val=${'$as_ac_Header'}
10713 $as_echo "$as_val"'`
10714 if test "x$as_val" = x""yes; then
10715 cat >>confdefs.h <<_ACEOF
10716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10717 _ACEOF
10718
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_GETOPTLONG 1
10721 _ACEOF
10722
10723 fi
10724
10725 done
10726
10727
10728 ################################################################################
10729 if test x$READLINE != xno; then
10730 rl_found=yes
10731
10732 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10733 $as_echo_n "checking for readline in -lreadline... " >&6; }
10734 if test "${ac_cv_lib_readline_readline+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10736 else
10737 ac_check_lib_save_LIBS=$LIBS
10738 LIBS="-lreadline $LIBS"
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char readline ();
10753 int
10754 main ()
10755 {
10756 return readline ();
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766 esac
10767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768 $as_echo "$ac_try_echo") >&5
10769 (eval "$ac_link") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest$ac_exeext && {
10779 test "$cross_compiling" = yes ||
10780 $as_test_x conftest$ac_exeext
10781 }; then
10782 ac_cv_lib_readline_readline=yes
10783 else
10784 $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787 ac_cv_lib_readline_readline=no
10788 fi
10789
10790 rm -rf conftest.dSYM
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10794 fi
10795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10796 $as_echo "$ac_cv_lib_readline_readline" >&6; }
10797 if test "x$ac_cv_lib_readline_readline" = x""yes; then
10798 cat >>confdefs.h <<_ACEOF
10799 #define HAVE_LIBREADLINE 1
10800 _ACEOF
10801
10802 LIBS="-lreadline $LIBS"
10803
10804 else
10805 rl_found=no
10806 fi
10807
10808 test x$READLINE:$rl_found = xyes:no &&
10809 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
10810 --enable-readline option (which is enabled by default). Either disable readline
10811 support with --disable-readline or download and install readline from:
10812 ftp.gnu.org/gnu/readline
10813 Note: if you are using precompiled packages you will also need the development
10814 package as well (which may be called readline-devel or something similar).
10815 " >&5
10816 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
10817 --enable-readline option (which is enabled by default). Either disable readline
10818 support with --disable-readline or download and install readline from:
10819 ftp.gnu.org/gnu/readline
10820 Note: if you are using precompiled packages you will also need the development
10821 package as well (which may be called readline-devel or something similar).
10822 " >&2;}
10823 { (exit 1); exit 1; }; }
10824 if test $rl_found = yes; then
10825
10826 for ac_func in rl_completion_matches
10827 do
10828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10829 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10830 $as_echo_n "checking for $ac_func... " >&6; }
10831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10832 $as_echo_n "(cached) " >&6
10833 else
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10842 #define $ac_func innocuous_$ac_func
10843
10844 /* System header to define __stub macros and hopefully few prototypes,
10845 which can conflict with char $ac_func (); below.
10846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10847 <limits.h> exists even on freestanding compilers. */
10848
10849 #ifdef __STDC__
10850 # include <limits.h>
10851 #else
10852 # include <assert.h>
10853 #endif
10854
10855 #undef $ac_func
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char $ac_func ();
10864 /* The GNU C library defines this for functions which it implements
10865 to always fail with ENOSYS. Some functions are actually named
10866 something starting with __ and the normal name is an alias. */
10867 #if defined __stub_$ac_func || defined __stub___$ac_func
10868 choke me
10869 #endif
10870
10871 int
10872 main ()
10873 {
10874 return $ac_func ();
10875 ;
10876 return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10886 $as_echo "$ac_try_echo") >&5
10887 (eval "$ac_link") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 $as_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_exeext && {
10897 test "$cross_compiling" = yes ||
10898 $as_test_x conftest$ac_exeext
10899 }; then
10900 eval "$as_ac_var=yes"
10901 else
10902 $as_echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 eval "$as_ac_var=no"
10906 fi
10907
10908 rm -rf conftest.dSYM
10909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10910 conftest$ac_exeext conftest.$ac_ext
10911 fi
10912 ac_res=`eval 'as_val=${'$as_ac_var'}
10913 $as_echo "$as_val"'`
10914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10915 $as_echo "$ac_res" >&6; }
10916 as_val=`eval 'as_val=${'$as_ac_var'}
10917 $as_echo "$as_val"'`
10918 if test "x$as_val" = x""yes; then
10919 cat >>confdefs.h <<_ACEOF
10920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10921 _ACEOF
10922
10923 fi
10924 done
10925
10926
10927 cat >>confdefs.h <<\_ACEOF
10928 #define READLINE_SUPPORT 1
10929 _ACEOF
10930
10931 fi
10932 fi
10933
10934 ################################################################################
10935 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10936 $as_echo_n "checking whether to enable internationalisation... " >&6; }
10937 # Check whether --enable-nls was given.
10938 if test "${enable_nls+set}" = set; then
10939 enableval=$enable_nls; INTL=$enableval
10940 else
10941 INTL=no
10942 fi
10943
10944 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
10945 $as_echo "$INTL" >&6; }
10946
10947 if test x$INTL = xyes; then
10948 # FIXME - Move this - can be device-mapper too
10949 INTL_PACKAGE="lvm2"
10950 # Extract the first word of "msgfmt", so it can be a program name with args.
10951 set dummy msgfmt; ac_word=$2
10952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if test "${ac_cv_path_MSGFMT+set}" = set; then
10955 $as_echo_n "(cached) " >&6
10956 else
10957 case $MSGFMT in
10958 [\\/]* | ?:[\\/]*)
10959 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10960 ;;
10961 *)
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10964 do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10969 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10971 break 2
10972 fi
10973 done
10974 done
10975 IFS=$as_save_IFS
10976
10977 ;;
10978 esac
10979 fi
10980 MSGFMT=$ac_cv_path_MSGFMT
10981 if test -n "$MSGFMT"; then
10982 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10983 $as_echo "$MSGFMT" >&6; }
10984 else
10985 { $as_echo "$as_me:$LINENO: result: no" >&5
10986 $as_echo "no" >&6; }
10987 fi
10988
10989
10990 if [ "x$MSGFMT" == x ];
10991 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10992 " >&5
10993 $as_echo "$as_me: error: msgfmt not found in path $PATH
10994 " >&2;}
10995 { (exit 1); exit 1; }; }
10996 fi;
10997
10998
10999 # Check whether --with-localedir was given.
11000 if test "${with_localedir+set}" = set; then
11001 withval=$with_localedir; LOCALEDIR="$withval"
11002 else
11003 LOCALEDIR='${prefix}/share/locale'
11004 fi
11005
11006 fi
11007
11008 ################################################################################
11009
11010 # Check whether --with-confdir was given.
11011 if test "${with_confdir+set}" = set; then
11012 withval=$with_confdir; CONFDIR="$withval"
11013 else
11014 CONFDIR='/etc'
11015 fi
11016
11017
11018
11019 # Check whether --with-staticdir was given.
11020 if test "${with_staticdir+set}" = set; then
11021 withval=$with_staticdir; STATICDIR="$withval"
11022 else
11023 STATICDIR='${exec_prefix}/sbin'
11024 fi
11025
11026
11027
11028 # Check whether --with-usrlibdir was given.
11029 if test "${with_usrlibdir+set}" = set; then
11030 withval=$with_usrlibdir; usrlibdir="$withval"
11031 else
11032 usrlibdir='${prefix}/lib'
11033 fi
11034
11035
11036
11037 # Check whether --with-usrsbindir was given.
11038 if test "${with_usrsbindir+set}" = set; then
11039 withval=$with_usrsbindir; usrsbindir="$withval"
11040 else
11041 usrsbindir='${prefix}/sbin'
11042 fi
11043
11044
11045 ################################################################################
11046
11047 # Check whether --with-udev_prefix was given.
11048 if test "${with_udev_prefix+set}" = set; then
11049 withval=$with_udev_prefix; udev_prefix="$withval"
11050 else
11051 udev_prefix='${exec_prefix}'
11052 fi
11053
11054
11055 udevdir='${udev_prefix}/lib/udev/rules.d'
11056
11057 ################################################################################
11058 if test x$READLINE = xyes; then
11059
11060
11061 for ac_header in readline/readline.h readline/history.h
11062 do
11063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 $as_echo_n "checking for $ac_header... " >&6; }
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 $as_echo_n "(cached) " >&6
11069 fi
11070 ac_res=`eval 'as_val=${'$as_ac_Header'}
11071 $as_echo "$as_val"'`
11072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11073 $as_echo "$ac_res" >&6; }
11074 else
11075 # Is the header compilable?
11076 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11077 $as_echo_n "checking $ac_header usability... " >&6; }
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 $ac_includes_default
11085 #include <$ac_header>
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (ac_try="$ac_compile"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092 esac
11093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11094 $as_echo "$ac_try_echo") >&5
11095 (eval "$ac_compile") 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest.$ac_objext; then
11105 ac_header_compiler=yes
11106 else
11107 $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 ac_header_compiler=no
11111 fi
11112
11113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 $as_echo "$ac_header_compiler" >&6; }
11116
11117 # Is the header present?
11118 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11119 $as_echo_n "checking $ac_header presence... " >&6; }
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <$ac_header>
11127 _ACEOF
11128 if { (ac_try="$ac_cpp conftest.$ac_ext"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132 esac
11133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11134 $as_echo "$ac_try_echo") >&5
11135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } >/dev/null && {
11142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 }; then
11145 ac_header_preproc=yes
11146 else
11147 $as_echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11149
11150 ac_header_preproc=no
11151 fi
11152
11153 rm -f conftest.err conftest.$ac_ext
11154 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11155 $as_echo "$ac_header_preproc" >&6; }
11156
11157 # So? What about this header?
11158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11159 yes:no: )
11160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11161 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11164 ac_header_preproc=yes
11165 ;;
11166 no:yes:* )
11167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11168 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11170 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11172 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11174 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11178 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11179
11180 ;;
11181 esac
11182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 $as_echo_n "checking for $ac_header... " >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 $as_echo_n "(cached) " >&6
11186 else
11187 eval "$as_ac_Header=\$ac_header_preproc"
11188 fi
11189 ac_res=`eval 'as_val=${'$as_ac_Header'}
11190 $as_echo "$as_val"'`
11191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11192 $as_echo "$ac_res" >&6; }
11193
11194 fi
11195 as_val=`eval 'as_val=${'$as_ac_Header'}
11196 $as_echo "$as_val"'`
11197 if test "x$as_val" = x""yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11200 _ACEOF
11201
11202 else
11203 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11204 $as_echo "$as_me: error: bailing out" >&2;}
11205 { (exit 1); exit 1; }; }
11206 fi
11207
11208 done
11209
11210 fi
11211
11212 if test x$CLVMD != xnone; then
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223 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
11224 do
11225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 $as_echo_n "checking for $ac_header... " >&6; }
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 $as_echo_n "(cached) " >&6
11231 fi
11232 ac_res=`eval 'as_val=${'$as_ac_Header'}
11233 $as_echo "$as_val"'`
11234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11235 $as_echo "$ac_res" >&6; }
11236 else
11237 # Is the header compilable?
11238 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239 $as_echo_n "checking $ac_header usability... " >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 $ac_includes_default
11247 #include <$ac_header>
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254 esac
11255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11256 $as_echo "$ac_try_echo") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.$ac_objext; then
11267 ac_header_compiler=yes
11268 else
11269 $as_echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11271
11272 ac_header_compiler=no
11273 fi
11274
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11277 $as_echo "$ac_header_compiler" >&6; }
11278
11279 # Is the header present?
11280 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11281 $as_echo_n "checking $ac_header presence... " >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <$ac_header>
11289 _ACEOF
11290 if { (ac_try="$ac_cpp conftest.$ac_ext"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294 esac
11295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11296 $as_echo "$ac_try_echo") >&5
11297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } >/dev/null && {
11304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 }; then
11307 ac_header_preproc=yes
11308 else
11309 $as_echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 ac_header_preproc=no
11313 fi
11314
11315 rm -f conftest.err conftest.$ac_ext
11316 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11317 $as_echo "$ac_header_preproc" >&6; }
11318
11319 # So? What about this header?
11320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11321 yes:no: )
11322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11323 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11325 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11326 ac_header_preproc=yes
11327 ;;
11328 no:yes:* )
11329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11330 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11334 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11336 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11340 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11341
11342 ;;
11343 esac
11344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11345 $as_echo_n "checking for $ac_header... " >&6; }
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 $as_echo_n "(cached) " >&6
11348 else
11349 eval "$as_ac_Header=\$ac_header_preproc"
11350 fi
11351 ac_res=`eval 'as_val=${'$as_ac_Header'}
11352 $as_echo "$as_val"'`
11353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11354 $as_echo "$ac_res" >&6; }
11355
11356 fi
11357 as_val=`eval 'as_val=${'$as_ac_Header'}
11358 $as_echo "$as_val"'`
11359 if test "x$as_val" = x""yes; then
11360 cat >>confdefs.h <<_ACEOF
11361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11362 _ACEOF
11363
11364 else
11365 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11366 $as_echo "$as_me: error: bailing out" >&2;}
11367 { (exit 1); exit 1; }; }
11368 fi
11369
11370 done
11371
11372
11373
11374
11375
11376
11377 for ac_func in dup2 getmntent memmove select socket
11378 do
11379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 $as_echo_n "checking for $ac_func... " >&6; }
11382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 $as_echo_n "(cached) " >&6
11384 else
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11394
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11399
11400 #ifdef __STDC__
11401 # include <limits.h>
11402 #else
11403 # include <assert.h>
11404 #endif
11405
11406 #undef $ac_func
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char $ac_func ();
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11419 choke me
11420 #endif
11421
11422 int
11423 main ()
11424 {
11425 return $ac_func ();
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11437 $as_echo "$ac_try_echo") >&5
11438 (eval "$ac_link") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext && {
11448 test "$cross_compiling" = yes ||
11449 $as_test_x conftest$ac_exeext
11450 }; then
11451 eval "$as_ac_var=yes"
11452 else
11453 $as_echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 eval "$as_ac_var=no"
11457 fi
11458
11459 rm -rf conftest.dSYM
11460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11461 conftest$ac_exeext conftest.$ac_ext
11462 fi
11463 ac_res=`eval 'as_val=${'$as_ac_var'}
11464 $as_echo "$as_val"'`
11465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11466 $as_echo "$ac_res" >&6; }
11467 as_val=`eval 'as_val=${'$as_ac_var'}
11468 $as_echo "$as_val"'`
11469 if test "x$as_val" = x""yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11472 _ACEOF
11473
11474 else
11475 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11476 $as_echo "$as_me: error: bailing out" >&2;}
11477 { (exit 1); exit 1; }; }
11478 fi
11479 done
11480
11481 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11482 # -lseq on Dynix/PTX, -lgen on Unixware.
11483 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11484 $as_echo_n "checking for library containing getmntent... " >&6; }
11485 if test "${ac_cv_search_getmntent+set}" = set; then
11486 $as_echo_n "(cached) " >&6
11487 else
11488 ac_func_search_save_LIBS=$LIBS
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char getmntent ();
11503 int
11504 main ()
11505 {
11506 return getmntent ();
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 for ac_lib in '' sun seq gen; do
11512 if test -z "$ac_lib"; then
11513 ac_res="none required"
11514 else
11515 ac_res=-l$ac_lib
11516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11517 fi
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (ac_try="$ac_link"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11525 $as_echo "$ac_try_echo") >&5
11526 (eval "$ac_link") 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11535 } && test -s conftest$ac_exeext && {
11536 test "$cross_compiling" = yes ||
11537 $as_test_x conftest$ac_exeext
11538 }; then
11539 ac_cv_search_getmntent=$ac_res
11540 else
11541 $as_echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544
11545 fi
11546
11547 rm -rf conftest.dSYM
11548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11549 conftest$ac_exeext
11550 if test "${ac_cv_search_getmntent+set}" = set; then
11551 break
11552 fi
11553 done
11554 if test "${ac_cv_search_getmntent+set}" = set; then
11555 :
11556 else
11557 ac_cv_search_getmntent=no
11558 fi
11559 rm conftest.$ac_ext
11560 LIBS=$ac_func_search_save_LIBS
11561 fi
11562 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11563 $as_echo "$ac_cv_search_getmntent" >&6; }
11564 ac_res=$ac_cv_search_getmntent
11565 if test "$ac_res" != no; then
11566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11567 ac_cv_func_getmntent=yes
11568
11569 cat >>confdefs.h <<\_ACEOF
11570 #define HAVE_GETMNTENT 1
11571 _ACEOF
11572
11573 else
11574 ac_cv_func_getmntent=no
11575 fi
11576
11577
11578 # AC_FUNC_REALLOC
11579
11580
11581 for ac_header in sys/select.h sys/socket.h
11582 do
11583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11586 $as_echo_n "checking for $ac_header... " >&6; }
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 $as_echo_n "(cached) " >&6
11589 fi
11590 ac_res=`eval 'as_val=${'$as_ac_Header'}
11591 $as_echo "$as_val"'`
11592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11593 $as_echo "$ac_res" >&6; }
11594 else
11595 # Is the header compilable?
11596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 $as_echo_n "checking $ac_header usability... " >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (ac_try="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612 esac
11613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614 $as_echo "$ac_try_echo") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest.$ac_objext; then
11625 ac_header_compiler=yes
11626 else
11627 $as_echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_header_compiler=no
11631 fi
11632
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635 $as_echo "$ac_header_compiler" >&6; }
11636
11637 # Is the header present?
11638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639 $as_echo_n "checking $ac_header presence... " >&6; }
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 #include <$ac_header>
11647 _ACEOF
11648 if { (ac_try="$ac_cpp conftest.$ac_ext"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11654 $as_echo "$ac_try_echo") >&5
11655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } >/dev/null && {
11662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 }; then
11665 ac_header_preproc=yes
11666 else
11667 $as_echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_header_preproc=no
11671 fi
11672
11673 rm -f conftest.err conftest.$ac_ext
11674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11675 $as_echo "$ac_header_preproc" >&6; }
11676
11677 # So? What about this header?
11678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 yes:no: )
11680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11684 ac_header_preproc=yes
11685 ;;
11686 no:yes:* )
11687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11699
11700 ;;
11701 esac
11702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11703 $as_echo_n "checking for $ac_header... " >&6; }
11704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11705 $as_echo_n "(cached) " >&6
11706 else
11707 eval "$as_ac_Header=\$ac_header_preproc"
11708 fi
11709 ac_res=`eval 'as_val=${'$as_ac_Header'}
11710 $as_echo "$as_val"'`
11711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11712 $as_echo "$ac_res" >&6; }
11713
11714 fi
11715 as_val=`eval 'as_val=${'$as_ac_Header'}
11716 $as_echo "$as_val"'`
11717 if test "x$as_val" = x""yes; then
11718 cat >>confdefs.h <<_ACEOF
11719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720 _ACEOF
11721
11722 fi
11723
11724 done
11725
11726 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11727 $as_echo_n "checking types of arguments for select... " >&6; }
11728 if test "${ac_cv_func_select_args+set}" = set; then
11729 $as_echo_n "(cached) " >&6
11730 else
11731 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11732 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11733 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 $ac_includes_default
11741 #ifdef HAVE_SYS_SELECT_H
11742 # include <sys/select.h>
11743 #endif
11744 #ifdef HAVE_SYS_SOCKET_H
11745 # include <sys/socket.h>
11746 #endif
11747
11748 int
11749 main ()
11750 {
11751 extern int select ($ac_arg1,
11752 $ac_arg234, $ac_arg234, $ac_arg234,
11753 $ac_arg5);
11754 ;
11755 return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763 esac
11764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11765 $as_echo "$ac_try_echo") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.$ac_objext; then
11776 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11777 else
11778 $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781
11782 fi
11783
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 done
11786 done
11787 done
11788 # Provide a safe default value.
11789 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11790
11791 fi
11792 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11793 $as_echo "$ac_cv_func_select_args" >&6; }
11794 ac_save_IFS=$IFS; IFS=','
11795 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11796 IFS=$ac_save_IFS
11797 shift
11798
11799 cat >>confdefs.h <<_ACEOF
11800 #define SELECT_TYPE_ARG1 $1
11801 _ACEOF
11802
11803
11804 cat >>confdefs.h <<_ACEOF
11805 #define SELECT_TYPE_ARG234 ($2)
11806 _ACEOF
11807
11808
11809 cat >>confdefs.h <<_ACEOF
11810 #define SELECT_TYPE_ARG5 ($3)
11811 _ACEOF
11812
11813 rm -f conftest*
11814
11815 fi
11816
11817 if test x$CLUSTER != xnone; then
11818
11819
11820 for ac_header in sys/socket.h sys/un.h
11821 do
11822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11825 $as_echo_n "checking for $ac_header... " >&6; }
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 $as_echo_n "(cached) " >&6
11828 fi
11829 ac_res=`eval 'as_val=${'$as_ac_Header'}
11830 $as_echo "$as_val"'`
11831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11832 $as_echo "$ac_res" >&6; }
11833 else
11834 # Is the header compilable?
11835 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11836 $as_echo_n "checking $ac_header usability... " >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 $ac_includes_default
11844 #include <$ac_header>
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (ac_try="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest.$ac_objext; then
11864 ac_header_compiler=yes
11865 else
11866 $as_echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 ac_header_compiler=no
11870 fi
11871
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11874 $as_echo "$ac_header_compiler" >&6; }
11875
11876 # Is the header present?
11877 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11878 $as_echo_n "checking $ac_header presence... " >&6; }
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 #include <$ac_header>
11886 _ACEOF
11887 if { (ac_try="$ac_cpp conftest.$ac_ext"
11888 case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891 esac
11892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11893 $as_echo "$ac_try_echo") >&5
11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null && {
11901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 }; then
11904 ac_header_preproc=yes
11905 else
11906 $as_echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 ac_header_preproc=no
11910 fi
11911
11912 rm -f conftest.err conftest.$ac_ext
11913 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914 $as_echo "$ac_header_preproc" >&6; }
11915
11916 # So? What about this header?
11917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 yes:no: )
11919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923 ac_header_preproc=yes
11924 ;;
11925 no:yes:* )
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11929 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938
11939 ;;
11940 esac
11941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 $as_echo_n "checking for $ac_header... " >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944 $as_echo_n "(cached) " >&6
11945 else
11946 eval "$as_ac_Header=\$ac_header_preproc"
11947 fi
11948 ac_res=`eval 'as_val=${'$as_ac_Header'}
11949 $as_echo "$as_val"'`
11950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11951 $as_echo "$ac_res" >&6; }
11952
11953 fi
11954 as_val=`eval 'as_val=${'$as_ac_Header'}
11955 $as_echo "$as_val"'`
11956 if test "x$as_val" = x""yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959 _ACEOF
11960
11961 else
11962 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11963 $as_echo "$as_me: error: bailing out" >&2;}
11964 { (exit 1); exit 1; }; }
11965 fi
11966
11967 done
11968
11969
11970 for ac_func in socket
11971 do
11972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 $as_echo_n "checking for $ac_func... " >&6; }
11975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11976 $as_echo_n "(cached) " >&6
11977 else
11978 cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h. */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11986 #define $ac_func innocuous_$ac_func
11987
11988 /* System header to define __stub macros and hopefully few prototypes,
11989 which can conflict with char $ac_func (); below.
11990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991 <limits.h> exists even on freestanding compilers. */
11992
11993 #ifdef __STDC__
11994 # include <limits.h>
11995 #else
11996 # include <assert.h>
11997 #endif
11998
11999 #undef $ac_func
12000
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 char $ac_func ();
12008 /* The GNU C library defines this for functions which it implements
12009 to always fail with ENOSYS. Some functions are actually named
12010 something starting with __ and the normal name is an alias. */
12011 #if defined __stub_$ac_func || defined __stub___$ac_func
12012 choke me
12013 #endif
12014
12015 int
12016 main ()
12017 {
12018 return $ac_func ();
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext conftest$ac_exeext
12024 if { (ac_try="$ac_link"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028 esac
12029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12030 $as_echo "$ac_try_echo") >&5
12031 (eval "$ac_link") 2>conftest.er1
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } && {
12038 test -z "$ac_c_werror_flag" ||
12039 test ! -s conftest.err
12040 } && test -s conftest$ac_exeext && {
12041 test "$cross_compiling" = yes ||
12042 $as_test_x conftest$ac_exeext
12043 }; then
12044 eval "$as_ac_var=yes"
12045 else
12046 $as_echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 eval "$as_ac_var=no"
12050 fi
12051
12052 rm -rf conftest.dSYM
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12055 fi
12056 ac_res=`eval 'as_val=${'$as_ac_var'}
12057 $as_echo "$as_val"'`
12058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12059 $as_echo "$ac_res" >&6; }
12060 as_val=`eval 'as_val=${'$as_ac_var'}
12061 $as_echo "$as_val"'`
12062 if test "x$as_val" = x""yes; then
12063 cat >>confdefs.h <<_ACEOF
12064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065 _ACEOF
12066
12067 else
12068 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12069 $as_echo "$as_me: error: bailing out" >&2;}
12070 { (exit 1); exit 1; }; }
12071 fi
12072 done
12073
12074 fi
12075
12076 if test x$HAVE_LIBDL = xyes; then
12077
12078 for ac_header in dlfcn.h
12079 do
12080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 $as_echo_n "checking for $ac_header... " >&6; }
12084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12085 $as_echo_n "(cached) " >&6
12086 fi
12087 ac_res=`eval 'as_val=${'$as_ac_Header'}
12088 $as_echo "$as_val"'`
12089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12090 $as_echo "$ac_res" >&6; }
12091 else
12092 # Is the header compilable?
12093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12094 $as_echo_n "checking $ac_header usability... " >&6; }
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 $ac_includes_default
12102 #include <$ac_header>
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (ac_try="$ac_compile"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12111 $as_echo "$ac_try_echo") >&5
12112 (eval "$ac_compile") 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } && {
12119 test -z "$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12121 } && test -s conftest.$ac_objext; then
12122 ac_header_compiler=yes
12123 else
12124 $as_echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_header_compiler=no
12128 fi
12129
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132 $as_echo "$ac_header_compiler" >&6; }
12133
12134 # Is the header present?
12135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136 $as_echo_n "checking $ac_header presence... " >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h. */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 #include <$ac_header>
12144 _ACEOF
12145 if { (ac_try="$ac_cpp conftest.$ac_ext"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149 esac
12150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12151 $as_echo "$ac_try_echo") >&5
12152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } >/dev/null && {
12159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 }; then
12162 ac_header_preproc=yes
12163 else
12164 $as_echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 ac_header_preproc=no
12168 fi
12169
12170 rm -f conftest.err conftest.$ac_ext
12171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12172 $as_echo "$ac_header_preproc" >&6; }
12173
12174 # So? What about this header?
12175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12176 yes:no: )
12177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12181 ac_header_preproc=yes
12182 ;;
12183 no:yes:* )
12184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12187 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12191 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12196
12197 ;;
12198 esac
12199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12200 $as_echo_n "checking for $ac_header... " >&6; }
12201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12202 $as_echo_n "(cached) " >&6
12203 else
12204 eval "$as_ac_Header=\$ac_header_preproc"
12205 fi
12206 ac_res=`eval 'as_val=${'$as_ac_Header'}
12207 $as_echo "$as_val"'`
12208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12209 $as_echo "$ac_res" >&6; }
12210
12211 fi
12212 as_val=`eval 'as_val=${'$as_ac_Header'}
12213 $as_echo "$as_val"'`
12214 if test "x$as_val" = x""yes; then
12215 cat >>confdefs.h <<_ACEOF
12216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12217 _ACEOF
12218
12219 else
12220 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12221 $as_echo "$as_me: error: bailing out" >&2;}
12222 { (exit 1); exit 1; }; }
12223 fi
12224
12225 done
12226
12227 fi
12228
12229 if test x$INTL = xyes; then
12230
12231 for ac_header in libintl.h
12232 do
12233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12236 $as_echo_n "checking for $ac_header... " >&6; }
12237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12238 $as_echo_n "(cached) " >&6
12239 fi
12240 ac_res=`eval 'as_val=${'$as_ac_Header'}
12241 $as_echo "$as_val"'`
12242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12243 $as_echo "$ac_res" >&6; }
12244 else
12245 # Is the header compilable?
12246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12247 $as_echo_n "checking $ac_header usability... " >&6; }
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 $ac_includes_default
12255 #include <$ac_header>
12256 _ACEOF
12257 rm -f conftest.$ac_objext
12258 if { (ac_try="$ac_compile"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262 esac
12263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12264 $as_echo "$ac_try_echo") >&5
12265 (eval "$ac_compile") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest.$ac_objext; then
12275 ac_header_compiler=yes
12276 else
12277 $as_echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280 ac_header_compiler=no
12281 fi
12282
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285 $as_echo "$ac_header_compiler" >&6; }
12286
12287 # Is the header present?
12288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12289 $as_echo_n "checking $ac_header presence... " >&6; }
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <$ac_header>
12297 _ACEOF
12298 if { (ac_try="$ac_cpp conftest.$ac_ext"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302 esac
12303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12304 $as_echo "$ac_try_echo") >&5
12305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } >/dev/null && {
12312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 }; then
12315 ac_header_preproc=yes
12316 else
12317 $as_echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_header_preproc=no
12321 fi
12322
12323 rm -f conftest.err conftest.$ac_ext
12324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12325 $as_echo "$ac_header_preproc" >&6; }
12326
12327 # So? What about this header?
12328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12329 yes:no: )
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12334 ac_header_preproc=yes
12335 ;;
12336 no:yes:* )
12337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12340 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12344 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12349
12350 ;;
12351 esac
12352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12353 $as_echo_n "checking for $ac_header... " >&6; }
12354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355 $as_echo_n "(cached) " >&6
12356 else
12357 eval "$as_ac_Header=\$ac_header_preproc"
12358 fi
12359 ac_res=`eval 'as_val=${'$as_ac_Header'}
12360 $as_echo "$as_val"'`
12361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12362 $as_echo "$ac_res" >&6; }
12363
12364 fi
12365 as_val=`eval 'as_val=${'$as_ac_Header'}
12366 $as_echo "$as_val"'`
12367 if test "x$as_val" = x""yes; then
12368 cat >>confdefs.h <<_ACEOF
12369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12370 _ACEOF
12371
12372 else
12373 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12374 $as_echo "$as_me: error: bailing out" >&2;}
12375 { (exit 1); exit 1; }; }
12376 fi
12377
12378 done
12379
12380 fi
12381
12382 if test x$HAVE_SELINUX = xyes; then
12383
12384 for ac_header in selinux/selinux.h
12385 do
12386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12389 $as_echo_n "checking for $ac_header... " >&6; }
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 $as_echo_n "(cached) " >&6
12392 fi
12393 ac_res=`eval 'as_val=${'$as_ac_Header'}
12394 $as_echo "$as_val"'`
12395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12396 $as_echo "$ac_res" >&6; }
12397 else
12398 # Is the header compilable?
12399 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12400 $as_echo_n "checking $ac_header usability... " >&6; }
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 $ac_includes_default
12408 #include <$ac_header>
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12417 $as_echo "$ac_try_echo") >&5
12418 (eval "$ac_compile") 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest.$ac_objext; then
12428 ac_header_compiler=yes
12429 else
12430 $as_echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 ac_header_compiler=no
12434 fi
12435
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12438 $as_echo "$ac_header_compiler" >&6; }
12439
12440 # Is the header present?
12441 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12442 $as_echo_n "checking $ac_header presence... " >&6; }
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h. */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <$ac_header>
12450 _ACEOF
12451 if { (ac_try="$ac_cpp conftest.$ac_ext"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12457 $as_echo "$ac_try_echo") >&5
12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 }; then
12468 ac_header_preproc=yes
12469 else
12470 $as_echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_header_preproc=no
12474 fi
12475
12476 rm -f conftest.err conftest.$ac_ext
12477 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478 $as_echo "$ac_header_preproc" >&6; }
12479
12480 # So? What about this header?
12481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12482 yes:no: )
12483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12484 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12486 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc=yes
12488 ;;
12489 no:yes:* )
12490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12495 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12497 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12501 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12502
12503 ;;
12504 esac
12505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12506 $as_echo_n "checking for $ac_header... " >&6; }
12507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12508 $as_echo_n "(cached) " >&6
12509 else
12510 eval "$as_ac_Header=\$ac_header_preproc"
12511 fi
12512 ac_res=`eval 'as_val=${'$as_ac_Header'}
12513 $as_echo "$as_val"'`
12514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12515 $as_echo "$ac_res" >&6; }
12516
12517 fi
12518 as_val=`eval 'as_val=${'$as_ac_Header'}
12519 $as_echo "$as_val"'`
12520 if test "x$as_val" = x""yes; then
12521 cat >>confdefs.h <<_ACEOF
12522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12523 _ACEOF
12524
12525 else
12526 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12527 $as_echo "$as_me: error: bailing out" >&2;}
12528 { (exit 1); exit 1; }; }
12529 fi
12530
12531 done
12532
12533 fi
12534
12535 if test x$UDEV_SYNC = xyes; then
12536
12537
12538 for ac_header in sys/ipc.h sys/sem.h
12539 do
12540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12543 $as_echo_n "checking for $ac_header... " >&6; }
12544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12545 $as_echo_n "(cached) " >&6
12546 fi
12547 ac_res=`eval 'as_val=${'$as_ac_Header'}
12548 $as_echo "$as_val"'`
12549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12550 $as_echo "$ac_res" >&6; }
12551 else
12552 # Is the header compilable?
12553 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12554 $as_echo_n "checking $ac_header usability... " >&6; }
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 $ac_includes_default
12562 #include <$ac_header>
12563 _ACEOF
12564 rm -f conftest.$ac_objext
12565 if { (ac_try="$ac_compile"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569 esac
12570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12571 $as_echo "$ac_try_echo") >&5
12572 (eval "$ac_compile") 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } && {
12579 test -z "$ac_c_werror_flag" ||
12580 test ! -s conftest.err
12581 } && test -s conftest.$ac_objext; then
12582 ac_header_compiler=yes
12583 else
12584 $as_echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587 ac_header_compiler=no
12588 fi
12589
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12592 $as_echo "$ac_header_compiler" >&6; }
12593
12594 # Is the header present?
12595 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12596 $as_echo_n "checking $ac_header presence... " >&6; }
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 #include <$ac_header>
12604 _ACEOF
12605 if { (ac_try="$ac_cpp conftest.$ac_ext"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12611 $as_echo "$ac_try_echo") >&5
12612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } >/dev/null && {
12619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12620 test ! -s conftest.err
12621 }; then
12622 ac_header_preproc=yes
12623 else
12624 $as_echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 ac_header_preproc=no
12628 fi
12629
12630 rm -f conftest.err conftest.$ac_ext
12631 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12632 $as_echo "$ac_header_preproc" >&6; }
12633
12634 # So? What about this header?
12635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12636 yes:no: )
12637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12638 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12640 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12641 ac_header_preproc=yes
12642 ;;
12643 no:yes:* )
12644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12645 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12647 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12649 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12651 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12653 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12655 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12656
12657 ;;
12658 esac
12659 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12660 $as_echo_n "checking for $ac_header... " >&6; }
12661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12662 $as_echo_n "(cached) " >&6
12663 else
12664 eval "$as_ac_Header=\$ac_header_preproc"
12665 fi
12666 ac_res=`eval 'as_val=${'$as_ac_Header'}
12667 $as_echo "$as_val"'`
12668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12669 $as_echo "$ac_res" >&6; }
12670
12671 fi
12672 as_val=`eval 'as_val=${'$as_ac_Header'}
12673 $as_echo "$as_val"'`
12674 if test "x$as_val" = x""yes; then
12675 cat >>confdefs.h <<_ACEOF
12676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12677 _ACEOF
12678
12679 else
12680 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12681 $as_echo "$as_me: error: bailing out" >&2;}
12682 { (exit 1); exit 1; }; }
12683 fi
12684
12685 done
12686
12687 fi
12688
12689 ################################################################################
12690 # Extract the first word of "modprobe", so it can be a program name with args.
12691 set dummy modprobe; ac_word=$2
12692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
12695 $as_echo_n "(cached) " >&6
12696 else
12697 case $MODPROBE_CMD in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12700 ;;
12701 *)
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12704 do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12709 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713 done
12714 done
12715 IFS=$as_save_IFS
12716
12717 ;;
12718 esac
12719 fi
12720 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
12721 if test -n "$MODPROBE_CMD"; then
12722 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12723 $as_echo "$MODPROBE_CMD" >&6; }
12724 else
12725 { $as_echo "$as_me:$LINENO: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728
12729
12730
12731 if test x$MODPROBE_CMD != x; then
12732
12733 cat >>confdefs.h <<_ACEOF
12734 #define MODPROBE_CMD "$MODPROBE_CMD"
12735 _ACEOF
12736
12737 fi
12738
12739 ################################################################################
12740
12741
12742 if test "$BUILD_DMEVENTD" = yes; then
12743
12744 # Check whether --with-dmeventd-pidfile was given.
12745 if test "${with_dmeventd_pidfile+set}" = set; then
12746 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12747 #define DMEVENTD_PIDFILE "$withval"
12748 _ACEOF
12749
12750 else
12751 cat >>confdefs.h <<_ACEOF
12752 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12753 _ACEOF
12754
12755 fi
12756
12757 fi
12758
12759
12760
12761 if test "$BUILD_DMEVENTD" = yes; then
12762 dmeventd_prefix="$exec_prefix"
12763 if test "x$dmeventd_prefix" = "xNONE"; then
12764 dmeventd_prefix="$prefix"
12765 fi
12766 if test "x$dmeventd_prefix" = "xNONE"; then
12767 dmeventd_prefix=""
12768 fi
12769
12770 # Check whether --with-dmeventd-path was given.
12771 if test "${with_dmeventd_path+set}" = set; then
12772 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12773 #define DMEVENTD_PATH "$withval"
12774 _ACEOF
12775
12776 else
12777 cat >>confdefs.h <<_ACEOF
12778 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12779 _ACEOF
12780
12781 fi
12782
12783 fi
12784
12785 ################################################################################
12786 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12787 $as_echo_n "checking for kernel interface choice... " >&6; }
12788
12789 # Check whether --with-interface was given.
12790 if test "${with_interface+set}" = set; then
12791 withval=$with_interface; interface="$withval"
12792 else
12793 interface=ioctl
12794 fi
12795
12796 if [ "x$interface" != xioctl ];
12797 then
12798 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12799 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
12800 { (exit 1); exit 1; }; }
12801 fi
12802 { $as_echo "$as_me:$LINENO: result: $interface" >&5
12803 $as_echo "$interface" >&6; }
12804
12805 ################################################################################
12806 DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
12807
12808 cat >>confdefs.h <<_ACEOF
12809 #define DM_LIB_VERSION $DM_LIB_VERSION
12810 _ACEOF
12811
12812
12813 DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
12814
12815 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
12816
12817 VER=`cat VERSION`
12818 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
12819 VER=`echo "$VER" | $AWK '{print $1}'`
12820 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12821 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12822 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12823 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12824 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
12825 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
12826
12827 ################################################################################
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898 ################################################################################
12899 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/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
12900
12901 cat >confcache <<\_ACEOF
12902 # This file is a shell script that caches the results of configure
12903 # tests run on this system so they can be shared between configure
12904 # scripts and configure runs, see configure's option --config-cache.
12905 # It is not useful on other systems. If it contains results you don't
12906 # want to keep, you may remove or edit it.
12907 #
12908 # config.status only pays attention to the cache file if you give it
12909 # the --recheck option to rerun configure.
12910 #
12911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12913 # following values.
12914
12915 _ACEOF
12916
12917 # The following way of writing the cache mishandles newlines in values,
12918 # but we know of no workaround that is simple, portable, and efficient.
12919 # So, we kill variables containing newlines.
12920 # Ultrix sh set writes to stderr and can't be redirected directly,
12921 # and sets the high bit in the cache file unless we assign to the vars.
12922 (
12923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12924 eval ac_val=\$$ac_var
12925 case $ac_val in #(
12926 *${as_nl}*)
12927 case $ac_var in #(
12928 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12930 esac
12931 case $ac_var in #(
12932 _ | IFS | as_nl) ;; #(
12933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12934 *) $as_unset $ac_var ;;
12935 esac ;;
12936 esac
12937 done
12938
12939 (set) 2>&1 |
12940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12941 *${as_nl}ac_space=\ *)
12942 # `set' does not quote correctly, so add quotes (double-quote
12943 # substitution turns \\\\ into \\, and sed turns \\ into \).
12944 sed -n \
12945 "s/'/'\\\\''/g;
12946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12947 ;; #(
12948 *)
12949 # `set' quotes correctly as required by POSIX, so do not add quotes.
12950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12951 ;;
12952 esac |
12953 sort
12954 ) |
12955 sed '
12956 /^ac_cv_env_/b end
12957 t clear
12958 :clear
12959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12960 t end
12961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12962 :end' >>confcache
12963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12964 if test -w "$cache_file"; then
12965 test "x$cache_file" != "x/dev/null" &&
12966 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12967 $as_echo "$as_me: updating cache $cache_file" >&6;}
12968 cat confcache >$cache_file
12969 else
12970 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12971 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12972 fi
12973 fi
12974 rm -f confcache
12975
12976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12977 # Let make expand exec_prefix.
12978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12979
12980 DEFS=-DHAVE_CONFIG_H
12981
12982 ac_libobjs=
12983 ac_ltlibobjs=
12984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12985 # 1. Remove the extension, and $U if already installed.
12986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12989 # will be set to the directory where LIBOBJS objects are built.
12990 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12991 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12992 done
12993 LIBOBJS=$ac_libobjs
12994
12995 LTLIBOBJS=$ac_ltlibobjs
12996
12997
12998
12999 : ${CONFIG_STATUS=./config.status}
13000 ac_write_fail=0
13001 ac_clean_files_save=$ac_clean_files
13002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13003 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13005 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13006 #! $SHELL
13007 # Generated by $as_me.
13008 # Run this file to recreate the current configuration.
13009 # Compiler output produced by configure, useful for debugging
13010 # configure, is in config.log if it exists.
13011
13012 debug=false
13013 ac_cs_recheck=false
13014 ac_cs_silent=false
13015 SHELL=\${CONFIG_SHELL-$SHELL}
13016 _ACEOF
13017
13018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13019 ## --------------------- ##
13020 ## M4sh Initialization. ##
13021 ## --------------------- ##
13022
13023 # Be more Bourne compatible
13024 DUALCASE=1; export DUALCASE # for MKS sh
13025 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13026 emulate sh
13027 NULLCMD=:
13028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13029 # is contrary to our usage. Disable this feature.
13030 alias -g '${1+"$@"}'='"$@"'
13031 setopt NO_GLOB_SUBST
13032 else
13033 case `(set -o) 2>/dev/null` in
13034 *posix*) set -o posix ;;
13035 esac
13036
13037 fi
13038
13039
13040
13041
13042 # PATH needs CR
13043 # Avoid depending upon Character Ranges.
13044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13047 as_cr_digits='0123456789'
13048 as_cr_alnum=$as_cr_Letters$as_cr_digits
13049
13050 as_nl='
13051 '
13052 export as_nl
13053 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13054 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13055 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13057 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13058 as_echo='printf %s\n'
13059 as_echo_n='printf %s'
13060 else
13061 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13062 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13063 as_echo_n='/usr/ucb/echo -n'
13064 else
13065 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13066 as_echo_n_body='eval
13067 arg=$1;
13068 case $arg in
13069 *"$as_nl"*)
13070 expr "X$arg" : "X\\(.*\\)$as_nl";
13071 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13072 esac;
13073 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13074 '
13075 export as_echo_n_body
13076 as_echo_n='sh -c $as_echo_n_body as_echo'
13077 fi
13078 export as_echo_body
13079 as_echo='sh -c $as_echo_body as_echo'
13080 fi
13081
13082 # The user is always right.
13083 if test "${PATH_SEPARATOR+set}" != set; then
13084 PATH_SEPARATOR=:
13085 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13086 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13087 PATH_SEPARATOR=';'
13088 }
13089 fi
13090
13091 # Support unset when possible.
13092 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13093 as_unset=unset
13094 else
13095 as_unset=false
13096 fi
13097
13098
13099 # IFS
13100 # We need space, tab and new line, in precisely that order. Quoting is
13101 # there to prevent editors from complaining about space-tab.
13102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13103 # splitting by setting IFS to empty value.)
13104 IFS=" "" $as_nl"
13105
13106 # Find who we are. Look in the path if we contain no directory separator.
13107 case $0 in
13108 *[\\/]* ) as_myself=$0 ;;
13109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13111 do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13115 done
13116 IFS=$as_save_IFS
13117
13118 ;;
13119 esac
13120 # We did not find ourselves, most probably we were run as `sh COMMAND'
13121 # in which case we are not to be found in the path.
13122 if test "x$as_myself" = x; then
13123 as_myself=$0
13124 fi
13125 if test ! -f "$as_myself"; then
13126 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13127 { (exit 1); exit 1; }
13128 fi
13129
13130 # Work around bugs in pre-3.0 UWIN ksh.
13131 for as_var in ENV MAIL MAILPATH
13132 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13133 done
13134 PS1='$ '
13135 PS2='> '
13136 PS4='+ '
13137
13138 # NLS nuisances.
13139 LC_ALL=C
13140 export LC_ALL
13141 LANGUAGE=C
13142 export LANGUAGE
13143
13144 # Required to use basename.
13145 if expr a : '\(a\)' >/dev/null 2>&1 &&
13146 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13147 as_expr=expr
13148 else
13149 as_expr=false
13150 fi
13151
13152 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13153 as_basename=basename
13154 else
13155 as_basename=false
13156 fi
13157
13158
13159 # Name of the executable.
13160 as_me=`$as_basename -- "$0" ||
13161 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13162 X"$0" : 'X\(//\)$' \| \
13163 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13164 $as_echo X/"$0" |
13165 sed '/^.*\/\([^/][^/]*\)\/*$/{
13166 s//\1/
13167 q
13168 }
13169 /^X\/\(\/\/\)$/{
13170 s//\1/
13171 q
13172 }
13173 /^X\/\(\/\).*/{
13174 s//\1/
13175 q
13176 }
13177 s/.*/./; q'`
13178
13179 # CDPATH.
13180 $as_unset CDPATH
13181
13182
13183
13184 as_lineno_1=$LINENO
13185 as_lineno_2=$LINENO
13186 test "x$as_lineno_1" != "x$as_lineno_2" &&
13187 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13188
13189 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13190 # uniformly replaced by the line number. The first 'sed' inserts a
13191 # line-number line after each line using $LINENO; the second 'sed'
13192 # does the real work. The second script uses 'N' to pair each
13193 # line-number line with the line containing $LINENO, and appends
13194 # trailing '-' during substitution so that $LINENO is not a special
13195 # case at line end.
13196 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13197 # scripts with optimization help from Paolo Bonzini. Blame Lee
13198 # E. McMahon (1931-1989) for sed's syntax. :-)
13199 sed -n '
13200 p
13201 /[$]LINENO/=
13202 ' <$as_myself |
13203 sed '
13204 s/[$]LINENO.*/&-/
13205 t lineno
13206 b
13207 :lineno
13208 N
13209 :loop
13210 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13211 t loop
13212 s/-\n.*//
13213 ' >$as_me.lineno &&
13214 chmod +x "$as_me.lineno" ||
13215 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13216 { (exit 1); exit 1; }; }
13217
13218 # Don't try to exec as it changes $[0], causing all sort of problems
13219 # (the dirname of $[0] is not the place where we might find the
13220 # original and so on. Autoconf is especially sensitive to this).
13221 . "./$as_me.lineno"
13222 # Exit status is that of the last command.
13223 exit
13224 }
13225
13226
13227 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13228 as_dirname=dirname
13229 else
13230 as_dirname=false
13231 fi
13232
13233 ECHO_C= ECHO_N= ECHO_T=
13234 case `echo -n x` in
13235 -n*)
13236 case `echo 'x\c'` in
13237 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13238 *) ECHO_C='\c';;
13239 esac;;
13240 *)
13241 ECHO_N='-n';;
13242 esac
13243 if expr a : '\(a\)' >/dev/null 2>&1 &&
13244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13245 as_expr=expr
13246 else
13247 as_expr=false
13248 fi
13249
13250 rm -f conf$$ conf$$.exe conf$$.file
13251 if test -d conf$$.dir; then
13252 rm -f conf$$.dir/conf$$.file
13253 else
13254 rm -f conf$$.dir
13255 mkdir conf$$.dir 2>/dev/null
13256 fi
13257 if (echo >conf$$.file) 2>/dev/null; then
13258 if ln -s conf$$.file conf$$ 2>/dev/null; then
13259 as_ln_s='ln -s'
13260 # ... but there are two gotchas:
13261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13263 # In both cases, we have to default to `cp -p'.
13264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13265 as_ln_s='cp -p'
13266 elif ln conf$$.file conf$$ 2>/dev/null; then
13267 as_ln_s=ln
13268 else
13269 as_ln_s='cp -p'
13270 fi
13271 else
13272 as_ln_s='cp -p'
13273 fi
13274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13275 rmdir conf$$.dir 2>/dev/null
13276
13277 if mkdir -p . 2>/dev/null; then
13278 as_mkdir_p=:
13279 else
13280 test -d ./-p && rmdir ./-p
13281 as_mkdir_p=false
13282 fi
13283
13284 if test -x / >/dev/null 2>&1; then
13285 as_test_x='test -x'
13286 else
13287 if ls -dL / >/dev/null 2>&1; then
13288 as_ls_L_option=L
13289 else
13290 as_ls_L_option=
13291 fi
13292 as_test_x='
13293 eval sh -c '\''
13294 if test -d "$1"; then
13295 test -d "$1/.";
13296 else
13297 case $1 in
13298 -*)set "./$1";;
13299 esac;
13300 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13301 ???[sx]*):;;*)false;;esac;fi
13302 '\'' sh
13303 '
13304 fi
13305 as_executable_p=$as_test_x
13306
13307 # Sed expression to map a string onto a valid CPP name.
13308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13309
13310 # Sed expression to map a string onto a valid variable name.
13311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13312
13313
13314 exec 6>&1
13315
13316 # Save the log message, to keep $[0] and so on meaningful, and to
13317 # report actual input values of CONFIG_FILES etc. instead of their
13318 # values after options handling.
13319 ac_log="
13320 This file was extended by $as_me, which was
13321 generated by GNU Autoconf 2.63. Invocation command line was
13322
13323 CONFIG_FILES = $CONFIG_FILES
13324 CONFIG_HEADERS = $CONFIG_HEADERS
13325 CONFIG_LINKS = $CONFIG_LINKS
13326 CONFIG_COMMANDS = $CONFIG_COMMANDS
13327 $ $0 $@
13328
13329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13330 "
13331
13332 _ACEOF
13333
13334 case $ac_config_files in *"
13335 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13336 esac
13337
13338 case $ac_config_headers in *"
13339 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13340 esac
13341
13342
13343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13344 # Files that config.status was made for.
13345 config_files="$ac_config_files"
13346 config_headers="$ac_config_headers"
13347
13348 _ACEOF
13349
13350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13351 ac_cs_usage="\
13352 \`$as_me' instantiates files from templates according to the
13353 current configuration.
13354
13355 Usage: $0 [OPTION]... [FILE]...
13356
13357 -h, --help print this help, then exit
13358 -V, --version print version number and configuration settings, then exit
13359 -q, --quiet, --silent
13360 do not print progress messages
13361 -d, --debug don't remove temporary files
13362 --recheck update $as_me by reconfiguring in the same conditions
13363 --file=FILE[:TEMPLATE]
13364 instantiate the configuration file FILE
13365 --header=FILE[:TEMPLATE]
13366 instantiate the configuration header FILE
13367
13368 Configuration files:
13369 $config_files
13370
13371 Configuration headers:
13372 $config_headers
13373
13374 Report bugs to <bug-autoconf@gnu.org>."
13375
13376 _ACEOF
13377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13378 ac_cs_version="\\
13379 config.status
13380 configured by $0, generated by GNU Autoconf 2.63,
13381 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13382
13383 Copyright (C) 2008 Free Software Foundation, Inc.
13384 This config.status script is free software; the Free Software Foundation
13385 gives unlimited permission to copy, distribute and modify it."
13386
13387 ac_pwd='$ac_pwd'
13388 srcdir='$srcdir'
13389 INSTALL='$INSTALL'
13390 MKDIR_P='$MKDIR_P'
13391 AWK='$AWK'
13392 test -n "\$AWK" || AWK=awk
13393 _ACEOF
13394
13395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13396 # The default lists apply if the user does not specify any file.
13397 ac_need_defaults=:
13398 while test $# != 0
13399 do
13400 case $1 in
13401 --*=*)
13402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13404 ac_shift=:
13405 ;;
13406 *)
13407 ac_option=$1
13408 ac_optarg=$2
13409 ac_shift=shift
13410 ;;
13411 esac
13412
13413 case $ac_option in
13414 # Handling of the options.
13415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13416 ac_cs_recheck=: ;;
13417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13418 $as_echo "$ac_cs_version"; exit ;;
13419 --debug | --debu | --deb | --de | --d | -d )
13420 debug=: ;;
13421 --file | --fil | --fi | --f )
13422 $ac_shift
13423 case $ac_optarg in
13424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13425 esac
13426 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13427 ac_need_defaults=false;;
13428 --header | --heade | --head | --hea )
13429 $ac_shift
13430 case $ac_optarg in
13431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13432 esac
13433 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13434 ac_need_defaults=false;;
13435 --he | --h)
13436 # Conflict between --help and --header
13437 { $as_echo "$as_me: error: ambiguous option: $1
13438 Try \`$0 --help' for more information." >&2
13439 { (exit 1); exit 1; }; };;
13440 --help | --hel | -h )
13441 $as_echo "$ac_cs_usage"; exit ;;
13442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13444 ac_cs_silent=: ;;
13445
13446 # This is an error.
13447 -*) { $as_echo "$as_me: error: unrecognized option: $1
13448 Try \`$0 --help' for more information." >&2
13449 { (exit 1); exit 1; }; } ;;
13450
13451 *) ac_config_targets="$ac_config_targets $1"
13452 ac_need_defaults=false ;;
13453
13454 esac
13455 shift
13456 done
13457
13458 ac_configure_extra_args=
13459
13460 if $ac_cs_silent; then
13461 exec 6>/dev/null
13462 ac_configure_extra_args="$ac_configure_extra_args --silent"
13463 fi
13464
13465 _ACEOF
13466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13467 if \$ac_cs_recheck; then
13468 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13469 shift
13470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13471 CONFIG_SHELL='$SHELL'
13472 export CONFIG_SHELL
13473 exec "\$@"
13474 fi
13475
13476 _ACEOF
13477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13478 exec 5>>config.log
13479 {
13480 echo
13481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13482 ## Running $as_me. ##
13483 _ASBOX
13484 $as_echo "$ac_log"
13485 } >&5
13486
13487 _ACEOF
13488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489 _ACEOF
13490
13491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13492
13493 # Handling of arguments.
13494 for ac_config_target in $ac_config_targets
13495 do
13496 case $ac_config_target in
13497 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13499 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13500 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13501 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
13502 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13503 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
13504 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
13505 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13506 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
13507 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13508 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13509 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13510 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13511 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13512 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13513 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
13514 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
13515 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
13516 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13517 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
13518 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
13519 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
13520 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13521 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
13522 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
13523 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
13524 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13525 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
13526 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13527 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
13528
13529 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13530 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13531 { (exit 1); exit 1; }; };;
13532 esac
13533 done
13534
13535
13536 # If the user did not use the arguments to specify the items to instantiate,
13537 # then the envvar interface is used. Set only those that are not.
13538 # We use the long form for the default assignment because of an extremely
13539 # bizarre bug on SunOS 4.1.3.
13540 if $ac_need_defaults; then
13541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13543 fi
13544
13545 # Have a temporary directory for convenience. Make it in the build tree
13546 # simply because there is no reason against having it here, and in addition,
13547 # creating and moving files from /tmp can sometimes cause problems.
13548 # Hook for its removal unless debugging.
13549 # Note that there is a small window in which the directory will not be cleaned:
13550 # after its creation but before its name has been assigned to `$tmp'.
13551 $debug ||
13552 {
13553 tmp=
13554 trap 'exit_status=$?
13555 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13556 ' 0
13557 trap '{ (exit 1); exit 1; }' 1 2 13 15
13558 }
13559 # Create a (secure) tmp directory for tmp files.
13560
13561 {
13562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13563 test -n "$tmp" && test -d "$tmp"
13564 } ||
13565 {
13566 tmp=./conf$$-$RANDOM
13567 (umask 077 && mkdir "$tmp")
13568 } ||
13569 {
13570 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13571 { (exit 1); exit 1; }
13572 }
13573
13574 # Set up the scripts for CONFIG_FILES section.
13575 # No need to generate them if there are no CONFIG_FILES.
13576 # This happens for instance with `./config.status config.h'.
13577 if test -n "$CONFIG_FILES"; then
13578
13579
13580 ac_cr=' '
13581 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13582 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13583 ac_cs_awk_cr='\\r'
13584 else
13585 ac_cs_awk_cr=$ac_cr
13586 fi
13587
13588 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13589 _ACEOF
13590
13591
13592 {
13593 echo "cat >conf$$subs.awk <<_ACEOF" &&
13594 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13595 echo "_ACEOF"
13596 } >conf$$subs.sh ||
13597 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13598 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13599 { (exit 1); exit 1; }; }
13600 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13601 ac_delim='%!_!# '
13602 for ac_last_try in false false false false false :; do
13603 . ./conf$$subs.sh ||
13604 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13605 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13606 { (exit 1); exit 1; }; }
13607
13608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13609 if test $ac_delim_n = $ac_delim_num; then
13610 break
13611 elif $ac_last_try; then
13612 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13613 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13614 { (exit 1); exit 1; }; }
13615 else
13616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13617 fi
13618 done
13619 rm -f conf$$subs.sh
13620
13621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13622 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13623 _ACEOF
13624 sed -n '
13625 h
13626 s/^/S["/; s/!.*/"]=/
13627 p
13628 g
13629 s/^[^!]*!//
13630 :repl
13631 t repl
13632 s/'"$ac_delim"'$//
13633 t delim
13634 :nl
13635 h
13636 s/\(.\{148\}\).*/\1/
13637 t more1
13638 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13639 p
13640 n
13641 b repl
13642 :more1
13643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13644 p
13645 g
13646 s/.\{148\}//
13647 t nl
13648 :delim
13649 h
13650 s/\(.\{148\}\).*/\1/
13651 t more2
13652 s/["\\]/\\&/g; s/^/"/; s/$/"/
13653 p
13654 b
13655 :more2
13656 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13657 p
13658 g
13659 s/.\{148\}//
13660 t delim
13661 ' <conf$$subs.awk | sed '
13662 /^[^""]/{
13663 N
13664 s/\n//
13665 }
13666 ' >>$CONFIG_STATUS || ac_write_fail=1
13667 rm -f conf$$subs.awk
13668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13669 _ACAWK
13670 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13671 for (key in S) S_is_set[key] = 1
13672 FS = "\a"
13673
13674 }
13675 {
13676 line = $ 0
13677 nfields = split(line, field, "@")
13678 substed = 0
13679 len = length(field[1])
13680 for (i = 2; i < nfields; i++) {
13681 key = field[i]
13682 keylen = length(key)
13683 if (S_is_set[key]) {
13684 value = S[key]
13685 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13686 len += length(value) + length(field[++i])
13687 substed = 1
13688 } else
13689 len += 1 + keylen
13690 }
13691
13692 print line
13693 }
13694
13695 _ACAWK
13696 _ACEOF
13697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13698 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13699 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13700 else
13701 cat
13702 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13703 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13704 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13705 { (exit 1); exit 1; }; }
13706 _ACEOF
13707
13708 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13709 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13710 # trailing colons and then remove the whole line if VPATH becomes empty
13711 # (actually we leave an empty line to preserve line numbers).
13712 if test "x$srcdir" = x.; then
13713 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13714 s/:*\$(srcdir):*/:/
13715 s/:*\${srcdir}:*/:/
13716 s/:*@srcdir@:*/:/
13717 s/^\([^=]*=[ ]*\):*/\1/
13718 s/:*$//
13719 s/^[^=]*=[ ]*$//
13720 }'
13721 fi
13722
13723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13724 fi # test -n "$CONFIG_FILES"
13725
13726 # Set up the scripts for CONFIG_HEADERS section.
13727 # No need to generate them if there are no CONFIG_HEADERS.
13728 # This happens for instance with `./config.status Makefile'.
13729 if test -n "$CONFIG_HEADERS"; then
13730 cat >"$tmp/defines.awk" <<\_ACAWK ||
13731 BEGIN {
13732 _ACEOF
13733
13734 # Transform confdefs.h into an awk script `defines.awk', embedded as
13735 # here-document in config.status, that substitutes the proper values into
13736 # config.h.in to produce config.h.
13737
13738 # Create a delimiter string that does not exist in confdefs.h, to ease
13739 # handling of long lines.
13740 ac_delim='%!_!# '
13741 for ac_last_try in false false :; do
13742 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13743 if test -z "$ac_t"; then
13744 break
13745 elif $ac_last_try; then
13746 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13747 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13748 { (exit 1); exit 1; }; }
13749 else
13750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13751 fi
13752 done
13753
13754 # For the awk script, D is an array of macro values keyed by name,
13755 # likewise P contains macro parameters if any. Preserve backslash
13756 # newline sequences.
13757
13758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13759 sed -n '
13760 s/.\{148\}/&'"$ac_delim"'/g
13761 t rset
13762 :rset
13763 s/^[ ]*#[ ]*define[ ][ ]*/ /
13764 t def
13765 d
13766 :def
13767 s/\\$//
13768 t bsnl
13769 s/["\\]/\\&/g
13770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13771 D["\1"]=" \3"/p
13772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13773 d
13774 :bsnl
13775 s/["\\]/\\&/g
13776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13777 D["\1"]=" \3\\\\\\n"\\/p
13778 t cont
13779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13780 t cont
13781 d
13782 :cont
13783 n
13784 s/.\{148\}/&'"$ac_delim"'/g
13785 t clear
13786 :clear
13787 s/\\$//
13788 t bsnlc
13789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13790 d
13791 :bsnlc
13792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13793 b cont
13794 ' <confdefs.h | sed '
13795 s/'"$ac_delim"'/"\\\
13796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13797
13798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13799 for (key in D) D_is_set[key] = 1
13800 FS = "\a"
13801 }
13802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13803 line = \$ 0
13804 split(line, arg, " ")
13805 if (arg[1] == "#") {
13806 defundef = arg[2]
13807 mac1 = arg[3]
13808 } else {
13809 defundef = substr(arg[1], 2)
13810 mac1 = arg[2]
13811 }
13812 split(mac1, mac2, "(") #)
13813 macro = mac2[1]
13814 prefix = substr(line, 1, index(line, defundef) - 1)
13815 if (D_is_set[macro]) {
13816 # Preserve the white space surrounding the "#".
13817 print prefix "define", macro P[macro] D[macro]
13818 next
13819 } else {
13820 # Replace #undef with comments. This is necessary, for example,
13821 # in the case of _POSIX_SOURCE, which is predefined and required
13822 # on some systems where configure will not decide to define it.
13823 if (defundef == "undef") {
13824 print "/*", prefix defundef, macro, "*/"
13825 next
13826 }
13827 }
13828 }
13829 { print }
13830 _ACAWK
13831 _ACEOF
13832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13833 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13834 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13835 { (exit 1); exit 1; }; }
13836 fi # test -n "$CONFIG_HEADERS"
13837
13838
13839 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13840 shift
13841 for ac_tag
13842 do
13843 case $ac_tag in
13844 :[FHLC]) ac_mode=$ac_tag; continue;;
13845 esac
13846 case $ac_mode$ac_tag in
13847 :[FHL]*:*);;
13848 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13849 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13850 { (exit 1); exit 1; }; };;
13851 :[FH]-) ac_tag=-:-;;
13852 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13853 esac
13854 ac_save_IFS=$IFS
13855 IFS=:
13856 set x $ac_tag
13857 IFS=$ac_save_IFS
13858 shift
13859 ac_file=$1
13860 shift
13861
13862 case $ac_mode in
13863 :L) ac_source=$1;;
13864 :[FH])
13865 ac_file_inputs=
13866 for ac_f
13867 do
13868 case $ac_f in
13869 -) ac_f="$tmp/stdin";;
13870 *) # Look for the file first in the build tree, then in the source tree
13871 # (if the path is not absolute). The absolute path cannot be DOS-style,
13872 # because $ac_f cannot contain `:'.
13873 test -f "$ac_f" ||
13874 case $ac_f in
13875 [\\/$]*) false;;
13876 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13877 esac ||
13878 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13879 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13880 { (exit 1); exit 1; }; };;
13881 esac
13882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13883 ac_file_inputs="$ac_file_inputs '$ac_f'"
13884 done
13885
13886 # Let's still pretend it is `configure' which instantiates (i.e., don't
13887 # use $as_me), people would be surprised to read:
13888 # /* config.h. Generated by config.status. */
13889 configure_input='Generated from '`
13890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13891 `' by configure.'
13892 if test x"$ac_file" != x-; then
13893 configure_input="$ac_file. $configure_input"
13894 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13895 $as_echo "$as_me: creating $ac_file" >&6;}
13896 fi
13897 # Neutralize special characters interpreted by sed in replacement strings.
13898 case $configure_input in #(
13899 *\&* | *\|* | *\\* )
13900 ac_sed_conf_input=`$as_echo "$configure_input" |
13901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13902 *) ac_sed_conf_input=$configure_input;;
13903 esac
13904
13905 case $ac_tag in
13906 *:-:* | *:-) cat >"$tmp/stdin" \
13907 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13908 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13909 { (exit 1); exit 1; }; } ;;
13910 esac
13911 ;;
13912 esac
13913
13914 ac_dir=`$as_dirname -- "$ac_file" ||
13915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13916 X"$ac_file" : 'X\(//\)[^/]' \| \
13917 X"$ac_file" : 'X\(//\)$' \| \
13918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13919 $as_echo X"$ac_file" |
13920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13921 s//\1/
13922 q
13923 }
13924 /^X\(\/\/\)[^/].*/{
13925 s//\1/
13926 q
13927 }
13928 /^X\(\/\/\)$/{
13929 s//\1/
13930 q
13931 }
13932 /^X\(\/\).*/{
13933 s//\1/
13934 q
13935 }
13936 s/.*/./; q'`
13937 { as_dir="$ac_dir"
13938 case $as_dir in #(
13939 -*) as_dir=./$as_dir;;
13940 esac
13941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13942 as_dirs=
13943 while :; do
13944 case $as_dir in #(
13945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13946 *) as_qdir=$as_dir;;
13947 esac
13948 as_dirs="'$as_qdir' $as_dirs"
13949 as_dir=`$as_dirname -- "$as_dir" ||
13950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13951 X"$as_dir" : 'X\(//\)[^/]' \| \
13952 X"$as_dir" : 'X\(//\)$' \| \
13953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13954 $as_echo X"$as_dir" |
13955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13956 s//\1/
13957 q
13958 }
13959 /^X\(\/\/\)[^/].*/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\/\)$/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\).*/{
13968 s//\1/
13969 q
13970 }
13971 s/.*/./; q'`
13972 test -d "$as_dir" && break
13973 done
13974 test -z "$as_dirs" || eval "mkdir $as_dirs"
13975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13976 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13977 { (exit 1); exit 1; }; }; }
13978 ac_builddir=.
13979
13980 case "$ac_dir" in
13981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13982 *)
13983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13984 # A ".." for each directory in $ac_dir_suffix.
13985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13986 case $ac_top_builddir_sub in
13987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13989 esac ;;
13990 esac
13991 ac_abs_top_builddir=$ac_pwd
13992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13993 # for backward compatibility:
13994 ac_top_builddir=$ac_top_build_prefix
13995
13996 case $srcdir in
13997 .) # We are building in place.
13998 ac_srcdir=.
13999 ac_top_srcdir=$ac_top_builddir_sub
14000 ac_abs_top_srcdir=$ac_pwd ;;
14001 [\\/]* | ?:[\\/]* ) # Absolute name.
14002 ac_srcdir=$srcdir$ac_dir_suffix;
14003 ac_top_srcdir=$srcdir
14004 ac_abs_top_srcdir=$srcdir ;;
14005 *) # Relative name.
14006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14007 ac_top_srcdir=$ac_top_build_prefix$srcdir
14008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14009 esac
14010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14011
14012
14013 case $ac_mode in
14014 :F)
14015 #
14016 # CONFIG_FILE
14017 #
14018
14019 case $INSTALL in
14020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14022 esac
14023 ac_MKDIR_P=$MKDIR_P
14024 case $MKDIR_P in
14025 [\\/$]* | ?:[\\/]* ) ;;
14026 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14027 esac
14028 _ACEOF
14029
14030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031 # If the template does not know about datarootdir, expand it.
14032 # FIXME: This hack should be removed a few years after 2.60.
14033 ac_datarootdir_hack=; ac_datarootdir_seen=
14034
14035 ac_sed_dataroot='
14036 /datarootdir/ {
14037 p
14038 q
14039 }
14040 /@datadir@/p
14041 /@docdir@/p
14042 /@infodir@/p
14043 /@localedir@/p
14044 /@mandir@/p
14045 '
14046 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14047 *datarootdir*) ac_datarootdir_seen=yes;;
14048 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14049 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14050 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14051 _ACEOF
14052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14053 ac_datarootdir_hack='
14054 s&@datadir@&$datadir&g
14055 s&@docdir@&$docdir&g
14056 s&@infodir@&$infodir&g
14057 s&@localedir@&$localedir&g
14058 s&@mandir@&$mandir&g
14059 s&\\\${datarootdir}&$datarootdir&g' ;;
14060 esac
14061 _ACEOF
14062
14063 # Neutralize VPATH when `$srcdir' = `.'.
14064 # Shell code in configure.ac might set extrasub.
14065 # FIXME: do we really want to maintain this feature?
14066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14067 ac_sed_extra="$ac_vpsub
14068 $extrasub
14069 _ACEOF
14070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14071 :t
14072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14073 s|@configure_input@|$ac_sed_conf_input|;t t
14074 s&@top_builddir@&$ac_top_builddir_sub&;t t
14075 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14076 s&@srcdir@&$ac_srcdir&;t t
14077 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14078 s&@top_srcdir@&$ac_top_srcdir&;t t
14079 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14080 s&@builddir@&$ac_builddir&;t t
14081 s&@abs_builddir@&$ac_abs_builddir&;t t
14082 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14083 s&@INSTALL@&$ac_INSTALL&;t t
14084 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14085 $ac_datarootdir_hack
14086 "
14087 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14088 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14089 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14090 { (exit 1); exit 1; }; }
14091
14092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14093 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14095 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14096 which seems to be undefined. Please make sure it is defined." >&5
14097 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14098 which seems to be undefined. Please make sure it is defined." >&2;}
14099
14100 rm -f "$tmp/stdin"
14101 case $ac_file in
14102 -) cat "$tmp/out" && rm -f "$tmp/out";;
14103 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14104 esac \
14105 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14106 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14107 { (exit 1); exit 1; }; }
14108 ;;
14109 :H)
14110 #
14111 # CONFIG_HEADER
14112 #
14113 if test x"$ac_file" != x-; then
14114 {
14115 $as_echo "/* $configure_input */" \
14116 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14117 } >"$tmp/config.h" \
14118 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14119 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14120 { (exit 1); exit 1; }; }
14121 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14122 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14123 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14124 else
14125 rm -f "$ac_file"
14126 mv "$tmp/config.h" "$ac_file" \
14127 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14128 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14129 { (exit 1); exit 1; }; }
14130 fi
14131 else
14132 $as_echo "/* $configure_input */" \
14133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14134 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14135 $as_echo "$as_me: error: could not create -" >&2;}
14136 { (exit 1); exit 1; }; }
14137 fi
14138 ;;
14139
14140
14141 esac
14142
14143 done # for ac_tag
14144
14145
14146 { (exit 0); exit 0; }
14147 _ACEOF
14148 chmod +x $CONFIG_STATUS
14149 ac_clean_files=$ac_clean_files_save
14150
14151 test $ac_write_fail = 0 ||
14152 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14153 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14154 { (exit 1); exit 1; }; }
14155
14156
14157 # configure is writing to config.log, and then calls config.status.
14158 # config.status does its own redirection, appending to config.log.
14159 # Unfortunately, on DOS this fails, as config.log is still kept open
14160 # by configure, so config.status won't be able to write to it; its
14161 # output is simply discarded. So we exec the FD to /dev/null,
14162 # effectively closing config.log, so it can be properly (re)opened and
14163 # appended to by config.status. When coming back to configure, we
14164 # need to make the FD available again.
14165 if test "$no_create" != yes; then
14166 ac_cs_success=:
14167 ac_config_status_args=
14168 test "$silent" = yes &&
14169 ac_config_status_args="$ac_config_status_args --quiet"
14170 exec 5>/dev/null
14171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14172 exec 5>>config.log
14173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14174 # would make configure fail if this is the last instruction.
14175 $ac_cs_success || { (exit 1); exit 1; }
14176 fi
14177 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14178 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14179 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14180 fi
14181
14182
14183 if test x$ODIRECT != xyes; then
14184 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
14185 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
14186 fi
This page took 0.8676 seconds and 6 git commands to generate.