]> sourceware.org Git - lvm2.git/blob - configure
autoreconf (using fedora 10 for this now)
[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 tmpdir
643 kernelvsn
644 missingkernel
645 kerneldir
646 interface
647 LIB_PTHREAD
648 STATIC_LINK
649 STATICDIR
650 SNAPSHOTS
651 POOL
652 PKGCONFIG
653 OWNER
654 MIRRORS
655 LVM_RELEASE_DATE
656 LVM_RELEASE
657 LVM_PATCHLEVEL
658 LVM_MINOR
659 LVM_MAJOR
660 LVM_VERSION
661 LVM1_FALLBACK
662 LVM1
663 LOCALEDIR
664 LIB_SUFFIX
665 LDDEPS
666 JOBS
667 INTL_PACKAGE
668 INTL
669 HAVE_SELINUX
670 HAVE_REALTIME
671 HAVE_LIBDL
672 GROUP
673 FSADM
674 DM_LIB_PATCHLEVEL
675 DM_LIB_VERSION
676 DM_IOCTLS
677 DM_DEVICE_UID
678 DM_DEVICE_MODE
679 DM_DEVICE_GID
680 DM_COMPAT
681 DMEVENTD
682 DEVMAPPER
683 DEBUG
684 COPTIMISE_FLAG
685 CONFDIR
686 CMDLIB
687 CLVMD
688 CLUSTER
689 CLDWHOLEARCHIVE
690 CLDNOWHOLEARCHIVE
691 CLDFLAGS
692 BUILD_DMEVENTD
693 MODPROBE_CMD
694 MSGFMT
695 LVM2CMD_LIB
696 GENHTML
697 LCOV
698 CPG_LIBS
699 CPG_CFLAGS
700 CONFDB_LIBS
701 CONFDB_CFLAGS
702 QUORUM_LIBS
703 QUORUM_CFLAGS
704 PKG_CONFIG
705 POW_LIB
706 LIBOBJS
707 ALLOCA
708 CSCOPE_CMD
709 CFLOW_CMD
710 RANLIB
711 MKDIR_P
712 SET_MAKE
713 LN_S
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 EGREP
718 GREP
719 CPP
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 AWK
728 SED
729 target_os
730 target_vendor
731 target_cpu
732 target
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_static_link
782 with_user
783 with_group
784 with_device_uid
785 with_device_gid
786 with_device_mode
787 enable_lvm1_fallback
788 with_lvm1
789 with_pool
790 with_cluster
791 with_snapshots
792 with_mirrors
793 enable_readline
794 enable_realtime
795 with_clvmd
796 enable_debug
797 with_optimisation
798 enable_profiling
799 enable_devmapper
800 enable_compat
801 enable_ioctl
802 enable_o_direct
803 enable_cmdlib
804 enable_pkgconfig
805 enable_fsadm
806 enable_dmeventd
807 enable_selinux
808 enable_nls
809 with_localedir
810 with_confdir
811 with_staticdir
812 with_usrlibdir
813 with_usrsbindir
814 with_dmeventd_pidfile
815 with_dmeventd_path
816 with_interface
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 CPP
827 PKG_CONFIG
828 QUORUM_CFLAGS
829 QUORUM_LIBS
830 CONFDB_CFLAGS
831 CONFDB_LIBS
832 CPG_CFLAGS
833 CPG_LIBS'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
893 fi
894
895 case $ac_option in
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *) ac_optarg=yes ;;
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
943 { (exit 1); exit 1; }; }
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1223 Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1231 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232 { (exit 1); exit 1; }; }
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1250 { (exit 1); exit 1; }; }
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1257 { (exit 1); exit 1; }; } ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267 do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1282 done
1283
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1290
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\).*/{
1341 s//\1/
1342 q
1343 }
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1348 fi
1349 else
1350 ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451
1452 cat <<\_ACEOF
1453
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-static_link Use this to link the tools to their libraries
1459 statically. Default is dynamic linking
1460 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1461 device-mapper is missing from the kernel
1462 --disable-readline Disable readline support
1463 --disable-realtime Disable realtime clock support
1464 --enable-debug Enable debugging
1465 --enable-profiling Gather gcov profiling data
1466 --disable-devmapper Disable LVM2 device-mapper interaction
1467 --enable-compat Enable support for old device-mapper versions
1468 --disable-driver Disable calls to device-mapper in the kernel
1469 --disable-o_direct Disable O_DIRECT
1470 --enable-cmdlib Build shared command library
1471 --enable-pkgconfig Install pkgconfig support
1472 --enable-fsadm Enable fsadm
1473 --enable-dmeventd Enable the device-mapper event daemon
1474 --disable-selinux Disable selinux support
1475 --enable-nls Enable Native Language Support
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-user=USER Set the owner of installed files [USER=root]
1481 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1482 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1483 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1484 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1485 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1486 TYPE=internal
1487 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1488 TYPE=internal
1489 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1490 TYPE=internal
1491 --with-snapshots=TYPE Snapshot support: internal/shared/none
1492 TYPE=internal
1493 --with-mirrors=TYPE Mirror support: internal/shared/none
1494 TYPE=internal
1495 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
1496 TYPE=none
1497 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1498 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1499 --with-confdir=DIR Configuration files in DIR /etc
1500 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
1501 --with-usrlibdir=DIR
1502 --with-usrsbindir=DIR
1503 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1504 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1505 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1506
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 CPP C preprocessor
1516 PKG_CONFIG path to pkg-config utility
1517 QUORUM_CFLAGS
1518 C compiler flags for QUORUM, overriding pkg-config
1519 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1520 CONFDB_CFLAGS
1521 C compiler flags for CONFDB, overriding pkg-config
1522 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1523 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1524 CPG_LIBS linker flags for CPG, overriding pkg-config
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 _ACEOF
1530 ac_status=$?
1531 fi
1532
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1586 fi
1587
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 configure
1592 generated by GNU Autoconf 2.63
1593
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1604
1605 It was created by $as_me, which was
1606 generated by GNU Autoconf 2.63. Invocation command line was
1607
1608 $ $0 $@
1609
1610 _ACEOF
1611 exec 5>>config.log
1612 {
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1617
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634
1635 _ASUNAME
1636
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1645
1646 } >&5
1647
1648 cat >&5 <<_ACEOF
1649
1650
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1654
1655 _ACEOF
1656
1657
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1668 do
1669 for ac_arg
1670 do
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
1676 *\'*)
1677 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681 2)
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1685 else
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1694 ;;
1695 -* ) ac_must_keep_next=true ;;
1696 esac
1697 fi
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1699 ;;
1700 esac
1701 done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1713 {
1714 echo
1715
1716 cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
1723 (
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1736 esac ;;
1737 esac
1738 done
1739 (set) 2>&1 |
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1742 sed -n \
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 ;; #(
1746 *)
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748 ;;
1749 esac |
1750 sort
1751 )
1752 echo
1753
1754 cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_vars
1761 do
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 $as_echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1769
1770 if test -n "$ac_subst_files"; then
1771 cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_files
1778 do
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 $as_echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1786 fi
1787
1788 if test -s confdefs.h; then
1789 cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794 echo
1795 cat confdefs.h
1796 echo
1797 fi
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1801 } >&5
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 exit $exit_status
1805 ' 0
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1810
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1813
1814 # Predefined preprocessor variables.
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1839
1840
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1843 ac_site_file1=NONE
1844 ac_site_file2=NONE
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1850 else
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1853 fi
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1855 do
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1861 . "$ac_site_file"
1862 fi
1863 done
1864
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1871 case $cache_file in
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1874 esac
1875 fi
1876 else
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1879 >$cache_file
1880 fi
1881
1882 # Check that the precious variables saved in the cache have kept the same
1883 # value.
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1891 set,)
1892 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1895 ,set)
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1899 ,);;
1900 *)
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 # differences in whitespace do not lead to failure.
1903 ac_old_val_w=`echo x $ac_old_val`
1904 ac_new_val_w=`echo x $ac_new_val`
1905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908 ac_cache_corrupted=:
1909 else
1910 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1912 eval $ac_var=\$ac_old_val
1913 fi
1914 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1915 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1916 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1918 fi;;
1919 esac
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1922 case $ac_new_val in
1923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 *) ac_arg=$ac_var=$ac_new_val ;;
1925 esac
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929 esac
1930 fi
1931 done
1932 if $ac_cache_corrupted; then
1933 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1935 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1938 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1939 { (exit 1); exit 1; }; }
1940 fi
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958 ac_ext=c
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965
1966 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1967
1968
1969 ################################################################################
1970 ac_aux_dir=
1971 for ac_dir in autoconf "$srcdir"/autoconf; do
1972 if test -f "$ac_dir/install-sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install-sh -c"
1975 break
1976 elif test -f "$ac_dir/install.sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install.sh -c"
1979 break
1980 elif test -f "$ac_dir/shtool"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/shtool install -c"
1983 break
1984 fi
1985 done
1986 if test -z "$ac_aux_dir"; then
1987 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1988 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1989 { (exit 1); exit 1; }; }
1990 fi
1991
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999
2000
2001
2002 ################################################################################
2003 # Make sure we can run config.sub.
2004 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2005 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2006 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2007 { (exit 1); exit 1; }; }
2008
2009 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2010 $as_echo_n "checking build system type... " >&6; }
2011 if test "${ac_cv_build+set}" = set; then
2012 $as_echo_n "(cached) " >&6
2013 else
2014 ac_build_alias=$build_alias
2015 test "x$ac_build_alias" = x &&
2016 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2017 test "x$ac_build_alias" = x &&
2018 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2019 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2020 { (exit 1); exit 1; }; }
2021 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2022 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2023 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2024 { (exit 1); exit 1; }; }
2025
2026 fi
2027 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2028 $as_echo "$ac_cv_build" >&6; }
2029 case $ac_cv_build in
2030 *-*-*) ;;
2031 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2032 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2033 { (exit 1); exit 1; }; };;
2034 esac
2035 build=$ac_cv_build
2036 ac_save_IFS=$IFS; IFS='-'
2037 set x $ac_cv_build
2038 shift
2039 build_cpu=$1
2040 build_vendor=$2
2041 shift; shift
2042 # Remember, the first character of IFS is used to create $*,
2043 # except with old shells:
2044 build_os=$*
2045 IFS=$ac_save_IFS
2046 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2047
2048
2049 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2050 $as_echo_n "checking host system type... " >&6; }
2051 if test "${ac_cv_host+set}" = set; then
2052 $as_echo_n "(cached) " >&6
2053 else
2054 if test "x$host_alias" = x; then
2055 ac_cv_host=$ac_cv_build
2056 else
2057 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2058 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2059 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2060 { (exit 1); exit 1; }; }
2061 fi
2062
2063 fi
2064 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2065 $as_echo "$ac_cv_host" >&6; }
2066 case $ac_cv_host in
2067 *-*-*) ;;
2068 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2069 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2070 { (exit 1); exit 1; }; };;
2071 esac
2072 host=$ac_cv_host
2073 ac_save_IFS=$IFS; IFS='-'
2074 set x $ac_cv_host
2075 shift
2076 host_cpu=$1
2077 host_vendor=$2
2078 shift; shift
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2081 host_os=$*
2082 IFS=$ac_save_IFS
2083 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2084
2085
2086 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2087 $as_echo_n "checking target system type... " >&6; }
2088 if test "${ac_cv_target+set}" = set; then
2089 $as_echo_n "(cached) " >&6
2090 else
2091 if test "x$target_alias" = x; then
2092 ac_cv_target=$ac_cv_host
2093 else
2094 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2095 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2096 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 fi
2101 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2102 $as_echo "$ac_cv_target" >&6; }
2103 case $ac_cv_target in
2104 *-*-*) ;;
2105 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2106 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2107 { (exit 1); exit 1; }; };;
2108 esac
2109 target=$ac_cv_target
2110 ac_save_IFS=$IFS; IFS='-'
2111 set x $ac_cv_target
2112 shift
2113 target_cpu=$1
2114 target_vendor=$2
2115 shift; shift
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2118 target_os=$*
2119 IFS=$ac_save_IFS
2120 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2121
2122
2123 # The aliases save the names the user supplied, while $host etc.
2124 # will get canonicalized.
2125 test -n "$target_alias" &&
2126 test "$program_prefix$program_suffix$program_transform_name" = \
2127 NONENONEs,x,x, &&
2128 program_prefix=${target_alias}-
2129
2130 case "$host_os" in
2131 linux*)
2132 COPTIMISE_FLAG="-O2"
2133 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2134 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2135 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2136 LDDEPS="$LDDEPS .export.sym"
2137 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2138 LIB_SUFFIX=so
2139 DEVMAPPER=yes
2140 ODIRECT=yes
2141 DM_IOCTLS=yes
2142 SELINUX=yes
2143 REALTIME=yes
2144 CLUSTER=internal
2145 FSADM=yes
2146 ;;
2147 darwin*)
2148 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2149 COPTIMISE_FLAG="-O2"
2150 CLDFLAGS="$CLDFLAGS"
2151 CLDWHOLEARCHIVE="-all_load"
2152 CLDNOWHOLEARCHIVE=
2153 LIB_SUFFIX=dylib
2154 DEVMAPPER=yes
2155 ODIRECT=no
2156 DM_IOCTLS=no
2157 SELINUX=no
2158 REALTIME=no
2159 CLUSTER=none
2160 FSADM=no
2161 ;;
2162 esac
2163
2164 ################################################################################
2165 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2166 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2167 if test "${ac_cv_path_SED+set}" = set; then
2168 $as_echo_n "(cached) " >&6
2169 else
2170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2171 for ac_i in 1 2 3 4 5 6 7; do
2172 ac_script="$ac_script$as_nl$ac_script"
2173 done
2174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2175 $as_unset ac_script || ac_script=
2176 if test -z "$SED"; then
2177 ac_path_SED_found=false
2178 # Loop through the user's path and test for each of PROGNAME-LIST
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_prog in sed gsed; do
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2187 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2188 # Check for GNU ac_path_SED and select it if it is found.
2189 # Check for GNU $ac_path_SED
2190 case `"$ac_path_SED" --version 2>&1` in
2191 *GNU*)
2192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2193 *)
2194 ac_count=0
2195 $as_echo_n 0123456789 >"conftest.in"
2196 while :
2197 do
2198 cat "conftest.in" "conftest.in" >"conftest.tmp"
2199 mv "conftest.tmp" "conftest.in"
2200 cp "conftest.in" "conftest.nl"
2201 $as_echo '' >> "conftest.nl"
2202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2204 ac_count=`expr $ac_count + 1`
2205 if test $ac_count -gt ${ac_path_SED_max-0}; then
2206 # Best one so far, save it but keep looking for a better one
2207 ac_cv_path_SED="$ac_path_SED"
2208 ac_path_SED_max=$ac_count
2209 fi
2210 # 10*(2^10) chars as input seems more than enough
2211 test $ac_count -gt 10 && break
2212 done
2213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2214 esac
2215
2216 $ac_path_SED_found && break 3
2217 done
2218 done
2219 done
2220 IFS=$as_save_IFS
2221 if test -z "$ac_cv_path_SED"; then
2222 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2223 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2224 { (exit 1); exit 1; }; }
2225 fi
2226 else
2227 ac_cv_path_SED=$SED
2228 fi
2229
2230 fi
2231 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2232 $as_echo "$ac_cv_path_SED" >&6; }
2233 SED="$ac_cv_path_SED"
2234 rm -f conftest.sed
2235
2236 for ac_prog in gawk mawk nawk awk
2237 do
2238 # Extract the first word of "$ac_prog", so it can be a program name with args.
2239 set dummy $ac_prog; ac_word=$2
2240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 $as_echo_n "checking for $ac_word... " >&6; }
2242 if test "${ac_cv_prog_AWK+set}" = set; then
2243 $as_echo_n "(cached) " >&6
2244 else
2245 if test -n "$AWK"; then
2246 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_AWK="$ac_prog"
2256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2258 fi
2259 done
2260 done
2261 IFS=$as_save_IFS
2262
2263 fi
2264 fi
2265 AWK=$ac_cv_prog_AWK
2266 if test -n "$AWK"; then
2267 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2268 $as_echo "$AWK" >&6; }
2269 else
2270 { $as_echo "$as_me:$LINENO: result: no" >&5
2271 $as_echo "no" >&6; }
2272 fi
2273
2274
2275 test -n "$AWK" && break
2276 done
2277
2278 ac_ext=c
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283 if test -n "$ac_tool_prefix"; then
2284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 $as_echo_n "checking for $ac_word... " >&6; }
2288 if test "${ac_cv_prog_CC+set}" = set; then
2289 $as_echo_n "(cached) " >&6
2290 else
2291 if test -n "$CC"; then
2292 ac_cv_prog_CC="$CC" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2304 fi
2305 done
2306 done
2307 IFS=$as_save_IFS
2308
2309 fi
2310 fi
2311 CC=$ac_cv_prog_CC
2312 if test -n "$CC"; then
2313 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2314 $as_echo "$CC" >&6; }
2315 else
2316 { $as_echo "$as_me:$LINENO: result: no" >&5
2317 $as_echo "no" >&6; }
2318 fi
2319
2320
2321 fi
2322 if test -z "$ac_cv_prog_CC"; then
2323 ac_ct_CC=$CC
2324 # Extract the first word of "gcc", so it can be a program name with args.
2325 set dummy gcc; ac_word=$2
2326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$ac_ct_CC"; then
2332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_ac_ct_CC="gcc"
2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354 $as_echo "$ac_ct_CC" >&6; }
2355 else
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360 if test "x$ac_ct_CC" = x; then
2361 CC=""
2362 else
2363 case $cross_compiling:$ac_tool_warned in
2364 yes:)
2365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2367 ac_tool_warned=yes ;;
2368 esac
2369 CC=$ac_ct_CC
2370 fi
2371 else
2372 CC="$ac_cv_prog_CC"
2373 fi
2374
2375 if test -z "$CC"; then
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}cc; ac_word=$2
2379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if test "${ac_cv_prog_CC+set}" = set; then
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_CC="${ac_tool_prefix}cc"
2395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2407 $as_echo "$CC" >&6; }
2408 else
2409 { $as_echo "$as_me:$LINENO: result: no" >&5
2410 $as_echo "no" >&6; }
2411 fi
2412
2413
2414 fi
2415 fi
2416 if test -z "$CC"; then
2417 # Extract the first word of "cc", so it can be a program name with args.
2418 set dummy cc; ac_word=$2
2419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 $as_echo_n "checking for $ac_word... " >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 ac_prog_rejected=no
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2436 ac_prog_rejected=yes
2437 continue
2438 fi
2439 ac_cv_prog_CC="cc"
2440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 if test $ac_prog_rejected = yes; then
2448 # We found a bogon in the path, so make sure we never use it.
2449 set dummy $ac_cv_prog_CC
2450 shift
2451 if test $# != 0; then
2452 # We chose a different compiler from the bogus one.
2453 # However, it has the same basename, so the bogon will be chosen
2454 # first if we set CC to just the basename; use the full file name.
2455 shift
2456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457 fi
2458 fi
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2464 $as_echo "$CC" >&6; }
2465 else
2466 { $as_echo "$as_me:$LINENO: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470
2471 fi
2472 if test -z "$CC"; then
2473 if test -n "$ac_tool_prefix"; then
2474 for ac_prog in cl.exe
2475 do
2476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 $as_echo_n "(cached) " >&6
2482 else
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2496 fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2506 $as_echo "$CC" >&6; }
2507 else
2508 { $as_echo "$as_me:$LINENO: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512
2513 test -n "$CC" && break
2514 done
2515 fi
2516 if test -z "$CC"; then
2517 ac_ct_CC=$CC
2518 for ac_prog in cl.exe
2519 do
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550 $as_echo "$ac_ct_CC" >&6; }
2551 else
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557 test -n "$ac_ct_CC" && break
2558 done
2559
2560 if test "x$ac_ct_CC" = x; then
2561 CC=""
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564 yes:)
2565 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2567 ac_tool_warned=yes ;;
2568 esac
2569 CC=$ac_ct_CC
2570 fi
2571 fi
2572
2573 fi
2574
2575
2576 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2579 See \`config.log' for more details." >&5
2580 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }; }
2583
2584 # Provide some information about the compiler.
2585 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2586 set X $ac_compile
2587 ac_compiler=$2
2588 { (ac_try="$ac_compiler --version >&5"
2589 case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594 $as_echo "$ac_try_echo") >&5
2595 (eval "$ac_compiler --version >&5") 2>&5
2596 ac_status=$?
2597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599 { (ac_try="$ac_compiler -v >&5"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2605 $as_echo "$ac_try_echo") >&5
2606 (eval "$ac_compiler -v >&5") 2>&5
2607 ac_status=$?
2608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }
2610 { (ac_try="$ac_compiler -V >&5"
2611 case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614 esac
2615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2616 $as_echo "$ac_try_echo") >&5
2617 (eval "$ac_compiler -V >&5") 2>&5
2618 ac_status=$?
2619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }
2621
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2628
2629 int
2630 main ()
2631 {
2632
2633 ;
2634 return 0;
2635 }
2636 _ACEOF
2637 ac_clean_files_save=$ac_clean_files
2638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2639 # Try to create an executable without -o first, disregard a.out.
2640 # It will help us diagnose broken compilers, and finding out an intuition
2641 # of exeext.
2642 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2643 $as_echo_n "checking for C compiler default output file name... " >&6; }
2644 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2645
2646 # The possible output files:
2647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2648
2649 ac_rmfiles=
2650 for ac_file in $ac_files
2651 do
2652 case $ac_file in
2653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2655 esac
2656 done
2657 rm -f $ac_rmfiles
2658
2659 if { (ac_try="$ac_link_default"
2660 case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663 esac
2664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2665 $as_echo "$ac_try_echo") >&5
2666 (eval "$ac_link_default") 2>&5
2667 ac_status=$?
2668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; then
2670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2673 # so that the user can short-circuit this test for compilers unknown to
2674 # Autoconf.
2675 for ac_file in $ac_files ''
2676 do
2677 test -f "$ac_file" || continue
2678 case $ac_file in
2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2680 ;;
2681 [ab].out )
2682 # We found the default executable, but exeext='' is most
2683 # certainly right.
2684 break;;
2685 *.* )
2686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2687 then :; else
2688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2689 fi
2690 # We set ac_cv_exeext here because the later test for it is not
2691 # safe: cross compilers may not add the suffix if given an `-o'
2692 # argument, so we may need to know it at that point already.
2693 # Even if this section looks crufty: it has the advantage of
2694 # actually working.
2695 break;;
2696 * )
2697 break;;
2698 esac
2699 done
2700 test "$ac_cv_exeext" = no && ac_cv_exeext=
2701
2702 else
2703 ac_file=''
2704 fi
2705
2706 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2707 $as_echo "$ac_file" >&6; }
2708 if test -z "$ac_file"; then
2709 $as_echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2715 See \`config.log' for more details." >&5
2716 $as_echo "$as_me: error: C compiler cannot create executables
2717 See \`config.log' for more details." >&2;}
2718 { (exit 77); exit 77; }; }; }
2719 fi
2720
2721 ac_exeext=$ac_cv_exeext
2722
2723 # Check that the compiler produces executables we can run. If not, either
2724 # the compiler is broken, or we cross compile.
2725 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2726 $as_echo_n "checking whether the C compiler works... " >&6; }
2727 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2728 # If not cross compiling, check that we can run a simple program.
2729 if test "$cross_compiling" != yes; then
2730 if { ac_try='./$ac_file'
2731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736 $as_echo "$ac_try_echo") >&5
2737 (eval "$ac_try") 2>&5
2738 ac_status=$?
2739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 cross_compiling=no
2742 else
2743 if test "$cross_compiling" = maybe; then
2744 cross_compiling=yes
2745 else
2746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details." >&5
2751 $as_echo "$as_me: error: cannot run C compiled programs.
2752 If you meant to cross compile, use \`--host'.
2753 See \`config.log' for more details." >&2;}
2754 { (exit 1); exit 1; }; }; }
2755 fi
2756 fi
2757 fi
2758 { $as_echo "$as_me:$LINENO: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760
2761 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2762 ac_clean_files=$ac_clean_files_save
2763 # Check that the compiler produces executables we can run. If not, either
2764 # the compiler is broken, or we cross compile.
2765 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2766 $as_echo_n "checking whether we are cross compiling... " >&6; }
2767 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2768 $as_echo "$cross_compiling" >&6; }
2769
2770 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2771 $as_echo_n "checking for suffix of executables... " >&6; }
2772 if { (ac_try="$ac_link"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2778 $as_echo "$ac_try_echo") >&5
2779 (eval "$ac_link") 2>&5
2780 ac_status=$?
2781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2784 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2785 # work properly (i.e., refer to `conftest.exe'), while it won't with
2786 # `rm'.
2787 for ac_file in conftest.exe conftest conftest.*; do
2788 test -f "$ac_file" || continue
2789 case $ac_file in
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2791 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2792 break;;
2793 * ) break;;
2794 esac
2795 done
2796 else
2797 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2800 See \`config.log' for more details." >&5
2801 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2802 See \`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }; }
2804 fi
2805
2806 rm -f conftest$ac_cv_exeext
2807 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2808 $as_echo "$ac_cv_exeext" >&6; }
2809
2810 rm -f conftest.$ac_ext
2811 EXEEXT=$ac_cv_exeext
2812 ac_exeext=$EXEEXT
2813 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2814 $as_echo_n "checking for suffix of object files... " >&6; }
2815 if test "${ac_cv_objext+set}" = set; then
2816 $as_echo_n "(cached) " >&6
2817 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824
2825 int
2826 main ()
2827 {
2828
2829 ;
2830 return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.o conftest.obj
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2840 $as_echo "$ac_try_echo") >&5
2841 (eval "$ac_compile") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; then
2845 for ac_file in conftest.o conftest.obj conftest.*; do
2846 test -f "$ac_file" || continue;
2847 case $ac_file in
2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2849 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2850 break;;
2851 esac
2852 done
2853 else
2854 $as_echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2860 See \`config.log' for more details." >&5
2861 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details." >&2;}
2863 { (exit 1); exit 1; }; }; }
2864 fi
2865
2866 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2867 fi
2868 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2869 $as_echo "$ac_cv_objext" >&6; }
2870 OBJEXT=$ac_cv_objext
2871 ac_objext=$OBJEXT
2872 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2873 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2875 $as_echo_n "(cached) " >&6
2876 else
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883
2884 int
2885 main ()
2886 {
2887 #ifndef __GNUC__
2888 choke me
2889 #endif
2890
2891 ;
2892 return 0;
2893 }
2894 _ACEOF
2895 rm -f conftest.$ac_objext
2896 if { (ac_try="$ac_compile"
2897 case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902 $as_echo "$ac_try_echo") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2904 ac_status=$?
2905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
2913 ac_compiler_gnu=yes
2914 else
2915 $as_echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 ac_compiler_gnu=no
2919 fi
2920
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2923
2924 fi
2925 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2926 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2927 if test $ac_compiler_gnu = yes; then
2928 GCC=yes
2929 else
2930 GCC=
2931 fi
2932 ac_test_CFLAGS=${CFLAGS+set}
2933 ac_save_CFLAGS=$CFLAGS
2934 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2935 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2936 if test "${ac_cv_prog_cc_g+set}" = set; then
2937 $as_echo_n "(cached) " >&6
2938 else
2939 ac_save_c_werror_flag=$ac_c_werror_flag
2940 ac_c_werror_flag=yes
2941 ac_cv_prog_cc_g=no
2942 CFLAGS="-g"
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949
2950 int
2951 main ()
2952 {
2953
2954 ;
2955 return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965 $as_echo "$ac_try_echo") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && {
2973 test -z "$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2975 } && test -s conftest.$ac_objext; then
2976 ac_cv_prog_cc_g=yes
2977 else
2978 $as_echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 CFLAGS=""
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988
2989 int
2990 main ()
2991 {
2992
2993 ;
2994 return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3004 $as_echo "$ac_try_echo") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 :
3016 else
3017 $as_echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 ac_c_werror_flag=$ac_save_c_werror_flag
3021 CFLAGS="-g"
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028
3029 int
3030 main ()
3031 {
3032
3033 ;
3034 return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3044 $as_echo "$ac_try_echo") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } && {
3052 test -z "$ac_c_werror_flag" ||
3053 test ! -s conftest.err
3054 } && test -s conftest.$ac_objext; then
3055 ac_cv_prog_cc_g=yes
3056 else
3057 $as_echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060
3061 fi
3062
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 fi
3065
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 fi
3068
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_c_werror_flag=$ac_save_c_werror_flag
3071 fi
3072 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3073 $as_echo "$ac_cv_prog_cc_g" >&6; }
3074 if test "$ac_test_CFLAGS" = set; then
3075 CFLAGS=$ac_save_CFLAGS
3076 elif test $ac_cv_prog_cc_g = yes; then
3077 if test "$GCC" = yes; then
3078 CFLAGS="-g -O2"
3079 else
3080 CFLAGS="-g"
3081 fi
3082 else
3083 if test "$GCC" = yes; then
3084 CFLAGS="-O2"
3085 else
3086 CFLAGS=
3087 fi
3088 fi
3089 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3090 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3091 if test "${ac_cv_prog_cc_c89+set}" = set; then
3092 $as_echo_n "(cached) " >&6
3093 else
3094 ac_cv_prog_cc_c89=no
3095 ac_save_CC=$CC
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <stdarg.h>
3103 #include <stdio.h>
3104 #include <sys/types.h>
3105 #include <sys/stat.h>
3106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3107 struct buf { int x; };
3108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3109 static char *e (p, i)
3110 char **p;
3111 int i;
3112 {
3113 return p[i];
3114 }
3115 static char *f (char * (*g) (char **, int), char **p, ...)
3116 {
3117 char *s;
3118 va_list v;
3119 va_start (v,p);
3120 s = g (p, va_arg (v,int));
3121 va_end (v);
3122 return s;
3123 }
3124
3125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3126 function prototypes and stuff, but not '\xHH' hex character constants.
3127 These don't provoke an error unfortunately, instead are silently treated
3128 as 'x'. The following induces an error, until -std is added to get
3129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3130 array size at least. It's necessary to write '\x00'==0 to get something
3131 that's true only with -std. */
3132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3133
3134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3135 inside strings and character constants. */
3136 #define FOO(x) 'x'
3137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3138
3139 int test (int i, double x);
3140 struct s1 {int (*f) (int a);};
3141 struct s2 {int (*f) (double a);};
3142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3143 int argc;
3144 char **argv;
3145 int
3146 main ()
3147 {
3148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3149 ;
3150 return 0;
3151 }
3152 _ACEOF
3153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3155 do
3156 CC="$ac_save_CC $ac_arg"
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164 $as_echo "$ac_try_echo") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_cv_prog_cc_c89=$ac_arg
3176 else
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext
3184 test "x$ac_cv_prog_cc_c89" != "xno" && break
3185 done
3186 rm -f conftest.$ac_ext
3187 CC=$ac_save_CC
3188
3189 fi
3190 # AC_CACHE_VAL
3191 case "x$ac_cv_prog_cc_c89" in
3192 x)
3193 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3194 $as_echo "none needed" >&6; } ;;
3195 xno)
3196 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3197 $as_echo "unsupported" >&6; } ;;
3198 *)
3199 CC="$CC $ac_cv_prog_cc_c89"
3200 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3202 esac
3203
3204
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3219 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3220 # On Suns, sometimes $CPP names a directory.
3221 if test -n "$CPP" && test -d "$CPP"; then
3222 CPP=
3223 fi
3224 if test -z "$CPP"; then
3225 if test "${ac_cv_prog_CPP+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3227 else
3228 # Double quotes because CPP needs to be expanded
3229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3230 do
3231 ac_preproc_ok=false
3232 for ac_c_preproc_warn_flag in '' yes
3233 do
3234 # Use a header file that comes with gcc, so configuring glibc
3235 # with a fresh cross-compiler works.
3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237 # <limits.h> exists even on freestanding compilers.
3238 # On the NeXT, cc -E runs the code through the compiler's parser,
3239 # not just through cpp. "Syntax error" is here to catch this case.
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246 #ifdef __STDC__
3247 # include <limits.h>
3248 #else
3249 # include <assert.h>
3250 #endif
3251 Syntax error
3252 _ACEOF
3253 if { (ac_try="$ac_cpp conftest.$ac_ext"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3259 $as_echo "$ac_try_echo") >&5
3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null && {
3267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 }; then
3270 :
3271 else
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 # Broken: fails on valid input.
3276 continue
3277 fi
3278
3279 rm -f conftest.err conftest.$ac_ext
3280
3281 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3290 _ACEOF
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297 $as_echo "$ac_try_echo") >&5
3298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null && {
3305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 }; then
3308 # Broken: success on invalid input.
3309 continue
3310 else
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 # Passes both tests.
3315 ac_preproc_ok=:
3316 break
3317 fi
3318
3319 rm -f conftest.err conftest.$ac_ext
3320
3321 done
3322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323 rm -f conftest.err conftest.$ac_ext
3324 if $ac_preproc_ok; then
3325 break
3326 fi
3327
3328 done
3329 ac_cv_prog_CPP=$CPP
3330
3331 fi
3332 CPP=$ac_cv_prog_CPP
3333 else
3334 ac_cv_prog_CPP=$CPP
3335 fi
3336 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3337 $as_echo "$CPP" >&6; }
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3340 do
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358 Syntax error
3359 _ACEOF
3360 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
3377 :
3378 else
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 # Broken: fails on valid input.
3383 continue
3384 fi
3385
3386 rm -f conftest.err conftest.$ac_ext
3387
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404 $as_echo "$ac_try_echo") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null && {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 }; then
3415 # Broken: success on invalid input.
3416 continue
3417 else
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 # Passes both tests.
3422 ac_preproc_ok=:
3423 break
3424 fi
3425
3426 rm -f conftest.err conftest.$ac_ext
3427
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3432 :
3433 else
3434 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3437 See \`config.log' for more details." >&5
3438 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3439 See \`config.log' for more details." >&2;}
3440 { (exit 1); exit 1; }; }; }
3441 fi
3442
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448
3449
3450 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3452 if test "${ac_cv_path_GREP+set}" = set; then
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -z "$GREP"; then
3456 ac_path_GREP_found=false
3457 # Loop through the user's path and test for each of PROGNAME-LIST
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3460 do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_prog in grep ggrep; do
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3466 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3467 # Check for GNU ac_path_GREP and select it if it is found.
3468 # Check for GNU $ac_path_GREP
3469 case `"$ac_path_GREP" --version 2>&1` in
3470 *GNU*)
3471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3472 *)
3473 ac_count=0
3474 $as_echo_n 0123456789 >"conftest.in"
3475 while :
3476 do
3477 cat "conftest.in" "conftest.in" >"conftest.tmp"
3478 mv "conftest.tmp" "conftest.in"
3479 cp "conftest.in" "conftest.nl"
3480 $as_echo 'GREP' >> "conftest.nl"
3481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3483 ac_count=`expr $ac_count + 1`
3484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3485 # Best one so far, save it but keep looking for a better one
3486 ac_cv_path_GREP="$ac_path_GREP"
3487 ac_path_GREP_max=$ac_count
3488 fi
3489 # 10*(2^10) chars as input seems more than enough
3490 test $ac_count -gt 10 && break
3491 done
3492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3493 esac
3494
3495 $ac_path_GREP_found && break 3
3496 done
3497 done
3498 done
3499 IFS=$as_save_IFS
3500 if test -z "$ac_cv_path_GREP"; then
3501 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3502 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3503 { (exit 1); exit 1; }; }
3504 fi
3505 else
3506 ac_cv_path_GREP=$GREP
3507 fi
3508
3509 fi
3510 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3511 $as_echo "$ac_cv_path_GREP" >&6; }
3512 GREP="$ac_cv_path_GREP"
3513
3514
3515 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3516 $as_echo_n "checking for egrep... " >&6; }
3517 if test "${ac_cv_path_EGREP+set}" = set; then
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3521 then ac_cv_path_EGREP="$GREP -E"
3522 else
3523 if test -z "$EGREP"; then
3524 ac_path_EGREP_found=false
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3528 do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_prog in egrep; do
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3534 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3535 # Check for GNU ac_path_EGREP and select it if it is found.
3536 # Check for GNU $ac_path_EGREP
3537 case `"$ac_path_EGREP" --version 2>&1` in
3538 *GNU*)
3539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3540 *)
3541 ac_count=0
3542 $as_echo_n 0123456789 >"conftest.in"
3543 while :
3544 do
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
3548 $as_echo 'EGREP' >> "conftest.nl"
3549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551 ac_count=`expr $ac_count + 1`
3552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_EGREP="$ac_path_EGREP"
3555 ac_path_EGREP_max=$ac_count
3556 fi
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3559 done
3560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3561 esac
3562
3563 $ac_path_EGREP_found && break 3
3564 done
3565 done
3566 done
3567 IFS=$as_save_IFS
3568 if test -z "$ac_cv_path_EGREP"; then
3569 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3570 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3571 { (exit 1); exit 1; }; }
3572 fi
3573 else
3574 ac_cv_path_EGREP=$EGREP
3575 fi
3576
3577 fi
3578 fi
3579 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3580 $as_echo "$ac_cv_path_EGREP" >&6; }
3581 EGREP="$ac_cv_path_EGREP"
3582
3583
3584 if test $ac_cv_c_compiler_gnu = yes; then
3585 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3586 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3587 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3588 $as_echo_n "(cached) " >&6
3589 else
3590 ac_pattern="Autoconf.*'x'"
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <sgtty.h>
3598 Autoconf TIOCGETP
3599 _ACEOF
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3602 ac_cv_prog_gcc_traditional=yes
3603 else
3604 ac_cv_prog_gcc_traditional=no
3605 fi
3606 rm -f conftest*
3607
3608
3609 if test $ac_cv_prog_gcc_traditional = no; then
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 #include <termio.h>
3617 Autoconf TCGETA
3618 _ACEOF
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3621 ac_cv_prog_gcc_traditional=yes
3622 fi
3623 rm -f conftest*
3624
3625 fi
3626 fi
3627 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3628 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3629 if test $ac_cv_prog_gcc_traditional = yes; then
3630 CC="$CC -traditional"
3631 fi
3632 fi
3633
3634 # Find a good install program. We prefer a C program (faster),
3635 # so one script is as good as another. But avoid the broken or
3636 # incompatible versions:
3637 # SysV /etc/install, /usr/sbin/install
3638 # SunOS /usr/etc/install
3639 # IRIX /sbin/install
3640 # AIX /bin/install
3641 # AmigaOS /C/install, which installs bootblocks on floppy discs
3642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3645 # OS/2's system install, which has a completely different semantic
3646 # ./install, which can be erroneously created by make from ./install.sh.
3647 # Reject install programs that cannot install multiple files.
3648 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3649 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3650 if test -z "$INSTALL"; then
3651 if test "${ac_cv_path_install+set}" = set; then
3652 $as_echo_n "(cached) " >&6
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 # Account for people who put trailing slashes in PATH elements.
3660 case $as_dir/ in
3661 ./ | .// | /cC/* | \
3662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3664 /usr/ucb/* ) ;;
3665 *)
3666 # OSF1 and SCO ODT 3.0 have their own names for install.
3667 # Don't use installbsd from OSF since it installs stuff as root
3668 # by default.
3669 for ac_prog in ginstall scoinst install; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3672 if test $ac_prog = install &&
3673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3674 # AIX install. It has an incompatible calling convention.
3675 :
3676 elif test $ac_prog = install &&
3677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3678 # program-specific install script used by HP pwplus--don't use.
3679 :
3680 else
3681 rm -rf conftest.one conftest.two conftest.dir
3682 echo one > conftest.one
3683 echo two > conftest.two
3684 mkdir conftest.dir
3685 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3686 test -s conftest.one && test -s conftest.two &&
3687 test -s conftest.dir/conftest.one &&
3688 test -s conftest.dir/conftest.two
3689 then
3690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691 break 3
3692 fi
3693 fi
3694 fi
3695 done
3696 done
3697 ;;
3698 esac
3699
3700 done
3701 IFS=$as_save_IFS
3702
3703 rm -rf conftest.one conftest.two conftest.dir
3704
3705 fi
3706 if test "${ac_cv_path_install+set}" = set; then
3707 INSTALL=$ac_cv_path_install
3708 else
3709 # As a last resort, use the slow shell script. Don't cache a
3710 # value for INSTALL within a source directory, because that will
3711 # break other packages using the cache if that directory is
3712 # removed, or if the value is a relative name.
3713 INSTALL=$ac_install_sh
3714 fi
3715 fi
3716 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3717 $as_echo "$INSTALL" >&6; }
3718
3719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720 # It thinks the first close brace ends the variable substitution.
3721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3722
3723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3724
3725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3726
3727 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3728 $as_echo_n "checking whether ln -s works... " >&6; }
3729 LN_S=$as_ln_s
3730 if test "$LN_S" = "ln -s"; then
3731 { $as_echo "$as_me:$LINENO: result: yes" >&5
3732 $as_echo "yes" >&6; }
3733 else
3734 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3735 $as_echo "no, using $LN_S" >&6; }
3736 fi
3737
3738 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3739 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3740 set x ${MAKE-make}
3741 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3742 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3743 $as_echo_n "(cached) " >&6
3744 else
3745 cat >conftest.make <<\_ACEOF
3746 SHELL = /bin/sh
3747 all:
3748 @echo '@@@%%%=$(MAKE)=@@@%%%'
3749 _ACEOF
3750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3752 *@@@%%%=?*=@@@%%%*)
3753 eval ac_cv_prog_make_${ac_make}_set=yes;;
3754 *)
3755 eval ac_cv_prog_make_${ac_make}_set=no;;
3756 esac
3757 rm -f conftest.make
3758 fi
3759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3760 { $as_echo "$as_me:$LINENO: result: yes" >&5
3761 $as_echo "yes" >&6; }
3762 SET_MAKE=
3763 else
3764 { $as_echo "$as_me:$LINENO: result: no" >&5
3765 $as_echo "no" >&6; }
3766 SET_MAKE="MAKE=${MAKE-make}"
3767 fi
3768
3769 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3771 if test -z "$MKDIR_P"; then
3772 if test "${ac_cv_path_mkdir+set}" = set; then
3773 $as_echo_n "(cached) " >&6
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3777 do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_prog in mkdir gmkdir; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3784 'mkdir (GNU coreutils) '* | \
3785 'mkdir (coreutils) '* | \
3786 'mkdir (fileutils) '4.1*)
3787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3788 break 3;;
3789 esac
3790 done
3791 done
3792 done
3793 IFS=$as_save_IFS
3794
3795 fi
3796
3797 if test "${ac_cv_path_mkdir+set}" = set; then
3798 MKDIR_P="$ac_cv_path_mkdir -p"
3799 else
3800 # As a last resort, use the slow shell script. Don't cache a
3801 # value for MKDIR_P within a source directory, because that will
3802 # break other packages using the cache if that directory is
3803 # removed, or if the value is a relative name.
3804 test -d ./--version && rmdir ./--version
3805 MKDIR_P="$ac_install_sh -d"
3806 fi
3807 fi
3808 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3809 $as_echo "$MKDIR_P" >&6; }
3810
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_RANLIB+set}" = set; then
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$RANLIB"; then
3820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 RANLIB=$ac_cv_prog_RANLIB
3840 if test -n "$RANLIB"; then
3841 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3842 $as_echo "$RANLIB" >&6; }
3843 else
3844 { $as_echo "$as_me:$LINENO: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849 fi
3850 if test -z "$ac_cv_prog_RANLIB"; then
3851 ac_ct_RANLIB=$RANLIB
3852 # Extract the first word of "ranlib", so it can be a program name with args.
3853 set dummy ranlib; ac_word=$2
3854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$ac_ct_RANLIB"; then
3860 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_RANLIB="ranlib"
3870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3880 if test -n "$ac_ct_RANLIB"; then
3881 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3882 $as_echo "$ac_ct_RANLIB" >&6; }
3883 else
3884 { $as_echo "$as_me:$LINENO: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888 if test "x$ac_ct_RANLIB" = x; then
3889 RANLIB=":"
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892 yes:)
3893 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897 RANLIB=$ac_ct_RANLIB
3898 fi
3899 else
3900 RANLIB="$ac_cv_prog_RANLIB"
3901 fi
3902
3903 # Extract the first word of "cflow", so it can be a program name with args.
3904 set dummy cflow; ac_word=$2
3905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3908 $as_echo_n "(cached) " >&6
3909 else
3910 case $CFLOW_CMD in
3911 [\\/]* | ?:[\\/]*)
3912 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3913 ;;
3914 *)
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926 done
3927 done
3928 IFS=$as_save_IFS
3929
3930 ;;
3931 esac
3932 fi
3933 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3934 if test -n "$CFLOW_CMD"; then
3935 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3936 $as_echo "$CFLOW_CMD" >&6; }
3937 else
3938 { $as_echo "$as_me:$LINENO: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943 # Extract the first word of "cscope", so it can be a program name with args.
3944 set dummy cscope; ac_word=$2
3945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3948 $as_echo_n "(cached) " >&6
3949 else
3950 case $CSCOPE_CMD in
3951 [\\/]* | ?:[\\/]*)
3952 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3953 ;;
3954 *)
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966 done
3967 done
3968 IFS=$as_save_IFS
3969
3970 ;;
3971 esac
3972 fi
3973 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3974 if test -n "$CSCOPE_CMD"; then
3975 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3976 $as_echo "$CSCOPE_CMD" >&6; }
3977 else
3978 { $as_echo "$as_me:$LINENO: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983
3984 ################################################################################
3985
3986
3987
3988
3989
3990 ac_header_dirent=no
3991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3992 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3993 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3994 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 $as_echo_n "(cached) " >&6
3997 else
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #include <sys/types.h>
4005 #include <$ac_hdr>
4006
4007 int
4008 main ()
4009 {
4010 if ((DIR *) 0)
4011 return 0;
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 eval "$as_ac_Header=yes"
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 eval "$as_ac_Header=no"
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 ac_res=`eval 'as_val=${'$as_ac_Header'}
4045 $as_echo "$as_val"'`
4046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4047 $as_echo "$ac_res" >&6; }
4048 as_val=`eval 'as_val=${'$as_ac_Header'}
4049 $as_echo "$as_val"'`
4050 if test "x$as_val" = x""yes; then
4051 cat >>confdefs.h <<_ACEOF
4052 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4053 _ACEOF
4054
4055 ac_header_dirent=$ac_hdr; break
4056 fi
4057
4058 done
4059 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4060 if test $ac_header_dirent = dirent.h; then
4061 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4062 $as_echo_n "checking for library containing opendir... " >&6; }
4063 if test "${ac_cv_search_opendir+set}" = set; then
4064 $as_echo_n "(cached) " >&6
4065 else
4066 ac_func_search_save_LIBS=$LIBS
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073
4074 /* Override any GCC internal prototype to avoid an error.
4075 Use char because int might match the return type of a GCC
4076 builtin and then its argument prototype would still apply. */
4077 #ifdef __cplusplus
4078 extern "C"
4079 #endif
4080 char opendir ();
4081 int
4082 main ()
4083 {
4084 return opendir ();
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 for ac_lib in '' dir; do
4090 if test -z "$ac_lib"; then
4091 ac_res="none required"
4092 else
4093 ac_res=-l$ac_lib
4094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4095 fi
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (ac_try="$ac_link"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103 $as_echo "$ac_try_echo") >&5
4104 (eval "$ac_link") 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } && {
4111 test -z "$ac_c_werror_flag" ||
4112 test ! -s conftest.err
4113 } && test -s conftest$ac_exeext && {
4114 test "$cross_compiling" = yes ||
4115 $as_test_x conftest$ac_exeext
4116 }; then
4117 ac_cv_search_opendir=$ac_res
4118 else
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122
4123 fi
4124
4125 rm -rf conftest.dSYM
4126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4127 conftest$ac_exeext
4128 if test "${ac_cv_search_opendir+set}" = set; then
4129 break
4130 fi
4131 done
4132 if test "${ac_cv_search_opendir+set}" = set; then
4133 :
4134 else
4135 ac_cv_search_opendir=no
4136 fi
4137 rm conftest.$ac_ext
4138 LIBS=$ac_func_search_save_LIBS
4139 fi
4140 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4141 $as_echo "$ac_cv_search_opendir" >&6; }
4142 ac_res=$ac_cv_search_opendir
4143 if test "$ac_res" != no; then
4144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4145
4146 fi
4147
4148 else
4149 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4150 $as_echo_n "checking for library containing opendir... " >&6; }
4151 if test "${ac_cv_search_opendir+set}" = set; then
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_func_search_save_LIBS=$LIBS
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161
4162 /* Override any GCC internal prototype to avoid an error.
4163 Use char because int might match the return type of a GCC
4164 builtin and then its argument prototype would still apply. */
4165 #ifdef __cplusplus
4166 extern "C"
4167 #endif
4168 char opendir ();
4169 int
4170 main ()
4171 {
4172 return opendir ();
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 for ac_lib in '' x; do
4178 if test -z "$ac_lib"; then
4179 ac_res="none required"
4180 else
4181 ac_res=-l$ac_lib
4182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4183 fi
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (ac_try="$ac_link"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191 $as_echo "$ac_try_echo") >&5
4192 (eval "$ac_link") 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && {
4199 test -z "$ac_c_werror_flag" ||
4200 test ! -s conftest.err
4201 } && test -s conftest$ac_exeext && {
4202 test "$cross_compiling" = yes ||
4203 $as_test_x conftest$ac_exeext
4204 }; then
4205 ac_cv_search_opendir=$ac_res
4206 else
4207 $as_echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210
4211 fi
4212
4213 rm -rf conftest.dSYM
4214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4215 conftest$ac_exeext
4216 if test "${ac_cv_search_opendir+set}" = set; then
4217 break
4218 fi
4219 done
4220 if test "${ac_cv_search_opendir+set}" = set; then
4221 :
4222 else
4223 ac_cv_search_opendir=no
4224 fi
4225 rm conftest.$ac_ext
4226 LIBS=$ac_func_search_save_LIBS
4227 fi
4228 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4229 $as_echo "$ac_cv_search_opendir" >&6; }
4230 ac_res=$ac_cv_search_opendir
4231 if test "$ac_res" != no; then
4232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4233
4234 fi
4235
4236 fi
4237
4238 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4239 $as_echo_n "checking for ANSI C header files... " >&6; }
4240 if test "${ac_cv_header_stdc+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4242 else
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <stdlib.h>
4250 #include <stdarg.h>
4251 #include <string.h>
4252 #include <float.h>
4253
4254 int
4255 main ()
4256 {
4257
4258 ;
4259 return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.$ac_objext
4263 if { (ac_try="$ac_compile"
4264 case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4269 $as_echo "$ac_try_echo") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && {
4277 test -z "$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4279 } && test -s conftest.$ac_objext; then
4280 ac_cv_header_stdc=yes
4281 else
4282 $as_echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 ac_cv_header_stdc=no
4286 fi
4287
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289
4290 if test $ac_cv_header_stdc = yes; then
4291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <string.h>
4299
4300 _ACEOF
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "memchr" >/dev/null 2>&1; then
4303 :
4304 else
4305 ac_cv_header_stdc=no
4306 fi
4307 rm -f conftest*
4308
4309 fi
4310
4311 if test $ac_cv_header_stdc = yes; then
4312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <stdlib.h>
4320
4321 _ACEOF
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "free" >/dev/null 2>&1; then
4324 :
4325 else
4326 ac_cv_header_stdc=no
4327 fi
4328 rm -f conftest*
4329
4330 fi
4331
4332 if test $ac_cv_header_stdc = yes; then
4333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334 if test "$cross_compiling" = yes; then
4335 :
4336 else
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #include <ctype.h>
4344 #include <stdlib.h>
4345 #if ((' ' & 0x0FF) == 0x020)
4346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4348 #else
4349 # define ISLOWER(c) \
4350 (('a' <= (c) && (c) <= 'i') \
4351 || ('j' <= (c) && (c) <= 'r') \
4352 || ('s' <= (c) && (c) <= 'z'))
4353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4354 #endif
4355
4356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4357 int
4358 main ()
4359 {
4360 int i;
4361 for (i = 0; i < 256; i++)
4362 if (XOR (islower (i), ISLOWER (i))
4363 || toupper (i) != TOUPPER (i))
4364 return 2;
4365 return 0;
4366 }
4367 _ACEOF
4368 rm -f conftest$ac_exeext
4369 if { (ac_try="$ac_link"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375 $as_echo "$ac_try_echo") >&5
4376 (eval "$ac_link") 2>&5
4377 ac_status=$?
4378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4380 { (case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385 $as_echo "$ac_try_echo") >&5
4386 (eval "$ac_try") 2>&5
4387 ac_status=$?
4388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 :
4391 else
4392 $as_echo "$as_me: program exited with status $ac_status" >&5
4393 $as_echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 ( exit $ac_status )
4397 ac_cv_header_stdc=no
4398 fi
4399 rm -rf conftest.dSYM
4400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4401 fi
4402
4403
4404 fi
4405 fi
4406 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4407 $as_echo "$ac_cv_header_stdc" >&6; }
4408 if test $ac_cv_header_stdc = yes; then
4409
4410 cat >>confdefs.h <<\_ACEOF
4411 #define STDC_HEADERS 1
4412 _ACEOF
4413
4414 fi
4415
4416 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4417 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4418 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4419 $as_echo_n "(cached) " >&6
4420 else
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 #include <sys/wait.h>
4429 #ifndef WEXITSTATUS
4430 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4431 #endif
4432 #ifndef WIFEXITED
4433 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4434 #endif
4435
4436 int
4437 main ()
4438 {
4439 int s;
4440 wait (&s);
4441 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453 $as_echo "$ac_try_echo") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_header_sys_wait_h=yes
4465 else
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 ac_cv_header_sys_wait_h=no
4470 fi
4471
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 fi
4474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4475 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4476 if test $ac_cv_header_sys_wait_h = yes; then
4477
4478 cat >>confdefs.h <<\_ACEOF
4479 #define HAVE_SYS_WAIT_H 1
4480 _ACEOF
4481
4482 fi
4483
4484 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4485 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4486 if test "${ac_cv_header_time+set}" = set; then
4487 $as_echo_n "(cached) " >&6
4488 else
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h. */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include <sys/types.h>
4496 #include <sys/time.h>
4497 #include <time.h>
4498
4499 int
4500 main ()
4501 {
4502 if ((struct tm *) 0)
4503 return 0;
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4515 $as_echo "$ac_try_echo") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } && {
4523 test -z "$ac_c_werror_flag" ||
4524 test ! -s conftest.err
4525 } && test -s conftest.$ac_objext; then
4526 ac_cv_header_time=yes
4527 else
4528 $as_echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ac_cv_header_time=no
4532 fi
4533
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 fi
4536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4537 $as_echo "$ac_cv_header_time" >&6; }
4538 if test $ac_cv_header_time = yes; then
4539
4540 cat >>confdefs.h <<\_ACEOF
4541 #define TIME_WITH_SYS_TIME 1
4542 _ACEOF
4543
4544 fi
4545
4546
4547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4558 inttypes.h stdint.h unistd.h
4559 do
4560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 $as_echo_n "checking for $ac_header... " >&6; }
4563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4564 $as_echo_n "(cached) " >&6
4565 else
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 $ac_includes_default
4573
4574 #include <$ac_header>
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (ac_try="$ac_compile"
4578 case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4583 $as_echo "$ac_try_echo") >&5
4584 (eval "$ac_compile") 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && {
4591 test -z "$ac_c_werror_flag" ||
4592 test ! -s conftest.err
4593 } && test -s conftest.$ac_objext; then
4594 eval "$as_ac_Header=yes"
4595 else
4596 $as_echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 eval "$as_ac_Header=no"
4600 fi
4601
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 fi
4604 ac_res=`eval 'as_val=${'$as_ac_Header'}
4605 $as_echo "$as_val"'`
4606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4607 $as_echo "$ac_res" >&6; }
4608 as_val=`eval 'as_val=${'$as_ac_Header'}
4609 $as_echo "$as_val"'`
4610 if test "x$as_val" = x""yes; then
4611 cat >>confdefs.h <<_ACEOF
4612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 _ACEOF
4614
4615 fi
4616
4617 done
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4634 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4635 do
4636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4639 $as_echo_n "checking for $ac_header... " >&6; }
4640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4641 $as_echo_n "(cached) " >&6
4642 fi
4643 ac_res=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4646 $as_echo "$ac_res" >&6; }
4647 else
4648 # Is the header compilable?
4649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4650 $as_echo_n "checking $ac_header usability... " >&6; }
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 $ac_includes_default
4658 #include <$ac_header>
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (ac_try="$ac_compile"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4667 $as_echo "$ac_try_echo") >&5
4668 (eval "$ac_compile") 2>conftest.er1
4669 ac_status=$?
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest.$ac_objext; then
4678 ac_header_compiler=yes
4679 else
4680 $as_echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 ac_header_compiler=no
4684 fi
4685
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688 $as_echo "$ac_header_compiler" >&6; }
4689
4690 # Is the header present?
4691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692 $as_echo_n "checking $ac_header presence... " >&6; }
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 #include <$ac_header>
4700 _ACEOF
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4707 $as_echo "$ac_try_echo") >&5
4708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null && {
4715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4716 test ! -s conftest.err
4717 }; then
4718 ac_header_preproc=yes
4719 else
4720 $as_echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 ac_header_preproc=no
4724 fi
4725
4726 rm -f conftest.err conftest.$ac_ext
4727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728 $as_echo "$ac_header_preproc" >&6; }
4729
4730 # So? What about this header?
4731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4732 yes:no: )
4733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4737 ac_header_preproc=yes
4738 ;;
4739 no:yes:* )
4740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4747 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4752
4753 ;;
4754 esac
4755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4756 $as_echo_n "checking for $ac_header... " >&6; }
4757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4758 $as_echo_n "(cached) " >&6
4759 else
4760 eval "$as_ac_Header=\$ac_header_preproc"
4761 fi
4762 ac_res=`eval 'as_val=${'$as_ac_Header'}
4763 $as_echo "$as_val"'`
4764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4765 $as_echo "$ac_res" >&6; }
4766
4767 fi
4768 as_val=`eval 'as_val=${'$as_ac_Header'}
4769 $as_echo "$as_val"'`
4770 if test "x$as_val" = x""yes; then
4771 cat >>confdefs.h <<_ACEOF
4772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773 _ACEOF
4774
4775 else
4776 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4777 $as_echo "$as_me: error: bailing out" >&2;}
4778 { (exit 1); exit 1; }; }
4779 fi
4780
4781 done
4782
4783
4784 case "$host_os" in
4785 linux*)
4786
4787
4788
4789 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4790 do
4791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4794 $as_echo_n "checking for $ac_header... " >&6; }
4795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4796 $as_echo_n "(cached) " >&6
4797 fi
4798 ac_res=`eval 'as_val=${'$as_ac_Header'}
4799 $as_echo "$as_val"'`
4800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4801 $as_echo "$ac_res" >&6; }
4802 else
4803 # Is the header compilable?
4804 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4805 $as_echo_n "checking $ac_header usability... " >&6; }
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4813 #include <$ac_header>
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (ac_try="$ac_compile"
4817 case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820 esac
4821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822 $as_echo "$ac_try_echo") >&5
4823 (eval "$ac_compile") 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && {
4830 test -z "$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 } && test -s conftest.$ac_objext; then
4833 ac_header_compiler=yes
4834 else
4835 $as_echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 ac_header_compiler=no
4839 fi
4840
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4843 $as_echo "$ac_header_compiler" >&6; }
4844
4845 # Is the header present?
4846 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4847 $as_echo_n "checking $ac_header presence... " >&6; }
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <$ac_header>
4855 _ACEOF
4856 if { (ac_try="$ac_cpp conftest.$ac_ext"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null && {
4870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 }; then
4873 ac_header_preproc=yes
4874 else
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ac_header_preproc=no
4879 fi
4880
4881 rm -f conftest.err conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883 $as_echo "$ac_header_preproc" >&6; }
4884
4885 # So? What about this header?
4886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4887 yes:no: )
4888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4892 ac_header_preproc=yes
4893 ;;
4894 no:yes:* )
4895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4896 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4898 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4900 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4902 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4906 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4907
4908 ;;
4909 esac
4910 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 $as_echo_n "checking for $ac_header... " >&6; }
4912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4913 $as_echo_n "(cached) " >&6
4914 else
4915 eval "$as_ac_Header=\$ac_header_preproc"
4916 fi
4917 ac_res=`eval 'as_val=${'$as_ac_Header'}
4918 $as_echo "$as_val"'`
4919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4920 $as_echo "$ac_res" >&6; }
4921
4922 fi
4923 as_val=`eval 'as_val=${'$as_ac_Header'}
4924 $as_echo "$as_val"'`
4925 if test "x$as_val" = x""yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928 _ACEOF
4929
4930 else
4931 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4932 $as_echo "$as_me: error: bailing out" >&2;}
4933 { (exit 1); exit 1; }; }
4934 fi
4935
4936 done
4937 ;;
4938 darwin*)
4939
4940
4941 for ac_header in machine/endian.h sys/disk.h
4942 do
4943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4946 $as_echo_n "checking for $ac_header... " >&6; }
4947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4948 $as_echo_n "(cached) " >&6
4949 fi
4950 ac_res=`eval 'as_val=${'$as_ac_Header'}
4951 $as_echo "$as_val"'`
4952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4953 $as_echo "$ac_res" >&6; }
4954 else
4955 # Is the header compilable?
4956 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4957 $as_echo_n "checking $ac_header usability... " >&6; }
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4965 #include <$ac_header>
4966 _ACEOF
4967 rm -f conftest.$ac_objext
4968 if { (ac_try="$ac_compile"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4974 $as_echo "$ac_try_echo") >&5
4975 (eval "$ac_compile") 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } && {
4982 test -z "$ac_c_werror_flag" ||
4983 test ! -s conftest.err
4984 } && test -s conftest.$ac_objext; then
4985 ac_header_compiler=yes
4986 else
4987 $as_echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 ac_header_compiler=no
4991 fi
4992
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4995 $as_echo "$ac_header_compiler" >&6; }
4996
4997 # Is the header present?
4998 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4999 $as_echo_n "checking $ac_header presence... " >&6; }
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #include <$ac_header>
5007 _ACEOF
5008 if { (ac_try="$ac_cpp conftest.$ac_ext"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 }; then
5025 ac_header_preproc=yes
5026 else
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 ac_header_preproc=no
5031 fi
5032
5033 rm -f conftest.err conftest.$ac_ext
5034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5035 $as_echo "$ac_header_preproc" >&6; }
5036
5037 # So? What about this header?
5038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5039 yes:no: )
5040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5041 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5043 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5044 ac_header_preproc=yes
5045 ;;
5046 no:yes:* )
5047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5048 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5050 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5052 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5054 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5058 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5059
5060 ;;
5061 esac
5062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5063 $as_echo_n "checking for $ac_header... " >&6; }
5064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5065 $as_echo_n "(cached) " >&6
5066 else
5067 eval "$as_ac_Header=\$ac_header_preproc"
5068 fi
5069 ac_res=`eval 'as_val=${'$as_ac_Header'}
5070 $as_echo "$as_val"'`
5071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5072 $as_echo "$ac_res" >&6; }
5073
5074 fi
5075 as_val=`eval 'as_val=${'$as_ac_Header'}
5076 $as_echo "$as_val"'`
5077 if test "x$as_val" = x""yes; then
5078 cat >>confdefs.h <<_ACEOF
5079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5080 _ACEOF
5081
5082 else
5083 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5084 $as_echo "$as_me: error: bailing out" >&2;}
5085 { (exit 1); exit 1; }; }
5086 fi
5087
5088 done
5089 ;;
5090 esac
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5109 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5110 sys/types.h unistd.h
5111 do
5112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5115 $as_echo_n "checking for $ac_header... " >&6; }
5116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5117 $as_echo_n "(cached) " >&6
5118 fi
5119 ac_res=`eval 'as_val=${'$as_ac_Header'}
5120 $as_echo "$as_val"'`
5121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5122 $as_echo "$ac_res" >&6; }
5123 else
5124 # Is the header compilable?
5125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5126 $as_echo_n "checking $ac_header usability... " >&6; }
5127 cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h. */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 $ac_includes_default
5134 #include <$ac_header>
5135 _ACEOF
5136 rm -f conftest.$ac_objext
5137 if { (ac_try="$ac_compile"
5138 case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141 esac
5142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5143 $as_echo "$ac_try_echo") >&5
5144 (eval "$ac_compile") 2>conftest.er1
5145 ac_status=$?
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } && {
5151 test -z "$ac_c_werror_flag" ||
5152 test ! -s conftest.err
5153 } && test -s conftest.$ac_objext; then
5154 ac_header_compiler=yes
5155 else
5156 $as_echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 ac_header_compiler=no
5160 fi
5161
5162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164 $as_echo "$ac_header_compiler" >&6; }
5165
5166 # Is the header present?
5167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168 $as_echo_n "checking $ac_header presence... " >&6; }
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #include <$ac_header>
5176 _ACEOF
5177 if { (ac_try="$ac_cpp conftest.$ac_ext"
5178 case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181 esac
5182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5183 $as_echo "$ac_try_echo") >&5
5184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } >/dev/null && {
5191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 }; then
5194 ac_header_preproc=yes
5195 else
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 ac_header_preproc=no
5200 fi
5201
5202 rm -f conftest.err conftest.$ac_ext
5203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204 $as_echo "$ac_header_preproc" >&6; }
5205
5206 # So? What about this header?
5207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5208 yes:no: )
5209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5213 ac_header_preproc=yes
5214 ;;
5215 no:yes:* )
5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5228
5229 ;;
5230 esac
5231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 $as_echo_n "checking for $ac_header... " >&6; }
5233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5234 $as_echo_n "(cached) " >&6
5235 else
5236 eval "$as_ac_Header=\$ac_header_preproc"
5237 fi
5238 ac_res=`eval 'as_val=${'$as_ac_Header'}
5239 $as_echo "$as_val"'`
5240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5241 $as_echo "$ac_res" >&6; }
5242
5243 fi
5244 as_val=`eval 'as_val=${'$as_ac_Header'}
5245 $as_echo "$as_val"'`
5246 if test "x$as_val" = x""yes; then
5247 cat >>confdefs.h <<_ACEOF
5248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5249 _ACEOF
5250
5251 else
5252 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5253 $as_echo "$as_me: error: bailing out" >&2;}
5254 { (exit 1); exit 1; }; }
5255 fi
5256
5257 done
5258
5259
5260
5261 for ac_header in termios.h sys/statvfs.h
5262 do
5263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5266 $as_echo_n "checking for $ac_header... " >&6; }
5267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5268 $as_echo_n "(cached) " >&6
5269 fi
5270 ac_res=`eval 'as_val=${'$as_ac_Header'}
5271 $as_echo "$as_val"'`
5272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5273 $as_echo "$ac_res" >&6; }
5274 else
5275 # Is the header compilable?
5276 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5277 $as_echo_n "checking $ac_header usability... " >&6; }
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 $ac_includes_default
5285 #include <$ac_header>
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5294 $as_echo "$ac_try_echo") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
5305 ac_header_compiler=yes
5306 else
5307 $as_echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310 ac_header_compiler=no
5311 fi
5312
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5315 $as_echo "$ac_header_compiler" >&6; }
5316
5317 # Is the header present?
5318 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5319 $as_echo_n "checking $ac_header presence... " >&6; }
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <$ac_header>
5327 _ACEOF
5328 if { (ac_try="$ac_cpp conftest.$ac_ext"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null && {
5342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 }; then
5345 ac_header_preproc=yes
5346 else
5347 $as_echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 ac_header_preproc=no
5351 fi
5352
5353 rm -f conftest.err conftest.$ac_ext
5354 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355 $as_echo "$ac_header_preproc" >&6; }
5356
5357 # So? What about this header?
5358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5359 yes:no: )
5360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5364 ac_header_preproc=yes
5365 ;;
5366 no:yes:* )
5367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5379
5380 ;;
5381 esac
5382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 $as_echo_n "checking for $ac_header... " >&6; }
5384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385 $as_echo_n "(cached) " >&6
5386 else
5387 eval "$as_ac_Header=\$ac_header_preproc"
5388 fi
5389 ac_res=`eval 'as_val=${'$as_ac_Header'}
5390 $as_echo "$as_val"'`
5391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5392 $as_echo "$ac_res" >&6; }
5393
5394 fi
5395 as_val=`eval 'as_val=${'$as_ac_Header'}
5396 $as_echo "$as_val"'`
5397 if test "x$as_val" = x""yes; then
5398 cat >>confdefs.h <<_ACEOF
5399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400 _ACEOF
5401
5402 fi
5403
5404 done
5405
5406
5407 ################################################################################
5408 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5409 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5410 if test "${ac_cv_c_const+set}" = set; then
5411 $as_echo_n "(cached) " >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419
5420 int
5421 main ()
5422 {
5423 /* FIXME: Include the comments suggested by Paul. */
5424 #ifndef __cplusplus
5425 /* Ultrix mips cc rejects this. */
5426 typedef int charset[2];
5427 const charset cs;
5428 /* SunOS 4.1.1 cc rejects this. */
5429 char const *const *pcpcc;
5430 char **ppc;
5431 /* NEC SVR4.0.2 mips cc rejects this. */
5432 struct point {int x, y;};
5433 static struct point const zero = {0,0};
5434 /* AIX XL C 1.02.0.0 rejects this.
5435 It does not let you subtract one const X* pointer from another in
5436 an arm of an if-expression whose if-part is not a constant
5437 expression */
5438 const char *g = "string";
5439 pcpcc = &g + (g ? g-g : 0);
5440 /* HPUX 7.0 cc rejects these. */
5441 ++pcpcc;
5442 ppc = (char**) pcpcc;
5443 pcpcc = (char const *const *) ppc;
5444 { /* SCO 3.2v4 cc rejects this. */
5445 char *t;
5446 char const *s = 0 ? (char *) 0 : (char const *) 0;
5447
5448 *t++ = 0;
5449 if (s) return 0;
5450 }
5451 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5452 int x[] = {25, 17};
5453 const int *foo = &x[0];
5454 ++foo;
5455 }
5456 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5457 typedef const int *iptr;
5458 iptr p = 0;
5459 ++p;
5460 }
5461 { /* AIX XL C 1.02.0.0 rejects this saying
5462 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5463 struct s { int j; const int *ap[3]; };
5464 struct s *b; b->j = 5;
5465 }
5466 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5467 const int foo = 10;
5468 if (!foo) return 0;
5469 }
5470 return !cs[0] && !zero.x;
5471 #endif
5472
5473 ;
5474 return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (ac_try="$ac_compile"
5479 case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482 esac
5483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5484 $as_echo "$ac_try_echo") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5495 ac_cv_c_const=yes
5496 else
5497 $as_echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_cv_c_const=no
5501 fi
5502
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 fi
5505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5506 $as_echo "$ac_cv_c_const" >&6; }
5507 if test $ac_cv_c_const = no; then
5508
5509 cat >>confdefs.h <<\_ACEOF
5510 #define const /**/
5511 _ACEOF
5512
5513 fi
5514
5515 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5516 $as_echo_n "checking for inline... " >&6; }
5517 if test "${ac_cv_c_inline+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5519 else
5520 ac_cv_c_inline=no
5521 for ac_kw in inline __inline__ __inline; do
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #ifndef __cplusplus
5529 typedef int foo_t;
5530 static $ac_kw foo_t static_foo () {return 0; }
5531 $ac_kw foo_t foo () {return 0; }
5532 #endif
5533
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542 $as_echo "$ac_try_echo") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553 ac_cv_c_inline=$ac_kw
5554 else
5555 $as_echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558
5559 fi
5560
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 test "$ac_cv_c_inline" != no && break
5563 done
5564
5565 fi
5566 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5567 $as_echo "$ac_cv_c_inline" >&6; }
5568
5569
5570 case $ac_cv_c_inline in
5571 inline | yes) ;;
5572 *)
5573 case $ac_cv_c_inline in
5574 no) ac_val=;;
5575 *) ac_val=$ac_cv_c_inline;;
5576 esac
5577 cat >>confdefs.h <<_ACEOF
5578 #ifndef __cplusplus
5579 #define inline $ac_val
5580 #endif
5581 _ACEOF
5582 ;;
5583 esac
5584
5585 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5586 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5587 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5588 $as_echo_n "(cached) " >&6
5589 else
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 $ac_includes_default
5597 int
5598 main ()
5599 {
5600 static struct stat ac_aggr;
5601 if (ac_aggr.st_rdev)
5602 return 0;
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5614 $as_echo "$ac_try_echo") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.$ac_objext; then
5625 ac_cv_member_struct_stat_st_rdev=yes
5626 else
5627 $as_echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 $ac_includes_default
5637 int
5638 main ()
5639 {
5640 static struct stat ac_aggr;
5641 if (sizeof ac_aggr.st_rdev)
5642 return 0;
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654 $as_echo "$ac_try_echo") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_member_struct_stat_st_rdev=yes
5666 else
5667 $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 ac_cv_member_struct_stat_st_rdev=no
5671 fi
5672
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 fi
5675
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 fi
5678 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5679 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5680 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5681
5682 cat >>confdefs.h <<_ACEOF
5683 #define HAVE_STRUCT_STAT_ST_RDEV 1
5684 _ACEOF
5685
5686
5687 fi
5688
5689 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5690 $as_echo_n "checking for off_t... " >&6; }
5691 if test "${ac_cv_type_off_t+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5693 else
5694 ac_cv_type_off_t=no
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5702 int
5703 main ()
5704 {
5705 if (sizeof (off_t))
5706 return 0;
5707 ;
5708 return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (ac_try="$ac_compile"
5713 case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5718 $as_echo "$ac_try_echo") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.$ac_objext; then
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 $ac_includes_default
5736 int
5737 main ()
5738 {
5739 if (sizeof ((off_t)))
5740 return 0;
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5747 case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750 esac
5751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5752 $as_echo "$ac_try_echo") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 :
5764 else
5765 $as_echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_cv_type_off_t=yes
5769 fi
5770
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 else
5773 $as_echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776
5777 fi
5778
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 fi
5781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5782 $as_echo "$ac_cv_type_off_t" >&6; }
5783 if test "x$ac_cv_type_off_t" = x""yes; then
5784 :
5785 else
5786
5787 cat >>confdefs.h <<_ACEOF
5788 #define off_t long int
5789 _ACEOF
5790
5791 fi
5792
5793 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5794 $as_echo_n "checking for pid_t... " >&6; }
5795 if test "${ac_cv_type_pid_t+set}" = set; then
5796 $as_echo_n "(cached) " >&6
5797 else
5798 ac_cv_type_pid_t=no
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 int
5807 main ()
5808 {
5809 if (sizeof (pid_t))
5810 return 0;
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820 esac
5821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 $ac_includes_default
5840 int
5841 main ()
5842 {
5843 if (sizeof ((pid_t)))
5844 return 0;
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5856 $as_echo "$ac_try_echo") >&5
5857 (eval "$ac_compile") 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && {
5864 test -z "$ac_c_werror_flag" ||
5865 test ! -s conftest.err
5866 } && test -s conftest.$ac_objext; then
5867 :
5868 else
5869 $as_echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5871
5872 ac_cv_type_pid_t=yes
5873 fi
5874
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 else
5877 $as_echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880
5881 fi
5882
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 fi
5885 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5886 $as_echo "$ac_cv_type_pid_t" >&6; }
5887 if test "x$ac_cv_type_pid_t" = x""yes; then
5888 :
5889 else
5890
5891 cat >>confdefs.h <<_ACEOF
5892 #define pid_t int
5893 _ACEOF
5894
5895 fi
5896
5897 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5898 $as_echo_n "checking return type of signal handlers... " >&6; }
5899 if test "${ac_cv_type_signal+set}" = set; then
5900 $as_echo_n "(cached) " >&6
5901 else
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <sys/types.h>
5909 #include <signal.h>
5910
5911 int
5912 main ()
5913 {
5914 return *(signal (0, 0)) (0) == 1;
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
5937 ac_cv_type_signal=int
5938 else
5939 $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_cv_type_signal=void
5943 fi
5944
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 fi
5947 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5948 $as_echo "$ac_cv_type_signal" >&6; }
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define RETSIGTYPE $ac_cv_type_signal
5952 _ACEOF
5953
5954
5955 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5956 $as_echo_n "checking for size_t... " >&6; }
5957 if test "${ac_cv_type_size_t+set}" = set; then
5958 $as_echo_n "(cached) " >&6
5959 else
5960 ac_cv_type_size_t=no
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5968 int
5969 main ()
5970 {
5971 if (sizeof (size_t))
5972 return 0;
5973 ;
5974 return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5984 $as_echo "$ac_try_echo") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6002 int
6003 main ()
6004 {
6005 if (sizeof ((size_t)))
6006 return 0;
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6018 $as_echo "$ac_try_echo") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
6029 :
6030 else
6031 $as_echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 ac_cv_type_size_t=yes
6035 fi
6036
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 else
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042
6043 fi
6044
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 fi
6047 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6048 $as_echo "$ac_cv_type_size_t" >&6; }
6049 if test "x$ac_cv_type_size_t" = x""yes; then
6050 :
6051 else
6052
6053 cat >>confdefs.h <<_ACEOF
6054 #define size_t unsigned int
6055 _ACEOF
6056
6057 fi
6058
6059 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6060 $as_echo_n "checking for mode_t... " >&6; }
6061 if test "${ac_cv_type_mode_t+set}" = set; then
6062 $as_echo_n "(cached) " >&6
6063 else
6064 ac_cv_type_mode_t=no
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6072 int
6073 main ()
6074 {
6075 if (sizeof (mode_t))
6076 return 0;
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6083 case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086 esac
6087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6088 $as_echo "$ac_try_echo") >&5
6089 (eval "$ac_compile") 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest.$ac_objext; then
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 $ac_includes_default
6106 int
6107 main ()
6108 {
6109 if (sizeof ((mode_t)))
6110 return 0;
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 :
6134 else
6135 $as_echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 ac_cv_type_mode_t=yes
6139 fi
6140
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 else
6143 $as_echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146
6147 fi
6148
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 fi
6151 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6152 $as_echo "$ac_cv_type_mode_t" >&6; }
6153 if test "x$ac_cv_type_mode_t" = x""yes; then
6154 :
6155 else
6156
6157 cat >>confdefs.h <<_ACEOF
6158 #define mode_t int
6159 _ACEOF
6160
6161 fi
6162
6163 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6164 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6165 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6166 $as_echo_n "(cached) " >&6
6167 else
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 $ac_includes_default
6175 int
6176 main ()
6177 {
6178 static struct stat ac_aggr;
6179 if (ac_aggr.st_rdev)
6180 return 0;
6181 ;
6182 return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190 esac
6191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6192 $as_echo "$ac_try_echo") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6194 ac_status=$?
6195 grep -v '^ *+' conftest.er1 >conftest.err
6196 rm -f conftest.er1
6197 cat conftest.err >&5
6198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest.$ac_objext; then
6203 ac_cv_member_struct_stat_st_rdev=yes
6204 else
6205 $as_echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6215 int
6216 main ()
6217 {
6218 static struct stat ac_aggr;
6219 if (sizeof ac_aggr.st_rdev)
6220 return 0;
6221 ;
6222 return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6227 case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230 esac
6231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6232 $as_echo "$ac_try_echo") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 ac_cv_member_struct_stat_st_rdev=yes
6244 else
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ac_cv_member_struct_stat_st_rdev=no
6249 fi
6250
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 fi
6253
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 fi
6256 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6257 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6258 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6259
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_STRUCT_STAT_ST_RDEV 1
6262 _ACEOF
6263
6264
6265 fi
6266
6267 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6268 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6269 if test "${ac_cv_struct_tm+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <sys/types.h>
6279 #include <time.h>
6280
6281 int
6282 main ()
6283 {
6284 struct tm tm;
6285 int *p = &tm.tm_sec;
6286 return !p;
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6298 $as_echo "$ac_try_echo") >&5
6299 (eval "$ac_compile") 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.$ac_objext; then
6309 ac_cv_struct_tm=time.h
6310 else
6311 $as_echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 ac_cv_struct_tm=sys/time.h
6315 fi
6316
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 fi
6319 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6320 $as_echo "$ac_cv_struct_tm" >&6; }
6321 if test $ac_cv_struct_tm = sys/time.h; then
6322
6323 cat >>confdefs.h <<\_ACEOF
6324 #define TM_IN_SYS_TIME 1
6325 _ACEOF
6326
6327 fi
6328
6329
6330 ################################################################################
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6349 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6350 uname
6351 do
6352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6354 $as_echo_n "checking for $ac_func... " >&6; }
6355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6356 $as_echo_n "(cached) " >&6
6357 else
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6366 #define $ac_func innocuous_$ac_func
6367
6368 /* System header to define __stub macros and hopefully few prototypes,
6369 which can conflict with char $ac_func (); below.
6370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6371 <limits.h> exists even on freestanding compilers. */
6372
6373 #ifdef __STDC__
6374 # include <limits.h>
6375 #else
6376 # include <assert.h>
6377 #endif
6378
6379 #undef $ac_func
6380
6381 /* Override any GCC internal prototype to avoid an error.
6382 Use char because int might match the return type of a GCC
6383 builtin and then its argument prototype would still apply. */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 char $ac_func ();
6388 /* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
6391 #if defined __stub_$ac_func || defined __stub___$ac_func
6392 choke me
6393 #endif
6394
6395 int
6396 main ()
6397 {
6398 return $ac_func ();
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 rm -f conftest.$ac_objext conftest$ac_exeext
6404 if { (ac_try="$ac_link"
6405 case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6410 $as_echo "$ac_try_echo") >&5
6411 (eval "$ac_link") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest$ac_exeext && {
6421 test "$cross_compiling" = yes ||
6422 $as_test_x conftest$ac_exeext
6423 }; then
6424 eval "$as_ac_var=yes"
6425 else
6426 $as_echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 eval "$as_ac_var=no"
6430 fi
6431
6432 rm -rf conftest.dSYM
6433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6434 conftest$ac_exeext conftest.$ac_ext
6435 fi
6436 ac_res=`eval 'as_val=${'$as_ac_var'}
6437 $as_echo "$as_val"'`
6438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 as_val=`eval 'as_val=${'$as_ac_var'}
6441 $as_echo "$as_val"'`
6442 if test "x$as_val" = x""yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6445 _ACEOF
6446
6447 else
6448 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6449 $as_echo "$as_me: error: bailing out" >&2;}
6450 { (exit 1); exit 1; }; }
6451 fi
6452 done
6453
6454 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6455 # for constant arguments. Useless!
6456 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6457 $as_echo_n "checking for working alloca.h... " >&6; }
6458 if test "${ac_cv_working_alloca_h+set}" = set; then
6459 $as_echo_n "(cached) " >&6
6460 else
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <alloca.h>
6468 int
6469 main ()
6470 {
6471 char *p = (char *) alloca (2 * sizeof (int));
6472 if (p) return 0;
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (ac_try="$ac_link"
6479 case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484 $as_echo "$ac_try_echo") >&5
6485 (eval "$ac_link") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest$ac_exeext && {
6495 test "$cross_compiling" = yes ||
6496 $as_test_x conftest$ac_exeext
6497 }; then
6498 ac_cv_working_alloca_h=yes
6499 else
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 ac_cv_working_alloca_h=no
6504 fi
6505
6506 rm -rf conftest.dSYM
6507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508 conftest$ac_exeext conftest.$ac_ext
6509 fi
6510 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6511 $as_echo "$ac_cv_working_alloca_h" >&6; }
6512 if test $ac_cv_working_alloca_h = yes; then
6513
6514 cat >>confdefs.h <<\_ACEOF
6515 #define HAVE_ALLOCA_H 1
6516 _ACEOF
6517
6518 fi
6519
6520 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6521 $as_echo_n "checking for alloca... " >&6; }
6522 if test "${ac_cv_func_alloca_works+set}" = set; then
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #ifdef __GNUC__
6532 # define alloca __builtin_alloca
6533 #else
6534 # ifdef _MSC_VER
6535 # include <malloc.h>
6536 # define alloca _alloca
6537 # else
6538 # ifdef HAVE_ALLOCA_H
6539 # include <alloca.h>
6540 # else
6541 # ifdef _AIX
6542 #pragma alloca
6543 # else
6544 # ifndef alloca /* predefined by HP cc +Olibcalls */
6545 char *alloca ();
6546 # endif
6547 # endif
6548 # endif
6549 # endif
6550 #endif
6551
6552 int
6553 main ()
6554 {
6555 char *p = (char *) alloca (1);
6556 if (p) return 0;
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (ac_try="$ac_link"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6568 $as_echo "$ac_try_echo") >&5
6569 (eval "$ac_link") 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && {
6576 test -z "$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6578 } && test -s conftest$ac_exeext && {
6579 test "$cross_compiling" = yes ||
6580 $as_test_x conftest$ac_exeext
6581 }; then
6582 ac_cv_func_alloca_works=yes
6583 else
6584 $as_echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6586
6587 ac_cv_func_alloca_works=no
6588 fi
6589
6590 rm -rf conftest.dSYM
6591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6592 conftest$ac_exeext conftest.$ac_ext
6593 fi
6594 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6595 $as_echo "$ac_cv_func_alloca_works" >&6; }
6596
6597 if test $ac_cv_func_alloca_works = yes; then
6598
6599 cat >>confdefs.h <<\_ACEOF
6600 #define HAVE_ALLOCA 1
6601 _ACEOF
6602
6603 else
6604 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6605 # that cause trouble. Some versions do not even contain alloca or
6606 # contain a buggy version. If you still want to use their alloca,
6607 # use ar to extract alloca.o from them instead of compiling alloca.c.
6608
6609 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6610
6611 cat >>confdefs.h <<\_ACEOF
6612 #define C_ALLOCA 1
6613 _ACEOF
6614
6615
6616 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6617 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6618 if test "${ac_cv_os_cray+set}" = set; then
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #if defined CRAY && ! defined CRAY2
6628 webecray
6629 #else
6630 wenotbecray
6631 #endif
6632
6633 _ACEOF
6634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6635 $EGREP "webecray" >/dev/null 2>&1; then
6636 ac_cv_os_cray=yes
6637 else
6638 ac_cv_os_cray=no
6639 fi
6640 rm -f conftest*
6641
6642 fi
6643 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6644 $as_echo "$ac_cv_os_cray" >&6; }
6645 if test $ac_cv_os_cray = yes; then
6646 for ac_func in _getb67 GETB67 getb67; do
6647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6649 $as_echo_n "checking for $ac_func... " >&6; }
6650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6651 $as_echo_n "(cached) " >&6
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6661 #define $ac_func innocuous_$ac_func
6662
6663 /* System header to define __stub macros and hopefully few prototypes,
6664 which can conflict with char $ac_func (); below.
6665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 <limits.h> exists even on freestanding compilers. */
6667
6668 #ifdef __STDC__
6669 # include <limits.h>
6670 #else
6671 # include <assert.h>
6672 #endif
6673
6674 #undef $ac_func
6675
6676 /* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 char $ac_func ();
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined __stub_$ac_func || defined __stub___$ac_func
6687 choke me
6688 #endif
6689
6690 int
6691 main ()
6692 {
6693 return $ac_func ();
6694 ;
6695 return 0;
6696 }
6697 _ACEOF
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (ac_try="$ac_link"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_link") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest$ac_exeext && {
6716 test "$cross_compiling" = yes ||
6717 $as_test_x conftest$ac_exeext
6718 }; then
6719 eval "$as_ac_var=yes"
6720 else
6721 $as_echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724 eval "$as_ac_var=no"
6725 fi
6726
6727 rm -rf conftest.dSYM
6728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6729 conftest$ac_exeext conftest.$ac_ext
6730 fi
6731 ac_res=`eval 'as_val=${'$as_ac_var'}
6732 $as_echo "$as_val"'`
6733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6734 $as_echo "$ac_res" >&6; }
6735 as_val=`eval 'as_val=${'$as_ac_var'}
6736 $as_echo "$as_val"'`
6737 if test "x$as_val" = x""yes; then
6738
6739 cat >>confdefs.h <<_ACEOF
6740 #define CRAY_STACKSEG_END $ac_func
6741 _ACEOF
6742
6743 break
6744 fi
6745
6746 done
6747 fi
6748
6749 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6750 $as_echo_n "checking stack direction for C alloca... " >&6; }
6751 if test "${ac_cv_c_stack_direction+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6753 else
6754 if test "$cross_compiling" = yes; then
6755 ac_cv_c_stack_direction=0
6756 else
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6764 int
6765 find_stack_direction ()
6766 {
6767 static char *addr = 0;
6768 auto char dummy;
6769 if (addr == 0)
6770 {
6771 addr = &dummy;
6772 return find_stack_direction ();
6773 }
6774 else
6775 return (&dummy > addr) ? 1 : -1;
6776 }
6777
6778 int
6779 main ()
6780 {
6781 return find_stack_direction () < 0;
6782 }
6783 _ACEOF
6784 rm -f conftest$ac_exeext
6785 if { (ac_try="$ac_link"
6786 case "(($ac_try" in
6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6789 esac
6790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6791 $as_echo "$ac_try_echo") >&5
6792 (eval "$ac_link") 2>&5
6793 ac_status=$?
6794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6796 { (case "(($ac_try" in
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6799 esac
6800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6801 $as_echo "$ac_try_echo") >&5
6802 (eval "$ac_try") 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 ac_cv_c_stack_direction=1
6807 else
6808 $as_echo "$as_me: program exited with status $ac_status" >&5
6809 $as_echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 ( exit $ac_status )
6813 ac_cv_c_stack_direction=-1
6814 fi
6815 rm -rf conftest.dSYM
6816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6817 fi
6818
6819
6820 fi
6821 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6822 $as_echo "$ac_cv_c_stack_direction" >&6; }
6823
6824 cat >>confdefs.h <<_ACEOF
6825 #define STACK_DIRECTION $ac_cv_c_stack_direction
6826 _ACEOF
6827
6828
6829 fi
6830
6831 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6832 $as_echo_n "checking whether closedir returns void... " >&6; }
6833 if test "${ac_cv_func_closedir_void+set}" = set; then
6834 $as_echo_n "(cached) " >&6
6835 else
6836 if test "$cross_compiling" = yes; then
6837 ac_cv_func_closedir_void=yes
6838 else
6839 cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 #include <$ac_header_dirent>
6847 #ifndef __cplusplus
6848 int closedir ();
6849 #endif
6850
6851 int
6852 main ()
6853 {
6854 return closedir (opendir (".")) != 0;
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest$ac_exeext
6860 if { (ac_try="$ac_link"
6861 case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864 esac
6865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866 $as_echo "$ac_try_echo") >&5
6867 (eval "$ac_link") 2>&5
6868 ac_status=$?
6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874 esac
6875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876 $as_echo "$ac_try_echo") >&5
6877 (eval "$ac_try") 2>&5
6878 ac_status=$?
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_cv_func_closedir_void=no
6882 else
6883 $as_echo "$as_me: program exited with status $ac_status" >&5
6884 $as_echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ( exit $ac_status )
6888 ac_cv_func_closedir_void=yes
6889 fi
6890 rm -rf conftest.dSYM
6891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6892 fi
6893
6894
6895 fi
6896 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6897 $as_echo "$ac_cv_func_closedir_void" >&6; }
6898 if test $ac_cv_func_closedir_void = yes; then
6899
6900 cat >>confdefs.h <<\_ACEOF
6901 #define CLOSEDIR_VOID 1
6902 _ACEOF
6903
6904 fi
6905
6906
6907 for ac_header in vfork.h
6908 do
6909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6912 $as_echo_n "checking for $ac_header... " >&6; }
6913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6914 $as_echo_n "(cached) " >&6
6915 fi
6916 ac_res=`eval 'as_val=${'$as_ac_Header'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919 $as_echo "$ac_res" >&6; }
6920 else
6921 # Is the header compilable?
6922 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6923 $as_echo_n "checking $ac_header usability... " >&6; }
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 #include <$ac_header>
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6935 case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938 esac
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
6951 ac_header_compiler=yes
6952 else
6953 $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 ac_header_compiler=no
6957 fi
6958
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6961 $as_echo "$ac_header_compiler" >&6; }
6962
6963 # Is the header present?
6964 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6965 $as_echo_n "checking $ac_header presence... " >&6; }
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <$ac_header>
6973 _ACEOF
6974 if { (ac_try="$ac_cpp conftest.$ac_ext"
6975 case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978 esac
6979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980 $as_echo "$ac_try_echo") >&5
6981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } >/dev/null && {
6988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 }; then
6991 ac_header_preproc=yes
6992 else
6993 $as_echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_header_preproc=no
6997 fi
6998
6999 rm -f conftest.err conftest.$ac_ext
7000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7001 $as_echo "$ac_header_preproc" >&6; }
7002
7003 # So? What about this header?
7004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7005 yes:no: )
7006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7007 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7009 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7010 ac_header_preproc=yes
7011 ;;
7012 no:yes:* )
7013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7014 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7016 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7018 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7024 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7025
7026 ;;
7027 esac
7028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7029 $as_echo_n "checking for $ac_header... " >&6; }
7030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7031 $as_echo_n "(cached) " >&6
7032 else
7033 eval "$as_ac_Header=\$ac_header_preproc"
7034 fi
7035 ac_res=`eval 'as_val=${'$as_ac_Header'}
7036 $as_echo "$as_val"'`
7037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7038 $as_echo "$ac_res" >&6; }
7039
7040 fi
7041 as_val=`eval 'as_val=${'$as_ac_Header'}
7042 $as_echo "$as_val"'`
7043 if test "x$as_val" = x""yes; then
7044 cat >>confdefs.h <<_ACEOF
7045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7046 _ACEOF
7047
7048 fi
7049
7050 done
7051
7052
7053
7054 for ac_func in fork vfork
7055 do
7056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7057 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7058 $as_echo_n "checking for $ac_func... " >&6; }
7059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7060 $as_echo_n "(cached) " >&6
7061 else
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7070 #define $ac_func innocuous_$ac_func
7071
7072 /* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char $ac_func (); below.
7074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 <limits.h> exists even on freestanding compilers. */
7076
7077 #ifdef __STDC__
7078 # include <limits.h>
7079 #else
7080 # include <assert.h>
7081 #endif
7082
7083 #undef $ac_func
7084
7085 /* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7088 #ifdef __cplusplus
7089 extern "C"
7090 #endif
7091 char $ac_func ();
7092 /* The GNU C library defines this for functions which it implements
7093 to always fail with ENOSYS. Some functions are actually named
7094 something starting with __ and the normal name is an alias. */
7095 #if defined __stub_$ac_func || defined __stub___$ac_func
7096 choke me
7097 #endif
7098
7099 int
7100 main ()
7101 {
7102 return $ac_func ();
7103 ;
7104 return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (ac_try="$ac_link"
7109 case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112 esac
7113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114 $as_echo "$ac_try_echo") >&5
7115 (eval "$ac_link") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest$ac_exeext && {
7125 test "$cross_compiling" = yes ||
7126 $as_test_x conftest$ac_exeext
7127 }; then
7128 eval "$as_ac_var=yes"
7129 else
7130 $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 eval "$as_ac_var=no"
7134 fi
7135
7136 rm -rf conftest.dSYM
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext conftest.$ac_ext
7139 fi
7140 ac_res=`eval 'as_val=${'$as_ac_var'}
7141 $as_echo "$as_val"'`
7142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7143 $as_echo "$ac_res" >&6; }
7144 as_val=`eval 'as_val=${'$as_ac_var'}
7145 $as_echo "$as_val"'`
7146 if test "x$as_val" = x""yes; then
7147 cat >>confdefs.h <<_ACEOF
7148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7149 _ACEOF
7150
7151 fi
7152 done
7153
7154 if test "x$ac_cv_func_fork" = xyes; then
7155 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7156 $as_echo_n "checking for working fork... " >&6; }
7157 if test "${ac_cv_func_fork_works+set}" = set; then
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test "$cross_compiling" = yes; then
7161 ac_cv_func_fork_works=cross
7162 else
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 $ac_includes_default
7170 int
7171 main ()
7172 {
7173
7174 /* By Ruediger Kuhlmann. */
7175 return fork () < 0;
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 rm -f conftest$ac_exeext
7182 if { (ac_try="$ac_link"
7183 case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186 esac
7187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188 $as_echo "$ac_try_echo") >&5
7189 (eval "$ac_link") 2>&5
7190 ac_status=$?
7191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7193 { (case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7198 $as_echo "$ac_try_echo") >&5
7199 (eval "$ac_try") 2>&5
7200 ac_status=$?
7201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_func_fork_works=yes
7204 else
7205 $as_echo "$as_me: program exited with status $ac_status" >&5
7206 $as_echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 ( exit $ac_status )
7210 ac_cv_func_fork_works=no
7211 fi
7212 rm -rf conftest.dSYM
7213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7214 fi
7215
7216
7217 fi
7218 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7219 $as_echo "$ac_cv_func_fork_works" >&6; }
7220
7221 else
7222 ac_cv_func_fork_works=$ac_cv_func_fork
7223 fi
7224 if test "x$ac_cv_func_fork_works" = xcross; then
7225 case $host in
7226 *-*-amigaos* | *-*-msdosdjgpp*)
7227 # Override, as these systems have only a dummy fork() stub
7228 ac_cv_func_fork_works=no
7229 ;;
7230 *)
7231 ac_cv_func_fork_works=yes
7232 ;;
7233 esac
7234 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7235 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7236 fi
7237 ac_cv_func_vfork_works=$ac_cv_func_vfork
7238 if test "x$ac_cv_func_vfork" = xyes; then
7239 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7240 $as_echo_n "checking for working vfork... " >&6; }
7241 if test "${ac_cv_func_vfork_works+set}" = set; then
7242 $as_echo_n "(cached) " >&6
7243 else
7244 if test "$cross_compiling" = yes; then
7245 ac_cv_func_vfork_works=cross
7246 else
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 /* Thanks to Paul Eggert for this test. */
7254 $ac_includes_default
7255 #include <sys/wait.h>
7256 #ifdef HAVE_VFORK_H
7257 # include <vfork.h>
7258 #endif
7259 /* On some sparc systems, changes by the child to local and incoming
7260 argument registers are propagated back to the parent. The compiler
7261 is told about this with #include <vfork.h>, but some compilers
7262 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7263 static variable whose address is put into a register that is
7264 clobbered by the vfork. */
7265 static void
7266 #ifdef __cplusplus
7267 sparc_address_test (int arg)
7268 # else
7269 sparc_address_test (arg) int arg;
7270 #endif
7271 {
7272 static pid_t child;
7273 if (!child) {
7274 child = vfork ();
7275 if (child < 0) {
7276 perror ("vfork");
7277 _exit(2);
7278 }
7279 if (!child) {
7280 arg = getpid();
7281 write(-1, "", 0);
7282 _exit (arg);
7283 }
7284 }
7285 }
7286
7287 int
7288 main ()
7289 {
7290 pid_t parent = getpid ();
7291 pid_t child;
7292
7293 sparc_address_test (0);
7294
7295 child = vfork ();
7296
7297 if (child == 0) {
7298 /* Here is another test for sparc vfork register problems. This
7299 test uses lots of local variables, at least as many local
7300 variables as main has allocated so far including compiler
7301 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7302 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7303 reuse the register of parent for one of the local variables,
7304 since it will think that parent can't possibly be used any more
7305 in this routine. Assigning to the local variable will thus
7306 munge parent in the parent process. */
7307 pid_t
7308 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7309 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7310 /* Convince the compiler that p..p7 are live; otherwise, it might
7311 use the same hardware register for all 8 local variables. */
7312 if (p != p1 || p != p2 || p != p3 || p != p4
7313 || p != p5 || p != p6 || p != p7)
7314 _exit(1);
7315
7316 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7317 from child file descriptors. If the child closes a descriptor
7318 before it execs or exits, this munges the parent's descriptor
7319 as well. Test for this by closing stdout in the child. */
7320 _exit(close(fileno(stdout)) != 0);
7321 } else {
7322 int status;
7323 struct stat st;
7324
7325 while (wait(&status) != child)
7326 ;
7327 return (
7328 /* Was there some problem with vforking? */
7329 child < 0
7330
7331 /* Did the child fail? (This shouldn't happen.) */
7332 || status
7333
7334 /* Did the vfork/compiler bug occur? */
7335 || parent != getpid()
7336
7337 /* Did the file descriptor bug occur? */
7338 || fstat(fileno(stdout), &st) != 0
7339 );
7340 }
7341 }
7342 _ACEOF
7343 rm -f conftest$ac_exeext
7344 if { (ac_try="$ac_link"
7345 case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348 esac
7349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7350 $as_echo "$ac_try_echo") >&5
7351 (eval "$ac_link") 2>&5
7352 ac_status=$?
7353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7355 { (case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_try") 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_func_vfork_works=yes
7366 else
7367 $as_echo "$as_me: program exited with status $ac_status" >&5
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ( exit $ac_status )
7372 ac_cv_func_vfork_works=no
7373 fi
7374 rm -rf conftest.dSYM
7375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7376 fi
7377
7378
7379 fi
7380 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7381 $as_echo "$ac_cv_func_vfork_works" >&6; }
7382
7383 fi;
7384 if test "x$ac_cv_func_fork_works" = xcross; then
7385 ac_cv_func_vfork_works=$ac_cv_func_vfork
7386 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7387 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7388 fi
7389
7390 if test "x$ac_cv_func_vfork_works" = xyes; then
7391
7392 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_WORKING_VFORK 1
7394 _ACEOF
7395
7396 else
7397
7398 cat >>confdefs.h <<\_ACEOF
7399 #define vfork fork
7400 _ACEOF
7401
7402 fi
7403 if test "x$ac_cv_func_fork_works" = xyes; then
7404
7405 cat >>confdefs.h <<\_ACEOF
7406 #define HAVE_WORKING_FORK 1
7407 _ACEOF
7408
7409 fi
7410
7411 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7412 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7413 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7414 $as_echo_n "(cached) " >&6
7415 else
7416 rm -f conftest.sym conftest.file
7417 echo >conftest.file
7418 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7419 if test "$cross_compiling" = yes; then
7420 ac_cv_func_lstat_dereferences_slashed_symlink=no
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 int
7430 main ()
7431 {
7432 struct stat sbuf;
7433 /* Linux will dereference the symlink and fail.
7434 That is better in the sense that it means we will not
7435 have to compile and use the lstat wrapper. */
7436 return lstat ("conftest.sym/", &sbuf) == 0;
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest$ac_exeext
7442 if { (ac_try="$ac_link"
7443 case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446 esac
7447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448 $as_echo "$ac_try_echo") >&5
7449 (eval "$ac_link") 2>&5
7450 ac_status=$?
7451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7453 { (case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7456 esac
7457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7458 $as_echo "$ac_try_echo") >&5
7459 (eval "$ac_try") 2>&5
7460 ac_status=$?
7461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7464 else
7465 $as_echo "$as_me: program exited with status $ac_status" >&5
7466 $as_echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ( exit $ac_status )
7470 ac_cv_func_lstat_dereferences_slashed_symlink=no
7471 fi
7472 rm -rf conftest.dSYM
7473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7474 fi
7475
7476
7477 else
7478 # If the `ln -s' command failed, then we probably don't even
7479 # have an lstat function.
7480 ac_cv_func_lstat_dereferences_slashed_symlink=no
7481 fi
7482 rm -f conftest.sym conftest.file
7483
7484 fi
7485 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7486 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7487
7488 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7492 _ACEOF
7493
7494
7495 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7496 case " $LIBOBJS " in
7497 *" lstat.$ac_objext "* ) ;;
7498 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7499 ;;
7500 esac
7501
7502 fi
7503
7504 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7505 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7506 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if test "$cross_compiling" = yes; then
7510 ac_cv_func_lstat_empty_string_bug=yes
7511 else
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 $ac_includes_default
7519 int
7520 main ()
7521 {
7522 struct stat sbuf;
7523 return lstat ("", &sbuf) == 0;
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest$ac_exeext
7529 if { (ac_try="$ac_link"
7530 case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533 esac
7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535 $as_echo "$ac_try_echo") >&5
7536 (eval "$ac_link") 2>&5
7537 ac_status=$?
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7540 { (case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543 esac
7544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7545 $as_echo "$ac_try_echo") >&5
7546 (eval "$ac_try") 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550 ac_cv_func_lstat_empty_string_bug=no
7551 else
7552 $as_echo "$as_me: program exited with status $ac_status" >&5
7553 $as_echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7555
7556 ( exit $ac_status )
7557 ac_cv_func_lstat_empty_string_bug=yes
7558 fi
7559 rm -rf conftest.dSYM
7560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7561 fi
7562
7563
7564 fi
7565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7566 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7567 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7568 case " $LIBOBJS " in
7569 *" lstat.$ac_objext "* ) ;;
7570 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7571 ;;
7572 esac
7573
7574
7575 cat >>confdefs.h <<_ACEOF
7576 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7577 _ACEOF
7578
7579 fi
7580
7581
7582 for ac_header in stdlib.h
7583 do
7584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7587 $as_echo_n "checking for $ac_header... " >&6; }
7588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7589 $as_echo_n "(cached) " >&6
7590 fi
7591 ac_res=`eval 'as_val=${'$as_ac_Header'}
7592 $as_echo "$as_val"'`
7593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7594 $as_echo "$ac_res" >&6; }
7595 else
7596 # Is the header compilable?
7597 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7598 $as_echo_n "checking $ac_header usability... " >&6; }
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 $ac_includes_default
7606 #include <$ac_header>
7607 _ACEOF
7608 rm -f conftest.$ac_objext
7609 if { (ac_try="$ac_compile"
7610 case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613 esac
7614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7615 $as_echo "$ac_try_echo") >&5
7616 (eval "$ac_compile") 2>conftest.er1
7617 ac_status=$?
7618 grep -v '^ *+' conftest.er1 >conftest.err
7619 rm -f conftest.er1
7620 cat conftest.err >&5
7621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest.$ac_objext; then
7626 ac_header_compiler=yes
7627 else
7628 $as_echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_header_compiler=no
7632 fi
7633
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7636 $as_echo "$ac_header_compiler" >&6; }
7637
7638 # Is the header present?
7639 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7640 $as_echo_n "checking $ac_header presence... " >&6; }
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h. */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7647 #include <$ac_header>
7648 _ACEOF
7649 if { (ac_try="$ac_cpp conftest.$ac_ext"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655 $as_echo "$ac_try_echo") >&5
7656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } >/dev/null && {
7663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 }; then
7666 ac_header_preproc=yes
7667 else
7668 $as_echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_header_preproc=no
7672 fi
7673
7674 rm -f conftest.err conftest.$ac_ext
7675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7676 $as_echo "$ac_header_preproc" >&6; }
7677
7678 # So? What about this header?
7679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7680 yes:no: )
7681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7682 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7685 ac_header_preproc=yes
7686 ;;
7687 no:yes:* )
7688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7689 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7691 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7693 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7695 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7699 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7700
7701 ;;
7702 esac
7703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7704 $as_echo_n "checking for $ac_header... " >&6; }
7705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7706 $as_echo_n "(cached) " >&6
7707 else
7708 eval "$as_ac_Header=\$ac_header_preproc"
7709 fi
7710 ac_res=`eval 'as_val=${'$as_ac_Header'}
7711 $as_echo "$as_val"'`
7712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7713 $as_echo "$ac_res" >&6; }
7714
7715 fi
7716 as_val=`eval 'as_val=${'$as_ac_Header'}
7717 $as_echo "$as_val"'`
7718 if test "x$as_val" = x""yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7721 _ACEOF
7722
7723 fi
7724
7725 done
7726
7727 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7728 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7729 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test "$cross_compiling" = yes; then
7733 ac_cv_func_malloc_0_nonnull=no
7734 else
7735 cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h. */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7742 # include <stdlib.h>
7743 #else
7744 char *malloc ();
7745 #endif
7746
7747 int
7748 main ()
7749 {
7750 return ! malloc (0);
7751 ;
7752 return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest$ac_exeext
7756 if { (ac_try="$ac_link"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_link") 2>&5
7764 ac_status=$?
7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7767 { (case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770 esac
7771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7772 $as_echo "$ac_try_echo") >&5
7773 (eval "$ac_try") 2>&5
7774 ac_status=$?
7775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_func_malloc_0_nonnull=yes
7778 else
7779 $as_echo "$as_me: program exited with status $ac_status" >&5
7780 $as_echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 ( exit $ac_status )
7784 ac_cv_func_malloc_0_nonnull=no
7785 fi
7786 rm -rf conftest.dSYM
7787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788 fi
7789
7790
7791 fi
7792 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7793 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7794 if test $ac_cv_func_malloc_0_nonnull = yes; then
7795
7796 cat >>confdefs.h <<\_ACEOF
7797 #define HAVE_MALLOC 1
7798 _ACEOF
7799
7800 else
7801 cat >>confdefs.h <<\_ACEOF
7802 #define HAVE_MALLOC 0
7803 _ACEOF
7804
7805 case " $LIBOBJS " in
7806 *" malloc.$ac_objext "* ) ;;
7807 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7808 ;;
7809 esac
7810
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define malloc rpl_malloc
7814 _ACEOF
7815
7816 fi
7817
7818
7819
7820 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7821 $as_echo_n "checking for working memcmp... " >&6; }
7822 if test "${ac_cv_func_memcmp_working+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7824 else
7825 if test "$cross_compiling" = yes; then
7826 ac_cv_func_memcmp_working=no
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7835 int
7836 main ()
7837 {
7838
7839 /* Some versions of memcmp are not 8-bit clean. */
7840 char c0 = '\100', c1 = '\200', c2 = '\201';
7841 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7842 return 1;
7843
7844 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7845 or more and with at least one buffer not starting on a 4-byte boundary.
7846 William Lewis provided this test program. */
7847 {
7848 char foo[21];
7849 char bar[21];
7850 int i;
7851 for (i = 0; i < 4; i++)
7852 {
7853 char *a = foo + i;
7854 char *b = bar + i;
7855 strcpy (a, "--------01111111");
7856 strcpy (b, "--------10000000");
7857 if (memcmp (a, b, 16) >= 0)
7858 return 1;
7859 }
7860 return 0;
7861 }
7862
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7874 $as_echo "$ac_try_echo") >&5
7875 (eval "$ac_link") 2>&5
7876 ac_status=$?
7877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7884 $as_echo "$ac_try_echo") >&5
7885 (eval "$ac_try") 2>&5
7886 ac_status=$?
7887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_func_memcmp_working=yes
7890 else
7891 $as_echo "$as_me: program exited with status $ac_status" >&5
7892 $as_echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ( exit $ac_status )
7896 ac_cv_func_memcmp_working=no
7897 fi
7898 rm -rf conftest.dSYM
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7900 fi
7901
7902
7903 fi
7904 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7905 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7906 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7907 *" memcmp.$ac_objext "* ) ;;
7908 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7909 ;;
7910 esac
7911
7912
7913
7914
7915 for ac_header in stdlib.h unistd.h
7916 do
7917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7920 $as_echo_n "checking for $ac_header... " >&6; }
7921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7922 $as_echo_n "(cached) " >&6
7923 fi
7924 ac_res=`eval 'as_val=${'$as_ac_Header'}
7925 $as_echo "$as_val"'`
7926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7927 $as_echo "$ac_res" >&6; }
7928 else
7929 # Is the header compilable?
7930 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7931 $as_echo_n "checking $ac_header usability... " >&6; }
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7939 #include <$ac_header>
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7943 case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7948 $as_echo "$ac_try_echo") >&5
7949 (eval "$ac_compile") 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
7959 ac_header_compiler=yes
7960 else
7961 $as_echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 ac_header_compiler=no
7965 fi
7966
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7969 $as_echo "$ac_header_compiler" >&6; }
7970
7971 # Is the header present?
7972 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7973 $as_echo_n "checking $ac_header presence... " >&6; }
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <$ac_header>
7981 _ACEOF
7982 if { (ac_try="$ac_cpp conftest.$ac_ext"
7983 case "(($ac_try" in
7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985 *) ac_try_echo=$ac_try;;
7986 esac
7987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7988 $as_echo "$ac_try_echo") >&5
7989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } >/dev/null && {
7996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 }; then
7999 ac_header_preproc=yes
8000 else
8001 $as_echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 ac_header_preproc=no
8005 fi
8006
8007 rm -f conftest.err conftest.$ac_ext
8008 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8009 $as_echo "$ac_header_preproc" >&6; }
8010
8011 # So? What about this header?
8012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8013 yes:no: )
8014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8015 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8017 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8018 ac_header_preproc=yes
8019 ;;
8020 no:yes:* )
8021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8022 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8024 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8026 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8028 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8030 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8032 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8033
8034 ;;
8035 esac
8036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8037 $as_echo_n "checking for $ac_header... " >&6; }
8038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8039 $as_echo_n "(cached) " >&6
8040 else
8041 eval "$as_ac_Header=\$ac_header_preproc"
8042 fi
8043 ac_res=`eval 'as_val=${'$as_ac_Header'}
8044 $as_echo "$as_val"'`
8045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8046 $as_echo "$ac_res" >&6; }
8047
8048 fi
8049 as_val=`eval 'as_val=${'$as_ac_Header'}
8050 $as_echo "$as_val"'`
8051 if test "x$as_val" = x""yes; then
8052 cat >>confdefs.h <<_ACEOF
8053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8054 _ACEOF
8055
8056 fi
8057
8058 done
8059
8060
8061 for ac_func in getpagesize
8062 do
8063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8064 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8065 $as_echo_n "checking for $ac_func... " >&6; }
8066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8067 $as_echo_n "(cached) " >&6
8068 else
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8077 #define $ac_func innocuous_$ac_func
8078
8079 /* System header to define __stub macros and hopefully few prototypes,
8080 which can conflict with char $ac_func (); below.
8081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8082 <limits.h> exists even on freestanding compilers. */
8083
8084 #ifdef __STDC__
8085 # include <limits.h>
8086 #else
8087 # include <assert.h>
8088 #endif
8089
8090 #undef $ac_func
8091
8092 /* Override any GCC internal prototype to avoid an error.
8093 Use char because int might match the return type of a GCC
8094 builtin and then its argument prototype would still apply. */
8095 #ifdef __cplusplus
8096 extern "C"
8097 #endif
8098 char $ac_func ();
8099 /* The GNU C library defines this for functions which it implements
8100 to always fail with ENOSYS. Some functions are actually named
8101 something starting with __ and the normal name is an alias. */
8102 #if defined __stub_$ac_func || defined __stub___$ac_func
8103 choke me
8104 #endif
8105
8106 int
8107 main ()
8108 {
8109 return $ac_func ();
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (ac_try="$ac_link"
8116 case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119 esac
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122 (eval "$ac_link") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest$ac_exeext && {
8132 test "$cross_compiling" = yes ||
8133 $as_test_x conftest$ac_exeext
8134 }; then
8135 eval "$as_ac_var=yes"
8136 else
8137 $as_echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 eval "$as_ac_var=no"
8141 fi
8142
8143 rm -rf conftest.dSYM
8144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8145 conftest$ac_exeext conftest.$ac_ext
8146 fi
8147 ac_res=`eval 'as_val=${'$as_ac_var'}
8148 $as_echo "$as_val"'`
8149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8150 $as_echo "$ac_res" >&6; }
8151 as_val=`eval 'as_val=${'$as_ac_var'}
8152 $as_echo "$as_val"'`
8153 if test "x$as_val" = x""yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8156 _ACEOF
8157
8158 fi
8159 done
8160
8161 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8162 $as_echo_n "checking for working mmap... " >&6; }
8163 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test "$cross_compiling" = yes; then
8167 ac_cv_func_mmap_fixed_mapped=no
8168 else
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 /* malloc might have been renamed as rpl_malloc. */
8177 #undef malloc
8178
8179 /* Thanks to Mike Haertel and Jim Avera for this test.
8180 Here is a matrix of mmap possibilities:
8181 mmap private not fixed
8182 mmap private fixed at somewhere currently unmapped
8183 mmap private fixed at somewhere already mapped
8184 mmap shared not fixed
8185 mmap shared fixed at somewhere currently unmapped
8186 mmap shared fixed at somewhere already mapped
8187 For private mappings, we should verify that changes cannot be read()
8188 back from the file, nor mmap's back from the file at a different
8189 address. (There have been systems where private was not correctly
8190 implemented like the infamous i386 svr4.0, and systems where the
8191 VM page cache was not coherent with the file system buffer cache
8192 like early versions of FreeBSD and possibly contemporary NetBSD.)
8193 For shared mappings, we should conversely verify that changes get
8194 propagated back to all the places they're supposed to be.
8195
8196 Grep wants private fixed already mapped.
8197 The main things grep needs to know about mmap are:
8198 * does it exist and is it safe to write into the mmap'd area
8199 * how to use it (BSD variants) */
8200
8201 #include <fcntl.h>
8202 #include <sys/mman.h>
8203
8204 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8205 char *malloc ();
8206 #endif
8207
8208 /* This mess was copied from the GNU getpagesize.h. */
8209 #ifndef HAVE_GETPAGESIZE
8210 /* Assume that all systems that can run configure have sys/param.h. */
8211 # ifndef HAVE_SYS_PARAM_H
8212 # define HAVE_SYS_PARAM_H 1
8213 # endif
8214
8215 # ifdef _SC_PAGESIZE
8216 # define getpagesize() sysconf(_SC_PAGESIZE)
8217 # else /* no _SC_PAGESIZE */
8218 # ifdef HAVE_SYS_PARAM_H
8219 # include <sys/param.h>
8220 # ifdef EXEC_PAGESIZE
8221 # define getpagesize() EXEC_PAGESIZE
8222 # else /* no EXEC_PAGESIZE */
8223 # ifdef NBPG
8224 # define getpagesize() NBPG * CLSIZE
8225 # ifndef CLSIZE
8226 # define CLSIZE 1
8227 # endif /* no CLSIZE */
8228 # else /* no NBPG */
8229 # ifdef NBPC
8230 # define getpagesize() NBPC
8231 # else /* no NBPC */
8232 # ifdef PAGESIZE
8233 # define getpagesize() PAGESIZE
8234 # endif /* PAGESIZE */
8235 # endif /* no NBPC */
8236 # endif /* no NBPG */
8237 # endif /* no EXEC_PAGESIZE */
8238 # else /* no HAVE_SYS_PARAM_H */
8239 # define getpagesize() 8192 /* punt totally */
8240 # endif /* no HAVE_SYS_PARAM_H */
8241 # endif /* no _SC_PAGESIZE */
8242
8243 #endif /* no HAVE_GETPAGESIZE */
8244
8245 int
8246 main ()
8247 {
8248 char *data, *data2, *data3;
8249 int i, pagesize;
8250 int fd;
8251
8252 pagesize = getpagesize ();
8253
8254 /* First, make a file with some known garbage in it. */
8255 data = (char *) malloc (pagesize);
8256 if (!data)
8257 return 1;
8258 for (i = 0; i < pagesize; ++i)
8259 *(data + i) = rand ();
8260 umask (0);
8261 fd = creat ("conftest.mmap", 0600);
8262 if (fd < 0)
8263 return 1;
8264 if (write (fd, data, pagesize) != pagesize)
8265 return 1;
8266 close (fd);
8267
8268 /* Next, try to mmap the file at a fixed address which already has
8269 something else allocated at it. If we can, also make sure that
8270 we see the same garbage. */
8271 fd = open ("conftest.mmap", O_RDWR);
8272 if (fd < 0)
8273 return 1;
8274 data2 = (char *) malloc (2 * pagesize);
8275 if (!data2)
8276 return 1;
8277 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8278 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8279 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8280 return 1;
8281 for (i = 0; i < pagesize; ++i)
8282 if (*(data + i) != *(data2 + i))
8283 return 1;
8284
8285 /* Finally, make sure that changes to the mapped area do not
8286 percolate back to the file as seen by read(). (This is a bug on
8287 some variants of i386 svr4.0.) */
8288 for (i = 0; i < pagesize; ++i)
8289 *(data2 + i) = *(data2 + i) + 1;
8290 data3 = (char *) malloc (pagesize);
8291 if (!data3)
8292 return 1;
8293 if (read (fd, data3, pagesize) != pagesize)
8294 return 1;
8295 for (i = 0; i < pagesize; ++i)
8296 if (*(data + i) != *(data3 + i))
8297 return 1;
8298 close (fd);
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309 $as_echo "$ac_try_echo") >&5
8310 (eval "$ac_link") 2>&5
8311 ac_status=$?
8312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319 $as_echo "$ac_try_echo") >&5
8320 (eval "$ac_try") 2>&5
8321 ac_status=$?
8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_cv_func_mmap_fixed_mapped=yes
8325 else
8326 $as_echo "$as_me: program exited with status $ac_status" >&5
8327 $as_echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 ( exit $ac_status )
8331 ac_cv_func_mmap_fixed_mapped=no
8332 fi
8333 rm -rf conftest.dSYM
8334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8335 fi
8336
8337
8338 fi
8339 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8340 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8342
8343 cat >>confdefs.h <<\_ACEOF
8344 #define HAVE_MMAP 1
8345 _ACEOF
8346
8347 fi
8348 rm -f conftest.mmap
8349
8350 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8351 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8352 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test "$cross_compiling" = yes; then
8356 ac_cv_func_stat_empty_string_bug=yes
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8365 int
8366 main ()
8367 {
8368 struct stat sbuf;
8369 return stat ("", &sbuf) == 0;
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest$ac_exeext
8375 if { (ac_try="$ac_link"
8376 case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379 esac
8380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8381 $as_echo "$ac_try_echo") >&5
8382 (eval "$ac_link") 2>&5
8383 ac_status=$?
8384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8386 { (case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8391 $as_echo "$ac_try_echo") >&5
8392 (eval "$ac_try") 2>&5
8393 ac_status=$?
8394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_func_stat_empty_string_bug=no
8397 else
8398 $as_echo "$as_me: program exited with status $ac_status" >&5
8399 $as_echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ( exit $ac_status )
8403 ac_cv_func_stat_empty_string_bug=yes
8404 fi
8405 rm -rf conftest.dSYM
8406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8407 fi
8408
8409
8410 fi
8411 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8412 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8413 if test $ac_cv_func_stat_empty_string_bug = yes; then
8414 case " $LIBOBJS " in
8415 *" stat.$ac_objext "* ) ;;
8416 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8417 ;;
8418 esac
8419
8420
8421 cat >>confdefs.h <<_ACEOF
8422 #define HAVE_STAT_EMPTY_STRING_BUG 1
8423 _ACEOF
8424
8425 fi
8426
8427 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8428 $as_echo_n "checking for working strtod... " >&6; }
8429 if test "${ac_cv_func_strtod+set}" = set; then
8430 $as_echo_n "(cached) " >&6
8431 else
8432 if test "$cross_compiling" = yes; then
8433 ac_cv_func_strtod=no
8434 else
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441
8442 $ac_includes_default
8443 #ifndef strtod
8444 double strtod ();
8445 #endif
8446 int
8447 main()
8448 {
8449 {
8450 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8451 char *string = " +69";
8452 char *term;
8453 double value;
8454 value = strtod (string, &term);
8455 if (value != 69 || term != (string + 4))
8456 return 1;
8457 }
8458
8459 {
8460 /* Under Solaris 2.4, strtod returns the wrong value for the
8461 terminating character under some conditions. */
8462 char *string = "NaN";
8463 char *term;
8464 strtod (string, &term);
8465 if (term != string && *(term - 1) == 0)
8466 return 1;
8467 }
8468 return 0;
8469 }
8470
8471 _ACEOF
8472 rm -f conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8479 $as_echo "$ac_try_echo") >&5
8480 (eval "$ac_link") 2>&5
8481 ac_status=$?
8482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8484 { (case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487 esac
8488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489 $as_echo "$ac_try_echo") >&5
8490 (eval "$ac_try") 2>&5
8491 ac_status=$?
8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_func_strtod=yes
8495 else
8496 $as_echo "$as_me: program exited with status $ac_status" >&5
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ( exit $ac_status )
8501 ac_cv_func_strtod=no
8502 fi
8503 rm -rf conftest.dSYM
8504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8505 fi
8506
8507
8508 fi
8509 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8510 $as_echo "$ac_cv_func_strtod" >&6; }
8511 if test $ac_cv_func_strtod = no; then
8512 case " $LIBOBJS " in
8513 *" strtod.$ac_objext "* ) ;;
8514 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8515 ;;
8516 esac
8517
8518 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8519 $as_echo_n "checking for pow... " >&6; }
8520 if test "${ac_cv_func_pow+set}" = set; then
8521 $as_echo_n "(cached) " >&6
8522 else
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8531 #define pow innocuous_pow
8532
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char pow (); below.
8535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8536 <limits.h> exists even on freestanding compilers. */
8537
8538 #ifdef __STDC__
8539 # include <limits.h>
8540 #else
8541 # include <assert.h>
8542 #endif
8543
8544 #undef pow
8545
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 char pow ();
8553 /* The GNU C library defines this for functions which it implements
8554 to always fail with ENOSYS. Some functions are actually named
8555 something starting with __ and the normal name is an alias. */
8556 #if defined __stub_pow || defined __stub___pow
8557 choke me
8558 #endif
8559
8560 int
8561 main ()
8562 {
8563 return pow ();
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8570 case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573 esac
8574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576 (eval "$ac_link") 2>conftest.er1
8577 ac_status=$?
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest$ac_exeext && {
8586 test "$cross_compiling" = yes ||
8587 $as_test_x conftest$ac_exeext
8588 }; then
8589 ac_cv_func_pow=yes
8590 else
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_cv_func_pow=no
8595 fi
8596
8597 rm -rf conftest.dSYM
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8599 conftest$ac_exeext conftest.$ac_ext
8600 fi
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8602 $as_echo "$ac_cv_func_pow" >&6; }
8603
8604 if test $ac_cv_func_pow = no; then
8605 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8606 $as_echo_n "checking for pow in -lm... " >&6; }
8607 if test "${ac_cv_lib_m_pow+set}" = set; then
8608 $as_echo_n "(cached) " >&6
8609 else
8610 ac_check_lib_save_LIBS=$LIBS
8611 LIBS="-lm $LIBS"
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618
8619 /* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
8622 #ifdef __cplusplus
8623 extern "C"
8624 #endif
8625 char pow ();
8626 int
8627 main ()
8628 {
8629 return pow ();
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (ac_try="$ac_link"
8636 case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639 esac
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_link") 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest$ac_exeext && {
8652 test "$cross_compiling" = yes ||
8653 $as_test_x conftest$ac_exeext
8654 }; then
8655 ac_cv_lib_m_pow=yes
8656 else
8657 $as_echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_cv_lib_m_pow=no
8661 fi
8662
8663 rm -rf conftest.dSYM
8664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8665 conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8667 fi
8668 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8669 $as_echo "$ac_cv_lib_m_pow" >&6; }
8670 if test "x$ac_cv_lib_m_pow" = x""yes; then
8671 POW_LIB=-lm
8672 else
8673 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8674 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8675 fi
8676
8677 fi
8678
8679 fi
8680
8681
8682 for ac_func in vprintf
8683 do
8684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8685 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8686 $as_echo_n "checking for $ac_func... " >&6; }
8687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8688 $as_echo_n "(cached) " >&6
8689 else
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h. */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8698 #define $ac_func innocuous_$ac_func
8699
8700 /* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char $ac_func (); below.
8702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 <limits.h> exists even on freestanding compilers. */
8704
8705 #ifdef __STDC__
8706 # include <limits.h>
8707 #else
8708 # include <assert.h>
8709 #endif
8710
8711 #undef $ac_func
8712
8713 /* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8716 #ifdef __cplusplus
8717 extern "C"
8718 #endif
8719 char $ac_func ();
8720 /* The GNU C library defines this for functions which it implements
8721 to always fail with ENOSYS. Some functions are actually named
8722 something starting with __ and the normal name is an alias. */
8723 #if defined __stub_$ac_func || defined __stub___$ac_func
8724 choke me
8725 #endif
8726
8727 int
8728 main ()
8729 {
8730 return $ac_func ();
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742 $as_echo "$ac_try_echo") >&5
8743 (eval "$ac_link") 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest$ac_exeext && {
8753 test "$cross_compiling" = yes ||
8754 $as_test_x conftest$ac_exeext
8755 }; then
8756 eval "$as_ac_var=yes"
8757 else
8758 $as_echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8760
8761 eval "$as_ac_var=no"
8762 fi
8763
8764 rm -rf conftest.dSYM
8765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8766 conftest$ac_exeext conftest.$ac_ext
8767 fi
8768 ac_res=`eval 'as_val=${'$as_ac_var'}
8769 $as_echo "$as_val"'`
8770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8771 $as_echo "$ac_res" >&6; }
8772 as_val=`eval 'as_val=${'$as_ac_var'}
8773 $as_echo "$as_val"'`
8774 if test "x$as_val" = x""yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8777 _ACEOF
8778
8779 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8780 $as_echo_n "checking for _doprnt... " >&6; }
8781 if test "${ac_cv_func__doprnt+set}" = set; then
8782 $as_echo_n "(cached) " >&6
8783 else
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8792 #define _doprnt innocuous__doprnt
8793
8794 /* System header to define __stub macros and hopefully few prototypes,
8795 which can conflict with char _doprnt (); below.
8796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8797 <limits.h> exists even on freestanding compilers. */
8798
8799 #ifdef __STDC__
8800 # include <limits.h>
8801 #else
8802 # include <assert.h>
8803 #endif
8804
8805 #undef _doprnt
8806
8807 /* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 char _doprnt ();
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined __stub__doprnt || defined __stub____doprnt
8818 choke me
8819 #endif
8820
8821 int
8822 main ()
8823 {
8824 return _doprnt ();
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (ac_try="$ac_link"
8831 case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834 esac
8835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836 $as_echo "$ac_try_echo") >&5
8837 (eval "$ac_link") 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext && {
8847 test "$cross_compiling" = yes ||
8848 $as_test_x conftest$ac_exeext
8849 }; then
8850 ac_cv_func__doprnt=yes
8851 else
8852 $as_echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 ac_cv_func__doprnt=no
8856 fi
8857
8858 rm -rf conftest.dSYM
8859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860 conftest$ac_exeext conftest.$ac_ext
8861 fi
8862 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8863 $as_echo "$ac_cv_func__doprnt" >&6; }
8864 if test "x$ac_cv_func__doprnt" = x""yes; then
8865
8866 cat >>confdefs.h <<\_ACEOF
8867 #define HAVE_DOPRNT 1
8868 _ACEOF
8869
8870 fi
8871
8872 fi
8873 done
8874
8875
8876
8877 ################################################################################
8878 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8879 $as_echo_n "checking whether to use static linking... " >&6; }
8880 # Check whether --enable-static_link was given.
8881 if test "${enable_static_link+set}" = set; then
8882 enableval=$enable_static_link; STATIC_LINK=$enableval
8883 else
8884 STATIC_LINK=no
8885 fi
8886
8887 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8888 $as_echo "$STATIC_LINK" >&6; }
8889
8890 ################################################################################
8891
8892
8893 ################################################################################
8894 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8895 $as_echo_n "checking file owner... " >&6; }
8896 OWNER="root"
8897
8898
8899 # Check whether --with-user was given.
8900 if test "${with_user+set}" = set; then
8901 withval=$with_user; OWNER="$withval"
8902 fi
8903
8904 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8905 $as_echo "$OWNER" >&6; }
8906
8907 if test x$OWNER != x; then
8908 OWNER="-o $OWNER"
8909 fi
8910
8911 ################################################################################
8912 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8913 $as_echo_n "checking group owner... " >&6; }
8914 GROUP="root"
8915
8916 # Check whether --with-group was given.
8917 if test "${with_group+set}" = set; then
8918 withval=$with_group; GROUP="$withval"
8919 fi
8920
8921 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8922 $as_echo "$GROUP" >&6; }
8923
8924 if test x$GROUP != x; then
8925 GROUP="-g $GROUP"
8926 fi
8927
8928 ################################################################################
8929 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
8930 $as_echo_n "checking device node uid... " >&6; }
8931
8932
8933 # Check whether --with-device-uid was given.
8934 if test "${with_device_uid+set}" = set; then
8935 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8936 else
8937 DM_DEVICE_UID="0"
8938 fi
8939
8940 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8941 $as_echo "$DM_DEVICE_UID" >&6; }
8942
8943 ################################################################################
8944 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
8945 $as_echo_n "checking device node gid... " >&6; }
8946
8947
8948 # Check whether --with-device-gid was given.
8949 if test "${with_device_gid+set}" = set; then
8950 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8951 else
8952 DM_DEVICE_GID="0"
8953 fi
8954
8955 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8956 $as_echo "$DM_DEVICE_GID" >&6; }
8957
8958 ################################################################################
8959 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
8960 $as_echo_n "checking device node mode... " >&6; }
8961
8962
8963 # Check whether --with-device-mode was given.
8964 if test "${with_device_mode+set}" = set; then
8965 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8966 else
8967 DM_DEVICE_MODE="0600"
8968 fi
8969
8970 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8971 $as_echo "$DM_DEVICE_MODE" >&6; }
8972
8973 ################################################################################
8974 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8975 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
8976 # Check whether --enable-lvm1_fallback was given.
8977 if test "${enable_lvm1_fallback+set}" = set; then
8978 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8979 else
8980 LVM1_FALLBACK=no
8981 fi
8982
8983 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8984 $as_echo "$LVM1_FALLBACK" >&6; }
8985
8986 if test x$LVM1_FALLBACK = xyes; then
8987
8988 cat >>confdefs.h <<\_ACEOF
8989 #define LVM1_FALLBACK 1
8990 _ACEOF
8991
8992 fi
8993
8994 ################################################################################
8995 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8996 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
8997
8998 # Check whether --with-lvm1 was given.
8999 if test "${with_lvm1+set}" = set; then
9000 withval=$with_lvm1; LVM1="$withval"
9001 else
9002 LVM1="internal"
9003 fi
9004
9005 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9006 $as_echo "$LVM1" >&6; }
9007
9008 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9009 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9010 " >&5
9011 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9012 " >&2;}
9013 { (exit 1); exit 1; }; }
9014 fi;
9015
9016 if test x$LVM1 = xinternal; then
9017
9018 cat >>confdefs.h <<\_ACEOF
9019 #define LVM1_INTERNAL 1
9020 _ACEOF
9021
9022 fi
9023
9024 ################################################################################
9025 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9026 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9027
9028 # Check whether --with-pool was given.
9029 if test "${with_pool+set}" = set; then
9030 withval=$with_pool; POOL="$withval"
9031 else
9032 POOL="internal"
9033 fi
9034
9035 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9036 $as_echo "$POOL" >&6; }
9037
9038 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9039 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9040 " >&5
9041 $as_echo "$as_me: error: --with-pool parameter invalid
9042 " >&2;}
9043 { (exit 1); exit 1; }; }
9044 fi;
9045
9046 if test x$POOL = xinternal; then
9047
9048 cat >>confdefs.h <<\_ACEOF
9049 #define POOL_INTERNAL 1
9050 _ACEOF
9051
9052 fi
9053
9054 ################################################################################
9055 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9056 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9057
9058 # Check whether --with-cluster was given.
9059 if test "${with_cluster+set}" = set; then
9060 withval=$with_cluster; CLUSTER="$withval"
9061 fi
9062
9063 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9064 $as_echo "$CLUSTER" >&6; }
9065
9066 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9067 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9068 " >&5
9069 $as_echo "$as_me: error: --with-cluster parameter invalid
9070 " >&2;}
9071 { (exit 1); exit 1; }; }
9072 fi;
9073
9074 if test x$CLUSTER = xinternal; then
9075
9076 cat >>confdefs.h <<\_ACEOF
9077 #define CLUSTER_LOCKING_INTERNAL 1
9078 _ACEOF
9079
9080 fi
9081
9082 ################################################################################
9083 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9084 $as_echo_n "checking whether to include snapshots... " >&6; }
9085
9086 # Check whether --with-snapshots was given.
9087 if test "${with_snapshots+set}" = set; then
9088 withval=$with_snapshots; SNAPSHOTS="$withval"
9089 else
9090 SNAPSHOTS="internal"
9091 fi
9092
9093 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9094 $as_echo "$SNAPSHOTS" >&6; }
9095
9096 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9097 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9098 " >&5
9099 $as_echo "$as_me: error: --with-snapshots parameter invalid
9100 " >&2;}
9101 { (exit 1); exit 1; }; }
9102 fi;
9103
9104 if test x$SNAPSHOTS = xinternal; then
9105
9106 cat >>confdefs.h <<\_ACEOF
9107 #define SNAPSHOT_INTERNAL 1
9108 _ACEOF
9109
9110 fi
9111
9112 ################################################################################
9113 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9114 $as_echo_n "checking whether to include mirrors... " >&6; }
9115
9116 # Check whether --with-mirrors was given.
9117 if test "${with_mirrors+set}" = set; then
9118 withval=$with_mirrors; MIRRORS="$withval"
9119 else
9120 MIRRORS="internal"
9121 fi
9122
9123 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9124 $as_echo "$MIRRORS" >&6; }
9125
9126 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9127 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9128 " >&5
9129 $as_echo "$as_me: error: --with-mirrors parameter invalid
9130 " >&2;}
9131 { (exit 1); exit 1; }; }
9132 fi;
9133
9134 if test x$MIRRORS = xinternal; then
9135
9136 cat >>confdefs.h <<\_ACEOF
9137 #define MIRRORED_INTERNAL 1
9138 _ACEOF
9139
9140 fi
9141
9142 ################################################################################
9143 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9144 $as_echo_n "checking whether to enable readline... " >&6; }
9145 # Check whether --enable-readline was given.
9146 if test "${enable_readline+set}" = set; then
9147 enableval=$enable_readline; READLINE=$enableval
9148 else
9149 READLINE=maybe
9150 fi
9151
9152 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9153 $as_echo "$READLINE" >&6; }
9154
9155 ################################################################################
9156 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9157 $as_echo_n "checking whether to enable realtime support... " >&6; }
9158 # Check whether --enable-realtime was given.
9159 if test "${enable_realtime+set}" = set; then
9160 enableval=$enable_realtime; REALTIME=$enableval
9161 fi
9162
9163 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9164 $as_echo "$REALTIME" >&6; }
9165
9166 ################################################################################
9167 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9168 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9169
9170 # Check whether --with-clvmd was given.
9171 if test "${with_clvmd+set}" = set; then
9172 withval=$with_clvmd; CLVMD="$withval"
9173 else
9174 CLVMD="none"
9175 fi
9176
9177 if test x$CLVMD = xyes; then
9178 CLVMD=all
9179 fi
9180 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9181 $as_echo "$CLVMD" >&6; }
9182
9183 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9184 CLUSTER=internal
9185 fi
9186
9187 if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then
9188
9189
9190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9191 if test -n "$ac_tool_prefix"; then
9192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9197 $as_echo_n "(cached) " >&6
9198 else
9199 case $PKG_CONFIG in
9200 [\\/]* | ?:[\\/]*)
9201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9202 ;;
9203 *)
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9206 do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9214 fi
9215 done
9216 done
9217 IFS=$as_save_IFS
9218
9219 ;;
9220 esac
9221 fi
9222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9223 if test -n "$PKG_CONFIG"; then
9224 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9225 $as_echo "$PKG_CONFIG" >&6; }
9226 else
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230
9231
9232 fi
9233 if test -z "$ac_cv_path_PKG_CONFIG"; then
9234 ac_pt_PKG_CONFIG=$PKG_CONFIG
9235 # Extract the first word of "pkg-config", so it can be a program name with args.
9236 set dummy pkg-config; ac_word=$2
9237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9240 $as_echo_n "(cached) " >&6
9241 else
9242 case $ac_pt_PKG_CONFIG in
9243 [\\/]* | ?:[\\/]*)
9244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9245 ;;
9246 *)
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258 done
9259 done
9260 IFS=$as_save_IFS
9261
9262 ;;
9263 esac
9264 fi
9265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9266 if test -n "$ac_pt_PKG_CONFIG"; then
9267 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9268 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9269 else
9270 { $as_echo "$as_me:$LINENO: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273
9274 if test "x$ac_pt_PKG_CONFIG" = x; then
9275 PKG_CONFIG=""
9276 else
9277 case $cross_compiling:$ac_tool_warned in
9278 yes:)
9279 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281 ac_tool_warned=yes ;;
9282 esac
9283 PKG_CONFIG=$ac_pt_PKG_CONFIG
9284 fi
9285 else
9286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9287 fi
9288
9289 fi
9290 if test -n "$PKG_CONFIG"; then
9291 _pkg_min_version=0.9.0
9292 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9293 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9295 { $as_echo "$as_me:$LINENO: result: yes" >&5
9296 $as_echo "yes" >&6; }
9297 else
9298 { $as_echo "$as_me:$LINENO: result: no" >&5
9299 $as_echo "no" >&6; }
9300 PKG_CONFIG=""
9301 fi
9302
9303 fi
9304
9305 pkg_failed=no
9306 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9307 $as_echo_n "checking for QUORUM... " >&6; }
9308
9309 if test -n "$QUORUM_CFLAGS"; then
9310 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9311 elif test -n "$PKG_CONFIG"; then
9312 if test -n "$PKG_CONFIG" && \
9313 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9314 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9315 ac_status=$?
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; then
9318 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9319 else
9320 pkg_failed=yes
9321 fi
9322 else
9323 pkg_failed=untried
9324 fi
9325 if test -n "$QUORUM_LIBS"; then
9326 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9327 elif test -n "$PKG_CONFIG"; then
9328 if test -n "$PKG_CONFIG" && \
9329 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9330 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9331 ac_status=$?
9332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; then
9334 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9335 else
9336 pkg_failed=yes
9337 fi
9338 else
9339 pkg_failed=untried
9340 fi
9341
9342
9343
9344 if test $pkg_failed = yes; then
9345
9346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9347 _pkg_short_errors_supported=yes
9348 else
9349 _pkg_short_errors_supported=no
9350 fi
9351 if test $_pkg_short_errors_supported = yes; then
9352 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9353 else
9354 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9355 fi
9356 # Put the nasty error message in config.log where it belongs
9357 echo "$QUORUM_PKG_ERRORS" >&5
9358
9359 { $as_echo "$as_me:$LINENO: result: no" >&5
9360 $as_echo "no" >&6; }
9361 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9362 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9363 QUORUM_LIBS="-lquorum"
9364 elif test $pkg_failed = untried; then
9365 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9366 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9367 QUORUM_LIBS="-lquorum"
9368 else
9369 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9370 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9371 { $as_echo "$as_me:$LINENO: result: yes" >&5
9372 $as_echo "yes" >&6; }
9373 :
9374 fi
9375
9376 pkg_failed=no
9377 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9378 $as_echo_n "checking for CONFDB... " >&6; }
9379
9380 if test -n "$CONFDB_CFLAGS"; then
9381 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9382 elif test -n "$PKG_CONFIG"; then
9383 if test -n "$PKG_CONFIG" && \
9384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9385 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9386 ac_status=$?
9387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; then
9389 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9390 else
9391 pkg_failed=yes
9392 fi
9393 else
9394 pkg_failed=untried
9395 fi
9396 if test -n "$CONFDB_LIBS"; then
9397 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9398 elif test -n "$PKG_CONFIG"; then
9399 if test -n "$PKG_CONFIG" && \
9400 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9401 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9402 ac_status=$?
9403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; then
9405 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9406 else
9407 pkg_failed=yes
9408 fi
9409 else
9410 pkg_failed=untried
9411 fi
9412
9413
9414
9415 if test $pkg_failed = yes; then
9416
9417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9418 _pkg_short_errors_supported=yes
9419 else
9420 _pkg_short_errors_supported=no
9421 fi
9422 if test $_pkg_short_errors_supported = yes; then
9423 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9424 else
9425 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9426 fi
9427 # Put the nasty error message in config.log where it belongs
9428 echo "$CONFDB_PKG_ERRORS" >&5
9429
9430 { $as_echo "$as_me:$LINENO: result: no" >&5
9431 $as_echo "no" >&6; }
9432 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9433 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9434 CONFDB_LIBS="-lconfdb"
9435 elif test $pkg_failed = untried; then
9436 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9437 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9438 CONFDB_LIBS="-lconfdb"
9439 else
9440 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9441 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9442 { $as_echo "$as_me:$LINENO: result: yes" >&5
9443 $as_echo "yes" >&6; }
9444 :
9445 fi
9446
9447 pkg_failed=no
9448 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
9449 $as_echo_n "checking for CPG... " >&6; }
9450
9451 if test -n "$CPG_CFLAGS"; then
9452 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9453 elif test -n "$PKG_CONFIG"; then
9454 if test -n "$PKG_CONFIG" && \
9455 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9456 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9457 ac_status=$?
9458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; then
9460 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9461 else
9462 pkg_failed=yes
9463 fi
9464 else
9465 pkg_failed=untried
9466 fi
9467 if test -n "$CPG_LIBS"; then
9468 pkg_cv_CPG_LIBS="$CPG_LIBS"
9469 elif test -n "$PKG_CONFIG"; then
9470 if test -n "$PKG_CONFIG" && \
9471 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9472 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9473 ac_status=$?
9474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; then
9476 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9477 else
9478 pkg_failed=yes
9479 fi
9480 else
9481 pkg_failed=untried
9482 fi
9483
9484
9485
9486 if test $pkg_failed = yes; then
9487
9488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9489 _pkg_short_errors_supported=yes
9490 else
9491 _pkg_short_errors_supported=no
9492 fi
9493 if test $_pkg_short_errors_supported = yes; then
9494 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9495 else
9496 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9497 fi
9498 # Put the nasty error message in config.log where it belongs
9499 echo "$CPG_PKG_ERRORS" >&5
9500
9501 { $as_echo "$as_me:$LINENO: result: no" >&5
9502 $as_echo "no" >&6; }
9503 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9504 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9505 CPG_LIBS="-lcpg"
9506 elif test $pkg_failed = untried; then
9507 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9508 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9509 CPG_LIBS="-lcpg"
9510 else
9511 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9512 CPG_LIBS=$pkg_cv_CPG_LIBS
9513 { $as_echo "$as_me:$LINENO: result: yes" >&5
9514 $as_echo "yes" >&6; }
9515 :
9516 fi
9517 fi
9518
9519 ################################################################################
9520 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9521 $as_echo_n "checking whether to enable debugging... " >&6; }
9522 # Check whether --enable-debug was given.
9523 if test "${enable_debug+set}" = set; then
9524 enableval=$enable_debug; DEBUG=$enableval
9525 else
9526 DEBUG=no
9527 fi
9528
9529 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9530 $as_echo "$DEBUG" >&6; }
9531
9532 if test x$DEBUG = xyes; then
9533 COPTIMISE_FLAG=
9534 else
9535 CSCOPE_CMD=
9536 fi
9537
9538 ################################################################################
9539 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9540 $as_echo_n "checking for C optimisation flag... " >&6; }
9541
9542 # Check whether --with-optimisation was given.
9543 if test "${with_optimisation+set}" = set; then
9544 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9545 fi
9546
9547 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9548 $as_echo "$COPTIMISE_FLAG" >&6; }
9549
9550 ################################################################################
9551 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9552 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
9553 # Check whether --enable-profiling was given.
9554 if test "${enable_profiling+set}" = set; then
9555 enableval=$enable_profiling; PROFILING=$enableval
9556 else
9557 PROFILING=no
9558 fi
9559
9560 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9561 $as_echo "$PROFILING" >&6; }
9562
9563 if test "x$PROFILING" = xyes; then
9564 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9565 # Extract the first word of "lcov", so it can be a program name with args.
9566 set dummy lcov; ac_word=$2
9567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if test "${ac_cv_path_LCOV+set}" = set; then
9570 $as_echo_n "(cached) " >&6
9571 else
9572 case $LCOV in
9573 [\\/]* | ?:[\\/]*)
9574 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9575 ;;
9576 *)
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
9585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588 done
9589 done
9590 IFS=$as_save_IFS
9591
9592 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
9593 ;;
9594 esac
9595 fi
9596 LCOV=$ac_cv_path_LCOV
9597 if test -n "$LCOV"; then
9598 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9599 $as_echo "$LCOV" >&6; }
9600 else
9601 { $as_echo "$as_me:$LINENO: result: no" >&5
9602 $as_echo "no" >&6; }
9603 fi
9604
9605
9606 # Extract the first word of "genhtml", so it can be a program name with args.
9607 set dummy genhtml; ac_word=$2
9608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if test "${ac_cv_path_GENHTML+set}" = set; then
9611 $as_echo_n "(cached) " >&6
9612 else
9613 case $GENHTML in
9614 [\\/]* | ?:[\\/]*)
9615 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9616 ;;
9617 *)
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9620 do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
9626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9628 fi
9629 done
9630 done
9631 IFS=$as_save_IFS
9632
9633 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
9634 ;;
9635 esac
9636 fi
9637 GENHTML=$ac_cv_path_GENHTML
9638 if test -n "$GENHTML"; then
9639 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9640 $as_echo "$GENHTML" >&6; }
9641 else
9642 { $as_echo "$as_me:$LINENO: result: no" >&5
9643 $as_echo "no" >&6; }
9644 fi
9645
9646
9647 if test "$LCOV" = no -o "$GENHTML" = no ; then
9648 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9649 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
9650 { (exit 1); exit 1; }; }
9651 fi
9652 fi
9653
9654 ################################################################################
9655 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9656 $as_echo_n "checking whether to use device-mapper... " >&6; }
9657 # Check whether --enable-devmapper was given.
9658 if test "${enable_devmapper+set}" = set; then
9659 enableval=$enable_devmapper; DEVMAPPER=$enableval
9660 fi
9661
9662 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9663 $as_echo "$DEVMAPPER" >&6; }
9664
9665 if test x$DEVMAPPER = xyes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define DEVMAPPER_SUPPORT 1
9669 _ACEOF
9670
9671 fi
9672
9673 ################################################################################
9674 # Check whether --enable-compat was given.
9675 if test "${enable_compat+set}" = set; then
9676 enableval=$enable_compat; DM_COMPAT=$enableval
9677 else
9678 DM_COMPAT=no
9679 fi
9680
9681
9682 ################################################################################
9683 # Check whether --enable-ioctl was given.
9684 if test "${enable_ioctl+set}" = set; then
9685 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9686 fi
9687
9688
9689 ################################################################################
9690 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9691 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9692 # Check whether --enable-o_direct was given.
9693 if test "${enable_o_direct+set}" = set; then
9694 enableval=$enable_o_direct; ODIRECT=$enableval
9695 fi
9696
9697 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9698 $as_echo "$ODIRECT" >&6; }
9699
9700 if test x$ODIRECT = xyes; then
9701
9702 cat >>confdefs.h <<\_ACEOF
9703 #define O_DIRECT_SUPPORT 1
9704 _ACEOF
9705
9706 fi
9707
9708 ################################################################################
9709 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9710 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9711 # Check whether --enable-cmdlib was given.
9712 if test "${enable_cmdlib+set}" = set; then
9713 enableval=$enable_cmdlib; CMDLIB=$enableval
9714 else
9715 CMDLIB=no
9716 fi
9717
9718 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9719 $as_echo "$CMDLIB" >&6; }
9720
9721 test x$CMDLIB = xyes \
9722 && LVM2CMD_LIB=-llvm2cmd \
9723 || LVM2CMD_LIB=
9724
9725 ################################################################################
9726 # Check whether --enable-pkgconfig was given.
9727 if test "${enable_pkgconfig+set}" = set; then
9728 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9729 else
9730 PKGCONFIG=no
9731 fi
9732
9733
9734 ################################################################################
9735 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9736 $as_echo_n "checking whether to install fsadm... " >&6; }
9737 # Check whether --enable-fsadm was given.
9738 if test "${enable_fsadm+set}" = set; then
9739 enableval=$enable_fsadm; FSADM=$enableval
9740 fi
9741
9742 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9743 $as_echo "$FSADM" >&6; }
9744
9745 ################################################################################
9746 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9747 $as_echo_n "checking whether to use dmeventd... " >&6; }
9748 # Check whether --enable-dmeventd was given.
9749 if test "${enable_dmeventd+set}" = set; then
9750 enableval=$enable_dmeventd; DMEVENTD=$enableval
9751 fi
9752
9753 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9754 $as_echo "$DMEVENTD" >&6; }
9755
9756 BUILD_DMEVENTD=$DMEVENTD
9757
9758 if test x$DMEVENTD = xyes; then
9759 if test x$MIRRORS != xinternal; then
9760 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
9761 " >&5
9762 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
9763 " >&2;}
9764 { (exit 1); exit 1; }; }
9765 fi
9766 if test x$CMDLIB = xno; then
9767 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9768 " >&5
9769 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9770 " >&2;}
9771 { (exit 1); exit 1; }; }
9772 fi
9773 fi
9774
9775 if test x$DMEVENTD = xyes; then
9776
9777 cat >>confdefs.h <<\_ACEOF
9778 #define DMEVENTD 1
9779 _ACEOF
9780
9781 fi
9782
9783 ################################################################################
9784
9785 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9786 $as_echo_n "checking for getline in -lc... " >&6; }
9787 if test "${ac_cv_lib_c_getline+set}" = set; then
9788 $as_echo_n "(cached) " >&6
9789 else
9790 ac_check_lib_save_LIBS=$LIBS
9791 LIBS="-lc $LIBS"
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h. */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char getline ();
9806 int
9807 main ()
9808 {
9809 return getline ();
9810 ;
9811 return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (ac_try="$ac_link"
9816 case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9819 esac
9820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9821 $as_echo "$ac_try_echo") >&5
9822 (eval "$ac_link") 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest$ac_exeext && {
9832 test "$cross_compiling" = yes ||
9833 $as_test_x conftest$ac_exeext
9834 }; then
9835 ac_cv_lib_c_getline=yes
9836 else
9837 $as_echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9839
9840 ac_cv_lib_c_getline=no
9841 fi
9842
9843 rm -rf conftest.dSYM
9844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9845 conftest$ac_exeext conftest.$ac_ext
9846 LIBS=$ac_check_lib_save_LIBS
9847 fi
9848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9849 $as_echo "$ac_cv_lib_c_getline" >&6; }
9850 if test "x$ac_cv_lib_c_getline" = x""yes; then
9851
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_GETLINE 1
9854 _ACEOF
9855
9856 fi
9857
9858
9859 ################################################################################
9860
9861 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9862 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9863 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9864 $as_echo_n "(cached) " >&6
9865 else
9866 ac_check_lib_save_LIBS=$LIBS
9867 LIBS="-lc $LIBS"
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 char canonicalize_file_name ();
9882 int
9883 main ()
9884 {
9885 return canonicalize_file_name ();
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (ac_try="$ac_link"
9892 case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895 esac
9896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9897 $as_echo "$ac_try_echo") >&5
9898 (eval "$ac_link") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } && {
9905 test -z "$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 } && test -s conftest$ac_exeext && {
9908 test "$cross_compiling" = yes ||
9909 $as_test_x conftest$ac_exeext
9910 }; then
9911 ac_cv_lib_c_canonicalize_file_name=yes
9912 else
9913 $as_echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 ac_cv_lib_c_canonicalize_file_name=no
9917 fi
9918
9919 rm -rf conftest.dSYM
9920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9923 fi
9924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9925 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9926 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
9927
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_CANONICALIZE_FILE_NAME 1
9930 _ACEOF
9931
9932 fi
9933
9934
9935 ################################################################################
9936 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9937 then exec_prefix="";
9938 fi;
9939
9940 ################################################################################
9941 if test x$READLINE != xno; then
9942 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9943 $as_echo_n "checking for library containing tgetent... " >&6; }
9944 if test "${ac_cv_search_tgetent+set}" = set; then
9945 $as_echo_n "(cached) " >&6
9946 else
9947 ac_func_search_save_LIBS=$LIBS
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9958 #ifdef __cplusplus
9959 extern "C"
9960 #endif
9961 char tgetent ();
9962 int
9963 main ()
9964 {
9965 return tgetent ();
9966 ;
9967 return 0;
9968 }
9969 _ACEOF
9970 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9971 if test -z "$ac_lib"; then
9972 ac_res="none required"
9973 else
9974 ac_res=-l$ac_lib
9975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9976 fi
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984 $as_echo "$ac_try_echo") >&5
9985 (eval "$ac_link") 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest$ac_exeext && {
9995 test "$cross_compiling" = yes ||
9996 $as_test_x conftest$ac_exeext
9997 }; then
9998 ac_cv_search_tgetent=$ac_res
9999 else
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003
10004 fi
10005
10006 rm -rf conftest.dSYM
10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008 conftest$ac_exeext
10009 if test "${ac_cv_search_tgetent+set}" = set; then
10010 break
10011 fi
10012 done
10013 if test "${ac_cv_search_tgetent+set}" = set; then
10014 :
10015 else
10016 ac_cv_search_tgetent=no
10017 fi
10018 rm conftest.$ac_ext
10019 LIBS=$ac_func_search_save_LIBS
10020 fi
10021 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10022 $as_echo "$ac_cv_search_tgetent" >&6; }
10023 ac_res=$ac_cv_search_tgetent
10024 if test "$ac_res" != no; then
10025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10026 tg_found=yes
10027 else
10028 tg_found=no
10029 fi
10030
10031 test x$READLINE:$tg_found = xyes:no &&
10032 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
10033 --enable-readline option (which is enabled by default). Either disable readline
10034 support with --disable-readline or download and install termcap from:
10035 ftp.gnu.org/gnu/termcap
10036 Note: if you are using precompiled packages you will also need the development
10037 package as well (which may be called termcap-devel or something similar).
10038 Note: (n)curses also seems to work as a substitute for termcap. This was
10039 not found either - but you could try installing that as well.
10040 " >&5
10041 $as_echo "$as_me: error: termcap could not be found which is required for the
10042 --enable-readline option (which is enabled by default). Either disable readline
10043 support with --disable-readline or download and install termcap from:
10044 ftp.gnu.org/gnu/termcap
10045 Note: if you are using precompiled packages you will also need the development
10046 package as well (which may be called termcap-devel or something similar).
10047 Note: (n)curses also seems to work as a substitute for termcap. This was
10048 not found either - but you could try installing that as well.
10049 " >&2;}
10050 { (exit 1); exit 1; }; }
10051 fi
10052
10053 ################################################################################
10054 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057 $as_echo_n "(cached) " >&6
10058 else
10059 ac_check_lib_save_LIBS=$LIBS
10060 LIBS="-ldl $LIBS"
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067
10068 /* Override any GCC internal prototype to avoid an error.
10069 Use char because int might match the return type of a GCC
10070 builtin and then its argument prototype would still apply. */
10071 #ifdef __cplusplus
10072 extern "C"
10073 #endif
10074 char dlopen ();
10075 int
10076 main ()
10077 {
10078 return dlopen ();
10079 ;
10080 return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088 esac
10089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10090 $as_echo "$ac_try_echo") >&5
10091 (eval "$ac_link") 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
10100 } && test -s conftest$ac_exeext && {
10101 test "$cross_compiling" = yes ||
10102 $as_test_x conftest$ac_exeext
10103 }; then
10104 ac_cv_lib_dl_dlopen=yes
10105 else
10106 $as_echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_cv_lib_dl_dlopen=no
10110 fi
10111
10112 rm -rf conftest.dSYM
10113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10114 conftest$ac_exeext conftest.$ac_ext
10115 LIBS=$ac_check_lib_save_LIBS
10116 fi
10117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10118 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10119 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10120 HAVE_LIBDL=yes
10121 else
10122 HAVE_LIBDL=no
10123 fi
10124
10125
10126 if [ "x$HAVE_LIBDL" = xyes ]; then
10127
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_LIBDL 1
10130 _ACEOF
10131
10132 LIBS="-ldl $LIBS"
10133 else
10134 HAVE_LIBDL=no
10135 fi
10136
10137 ################################################################################
10138 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10139 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10140 \) -a "x$STATIC_LINK" = xyes ];
10141 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
10142 " >&5
10143 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
10144 " >&2;}
10145 { (exit 1); exit 1; }; }
10146 fi
10147
10148 ################################################################################
10149 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10150 $as_echo_n "checking whether to enable selinux support... " >&6; }
10151 # Check whether --enable-selinux was given.
10152 if test "${enable_selinux+set}" = set; then
10153 enableval=$enable_selinux; SELINUX=$enableval
10154 fi
10155
10156 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10157 $as_echo "$SELINUX" >&6; }
10158
10159 ################################################################################
10160 if test x$SELINUX = xyes; then
10161 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10162 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
10163 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
10164 $as_echo_n "(cached) " >&6
10165 else
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lsepol $LIBS"
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 char sepol_check_context ();
10182 int
10183 main ()
10184 {
10185 return sepol_check_context ();
10186 ;
10187 return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_link") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest$ac_exeext && {
10208 test "$cross_compiling" = yes ||
10209 $as_test_x conftest$ac_exeext
10210 }; then
10211 ac_cv_lib_sepol_sepol_check_context=yes
10212 else
10213 $as_echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 ac_cv_lib_sepol_sepol_check_context=no
10217 fi
10218
10219 rm -rf conftest.dSYM
10220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10223 fi
10224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10225 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10226 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
10227 HAVE_SEPOL=yes
10228 else
10229 HAVE_SEPOL=no
10230 fi
10231
10232
10233 if test x$HAVE_SEPOL = xyes; then
10234
10235 cat >>confdefs.h <<\_ACEOF
10236 #define HAVE_SEPOL 1
10237 _ACEOF
10238
10239 LIBS="-lsepol $LIBS"
10240 fi
10241
10242 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10243 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
10244 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
10245 $as_echo_n "(cached) " >&6
10246 else
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-lselinux $LIBS"
10249 cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h. */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char is_selinux_enabled ();
10263 int
10264 main ()
10265 {
10266 return is_selinux_enabled ();
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276 esac
10277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10278 $as_echo "$ac_try_echo") >&5
10279 (eval "$ac_link") 2>conftest.er1
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest$ac_exeext && {
10289 test "$cross_compiling" = yes ||
10290 $as_test_x conftest$ac_exeext
10291 }; then
10292 ac_cv_lib_selinux_is_selinux_enabled=yes
10293 else
10294 $as_echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 ac_cv_lib_selinux_is_selinux_enabled=no
10298 fi
10299
10300 rm -rf conftest.dSYM
10301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10302 conftest$ac_exeext conftest.$ac_ext
10303 LIBS=$ac_check_lib_save_LIBS
10304 fi
10305 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10306 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10307 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
10308 HAVE_SELINUX=yes
10309 else
10310 HAVE_SELINUX=no
10311 fi
10312
10313
10314 if test x$HAVE_SELINUX = xyes; then
10315
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_SELINUX 1
10318 _ACEOF
10319
10320 LIBS="-lselinux $LIBS"
10321 else
10322 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10323 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
10324 fi
10325
10326 # With --enable-static_link and selinux enabled, linking
10327 # fails on at least Debian unstable due to unsatisfied references
10328 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10329 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10330 lvm_saved_libs=$LIBS
10331 LIBS="$LIBS -static"
10332 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10333 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10334 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10335 $as_echo_n "(cached) " >&6
10336 else
10337 ac_func_search_save_LIBS=$LIBS
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char pthread_mutex_lock ();
10352 int
10353 main ()
10354 {
10355 return pthread_mutex_lock ();
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 for ac_lib in '' pthread; do
10361 if test -z "$ac_lib"; then
10362 ac_res="none required"
10363 else
10364 ac_res=-l$ac_lib
10365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10366 fi
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372 esac
10373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10374 $as_echo "$ac_try_echo") >&5
10375 (eval "$ac_link") 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } && {
10382 test -z "$ac_c_werror_flag" ||
10383 test ! -s conftest.err
10384 } && test -s conftest$ac_exeext && {
10385 test "$cross_compiling" = yes ||
10386 $as_test_x conftest$ac_exeext
10387 }; then
10388 ac_cv_search_pthread_mutex_lock=$ac_res
10389 else
10390 $as_echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10392
10393
10394 fi
10395
10396 rm -rf conftest.dSYM
10397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10398 conftest$ac_exeext
10399 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10400 break
10401 fi
10402 done
10403 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10404 :
10405 else
10406 ac_cv_search_pthread_mutex_lock=no
10407 fi
10408 rm conftest.$ac_ext
10409 LIBS=$ac_func_search_save_LIBS
10410 fi
10411 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10412 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10413 ac_res=$ac_cv_search_pthread_mutex_lock
10414 if test "$ac_res" != no; then
10415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10416 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10417 LIB_PTHREAD=-lpthread
10418 fi
10419
10420 LIBS=$lvm_saved_libs
10421 fi
10422 fi
10423
10424 ################################################################################
10425 if test x$REALTIME = xyes; then
10426 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10427 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10428 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
10429 $as_echo_n "(cached) " >&6
10430 else
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-lrt $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char clock_gettime ();
10447 int
10448 main ()
10449 {
10450 return clock_gettime ();
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460 esac
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_link") 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest$ac_exeext && {
10473 test "$cross_compiling" = yes ||
10474 $as_test_x conftest$ac_exeext
10475 }; then
10476 ac_cv_lib_rt_clock_gettime=yes
10477 else
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481 ac_cv_lib_rt_clock_gettime=no
10482 fi
10483
10484 rm -rf conftest.dSYM
10485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10488 fi
10489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10490 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10491 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
10492 HAVE_REALTIME=yes
10493 else
10494 HAVE_REALTIME=no
10495 fi
10496
10497
10498 if test x$HAVE_REALTIME = xyes; then
10499
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_REALTIME 1
10502 _ACEOF
10503
10504 LIBS="-lrt $LIBS"
10505 else
10506 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10507 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
10508 fi
10509 fi
10510
10511 ################################################################################
10512
10513 for ac_header in getopt.h
10514 do
10515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10518 $as_echo_n "checking for $ac_header... " >&6; }
10519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10520 $as_echo_n "(cached) " >&6
10521 fi
10522 ac_res=`eval 'as_val=${'$as_ac_Header'}
10523 $as_echo "$as_val"'`
10524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10525 $as_echo "$ac_res" >&6; }
10526 else
10527 # Is the header compilable?
10528 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10529 $as_echo_n "checking $ac_header usability... " >&6; }
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 $ac_includes_default
10537 #include <$ac_header>
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (ac_try="$ac_compile"
10541 case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544 esac
10545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546 $as_echo "$ac_try_echo") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
10557 ac_header_compiler=yes
10558 else
10559 $as_echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ac_header_compiler=no
10563 fi
10564
10565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10567 $as_echo "$ac_header_compiler" >&6; }
10568
10569 # Is the header present?
10570 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10571 $as_echo_n "checking $ac_header presence... " >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <$ac_header>
10579 _ACEOF
10580 if { (ac_try="$ac_cpp conftest.$ac_ext"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10586 $as_echo "$ac_try_echo") >&5
10587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } >/dev/null && {
10594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 }; then
10597 ac_header_preproc=yes
10598 else
10599 $as_echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_header_preproc=no
10603 fi
10604
10605 rm -f conftest.err conftest.$ac_ext
10606 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 $as_echo "$ac_header_preproc" >&6; }
10608
10609 # So? What about this header?
10610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 yes:no: )
10612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616 ac_header_preproc=yes
10617 ;;
10618 no:yes:* )
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10631
10632 ;;
10633 esac
10634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 $as_echo_n "checking for $ac_header... " >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637 $as_echo_n "(cached) " >&6
10638 else
10639 eval "$as_ac_Header=\$ac_header_preproc"
10640 fi
10641 ac_res=`eval 'as_val=${'$as_ac_Header'}
10642 $as_echo "$as_val"'`
10643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10644 $as_echo "$ac_res" >&6; }
10645
10646 fi
10647 as_val=`eval 'as_val=${'$as_ac_Header'}
10648 $as_echo "$as_val"'`
10649 if test "x$as_val" = x""yes; then
10650 cat >>confdefs.h <<_ACEOF
10651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10652 _ACEOF
10653
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_GETOPTLONG 1
10656 _ACEOF
10657
10658 fi
10659
10660 done
10661
10662
10663 ################################################################################
10664 if test x$READLINE != xno; then
10665 rl_found=yes
10666
10667 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10668 $as_echo_n "checking for readline in -lreadline... " >&6; }
10669 if test "${ac_cv_lib_readline_readline+set}" = set; then
10670 $as_echo_n "(cached) " >&6
10671 else
10672 ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-lreadline $LIBS"
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 char readline ();
10688 int
10689 main ()
10690 {
10691 return readline ();
10692 ;
10693 return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701 esac
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704 (eval "$ac_link") 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest$ac_exeext && {
10714 test "$cross_compiling" = yes ||
10715 $as_test_x conftest$ac_exeext
10716 }; then
10717 ac_cv_lib_readline_readline=yes
10718 else
10719 $as_echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_cv_lib_readline_readline=no
10723 fi
10724
10725 rm -rf conftest.dSYM
10726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10729 fi
10730 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10731 $as_echo "$ac_cv_lib_readline_readline" >&6; }
10732 if test "x$ac_cv_lib_readline_readline" = x""yes; then
10733 cat >>confdefs.h <<_ACEOF
10734 #define HAVE_LIBREADLINE 1
10735 _ACEOF
10736
10737 LIBS="-lreadline $LIBS"
10738
10739 else
10740 rl_found=no
10741 fi
10742
10743 test x$READLINE:$rl_found = xyes:no &&
10744 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
10745 --enable-readline option (which is enabled by default). Either disable readline
10746 support with --disable-readline or download and install readline from:
10747 ftp.gnu.org/gnu/readline
10748 Note: if you are using precompiled packages you will also need the development
10749 package as well (which may be called readline-devel or something similar).
10750 " >&5
10751 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
10752 --enable-readline option (which is enabled by default). Either disable readline
10753 support with --disable-readline or download and install readline from:
10754 ftp.gnu.org/gnu/readline
10755 Note: if you are using precompiled packages you will also need the development
10756 package as well (which may be called readline-devel or something similar).
10757 " >&2;}
10758 { (exit 1); exit 1; }; }
10759 if test $rl_found = yes; then
10760
10761 for ac_func in rl_completion_matches
10762 do
10763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10764 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10765 $as_echo_n "checking for $ac_func... " >&6; }
10766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10767 $as_echo_n "(cached) " >&6
10768 else
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10777 #define $ac_func innocuous_$ac_func
10778
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func (); below.
10781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782 <limits.h> exists even on freestanding compilers. */
10783
10784 #ifdef __STDC__
10785 # include <limits.h>
10786 #else
10787 # include <assert.h>
10788 #endif
10789
10790 #undef $ac_func
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char $ac_func ();
10799 /* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
10802 #if defined __stub_$ac_func || defined __stub___$ac_func
10803 choke me
10804 #endif
10805
10806 int
10807 main ()
10808 {
10809 return $ac_func ();
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822 (eval "$ac_link") 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest$ac_exeext && {
10832 test "$cross_compiling" = yes ||
10833 $as_test_x conftest$ac_exeext
10834 }; then
10835 eval "$as_ac_var=yes"
10836 else
10837 $as_echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840 eval "$as_ac_var=no"
10841 fi
10842
10843 rm -rf conftest.dSYM
10844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10845 conftest$ac_exeext conftest.$ac_ext
10846 fi
10847 ac_res=`eval 'as_val=${'$as_ac_var'}
10848 $as_echo "$as_val"'`
10849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10850 $as_echo "$ac_res" >&6; }
10851 as_val=`eval 'as_val=${'$as_ac_var'}
10852 $as_echo "$as_val"'`
10853 if test "x$as_val" = x""yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10856 _ACEOF
10857
10858 fi
10859 done
10860
10861
10862 cat >>confdefs.h <<\_ACEOF
10863 #define READLINE_SUPPORT 1
10864 _ACEOF
10865
10866 fi
10867 fi
10868
10869 ################################################################################
10870 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10871 $as_echo_n "checking whether to enable internationalisation... " >&6; }
10872 # Check whether --enable-nls was given.
10873 if test "${enable_nls+set}" = set; then
10874 enableval=$enable_nls; INTL=$enableval
10875 else
10876 INTL=no
10877 fi
10878
10879 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
10880 $as_echo "$INTL" >&6; }
10881
10882 if test x$INTL = xyes; then
10883 # FIXME - Move this - can be device-mapper too
10884 INTL_PACKAGE="lvm2"
10885 # Extract the first word of "msgfmt", so it can be a program name with args.
10886 set dummy msgfmt; ac_word=$2
10887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if test "${ac_cv_path_MSGFMT+set}" = set; then
10890 $as_echo_n "(cached) " >&6
10891 else
10892 case $MSGFMT in
10893 [\\/]* | ?:[\\/]*)
10894 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10895 ;;
10896 *)
10897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898 for as_dir in $PATH
10899 do
10900 IFS=$as_save_IFS
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10904 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10906 break 2
10907 fi
10908 done
10909 done
10910 IFS=$as_save_IFS
10911
10912 ;;
10913 esac
10914 fi
10915 MSGFMT=$ac_cv_path_MSGFMT
10916 if test -n "$MSGFMT"; then
10917 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10918 $as_echo "$MSGFMT" >&6; }
10919 else
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921 $as_echo "no" >&6; }
10922 fi
10923
10924
10925 if [ "x$MSGFMT" == x ];
10926 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10927 " >&5
10928 $as_echo "$as_me: error: msgfmt not found in path $PATH
10929 " >&2;}
10930 { (exit 1); exit 1; }; }
10931 fi;
10932
10933
10934 # Check whether --with-localedir was given.
10935 if test "${with_localedir+set}" = set; then
10936 withval=$with_localedir; LOCALEDIR="$withval"
10937 else
10938 LOCALEDIR='${prefix}/share/locale'
10939 fi
10940
10941 fi
10942
10943 ################################################################################
10944
10945 # Check whether --with-confdir was given.
10946 if test "${with_confdir+set}" = set; then
10947 withval=$with_confdir; CONFDIR="$withval"
10948 else
10949 CONFDIR='/etc'
10950 fi
10951
10952
10953
10954 # Check whether --with-staticdir was given.
10955 if test "${with_staticdir+set}" = set; then
10956 withval=$with_staticdir; STATICDIR="$withval"
10957 else
10958 STATICDIR='${exec_prefix}/sbin'
10959 fi
10960
10961
10962
10963 # Check whether --with-usrlibdir was given.
10964 if test "${with_usrlibdir+set}" = set; then
10965 withval=$with_usrlibdir; usrlibdir="$withval"
10966 else
10967 usrlibdir='${prefix}/lib'
10968 fi
10969
10970
10971
10972 # Check whether --with-usrsbindir was given.
10973 if test "${with_usrsbindir+set}" = set; then
10974 withval=$with_usrsbindir; usrsbindir="$withval"
10975 else
10976 usrsbindir='${prefix}/sbin'
10977 fi
10978
10979
10980 ################################################################################
10981 if test x$READLINE = xyes; then
10982
10983
10984 for ac_header in readline/readline.h readline/history.h
10985 do
10986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 $as_echo_n "checking for $ac_header... " >&6; }
10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991 $as_echo_n "(cached) " >&6
10992 fi
10993 ac_res=`eval 'as_val=${'$as_ac_Header'}
10994 $as_echo "$as_val"'`
10995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10996 $as_echo "$ac_res" >&6; }
10997 else
10998 # Is the header compilable?
10999 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11000 $as_echo_n "checking $ac_header usability... " >&6; }
11001 cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h. */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 $ac_includes_default
11008 #include <$ac_header>
11009 _ACEOF
11010 rm -f conftest.$ac_objext
11011 if { (ac_try="$ac_compile"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11017 $as_echo "$ac_try_echo") >&5
11018 (eval "$ac_compile") 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } && {
11025 test -z "$ac_c_werror_flag" ||
11026 test ! -s conftest.err
11027 } && test -s conftest.$ac_objext; then
11028 ac_header_compiler=yes
11029 else
11030 $as_echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_header_compiler=no
11034 fi
11035
11036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11038 $as_echo "$ac_header_compiler" >&6; }
11039
11040 # Is the header present?
11041 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11042 $as_echo_n "checking $ac_header presence... " >&6; }
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <$ac_header>
11050 _ACEOF
11051 if { (ac_try="$ac_cpp conftest.$ac_ext"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057 $as_echo "$ac_try_echo") >&5
11058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } >/dev/null && {
11065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 }; then
11068 ac_header_preproc=yes
11069 else
11070 $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 ac_header_preproc=no
11074 fi
11075
11076 rm -f conftest.err conftest.$ac_ext
11077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11078 $as_echo "$ac_header_preproc" >&6; }
11079
11080 # So? What about this header?
11081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11082 yes:no: )
11083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11084 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11087 ac_header_preproc=yes
11088 ;;
11089 no:yes:* )
11090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11091 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11093 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11095 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11097 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11101 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11102
11103 ;;
11104 esac
11105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 $as_echo_n "checking for $ac_header... " >&6; }
11107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11108 $as_echo_n "(cached) " >&6
11109 else
11110 eval "$as_ac_Header=\$ac_header_preproc"
11111 fi
11112 ac_res=`eval 'as_val=${'$as_ac_Header'}
11113 $as_echo "$as_val"'`
11114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11115 $as_echo "$ac_res" >&6; }
11116
11117 fi
11118 as_val=`eval 'as_val=${'$as_ac_Header'}
11119 $as_echo "$as_val"'`
11120 if test "x$as_val" = x""yes; then
11121 cat >>confdefs.h <<_ACEOF
11122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11123 _ACEOF
11124
11125 else
11126 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11127 $as_echo "$as_me: error: bailing out" >&2;}
11128 { (exit 1); exit 1; }; }
11129 fi
11130
11131 done
11132
11133 fi
11134
11135 if test x$CLVMD != xnone; then
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146 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
11147 do
11148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 $as_echo_n "checking for $ac_header... " >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 $as_echo_n "(cached) " >&6
11154 fi
11155 ac_res=`eval 'as_val=${'$as_ac_Header'}
11156 $as_echo "$as_val"'`
11157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11158 $as_echo "$ac_res" >&6; }
11159 else
11160 # Is the header compilable?
11161 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 $as_echo_n "checking $ac_header usability... " >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177 esac
11178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11179 $as_echo "$ac_try_echo") >&5
11180 (eval "$ac_compile") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest.$ac_objext; then
11190 ac_header_compiler=yes
11191 else
11192 $as_echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_header_compiler=no
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 $as_echo "$ac_header_compiler" >&6; }
11201
11202 # Is the header present?
11203 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 $as_echo_n "checking $ac_header presence... " >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11212 _ACEOF
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217 esac
11218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11219 $as_echo "$ac_try_echo") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null && {
11227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 }; then
11230 ac_header_preproc=yes
11231 else
11232 $as_echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_header_preproc=no
11236 fi
11237
11238 rm -f conftest.err conftest.$ac_ext
11239 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240 $as_echo "$ac_header_preproc" >&6; }
11241
11242 # So? What about this header?
11243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 yes:no: )
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11249 ac_header_preproc=yes
11250 ;;
11251 no:yes:* )
11252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11264
11265 ;;
11266 esac
11267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 $as_echo_n "checking for $ac_header... " >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 $as_echo_n "(cached) " >&6
11271 else
11272 eval "$as_ac_Header=\$ac_header_preproc"
11273 fi
11274 ac_res=`eval 'as_val=${'$as_ac_Header'}
11275 $as_echo "$as_val"'`
11276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11277 $as_echo "$ac_res" >&6; }
11278
11279 fi
11280 as_val=`eval 'as_val=${'$as_ac_Header'}
11281 $as_echo "$as_val"'`
11282 if test "x$as_val" = x""yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 _ACEOF
11286
11287 else
11288 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11289 $as_echo "$as_me: error: bailing out" >&2;}
11290 { (exit 1); exit 1; }; }
11291 fi
11292
11293 done
11294
11295
11296
11297
11298
11299
11300 for ac_func in dup2 getmntent memmove select socket
11301 do
11302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 $as_echo_n "checking for $ac_func... " >&6; }
11305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11306 $as_echo_n "(cached) " >&6
11307 else
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11317
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11322
11323 #ifdef __STDC__
11324 # include <limits.h>
11325 #else
11326 # include <assert.h>
11327 #endif
11328
11329 #undef $ac_func
11330
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char $ac_func ();
11338 /* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
11341 #if defined __stub_$ac_func || defined __stub___$ac_func
11342 choke me
11343 #endif
11344
11345 int
11346 main ()
11347 {
11348 return $ac_func ();
11349 ;
11350 return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (ac_try="$ac_link"
11355 case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358 esac
11359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11360 $as_echo "$ac_try_echo") >&5
11361 (eval "$ac_link") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } && {
11368 test -z "$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 } && test -s conftest$ac_exeext && {
11371 test "$cross_compiling" = yes ||
11372 $as_test_x conftest$ac_exeext
11373 }; then
11374 eval "$as_ac_var=yes"
11375 else
11376 $as_echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 eval "$as_ac_var=no"
11380 fi
11381
11382 rm -rf conftest.dSYM
11383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11384 conftest$ac_exeext conftest.$ac_ext
11385 fi
11386 ac_res=`eval 'as_val=${'$as_ac_var'}
11387 $as_echo "$as_val"'`
11388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11389 $as_echo "$ac_res" >&6; }
11390 as_val=`eval 'as_val=${'$as_ac_var'}
11391 $as_echo "$as_val"'`
11392 if test "x$as_val" = x""yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11395 _ACEOF
11396
11397 else
11398 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11399 $as_echo "$as_me: error: bailing out" >&2;}
11400 { (exit 1); exit 1; }; }
11401 fi
11402 done
11403
11404 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11405 # -lseq on Dynix/PTX, -lgen on Unixware.
11406 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11407 $as_echo_n "checking for library containing getmntent... " >&6; }
11408 if test "${ac_cv_search_getmntent+set}" = set; then
11409 $as_echo_n "(cached) " >&6
11410 else
11411 ac_func_search_save_LIBS=$LIBS
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char getmntent ();
11426 int
11427 main ()
11428 {
11429 return getmntent ();
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 for ac_lib in '' sun seq gen; do
11435 if test -z "$ac_lib"; then
11436 ac_res="none required"
11437 else
11438 ac_res=-l$ac_lib
11439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11440 fi
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446 esac
11447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11448 $as_echo "$ac_try_echo") >&5
11449 (eval "$ac_link") 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext && {
11459 test "$cross_compiling" = yes ||
11460 $as_test_x conftest$ac_exeext
11461 }; then
11462 ac_cv_search_getmntent=$ac_res
11463 else
11464 $as_echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467
11468 fi
11469
11470 rm -rf conftest.dSYM
11471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11472 conftest$ac_exeext
11473 if test "${ac_cv_search_getmntent+set}" = set; then
11474 break
11475 fi
11476 done
11477 if test "${ac_cv_search_getmntent+set}" = set; then
11478 :
11479 else
11480 ac_cv_search_getmntent=no
11481 fi
11482 rm conftest.$ac_ext
11483 LIBS=$ac_func_search_save_LIBS
11484 fi
11485 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11486 $as_echo "$ac_cv_search_getmntent" >&6; }
11487 ac_res=$ac_cv_search_getmntent
11488 if test "$ac_res" != no; then
11489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11490 ac_cv_func_getmntent=yes
11491
11492 cat >>confdefs.h <<\_ACEOF
11493 #define HAVE_GETMNTENT 1
11494 _ACEOF
11495
11496 else
11497 ac_cv_func_getmntent=no
11498 fi
11499
11500
11501 # AC_FUNC_REALLOC
11502
11503
11504 for ac_header in sys/select.h sys/socket.h
11505 do
11506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11509 $as_echo_n "checking for $ac_header... " >&6; }
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 $as_echo_n "(cached) " >&6
11512 fi
11513 ac_res=`eval 'as_val=${'$as_ac_Header'}
11514 $as_echo "$as_val"'`
11515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11516 $as_echo "$ac_res" >&6; }
11517 else
11518 # Is the header compilable?
11519 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11520 $as_echo_n "checking $ac_header usability... " >&6; }
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 $ac_includes_default
11528 #include <$ac_header>
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (ac_try="$ac_compile"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535 esac
11536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537 $as_echo "$ac_try_echo") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
11548 ac_header_compiler=yes
11549 else
11550 $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 ac_header_compiler=no
11554 fi
11555
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558 $as_echo "$ac_header_compiler" >&6; }
11559
11560 # Is the header present?
11561 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11562 $as_echo_n "checking $ac_header presence... " >&6; }
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <$ac_header>
11570 _ACEOF
11571 if { (ac_try="$ac_cpp conftest.$ac_ext"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575 esac
11576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11577 $as_echo "$ac_try_echo") >&5
11578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev/null && {
11585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 }; then
11588 ac_header_preproc=yes
11589 else
11590 $as_echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 ac_header_preproc=no
11594 fi
11595
11596 rm -f conftest.err conftest.$ac_ext
11597 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11598 $as_echo "$ac_header_preproc" >&6; }
11599
11600 # So? What about this header?
11601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11602 yes:no: )
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11607 ac_header_preproc=yes
11608 ;;
11609 no:yes:* )
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11622
11623 ;;
11624 esac
11625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11626 $as_echo_n "checking for $ac_header... " >&6; }
11627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11628 $as_echo_n "(cached) " >&6
11629 else
11630 eval "$as_ac_Header=\$ac_header_preproc"
11631 fi
11632 ac_res=`eval 'as_val=${'$as_ac_Header'}
11633 $as_echo "$as_val"'`
11634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11635 $as_echo "$ac_res" >&6; }
11636
11637 fi
11638 as_val=`eval 'as_val=${'$as_ac_Header'}
11639 $as_echo "$as_val"'`
11640 if test "x$as_val" = x""yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 _ACEOF
11644
11645 fi
11646
11647 done
11648
11649 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11650 $as_echo_n "checking types of arguments for select... " >&6; }
11651 if test "${ac_cv_func_select_args+set}" = set; then
11652 $as_echo_n "(cached) " >&6
11653 else
11654 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11655 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11656 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 #ifdef HAVE_SYS_SELECT_H
11665 # include <sys/select.h>
11666 #endif
11667 #ifdef HAVE_SYS_SOCKET_H
11668 # include <sys/socket.h>
11669 #endif
11670
11671 int
11672 main ()
11673 {
11674 extern int select ($ac_arg1,
11675 $ac_arg234, $ac_arg234, $ac_arg234,
11676 $ac_arg5);
11677 ;
11678 return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext
11682 if { (ac_try="$ac_compile"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11688 $as_echo "$ac_try_echo") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11700 else
11701 $as_echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704
11705 fi
11706
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 done
11709 done
11710 done
11711 # Provide a safe default value.
11712 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11713
11714 fi
11715 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11716 $as_echo "$ac_cv_func_select_args" >&6; }
11717 ac_save_IFS=$IFS; IFS=','
11718 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11719 IFS=$ac_save_IFS
11720 shift
11721
11722 cat >>confdefs.h <<_ACEOF
11723 #define SELECT_TYPE_ARG1 $1
11724 _ACEOF
11725
11726
11727 cat >>confdefs.h <<_ACEOF
11728 #define SELECT_TYPE_ARG234 ($2)
11729 _ACEOF
11730
11731
11732 cat >>confdefs.h <<_ACEOF
11733 #define SELECT_TYPE_ARG5 ($3)
11734 _ACEOF
11735
11736 rm -f conftest*
11737
11738 fi
11739
11740 if test x$CLUSTER != xnone; then
11741
11742
11743 for ac_header in sys/socket.h sys/un.h
11744 do
11745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11748 $as_echo_n "checking for $ac_header... " >&6; }
11749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11750 $as_echo_n "(cached) " >&6
11751 fi
11752 ac_res=`eval 'as_val=${'$as_ac_Header'}
11753 $as_echo "$as_val"'`
11754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11755 $as_echo "$ac_res" >&6; }
11756 else
11757 # Is the header compilable?
11758 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11759 $as_echo_n "checking $ac_header usability... " >&6; }
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h. */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 $ac_includes_default
11767 #include <$ac_header>
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774 esac
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_header_compiler=yes
11788 else
11789 $as_echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 ac_header_compiler=no
11793 fi
11794
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 $as_echo "$ac_header_compiler" >&6; }
11798
11799 # Is the header present?
11800 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801 $as_echo_n "checking $ac_header presence... " >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <$ac_header>
11809 _ACEOF
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816 $as_echo "$ac_try_echo") >&5
11817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } >/dev/null && {
11824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 }; then
11827 ac_header_preproc=yes
11828 else
11829 $as_echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_header_preproc=no
11833 fi
11834
11835 rm -f conftest.err conftest.$ac_ext
11836 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11837 $as_echo "$ac_header_preproc" >&6; }
11838
11839 # So? What about this header?
11840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841 yes:no: )
11842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11843 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11845 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11846 ac_header_preproc=yes
11847 ;;
11848 no:yes:* )
11849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11850 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11856 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11858 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11860 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11861
11862 ;;
11863 esac
11864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11865 $as_echo_n "checking for $ac_header... " >&6; }
11866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11867 $as_echo_n "(cached) " >&6
11868 else
11869 eval "$as_ac_Header=\$ac_header_preproc"
11870 fi
11871 ac_res=`eval 'as_val=${'$as_ac_Header'}
11872 $as_echo "$as_val"'`
11873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11874 $as_echo "$ac_res" >&6; }
11875
11876 fi
11877 as_val=`eval 'as_val=${'$as_ac_Header'}
11878 $as_echo "$as_val"'`
11879 if test "x$as_val" = x""yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 _ACEOF
11883
11884 else
11885 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11886 $as_echo "$as_me: error: bailing out" >&2;}
11887 { (exit 1); exit 1; }; }
11888 fi
11889
11890 done
11891
11892
11893 for ac_func in socket
11894 do
11895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 $as_echo_n "checking for $ac_func... " >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899 $as_echo_n "(cached) " >&6
11900 else
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11910
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11915
11916 #ifdef __STDC__
11917 # include <limits.h>
11918 #else
11919 # include <assert.h>
11920 #endif
11921
11922 #undef $ac_func
11923
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 char $ac_func ();
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11935 choke me
11936 #endif
11937
11938 int
11939 main ()
11940 {
11941 return $ac_func ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951 esac
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11966 }; then
11967 eval "$as_ac_var=yes"
11968 else
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 eval "$as_ac_var=no"
11973 fi
11974
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 fi
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 as_val=`eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'`
11985 if test "x$as_val" = x""yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988 _ACEOF
11989
11990 else
11991 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11992 $as_echo "$as_me: error: bailing out" >&2;}
11993 { (exit 1); exit 1; }; }
11994 fi
11995 done
11996
11997 fi
11998
11999 if test x$HAVE_LIBDL = xyes; then
12000
12001 for ac_header in dlfcn.h
12002 do
12003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12006 $as_echo_n "checking for $ac_header... " >&6; }
12007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12008 $as_echo_n "(cached) " >&6
12009 fi
12010 ac_res=`eval 'as_val=${'$as_ac_Header'}
12011 $as_echo "$as_val"'`
12012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12013 $as_echo "$ac_res" >&6; }
12014 else
12015 # Is the header compilable?
12016 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12017 $as_echo_n "checking $ac_header usability... " >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 #include <$ac_header>
12026 _ACEOF
12027 rm -f conftest.$ac_objext
12028 if { (ac_try="$ac_compile"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12034 $as_echo "$ac_try_echo") >&5
12035 (eval "$ac_compile") 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest.$ac_objext; then
12045 ac_header_compiler=yes
12046 else
12047 $as_echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_header_compiler=no
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12055 $as_echo "$ac_header_compiler" >&6; }
12056
12057 # Is the header present?
12058 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12059 $as_echo_n "checking $ac_header presence... " >&6; }
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h. */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 #include <$ac_header>
12067 _ACEOF
12068 if { (ac_try="$ac_cpp conftest.$ac_ext"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12074 $as_echo "$ac_try_echo") >&5
12075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } >/dev/null && {
12082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 }; then
12085 ac_header_preproc=yes
12086 else
12087 $as_echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 ac_header_preproc=no
12091 fi
12092
12093 rm -f conftest.err conftest.$ac_ext
12094 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12095 $as_echo "$ac_header_preproc" >&6; }
12096
12097 # So? What about this header?
12098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12099 yes:no: )
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12101 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12104 ac_header_preproc=yes
12105 ;;
12106 no:yes:* )
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12108 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12112 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12114 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12116 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12118 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12119
12120 ;;
12121 esac
12122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12123 $as_echo_n "checking for $ac_header... " >&6; }
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125 $as_echo_n "(cached) " >&6
12126 else
12127 eval "$as_ac_Header=\$ac_header_preproc"
12128 fi
12129 ac_res=`eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'`
12131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12132 $as_echo "$ac_res" >&6; }
12133
12134 fi
12135 as_val=`eval 'as_val=${'$as_ac_Header'}
12136 $as_echo "$as_val"'`
12137 if test "x$as_val" = x""yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12140 _ACEOF
12141
12142 else
12143 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12144 $as_echo "$as_me: error: bailing out" >&2;}
12145 { (exit 1); exit 1; }; }
12146 fi
12147
12148 done
12149
12150 fi
12151
12152 if test x$INTL = xyes; then
12153
12154 for ac_header in libintl.h
12155 do
12156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12159 $as_echo_n "checking for $ac_header... " >&6; }
12160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12161 $as_echo_n "(cached) " >&6
12162 fi
12163 ac_res=`eval 'as_val=${'$as_ac_Header'}
12164 $as_echo "$as_val"'`
12165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12166 $as_echo "$ac_res" >&6; }
12167 else
12168 # Is the header compilable?
12169 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170 $as_echo_n "checking $ac_header usability... " >&6; }
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 #include <$ac_header>
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (ac_try="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12187 $as_echo "$ac_try_echo") >&5
12188 (eval "$ac_compile") 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest.$ac_objext; then
12198 ac_header_compiler=yes
12199 else
12200 $as_echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 ac_header_compiler=no
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208 $as_echo "$ac_header_compiler" >&6; }
12209
12210 # Is the header present?
12211 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12212 $as_echo_n "checking $ac_header presence... " >&6; }
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 #include <$ac_header>
12220 _ACEOF
12221 if { (ac_try="$ac_cpp conftest.$ac_ext"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225 esac
12226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12227 $as_echo "$ac_try_echo") >&5
12228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } >/dev/null && {
12235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12236 test ! -s conftest.err
12237 }; then
12238 ac_header_preproc=yes
12239 else
12240 $as_echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_header_preproc=no
12244 fi
12245
12246 rm -f conftest.err conftest.$ac_ext
12247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12248 $as_echo "$ac_header_preproc" >&6; }
12249
12250 # So? What about this header?
12251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12252 yes:no: )
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12257 ac_header_preproc=yes
12258 ;;
12259 no:yes:* )
12260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12265 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12267 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12271 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12272
12273 ;;
12274 esac
12275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12276 $as_echo_n "checking for $ac_header... " >&6; }
12277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12278 $as_echo_n "(cached) " >&6
12279 else
12280 eval "$as_ac_Header=\$ac_header_preproc"
12281 fi
12282 ac_res=`eval 'as_val=${'$as_ac_Header'}
12283 $as_echo "$as_val"'`
12284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12285 $as_echo "$ac_res" >&6; }
12286
12287 fi
12288 as_val=`eval 'as_val=${'$as_ac_Header'}
12289 $as_echo "$as_val"'`
12290 if test "x$as_val" = x""yes; then
12291 cat >>confdefs.h <<_ACEOF
12292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293 _ACEOF
12294
12295 else
12296 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12297 $as_echo "$as_me: error: bailing out" >&2;}
12298 { (exit 1); exit 1; }; }
12299 fi
12300
12301 done
12302
12303 fi
12304
12305 if test x$HAVE_SELINUX = xyes; then
12306
12307 for ac_header in selinux/selinux.h
12308 do
12309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12312 $as_echo_n "checking for $ac_header... " >&6; }
12313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12315 fi
12316 ac_res=`eval 'as_val=${'$as_ac_Header'}
12317 $as_echo "$as_val"'`
12318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12319 $as_echo "$ac_res" >&6; }
12320 else
12321 # Is the header compilable?
12322 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12323 $as_echo_n "checking $ac_header usability... " >&6; }
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12331 #include <$ac_header>
12332 _ACEOF
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338 esac
12339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12340 $as_echo "$ac_try_echo") >&5
12341 (eval "$ac_compile") 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest.$ac_objext; then
12351 ac_header_compiler=yes
12352 else
12353 $as_echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 ac_header_compiler=no
12357 fi
12358
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12361 $as_echo "$ac_header_compiler" >&6; }
12362
12363 # Is the header present?
12364 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12365 $as_echo_n "checking $ac_header presence... " >&6; }
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <$ac_header>
12373 _ACEOF
12374 if { (ac_try="$ac_cpp conftest.$ac_ext"
12375 case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378 esac
12379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12380 $as_echo "$ac_try_echo") >&5
12381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } >/dev/null && {
12388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12390 }; then
12391 ac_header_preproc=yes
12392 else
12393 $as_echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_header_preproc=no
12397 fi
12398
12399 rm -f conftest.err conftest.$ac_ext
12400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12401 $as_echo "$ac_header_preproc" >&6; }
12402
12403 # So? What about this header?
12404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12405 yes:no: )
12406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12407 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12410 ac_header_preproc=yes
12411 ;;
12412 no:yes:* )
12413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12414 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12416 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12418 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12420 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12424 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12425
12426 ;;
12427 esac
12428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 $as_echo_n "checking for $ac_header... " >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 $as_echo_n "(cached) " >&6
12432 else
12433 eval "$as_ac_Header=\$ac_header_preproc"
12434 fi
12435 ac_res=`eval 'as_val=${'$as_ac_Header'}
12436 $as_echo "$as_val"'`
12437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12438 $as_echo "$ac_res" >&6; }
12439
12440 fi
12441 as_val=`eval 'as_val=${'$as_ac_Header'}
12442 $as_echo "$as_val"'`
12443 if test "x$as_val" = x""yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12446 _ACEOF
12447
12448 else
12449 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12450 $as_echo "$as_me: error: bailing out" >&2;}
12451 { (exit 1); exit 1; }; }
12452 fi
12453
12454 done
12455
12456 fi
12457
12458 ################################################################################
12459 # Extract the first word of "modprobe", so it can be a program name with args.
12460 set dummy modprobe; ac_word=$2
12461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12462 $as_echo_n "checking for $ac_word... " >&6; }
12463 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
12464 $as_echo_n "(cached) " >&6
12465 else
12466 case $MODPROBE_CMD in
12467 [\\/]* | ?:[\\/]*)
12468 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12469 ;;
12470 *)
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12473 do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12478 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
12479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12480 break 2
12481 fi
12482 done
12483 done
12484 IFS=$as_save_IFS
12485
12486 ;;
12487 esac
12488 fi
12489 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
12490 if test -n "$MODPROBE_CMD"; then
12491 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12492 $as_echo "$MODPROBE_CMD" >&6; }
12493 else
12494 { $as_echo "$as_me:$LINENO: result: no" >&5
12495 $as_echo "no" >&6; }
12496 fi
12497
12498
12499
12500 if test x$MODPROBE_CMD != x; then
12501
12502 cat >>confdefs.h <<_ACEOF
12503 #define MODPROBE_CMD "$MODPROBE_CMD"
12504 _ACEOF
12505
12506 fi
12507
12508 ################################################################################
12509
12510
12511 if test "$BUILD_DMEVENTD" = yes; then
12512
12513 # Check whether --with-dmeventd-pidfile was given.
12514 if test "${with_dmeventd_pidfile+set}" = set; then
12515 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12516 #define DMEVENTD_PIDFILE "$withval"
12517 _ACEOF
12518
12519 else
12520 cat >>confdefs.h <<_ACEOF
12521 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12522 _ACEOF
12523
12524 fi
12525
12526 fi
12527
12528
12529
12530 if test "$BUILD_DMEVENTD" = yes; then
12531 dmeventd_prefix="$exec_prefix"
12532 if test "x$dmeventd_prefix" = "xNONE"; then
12533 dmeventd_prefix="$prefix"
12534 fi
12535 if test "x$dmeventd_prefix" = "xNONE"; then
12536 dmeventd_prefix=""
12537 fi
12538
12539 # Check whether --with-dmeventd-path was given.
12540 if test "${with_dmeventd_path+set}" = set; then
12541 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12542 #define DMEVENTD_PATH "$withval"
12543 _ACEOF
12544
12545 else
12546 cat >>confdefs.h <<_ACEOF
12547 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12548 _ACEOF
12549
12550 fi
12551
12552 fi
12553
12554 ################################################################################
12555 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12556 $as_echo_n "checking for kernel interface choice... " >&6; }
12557
12558 # Check whether --with-interface was given.
12559 if test "${with_interface+set}" = set; then
12560 withval=$with_interface; interface="$withval"
12561 else
12562 interface=ioctl
12563 fi
12564
12565 if [ "x$interface" != xioctl ];
12566 then
12567 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12568 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
12569 { (exit 1); exit 1; }; }
12570 fi
12571 { $as_echo "$as_me:$LINENO: result: $interface" >&5
12572 $as_echo "$interface" >&6; }
12573
12574 ################################################################################
12575 DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
12576
12577 cat >>confdefs.h <<_ACEOF
12578 #define DM_LIB_VERSION $DM_LIB_VERSION
12579 _ACEOF
12580
12581
12582 DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
12583
12584 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
12585
12586 VER=`cat VERSION`
12587 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\""
12588 VER=`echo "$VER" | $AWK '{print $1}'`
12589 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12590 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12591 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12592 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12593 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'`
12594
12595 ################################################################################
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661 ################################################################################
12662 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 man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
12663
12664 cat >confcache <<\_ACEOF
12665 # This file is a shell script that caches the results of configure
12666 # tests run on this system so they can be shared between configure
12667 # scripts and configure runs, see configure's option --config-cache.
12668 # It is not useful on other systems. If it contains results you don't
12669 # want to keep, you may remove or edit it.
12670 #
12671 # config.status only pays attention to the cache file if you give it
12672 # the --recheck option to rerun configure.
12673 #
12674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12676 # following values.
12677
12678 _ACEOF
12679
12680 # The following way of writing the cache mishandles newlines in values,
12681 # but we know of no workaround that is simple, portable, and efficient.
12682 # So, we kill variables containing newlines.
12683 # Ultrix sh set writes to stderr and can't be redirected directly,
12684 # and sets the high bit in the cache file unless we assign to the vars.
12685 (
12686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12687 eval ac_val=\$$ac_var
12688 case $ac_val in #(
12689 *${as_nl}*)
12690 case $ac_var in #(
12691 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12693 esac
12694 case $ac_var in #(
12695 _ | IFS | as_nl) ;; #(
12696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12697 *) $as_unset $ac_var ;;
12698 esac ;;
12699 esac
12700 done
12701
12702 (set) 2>&1 |
12703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12704 *${as_nl}ac_space=\ *)
12705 # `set' does not quote correctly, so add quotes (double-quote
12706 # substitution turns \\\\ into \\, and sed turns \\ into \).
12707 sed -n \
12708 "s/'/'\\\\''/g;
12709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12710 ;; #(
12711 *)
12712 # `set' quotes correctly as required by POSIX, so do not add quotes.
12713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12714 ;;
12715 esac |
12716 sort
12717 ) |
12718 sed '
12719 /^ac_cv_env_/b end
12720 t clear
12721 :clear
12722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12723 t end
12724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12725 :end' >>confcache
12726 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12727 if test -w "$cache_file"; then
12728 test "x$cache_file" != "x/dev/null" &&
12729 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12730 $as_echo "$as_me: updating cache $cache_file" >&6;}
12731 cat confcache >$cache_file
12732 else
12733 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12734 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12735 fi
12736 fi
12737 rm -f confcache
12738
12739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12740 # Let make expand exec_prefix.
12741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12742
12743 DEFS=-DHAVE_CONFIG_H
12744
12745 ac_libobjs=
12746 ac_ltlibobjs=
12747 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12748 # 1. Remove the extension, and $U if already installed.
12749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12752 # will be set to the directory where LIBOBJS objects are built.
12753 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12754 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12755 done
12756 LIBOBJS=$ac_libobjs
12757
12758 LTLIBOBJS=$ac_ltlibobjs
12759
12760
12761
12762 : ${CONFIG_STATUS=./config.status}
12763 ac_write_fail=0
12764 ac_clean_files_save=$ac_clean_files
12765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12766 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12767 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12768 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12769 #! $SHELL
12770 # Generated by $as_me.
12771 # Run this file to recreate the current configuration.
12772 # Compiler output produced by configure, useful for debugging
12773 # configure, is in config.log if it exists.
12774
12775 debug=false
12776 ac_cs_recheck=false
12777 ac_cs_silent=false
12778 SHELL=\${CONFIG_SHELL-$SHELL}
12779 _ACEOF
12780
12781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12782 ## --------------------- ##
12783 ## M4sh Initialization. ##
12784 ## --------------------- ##
12785
12786 # Be more Bourne compatible
12787 DUALCASE=1; export DUALCASE # for MKS sh
12788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12789 emulate sh
12790 NULLCMD=:
12791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12792 # is contrary to our usage. Disable this feature.
12793 alias -g '${1+"$@"}'='"$@"'
12794 setopt NO_GLOB_SUBST
12795 else
12796 case `(set -o) 2>/dev/null` in
12797 *posix*) set -o posix ;;
12798 esac
12799
12800 fi
12801
12802
12803
12804
12805 # PATH needs CR
12806 # Avoid depending upon Character Ranges.
12807 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12808 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12809 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12810 as_cr_digits='0123456789'
12811 as_cr_alnum=$as_cr_Letters$as_cr_digits
12812
12813 as_nl='
12814 '
12815 export as_nl
12816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12817 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12820 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12821 as_echo='printf %s\n'
12822 as_echo_n='printf %s'
12823 else
12824 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12825 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12826 as_echo_n='/usr/ucb/echo -n'
12827 else
12828 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12829 as_echo_n_body='eval
12830 arg=$1;
12831 case $arg in
12832 *"$as_nl"*)
12833 expr "X$arg" : "X\\(.*\\)$as_nl";
12834 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12835 esac;
12836 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12837 '
12838 export as_echo_n_body
12839 as_echo_n='sh -c $as_echo_n_body as_echo'
12840 fi
12841 export as_echo_body
12842 as_echo='sh -c $as_echo_body as_echo'
12843 fi
12844
12845 # The user is always right.
12846 if test "${PATH_SEPARATOR+set}" != set; then
12847 PATH_SEPARATOR=:
12848 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12849 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12850 PATH_SEPARATOR=';'
12851 }
12852 fi
12853
12854 # Support unset when possible.
12855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12856 as_unset=unset
12857 else
12858 as_unset=false
12859 fi
12860
12861
12862 # IFS
12863 # We need space, tab and new line, in precisely that order. Quoting is
12864 # there to prevent editors from complaining about space-tab.
12865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12866 # splitting by setting IFS to empty value.)
12867 IFS=" "" $as_nl"
12868
12869 # Find who we are. Look in the path if we contain no directory separator.
12870 case $0 in
12871 *[\\/]* ) as_myself=$0 ;;
12872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12874 do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12878 done
12879 IFS=$as_save_IFS
12880
12881 ;;
12882 esac
12883 # We did not find ourselves, most probably we were run as `sh COMMAND'
12884 # in which case we are not to be found in the path.
12885 if test "x$as_myself" = x; then
12886 as_myself=$0
12887 fi
12888 if test ! -f "$as_myself"; then
12889 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12890 { (exit 1); exit 1; }
12891 fi
12892
12893 # Work around bugs in pre-3.0 UWIN ksh.
12894 for as_var in ENV MAIL MAILPATH
12895 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12896 done
12897 PS1='$ '
12898 PS2='> '
12899 PS4='+ '
12900
12901 # NLS nuisances.
12902 LC_ALL=C
12903 export LC_ALL
12904 LANGUAGE=C
12905 export LANGUAGE
12906
12907 # Required to use basename.
12908 if expr a : '\(a\)' >/dev/null 2>&1 &&
12909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12910 as_expr=expr
12911 else
12912 as_expr=false
12913 fi
12914
12915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12916 as_basename=basename
12917 else
12918 as_basename=false
12919 fi
12920
12921
12922 # Name of the executable.
12923 as_me=`$as_basename -- "$0" ||
12924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12925 X"$0" : 'X\(//\)$' \| \
12926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12927 $as_echo X/"$0" |
12928 sed '/^.*\/\([^/][^/]*\)\/*$/{
12929 s//\1/
12930 q
12931 }
12932 /^X\/\(\/\/\)$/{
12933 s//\1/
12934 q
12935 }
12936 /^X\/\(\/\).*/{
12937 s//\1/
12938 q
12939 }
12940 s/.*/./; q'`
12941
12942 # CDPATH.
12943 $as_unset CDPATH
12944
12945
12946
12947 as_lineno_1=$LINENO
12948 as_lineno_2=$LINENO
12949 test "x$as_lineno_1" != "x$as_lineno_2" &&
12950 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12951
12952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12953 # uniformly replaced by the line number. The first 'sed' inserts a
12954 # line-number line after each line using $LINENO; the second 'sed'
12955 # does the real work. The second script uses 'N' to pair each
12956 # line-number line with the line containing $LINENO, and appends
12957 # trailing '-' during substitution so that $LINENO is not a special
12958 # case at line end.
12959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12960 # scripts with optimization help from Paolo Bonzini. Blame Lee
12961 # E. McMahon (1931-1989) for sed's syntax. :-)
12962 sed -n '
12963 p
12964 /[$]LINENO/=
12965 ' <$as_myself |
12966 sed '
12967 s/[$]LINENO.*/&-/
12968 t lineno
12969 b
12970 :lineno
12971 N
12972 :loop
12973 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12974 t loop
12975 s/-\n.*//
12976 ' >$as_me.lineno &&
12977 chmod +x "$as_me.lineno" ||
12978 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12979 { (exit 1); exit 1; }; }
12980
12981 # Don't try to exec as it changes $[0], causing all sort of problems
12982 # (the dirname of $[0] is not the place where we might find the
12983 # original and so on. Autoconf is especially sensitive to this).
12984 . "./$as_me.lineno"
12985 # Exit status is that of the last command.
12986 exit
12987 }
12988
12989
12990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12991 as_dirname=dirname
12992 else
12993 as_dirname=false
12994 fi
12995
12996 ECHO_C= ECHO_N= ECHO_T=
12997 case `echo -n x` in
12998 -n*)
12999 case `echo 'x\c'` in
13000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13001 *) ECHO_C='\c';;
13002 esac;;
13003 *)
13004 ECHO_N='-n';;
13005 esac
13006 if expr a : '\(a\)' >/dev/null 2>&1 &&
13007 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13008 as_expr=expr
13009 else
13010 as_expr=false
13011 fi
13012
13013 rm -f conf$$ conf$$.exe conf$$.file
13014 if test -d conf$$.dir; then
13015 rm -f conf$$.dir/conf$$.file
13016 else
13017 rm -f conf$$.dir
13018 mkdir conf$$.dir 2>/dev/null
13019 fi
13020 if (echo >conf$$.file) 2>/dev/null; then
13021 if ln -s conf$$.file conf$$ 2>/dev/null; then
13022 as_ln_s='ln -s'
13023 # ... but there are two gotchas:
13024 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13025 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13026 # In both cases, we have to default to `cp -p'.
13027 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13028 as_ln_s='cp -p'
13029 elif ln conf$$.file conf$$ 2>/dev/null; then
13030 as_ln_s=ln
13031 else
13032 as_ln_s='cp -p'
13033 fi
13034 else
13035 as_ln_s='cp -p'
13036 fi
13037 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13038 rmdir conf$$.dir 2>/dev/null
13039
13040 if mkdir -p . 2>/dev/null; then
13041 as_mkdir_p=:
13042 else
13043 test -d ./-p && rmdir ./-p
13044 as_mkdir_p=false
13045 fi
13046
13047 if test -x / >/dev/null 2>&1; then
13048 as_test_x='test -x'
13049 else
13050 if ls -dL / >/dev/null 2>&1; then
13051 as_ls_L_option=L
13052 else
13053 as_ls_L_option=
13054 fi
13055 as_test_x='
13056 eval sh -c '\''
13057 if test -d "$1"; then
13058 test -d "$1/.";
13059 else
13060 case $1 in
13061 -*)set "./$1";;
13062 esac;
13063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13064 ???[sx]*):;;*)false;;esac;fi
13065 '\'' sh
13066 '
13067 fi
13068 as_executable_p=$as_test_x
13069
13070 # Sed expression to map a string onto a valid CPP name.
13071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13072
13073 # Sed expression to map a string onto a valid variable name.
13074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13075
13076
13077 exec 6>&1
13078
13079 # Save the log message, to keep $[0] and so on meaningful, and to
13080 # report actual input values of CONFIG_FILES etc. instead of their
13081 # values after options handling.
13082 ac_log="
13083 This file was extended by $as_me, which was
13084 generated by GNU Autoconf 2.63. Invocation command line was
13085
13086 CONFIG_FILES = $CONFIG_FILES
13087 CONFIG_HEADERS = $CONFIG_HEADERS
13088 CONFIG_LINKS = $CONFIG_LINKS
13089 CONFIG_COMMANDS = $CONFIG_COMMANDS
13090 $ $0 $@
13091
13092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13093 "
13094
13095 _ACEOF
13096
13097 case $ac_config_files in *"
13098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13099 esac
13100
13101 case $ac_config_headers in *"
13102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13103 esac
13104
13105
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 # Files that config.status was made for.
13108 config_files="$ac_config_files"
13109 config_headers="$ac_config_headers"
13110
13111 _ACEOF
13112
13113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13114 ac_cs_usage="\
13115 \`$as_me' instantiates files from templates according to the
13116 current configuration.
13117
13118 Usage: $0 [OPTION]... [FILE]...
13119
13120 -h, --help print this help, then exit
13121 -V, --version print version number and configuration settings, then exit
13122 -q, --quiet, --silent
13123 do not print progress messages
13124 -d, --debug don't remove temporary files
13125 --recheck update $as_me by reconfiguring in the same conditions
13126 --file=FILE[:TEMPLATE]
13127 instantiate the configuration file FILE
13128 --header=FILE[:TEMPLATE]
13129 instantiate the configuration header FILE
13130
13131 Configuration files:
13132 $config_files
13133
13134 Configuration headers:
13135 $config_headers
13136
13137 Report bugs to <bug-autoconf@gnu.org>."
13138
13139 _ACEOF
13140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13141 ac_cs_version="\\
13142 config.status
13143 configured by $0, generated by GNU Autoconf 2.63,
13144 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13145
13146 Copyright (C) 2008 Free Software Foundation, Inc.
13147 This config.status script is free software; the Free Software Foundation
13148 gives unlimited permission to copy, distribute and modify it."
13149
13150 ac_pwd='$ac_pwd'
13151 srcdir='$srcdir'
13152 INSTALL='$INSTALL'
13153 MKDIR_P='$MKDIR_P'
13154 AWK='$AWK'
13155 test -n "\$AWK" || AWK=awk
13156 _ACEOF
13157
13158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13159 # The default lists apply if the user does not specify any file.
13160 ac_need_defaults=:
13161 while test $# != 0
13162 do
13163 case $1 in
13164 --*=*)
13165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13166 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13167 ac_shift=:
13168 ;;
13169 *)
13170 ac_option=$1
13171 ac_optarg=$2
13172 ac_shift=shift
13173 ;;
13174 esac
13175
13176 case $ac_option in
13177 # Handling of the options.
13178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13179 ac_cs_recheck=: ;;
13180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13181 $as_echo "$ac_cs_version"; exit ;;
13182 --debug | --debu | --deb | --de | --d | -d )
13183 debug=: ;;
13184 --file | --fil | --fi | --f )
13185 $ac_shift
13186 case $ac_optarg in
13187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13188 esac
13189 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13190 ac_need_defaults=false;;
13191 --header | --heade | --head | --hea )
13192 $ac_shift
13193 case $ac_optarg in
13194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13195 esac
13196 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13197 ac_need_defaults=false;;
13198 --he | --h)
13199 # Conflict between --help and --header
13200 { $as_echo "$as_me: error: ambiguous option: $1
13201 Try \`$0 --help' for more information." >&2
13202 { (exit 1); exit 1; }; };;
13203 --help | --hel | -h )
13204 $as_echo "$ac_cs_usage"; exit ;;
13205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13207 ac_cs_silent=: ;;
13208
13209 # This is an error.
13210 -*) { $as_echo "$as_me: error: unrecognized option: $1
13211 Try \`$0 --help' for more information." >&2
13212 { (exit 1); exit 1; }; } ;;
13213
13214 *) ac_config_targets="$ac_config_targets $1"
13215 ac_need_defaults=false ;;
13216
13217 esac
13218 shift
13219 done
13220
13221 ac_configure_extra_args=
13222
13223 if $ac_cs_silent; then
13224 exec 6>/dev/null
13225 ac_configure_extra_args="$ac_configure_extra_args --silent"
13226 fi
13227
13228 _ACEOF
13229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13230 if \$ac_cs_recheck; then
13231 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13232 shift
13233 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13234 CONFIG_SHELL='$SHELL'
13235 export CONFIG_SHELL
13236 exec "\$@"
13237 fi
13238
13239 _ACEOF
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241 exec 5>>config.log
13242 {
13243 echo
13244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13245 ## Running $as_me. ##
13246 _ASBOX
13247 $as_echo "$ac_log"
13248 } >&5
13249
13250 _ACEOF
13251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252 _ACEOF
13253
13254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13255
13256 # Handling of arguments.
13257 for ac_config_target in $ac_config_targets
13258 do
13259 case $ac_config_target in
13260 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13261 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13262 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13263 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13264 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
13265 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13266 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
13267 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
13268 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13269 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
13270 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13271 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13272 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13273 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13274 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13275 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13276 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
13277 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
13278 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
13279 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13280 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
13281 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13282 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
13283 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
13284 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
13285 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13286 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
13287 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13288
13289 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13290 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13291 { (exit 1); exit 1; }; };;
13292 esac
13293 done
13294
13295
13296 # If the user did not use the arguments to specify the items to instantiate,
13297 # then the envvar interface is used. Set only those that are not.
13298 # We use the long form for the default assignment because of an extremely
13299 # bizarre bug on SunOS 4.1.3.
13300 if $ac_need_defaults; then
13301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13303 fi
13304
13305 # Have a temporary directory for convenience. Make it in the build tree
13306 # simply because there is no reason against having it here, and in addition,
13307 # creating and moving files from /tmp can sometimes cause problems.
13308 # Hook for its removal unless debugging.
13309 # Note that there is a small window in which the directory will not be cleaned:
13310 # after its creation but before its name has been assigned to `$tmp'.
13311 $debug ||
13312 {
13313 tmp=
13314 trap 'exit_status=$?
13315 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13316 ' 0
13317 trap '{ (exit 1); exit 1; }' 1 2 13 15
13318 }
13319 # Create a (secure) tmp directory for tmp files.
13320
13321 {
13322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13323 test -n "$tmp" && test -d "$tmp"
13324 } ||
13325 {
13326 tmp=./conf$$-$RANDOM
13327 (umask 077 && mkdir "$tmp")
13328 } ||
13329 {
13330 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13331 { (exit 1); exit 1; }
13332 }
13333
13334 # Set up the scripts for CONFIG_FILES section.
13335 # No need to generate them if there are no CONFIG_FILES.
13336 # This happens for instance with `./config.status config.h'.
13337 if test -n "$CONFIG_FILES"; then
13338
13339
13340 ac_cr=' '
13341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13343 ac_cs_awk_cr='\\r'
13344 else
13345 ac_cs_awk_cr=$ac_cr
13346 fi
13347
13348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13349 _ACEOF
13350
13351
13352 {
13353 echo "cat >conf$$subs.awk <<_ACEOF" &&
13354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13355 echo "_ACEOF"
13356 } >conf$$subs.sh ||
13357 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13358 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13359 { (exit 1); exit 1; }; }
13360 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13361 ac_delim='%!_!# '
13362 for ac_last_try in false false false false false :; do
13363 . ./conf$$subs.sh ||
13364 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13365 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13366 { (exit 1); exit 1; }; }
13367
13368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13369 if test $ac_delim_n = $ac_delim_num; then
13370 break
13371 elif $ac_last_try; then
13372 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13373 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13374 { (exit 1); exit 1; }; }
13375 else
13376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13377 fi
13378 done
13379 rm -f conf$$subs.sh
13380
13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13383 _ACEOF
13384 sed -n '
13385 h
13386 s/^/S["/; s/!.*/"]=/
13387 p
13388 g
13389 s/^[^!]*!//
13390 :repl
13391 t repl
13392 s/'"$ac_delim"'$//
13393 t delim
13394 :nl
13395 h
13396 s/\(.\{148\}\).*/\1/
13397 t more1
13398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13399 p
13400 n
13401 b repl
13402 :more1
13403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13404 p
13405 g
13406 s/.\{148\}//
13407 t nl
13408 :delim
13409 h
13410 s/\(.\{148\}\).*/\1/
13411 t more2
13412 s/["\\]/\\&/g; s/^/"/; s/$/"/
13413 p
13414 b
13415 :more2
13416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13417 p
13418 g
13419 s/.\{148\}//
13420 t delim
13421 ' <conf$$subs.awk | sed '
13422 /^[^""]/{
13423 N
13424 s/\n//
13425 }
13426 ' >>$CONFIG_STATUS || ac_write_fail=1
13427 rm -f conf$$subs.awk
13428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13429 _ACAWK
13430 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13431 for (key in S) S_is_set[key] = 1
13432 FS = "\a"
13433
13434 }
13435 {
13436 line = $ 0
13437 nfields = split(line, field, "@")
13438 substed = 0
13439 len = length(field[1])
13440 for (i = 2; i < nfields; i++) {
13441 key = field[i]
13442 keylen = length(key)
13443 if (S_is_set[key]) {
13444 value = S[key]
13445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13446 len += length(value) + length(field[++i])
13447 substed = 1
13448 } else
13449 len += 1 + keylen
13450 }
13451
13452 print line
13453 }
13454
13455 _ACAWK
13456 _ACEOF
13457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13460 else
13461 cat
13462 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13463 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13464 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13465 { (exit 1); exit 1; }; }
13466 _ACEOF
13467
13468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13470 # trailing colons and then remove the whole line if VPATH becomes empty
13471 # (actually we leave an empty line to preserve line numbers).
13472 if test "x$srcdir" = x.; then
13473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13474 s/:*\$(srcdir):*/:/
13475 s/:*\${srcdir}:*/:/
13476 s/:*@srcdir@:*/:/
13477 s/^\([^=]*=[ ]*\):*/\1/
13478 s/:*$//
13479 s/^[^=]*=[ ]*$//
13480 }'
13481 fi
13482
13483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13484 fi # test -n "$CONFIG_FILES"
13485
13486 # Set up the scripts for CONFIG_HEADERS section.
13487 # No need to generate them if there are no CONFIG_HEADERS.
13488 # This happens for instance with `./config.status Makefile'.
13489 if test -n "$CONFIG_HEADERS"; then
13490 cat >"$tmp/defines.awk" <<\_ACAWK ||
13491 BEGIN {
13492 _ACEOF
13493
13494 # Transform confdefs.h into an awk script `defines.awk', embedded as
13495 # here-document in config.status, that substitutes the proper values into
13496 # config.h.in to produce config.h.
13497
13498 # Create a delimiter string that does not exist in confdefs.h, to ease
13499 # handling of long lines.
13500 ac_delim='%!_!# '
13501 for ac_last_try in false false :; do
13502 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13503 if test -z "$ac_t"; then
13504 break
13505 elif $ac_last_try; then
13506 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13507 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13508 { (exit 1); exit 1; }; }
13509 else
13510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13511 fi
13512 done
13513
13514 # For the awk script, D is an array of macro values keyed by name,
13515 # likewise P contains macro parameters if any. Preserve backslash
13516 # newline sequences.
13517
13518 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13519 sed -n '
13520 s/.\{148\}/&'"$ac_delim"'/g
13521 t rset
13522 :rset
13523 s/^[ ]*#[ ]*define[ ][ ]*/ /
13524 t def
13525 d
13526 :def
13527 s/\\$//
13528 t bsnl
13529 s/["\\]/\\&/g
13530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13531 D["\1"]=" \3"/p
13532 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13533 d
13534 :bsnl
13535 s/["\\]/\\&/g
13536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13537 D["\1"]=" \3\\\\\\n"\\/p
13538 t cont
13539 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13540 t cont
13541 d
13542 :cont
13543 n
13544 s/.\{148\}/&'"$ac_delim"'/g
13545 t clear
13546 :clear
13547 s/\\$//
13548 t bsnlc
13549 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13550 d
13551 :bsnlc
13552 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13553 b cont
13554 ' <confdefs.h | sed '
13555 s/'"$ac_delim"'/"\\\
13556 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13557
13558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13559 for (key in D) D_is_set[key] = 1
13560 FS = "\a"
13561 }
13562 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13563 line = \$ 0
13564 split(line, arg, " ")
13565 if (arg[1] == "#") {
13566 defundef = arg[2]
13567 mac1 = arg[3]
13568 } else {
13569 defundef = substr(arg[1], 2)
13570 mac1 = arg[2]
13571 }
13572 split(mac1, mac2, "(") #)
13573 macro = mac2[1]
13574 prefix = substr(line, 1, index(line, defundef) - 1)
13575 if (D_is_set[macro]) {
13576 # Preserve the white space surrounding the "#".
13577 print prefix "define", macro P[macro] D[macro]
13578 next
13579 } else {
13580 # Replace #undef with comments. This is necessary, for example,
13581 # in the case of _POSIX_SOURCE, which is predefined and required
13582 # on some systems where configure will not decide to define it.
13583 if (defundef == "undef") {
13584 print "/*", prefix defundef, macro, "*/"
13585 next
13586 }
13587 }
13588 }
13589 { print }
13590 _ACAWK
13591 _ACEOF
13592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13593 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13594 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13595 { (exit 1); exit 1; }; }
13596 fi # test -n "$CONFIG_HEADERS"
13597
13598
13599 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13600 shift
13601 for ac_tag
13602 do
13603 case $ac_tag in
13604 :[FHLC]) ac_mode=$ac_tag; continue;;
13605 esac
13606 case $ac_mode$ac_tag in
13607 :[FHL]*:*);;
13608 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13609 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13610 { (exit 1); exit 1; }; };;
13611 :[FH]-) ac_tag=-:-;;
13612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13613 esac
13614 ac_save_IFS=$IFS
13615 IFS=:
13616 set x $ac_tag
13617 IFS=$ac_save_IFS
13618 shift
13619 ac_file=$1
13620 shift
13621
13622 case $ac_mode in
13623 :L) ac_source=$1;;
13624 :[FH])
13625 ac_file_inputs=
13626 for ac_f
13627 do
13628 case $ac_f in
13629 -) ac_f="$tmp/stdin";;
13630 *) # Look for the file first in the build tree, then in the source tree
13631 # (if the path is not absolute). The absolute path cannot be DOS-style,
13632 # because $ac_f cannot contain `:'.
13633 test -f "$ac_f" ||
13634 case $ac_f in
13635 [\\/$]*) false;;
13636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13637 esac ||
13638 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13639 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13640 { (exit 1); exit 1; }; };;
13641 esac
13642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13643 ac_file_inputs="$ac_file_inputs '$ac_f'"
13644 done
13645
13646 # Let's still pretend it is `configure' which instantiates (i.e., don't
13647 # use $as_me), people would be surprised to read:
13648 # /* config.h. Generated by config.status. */
13649 configure_input='Generated from '`
13650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13651 `' by configure.'
13652 if test x"$ac_file" != x-; then
13653 configure_input="$ac_file. $configure_input"
13654 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13655 $as_echo "$as_me: creating $ac_file" >&6;}
13656 fi
13657 # Neutralize special characters interpreted by sed in replacement strings.
13658 case $configure_input in #(
13659 *\&* | *\|* | *\\* )
13660 ac_sed_conf_input=`$as_echo "$configure_input" |
13661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13662 *) ac_sed_conf_input=$configure_input;;
13663 esac
13664
13665 case $ac_tag in
13666 *:-:* | *:-) cat >"$tmp/stdin" \
13667 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13668 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13669 { (exit 1); exit 1; }; } ;;
13670 esac
13671 ;;
13672 esac
13673
13674 ac_dir=`$as_dirname -- "$ac_file" ||
13675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13676 X"$ac_file" : 'X\(//\)[^/]' \| \
13677 X"$ac_file" : 'X\(//\)$' \| \
13678 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13679 $as_echo X"$ac_file" |
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13681 s//\1/
13682 q
13683 }
13684 /^X\(\/\/\)[^/].*/{
13685 s//\1/
13686 q
13687 }
13688 /^X\(\/\/\)$/{
13689 s//\1/
13690 q
13691 }
13692 /^X\(\/\).*/{
13693 s//\1/
13694 q
13695 }
13696 s/.*/./; q'`
13697 { as_dir="$ac_dir"
13698 case $as_dir in #(
13699 -*) as_dir=./$as_dir;;
13700 esac
13701 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13702 as_dirs=
13703 while :; do
13704 case $as_dir in #(
13705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13706 *) as_qdir=$as_dir;;
13707 esac
13708 as_dirs="'$as_qdir' $as_dirs"
13709 as_dir=`$as_dirname -- "$as_dir" ||
13710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13711 X"$as_dir" : 'X\(//\)[^/]' \| \
13712 X"$as_dir" : 'X\(//\)$' \| \
13713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13714 $as_echo X"$as_dir" |
13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13716 s//\1/
13717 q
13718 }
13719 /^X\(\/\/\)[^/].*/{
13720 s//\1/
13721 q
13722 }
13723 /^X\(\/\/\)$/{
13724 s//\1/
13725 q
13726 }
13727 /^X\(\/\).*/{
13728 s//\1/
13729 q
13730 }
13731 s/.*/./; q'`
13732 test -d "$as_dir" && break
13733 done
13734 test -z "$as_dirs" || eval "mkdir $as_dirs"
13735 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13736 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13737 { (exit 1); exit 1; }; }; }
13738 ac_builddir=.
13739
13740 case "$ac_dir" in
13741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13742 *)
13743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13744 # A ".." for each directory in $ac_dir_suffix.
13745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13746 case $ac_top_builddir_sub in
13747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13749 esac ;;
13750 esac
13751 ac_abs_top_builddir=$ac_pwd
13752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13753 # for backward compatibility:
13754 ac_top_builddir=$ac_top_build_prefix
13755
13756 case $srcdir in
13757 .) # We are building in place.
13758 ac_srcdir=.
13759 ac_top_srcdir=$ac_top_builddir_sub
13760 ac_abs_top_srcdir=$ac_pwd ;;
13761 [\\/]* | ?:[\\/]* ) # Absolute name.
13762 ac_srcdir=$srcdir$ac_dir_suffix;
13763 ac_top_srcdir=$srcdir
13764 ac_abs_top_srcdir=$srcdir ;;
13765 *) # Relative name.
13766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13767 ac_top_srcdir=$ac_top_build_prefix$srcdir
13768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13769 esac
13770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13771
13772
13773 case $ac_mode in
13774 :F)
13775 #
13776 # CONFIG_FILE
13777 #
13778
13779 case $INSTALL in
13780 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13781 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13782 esac
13783 ac_MKDIR_P=$MKDIR_P
13784 case $MKDIR_P in
13785 [\\/$]* | ?:[\\/]* ) ;;
13786 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13787 esac
13788 _ACEOF
13789
13790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13791 # If the template does not know about datarootdir, expand it.
13792 # FIXME: This hack should be removed a few years after 2.60.
13793 ac_datarootdir_hack=; ac_datarootdir_seen=
13794
13795 ac_sed_dataroot='
13796 /datarootdir/ {
13797 p
13798 q
13799 }
13800 /@datadir@/p
13801 /@docdir@/p
13802 /@infodir@/p
13803 /@localedir@/p
13804 /@mandir@/p
13805 '
13806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13807 *datarootdir*) ac_datarootdir_seen=yes;;
13808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13809 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13811 _ACEOF
13812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13813 ac_datarootdir_hack='
13814 s&@datadir@&$datadir&g
13815 s&@docdir@&$docdir&g
13816 s&@infodir@&$infodir&g
13817 s&@localedir@&$localedir&g
13818 s&@mandir@&$mandir&g
13819 s&\\\${datarootdir}&$datarootdir&g' ;;
13820 esac
13821 _ACEOF
13822
13823 # Neutralize VPATH when `$srcdir' = `.'.
13824 # Shell code in configure.ac might set extrasub.
13825 # FIXME: do we really want to maintain this feature?
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 ac_sed_extra="$ac_vpsub
13828 $extrasub
13829 _ACEOF
13830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13831 :t
13832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13833 s|@configure_input@|$ac_sed_conf_input|;t t
13834 s&@top_builddir@&$ac_top_builddir_sub&;t t
13835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13836 s&@srcdir@&$ac_srcdir&;t t
13837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13838 s&@top_srcdir@&$ac_top_srcdir&;t t
13839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13840 s&@builddir@&$ac_builddir&;t t
13841 s&@abs_builddir@&$ac_abs_builddir&;t t
13842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13843 s&@INSTALL@&$ac_INSTALL&;t t
13844 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13845 $ac_datarootdir_hack
13846 "
13847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13848 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13849 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13850 { (exit 1); exit 1; }; }
13851
13852 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13853 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13855 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13856 which seems to be undefined. Please make sure it is defined." >&5
13857 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13858 which seems to be undefined. Please make sure it is defined." >&2;}
13859
13860 rm -f "$tmp/stdin"
13861 case $ac_file in
13862 -) cat "$tmp/out" && rm -f "$tmp/out";;
13863 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13864 esac \
13865 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13866 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13867 { (exit 1); exit 1; }; }
13868 ;;
13869 :H)
13870 #
13871 # CONFIG_HEADER
13872 #
13873 if test x"$ac_file" != x-; then
13874 {
13875 $as_echo "/* $configure_input */" \
13876 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13877 } >"$tmp/config.h" \
13878 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13879 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13880 { (exit 1); exit 1; }; }
13881 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13882 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13883 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13884 else
13885 rm -f "$ac_file"
13886 mv "$tmp/config.h" "$ac_file" \
13887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13889 { (exit 1); exit 1; }; }
13890 fi
13891 else
13892 $as_echo "/* $configure_input */" \
13893 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13894 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13895 $as_echo "$as_me: error: could not create -" >&2;}
13896 { (exit 1); exit 1; }; }
13897 fi
13898 ;;
13899
13900
13901 esac
13902
13903 done # for ac_tag
13904
13905
13906 { (exit 0); exit 0; }
13907 _ACEOF
13908 chmod +x $CONFIG_STATUS
13909 ac_clean_files=$ac_clean_files_save
13910
13911 test $ac_write_fail = 0 ||
13912 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13913 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13914 { (exit 1); exit 1; }; }
13915
13916
13917 # configure is writing to config.log, and then calls config.status.
13918 # config.status does its own redirection, appending to config.log.
13919 # Unfortunately, on DOS this fails, as config.log is still kept open
13920 # by configure, so config.status won't be able to write to it; its
13921 # output is simply discarded. So we exec the FD to /dev/null,
13922 # effectively closing config.log, so it can be properly (re)opened and
13923 # appended to by config.status. When coming back to configure, we
13924 # need to make the FD available again.
13925 if test "$no_create" != yes; then
13926 ac_cs_success=:
13927 ac_config_status_args=
13928 test "$silent" = yes &&
13929 ac_config_status_args="$ac_config_status_args --quiet"
13930 exec 5>/dev/null
13931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13932 exec 5>>config.log
13933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13934 # would make configure fail if this is the last instruction.
13935 $ac_cs_success || { (exit 1); exit 1; }
13936 fi
13937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13938 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13940 fi
13941
13942
13943 if test x$ODIRECT != xyes; then
13944 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13945 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
13946 fi
This page took 0.774411 seconds and 6 git commands to generate.