]> sourceware.org Git - lvm2.git/blob - configure
Add global/si_unit_consistency to enable cleaned-up use of units in output.
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
640 usrsbindir
641 usrlibdir
642 udevdir
643 udev_prefix
644 tmpdir
645 kernelvsn
646 missingkernel
647 kerneldir
648 interface
649 LIB_PTHREAD
650 UDEV_RULES
651 STATIC_LINK
652 STATICDIR
653 SNAPSHOTS
654 POOL
655 PKGCONFIG
656 OWNER
657 MIRRORS
658 LVM_RELEASE_DATE
659 LVM_RELEASE
660 LVM_PATCHLEVEL
661 LVM_MINOR
662 LVM_MAJOR
663 LVM_LIBAPI
664 LVM_VERSION
665 LVM1_FALLBACK
666 LVM1
667 LOCALEDIR
668 LIB_SUFFIX
669 LDDEPS
670 JOBS
671 INTL_PACKAGE
672 INTL
673 HAVE_SELINUX
674 HAVE_REALTIME
675 HAVE_LIBDL
676 GROUP
677 FSADM
678 DM_LIB_PATCHLEVEL
679 DM_LIB_VERSION
680 DM_IOCTLS
681 DM_DEVICE_UID
682 DM_DEVICE_MODE
683 DM_DEVICE_GID
684 DM_COMPAT
685 DMEVENTD
686 DEVMAPPER
687 DEBUG
688 COPTIMISE_FLAG
689 CONFDIR
690 CMDLIB
691 CLVMD
692 CLUSTER
693 CLDWHOLEARCHIVE
694 CLDNOWHOLEARCHIVE
695 CLDFLAGS
696 BUILD_DMEVENTD
697 BUILD_CMIRRORD
698 APPLIB
699 MODPROBE_CMD
700 MSGFMT
701 LVM2CMD_LIB
702 LVM2APP_LIB
703 GENHTML
704 LCOV
705 SACKPT_LIBS
706 SACKPT_CFLAGS
707 DLM_LIBS
708 DLM_CFLAGS
709 CPG_LIBS
710 CPG_CFLAGS
711 CONFDB_LIBS
712 CONFDB_CFLAGS
713 SALCK_LIBS
714 SALCK_CFLAGS
715 QUORUM_LIBS
716 QUORUM_CFLAGS
717 COROSYNC_LIBS
718 COROSYNC_CFLAGS
719 CMAN_LIBS
720 CMAN_CFLAGS
721 GULM_LIBS
722 GULM_CFLAGS
723 CCS_LIBS
724 CCS_CFLAGS
725 PKGCONFIGINIT_LIBS
726 PKGCONFIGINIT_CFLAGS
727 PKG_CONFIG
728 POW_LIB
729 LIBOBJS
730 ALLOCA
731 CSCOPE_CMD
732 CFLOW_CMD
733 RANLIB
734 MKDIR_P
735 SET_MAKE
736 LN_S
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 EGREP
741 GREP
742 CPP
743 OBJEXT
744 EXEEXT
745 ac_ct_CC
746 CPPFLAGS
747 LDFLAGS
748 CFLAGS
749 CC
750 AWK
751 SED
752 target_os
753 target_vendor
754 target_cpu
755 target
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_static_link
805 with_user
806 with_group
807 with_device_uid
808 with_device_gid
809 with_device_mode
810 enable_lvm1_fallback
811 with_lvm1
812 with_pool
813 with_cluster
814 with_snapshots
815 with_mirrors
816 enable_readline
817 enable_realtime
818 with_clvmd
819 enable_cmirrord
820 with_cmirrord_pidfile
821 enable_debug
822 with_optimisation
823 enable_profiling
824 enable_devmapper
825 enable_udev_sync
826 enable_udev_rules
827 enable_compat
828 enable_units_compat
829 enable_ioctl
830 enable_o_direct
831 enable_applib
832 enable_cmdlib
833 enable_pkgconfig
834 enable_fsadm
835 enable_dmeventd
836 enable_selinux
837 enable_nls
838 with_localedir
839 with_confdir
840 with_staticdir
841 with_usrlibdir
842 with_usrsbindir
843 with_udev_prefix
844 with_udevdir
845 with_dmeventd_pidfile
846 with_dmeventd_path
847 with_interface
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CPP
858 PKG_CONFIG
859 PKGCONFIGINIT_CFLAGS
860 PKGCONFIGINIT_LIBS
861 CCS_CFLAGS
862 CCS_LIBS
863 GULM_CFLAGS
864 GULM_LIBS
865 CMAN_CFLAGS
866 CMAN_LIBS
867 COROSYNC_CFLAGS
868 COROSYNC_LIBS
869 QUORUM_CFLAGS
870 QUORUM_LIBS
871 SALCK_CFLAGS
872 SALCK_LIBS
873 CONFDB_CFLAGS
874 CONFDB_LIBS
875 CPG_CFLAGS
876 CPG_LIBS
877 DLM_CFLAGS
878 DLM_LIBS
879 SACKPT_CFLAGS
880 SACKPT_LIBS'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
904
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
930
931 ac_prev=
932 ac_dashdash=
933 for ac_option
934 do
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
940 fi
941
942 case $ac_option in
943 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *) ac_optarg=yes ;;
945 esac
946
947 # Accept the important Cygnus configure options, so we can diagnose typos.
948
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
957
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
972
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
977
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
990 { (exit 1); exit 1; }; }
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1011
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1048
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1053
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1083
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1157
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1216
1217 -with-* | --with-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=\$ac_optarg ;;
1233
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271 { (exit 1); exit 1; }; }
1272 ;;
1273
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279 { (exit 1); exit 1; }; }
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1297 { (exit 1); exit 1; }; }
1298 fi
1299
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
1303 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1304 { (exit 1); exit 1; }; } ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 esac
1307 fi
1308
1309 # Check all directory arguments for consistency.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1314 do
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1346 fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1363
1364
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$as_myself" ||
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
1372 X"$as_myself" : 'X\(//\)$' \| \
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374 $as_echo X"$as_myself" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\).*/{
1388 s//\1/
1389 q
1390 }
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1395 fi
1396 else
1397 ac_srcdir_defaulted=no
1398 fi
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1425
1426 #
1427 # Report the --help message.
1428 #
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures this package to adapt to many kinds of systems.
1434
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1439
1440 Defaults for the options are specified in brackets.
1441
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1458
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1463
1464 For better control, use the options below.
1465
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1487
1488 cat <<\_ACEOF
1489
1490 System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 --target=TARGET configure for building compilers for TARGET [HOST]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498
1499 cat <<\_ACEOF
1500
1501 Optional Features:
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-static_link Use this to link the tools to their libraries
1506 statically. Default is dynamic linking
1507 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1508 device-mapper is missing from the kernel
1509 --disable-readline Disable readline support
1510 --disable-realtime Disable realtime clock support
1511 --enable-cmirrord Enable the cluster mirror log daemon
1512 --enable-debug Enable debugging
1513 --enable-profiling Gather gcov profiling data
1514 --disable-devmapper Disable LVM2 device-mapper interaction
1515 --enable-udev_sync Enable synchronisation with udev processing
1516 --enable-udev_rules Install rule files needed for udev synchronisation
1517 --enable-compat Enable support for old device-mapper versions
1518 --enable-units-compat Enable output compatibility with old versions that
1519 that don't use KiB-style unit suffixes
1520 --disable-driver Disable calls to device-mapper in the kernel
1521 --disable-o_direct Disable O_DIRECT
1522 --enable-applib Build application library
1523 --enable-cmdlib Build shared command library
1524 --enable-pkgconfig Install pkgconfig support
1525 --enable-fsadm Enable fsadm
1526 --enable-dmeventd Enable the device-mapper event daemon
1527 --disable-selinux Disable selinux support
1528 --enable-nls Enable Native Language Support
1529
1530 Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --with-user=USER Set the owner of installed files [USER=root]
1534 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1535 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1536 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1537 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1538 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1539 TYPE=internal
1540 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1541 TYPE=internal
1542 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1543 TYPE=internal
1544 --with-snapshots=TYPE Snapshot support: internal/shared/none
1545 TYPE=internal
1546 --with-mirrors=TYPE Mirror support: internal/shared/none
1547 TYPE=internal
1548 --with-clvmd=TYPE Build cluster LVM Daemon.
1549 The following cluster manager combinations are valid:
1550 * cman,gulm (RHEL4 or equivalent)
1551 * cman (RHEL5 or equivalent)
1552 * cman,corosync,openais (or selection of them)
1553 * all (autodetect)
1554 * none (disable build)
1555 TYPE=none
1556 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1557 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1558 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1559 --with-confdir=DIR Configuration files in DIR [/etc]
1560 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1561 --with-usrlibdir=DIR
1562 --with-usrsbindir=DIR
1563 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1564 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1565 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1566 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1567 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1568
1569 Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
1577 CPP C preprocessor
1578 PKG_CONFIG path to pkg-config utility
1579 PKGCONFIGINIT_CFLAGS
1580 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1581 PKGCONFIGINIT_LIBS
1582 linker flags for PKGCONFIGINIT, overriding pkg-config
1583 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1584 CCS_LIBS linker flags for CCS, overriding pkg-config
1585 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1586 GULM_LIBS linker flags for GULM, overriding pkg-config
1587 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1588 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1589 COROSYNC_CFLAGS
1590 C compiler flags for COROSYNC, overriding pkg-config
1591 COROSYNC_LIBS
1592 linker flags for COROSYNC, overriding pkg-config
1593 QUORUM_CFLAGS
1594 C compiler flags for QUORUM, overriding pkg-config
1595 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1596 SALCK_CFLAGS
1597 C compiler flags for SALCK, overriding pkg-config
1598 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1599 CONFDB_CFLAGS
1600 C compiler flags for CONFDB, overriding pkg-config
1601 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1602 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1603 CPG_LIBS linker flags for CPG, overriding pkg-config
1604 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1605 DLM_LIBS linker flags for DLM, overriding pkg-config
1606 SACKPT_CFLAGS
1607 C compiler flags for SACKPT, overriding pkg-config
1608 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1609
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1612
1613 _ACEOF
1614 ac_status=$?
1615 fi
1616
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
1623 ac_builddir=.
1624
1625 case "$ac_dir" in
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *)
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635 esac
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1640
1641 case $srcdir in
1642 .) # We are building in place.
1643 ac_srcdir=.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 esac
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1665 else
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 fi || ac_status=$?
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1669 done
1670 fi
1671
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1674 cat <<\_ACEOF
1675 configure
1676 generated by GNU Autoconf 2.63
1677
1678 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1679 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683 exit
1684 fi
1685 cat >config.log <<_ACEOF
1686 This file contains any messages produced by compilers while
1687 running configure, to aid debugging if configure makes a mistake.
1688
1689 It was created by $as_me, which was
1690 generated by GNU Autoconf 2.63. Invocation command line was
1691
1692 $ $0 $@
1693
1694 _ACEOF
1695 exec 5>>config.log
1696 {
1697 cat <<_ASUNAME
1698 ## --------- ##
1699 ## Platform. ##
1700 ## --------- ##
1701
1702 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1703 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1704 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1705 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1706 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1707
1708 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1709 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1710
1711 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1712 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1713 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1714 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1715 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1716 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1717 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1718
1719 _ASUNAME
1720
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 $as_echo "PATH: $as_dir"
1727 done
1728 IFS=$as_save_IFS
1729
1730 } >&5
1731
1732 cat >&5 <<_ACEOF
1733
1734
1735 ## ----------- ##
1736 ## Core tests. ##
1737 ## ----------- ##
1738
1739 _ACEOF
1740
1741
1742 # Keep a trace of the command line.
1743 # Strip out --no-create and --no-recursion so they do not pile up.
1744 # Strip out --silent because we don't want to record it for future runs.
1745 # Also quote any args containing shell meta-characters.
1746 # Make two passes to allow for proper duplicate-argument suppression.
1747 ac_configure_args=
1748 ac_configure_args0=
1749 ac_configure_args1=
1750 ac_must_keep_next=false
1751 for ac_pass in 1 2
1752 do
1753 for ac_arg
1754 do
1755 case $ac_arg in
1756 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1758 | -silent | --silent | --silen | --sile | --sil)
1759 continue ;;
1760 *\'*)
1761 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 esac
1763 case $ac_pass in
1764 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1765 2)
1766 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1767 if test $ac_must_keep_next = true; then
1768 ac_must_keep_next=false # Got value, back to normal.
1769 else
1770 case $ac_arg in
1771 *=* | --config-cache | -C | -disable-* | --disable-* \
1772 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1773 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1774 | -with-* | --with-* | -without-* | --without-* | --x)
1775 case "$ac_configure_args0 " in
1776 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1777 esac
1778 ;;
1779 -* ) ac_must_keep_next=true ;;
1780 esac
1781 fi
1782 ac_configure_args="$ac_configure_args '$ac_arg'"
1783 ;;
1784 esac
1785 done
1786 done
1787 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1788 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1789
1790 # When interrupted or exit'd, cleanup temporary files, and complete
1791 # config.log. We remove comments because anyway the quotes in there
1792 # would cause problems or look ugly.
1793 # WARNING: Use '\'' to represent an apostrophe within the trap.
1794 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1795 trap 'exit_status=$?
1796 # Save into config.log some information that might help in debugging.
1797 {
1798 echo
1799
1800 cat <<\_ASBOX
1801 ## ---------------- ##
1802 ## Cache variables. ##
1803 ## ---------------- ##
1804 _ASBOX
1805 echo
1806 # The following way of writing the cache mishandles newlines in values,
1807 (
1808 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1809 eval ac_val=\$$ac_var
1810 case $ac_val in #(
1811 *${as_nl}*)
1812 case $ac_var in #(
1813 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1815 esac
1816 case $ac_var in #(
1817 _ | IFS | as_nl) ;; #(
1818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1819 *) $as_unset $ac_var ;;
1820 esac ;;
1821 esac
1822 done
1823 (set) 2>&1 |
1824 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825 *${as_nl}ac_space=\ *)
1826 sed -n \
1827 "s/'\''/'\''\\\\'\'''\''/g;
1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1829 ;; #(
1830 *)
1831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832 ;;
1833 esac |
1834 sort
1835 )
1836 echo
1837
1838 cat <<\_ASBOX
1839 ## ----------------- ##
1840 ## Output variables. ##
1841 ## ----------------- ##
1842 _ASBOX
1843 echo
1844 for ac_var in $ac_subst_vars
1845 do
1846 eval ac_val=\$$ac_var
1847 case $ac_val in
1848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 esac
1850 $as_echo "$ac_var='\''$ac_val'\''"
1851 done | sort
1852 echo
1853
1854 if test -n "$ac_subst_files"; then
1855 cat <<\_ASBOX
1856 ## ------------------- ##
1857 ## File substitutions. ##
1858 ## ------------------- ##
1859 _ASBOX
1860 echo
1861 for ac_var in $ac_subst_files
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870 fi
1871
1872 if test -s confdefs.h; then
1873 cat <<\_ASBOX
1874 ## ----------- ##
1875 ## confdefs.h. ##
1876 ## ----------- ##
1877 _ASBOX
1878 echo
1879 cat confdefs.h
1880 echo
1881 fi
1882 test "$ac_signal" != 0 &&
1883 $as_echo "$as_me: caught signal $ac_signal"
1884 $as_echo "$as_me: exit $exit_status"
1885 } >&5
1886 rm -f core *.core core.conftest.* &&
1887 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1888 exit $exit_status
1889 ' 0
1890 for ac_signal in 1 2 13 15; do
1891 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1892 done
1893 ac_signal=0
1894
1895 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1896 rm -f -r conftest* confdefs.h
1897
1898 # Predefined preprocessor variables.
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_NAME "$PACKAGE_NAME"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_STRING "$PACKAGE_STRING"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922 _ACEOF
1923
1924
1925 # Let the site file select an alternate cache file if it wants to.
1926 # Prefer an explicitly selected file to automatically selected ones.
1927 ac_site_file1=NONE
1928 ac_site_file2=NONE
1929 if test -n "$CONFIG_SITE"; then
1930 ac_site_file1=$CONFIG_SITE
1931 elif test "x$prefix" != xNONE; then
1932 ac_site_file1=$prefix/share/config.site
1933 ac_site_file2=$prefix/etc/config.site
1934 else
1935 ac_site_file1=$ac_default_prefix/share/config.site
1936 ac_site_file2=$ac_default_prefix/etc/config.site
1937 fi
1938 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1939 do
1940 test "x$ac_site_file" = xNONE && continue
1941 if test -r "$ac_site_file"; then
1942 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1944 sed 's/^/| /' "$ac_site_file" >&5
1945 . "$ac_site_file"
1946 fi
1947 done
1948
1949 if test -r "$cache_file"; then
1950 # Some versions of bash will fail to source /dev/null (special
1951 # files actually), so we avoid doing that.
1952 if test -f "$cache_file"; then
1953 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1954 $as_echo "$as_me: loading cache $cache_file" >&6;}
1955 case $cache_file in
1956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1957 *) . "./$cache_file";;
1958 esac
1959 fi
1960 else
1961 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1962 $as_echo "$as_me: creating cache $cache_file" >&6;}
1963 >$cache_file
1964 fi
1965
1966 # Check that the precious variables saved in the cache have kept the same
1967 # value.
1968 ac_cache_corrupted=false
1969 for ac_var in $ac_precious_vars; do
1970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971 eval ac_new_set=\$ac_env_${ac_var}_set
1972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973 eval ac_new_val=\$ac_env_${ac_var}_value
1974 case $ac_old_set,$ac_new_set in
1975 set,)
1976 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1978 ac_cache_corrupted=: ;;
1979 ,set)
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,);;
1984 *)
1985 if test "x$ac_old_val" != "x$ac_new_val"; then
1986 # differences in whitespace do not lead to failure.
1987 ac_old_val_w=`echo x $ac_old_val`
1988 ac_new_val_w=`echo x $ac_new_val`
1989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1990 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992 ac_cache_corrupted=:
1993 else
1994 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1996 eval $ac_var=\$ac_old_val
1997 fi
1998 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2000 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2002 fi;;
2003 esac
2004 # Pass precious variables to config.status.
2005 if test "$ac_new_set" = set; then
2006 case $ac_new_val in
2007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2008 *) ac_arg=$ac_var=$ac_new_val ;;
2009 esac
2010 case " $ac_configure_args " in
2011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2012 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013 esac
2014 fi
2015 done
2016 if $ac_cache_corrupted; then
2017 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2019 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2021 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2022 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2023 { (exit 1); exit 1; }; }
2024 fi
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042 ac_ext=c
2043 ac_cpp='$CPP $CPPFLAGS'
2044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047
2048
2049
2050 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2051
2052
2053 ################################################################################
2054 ac_aux_dir=
2055 for ac_dir in autoconf "$srcdir"/autoconf; do
2056 if test -f "$ac_dir/install-sh"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/install-sh -c"
2059 break
2060 elif test -f "$ac_dir/install.sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install.sh -c"
2063 break
2064 elif test -f "$ac_dir/shtool"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/shtool install -c"
2067 break
2068 fi
2069 done
2070 if test -z "$ac_aux_dir"; then
2071 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2072 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2073 { (exit 1); exit 1; }; }
2074 fi
2075
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2083
2084
2085
2086 ################################################################################
2087 # Make sure we can run config.sub.
2088 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2089 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2090 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2091 { (exit 1); exit 1; }; }
2092
2093 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2094 $as_echo_n "checking build system type... " >&6; }
2095 if test "${ac_cv_build+set}" = set; then
2096 $as_echo_n "(cached) " >&6
2097 else
2098 ac_build_alias=$build_alias
2099 test "x$ac_build_alias" = x &&
2100 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2101 test "x$ac_build_alias" = x &&
2102 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2103 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2104 { (exit 1); exit 1; }; }
2105 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2106 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2107 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2108 { (exit 1); exit 1; }; }
2109
2110 fi
2111 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2112 $as_echo "$ac_cv_build" >&6; }
2113 case $ac_cv_build in
2114 *-*-*) ;;
2115 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2116 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2117 { (exit 1); exit 1; }; };;
2118 esac
2119 build=$ac_cv_build
2120 ac_save_IFS=$IFS; IFS='-'
2121 set x $ac_cv_build
2122 shift
2123 build_cpu=$1
2124 build_vendor=$2
2125 shift; shift
2126 # Remember, the first character of IFS is used to create $*,
2127 # except with old shells:
2128 build_os=$*
2129 IFS=$ac_save_IFS
2130 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131
2132
2133 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2134 $as_echo_n "checking host system type... " >&6; }
2135 if test "${ac_cv_host+set}" = set; then
2136 $as_echo_n "(cached) " >&6
2137 else
2138 if test "x$host_alias" = x; then
2139 ac_cv_host=$ac_cv_build
2140 else
2141 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2142 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2143 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2145 fi
2146
2147 fi
2148 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2149 $as_echo "$ac_cv_host" >&6; }
2150 case $ac_cv_host in
2151 *-*-*) ;;
2152 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2153 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2154 { (exit 1); exit 1; }; };;
2155 esac
2156 host=$ac_cv_host
2157 ac_save_IFS=$IFS; IFS='-'
2158 set x $ac_cv_host
2159 shift
2160 host_cpu=$1
2161 host_vendor=$2
2162 shift; shift
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2165 host_os=$*
2166 IFS=$ac_save_IFS
2167 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2168
2169
2170 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2171 $as_echo_n "checking target system type... " >&6; }
2172 if test "${ac_cv_target+set}" = set; then
2173 $as_echo_n "(cached) " >&6
2174 else
2175 if test "x$target_alias" = x; then
2176 ac_cv_target=$ac_cv_host
2177 else
2178 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2179 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2180 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2181 { (exit 1); exit 1; }; }
2182 fi
2183
2184 fi
2185 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2186 $as_echo "$ac_cv_target" >&6; }
2187 case $ac_cv_target in
2188 *-*-*) ;;
2189 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2190 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2191 { (exit 1); exit 1; }; };;
2192 esac
2193 target=$ac_cv_target
2194 ac_save_IFS=$IFS; IFS='-'
2195 set x $ac_cv_target
2196 shift
2197 target_cpu=$1
2198 target_vendor=$2
2199 shift; shift
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2202 target_os=$*
2203 IFS=$ac_save_IFS
2204 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2205
2206
2207 # The aliases save the names the user supplied, while $host etc.
2208 # will get canonicalized.
2209 test -n "$target_alias" &&
2210 test "$program_prefix$program_suffix$program_transform_name" = \
2211 NONENONEs,x,x, &&
2212 program_prefix=${target_alias}-
2213
2214 case "$host_os" in
2215 linux*)
2216 CFLAGS="$CFLAGS"
2217 COPTIMISE_FLAG="-O2"
2218 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2219 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2220 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2221 LDDEPS="$LDDEPS .export.sym"
2222 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2223 LIB_SUFFIX=so
2224 DEVMAPPER=yes
2225 ODIRECT=yes
2226 DM_IOCTLS=yes
2227 SELINUX=yes
2228 REALTIME=yes
2229 CLUSTER=internal
2230 FSADM=yes
2231 ;;
2232 darwin*)
2233 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2234 COPTIMISE_FLAG="-O2"
2235 CLDFLAGS="$CLDFLAGS"
2236 CLDWHOLEARCHIVE="-all_load"
2237 CLDNOWHOLEARCHIVE=
2238 LIB_SUFFIX=dylib
2239 DEVMAPPER=yes
2240 ODIRECT=no
2241 DM_IOCTLS=no
2242 SELINUX=no
2243 REALTIME=no
2244 CLUSTER=none
2245 FSADM=no
2246 ;;
2247 esac
2248
2249 ################################################################################
2250 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2251 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2252 if test "${ac_cv_path_SED+set}" = set; then
2253 $as_echo_n "(cached) " >&6
2254 else
2255 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2256 for ac_i in 1 2 3 4 5 6 7; do
2257 ac_script="$ac_script$as_nl$ac_script"
2258 done
2259 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2260 $as_unset ac_script || ac_script=
2261 if test -z "$SED"; then
2262 ac_path_SED_found=false
2263 # Loop through the user's path and test for each of PROGNAME-LIST
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_prog in sed gsed; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2272 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2273 # Check for GNU ac_path_SED and select it if it is found.
2274 # Check for GNU $ac_path_SED
2275 case `"$ac_path_SED" --version 2>&1` in
2276 *GNU*)
2277 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2278 *)
2279 ac_count=0
2280 $as_echo_n 0123456789 >"conftest.in"
2281 while :
2282 do
2283 cat "conftest.in" "conftest.in" >"conftest.tmp"
2284 mv "conftest.tmp" "conftest.in"
2285 cp "conftest.in" "conftest.nl"
2286 $as_echo '' >> "conftest.nl"
2287 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2289 ac_count=`expr $ac_count + 1`
2290 if test $ac_count -gt ${ac_path_SED_max-0}; then
2291 # Best one so far, save it but keep looking for a better one
2292 ac_cv_path_SED="$ac_path_SED"
2293 ac_path_SED_max=$ac_count
2294 fi
2295 # 10*(2^10) chars as input seems more than enough
2296 test $ac_count -gt 10 && break
2297 done
2298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2299 esac
2300
2301 $ac_path_SED_found && break 3
2302 done
2303 done
2304 done
2305 IFS=$as_save_IFS
2306 if test -z "$ac_cv_path_SED"; then
2307 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2308 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2309 { (exit 1); exit 1; }; }
2310 fi
2311 else
2312 ac_cv_path_SED=$SED
2313 fi
2314
2315 fi
2316 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2317 $as_echo "$ac_cv_path_SED" >&6; }
2318 SED="$ac_cv_path_SED"
2319 rm -f conftest.sed
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328 $as_echo_n "(cached) " >&6
2329 else
2330 if test -n "$AWK"; then
2331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_AWK="$ac_prog"
2341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2353 $as_echo "$AWK" >&6; }
2354 else
2355 { $as_echo "$as_me:$LINENO: result: no" >&5
2356 $as_echo "no" >&6; }
2357 fi
2358
2359
2360 test -n "$AWK" && break
2361 done
2362
2363 ac_ext=c
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 $as_echo_n "checking for $ac_word... " >&6; }
2373 if test "${ac_cv_prog_CC+set}" = set; then
2374 $as_echo_n "(cached) " >&6
2375 else
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390 done
2391 done
2392 IFS=$as_save_IFS
2393
2394 fi
2395 fi
2396 CC=$ac_cv_prog_CC
2397 if test -n "$CC"; then
2398 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2399 $as_echo "$CC" >&6; }
2400 else
2401 { $as_echo "$as_me:$LINENO: result: no" >&5
2402 $as_echo "no" >&6; }
2403 fi
2404
2405
2406 fi
2407 if test -z "$ac_cv_prog_CC"; then
2408 ac_ct_CC=$CC
2409 # Extract the first word of "gcc", so it can be a program name with args.
2410 set dummy gcc; ac_word=$2
2411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test -n "$ac_ct_CC"; then
2417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_ac_ct_CC="gcc"
2427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437 if test -n "$ac_ct_CC"; then
2438 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439 $as_echo "$ac_ct_CC" >&6; }
2440 else
2441 { $as_echo "$as_me:$LINENO: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445 if test "x$ac_ct_CC" = x; then
2446 CC=""
2447 else
2448 case $cross_compiling:$ac_tool_warned in
2449 yes:)
2450 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2452 ac_tool_warned=yes ;;
2453 esac
2454 CC=$ac_ct_CC
2455 fi
2456 else
2457 CC="$ac_cv_prog_CC"
2458 fi
2459
2460 if test -z "$CC"; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}cc; ac_word=$2
2464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if test "${ac_cv_prog_CC+set}" = set; then
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_CC="${ac_tool_prefix}cc"
2480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 CC=$ac_cv_prog_CC
2490 if test -n "$CC"; then
2491 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2492 $as_echo "$CC" >&6; }
2493 else
2494 { $as_echo "$as_me:$LINENO: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 fi
2500 fi
2501 if test -z "$CC"; then
2502 # Extract the first word of "cc", so it can be a program name with args.
2503 set dummy cc; ac_word=$2
2504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if test "${ac_cv_prog_CC+set}" = set; then
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511 else
2512 ac_prog_rejected=no
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2521 ac_prog_rejected=yes
2522 continue
2523 fi
2524 ac_cv_prog_CC="cc"
2525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 if test $ac_prog_rejected = yes; then
2533 # We found a bogon in the path, so make sure we never use it.
2534 set dummy $ac_cv_prog_CC
2535 shift
2536 if test $# != 0; then
2537 # We chose a different compiler from the bogus one.
2538 # However, it has the same basename, so the bogon will be chosen
2539 # first if we set CC to just the basename; use the full file name.
2540 shift
2541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542 fi
2543 fi
2544 fi
2545 fi
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2549 $as_echo "$CC" >&6; }
2550 else
2551 { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555
2556 fi
2557 if test -z "$CC"; then
2558 if test -n "$ac_tool_prefix"; then
2559 for ac_prog in cl.exe
2560 do
2561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2591 $as_echo "$CC" >&6; }
2592 else
2593 { $as_echo "$as_me:$LINENO: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598 test -n "$CC" && break
2599 done
2600 fi
2601 if test -z "$CC"; then
2602 ac_ct_CC=$CC
2603 for ac_prog in cl.exe
2604 do
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$ac_ct_CC"; then
2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_CC="$ac_prog"
2623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633 if test -n "$ac_ct_CC"; then
2634 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635 $as_echo "$ac_ct_CC" >&6; }
2636 else
2637 { $as_echo "$as_me:$LINENO: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641
2642 test -n "$ac_ct_CC" && break
2643 done
2644
2645 if test "x$ac_ct_CC" = x; then
2646 CC=""
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 CC=$ac_ct_CC
2655 fi
2656 fi
2657
2658 fi
2659
2660
2661 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&5
2665 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }; }
2668
2669 # Provide some information about the compiler.
2670 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2671 set X $ac_compile
2672 ac_compiler=$2
2673 { (ac_try="$ac_compiler --version >&5"
2674 case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677 esac
2678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2679 $as_echo "$ac_try_echo") >&5
2680 (eval "$ac_compiler --version >&5") 2>&5
2681 ac_status=$?
2682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2684 { (ac_try="$ac_compiler -v >&5"
2685 case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2690 $as_echo "$ac_try_echo") >&5
2691 (eval "$ac_compiler -v >&5") 2>&5
2692 ac_status=$?
2693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (ac_try="$ac_compiler -V >&5"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702 (eval "$ac_compiler -V >&5") 2>&5
2703 ac_status=$?
2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2706
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h. */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2713
2714 int
2715 main ()
2716 {
2717
2718 ;
2719 return 0;
2720 }
2721 _ACEOF
2722 ac_clean_files_save=$ac_clean_files
2723 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2724 # Try to create an executable without -o first, disregard a.out.
2725 # It will help us diagnose broken compilers, and finding out an intuition
2726 # of exeext.
2727 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2728 $as_echo_n "checking for C compiler default output file name... " >&6; }
2729 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2730
2731 # The possible output files:
2732 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2733
2734 ac_rmfiles=
2735 for ac_file in $ac_files
2736 do
2737 case $ac_file in
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 esac
2741 done
2742 rm -f $ac_rmfiles
2743
2744 if { (ac_try="$ac_link_default"
2745 case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2750 $as_echo "$ac_try_echo") >&5
2751 (eval "$ac_link_default") 2>&5
2752 ac_status=$?
2753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; then
2755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2758 # so that the user can short-circuit this test for compilers unknown to
2759 # Autoconf.
2760 for ac_file in $ac_files ''
2761 do
2762 test -f "$ac_file" || continue
2763 case $ac_file in
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2765 ;;
2766 [ab].out )
2767 # We found the default executable, but exeext='' is most
2768 # certainly right.
2769 break;;
2770 *.* )
2771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772 then :; else
2773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 fi
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2779 # actually working.
2780 break;;
2781 * )
2782 break;;
2783 esac
2784 done
2785 test "$ac_cv_exeext" = no && ac_cv_exeext=
2786
2787 else
2788 ac_file=''
2789 fi
2790
2791 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2792 $as_echo "$ac_file" >&6; }
2793 if test -z "$ac_file"; then
2794 $as_echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
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: C compiler cannot create executables
2800 See \`config.log' for more details." >&5
2801 $as_echo "$as_me: error: C compiler cannot create executables
2802 See \`config.log' for more details." >&2;}
2803 { (exit 77); exit 77; }; }; }
2804 fi
2805
2806 ac_exeext=$ac_cv_exeext
2807
2808 # Check that the compiler produces executables we can run. If not, either
2809 # the compiler is broken, or we cross compile.
2810 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2811 $as_echo_n "checking whether the C compiler works... " >&6; }
2812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2813 # If not cross compiling, check that we can run a simple program.
2814 if test "$cross_compiling" != yes; then
2815 if { ac_try='./$ac_file'
2816 { (case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819 esac
2820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821 $as_echo "$ac_try_echo") >&5
2822 (eval "$ac_try") 2>&5
2823 ac_status=$?
2824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 cross_compiling=no
2827 else
2828 if test "$cross_compiling" = maybe; then
2829 cross_compiling=yes
2830 else
2831 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2834 If you meant to cross compile, use \`--host'.
2835 See \`config.log' for more details." >&5
2836 $as_echo "$as_me: error: cannot run C compiled programs.
2837 If you meant to cross compile, use \`--host'.
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }; }
2840 fi
2841 fi
2842 fi
2843 { $as_echo "$as_me:$LINENO: result: yes" >&5
2844 $as_echo "yes" >&6; }
2845
2846 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2847 ac_clean_files=$ac_clean_files_save
2848 # Check that the compiler produces executables we can run. If not, either
2849 # the compiler is broken, or we cross compile.
2850 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2851 $as_echo_n "checking whether we are cross compiling... " >&6; }
2852 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2853 $as_echo "$cross_compiling" >&6; }
2854
2855 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2856 $as_echo_n "checking for suffix of executables... " >&6; }
2857 if { (ac_try="$ac_link"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2863 $as_echo "$ac_try_echo") >&5
2864 (eval "$ac_link") 2>&5
2865 ac_status=$?
2866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; then
2868 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2869 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2870 # work properly (i.e., refer to `conftest.exe'), while it won't with
2871 # `rm'.
2872 for ac_file in conftest.exe conftest conftest.*; do
2873 test -f "$ac_file" || continue
2874 case $ac_file in
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2876 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877 break;;
2878 * ) break;;
2879 esac
2880 done
2881 else
2882 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2885 See \`config.log' for more details." >&5
2886 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }; }
2889 fi
2890
2891 rm -f conftest$ac_cv_exeext
2892 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2893 $as_echo "$ac_cv_exeext" >&6; }
2894
2895 rm -f conftest.$ac_ext
2896 EXEEXT=$ac_cv_exeext
2897 ac_exeext=$EXEEXT
2898 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2899 $as_echo_n "checking for suffix of object files... " >&6; }
2900 if test "${ac_cv_objext+set}" = set; then
2901 $as_echo_n "(cached) " >&6
2902 else
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909
2910 int
2911 main ()
2912 {
2913
2914 ;
2915 return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.o conftest.obj
2919 if { (ac_try="$ac_compile"
2920 case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923 esac
2924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2925 $as_echo "$ac_try_echo") >&5
2926 (eval "$ac_compile") 2>&5
2927 ac_status=$?
2928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 for ac_file in conftest.o conftest.obj conftest.*; do
2931 test -f "$ac_file" || continue;
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935 break;;
2936 esac
2937 done
2938 else
2939 $as_echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2945 See \`config.log' for more details." >&5
2946 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }; }
2949 fi
2950
2951 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2952 fi
2953 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2954 $as_echo "$ac_cv_objext" >&6; }
2955 OBJEXT=$ac_cv_objext
2956 ac_objext=$OBJEXT
2957 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2959 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2960 $as_echo_n "(cached) " >&6
2961 else
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968
2969 int
2970 main ()
2971 {
2972 #ifndef __GNUC__
2973 choke me
2974 #endif
2975
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && {
2995 test -z "$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 } && test -s conftest.$ac_objext; then
2998 ac_compiler_gnu=yes
2999 else
3000 $as_echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 ac_compiler_gnu=no
3004 fi
3005
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3008
3009 fi
3010 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3012 if test $ac_compiler_gnu = yes; then
3013 GCC=yes
3014 else
3015 GCC=
3016 fi
3017 ac_test_CFLAGS=${CFLAGS+set}
3018 ac_save_CFLAGS=$CFLAGS
3019 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3021 if test "${ac_cv_prog_cc_g+set}" = set; then
3022 $as_echo_n "(cached) " >&6
3023 else
3024 ac_save_c_werror_flag=$ac_c_werror_flag
3025 ac_c_werror_flag=yes
3026 ac_cv_prog_cc_g=no
3027 CFLAGS="-g"
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034
3035 int
3036 main ()
3037 {
3038
3039 ;
3040 return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050 $as_echo "$ac_try_echo") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } && {
3058 test -z "$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 } && test -s conftest.$ac_objext; then
3061 ac_cv_prog_cc_g=yes
3062 else
3063 $as_echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 CFLAGS=""
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073
3074 int
3075 main ()
3076 {
3077
3078 ;
3079 return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 :
3101 else
3102 $as_echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_c_werror_flag=$ac_save_c_werror_flag
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113
3114 int
3115 main ()
3116 {
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && {
3137 test -z "$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
3140 ac_cv_prog_cc_g=yes
3141 else
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145
3146 fi
3147
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 fi
3150
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_c_werror_flag=$ac_save_c_werror_flag
3156 fi
3157 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3158 $as_echo "$ac_cv_prog_cc_g" >&6; }
3159 if test "$ac_test_CFLAGS" = set; then
3160 CFLAGS=$ac_save_CFLAGS
3161 elif test $ac_cv_prog_cc_g = yes; then
3162 if test "$GCC" = yes; then
3163 CFLAGS="-g -O2"
3164 else
3165 CFLAGS="-g"
3166 fi
3167 else
3168 if test "$GCC" = yes; then
3169 CFLAGS="-O2"
3170 else
3171 CFLAGS=
3172 fi
3173 fi
3174 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3175 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3176 if test "${ac_cv_prog_cc_c89+set}" = set; then
3177 $as_echo_n "(cached) " >&6
3178 else
3179 ac_cv_prog_cc_c89=no
3180 ac_save_CC=$CC
3181 cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #include <stdarg.h>
3188 #include <stdio.h>
3189 #include <sys/types.h>
3190 #include <sys/stat.h>
3191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3192 struct buf { int x; };
3193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3194 static char *e (p, i)
3195 char **p;
3196 int i;
3197 {
3198 return p[i];
3199 }
3200 static char *f (char * (*g) (char **, int), char **p, ...)
3201 {
3202 char *s;
3203 va_list v;
3204 va_start (v,p);
3205 s = g (p, va_arg (v,int));
3206 va_end (v);
3207 return s;
3208 }
3209
3210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3211 function prototypes and stuff, but not '\xHH' hex character constants.
3212 These don't provoke an error unfortunately, instead are silently treated
3213 as 'x'. The following induces an error, until -std is added to get
3214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3215 array size at least. It's necessary to write '\x00'==0 to get something
3216 that's true only with -std. */
3217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3218
3219 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3220 inside strings and character constants. */
3221 #define FOO(x) 'x'
3222 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3223
3224 int test (int i, double x);
3225 struct s1 {int (*f) (int a);};
3226 struct s2 {int (*f) (double a);};
3227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3228 int argc;
3229 char **argv;
3230 int
3231 main ()
3232 {
3233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3234 ;
3235 return 0;
3236 }
3237 _ACEOF
3238 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3240 do
3241 CC="$ac_save_CC $ac_arg"
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3260 ac_cv_prog_cc_c89=$ac_arg
3261 else
3262 $as_echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
3266 fi
3267
3268 rm -f core conftest.err conftest.$ac_objext
3269 test "x$ac_cv_prog_cc_c89" != "xno" && break
3270 done
3271 rm -f conftest.$ac_ext
3272 CC=$ac_save_CC
3273
3274 fi
3275 # AC_CACHE_VAL
3276 case "x$ac_cv_prog_cc_c89" in
3277 x)
3278 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3279 $as_echo "none needed" >&6; } ;;
3280 xno)
3281 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3282 $as_echo "unsupported" >&6; } ;;
3283 *)
3284 CC="$CC $ac_cv_prog_cc_c89"
3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3287 esac
3288
3289
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
3296
3297
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3305 # On Suns, sometimes $CPP names a directory.
3306 if test -n "$CPP" && test -d "$CPP"; then
3307 CPP=
3308 fi
3309 if test -z "$CPP"; then
3310 if test "${ac_cv_prog_CPP+set}" = set; then
3311 $as_echo_n "(cached) " >&6
3312 else
3313 # Double quotes because CPP needs to be expanded
3314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3315 do
3316 ac_preproc_ok=false
3317 for ac_c_preproc_warn_flag in '' yes
3318 do
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if { (ac_try="$ac_cpp conftest.$ac_ext"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } >/dev/null && {
3352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 }; then
3355 :
3356 else
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Broken: fails on valid input.
3361 continue
3362 fi
3363
3364 rm -f conftest.err conftest.$ac_ext
3365
3366 # OK, works on sane cases. Now check whether nonexistent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382 $as_echo "$ac_try_echo") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 }; then
3393 # Broken: success on invalid input.
3394 continue
3395 else
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 # Passes both tests.
3400 ac_preproc_ok=:
3401 break
3402 fi
3403
3404 rm -f conftest.err conftest.$ac_ext
3405
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3410 break
3411 fi
3412
3413 done
3414 ac_cv_prog_CPP=$CPP
3415
3416 fi
3417 CPP=$ac_cv_prog_CPP
3418 else
3419 ac_cv_prog_CPP=$CPP
3420 fi
3421 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3422 $as_echo "$CPP" >&6; }
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3425 do
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3451 $as_echo "$ac_try_echo") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null && {
3459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 }; then
3462 :
3463 else
3464 $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468 continue
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3489 $as_echo "$ac_try_echo") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null && {
3497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3499 }; then
3500 # Broken: success on invalid input.
3501 continue
3502 else
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3509 fi
3510
3511 rm -f conftest.err conftest.$ac_ext
3512
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3517 :
3518 else
3519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&5
3523 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3524 See \`config.log' for more details." >&2;}
3525 { (exit 1); exit 1; }; }; }
3526 fi
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533
3534
3535 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3536 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3537 if test "${ac_cv_path_GREP+set}" = set; then
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -z "$GREP"; then
3541 ac_path_GREP_found=false
3542 # Loop through the user's path and test for each of PROGNAME-LIST
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3545 do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_prog in grep ggrep; do
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3551 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3552 # Check for GNU ac_path_GREP and select it if it is found.
3553 # Check for GNU $ac_path_GREP
3554 case `"$ac_path_GREP" --version 2>&1` in
3555 *GNU*)
3556 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3557 *)
3558 ac_count=0
3559 $as_echo_n 0123456789 >"conftest.in"
3560 while :
3561 do
3562 cat "conftest.in" "conftest.in" >"conftest.tmp"
3563 mv "conftest.tmp" "conftest.in"
3564 cp "conftest.in" "conftest.nl"
3565 $as_echo 'GREP' >> "conftest.nl"
3566 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3568 ac_count=`expr $ac_count + 1`
3569 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3570 # Best one so far, save it but keep looking for a better one
3571 ac_cv_path_GREP="$ac_path_GREP"
3572 ac_path_GREP_max=$ac_count
3573 fi
3574 # 10*(2^10) chars as input seems more than enough
3575 test $ac_count -gt 10 && break
3576 done
3577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3578 esac
3579
3580 $ac_path_GREP_found && break 3
3581 done
3582 done
3583 done
3584 IFS=$as_save_IFS
3585 if test -z "$ac_cv_path_GREP"; then
3586 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3587 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3588 { (exit 1); exit 1; }; }
3589 fi
3590 else
3591 ac_cv_path_GREP=$GREP
3592 fi
3593
3594 fi
3595 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3596 $as_echo "$ac_cv_path_GREP" >&6; }
3597 GREP="$ac_cv_path_GREP"
3598
3599
3600 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3601 $as_echo_n "checking for egrep... " >&6; }
3602 if test "${ac_cv_path_EGREP+set}" = set; then
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3606 then ac_cv_path_EGREP="$GREP -E"
3607 else
3608 if test -z "$EGREP"; then
3609 ac_path_EGREP_found=false
3610 # Loop through the user's path and test for each of PROGNAME-LIST
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_prog in egrep; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3619 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3620 # Check for GNU ac_path_EGREP and select it if it is found.
3621 # Check for GNU $ac_path_EGREP
3622 case `"$ac_path_EGREP" --version 2>&1` in
3623 *GNU*)
3624 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3625 *)
3626 ac_count=0
3627 $as_echo_n 0123456789 >"conftest.in"
3628 while :
3629 do
3630 cat "conftest.in" "conftest.in" >"conftest.tmp"
3631 mv "conftest.tmp" "conftest.in"
3632 cp "conftest.in" "conftest.nl"
3633 $as_echo 'EGREP' >> "conftest.nl"
3634 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3636 ac_count=`expr $ac_count + 1`
3637 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3638 # Best one so far, save it but keep looking for a better one
3639 ac_cv_path_EGREP="$ac_path_EGREP"
3640 ac_path_EGREP_max=$ac_count
3641 fi
3642 # 10*(2^10) chars as input seems more than enough
3643 test $ac_count -gt 10 && break
3644 done
3645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3646 esac
3647
3648 $ac_path_EGREP_found && break 3
3649 done
3650 done
3651 done
3652 IFS=$as_save_IFS
3653 if test -z "$ac_cv_path_EGREP"; then
3654 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3655 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3656 { (exit 1); exit 1; }; }
3657 fi
3658 else
3659 ac_cv_path_EGREP=$EGREP
3660 fi
3661
3662 fi
3663 fi
3664 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3665 $as_echo "$ac_cv_path_EGREP" >&6; }
3666 EGREP="$ac_cv_path_EGREP"
3667
3668
3669 if test $ac_cv_c_compiler_gnu = yes; then
3670 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3671 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3672 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3673 $as_echo_n "(cached) " >&6
3674 else
3675 ac_pattern="Autoconf.*'x'"
3676 cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 #include <sgtty.h>
3683 Autoconf TIOCGETP
3684 _ACEOF
3685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3687 ac_cv_prog_gcc_traditional=yes
3688 else
3689 ac_cv_prog_gcc_traditional=no
3690 fi
3691 rm -f conftest*
3692
3693
3694 if test $ac_cv_prog_gcc_traditional = no; then
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 #include <termio.h>
3702 Autoconf TCGETA
3703 _ACEOF
3704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3705 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3706 ac_cv_prog_gcc_traditional=yes
3707 fi
3708 rm -f conftest*
3709
3710 fi
3711 fi
3712 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3713 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3714 if test $ac_cv_prog_gcc_traditional = yes; then
3715 CC="$CC -traditional"
3716 fi
3717 fi
3718
3719 # Find a good install program. We prefer a C program (faster),
3720 # so one script is as good as another. But avoid the broken or
3721 # incompatible versions:
3722 # SysV /etc/install, /usr/sbin/install
3723 # SunOS /usr/etc/install
3724 # IRIX /sbin/install
3725 # AIX /bin/install
3726 # AmigaOS /C/install, which installs bootblocks on floppy discs
3727 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3728 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3729 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3730 # OS/2's system install, which has a completely different semantic
3731 # ./install, which can be erroneously created by make from ./install.sh.
3732 # Reject install programs that cannot install multiple files.
3733 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3734 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3735 if test -z "$INSTALL"; then
3736 if test "${ac_cv_path_install+set}" = set; then
3737 $as_echo_n "(cached) " >&6
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 # Account for people who put trailing slashes in PATH elements.
3745 case $as_dir/ in
3746 ./ | .// | /cC/* | \
3747 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3748 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3749 /usr/ucb/* ) ;;
3750 *)
3751 # OSF1 and SCO ODT 3.0 have their own names for install.
3752 # Don't use installbsd from OSF since it installs stuff as root
3753 # by default.
3754 for ac_prog in ginstall scoinst install; do
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3757 if test $ac_prog = install &&
3758 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3759 # AIX install. It has an incompatible calling convention.
3760 :
3761 elif test $ac_prog = install &&
3762 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3763 # program-specific install script used by HP pwplus--don't use.
3764 :
3765 else
3766 rm -rf conftest.one conftest.two conftest.dir
3767 echo one > conftest.one
3768 echo two > conftest.two
3769 mkdir conftest.dir
3770 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3771 test -s conftest.one && test -s conftest.two &&
3772 test -s conftest.dir/conftest.one &&
3773 test -s conftest.dir/conftest.two
3774 then
3775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3776 break 3
3777 fi
3778 fi
3779 fi
3780 done
3781 done
3782 ;;
3783 esac
3784
3785 done
3786 IFS=$as_save_IFS
3787
3788 rm -rf conftest.one conftest.two conftest.dir
3789
3790 fi
3791 if test "${ac_cv_path_install+set}" = set; then
3792 INSTALL=$ac_cv_path_install
3793 else
3794 # As a last resort, use the slow shell script. Don't cache a
3795 # value for INSTALL within a source directory, because that will
3796 # break other packages using the cache if that directory is
3797 # removed, or if the value is a relative name.
3798 INSTALL=$ac_install_sh
3799 fi
3800 fi
3801 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3802 $as_echo "$INSTALL" >&6; }
3803
3804 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3805 # It thinks the first close brace ends the variable substitution.
3806 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3807
3808 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3809
3810 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3811
3812 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3813 $as_echo_n "checking whether ln -s works... " >&6; }
3814 LN_S=$as_ln_s
3815 if test "$LN_S" = "ln -s"; then
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817 $as_echo "yes" >&6; }
3818 else
3819 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3820 $as_echo "no, using $LN_S" >&6; }
3821 fi
3822
3823 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3824 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3825 set x ${MAKE-make}
3826 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3827 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3828 $as_echo_n "(cached) " >&6
3829 else
3830 cat >conftest.make <<\_ACEOF
3831 SHELL = /bin/sh
3832 all:
3833 @echo '@@@%%%=$(MAKE)=@@@%%%'
3834 _ACEOF
3835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3836 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3837 *@@@%%%=?*=@@@%%%*)
3838 eval ac_cv_prog_make_${ac_make}_set=yes;;
3839 *)
3840 eval ac_cv_prog_make_${ac_make}_set=no;;
3841 esac
3842 rm -f conftest.make
3843 fi
3844 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3845 { $as_echo "$as_me:$LINENO: result: yes" >&5
3846 $as_echo "yes" >&6; }
3847 SET_MAKE=
3848 else
3849 { $as_echo "$as_me:$LINENO: result: no" >&5
3850 $as_echo "no" >&6; }
3851 SET_MAKE="MAKE=${MAKE-make}"
3852 fi
3853
3854 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3855 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3856 if test -z "$MKDIR_P"; then
3857 if test "${ac_cv_path_mkdir+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3862 do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_prog in mkdir gmkdir; do
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3868 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3869 'mkdir (GNU coreutils) '* | \
3870 'mkdir (coreutils) '* | \
3871 'mkdir (fileutils) '4.1*)
3872 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3873 break 3;;
3874 esac
3875 done
3876 done
3877 done
3878 IFS=$as_save_IFS
3879
3880 fi
3881
3882 if test "${ac_cv_path_mkdir+set}" = set; then
3883 MKDIR_P="$ac_cv_path_mkdir -p"
3884 else
3885 # As a last resort, use the slow shell script. Don't cache a
3886 # value for MKDIR_P within a source directory, because that will
3887 # break other packages using the cache if that directory is
3888 # removed, or if the value is a relative name.
3889 test -d ./--version && rmdir ./--version
3890 MKDIR_P="$ac_install_sh -d"
3891 fi
3892 fi
3893 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3894 $as_echo "$MKDIR_P" >&6; }
3895
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_RANLIB+set}" = set; then
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -n "$RANLIB"; then
3905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918 done
3919 done
3920 IFS=$as_save_IFS
3921
3922 fi
3923 fi
3924 RANLIB=$ac_cv_prog_RANLIB
3925 if test -n "$RANLIB"; then
3926 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3927 $as_echo "$RANLIB" >&6; }
3928 else
3929 { $as_echo "$as_me:$LINENO: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934 fi
3935 if test -z "$ac_cv_prog_RANLIB"; then
3936 ac_ct_RANLIB=$RANLIB
3937 # Extract the first word of "ranlib", so it can be a program name with args.
3938 set dummy ranlib; ac_word=$2
3939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test -n "$ac_ct_RANLIB"; then
3945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3954 ac_cv_prog_ac_ct_RANLIB="ranlib"
3955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3965 if test -n "$ac_ct_RANLIB"; then
3966 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3967 $as_echo "$ac_ct_RANLIB" >&6; }
3968 else
3969 { $as_echo "$as_me:$LINENO: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973 if test "x$ac_ct_RANLIB" = x; then
3974 RANLIB=":"
3975 else
3976 case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3981 esac
3982 RANLIB=$ac_ct_RANLIB
3983 fi
3984 else
3985 RANLIB="$ac_cv_prog_RANLIB"
3986 fi
3987
3988 # Extract the first word of "cflow", so it can be a program name with args.
3989 set dummy cflow; ac_word=$2
3990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3993 $as_echo_n "(cached) " >&6
3994 else
3995 case $CFLOW_CMD in
3996 [\\/]* | ?:[\\/]*)
3997 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3998 ;;
3999 *)
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 ;;
4016 esac
4017 fi
4018 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4019 if test -n "$CFLOW_CMD"; then
4020 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4021 $as_echo "$CFLOW_CMD" >&6; }
4022 else
4023 { $as_echo "$as_me:$LINENO: result: no" >&5
4024 $as_echo "no" >&6; }
4025 fi
4026
4027
4028 # Extract the first word of "cscope", so it can be a program name with args.
4029 set dummy cscope; ac_word=$2
4030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4033 $as_echo_n "(cached) " >&6
4034 else
4035 case $CSCOPE_CMD in
4036 [\\/]* | ?:[\\/]*)
4037 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4038 ;;
4039 *)
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 ;;
4056 esac
4057 fi
4058 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4059 if test -n "$CSCOPE_CMD"; then
4060 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4061 $as_echo "$CSCOPE_CMD" >&6; }
4062 else
4063 { $as_echo "$as_me:$LINENO: result: no" >&5
4064 $as_echo "no" >&6; }
4065 fi
4066
4067
4068
4069 ################################################################################
4070
4071
4072
4073
4074
4075 ac_header_dirent=no
4076 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4077 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4078 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4079 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4081 $as_echo_n "(cached) " >&6
4082 else
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <sys/types.h>
4090 #include <$ac_hdr>
4091
4092 int
4093 main ()
4094 {
4095 if ((DIR *) 0)
4096 return 0;
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4119 eval "$as_ac_Header=yes"
4120 else
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 eval "$as_ac_Header=no"
4125 fi
4126
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129 ac_res=`eval 'as_val=${'$as_ac_Header'}
4130 $as_echo "$as_val"'`
4131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4132 $as_echo "$ac_res" >&6; }
4133 as_val=`eval 'as_val=${'$as_ac_Header'}
4134 $as_echo "$as_val"'`
4135 if test "x$as_val" = x""yes; then
4136 cat >>confdefs.h <<_ACEOF
4137 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4138 _ACEOF
4139
4140 ac_header_dirent=$ac_hdr; break
4141 fi
4142
4143 done
4144 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4145 if test $ac_header_dirent = dirent.h; then
4146 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4147 $as_echo_n "checking for library containing opendir... " >&6; }
4148 if test "${ac_cv_search_opendir+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_func_search_save_LIBS=$LIBS
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158
4159 /* Override any GCC internal prototype to avoid an error.
4160 Use char because int might match the return type of a GCC
4161 builtin and then its argument prototype would still apply. */
4162 #ifdef __cplusplus
4163 extern "C"
4164 #endif
4165 char opendir ();
4166 int
4167 main ()
4168 {
4169 return opendir ();
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 for ac_lib in '' dir; do
4175 if test -z "$ac_lib"; then
4176 ac_res="none required"
4177 else
4178 ac_res=-l$ac_lib
4179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4180 fi
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (ac_try="$ac_link"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4188 $as_echo "$ac_try_echo") >&5
4189 (eval "$ac_link") 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
4198 } && test -s conftest$ac_exeext && {
4199 test "$cross_compiling" = yes ||
4200 $as_test_x conftest$ac_exeext
4201 }; then
4202 ac_cv_search_opendir=$ac_res
4203 else
4204 $as_echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207
4208 fi
4209
4210 rm -rf conftest.dSYM
4211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4212 conftest$ac_exeext
4213 if test "${ac_cv_search_opendir+set}" = set; then
4214 break
4215 fi
4216 done
4217 if test "${ac_cv_search_opendir+set}" = set; then
4218 :
4219 else
4220 ac_cv_search_opendir=no
4221 fi
4222 rm conftest.$ac_ext
4223 LIBS=$ac_func_search_save_LIBS
4224 fi
4225 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4226 $as_echo "$ac_cv_search_opendir" >&6; }
4227 ac_res=$ac_cv_search_opendir
4228 if test "$ac_res" != no; then
4229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4230
4231 fi
4232
4233 else
4234 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4235 $as_echo_n "checking for library containing opendir... " >&6; }
4236 if test "${ac_cv_search_opendir+set}" = set; then
4237 $as_echo_n "(cached) " >&6
4238 else
4239 ac_func_search_save_LIBS=$LIBS
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246
4247 /* Override any GCC internal prototype to avoid an error.
4248 Use char because int might match the return type of a GCC
4249 builtin and then its argument prototype would still apply. */
4250 #ifdef __cplusplus
4251 extern "C"
4252 #endif
4253 char opendir ();
4254 int
4255 main ()
4256 {
4257 return opendir ();
4258 ;
4259 return 0;
4260 }
4261 _ACEOF
4262 for ac_lib in '' x; do
4263 if test -z "$ac_lib"; then
4264 ac_res="none required"
4265 else
4266 ac_res=-l$ac_lib
4267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4268 fi
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270 if { (ac_try="$ac_link"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4276 $as_echo "$ac_try_echo") >&5
4277 (eval "$ac_link") 2>conftest.er1
4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
4282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } && {
4284 test -z "$ac_c_werror_flag" ||
4285 test ! -s conftest.err
4286 } && test -s conftest$ac_exeext && {
4287 test "$cross_compiling" = yes ||
4288 $as_test_x conftest$ac_exeext
4289 }; then
4290 ac_cv_search_opendir=$ac_res
4291 else
4292 $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295
4296 fi
4297
4298 rm -rf conftest.dSYM
4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300 conftest$ac_exeext
4301 if test "${ac_cv_search_opendir+set}" = set; then
4302 break
4303 fi
4304 done
4305 if test "${ac_cv_search_opendir+set}" = set; then
4306 :
4307 else
4308 ac_cv_search_opendir=no
4309 fi
4310 rm conftest.$ac_ext
4311 LIBS=$ac_func_search_save_LIBS
4312 fi
4313 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4314 $as_echo "$ac_cv_search_opendir" >&6; }
4315 ac_res=$ac_cv_search_opendir
4316 if test "$ac_res" != no; then
4317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4318
4319 fi
4320
4321 fi
4322
4323 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4324 $as_echo_n "checking for ANSI C header files... " >&6; }
4325 if test "${ac_cv_header_stdc+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4327 else
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <stdlib.h>
4335 #include <stdarg.h>
4336 #include <string.h>
4337 #include <float.h>
4338
4339 int
4340 main ()
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 rm -f conftest.$ac_objext
4348 if { (ac_try="$ac_compile"
4349 case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352 esac
4353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4354 $as_echo "$ac_try_echo") >&5
4355 (eval "$ac_compile") 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && {
4362 test -z "$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 } && test -s conftest.$ac_objext; then
4365 ac_cv_header_stdc=yes
4366 else
4367 $as_echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_cv_header_stdc=no
4371 fi
4372
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374
4375 if test $ac_cv_header_stdc = yes; then
4376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <string.h>
4384
4385 _ACEOF
4386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 $EGREP "memchr" >/dev/null 2>&1; then
4388 :
4389 else
4390 ac_cv_header_stdc=no
4391 fi
4392 rm -f conftest*
4393
4394 fi
4395
4396 if test $ac_cv_header_stdc = yes; then
4397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 #include <stdlib.h>
4405
4406 _ACEOF
4407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4408 $EGREP "free" >/dev/null 2>&1; then
4409 :
4410 else
4411 ac_cv_header_stdc=no
4412 fi
4413 rm -f conftest*
4414
4415 fi
4416
4417 if test $ac_cv_header_stdc = yes; then
4418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4419 if test "$cross_compiling" = yes; then
4420 :
4421 else
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <ctype.h>
4429 #include <stdlib.h>
4430 #if ((' ' & 0x0FF) == 0x020)
4431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4433 #else
4434 # define ISLOWER(c) \
4435 (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
4438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4439 #endif
4440
4441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4442 int
4443 main ()
4444 {
4445 int i;
4446 for (i = 0; i < 256; i++)
4447 if (XOR (islower (i), ISLOWER (i))
4448 || toupper (i) != TOUPPER (i))
4449 return 2;
4450 return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest$ac_exeext
4454 if { (ac_try="$ac_link"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4460 $as_echo "$ac_try_echo") >&5
4461 (eval "$ac_link") 2>&5
4462 ac_status=$?
4463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4465 { (case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470 $as_echo "$ac_try_echo") >&5
4471 (eval "$ac_try") 2>&5
4472 ac_status=$?
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 :
4476 else
4477 $as_echo "$as_me: program exited with status $ac_status" >&5
4478 $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 ( exit $ac_status )
4482 ac_cv_header_stdc=no
4483 fi
4484 rm -rf conftest.dSYM
4485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4486 fi
4487
4488
4489 fi
4490 fi
4491 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4492 $as_echo "$ac_cv_header_stdc" >&6; }
4493 if test $ac_cv_header_stdc = yes; then
4494
4495 cat >>confdefs.h <<\_ACEOF
4496 #define STDC_HEADERS 1
4497 _ACEOF
4498
4499 fi
4500
4501 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4502 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4503 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4504 $as_echo_n "(cached) " >&6
4505 else
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 #include <sys/types.h>
4513 #include <sys/wait.h>
4514 #ifndef WEXITSTATUS
4515 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4516 #endif
4517 #ifndef WIFEXITED
4518 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4519 #endif
4520
4521 int
4522 main ()
4523 {
4524 int s;
4525 wait (&s);
4526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (ac_try="$ac_compile"
4533 case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536 esac
4537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4538 $as_echo "$ac_try_echo") >&5
4539 (eval "$ac_compile") 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && {
4546 test -z "$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4548 } && test -s conftest.$ac_objext; then
4549 ac_cv_header_sys_wait_h=yes
4550 else
4551 $as_echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4553
4554 ac_cv_header_sys_wait_h=no
4555 fi
4556
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 fi
4559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4560 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4561 if test $ac_cv_header_sys_wait_h = yes; then
4562
4563 cat >>confdefs.h <<\_ACEOF
4564 #define HAVE_SYS_WAIT_H 1
4565 _ACEOF
4566
4567 fi
4568
4569 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4570 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4571 if test "${ac_cv_header_time+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4573 else
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 #include <sys/types.h>
4581 #include <sys/time.h>
4582 #include <time.h>
4583
4584 int
4585 main ()
4586 {
4587 if ((struct tm *) 0)
4588 return 0;
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_compile") 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest.$ac_objext; then
4611 ac_cv_header_time=yes
4612 else
4613 $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 ac_cv_header_time=no
4617 fi
4618
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 fi
4621 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4622 $as_echo "$ac_cv_header_time" >&6; }
4623 if test $ac_cv_header_time = yes; then
4624
4625 cat >>confdefs.h <<\_ACEOF
4626 #define TIME_WITH_SYS_TIME 1
4627 _ACEOF
4628
4629 fi
4630
4631
4632 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4643 inttypes.h stdint.h unistd.h
4644 do
4645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4647 $as_echo_n "checking for $ac_header... " >&6; }
4648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4649 $as_echo_n "(cached) " >&6
4650 else
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
4659 #include <$ac_header>
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (ac_try="$ac_compile"
4663 case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4679 eval "$as_ac_Header=yes"
4680 else
4681 $as_echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 eval "$as_ac_Header=no"
4685 fi
4686
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 fi
4689 ac_res=`eval 'as_val=${'$as_ac_Header'}
4690 $as_echo "$as_val"'`
4691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4692 $as_echo "$ac_res" >&6; }
4693 as_val=`eval 'as_val=${'$as_ac_Header'}
4694 $as_echo "$as_val"'`
4695 if test "x$as_val" = x""yes; then
4696 cat >>confdefs.h <<_ACEOF
4697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4698 _ACEOF
4699
4700 fi
4701
4702 done
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4719 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4720 do
4721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4724 $as_echo_n "checking for $ac_header... " >&6; }
4725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4726 $as_echo_n "(cached) " >&6
4727 fi
4728 ac_res=`eval 'as_val=${'$as_ac_Header'}
4729 $as_echo "$as_val"'`
4730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4731 $as_echo "$ac_res" >&6; }
4732 else
4733 # Is the header compilable?
4734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735 $as_echo_n "checking $ac_header usability... " >&6; }
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 $ac_includes_default
4743 #include <$ac_header>
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753 (eval "$ac_compile") 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest.$ac_objext; then
4763 ac_header_compiler=yes
4764 else
4765 $as_echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 ac_header_compiler=no
4769 fi
4770
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4773 $as_echo "$ac_header_compiler" >&6; }
4774
4775 # Is the header present?
4776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4777 $as_echo_n "checking $ac_header presence... " >&6; }
4778 cat >conftest.$ac_ext <<_ACEOF
4779 /* confdefs.h. */
4780 _ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4784 #include <$ac_header>
4785 _ACEOF
4786 if { (ac_try="$ac_cpp conftest.$ac_ext"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4792 $as_echo "$ac_try_echo") >&5
4793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev/null && {
4800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4802 }; then
4803 ac_header_preproc=yes
4804 else
4805 $as_echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ac_header_preproc=no
4809 fi
4810
4811 rm -f conftest.err conftest.$ac_ext
4812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4813 $as_echo "$ac_header_preproc" >&6; }
4814
4815 # So? What about this header?
4816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4817 yes:no: )
4818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4822 ac_header_preproc=yes
4823 ;;
4824 no:yes:* )
4825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4828 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4832 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4837
4838 ;;
4839 esac
4840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4841 $as_echo_n "checking for $ac_header... " >&6; }
4842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4843 $as_echo_n "(cached) " >&6
4844 else
4845 eval "$as_ac_Header=\$ac_header_preproc"
4846 fi
4847 ac_res=`eval 'as_val=${'$as_ac_Header'}
4848 $as_echo "$as_val"'`
4849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4850 $as_echo "$ac_res" >&6; }
4851
4852 fi
4853 as_val=`eval 'as_val=${'$as_ac_Header'}
4854 $as_echo "$as_val"'`
4855 if test "x$as_val" = x""yes; then
4856 cat >>confdefs.h <<_ACEOF
4857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4858 _ACEOF
4859
4860 else
4861 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4862 $as_echo "$as_me: error: bailing out" >&2;}
4863 { (exit 1); exit 1; }; }
4864 fi
4865
4866 done
4867
4868
4869 case "$host_os" in
4870 linux*)
4871
4872
4873
4874 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4875 do
4876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 $as_echo_n "checking for $ac_header... " >&6; }
4880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4881 $as_echo_n "(cached) " >&6
4882 fi
4883 ac_res=`eval 'as_val=${'$as_ac_Header'}
4884 $as_echo "$as_val"'`
4885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4886 $as_echo "$ac_res" >&6; }
4887 else
4888 # Is the header compilable?
4889 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4890 $as_echo_n "checking $ac_header usability... " >&6; }
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 $ac_includes_default
4898 #include <$ac_header>
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4907 $as_echo "$ac_try_echo") >&5
4908 (eval "$ac_compile") 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } && {
4915 test -z "$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 } && test -s conftest.$ac_objext; then
4918 ac_header_compiler=yes
4919 else
4920 $as_echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ac_header_compiler=no
4924 fi
4925
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4928 $as_echo "$ac_header_compiler" >&6; }
4929
4930 # Is the header present?
4931 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4932 $as_echo_n "checking $ac_header presence... " >&6; }
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 #include <$ac_header>
4940 _ACEOF
4941 if { (ac_try="$ac_cpp conftest.$ac_ext"
4942 case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945 esac
4946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4947 $as_echo "$ac_try_echo") >&5
4948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null && {
4955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 }; then
4958 ac_header_preproc=yes
4959 else
4960 $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 ac_header_preproc=no
4964 fi
4965
4966 rm -f conftest.err conftest.$ac_ext
4967 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4968 $as_echo "$ac_header_preproc" >&6; }
4969
4970 # So? What about this header?
4971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4972 yes:no: )
4973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4974 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4976 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4977 ac_header_preproc=yes
4978 ;;
4979 no:yes:* )
4980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4981 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4983 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4985 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4987 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4991 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4992
4993 ;;
4994 esac
4995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4996 $as_echo_n "checking for $ac_header... " >&6; }
4997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4998 $as_echo_n "(cached) " >&6
4999 else
5000 eval "$as_ac_Header=\$ac_header_preproc"
5001 fi
5002 ac_res=`eval 'as_val=${'$as_ac_Header'}
5003 $as_echo "$as_val"'`
5004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5005 $as_echo "$ac_res" >&6; }
5006
5007 fi
5008 as_val=`eval 'as_val=${'$as_ac_Header'}
5009 $as_echo "$as_val"'`
5010 if test "x$as_val" = x""yes; then
5011 cat >>confdefs.h <<_ACEOF
5012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5013 _ACEOF
5014
5015 else
5016 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5017 $as_echo "$as_me: error: bailing out" >&2;}
5018 { (exit 1); exit 1; }; }
5019 fi
5020
5021 done
5022 ;;
5023 darwin*)
5024
5025
5026 for ac_header in machine/endian.h sys/disk.h
5027 do
5028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 $as_echo_n "checking for $ac_header... " >&6; }
5032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5033 $as_echo_n "(cached) " >&6
5034 fi
5035 ac_res=`eval 'as_val=${'$as_ac_Header'}
5036 $as_echo "$as_val"'`
5037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5038 $as_echo "$ac_res" >&6; }
5039 else
5040 # Is the header compilable?
5041 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5042 $as_echo_n "checking $ac_header usability... " >&6; }
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 $ac_includes_default
5050 #include <$ac_header>
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (ac_try="$ac_compile"
5054 case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5059 $as_echo "$ac_try_echo") >&5
5060 (eval "$ac_compile") 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } && {
5067 test -z "$ac_c_werror_flag" ||
5068 test ! -s conftest.err
5069 } && test -s conftest.$ac_objext; then
5070 ac_header_compiler=yes
5071 else
5072 $as_echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 ac_header_compiler=no
5076 fi
5077
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5080 $as_echo "$ac_header_compiler" >&6; }
5081
5082 # Is the header present?
5083 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5084 $as_echo_n "checking $ac_header presence... " >&6; }
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #include <$ac_header>
5092 _ACEOF
5093 if { (ac_try="$ac_cpp conftest.$ac_ext"
5094 case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099 $as_echo "$ac_try_echo") >&5
5100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null && {
5107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 }; then
5110 ac_header_preproc=yes
5111 else
5112 $as_echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ac_header_preproc=no
5116 fi
5117
5118 rm -f conftest.err conftest.$ac_ext
5119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5120 $as_echo "$ac_header_preproc" >&6; }
5121
5122 # So? What about this header?
5123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5124 yes:no: )
5125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5126 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5129 ac_header_preproc=yes
5130 ;;
5131 no:yes:* )
5132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5133 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5135 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5137 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5139 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5143 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5144
5145 ;;
5146 esac
5147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5148 $as_echo_n "checking for $ac_header... " >&6; }
5149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5150 $as_echo_n "(cached) " >&6
5151 else
5152 eval "$as_ac_Header=\$ac_header_preproc"
5153 fi
5154 ac_res=`eval 'as_val=${'$as_ac_Header'}
5155 $as_echo "$as_val"'`
5156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5157 $as_echo "$ac_res" >&6; }
5158
5159 fi
5160 as_val=`eval 'as_val=${'$as_ac_Header'}
5161 $as_echo "$as_val"'`
5162 if test "x$as_val" = x""yes; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165 _ACEOF
5166
5167 else
5168 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5169 $as_echo "$as_me: error: bailing out" >&2;}
5170 { (exit 1); exit 1; }; }
5171 fi
5172
5173 done
5174 ;;
5175 esac
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5194 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5195 sys/types.h unistd.h
5196 do
5197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5200 $as_echo_n "checking for $ac_header... " >&6; }
5201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5202 $as_echo_n "(cached) " >&6
5203 fi
5204 ac_res=`eval 'as_val=${'$as_ac_Header'}
5205 $as_echo "$as_val"'`
5206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5207 $as_echo "$ac_res" >&6; }
5208 else
5209 # Is the header compilable?
5210 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5211 $as_echo_n "checking $ac_header usability... " >&6; }
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 $ac_includes_default
5219 #include <$ac_header>
5220 _ACEOF
5221 rm -f conftest.$ac_objext
5222 if { (ac_try="$ac_compile"
5223 case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226 esac
5227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5228 $as_echo "$ac_try_echo") >&5
5229 (eval "$ac_compile") 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
5239 ac_header_compiler=yes
5240 else
5241 $as_echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 ac_header_compiler=no
5245 fi
5246
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5249 $as_echo "$ac_header_compiler" >&6; }
5250
5251 # Is the header present?
5252 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5253 $as_echo_n "checking $ac_header presence... " >&6; }
5254 cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h. */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5260 #include <$ac_header>
5261 _ACEOF
5262 if { (ac_try="$ac_cpp conftest.$ac_ext"
5263 case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266 esac
5267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5268 $as_echo "$ac_try_echo") >&5
5269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null && {
5276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 }; then
5279 ac_header_preproc=yes
5280 else
5281 $as_echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 ac_header_preproc=no
5285 fi
5286
5287 rm -f conftest.err conftest.$ac_ext
5288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5289 $as_echo "$ac_header_preproc" >&6; }
5290
5291 # So? What about this header?
5292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5293 yes:no: )
5294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5295 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5298 ac_header_preproc=yes
5299 ;;
5300 no:yes:* )
5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5302 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5304 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5306 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5308 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5312 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5313
5314 ;;
5315 esac
5316 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 $as_echo_n "checking for $ac_header... " >&6; }
5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319 $as_echo_n "(cached) " >&6
5320 else
5321 eval "$as_ac_Header=\$ac_header_preproc"
5322 fi
5323 ac_res=`eval 'as_val=${'$as_ac_Header'}
5324 $as_echo "$as_val"'`
5325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5326 $as_echo "$ac_res" >&6; }
5327
5328 fi
5329 as_val=`eval 'as_val=${'$as_ac_Header'}
5330 $as_echo "$as_val"'`
5331 if test "x$as_val" = x""yes; then
5332 cat >>confdefs.h <<_ACEOF
5333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5334 _ACEOF
5335
5336 else
5337 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5338 $as_echo "$as_me: error: bailing out" >&2;}
5339 { (exit 1); exit 1; }; }
5340 fi
5341
5342 done
5343
5344
5345
5346 for ac_header in termios.h sys/statvfs.h
5347 do
5348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5351 $as_echo_n "checking for $ac_header... " >&6; }
5352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353 $as_echo_n "(cached) " >&6
5354 fi
5355 ac_res=`eval 'as_val=${'$as_ac_Header'}
5356 $as_echo "$as_val"'`
5357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5358 $as_echo "$ac_res" >&6; }
5359 else
5360 # Is the header compilable?
5361 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362 $as_echo_n "checking $ac_header usability... " >&6; }
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5370 #include <$ac_header>
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (ac_try="$ac_compile"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5379 $as_echo "$ac_try_echo") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5390 ac_header_compiler=yes
5391 else
5392 $as_echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_header_compiler=no
5396 fi
5397
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5400 $as_echo "$ac_header_compiler" >&6; }
5401
5402 # Is the header present?
5403 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5404 $as_echo_n "checking $ac_header presence... " >&6; }
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5412 _ACEOF
5413 if { (ac_try="$ac_cpp conftest.$ac_ext"
5414 case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417 esac
5418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5419 $as_echo "$ac_try_echo") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null && {
5427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5428 test ! -s conftest.err
5429 }; then
5430 ac_header_preproc=yes
5431 else
5432 $as_echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_header_preproc=no
5436 fi
5437
5438 rm -f conftest.err conftest.$ac_ext
5439 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 $as_echo "$ac_header_preproc" >&6; }
5441
5442 # So? What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5444 yes:no: )
5445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449 ac_header_preproc=yes
5450 ;;
5451 no:yes:* )
5452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5455 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5459 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5464
5465 ;;
5466 esac
5467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5468 $as_echo_n "checking for $ac_header... " >&6; }
5469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5470 $as_echo_n "(cached) " >&6
5471 else
5472 eval "$as_ac_Header=\$ac_header_preproc"
5473 fi
5474 ac_res=`eval 'as_val=${'$as_ac_Header'}
5475 $as_echo "$as_val"'`
5476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5477 $as_echo "$ac_res" >&6; }
5478
5479 fi
5480 as_val=`eval 'as_val=${'$as_ac_Header'}
5481 $as_echo "$as_val"'`
5482 if test "x$as_val" = x""yes; then
5483 cat >>confdefs.h <<_ACEOF
5484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5485 _ACEOF
5486
5487 fi
5488
5489 done
5490
5491
5492 ################################################################################
5493 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5494 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5495 if test "${ac_cv_c_const+set}" = set; then
5496 $as_echo_n "(cached) " >&6
5497 else
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504
5505 int
5506 main ()
5507 {
5508 /* FIXME: Include the comments suggested by Paul. */
5509 #ifndef __cplusplus
5510 /* Ultrix mips cc rejects this. */
5511 typedef int charset[2];
5512 const charset cs;
5513 /* SunOS 4.1.1 cc rejects this. */
5514 char const *const *pcpcc;
5515 char **ppc;
5516 /* NEC SVR4.0.2 mips cc rejects this. */
5517 struct point {int x, y;};
5518 static struct point const zero = {0,0};
5519 /* AIX XL C 1.02.0.0 rejects this.
5520 It does not let you subtract one const X* pointer from another in
5521 an arm of an if-expression whose if-part is not a constant
5522 expression */
5523 const char *g = "string";
5524 pcpcc = &g + (g ? g-g : 0);
5525 /* HPUX 7.0 cc rejects these. */
5526 ++pcpcc;
5527 ppc = (char**) pcpcc;
5528 pcpcc = (char const *const *) ppc;
5529 { /* SCO 3.2v4 cc rejects this. */
5530 char *t;
5531 char const *s = 0 ? (char *) 0 : (char const *) 0;
5532
5533 *t++ = 0;
5534 if (s) return 0;
5535 }
5536 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5537 int x[] = {25, 17};
5538 const int *foo = &x[0];
5539 ++foo;
5540 }
5541 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5542 typedef const int *iptr;
5543 iptr p = 0;
5544 ++p;
5545 }
5546 { /* AIX XL C 1.02.0.0 rejects this saying
5547 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5548 struct s { int j; const int *ap[3]; };
5549 struct s *b; b->j = 5;
5550 }
5551 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5552 const int foo = 10;
5553 if (!foo) return 0;
5554 }
5555 return !cs[0] && !zero.x;
5556 #endif
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5564 case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567 esac
5568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569 $as_echo "$ac_try_echo") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
5580 ac_cv_c_const=yes
5581 else
5582 $as_echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585 ac_cv_c_const=no
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5590 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5591 $as_echo "$ac_cv_c_const" >&6; }
5592 if test $ac_cv_c_const = no; then
5593
5594 cat >>confdefs.h <<\_ACEOF
5595 #define const /**/
5596 _ACEOF
5597
5598 fi
5599
5600 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5601 $as_echo_n "checking for inline... " >&6; }
5602 if test "${ac_cv_c_inline+set}" = set; then
5603 $as_echo_n "(cached) " >&6
5604 else
5605 ac_cv_c_inline=no
5606 for ac_kw in inline __inline__ __inline; do
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #ifndef __cplusplus
5614 typedef int foo_t;
5615 static $ac_kw foo_t static_foo () {return 0; }
5616 $ac_kw foo_t foo () {return 0; }
5617 #endif
5618
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (ac_try="$ac_compile"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627 $as_echo "$ac_try_echo") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.$ac_objext; then
5638 ac_cv_c_inline=$ac_kw
5639 else
5640 $as_echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5642
5643
5644 fi
5645
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 test "$ac_cv_c_inline" != no && break
5648 done
5649
5650 fi
5651 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5652 $as_echo "$ac_cv_c_inline" >&6; }
5653
5654
5655 case $ac_cv_c_inline in
5656 inline | yes) ;;
5657 *)
5658 case $ac_cv_c_inline in
5659 no) ac_val=;;
5660 *) ac_val=$ac_cv_c_inline;;
5661 esac
5662 cat >>confdefs.h <<_ACEOF
5663 #ifndef __cplusplus
5664 #define inline $ac_val
5665 #endif
5666 _ACEOF
5667 ;;
5668 esac
5669
5670 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5671 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5672 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5673 $as_echo_n "(cached) " >&6
5674 else
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5682 int
5683 main ()
5684 {
5685 static struct stat ac_aggr;
5686 if (ac_aggr.st_rdev)
5687 return 0;
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699 $as_echo "$ac_try_echo") >&5
5700 (eval "$ac_compile") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest.$ac_objext; then
5710 ac_cv_member_struct_stat_st_rdev=yes
5711 else
5712 $as_echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 $ac_includes_default
5722 int
5723 main ()
5724 {
5725 static struct stat ac_aggr;
5726 if (sizeof ac_aggr.st_rdev)
5727 return 0;
5728 ;
5729 return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext
5733 if { (ac_try="$ac_compile"
5734 case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5739 $as_echo "$ac_try_echo") >&5
5740 (eval "$ac_compile") 2>conftest.er1
5741 ac_status=$?
5742 grep -v '^ *+' conftest.er1 >conftest.err
5743 rm -f conftest.er1
5744 cat conftest.err >&5
5745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && {
5747 test -z "$ac_c_werror_flag" ||
5748 test ! -s conftest.err
5749 } && test -s conftest.$ac_objext; then
5750 ac_cv_member_struct_stat_st_rdev=yes
5751 else
5752 $as_echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 ac_cv_member_struct_stat_st_rdev=no
5756 fi
5757
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 fi
5763 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5764 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5765 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5766
5767 cat >>confdefs.h <<_ACEOF
5768 #define HAVE_STRUCT_STAT_ST_RDEV 1
5769 _ACEOF
5770
5771
5772 fi
5773
5774 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5775 $as_echo_n "checking for off_t... " >&6; }
5776 if test "${ac_cv_type_off_t+set}" = set; then
5777 $as_echo_n "(cached) " >&6
5778 else
5779 ac_cv_type_off_t=no
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 $ac_includes_default
5787 int
5788 main ()
5789 {
5790 if (sizeof (off_t))
5791 return 0;
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 $ac_includes_default
5821 int
5822 main ()
5823 {
5824 if (sizeof ((off_t)))
5825 return 0;
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5837 $as_echo "$ac_try_echo") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
5848 :
5849 else
5850 $as_echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_cv_type_off_t=yes
5854 fi
5855
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 else
5858 $as_echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861
5862 fi
5863
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 fi
5866 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5867 $as_echo "$ac_cv_type_off_t" >&6; }
5868 if test "x$ac_cv_type_off_t" = x""yes; then
5869 :
5870 else
5871
5872 cat >>confdefs.h <<_ACEOF
5873 #define off_t long int
5874 _ACEOF
5875
5876 fi
5877
5878 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5879 $as_echo_n "checking for pid_t... " >&6; }
5880 if test "${ac_cv_type_pid_t+set}" = set; then
5881 $as_echo_n "(cached) " >&6
5882 else
5883 ac_cv_type_pid_t=no
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 $ac_includes_default
5891 int
5892 main ()
5893 {
5894 if (sizeof (pid_t))
5895 return 0;
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (ac_try="$ac_compile"
5902 case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5907 $as_echo "$ac_try_echo") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 $ac_includes_default
5925 int
5926 main ()
5927 {
5928 if (sizeof ((pid_t)))
5929 return 0;
5930 ;
5931 return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5936 case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941 $as_echo "$ac_try_echo") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
5952 :
5953 else
5954 $as_echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957 ac_cv_type_pid_t=yes
5958 fi
5959
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 else
5962 $as_echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965
5966 fi
5967
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 fi
5970 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5971 $as_echo "$ac_cv_type_pid_t" >&6; }
5972 if test "x$ac_cv_type_pid_t" = x""yes; then
5973 :
5974 else
5975
5976 cat >>confdefs.h <<_ACEOF
5977 #define pid_t int
5978 _ACEOF
5979
5980 fi
5981
5982 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5983 $as_echo_n "checking return type of signal handlers... " >&6; }
5984 if test "${ac_cv_type_signal+set}" = set; then
5985 $as_echo_n "(cached) " >&6
5986 else
5987 cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h. */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #include <sys/types.h>
5994 #include <signal.h>
5995
5996 int
5997 main ()
5998 {
5999 return *(signal (0, 0)) (0) == 1;
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6006 case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009 esac
6010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6011 $as_echo "$ac_try_echo") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6022 ac_cv_type_signal=int
6023 else
6024 $as_echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_cv_type_signal=void
6028 fi
6029
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 fi
6032 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6033 $as_echo "$ac_cv_type_signal" >&6; }
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define RETSIGTYPE $ac_cv_type_signal
6037 _ACEOF
6038
6039
6040 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6041 $as_echo_n "checking for size_t... " >&6; }
6042 if test "${ac_cv_type_size_t+set}" = set; then
6043 $as_echo_n "(cached) " >&6
6044 else
6045 ac_cv_type_size_t=no
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6053 int
6054 main ()
6055 {
6056 if (sizeof (size_t))
6057 return 0;
6058 ;
6059 return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (ac_try="$ac_compile"
6064 case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067 esac
6068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6069 $as_echo "$ac_try_echo") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } && {
6077 test -z "$ac_c_werror_flag" ||
6078 test ! -s conftest.err
6079 } && test -s conftest.$ac_objext; then
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 $ac_includes_default
6087 int
6088 main ()
6089 {
6090 if (sizeof ((size_t)))
6091 return 0;
6092 ;
6093 return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 :
6115 else
6116 $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_type_size_t=yes
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 else
6124 $as_echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6126
6127
6128 fi
6129
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6133 $as_echo "$ac_cv_type_size_t" >&6; }
6134 if test "x$ac_cv_type_size_t" = x""yes; then
6135 :
6136 else
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define size_t unsigned int
6140 _ACEOF
6141
6142 fi
6143
6144 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6145 $as_echo_n "checking for mode_t... " >&6; }
6146 if test "${ac_cv_type_mode_t+set}" = set; then
6147 $as_echo_n "(cached) " >&6
6148 else
6149 ac_cv_type_mode_t=no
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 $ac_includes_default
6157 int
6158 main ()
6159 {
6160 if (sizeof (mode_t))
6161 return 0;
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (ac_try="$ac_compile"
6168 case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171 esac
6172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6173 $as_echo "$ac_try_echo") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 int
6192 main ()
6193 {
6194 if (sizeof ((mode_t)))
6195 return 0;
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205 esac
6206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6207 $as_echo "$ac_try_echo") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 :
6219 else
6220 $as_echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 ac_cv_type_mode_t=yes
6224 fi
6225
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 else
6228 $as_echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231
6232 fi
6233
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6237 $as_echo "$ac_cv_type_mode_t" >&6; }
6238 if test "x$ac_cv_type_mode_t" = x""yes; then
6239 :
6240 else
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define mode_t int
6244 _ACEOF
6245
6246 fi
6247
6248 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6249 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6250 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6251 $as_echo_n "(cached) " >&6
6252 else
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 $ac_includes_default
6260 int
6261 main ()
6262 {
6263 static struct stat ac_aggr;
6264 if (ac_aggr.st_rdev)
6265 return 0;
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 rm -f conftest.$ac_objext
6271 if { (ac_try="$ac_compile"
6272 case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275 esac
6276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6277 $as_echo "$ac_try_echo") >&5
6278 (eval "$ac_compile") 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && {
6285 test -z "$ac_c_werror_flag" ||
6286 test ! -s conftest.err
6287 } && test -s conftest.$ac_objext; then
6288 ac_cv_member_struct_stat_st_rdev=yes
6289 else
6290 $as_echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 int
6301 main ()
6302 {
6303 static struct stat ac_aggr;
6304 if (sizeof ac_aggr.st_rdev)
6305 return 0;
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (ac_try="$ac_compile"
6312 case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315 esac
6316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6317 $as_echo "$ac_try_echo") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6328 ac_cv_member_struct_stat_st_rdev=yes
6329 else
6330 $as_echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 ac_cv_member_struct_stat_st_rdev=no
6334 fi
6335
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 fi
6341 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6342 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6343 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6344
6345 cat >>confdefs.h <<_ACEOF
6346 #define HAVE_STRUCT_STAT_ST_RDEV 1
6347 _ACEOF
6348
6349
6350 fi
6351
6352 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6353 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6354 if test "${ac_cv_struct_tm+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6356 else
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 #include <sys/types.h>
6364 #include <time.h>
6365
6366 int
6367 main ()
6368 {
6369 struct tm tm;
6370 int *p = &tm.tm_sec;
6371 return !p;
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (ac_try="$ac_compile"
6378 case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6383 $as_echo "$ac_try_echo") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.$ac_objext; then
6394 ac_cv_struct_tm=time.h
6395 else
6396 $as_echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399 ac_cv_struct_tm=sys/time.h
6400 fi
6401
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 fi
6404 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6405 $as_echo "$ac_cv_struct_tm" >&6; }
6406 if test $ac_cv_struct_tm = sys/time.h; then
6407
6408 cat >>confdefs.h <<\_ACEOF
6409 #define TM_IN_SYS_TIME 1
6410 _ACEOF
6411
6412 fi
6413
6414
6415 ################################################################################
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6434 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6435 uname
6436 do
6437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6439 $as_echo_n "checking for $ac_func... " >&6; }
6440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6441 $as_echo_n "(cached) " >&6
6442 else
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6451 #define $ac_func innocuous_$ac_func
6452
6453 /* System header to define __stub macros and hopefully few prototypes,
6454 which can conflict with char $ac_func (); below.
6455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6456 <limits.h> exists even on freestanding compilers. */
6457
6458 #ifdef __STDC__
6459 # include <limits.h>
6460 #else
6461 # include <assert.h>
6462 #endif
6463
6464 #undef $ac_func
6465
6466 /* Override any GCC internal prototype to avoid an error.
6467 Use char because int might match the return type of a GCC
6468 builtin and then its argument prototype would still apply. */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 char $ac_func ();
6473 /* The GNU C library defines this for functions which it implements
6474 to always fail with ENOSYS. Some functions are actually named
6475 something starting with __ and the normal name is an alias. */
6476 #if defined __stub_$ac_func || defined __stub___$ac_func
6477 choke me
6478 #endif
6479
6480 int
6481 main ()
6482 {
6483 return $ac_func ();
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (ac_try="$ac_link"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495 $as_echo "$ac_try_echo") >&5
6496 (eval "$ac_link") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest$ac_exeext && {
6506 test "$cross_compiling" = yes ||
6507 $as_test_x conftest$ac_exeext
6508 }; then
6509 eval "$as_ac_var=yes"
6510 else
6511 $as_echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 eval "$as_ac_var=no"
6515 fi
6516
6517 rm -rf conftest.dSYM
6518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6519 conftest$ac_exeext conftest.$ac_ext
6520 fi
6521 ac_res=`eval 'as_val=${'$as_ac_var'}
6522 $as_echo "$as_val"'`
6523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6524 $as_echo "$ac_res" >&6; }
6525 as_val=`eval 'as_val=${'$as_ac_var'}
6526 $as_echo "$as_val"'`
6527 if test "x$as_val" = x""yes; then
6528 cat >>confdefs.h <<_ACEOF
6529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6530 _ACEOF
6531
6532 else
6533 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6534 $as_echo "$as_me: error: bailing out" >&2;}
6535 { (exit 1); exit 1; }; }
6536 fi
6537 done
6538
6539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6540 # for constant arguments. Useless!
6541 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6542 $as_echo_n "checking for working alloca.h... " >&6; }
6543 if test "${ac_cv_working_alloca_h+set}" = set; then
6544 $as_echo_n "(cached) " >&6
6545 else
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 #include <alloca.h>
6553 int
6554 main ()
6555 {
6556 char *p = (char *) alloca (2 * sizeof (int));
6557 if (p) return 0;
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (ac_try="$ac_link"
6564 case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6569 $as_echo "$ac_try_echo") >&5
6570 (eval "$ac_link") 2>conftest.er1
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } && {
6577 test -z "$ac_c_werror_flag" ||
6578 test ! -s conftest.err
6579 } && test -s conftest$ac_exeext && {
6580 test "$cross_compiling" = yes ||
6581 $as_test_x conftest$ac_exeext
6582 }; then
6583 ac_cv_working_alloca_h=yes
6584 else
6585 $as_echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 ac_cv_working_alloca_h=no
6589 fi
6590
6591 rm -rf conftest.dSYM
6592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6593 conftest$ac_exeext conftest.$ac_ext
6594 fi
6595 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6596 $as_echo "$ac_cv_working_alloca_h" >&6; }
6597 if test $ac_cv_working_alloca_h = yes; then
6598
6599 cat >>confdefs.h <<\_ACEOF
6600 #define HAVE_ALLOCA_H 1
6601 _ACEOF
6602
6603 fi
6604
6605 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6606 $as_echo_n "checking for alloca... " >&6; }
6607 if test "${ac_cv_func_alloca_works+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6609 else
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 #ifdef __GNUC__
6617 # define alloca __builtin_alloca
6618 #else
6619 # ifdef _MSC_VER
6620 # include <malloc.h>
6621 # define alloca _alloca
6622 # else
6623 # ifdef HAVE_ALLOCA_H
6624 # include <alloca.h>
6625 # else
6626 # ifdef _AIX
6627 #pragma alloca
6628 # else
6629 # ifndef alloca /* predefined by HP cc +Olibcalls */
6630 char *alloca ();
6631 # endif
6632 # endif
6633 # endif
6634 # endif
6635 #endif
6636
6637 int
6638 main ()
6639 {
6640 char *p = (char *) alloca (1);
6641 if (p) return 0;
6642 ;
6643 return 0;
6644 }
6645 _ACEOF
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (ac_try="$ac_link"
6648 case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6651 esac
6652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6653 $as_echo "$ac_try_echo") >&5
6654 (eval "$ac_link") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest$ac_exeext && {
6664 test "$cross_compiling" = yes ||
6665 $as_test_x conftest$ac_exeext
6666 }; then
6667 ac_cv_func_alloca_works=yes
6668 else
6669 $as_echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672 ac_cv_func_alloca_works=no
6673 fi
6674
6675 rm -rf conftest.dSYM
6676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6677 conftest$ac_exeext conftest.$ac_ext
6678 fi
6679 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6680 $as_echo "$ac_cv_func_alloca_works" >&6; }
6681
6682 if test $ac_cv_func_alloca_works = yes; then
6683
6684 cat >>confdefs.h <<\_ACEOF
6685 #define HAVE_ALLOCA 1
6686 _ACEOF
6687
6688 else
6689 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6690 # that cause trouble. Some versions do not even contain alloca or
6691 # contain a buggy version. If you still want to use their alloca,
6692 # use ar to extract alloca.o from them instead of compiling alloca.c.
6693
6694 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6695
6696 cat >>confdefs.h <<\_ACEOF
6697 #define C_ALLOCA 1
6698 _ACEOF
6699
6700
6701 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6702 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6703 if test "${ac_cv_os_cray+set}" = set; then
6704 $as_echo_n "(cached) " >&6
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #if defined CRAY && ! defined CRAY2
6713 webecray
6714 #else
6715 wenotbecray
6716 #endif
6717
6718 _ACEOF
6719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 $EGREP "webecray" >/dev/null 2>&1; then
6721 ac_cv_os_cray=yes
6722 else
6723 ac_cv_os_cray=no
6724 fi
6725 rm -f conftest*
6726
6727 fi
6728 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6729 $as_echo "$ac_cv_os_cray" >&6; }
6730 if test $ac_cv_os_cray = yes; then
6731 for ac_func in _getb67 GETB67 getb67; do
6732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6734 $as_echo_n "checking for $ac_func... " >&6; }
6735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6746 #define $ac_func innocuous_$ac_func
6747
6748 /* System header to define __stub macros and hopefully few prototypes,
6749 which can conflict with char $ac_func (); below.
6750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6751 <limits.h> exists even on freestanding compilers. */
6752
6753 #ifdef __STDC__
6754 # include <limits.h>
6755 #else
6756 # include <assert.h>
6757 #endif
6758
6759 #undef $ac_func
6760
6761 /* Override any GCC internal prototype to avoid an error.
6762 Use char because int might match the return type of a GCC
6763 builtin and then its argument prototype would still apply. */
6764 #ifdef __cplusplus
6765 extern "C"
6766 #endif
6767 char $ac_func ();
6768 /* The GNU C library defines this for functions which it implements
6769 to always fail with ENOSYS. Some functions are actually named
6770 something starting with __ and the normal name is an alias. */
6771 #if defined __stub_$ac_func || defined __stub___$ac_func
6772 choke me
6773 #endif
6774
6775 int
6776 main ()
6777 {
6778 return $ac_func ();
6779 ;
6780 return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (ac_try="$ac_link"
6785 case "(($ac_try" in
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6788 esac
6789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790 $as_echo "$ac_try_echo") >&5
6791 (eval "$ac_link") 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } && {
6798 test -z "$ac_c_werror_flag" ||
6799 test ! -s conftest.err
6800 } && test -s conftest$ac_exeext && {
6801 test "$cross_compiling" = yes ||
6802 $as_test_x conftest$ac_exeext
6803 }; then
6804 eval "$as_ac_var=yes"
6805 else
6806 $as_echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 eval "$as_ac_var=no"
6810 fi
6811
6812 rm -rf conftest.dSYM
6813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6814 conftest$ac_exeext conftest.$ac_ext
6815 fi
6816 ac_res=`eval 'as_val=${'$as_ac_var'}
6817 $as_echo "$as_val"'`
6818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6820 as_val=`eval 'as_val=${'$as_ac_var'}
6821 $as_echo "$as_val"'`
6822 if test "x$as_val" = x""yes; then
6823
6824 cat >>confdefs.h <<_ACEOF
6825 #define CRAY_STACKSEG_END $ac_func
6826 _ACEOF
6827
6828 break
6829 fi
6830
6831 done
6832 fi
6833
6834 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6835 $as_echo_n "checking stack direction for C alloca... " >&6; }
6836 if test "${ac_cv_c_stack_direction+set}" = set; then
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test "$cross_compiling" = yes; then
6840 ac_cv_c_stack_direction=0
6841 else
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 $ac_includes_default
6849 int
6850 find_stack_direction ()
6851 {
6852 static char *addr = 0;
6853 auto char dummy;
6854 if (addr == 0)
6855 {
6856 addr = &dummy;
6857 return find_stack_direction ();
6858 }
6859 else
6860 return (&dummy > addr) ? 1 : -1;
6861 }
6862
6863 int
6864 main ()
6865 {
6866 return find_stack_direction () < 0;
6867 }
6868 _ACEOF
6869 rm -f conftest$ac_exeext
6870 if { (ac_try="$ac_link"
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_link") 2>&5
6878 ac_status=$?
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6881 { (case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884 esac
6885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6886 $as_echo "$ac_try_echo") >&5
6887 (eval "$ac_try") 2>&5
6888 ac_status=$?
6889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_c_stack_direction=1
6892 else
6893 $as_echo "$as_me: program exited with status $ac_status" >&5
6894 $as_echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897 ( exit $ac_status )
6898 ac_cv_c_stack_direction=-1
6899 fi
6900 rm -rf conftest.dSYM
6901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6902 fi
6903
6904
6905 fi
6906 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6907 $as_echo "$ac_cv_c_stack_direction" >&6; }
6908
6909 cat >>confdefs.h <<_ACEOF
6910 #define STACK_DIRECTION $ac_cv_c_stack_direction
6911 _ACEOF
6912
6913
6914 fi
6915
6916 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6917 $as_echo_n "checking whether closedir returns void... " >&6; }
6918 if test "${ac_cv_func_closedir_void+set}" = set; then
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test "$cross_compiling" = yes; then
6922 ac_cv_func_closedir_void=yes
6923 else
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_dirent>
6932 #ifndef __cplusplus
6933 int closedir ();
6934 #endif
6935
6936 int
6937 main ()
6938 {
6939 return closedir (opendir (".")) != 0;
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 rm -f conftest$ac_exeext
6945 if { (ac_try="$ac_link"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6951 $as_echo "$ac_try_echo") >&5
6952 (eval "$ac_link") 2>&5
6953 ac_status=$?
6954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6956 { (case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959 esac
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_try") 2>&5
6963 ac_status=$?
6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_cv_func_closedir_void=no
6967 else
6968 $as_echo "$as_me: program exited with status $ac_status" >&5
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 ( exit $ac_status )
6973 ac_cv_func_closedir_void=yes
6974 fi
6975 rm -rf conftest.dSYM
6976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6977 fi
6978
6979
6980 fi
6981 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6982 $as_echo "$ac_cv_func_closedir_void" >&6; }
6983 if test $ac_cv_func_closedir_void = yes; then
6984
6985 cat >>confdefs.h <<\_ACEOF
6986 #define CLOSEDIR_VOID 1
6987 _ACEOF
6988
6989 fi
6990
6991
6992 for ac_header in vfork.h
6993 do
6994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6997 $as_echo_n "checking for $ac_header... " >&6; }
6998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6999 $as_echo_n "(cached) " >&6
7000 fi
7001 ac_res=`eval 'as_val=${'$as_ac_Header'}
7002 $as_echo "$as_val"'`
7003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7004 $as_echo "$ac_res" >&6; }
7005 else
7006 # Is the header compilable?
7007 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7008 $as_echo_n "checking $ac_header usability... " >&6; }
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 $ac_includes_default
7016 #include <$ac_header>
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (ac_try="$ac_compile"
7020 case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023 esac
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 ac_header_compiler=yes
7037 else
7038 $as_echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_header_compiler=no
7042 fi
7043
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7046 $as_echo "$ac_header_compiler" >&6; }
7047
7048 # Is the header present?
7049 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7050 $as_echo_n "checking $ac_header presence... " >&6; }
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <$ac_header>
7058 _ACEOF
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7060 case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063 esac
7064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7065 $as_echo "$ac_try_echo") >&5
7066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } >/dev/null && {
7073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 }; then
7076 ac_header_preproc=yes
7077 else
7078 $as_echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081 ac_header_preproc=no
7082 fi
7083
7084 rm -f conftest.err conftest.$ac_ext
7085 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7086 $as_echo "$ac_header_preproc" >&6; }
7087
7088 # So? What about this header?
7089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7090 yes:no: )
7091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7092 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7094 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7095 ac_header_preproc=yes
7096 ;;
7097 no:yes:* )
7098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7099 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7101 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7103 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7105 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7109 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7110
7111 ;;
7112 esac
7113 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7114 $as_echo_n "checking for $ac_header... " >&6; }
7115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7116 $as_echo_n "(cached) " >&6
7117 else
7118 eval "$as_ac_Header=\$ac_header_preproc"
7119 fi
7120 ac_res=`eval 'as_val=${'$as_ac_Header'}
7121 $as_echo "$as_val"'`
7122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7123 $as_echo "$ac_res" >&6; }
7124
7125 fi
7126 as_val=`eval 'as_val=${'$as_ac_Header'}
7127 $as_echo "$as_val"'`
7128 if test "x$as_val" = x""yes; then
7129 cat >>confdefs.h <<_ACEOF
7130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7131 _ACEOF
7132
7133 fi
7134
7135 done
7136
7137
7138
7139 for ac_func in fork vfork
7140 do
7141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7142 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7143 $as_echo_n "checking for $ac_func... " >&6; }
7144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7145 $as_echo_n "(cached) " >&6
7146 else
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7155 #define $ac_func innocuous_$ac_func
7156
7157 /* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char $ac_func (); below.
7159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 <limits.h> exists even on freestanding compilers. */
7161
7162 #ifdef __STDC__
7163 # include <limits.h>
7164 #else
7165 # include <assert.h>
7166 #endif
7167
7168 #undef $ac_func
7169
7170 /* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
7173 #ifdef __cplusplus
7174 extern "C"
7175 #endif
7176 char $ac_func ();
7177 /* The GNU C library defines this for functions which it implements
7178 to always fail with ENOSYS. Some functions are actually named
7179 something starting with __ and the normal name is an alias. */
7180 #if defined __stub_$ac_func || defined __stub___$ac_func
7181 choke me
7182 #endif
7183
7184 int
7185 main ()
7186 {
7187 return $ac_func ();
7188 ;
7189 return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7194 case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197 esac
7198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200 (eval "$ac_link") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest$ac_exeext && {
7210 test "$cross_compiling" = yes ||
7211 $as_test_x conftest$ac_exeext
7212 }; then
7213 eval "$as_ac_var=yes"
7214 else
7215 $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 eval "$as_ac_var=no"
7219 fi
7220
7221 rm -rf conftest.dSYM
7222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223 conftest$ac_exeext conftest.$ac_ext
7224 fi
7225 ac_res=`eval 'as_val=${'$as_ac_var'}
7226 $as_echo "$as_val"'`
7227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7228 $as_echo "$ac_res" >&6; }
7229 as_val=`eval 'as_val=${'$as_ac_var'}
7230 $as_echo "$as_val"'`
7231 if test "x$as_val" = x""yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7234 _ACEOF
7235
7236 fi
7237 done
7238
7239 if test "x$ac_cv_func_fork" = xyes; then
7240 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7241 $as_echo_n "checking for working fork... " >&6; }
7242 if test "${ac_cv_func_fork_works+set}" = set; then
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test "$cross_compiling" = yes; then
7246 ac_cv_func_fork_works=cross
7247 else
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7255 int
7256 main ()
7257 {
7258
7259 /* By Ruediger Kuhlmann. */
7260 return fork () < 0;
7261
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7268 case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7273 $as_echo "$ac_try_echo") >&5
7274 (eval "$ac_link") 2>&5
7275 ac_status=$?
7276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7278 { (case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281 esac
7282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7283 $as_echo "$ac_try_echo") >&5
7284 (eval "$ac_try") 2>&5
7285 ac_status=$?
7286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_func_fork_works=yes
7289 else
7290 $as_echo "$as_me: program exited with status $ac_status" >&5
7291 $as_echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294 ( exit $ac_status )
7295 ac_cv_func_fork_works=no
7296 fi
7297 rm -rf conftest.dSYM
7298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7299 fi
7300
7301
7302 fi
7303 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7304 $as_echo "$ac_cv_func_fork_works" >&6; }
7305
7306 else
7307 ac_cv_func_fork_works=$ac_cv_func_fork
7308 fi
7309 if test "x$ac_cv_func_fork_works" = xcross; then
7310 case $host in
7311 *-*-amigaos* | *-*-msdosdjgpp*)
7312 # Override, as these systems have only a dummy fork() stub
7313 ac_cv_func_fork_works=no
7314 ;;
7315 *)
7316 ac_cv_func_fork_works=yes
7317 ;;
7318 esac
7319 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7320 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7321 fi
7322 ac_cv_func_vfork_works=$ac_cv_func_vfork
7323 if test "x$ac_cv_func_vfork" = xyes; then
7324 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7325 $as_echo_n "checking for working vfork... " >&6; }
7326 if test "${ac_cv_func_vfork_works+set}" = set; then
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test "$cross_compiling" = yes; then
7330 ac_cv_func_vfork_works=cross
7331 else
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 /* Thanks to Paul Eggert for this test. */
7339 $ac_includes_default
7340 #include <sys/wait.h>
7341 #ifdef HAVE_VFORK_H
7342 # include <vfork.h>
7343 #endif
7344 /* On some sparc systems, changes by the child to local and incoming
7345 argument registers are propagated back to the parent. The compiler
7346 is told about this with #include <vfork.h>, but some compilers
7347 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7348 static variable whose address is put into a register that is
7349 clobbered by the vfork. */
7350 static void
7351 #ifdef __cplusplus
7352 sparc_address_test (int arg)
7353 # else
7354 sparc_address_test (arg) int arg;
7355 #endif
7356 {
7357 static pid_t child;
7358 if (!child) {
7359 child = vfork ();
7360 if (child < 0) {
7361 perror ("vfork");
7362 _exit(2);
7363 }
7364 if (!child) {
7365 arg = getpid();
7366 write(-1, "", 0);
7367 _exit (arg);
7368 }
7369 }
7370 }
7371
7372 int
7373 main ()
7374 {
7375 pid_t parent = getpid ();
7376 pid_t child;
7377
7378 sparc_address_test (0);
7379
7380 child = vfork ();
7381
7382 if (child == 0) {
7383 /* Here is another test for sparc vfork register problems. This
7384 test uses lots of local variables, at least as many local
7385 variables as main has allocated so far including compiler
7386 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7387 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7388 reuse the register of parent for one of the local variables,
7389 since it will think that parent can't possibly be used any more
7390 in this routine. Assigning to the local variable will thus
7391 munge parent in the parent process. */
7392 pid_t
7393 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7394 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7395 /* Convince the compiler that p..p7 are live; otherwise, it might
7396 use the same hardware register for all 8 local variables. */
7397 if (p != p1 || p != p2 || p != p3 || p != p4
7398 || p != p5 || p != p6 || p != p7)
7399 _exit(1);
7400
7401 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7402 from child file descriptors. If the child closes a descriptor
7403 before it execs or exits, this munges the parent's descriptor
7404 as well. Test for this by closing stdout in the child. */
7405 _exit(close(fileno(stdout)) != 0);
7406 } else {
7407 int status;
7408 struct stat st;
7409
7410 while (wait(&status) != child)
7411 ;
7412 return (
7413 /* Was there some problem with vforking? */
7414 child < 0
7415
7416 /* Did the child fail? (This shouldn't happen.) */
7417 || status
7418
7419 /* Did the vfork/compiler bug occur? */
7420 || parent != getpid()
7421
7422 /* Did the file descriptor bug occur? */
7423 || fstat(fileno(stdout), &st) != 0
7424 );
7425 }
7426 }
7427 _ACEOF
7428 rm -f conftest$ac_exeext
7429 if { (ac_try="$ac_link"
7430 case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435 $as_echo "$ac_try_echo") >&5
7436 (eval "$ac_link") 2>&5
7437 ac_status=$?
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7440 { (case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7445 $as_echo "$ac_try_echo") >&5
7446 (eval "$ac_try") 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_func_vfork_works=yes
7451 else
7452 $as_echo "$as_me: program exited with status $ac_status" >&5
7453 $as_echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456 ( exit $ac_status )
7457 ac_cv_func_vfork_works=no
7458 fi
7459 rm -rf conftest.dSYM
7460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7461 fi
7462
7463
7464 fi
7465 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7466 $as_echo "$ac_cv_func_vfork_works" >&6; }
7467
7468 fi;
7469 if test "x$ac_cv_func_fork_works" = xcross; then
7470 ac_cv_func_vfork_works=$ac_cv_func_vfork
7471 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7472 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7473 fi
7474
7475 if test "x$ac_cv_func_vfork_works" = xyes; then
7476
7477 cat >>confdefs.h <<\_ACEOF
7478 #define HAVE_WORKING_VFORK 1
7479 _ACEOF
7480
7481 else
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define vfork fork
7485 _ACEOF
7486
7487 fi
7488 if test "x$ac_cv_func_fork_works" = xyes; then
7489
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_WORKING_FORK 1
7492 _ACEOF
7493
7494 fi
7495
7496 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7497 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7498 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7500 else
7501 rm -f conftest.sym conftest.file
7502 echo >conftest.file
7503 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7504 if test "$cross_compiling" = yes; then
7505 ac_cv_func_lstat_dereferences_slashed_symlink=no
7506 else
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 int
7515 main ()
7516 {
7517 struct stat sbuf;
7518 /* Linux will dereference the symlink and fail.
7519 That is better in the sense that it means we will not
7520 have to compile and use the lstat wrapper. */
7521 return lstat ("conftest.sym/", &sbuf) == 0;
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest$ac_exeext
7527 if { (ac_try="$ac_link"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_link") 2>&5
7535 ac_status=$?
7536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7538 { (case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_try") 2>&5
7545 ac_status=$?
7546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7549 else
7550 $as_echo "$as_me: program exited with status $ac_status" >&5
7551 $as_echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 ( exit $ac_status )
7555 ac_cv_func_lstat_dereferences_slashed_symlink=no
7556 fi
7557 rm -rf conftest.dSYM
7558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7559 fi
7560
7561
7562 else
7563 # If the `ln -s' command failed, then we probably don't even
7564 # have an lstat function.
7565 ac_cv_func_lstat_dereferences_slashed_symlink=no
7566 fi
7567 rm -f conftest.sym conftest.file
7568
7569 fi
7570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7571 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7572
7573 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7574
7575 cat >>confdefs.h <<_ACEOF
7576 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7577 _ACEOF
7578
7579
7580 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7581 case " $LIBOBJS " in
7582 *" lstat.$ac_objext "* ) ;;
7583 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7584 ;;
7585 esac
7586
7587 fi
7588
7589 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7590 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7591 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7592 $as_echo_n "(cached) " >&6
7593 else
7594 if test "$cross_compiling" = yes; then
7595 ac_cv_func_lstat_empty_string_bug=yes
7596 else
7597 cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h. */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7604 int
7605 main ()
7606 {
7607 struct stat sbuf;
7608 return lstat ("", &sbuf) == 0;
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest$ac_exeext
7614 if { (ac_try="$ac_link"
7615 case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618 esac
7619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7620 $as_echo "$ac_try_echo") >&5
7621 (eval "$ac_link") 2>&5
7622 ac_status=$?
7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7625 { (case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628 esac
7629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7630 $as_echo "$ac_try_echo") >&5
7631 (eval "$ac_try") 2>&5
7632 ac_status=$?
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_cv_func_lstat_empty_string_bug=no
7636 else
7637 $as_echo "$as_me: program exited with status $ac_status" >&5
7638 $as_echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641 ( exit $ac_status )
7642 ac_cv_func_lstat_empty_string_bug=yes
7643 fi
7644 rm -rf conftest.dSYM
7645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7646 fi
7647
7648
7649 fi
7650 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7651 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7652 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7653 case " $LIBOBJS " in
7654 *" lstat.$ac_objext "* ) ;;
7655 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7656 ;;
7657 esac
7658
7659
7660 cat >>confdefs.h <<_ACEOF
7661 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7662 _ACEOF
7663
7664 fi
7665
7666
7667 for ac_header in stdlib.h
7668 do
7669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7672 $as_echo_n "checking for $ac_header... " >&6; }
7673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7674 $as_echo_n "(cached) " >&6
7675 fi
7676 ac_res=`eval 'as_val=${'$as_ac_Header'}
7677 $as_echo "$as_val"'`
7678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7679 $as_echo "$ac_res" >&6; }
7680 else
7681 # Is the header compilable?
7682 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7683 $as_echo_n "checking $ac_header usability... " >&6; }
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 $ac_includes_default
7691 #include <$ac_header>
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (ac_try="$ac_compile"
7695 case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698 esac
7699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7700 $as_echo "$ac_try_echo") >&5
7701 (eval "$ac_compile") 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest.$ac_objext; then
7711 ac_header_compiler=yes
7712 else
7713 $as_echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 ac_header_compiler=no
7717 fi
7718
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7721 $as_echo "$ac_header_compiler" >&6; }
7722
7723 # Is the header present?
7724 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7725 $as_echo_n "checking $ac_header presence... " >&6; }
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h. */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 #include <$ac_header>
7733 _ACEOF
7734 if { (ac_try="$ac_cpp conftest.$ac_ext"
7735 case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738 esac
7739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7740 $as_echo "$ac_try_echo") >&5
7741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } >/dev/null && {
7748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 }; then
7751 ac_header_preproc=yes
7752 else
7753 $as_echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 ac_header_preproc=no
7757 fi
7758
7759 rm -f conftest.err conftest.$ac_ext
7760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7761 $as_echo "$ac_header_preproc" >&6; }
7762
7763 # So? What about this header?
7764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7765 yes:no: )
7766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7767 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7770 ac_header_preproc=yes
7771 ;;
7772 no:yes:* )
7773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7774 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7776 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7778 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7780 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7784 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7785
7786 ;;
7787 esac
7788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7789 $as_echo_n "checking for $ac_header... " >&6; }
7790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7791 $as_echo_n "(cached) " >&6
7792 else
7793 eval "$as_ac_Header=\$ac_header_preproc"
7794 fi
7795 ac_res=`eval 'as_val=${'$as_ac_Header'}
7796 $as_echo "$as_val"'`
7797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7798 $as_echo "$ac_res" >&6; }
7799
7800 fi
7801 as_val=`eval 'as_val=${'$as_ac_Header'}
7802 $as_echo "$as_val"'`
7803 if test "x$as_val" = x""yes; then
7804 cat >>confdefs.h <<_ACEOF
7805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7806 _ACEOF
7807
7808 fi
7809
7810 done
7811
7812 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7813 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7814 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test "$cross_compiling" = yes; then
7818 ac_cv_func_malloc_0_nonnull=no
7819 else
7820 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7827 # include <stdlib.h>
7828 #else
7829 char *malloc ();
7830 #endif
7831
7832 int
7833 main ()
7834 {
7835 return ! malloc (0);
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7842 case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847 $as_echo "$ac_try_echo") >&5
7848 (eval "$ac_link") 2>&5
7849 ac_status=$?
7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7852 { (case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7857 $as_echo "$ac_try_echo") >&5
7858 (eval "$ac_try") 2>&5
7859 ac_status=$?
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 ac_cv_func_malloc_0_nonnull=yes
7863 else
7864 $as_echo "$as_me: program exited with status $ac_status" >&5
7865 $as_echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 ( exit $ac_status )
7869 ac_cv_func_malloc_0_nonnull=no
7870 fi
7871 rm -rf conftest.dSYM
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7873 fi
7874
7875
7876 fi
7877 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7878 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7879 if test $ac_cv_func_malloc_0_nonnull = yes; then
7880
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_MALLOC 1
7883 _ACEOF
7884
7885 else
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_MALLOC 0
7888 _ACEOF
7889
7890 case " $LIBOBJS " in
7891 *" malloc.$ac_objext "* ) ;;
7892 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7893 ;;
7894 esac
7895
7896
7897 cat >>confdefs.h <<\_ACEOF
7898 #define malloc rpl_malloc
7899 _ACEOF
7900
7901 fi
7902
7903
7904
7905 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7906 $as_echo_n "checking for working memcmp... " >&6; }
7907 if test "${ac_cv_func_memcmp_working+set}" = set; then
7908 $as_echo_n "(cached) " >&6
7909 else
7910 if test "$cross_compiling" = yes; then
7911 ac_cv_func_memcmp_working=no
7912 else
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 $ac_includes_default
7920 int
7921 main ()
7922 {
7923
7924 /* Some versions of memcmp are not 8-bit clean. */
7925 char c0 = '\100', c1 = '\200', c2 = '\201';
7926 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7927 return 1;
7928
7929 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7930 or more and with at least one buffer not starting on a 4-byte boundary.
7931 William Lewis provided this test program. */
7932 {
7933 char foo[21];
7934 char bar[21];
7935 int i;
7936 for (i = 0; i < 4; i++)
7937 {
7938 char *a = foo + i;
7939 char *b = bar + i;
7940 strcpy (a, "--------01111111");
7941 strcpy (b, "--------10000000");
7942 if (memcmp (a, b, 16) >= 0)
7943 return 1;
7944 }
7945 return 0;
7946 }
7947
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7954 case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957 esac
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_link") 2>&5
7961 ac_status=$?
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7964 { (case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7969 $as_echo "$ac_try_echo") >&5
7970 (eval "$ac_try") 2>&5
7971 ac_status=$?
7972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_func_memcmp_working=yes
7975 else
7976 $as_echo "$as_me: program exited with status $ac_status" >&5
7977 $as_echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 ( exit $ac_status )
7981 ac_cv_func_memcmp_working=no
7982 fi
7983 rm -rf conftest.dSYM
7984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7985 fi
7986
7987
7988 fi
7989 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7990 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7991 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7992 *" memcmp.$ac_objext "* ) ;;
7993 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7994 ;;
7995 esac
7996
7997
7998
7999
8000 for ac_header in stdlib.h unistd.h
8001 do
8002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8005 $as_echo_n "checking for $ac_header... " >&6; }
8006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8007 $as_echo_n "(cached) " >&6
8008 fi
8009 ac_res=`eval 'as_val=${'$as_ac_Header'}
8010 $as_echo "$as_val"'`
8011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8012 $as_echo "$ac_res" >&6; }
8013 else
8014 # Is the header compilable?
8015 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8016 $as_echo_n "checking $ac_header usability... " >&6; }
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 $ac_includes_default
8024 #include <$ac_header>
8025 _ACEOF
8026 rm -f conftest.$ac_objext
8027 if { (ac_try="$ac_compile"
8028 case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031 esac
8032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8033 $as_echo "$ac_try_echo") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest.$ac_objext; then
8044 ac_header_compiler=yes
8045 else
8046 $as_echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 ac_header_compiler=no
8050 fi
8051
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8054 $as_echo "$ac_header_compiler" >&6; }
8055
8056 # Is the header present?
8057 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8058 $as_echo_n "checking $ac_header presence... " >&6; }
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h. */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 #include <$ac_header>
8066 _ACEOF
8067 if { (ac_try="$ac_cpp conftest.$ac_ext"
8068 case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071 esac
8072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8073 $as_echo "$ac_try_echo") >&5
8074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } >/dev/null && {
8081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 }; then
8084 ac_header_preproc=yes
8085 else
8086 $as_echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8088
8089 ac_header_preproc=no
8090 fi
8091
8092 rm -f conftest.err conftest.$ac_ext
8093 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094 $as_echo "$ac_header_preproc" >&6; }
8095
8096 # So? What about this header?
8097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8098 yes:no: )
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8100 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8103 ac_header_preproc=yes
8104 ;;
8105 no:yes:* )
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8107 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8109 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8111 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8113 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8115 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8117 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8118
8119 ;;
8120 esac
8121 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8122 $as_echo_n "checking for $ac_header... " >&6; }
8123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8124 $as_echo_n "(cached) " >&6
8125 else
8126 eval "$as_ac_Header=\$ac_header_preproc"
8127 fi
8128 ac_res=`eval 'as_val=${'$as_ac_Header'}
8129 $as_echo "$as_val"'`
8130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8131 $as_echo "$ac_res" >&6; }
8132
8133 fi
8134 as_val=`eval 'as_val=${'$as_ac_Header'}
8135 $as_echo "$as_val"'`
8136 if test "x$as_val" = x""yes; then
8137 cat >>confdefs.h <<_ACEOF
8138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8139 _ACEOF
8140
8141 fi
8142
8143 done
8144
8145
8146 for ac_func in getpagesize
8147 do
8148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8149 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8150 $as_echo_n "checking for $ac_func... " >&6; }
8151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8152 $as_echo_n "(cached) " >&6
8153 else
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8162 #define $ac_func innocuous_$ac_func
8163
8164 /* System header to define __stub macros and hopefully few prototypes,
8165 which can conflict with char $ac_func (); below.
8166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8167 <limits.h> exists even on freestanding compilers. */
8168
8169 #ifdef __STDC__
8170 # include <limits.h>
8171 #else
8172 # include <assert.h>
8173 #endif
8174
8175 #undef $ac_func
8176
8177 /* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
8180 #ifdef __cplusplus
8181 extern "C"
8182 #endif
8183 char $ac_func ();
8184 /* The GNU C library defines this for functions which it implements
8185 to always fail with ENOSYS. Some functions are actually named
8186 something starting with __ and the normal name is an alias. */
8187 #if defined __stub_$ac_func || defined __stub___$ac_func
8188 choke me
8189 #endif
8190
8191 int
8192 main ()
8193 {
8194 return $ac_func ();
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8201 case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204 esac
8205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8206 $as_echo "$ac_try_echo") >&5
8207 (eval "$ac_link") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest$ac_exeext && {
8217 test "$cross_compiling" = yes ||
8218 $as_test_x conftest$ac_exeext
8219 }; then
8220 eval "$as_ac_var=yes"
8221 else
8222 $as_echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 eval "$as_ac_var=no"
8226 fi
8227
8228 rm -rf conftest.dSYM
8229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8230 conftest$ac_exeext conftest.$ac_ext
8231 fi
8232 ac_res=`eval 'as_val=${'$as_ac_var'}
8233 $as_echo "$as_val"'`
8234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8235 $as_echo "$ac_res" >&6; }
8236 as_val=`eval 'as_val=${'$as_ac_var'}
8237 $as_echo "$as_val"'`
8238 if test "x$as_val" = x""yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 fi
8244 done
8245
8246 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8247 $as_echo_n "checking for working mmap... " >&6; }
8248 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test "$cross_compiling" = yes; then
8252 ac_cv_func_mmap_fixed_mapped=no
8253 else
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8261 /* malloc might have been renamed as rpl_malloc. */
8262 #undef malloc
8263
8264 /* Thanks to Mike Haertel and Jim Avera for this test.
8265 Here is a matrix of mmap possibilities:
8266 mmap private not fixed
8267 mmap private fixed at somewhere currently unmapped
8268 mmap private fixed at somewhere already mapped
8269 mmap shared not fixed
8270 mmap shared fixed at somewhere currently unmapped
8271 mmap shared fixed at somewhere already mapped
8272 For private mappings, we should verify that changes cannot be read()
8273 back from the file, nor mmap's back from the file at a different
8274 address. (There have been systems where private was not correctly
8275 implemented like the infamous i386 svr4.0, and systems where the
8276 VM page cache was not coherent with the file system buffer cache
8277 like early versions of FreeBSD and possibly contemporary NetBSD.)
8278 For shared mappings, we should conversely verify that changes get
8279 propagated back to all the places they're supposed to be.
8280
8281 Grep wants private fixed already mapped.
8282 The main things grep needs to know about mmap are:
8283 * does it exist and is it safe to write into the mmap'd area
8284 * how to use it (BSD variants) */
8285
8286 #include <fcntl.h>
8287 #include <sys/mman.h>
8288
8289 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8290 char *malloc ();
8291 #endif
8292
8293 /* This mess was copied from the GNU getpagesize.h. */
8294 #ifndef HAVE_GETPAGESIZE
8295 /* Assume that all systems that can run configure have sys/param.h. */
8296 # ifndef HAVE_SYS_PARAM_H
8297 # define HAVE_SYS_PARAM_H 1
8298 # endif
8299
8300 # ifdef _SC_PAGESIZE
8301 # define getpagesize() sysconf(_SC_PAGESIZE)
8302 # else /* no _SC_PAGESIZE */
8303 # ifdef HAVE_SYS_PARAM_H
8304 # include <sys/param.h>
8305 # ifdef EXEC_PAGESIZE
8306 # define getpagesize() EXEC_PAGESIZE
8307 # else /* no EXEC_PAGESIZE */
8308 # ifdef NBPG
8309 # define getpagesize() NBPG * CLSIZE
8310 # ifndef CLSIZE
8311 # define CLSIZE 1
8312 # endif /* no CLSIZE */
8313 # else /* no NBPG */
8314 # ifdef NBPC
8315 # define getpagesize() NBPC
8316 # else /* no NBPC */
8317 # ifdef PAGESIZE
8318 # define getpagesize() PAGESIZE
8319 # endif /* PAGESIZE */
8320 # endif /* no NBPC */
8321 # endif /* no NBPG */
8322 # endif /* no EXEC_PAGESIZE */
8323 # else /* no HAVE_SYS_PARAM_H */
8324 # define getpagesize() 8192 /* punt totally */
8325 # endif /* no HAVE_SYS_PARAM_H */
8326 # endif /* no _SC_PAGESIZE */
8327
8328 #endif /* no HAVE_GETPAGESIZE */
8329
8330 int
8331 main ()
8332 {
8333 char *data, *data2, *data3;
8334 int i, pagesize;
8335 int fd;
8336
8337 pagesize = getpagesize ();
8338
8339 /* First, make a file with some known garbage in it. */
8340 data = (char *) malloc (pagesize);
8341 if (!data)
8342 return 1;
8343 for (i = 0; i < pagesize; ++i)
8344 *(data + i) = rand ();
8345 umask (0);
8346 fd = creat ("conftest.mmap", 0600);
8347 if (fd < 0)
8348 return 1;
8349 if (write (fd, data, pagesize) != pagesize)
8350 return 1;
8351 close (fd);
8352
8353 /* Next, try to mmap the file at a fixed address which already has
8354 something else allocated at it. If we can, also make sure that
8355 we see the same garbage. */
8356 fd = open ("conftest.mmap", O_RDWR);
8357 if (fd < 0)
8358 return 1;
8359 data2 = (char *) malloc (2 * pagesize);
8360 if (!data2)
8361 return 1;
8362 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8363 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8364 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8365 return 1;
8366 for (i = 0; i < pagesize; ++i)
8367 if (*(data + i) != *(data2 + i))
8368 return 1;
8369
8370 /* Finally, make sure that changes to the mapped area do not
8371 percolate back to the file as seen by read(). (This is a bug on
8372 some variants of i386 svr4.0.) */
8373 for (i = 0; i < pagesize; ++i)
8374 *(data2 + i) = *(data2 + i) + 1;
8375 data3 = (char *) malloc (pagesize);
8376 if (!data3)
8377 return 1;
8378 if (read (fd, data3, pagesize) != pagesize)
8379 return 1;
8380 for (i = 0; i < pagesize; ++i)
8381 if (*(data + i) != *(data3 + i))
8382 return 1;
8383 close (fd);
8384 return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest$ac_exeext
8388 if { (ac_try="$ac_link"
8389 case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392 esac
8393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394 $as_echo "$ac_try_echo") >&5
8395 (eval "$ac_link") 2>&5
8396 ac_status=$?
8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402 esac
8403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8404 $as_echo "$ac_try_echo") >&5
8405 (eval "$ac_try") 2>&5
8406 ac_status=$?
8407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_func_mmap_fixed_mapped=yes
8410 else
8411 $as_echo "$as_me: program exited with status $ac_status" >&5
8412 $as_echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ( exit $ac_status )
8416 ac_cv_func_mmap_fixed_mapped=no
8417 fi
8418 rm -rf conftest.dSYM
8419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8420 fi
8421
8422
8423 fi
8424 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8425 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8426 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8427
8428 cat >>confdefs.h <<\_ACEOF
8429 #define HAVE_MMAP 1
8430 _ACEOF
8431
8432 fi
8433 rm -f conftest.mmap
8434
8435 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8436 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8437 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8438 $as_echo_n "(cached) " >&6
8439 else
8440 if test "$cross_compiling" = yes; then
8441 ac_cv_func_stat_empty_string_bug=yes
8442 else
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 int
8451 main ()
8452 {
8453 struct stat sbuf;
8454 return stat ("", &sbuf) == 0;
8455 ;
8456 return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest$ac_exeext
8460 if { (ac_try="$ac_link"
8461 case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466 $as_echo "$ac_try_echo") >&5
8467 (eval "$ac_link") 2>&5
8468 ac_status=$?
8469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8471 { (case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474 esac
8475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476 $as_echo "$ac_try_echo") >&5
8477 (eval "$ac_try") 2>&5
8478 ac_status=$?
8479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_func_stat_empty_string_bug=no
8482 else
8483 $as_echo "$as_me: program exited with status $ac_status" >&5
8484 $as_echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 ( exit $ac_status )
8488 ac_cv_func_stat_empty_string_bug=yes
8489 fi
8490 rm -rf conftest.dSYM
8491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8492 fi
8493
8494
8495 fi
8496 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8497 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8498 if test $ac_cv_func_stat_empty_string_bug = yes; then
8499 case " $LIBOBJS " in
8500 *" stat.$ac_objext "* ) ;;
8501 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8502 ;;
8503 esac
8504
8505
8506 cat >>confdefs.h <<_ACEOF
8507 #define HAVE_STAT_EMPTY_STRING_BUG 1
8508 _ACEOF
8509
8510 fi
8511
8512 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8513 $as_echo_n "checking for working strtod... " >&6; }
8514 if test "${ac_cv_func_strtod+set}" = set; then
8515 $as_echo_n "(cached) " >&6
8516 else
8517 if test "$cross_compiling" = yes; then
8518 ac_cv_func_strtod=no
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526
8527 $ac_includes_default
8528 #ifndef strtod
8529 double strtod ();
8530 #endif
8531 int
8532 main()
8533 {
8534 {
8535 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8536 char *string = " +69";
8537 char *term;
8538 double value;
8539 value = strtod (string, &term);
8540 if (value != 69 || term != (string + 4))
8541 return 1;
8542 }
8543
8544 {
8545 /* Under Solaris 2.4, strtod returns the wrong value for the
8546 terminating character under some conditions. */
8547 char *string = "NaN";
8548 char *term;
8549 strtod (string, &term);
8550 if (term != string && *(term - 1) == 0)
8551 return 1;
8552 }
8553 return 0;
8554 }
8555
8556 _ACEOF
8557 rm -f conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8559 case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564 $as_echo "$ac_try_echo") >&5
8565 (eval "$ac_link") 2>&5
8566 ac_status=$?
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8569 { (case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_try") 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_func_strtod=yes
8580 else
8581 $as_echo "$as_me: program exited with status $ac_status" >&5
8582 $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ( exit $ac_status )
8586 ac_cv_func_strtod=no
8587 fi
8588 rm -rf conftest.dSYM
8589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8590 fi
8591
8592
8593 fi
8594 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8595 $as_echo "$ac_cv_func_strtod" >&6; }
8596 if test $ac_cv_func_strtod = no; then
8597 case " $LIBOBJS " in
8598 *" strtod.$ac_objext "* ) ;;
8599 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8600 ;;
8601 esac
8602
8603 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8604 $as_echo_n "checking for pow... " >&6; }
8605 if test "${ac_cv_func_pow+set}" = set; then
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8616 #define pow innocuous_pow
8617
8618 /* System header to define __stub macros and hopefully few prototypes,
8619 which can conflict with char pow (); below.
8620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8621 <limits.h> exists even on freestanding compilers. */
8622
8623 #ifdef __STDC__
8624 # include <limits.h>
8625 #else
8626 # include <assert.h>
8627 #endif
8628
8629 #undef pow
8630
8631 /* Override any GCC internal prototype to avoid an error.
8632 Use char because int might match the return type of a GCC
8633 builtin and then its argument prototype would still apply. */
8634 #ifdef __cplusplus
8635 extern "C"
8636 #endif
8637 char pow ();
8638 /* The GNU C library defines this for functions which it implements
8639 to always fail with ENOSYS. Some functions are actually named
8640 something starting with __ and the normal name is an alias. */
8641 #if defined __stub_pow || defined __stub___pow
8642 choke me
8643 #endif
8644
8645 int
8646 main ()
8647 {
8648 return pow ();
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (ac_try="$ac_link"
8655 case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658 esac
8659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8660 $as_echo "$ac_try_echo") >&5
8661 (eval "$ac_link") 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && {
8668 test -z "$ac_c_werror_flag" ||
8669 test ! -s conftest.err
8670 } && test -s conftest$ac_exeext && {
8671 test "$cross_compiling" = yes ||
8672 $as_test_x conftest$ac_exeext
8673 }; then
8674 ac_cv_func_pow=yes
8675 else
8676 $as_echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 ac_cv_func_pow=no
8680 fi
8681
8682 rm -rf conftest.dSYM
8683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8684 conftest$ac_exeext conftest.$ac_ext
8685 fi
8686 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8687 $as_echo "$ac_cv_func_pow" >&6; }
8688
8689 if test $ac_cv_func_pow = no; then
8690 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8691 $as_echo_n "checking for pow in -lm... " >&6; }
8692 if test "${ac_cv_lib_m_pow+set}" = set; then
8693 $as_echo_n "(cached) " >&6
8694 else
8695 ac_check_lib_save_LIBS=$LIBS
8696 LIBS="-lm $LIBS"
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703
8704 /* Override any GCC internal prototype to avoid an error.
8705 Use char because int might match the return type of a GCC
8706 builtin and then its argument prototype would still apply. */
8707 #ifdef __cplusplus
8708 extern "C"
8709 #endif
8710 char pow ();
8711 int
8712 main ()
8713 {
8714 return pow ();
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 rm -f conftest.$ac_objext conftest$ac_exeext
8720 if { (ac_try="$ac_link"
8721 case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724 esac
8725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8726 $as_echo "$ac_try_echo") >&5
8727 (eval "$ac_link") 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } && {
8734 test -z "$ac_c_werror_flag" ||
8735 test ! -s conftest.err
8736 } && test -s conftest$ac_exeext && {
8737 test "$cross_compiling" = yes ||
8738 $as_test_x conftest$ac_exeext
8739 }; then
8740 ac_cv_lib_m_pow=yes
8741 else
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_cv_lib_m_pow=no
8746 fi
8747
8748 rm -rf conftest.dSYM
8749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8750 conftest$ac_exeext conftest.$ac_ext
8751 LIBS=$ac_check_lib_save_LIBS
8752 fi
8753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8754 $as_echo "$ac_cv_lib_m_pow" >&6; }
8755 if test "x$ac_cv_lib_m_pow" = x""yes; then
8756 POW_LIB=-lm
8757 else
8758 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8759 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8760 fi
8761
8762 fi
8763
8764 fi
8765
8766
8767 for ac_func in vprintf
8768 do
8769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8771 $as_echo_n "checking for $ac_func... " >&6; }
8772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8773 $as_echo_n "(cached) " >&6
8774 else
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8783 #define $ac_func innocuous_$ac_func
8784
8785 /* System header to define __stub macros and hopefully few prototypes,
8786 which can conflict with char $ac_func (); below.
8787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8788 <limits.h> exists even on freestanding compilers. */
8789
8790 #ifdef __STDC__
8791 # include <limits.h>
8792 #else
8793 # include <assert.h>
8794 #endif
8795
8796 #undef $ac_func
8797
8798 /* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 char $ac_func ();
8805 /* The GNU C library defines this for functions which it implements
8806 to always fail with ENOSYS. Some functions are actually named
8807 something starting with __ and the normal name is an alias. */
8808 #if defined __stub_$ac_func || defined __stub___$ac_func
8809 choke me
8810 #endif
8811
8812 int
8813 main ()
8814 {
8815 return $ac_func ();
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8822 case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8827 $as_echo "$ac_try_echo") >&5
8828 (eval "$ac_link") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest$ac_exeext && {
8838 test "$cross_compiling" = yes ||
8839 $as_test_x conftest$ac_exeext
8840 }; then
8841 eval "$as_ac_var=yes"
8842 else
8843 $as_echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 eval "$as_ac_var=no"
8847 fi
8848
8849 rm -rf conftest.dSYM
8850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8851 conftest$ac_exeext conftest.$ac_ext
8852 fi
8853 ac_res=`eval 'as_val=${'$as_ac_var'}
8854 $as_echo "$as_val"'`
8855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8856 $as_echo "$ac_res" >&6; }
8857 as_val=`eval 'as_val=${'$as_ac_var'}
8858 $as_echo "$as_val"'`
8859 if test "x$as_val" = x""yes; then
8860 cat >>confdefs.h <<_ACEOF
8861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8862 _ACEOF
8863
8864 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8865 $as_echo_n "checking for _doprnt... " >&6; }
8866 if test "${ac_cv_func__doprnt+set}" = set; then
8867 $as_echo_n "(cached) " >&6
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8877 #define _doprnt innocuous__doprnt
8878
8879 /* System header to define __stub macros and hopefully few prototypes,
8880 which can conflict with char _doprnt (); below.
8881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882 <limits.h> exists even on freestanding compilers. */
8883
8884 #ifdef __STDC__
8885 # include <limits.h>
8886 #else
8887 # include <assert.h>
8888 #endif
8889
8890 #undef _doprnt
8891
8892 /* Override any GCC internal prototype to avoid an error.
8893 Use char because int might match the return type of a GCC
8894 builtin and then its argument prototype would still apply. */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 char _doprnt ();
8899 /* The GNU C library defines this for functions which it implements
8900 to always fail with ENOSYS. Some functions are actually named
8901 something starting with __ and the normal name is an alias. */
8902 #if defined __stub__doprnt || defined __stub____doprnt
8903 choke me
8904 #endif
8905
8906 int
8907 main ()
8908 {
8909 return _doprnt ();
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (ac_try="$ac_link"
8916 case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8921 $as_echo "$ac_try_echo") >&5
8922 (eval "$ac_link") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest$ac_exeext && {
8932 test "$cross_compiling" = yes ||
8933 $as_test_x conftest$ac_exeext
8934 }; then
8935 ac_cv_func__doprnt=yes
8936 else
8937 $as_echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8939
8940 ac_cv_func__doprnt=no
8941 fi
8942
8943 rm -rf conftest.dSYM
8944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8945 conftest$ac_exeext conftest.$ac_ext
8946 fi
8947 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8948 $as_echo "$ac_cv_func__doprnt" >&6; }
8949 if test "x$ac_cv_func__doprnt" = x""yes; then
8950
8951 cat >>confdefs.h <<\_ACEOF
8952 #define HAVE_DOPRNT 1
8953 _ACEOF
8954
8955 fi
8956
8957 fi
8958 done
8959
8960
8961
8962 ################################################################################
8963 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8964 $as_echo_n "checking whether to use static linking... " >&6; }
8965 # Check whether --enable-static_link was given.
8966 if test "${enable_static_link+set}" = set; then
8967 enableval=$enable_static_link; STATIC_LINK=$enableval
8968 else
8969 STATIC_LINK=no
8970 fi
8971
8972 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8973 $as_echo "$STATIC_LINK" >&6; }
8974
8975 ################################################################################
8976
8977
8978 ################################################################################
8979 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8980 $as_echo_n "checking file owner... " >&6; }
8981 OWNER="root"
8982
8983
8984 # Check whether --with-user was given.
8985 if test "${with_user+set}" = set; then
8986 withval=$with_user; OWNER="$withval"
8987 fi
8988
8989 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8990 $as_echo "$OWNER" >&6; }
8991
8992 if test x$OWNER != x; then
8993 OWNER="-o $OWNER"
8994 fi
8995
8996 ################################################################################
8997 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8998 $as_echo_n "checking group owner... " >&6; }
8999 GROUP="root"
9000
9001 # Check whether --with-group was given.
9002 if test "${with_group+set}" = set; then
9003 withval=$with_group; GROUP="$withval"
9004 fi
9005
9006 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9007 $as_echo "$GROUP" >&6; }
9008
9009 if test x$GROUP != x; then
9010 GROUP="-g $GROUP"
9011 fi
9012
9013 ################################################################################
9014 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9015 $as_echo_n "checking device node uid... " >&6; }
9016
9017
9018 # Check whether --with-device-uid was given.
9019 if test "${with_device_uid+set}" = set; then
9020 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9021 else
9022 DM_DEVICE_UID="0"
9023 fi
9024
9025 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9026 $as_echo "$DM_DEVICE_UID" >&6; }
9027
9028 ################################################################################
9029 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9030 $as_echo_n "checking device node gid... " >&6; }
9031
9032
9033 # Check whether --with-device-gid was given.
9034 if test "${with_device_gid+set}" = set; then
9035 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9036 else
9037 DM_DEVICE_GID="0"
9038 fi
9039
9040 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9041 $as_echo "$DM_DEVICE_GID" >&6; }
9042
9043 ################################################################################
9044 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9045 $as_echo_n "checking device node mode... " >&6; }
9046
9047
9048 # Check whether --with-device-mode was given.
9049 if test "${with_device_mode+set}" = set; then
9050 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9051 else
9052 DM_DEVICE_MODE="0600"
9053 fi
9054
9055 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9056 $as_echo "$DM_DEVICE_MODE" >&6; }
9057
9058 ################################################################################
9059 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9060 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9061 # Check whether --enable-lvm1_fallback was given.
9062 if test "${enable_lvm1_fallback+set}" = set; then
9063 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9064 else
9065 LVM1_FALLBACK=no
9066 fi
9067
9068 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9069 $as_echo "$LVM1_FALLBACK" >&6; }
9070
9071 if test x$LVM1_FALLBACK = xyes; then
9072
9073 cat >>confdefs.h <<\_ACEOF
9074 #define LVM1_FALLBACK 1
9075 _ACEOF
9076
9077 fi
9078
9079 ################################################################################
9080 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9081 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9082
9083 # Check whether --with-lvm1 was given.
9084 if test "${with_lvm1+set}" = set; then
9085 withval=$with_lvm1; LVM1="$withval"
9086 else
9087 LVM1="internal"
9088 fi
9089
9090 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9091 $as_echo "$LVM1" >&6; }
9092
9093 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9094 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9095 " >&5
9096 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9097 " >&2;}
9098 { (exit 1); exit 1; }; }
9099 fi;
9100
9101 if test x$LVM1 = xinternal; then
9102
9103 cat >>confdefs.h <<\_ACEOF
9104 #define LVM1_INTERNAL 1
9105 _ACEOF
9106
9107 fi
9108
9109 ################################################################################
9110 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9111 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9112
9113 # Check whether --with-pool was given.
9114 if test "${with_pool+set}" = set; then
9115 withval=$with_pool; POOL="$withval"
9116 else
9117 POOL="internal"
9118 fi
9119
9120 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9121 $as_echo "$POOL" >&6; }
9122
9123 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9124 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9125 " >&5
9126 $as_echo "$as_me: error: --with-pool parameter invalid
9127 " >&2;}
9128 { (exit 1); exit 1; }; }
9129 fi;
9130
9131 if test x$POOL = xinternal; then
9132
9133 cat >>confdefs.h <<\_ACEOF
9134 #define POOL_INTERNAL 1
9135 _ACEOF
9136
9137 fi
9138
9139 ################################################################################
9140 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9141 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9142
9143 # Check whether --with-cluster was given.
9144 if test "${with_cluster+set}" = set; then
9145 withval=$with_cluster; CLUSTER="$withval"
9146 fi
9147
9148 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9149 $as_echo "$CLUSTER" >&6; }
9150
9151 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9152 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9153 " >&5
9154 $as_echo "$as_me: error: --with-cluster parameter invalid
9155 " >&2;}
9156 { (exit 1); exit 1; }; }
9157 fi;
9158
9159 if test x$CLUSTER = xinternal; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define CLUSTER_LOCKING_INTERNAL 1
9163 _ACEOF
9164
9165 fi
9166
9167 ################################################################################
9168 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9169 $as_echo_n "checking whether to include snapshots... " >&6; }
9170
9171 # Check whether --with-snapshots was given.
9172 if test "${with_snapshots+set}" = set; then
9173 withval=$with_snapshots; SNAPSHOTS="$withval"
9174 else
9175 SNAPSHOTS="internal"
9176 fi
9177
9178 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9179 $as_echo "$SNAPSHOTS" >&6; }
9180
9181 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9182 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9183 " >&5
9184 $as_echo "$as_me: error: --with-snapshots parameter invalid
9185 " >&2;}
9186 { (exit 1); exit 1; }; }
9187 fi;
9188
9189 if test x$SNAPSHOTS = xinternal; then
9190
9191 cat >>confdefs.h <<\_ACEOF
9192 #define SNAPSHOT_INTERNAL 1
9193 _ACEOF
9194
9195 fi
9196
9197 ################################################################################
9198 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9199 $as_echo_n "checking whether to include mirrors... " >&6; }
9200
9201 # Check whether --with-mirrors was given.
9202 if test "${with_mirrors+set}" = set; then
9203 withval=$with_mirrors; MIRRORS="$withval"
9204 else
9205 MIRRORS="internal"
9206 fi
9207
9208 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9209 $as_echo "$MIRRORS" >&6; }
9210
9211 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9212 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9213 " >&5
9214 $as_echo "$as_me: error: --with-mirrors parameter invalid
9215 " >&2;}
9216 { (exit 1); exit 1; }; }
9217 fi;
9218
9219 if test x$MIRRORS = xinternal; then
9220
9221 cat >>confdefs.h <<\_ACEOF
9222 #define MIRRORED_INTERNAL 1
9223 _ACEOF
9224
9225 fi
9226
9227 ################################################################################
9228 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9229 $as_echo_n "checking whether to enable readline... " >&6; }
9230 # Check whether --enable-readline was given.
9231 if test "${enable_readline+set}" = set; then
9232 enableval=$enable_readline; READLINE=$enableval
9233 else
9234 READLINE=maybe
9235 fi
9236
9237 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9238 $as_echo "$READLINE" >&6; }
9239
9240 ################################################################################
9241 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9242 $as_echo_n "checking whether to enable realtime support... " >&6; }
9243 # Check whether --enable-realtime was given.
9244 if test "${enable_realtime+set}" = set; then
9245 enableval=$enable_realtime; REALTIME=$enableval
9246 fi
9247
9248 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9249 $as_echo "$REALTIME" >&6; }
9250
9251 ################################################################################
9252 pkg_config_init() {
9253
9254
9255 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9256 if test -n "$ac_tool_prefix"; then
9257 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9258 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9262 $as_echo_n "(cached) " >&6
9263 else
9264 case $PKG_CONFIG in
9265 [\\/]* | ?:[\\/]*)
9266 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9267 ;;
9268 *)
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272 IFS=$as_save_IFS
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9276 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 break 2
9279 fi
9280 done
9281 done
9282 IFS=$as_save_IFS
9283
9284 ;;
9285 esac
9286 fi
9287 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9288 if test -n "$PKG_CONFIG"; then
9289 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9290 $as_echo "$PKG_CONFIG" >&6; }
9291 else
9292 { $as_echo "$as_me:$LINENO: result: no" >&5
9293 $as_echo "no" >&6; }
9294 fi
9295
9296
9297 fi
9298 if test -z "$ac_cv_path_PKG_CONFIG"; then
9299 ac_pt_PKG_CONFIG=$PKG_CONFIG
9300 # Extract the first word of "pkg-config", so it can be a program name with args.
9301 set dummy pkg-config; ac_word=$2
9302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9305 $as_echo_n "(cached) " >&6
9306 else
9307 case $ac_pt_PKG_CONFIG in
9308 [\\/]* | ?:[\\/]*)
9309 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9310 ;;
9311 *)
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 for as_dir in $PATH
9314 do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9319 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9322 fi
9323 done
9324 done
9325 IFS=$as_save_IFS
9326
9327 ;;
9328 esac
9329 fi
9330 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9331 if test -n "$ac_pt_PKG_CONFIG"; then
9332 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9333 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9334 else
9335 { $as_echo "$as_me:$LINENO: result: no" >&5
9336 $as_echo "no" >&6; }
9337 fi
9338
9339 if test "x$ac_pt_PKG_CONFIG" = x; then
9340 PKG_CONFIG=""
9341 else
9342 case $cross_compiling:$ac_tool_warned in
9343 yes:)
9344 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9346 ac_tool_warned=yes ;;
9347 esac
9348 PKG_CONFIG=$ac_pt_PKG_CONFIG
9349 fi
9350 else
9351 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9352 fi
9353
9354 fi
9355 if test -n "$PKG_CONFIG"; then
9356 _pkg_min_version=0.9.0
9357 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9358 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9359 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9360 { $as_echo "$as_me:$LINENO: result: yes" >&5
9361 $as_echo "yes" >&6; }
9362 else
9363 { $as_echo "$as_me:$LINENO: result: no" >&5
9364 $as_echo "no" >&6; }
9365 PKG_CONFIG=""
9366 fi
9367
9368 fi
9369
9370 pkg_failed=no
9371 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9372 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9373
9374 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9375 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9376 elif test -n "$PKG_CONFIG"; then
9377 if test -n "$PKG_CONFIG" && \
9378 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9379 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9380 ac_status=$?
9381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; then
9383 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9384 else
9385 pkg_failed=yes
9386 fi
9387 else
9388 pkg_failed=untried
9389 fi
9390 if test -n "$PKGCONFIGINIT_LIBS"; then
9391 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9392 elif test -n "$PKG_CONFIG"; then
9393 if test -n "$PKG_CONFIG" && \
9394 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9395 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9396 ac_status=$?
9397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; then
9399 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9400 else
9401 pkg_failed=yes
9402 fi
9403 else
9404 pkg_failed=untried
9405 fi
9406
9407
9408
9409 if test $pkg_failed = yes; then
9410
9411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9412 _pkg_short_errors_supported=yes
9413 else
9414 _pkg_short_errors_supported=no
9415 fi
9416 if test $_pkg_short_errors_supported = yes; then
9417 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9418 else
9419 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9420 fi
9421 # Put the nasty error message in config.log where it belongs
9422 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9423
9424 { $as_echo "$as_me:$LINENO: result: no" >&5
9425 $as_echo "no" >&6; }
9426 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9427 $as_echo "pkg-config initialized" >&6; }
9428 elif test $pkg_failed = untried; then
9429 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9430 $as_echo "pkg-config initialized" >&6; }
9431 else
9432 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9433 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9434 { $as_echo "$as_me:$LINENO: result: yes" >&5
9435 $as_echo "yes" >&6; }
9436 :
9437 fi
9438 PKGCONFIG_INIT=1
9439 }
9440
9441 ################################################################################
9442 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9443 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9444
9445 # Check whether --with-clvmd was given.
9446 if test "${with_clvmd+set}" = set; then
9447 withval=$with_clvmd; CLVMD="$withval"
9448 else
9449 CLVMD="none"
9450 fi
9451
9452 if test x$CLVMD = xyes; then
9453 CLVMD=all
9454 fi
9455 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9456 $as_echo "$CLVMD" >&6; }
9457
9458 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9459 CLUSTER=internal
9460 fi
9461
9462 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9463 pkg_config_init
9464 fi
9465
9466
9467 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9468 BUILDGULM=yes
9469 fi
9470 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9471 BUILDCOROSYNC=yes
9472 fi
9473 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9474 BUILDOPENAIS=yes
9475 fi
9476 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9477 BUILDCMAN=yes
9478 fi
9479
9480 if test x$BUILDGULM = xyes; then
9481 if test x$BUILDCOROSYNC = xyes || \
9482 test x$BUILDOPENAIS = xyes; then
9483 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9484 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9485 { (exit 1); exit 1; }; }
9486 fi
9487 fi
9488
9489 soft_bailout() {
9490 NOTFOUND=1
9491 }
9492
9493 hard_bailout() {
9494 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9495 $as_echo "$as_me: error: bailing out" >&2;}
9496 { (exit 1); exit 1; }; }
9497 }
9498
9499 if test x$CLVMD = xall; then
9500 bailout=soft_bailout
9501 BUILDGULM=yes
9502 BUILDCMAN=yes
9503 BUILDCOROSYNC=yes
9504 BUILDOPENAIS=yes
9505 else
9506 bailout=hard_bailout
9507 fi
9508
9509 check_lib_no_libs() {
9510 lib_no_libs_arg1=$1
9511 shift
9512 lib_no_libs_arg2=$1
9513 shift
9514 lib_no_libs_args=$@
9515
9516 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9517 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9518 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9519 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9520 $as_echo_n "(cached) " >&6
9521 else
9522 ac_check_lib_save_LIBS=$LIBS
9523 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530
9531 /* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 char $lib_no_libs_arg2 ();
9538 int
9539 main ()
9540 {
9541 return $lib_no_libs_arg2 ();
9542 ;
9543 return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9548 case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9553 $as_echo "$ac_try_echo") >&5
9554 (eval "$ac_link") 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } && {
9561 test -z "$ac_c_werror_flag" ||
9562 test ! -s conftest.err
9563 } && test -s conftest$ac_exeext && {
9564 test "$cross_compiling" = yes ||
9565 $as_test_x conftest$ac_exeext
9566 }; then
9567 eval "$as_ac_Lib=yes"
9568 else
9569 $as_echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 eval "$as_ac_Lib=no"
9573 fi
9574
9575 rm -rf conftest.dSYM
9576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9577 conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_lib_save_LIBS
9579 fi
9580 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9581 $as_echo "$as_val"'`
9582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9583 $as_echo "$ac_res" >&6; }
9584 as_val=`eval 'as_val=${'$as_ac_Lib'}
9585 $as_echo "$as_val"'`
9586 if test "x$as_val" = x""yes; then
9587 cat >>confdefs.h <<_ACEOF
9588 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9589 _ACEOF
9590
9591 LIBS="-l$lib_no_libs_arg1 $LIBS"
9592
9593 else
9594 $bailout
9595 fi
9596
9597 LIBS=$ac_check_lib_save_LIBS
9598 }
9599
9600 if test x$BUILDGULM = xyes; then
9601
9602 pkg_failed=no
9603 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9604 $as_echo_n "checking for CCS... " >&6; }
9605
9606 if test -n "$CCS_CFLAGS"; then
9607 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9608 elif test -n "$PKG_CONFIG"; then
9609 if test -n "$PKG_CONFIG" && \
9610 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9611 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9612 ac_status=$?
9613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; then
9615 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9616 else
9617 pkg_failed=yes
9618 fi
9619 else
9620 pkg_failed=untried
9621 fi
9622 if test -n "$CCS_LIBS"; then
9623 pkg_cv_CCS_LIBS="$CCS_LIBS"
9624 elif test -n "$PKG_CONFIG"; then
9625 if test -n "$PKG_CONFIG" && \
9626 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9627 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9628 ac_status=$?
9629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; then
9631 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9632 else
9633 pkg_failed=yes
9634 fi
9635 else
9636 pkg_failed=untried
9637 fi
9638
9639
9640
9641 if test $pkg_failed = yes; then
9642
9643 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9644 _pkg_short_errors_supported=yes
9645 else
9646 _pkg_short_errors_supported=no
9647 fi
9648 if test $_pkg_short_errors_supported = yes; then
9649 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9650 else
9651 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9652 fi
9653 # Put the nasty error message in config.log where it belongs
9654 echo "$CCS_PKG_ERRORS" >&5
9655
9656 { $as_echo "$as_me:$LINENO: result: no" >&5
9657 $as_echo "no" >&6; }
9658 NOTFOUND=0
9659
9660 for ac_header in ccs.h
9661 do
9662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9665 $as_echo_n "checking for $ac_header... " >&6; }
9666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9667 $as_echo_n "(cached) " >&6
9668 fi
9669 ac_res=`eval 'as_val=${'$as_ac_Header'}
9670 $as_echo "$as_val"'`
9671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9672 $as_echo "$ac_res" >&6; }
9673 else
9674 # Is the header compilable?
9675 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9676 $as_echo_n "checking $ac_header usability... " >&6; }
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683 $ac_includes_default
9684 #include <$ac_header>
9685 _ACEOF
9686 rm -f conftest.$ac_objext
9687 if { (ac_try="$ac_compile"
9688 case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691 esac
9692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9693 $as_echo "$ac_try_echo") >&5
9694 (eval "$ac_compile") 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest.$ac_objext; then
9704 ac_header_compiler=yes
9705 else
9706 $as_echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ac_header_compiler=no
9710 fi
9711
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9714 $as_echo "$ac_header_compiler" >&6; }
9715
9716 # Is the header present?
9717 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9718 $as_echo_n "checking $ac_header presence... " >&6; }
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h. */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 #include <$ac_header>
9726 _ACEOF
9727 if { (ac_try="$ac_cpp conftest.$ac_ext"
9728 case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731 esac
9732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9733 $as_echo "$ac_try_echo") >&5
9734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } >/dev/null && {
9741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 }; then
9744 ac_header_preproc=yes
9745 else
9746 $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 ac_header_preproc=no
9750 fi
9751
9752 rm -f conftest.err conftest.$ac_ext
9753 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9754 $as_echo "$ac_header_preproc" >&6; }
9755
9756 # So? What about this header?
9757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9758 yes:no: )
9759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9760 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9762 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9763 ac_header_preproc=yes
9764 ;;
9765 no:yes:* )
9766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9767 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9769 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9771 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9773 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9777 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9778
9779 ;;
9780 esac
9781 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9782 $as_echo_n "checking for $ac_header... " >&6; }
9783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9784 $as_echo_n "(cached) " >&6
9785 else
9786 eval "$as_ac_Header=\$ac_header_preproc"
9787 fi
9788 ac_res=`eval 'as_val=${'$as_ac_Header'}
9789 $as_echo "$as_val"'`
9790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9791 $as_echo "$ac_res" >&6; }
9792
9793 fi
9794 as_val=`eval 'as_val=${'$as_ac_Header'}
9795 $as_echo "$as_val"'`
9796 if test "x$as_val" = x""yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9799 _ACEOF
9800
9801 else
9802 $bailout
9803 fi
9804
9805 done
9806
9807 check_lib_no_libs ccs ccs_connect
9808 if test $NOTFOUND = 0; then
9809 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9810 $as_echo "no pkg for libccs, using -lccs" >&6; }
9811 CCS_LIBS="-lccs"
9812 HAVE_CCS=yes
9813 fi
9814 elif test $pkg_failed = untried; then
9815 NOTFOUND=0
9816
9817 for ac_header in ccs.h
9818 do
9819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9822 $as_echo_n "checking for $ac_header... " >&6; }
9823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9824 $as_echo_n "(cached) " >&6
9825 fi
9826 ac_res=`eval 'as_val=${'$as_ac_Header'}
9827 $as_echo "$as_val"'`
9828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9829 $as_echo "$ac_res" >&6; }
9830 else
9831 # Is the header compilable?
9832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9833 $as_echo_n "checking $ac_header usability... " >&6; }
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9841 #include <$ac_header>
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (ac_try="$ac_compile"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9850 $as_echo "$ac_try_echo") >&5
9851 (eval "$ac_compile") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.$ac_objext; then
9861 ac_header_compiler=yes
9862 else
9863 $as_echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_header_compiler=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9871 $as_echo "$ac_header_compiler" >&6; }
9872
9873 # Is the header present?
9874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9875 $as_echo_n "checking $ac_header presence... " >&6; }
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h. */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 #include <$ac_header>
9883 _ACEOF
9884 if { (ac_try="$ac_cpp conftest.$ac_ext"
9885 case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888 esac
9889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9890 $as_echo "$ac_try_echo") >&5
9891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } >/dev/null && {
9898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 }; then
9901 ac_header_preproc=yes
9902 else
9903 $as_echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906 ac_header_preproc=no
9907 fi
9908
9909 rm -f conftest.err conftest.$ac_ext
9910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9911 $as_echo "$ac_header_preproc" >&6; }
9912
9913 # So? What about this header?
9914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9915 yes:no: )
9916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9920 ac_header_preproc=yes
9921 ;;
9922 no:yes:* )
9923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9926 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9930 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9935
9936 ;;
9937 esac
9938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9939 $as_echo_n "checking for $ac_header... " >&6; }
9940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9941 $as_echo_n "(cached) " >&6
9942 else
9943 eval "$as_ac_Header=\$ac_header_preproc"
9944 fi
9945 ac_res=`eval 'as_val=${'$as_ac_Header'}
9946 $as_echo "$as_val"'`
9947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9948 $as_echo "$ac_res" >&6; }
9949
9950 fi
9951 as_val=`eval 'as_val=${'$as_ac_Header'}
9952 $as_echo "$as_val"'`
9953 if test "x$as_val" = x""yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9956 _ACEOF
9957
9958 else
9959 $bailout
9960 fi
9961
9962 done
9963
9964 check_lib_no_libs ccs ccs_connect
9965 if test $NOTFOUND = 0; then
9966 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9967 $as_echo "no pkg for libccs, using -lccs" >&6; }
9968 CCS_LIBS="-lccs"
9969 HAVE_CCS=yes
9970 fi
9971 else
9972 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
9973 CCS_LIBS=$pkg_cv_CCS_LIBS
9974 { $as_echo "$as_me:$LINENO: result: yes" >&5
9975 $as_echo "yes" >&6; }
9976 HAVE_CCS=yes
9977 fi
9978
9979 pkg_failed=no
9980 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
9981 $as_echo_n "checking for GULM... " >&6; }
9982
9983 if test -n "$GULM_CFLAGS"; then
9984 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
9985 elif test -n "$PKG_CONFIG"; then
9986 if test -n "$PKG_CONFIG" && \
9987 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9988 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9989 ac_status=$?
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; then
9992 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
9993 else
9994 pkg_failed=yes
9995 fi
9996 else
9997 pkg_failed=untried
9998 fi
9999 if test -n "$GULM_LIBS"; then
10000 pkg_cv_GULM_LIBS="$GULM_LIBS"
10001 elif test -n "$PKG_CONFIG"; then
10002 if test -n "$PKG_CONFIG" && \
10003 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10004 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10005 ac_status=$?
10006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; then
10008 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10009 else
10010 pkg_failed=yes
10011 fi
10012 else
10013 pkg_failed=untried
10014 fi
10015
10016
10017
10018 if test $pkg_failed = yes; then
10019
10020 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10021 _pkg_short_errors_supported=yes
10022 else
10023 _pkg_short_errors_supported=no
10024 fi
10025 if test $_pkg_short_errors_supported = yes; then
10026 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10027 else
10028 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10029 fi
10030 # Put the nasty error message in config.log where it belongs
10031 echo "$GULM_PKG_ERRORS" >&5
10032
10033 { $as_echo "$as_me:$LINENO: result: no" >&5
10034 $as_echo "no" >&6; }
10035 NOTFOUND=0
10036
10037 for ac_header in libgulm.h
10038 do
10039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10042 $as_echo_n "checking for $ac_header... " >&6; }
10043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044 $as_echo_n "(cached) " >&6
10045 fi
10046 ac_res=`eval 'as_val=${'$as_ac_Header'}
10047 $as_echo "$as_val"'`
10048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10049 $as_echo "$ac_res" >&6; }
10050 else
10051 # Is the header compilable?
10052 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10053 $as_echo_n "checking $ac_header usability... " >&6; }
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h. */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10061 #include <$ac_header>
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070 $as_echo "$ac_try_echo") >&5
10071 (eval "$ac_compile") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest.$ac_objext; then
10081 ac_header_compiler=yes
10082 else
10083 $as_echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_header_compiler=no
10087 fi
10088
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10091 $as_echo "$ac_header_compiler" >&6; }
10092
10093 # Is the header present?
10094 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10095 $as_echo_n "checking $ac_header presence... " >&6; }
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 #include <$ac_header>
10103 _ACEOF
10104 if { (ac_try="$ac_cpp conftest.$ac_ext"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10110 $as_echo "$ac_try_echo") >&5
10111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } >/dev/null && {
10118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 }; then
10121 ac_header_preproc=yes
10122 else
10123 $as_echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126 ac_header_preproc=no
10127 fi
10128
10129 rm -f conftest.err conftest.$ac_ext
10130 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10131 $as_echo "$ac_header_preproc" >&6; }
10132
10133 # So? What about this header?
10134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10135 yes:no: )
10136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10137 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10140 ac_header_preproc=yes
10141 ;;
10142 no:yes:* )
10143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10144 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10146 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10148 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10150 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10154 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10155
10156 ;;
10157 esac
10158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10159 $as_echo_n "checking for $ac_header... " >&6; }
10160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10161 $as_echo_n "(cached) " >&6
10162 else
10163 eval "$as_ac_Header=\$ac_header_preproc"
10164 fi
10165 ac_res=`eval 'as_val=${'$as_ac_Header'}
10166 $as_echo "$as_val"'`
10167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10168 $as_echo "$ac_res" >&6; }
10169
10170 fi
10171 as_val=`eval 'as_val=${'$as_ac_Header'}
10172 $as_echo "$as_val"'`
10173 if test "x$as_val" = x""yes; then
10174 cat >>confdefs.h <<_ACEOF
10175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10176 _ACEOF
10177
10178 else
10179 $bailout
10180 fi
10181
10182 done
10183
10184 check_lib_no_libs gulm lg_core_login
10185 if test $NOTFOUND = 0; then
10186 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10187 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10188 GULM_LIBS="-lgulm"
10189 HAVE_GULM=yes
10190 fi
10191 elif test $pkg_failed = untried; then
10192 NOTFOUND=0
10193
10194 for ac_header in libgulm.h
10195 do
10196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10199 $as_echo_n "checking for $ac_header... " >&6; }
10200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10201 $as_echo_n "(cached) " >&6
10202 fi
10203 ac_res=`eval 'as_val=${'$as_ac_Header'}
10204 $as_echo "$as_val"'`
10205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10206 $as_echo "$ac_res" >&6; }
10207 else
10208 # Is the header compilable?
10209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10210 $as_echo_n "checking $ac_header usability... " >&6; }
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 $ac_includes_default
10218 #include <$ac_header>
10219 _ACEOF
10220 rm -f conftest.$ac_objext
10221 if { (ac_try="$ac_compile"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225 esac
10226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10227 $as_echo "$ac_try_echo") >&5
10228 (eval "$ac_compile") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest.$ac_objext; then
10238 ac_header_compiler=yes
10239 else
10240 $as_echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 ac_header_compiler=no
10244 fi
10245
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10248 $as_echo "$ac_header_compiler" >&6; }
10249
10250 # Is the header present?
10251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10252 $as_echo_n "checking $ac_header presence... " >&6; }
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 #include <$ac_header>
10260 _ACEOF
10261 if { (ac_try="$ac_cpp conftest.$ac_ext"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10267 $as_echo "$ac_try_echo") >&5
10268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } >/dev/null && {
10275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 }; then
10278 ac_header_preproc=yes
10279 else
10280 $as_echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 ac_header_preproc=no
10284 fi
10285
10286 rm -f conftest.err conftest.$ac_ext
10287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10288 $as_echo "$ac_header_preproc" >&6; }
10289
10290 # So? What about this header?
10291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10292 yes:no: )
10293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10297 ac_header_preproc=yes
10298 ;;
10299 no:yes:* )
10300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10303 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10307 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10312
10313 ;;
10314 esac
10315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 $as_echo_n "checking for $ac_header... " >&6; }
10317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10318 $as_echo_n "(cached) " >&6
10319 else
10320 eval "$as_ac_Header=\$ac_header_preproc"
10321 fi
10322 ac_res=`eval 'as_val=${'$as_ac_Header'}
10323 $as_echo "$as_val"'`
10324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10325 $as_echo "$ac_res" >&6; }
10326
10327 fi
10328 as_val=`eval 'as_val=${'$as_ac_Header'}
10329 $as_echo "$as_val"'`
10330 if test "x$as_val" = x""yes; then
10331 cat >>confdefs.h <<_ACEOF
10332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10333 _ACEOF
10334
10335 else
10336 $bailout
10337 fi
10338
10339 done
10340
10341 check_lib_no_libs gulm lg_core_login
10342 if test $NOTFOUND = 0; then
10343 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10344 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10345 GULM_LIBS="-lgulm"
10346 HAVE_GULM=yes
10347 fi
10348 else
10349 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10350 GULM_LIBS=$pkg_cv_GULM_LIBS
10351 { $as_echo "$as_me:$LINENO: result: yes" >&5
10352 $as_echo "yes" >&6; }
10353 HAVE_GULM=yes
10354 fi
10355 fi
10356
10357 if test x$BUILDCMAN = xyes; then
10358
10359 pkg_failed=no
10360 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10361 $as_echo_n "checking for CMAN... " >&6; }
10362
10363 if test -n "$CMAN_CFLAGS"; then
10364 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10365 elif test -n "$PKG_CONFIG"; then
10366 if test -n "$PKG_CONFIG" && \
10367 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10368 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10369 ac_status=$?
10370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; then
10372 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10373 else
10374 pkg_failed=yes
10375 fi
10376 else
10377 pkg_failed=untried
10378 fi
10379 if test -n "$CMAN_LIBS"; then
10380 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10381 elif test -n "$PKG_CONFIG"; then
10382 if test -n "$PKG_CONFIG" && \
10383 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10384 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10385 ac_status=$?
10386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; then
10388 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10389 else
10390 pkg_failed=yes
10391 fi
10392 else
10393 pkg_failed=untried
10394 fi
10395
10396
10397
10398 if test $pkg_failed = yes; then
10399
10400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10401 _pkg_short_errors_supported=yes
10402 else
10403 _pkg_short_errors_supported=no
10404 fi
10405 if test $_pkg_short_errors_supported = yes; then
10406 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10407 else
10408 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10409 fi
10410 # Put the nasty error message in config.log where it belongs
10411 echo "$CMAN_PKG_ERRORS" >&5
10412
10413 { $as_echo "$as_me:$LINENO: result: no" >&5
10414 $as_echo "no" >&6; }
10415 NOTFOUND=0
10416
10417 for ac_header in libcman.h
10418 do
10419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10422 $as_echo_n "checking for $ac_header... " >&6; }
10423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10424 $as_echo_n "(cached) " >&6
10425 fi
10426 ac_res=`eval 'as_val=${'$as_ac_Header'}
10427 $as_echo "$as_val"'`
10428 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10429 $as_echo "$ac_res" >&6; }
10430 else
10431 # Is the header compilable?
10432 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10433 $as_echo_n "checking $ac_header usability... " >&6; }
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 $ac_includes_default
10441 #include <$ac_header>
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (ac_try="$ac_compile"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451 (eval "$ac_compile") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest.$ac_objext; then
10461 ac_header_compiler=yes
10462 else
10463 $as_echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 ac_header_compiler=no
10467 fi
10468
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10471 $as_echo "$ac_header_compiler" >&6; }
10472
10473 # Is the header present?
10474 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10475 $as_echo_n "checking $ac_header presence... " >&6; }
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 #include <$ac_header>
10483 _ACEOF
10484 if { (ac_try="$ac_cpp conftest.$ac_ext"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488 esac
10489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10490 $as_echo "$ac_try_echo") >&5
10491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } >/dev/null && {
10498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 }; then
10501 ac_header_preproc=yes
10502 else
10503 $as_echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10505
10506 ac_header_preproc=no
10507 fi
10508
10509 rm -f conftest.err conftest.$ac_ext
10510 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10511 $as_echo "$ac_header_preproc" >&6; }
10512
10513 # So? What about this header?
10514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10515 yes:no: )
10516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10517 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10519 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10520 ac_header_preproc=yes
10521 ;;
10522 no:yes:* )
10523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10524 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10526 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10528 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10530 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10532 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10534 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10535
10536 ;;
10537 esac
10538 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10539 $as_echo_n "checking for $ac_header... " >&6; }
10540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541 $as_echo_n "(cached) " >&6
10542 else
10543 eval "$as_ac_Header=\$ac_header_preproc"
10544 fi
10545 ac_res=`eval 'as_val=${'$as_ac_Header'}
10546 $as_echo "$as_val"'`
10547 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10548 $as_echo "$ac_res" >&6; }
10549
10550 fi
10551 as_val=`eval 'as_val=${'$as_ac_Header'}
10552 $as_echo "$as_val"'`
10553 if test "x$as_val" = x""yes; then
10554 cat >>confdefs.h <<_ACEOF
10555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 _ACEOF
10557
10558 else
10559 $bailout
10560 fi
10561
10562 done
10563
10564 check_lib_no_libs cman cman_init
10565 if test $NOTFOUND = 0; then
10566 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10567 $as_echo "no pkg for libcman, using -lcman" >&6; }
10568 CMAN_LIBS="-lcman"
10569 HAVE_CMAN=yes
10570 fi
10571 elif test $pkg_failed = untried; then
10572 NOTFOUND=0
10573
10574 for ac_header in libcman.h
10575 do
10576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10579 $as_echo_n "checking for $ac_header... " >&6; }
10580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10581 $as_echo_n "(cached) " >&6
10582 fi
10583 ac_res=`eval 'as_val=${'$as_ac_Header'}
10584 $as_echo "$as_val"'`
10585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10586 $as_echo "$ac_res" >&6; }
10587 else
10588 # Is the header compilable?
10589 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10590 $as_echo_n "checking $ac_header usability... " >&6; }
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 #include <$ac_header>
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607 $as_echo "$ac_try_echo") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest.$ac_objext; then
10618 ac_header_compiler=yes
10619 else
10620 $as_echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_header_compiler=no
10624 fi
10625
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10628 $as_echo "$ac_header_compiler" >&6; }
10629
10630 # Is the header present?
10631 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10632 $as_echo_n "checking $ac_header presence... " >&6; }
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <$ac_header>
10640 _ACEOF
10641 if { (ac_try="$ac_cpp conftest.$ac_ext"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645 esac
10646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10647 $as_echo "$ac_try_echo") >&5
10648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } >/dev/null && {
10655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 }; then
10658 ac_header_preproc=yes
10659 else
10660 $as_echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_header_preproc=no
10664 fi
10665
10666 rm -f conftest.err conftest.$ac_ext
10667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10668 $as_echo "$ac_header_preproc" >&6; }
10669
10670 # So? What about this header?
10671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10672 yes:no: )
10673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10674 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10676 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10677 ac_header_preproc=yes
10678 ;;
10679 no:yes:* )
10680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10681 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10683 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10691 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10692
10693 ;;
10694 esac
10695 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 $as_echo_n "checking for $ac_header... " >&6; }
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 $as_echo_n "(cached) " >&6
10699 else
10700 eval "$as_ac_Header=\$ac_header_preproc"
10701 fi
10702 ac_res=`eval 'as_val=${'$as_ac_Header'}
10703 $as_echo "$as_val"'`
10704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10705 $as_echo "$ac_res" >&6; }
10706
10707 fi
10708 as_val=`eval 'as_val=${'$as_ac_Header'}
10709 $as_echo "$as_val"'`
10710 if test "x$as_val" = x""yes; then
10711 cat >>confdefs.h <<_ACEOF
10712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10713 _ACEOF
10714
10715 else
10716 $bailout
10717 fi
10718
10719 done
10720
10721 check_lib_no_libs cman cman_init
10722 if test $NOTFOUND = 0; then
10723 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10724 $as_echo "no pkg for libcman, using -lcman" >&6; }
10725 CMAN_LIBS="-lcman"
10726 HAVE_CMAN=yes
10727 fi
10728 else
10729 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10730 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10731 { $as_echo "$as_me:$LINENO: result: yes" >&5
10732 $as_echo "yes" >&6; }
10733 HAVE_CMAN=yes
10734 fi
10735 CHECKCONFDB=yes
10736 CHECKDLM=yes
10737 fi
10738
10739 if test x$BUILDCOROSYNC = xyes || \
10740 test x$BUILDOPENAIS = xyes; then
10741
10742 pkg_failed=no
10743 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10744 $as_echo_n "checking for COROSYNC... " >&6; }
10745
10746 if test -n "$COROSYNC_CFLAGS"; then
10747 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10748 elif test -n "$PKG_CONFIG"; then
10749 if test -n "$PKG_CONFIG" && \
10750 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10751 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10752 ac_status=$?
10753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; then
10755 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10756 else
10757 pkg_failed=yes
10758 fi
10759 else
10760 pkg_failed=untried
10761 fi
10762 if test -n "$COROSYNC_LIBS"; then
10763 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10764 elif test -n "$PKG_CONFIG"; then
10765 if test -n "$PKG_CONFIG" && \
10766 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10767 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10768 ac_status=$?
10769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; then
10771 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10772 else
10773 pkg_failed=yes
10774 fi
10775 else
10776 pkg_failed=untried
10777 fi
10778
10779
10780
10781 if test $pkg_failed = yes; then
10782
10783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10784 _pkg_short_errors_supported=yes
10785 else
10786 _pkg_short_errors_supported=no
10787 fi
10788 if test $_pkg_short_errors_supported = yes; then
10789 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10790 else
10791 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10792 fi
10793 # Put the nasty error message in config.log where it belongs
10794 echo "$COROSYNC_PKG_ERRORS" >&5
10795
10796 { $as_echo "$as_me:$LINENO: result: no" >&5
10797 $as_echo "no" >&6; }
10798 $bailout
10799 elif test $pkg_failed = untried; then
10800 $bailout
10801 else
10802 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10803 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10804 { $as_echo "$as_me:$LINENO: result: yes" >&5
10805 $as_echo "yes" >&6; }
10806 HAVE_COROSYNC=yes
10807 fi
10808 CHECKCONFDB=yes
10809 fi
10810
10811 if test x$BUILDCOROSYNC = xyes; then
10812
10813 pkg_failed=no
10814 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10815 $as_echo_n "checking for QUORUM... " >&6; }
10816
10817 if test -n "$QUORUM_CFLAGS"; then
10818 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10819 elif test -n "$PKG_CONFIG"; then
10820 if test -n "$PKG_CONFIG" && \
10821 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10822 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10823 ac_status=$?
10824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; then
10826 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10827 else
10828 pkg_failed=yes
10829 fi
10830 else
10831 pkg_failed=untried
10832 fi
10833 if test -n "$QUORUM_LIBS"; then
10834 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10835 elif test -n "$PKG_CONFIG"; then
10836 if test -n "$PKG_CONFIG" && \
10837 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10838 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10839 ac_status=$?
10840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; then
10842 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10843 else
10844 pkg_failed=yes
10845 fi
10846 else
10847 pkg_failed=untried
10848 fi
10849
10850
10851
10852 if test $pkg_failed = yes; then
10853
10854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10855 _pkg_short_errors_supported=yes
10856 else
10857 _pkg_short_errors_supported=no
10858 fi
10859 if test $_pkg_short_errors_supported = yes; then
10860 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10861 else
10862 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10863 fi
10864 # Put the nasty error message in config.log where it belongs
10865 echo "$QUORUM_PKG_ERRORS" >&5
10866
10867 { $as_echo "$as_me:$LINENO: result: no" >&5
10868 $as_echo "no" >&6; }
10869 $bailout
10870 elif test $pkg_failed = untried; then
10871 $bailout
10872 else
10873 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10874 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10875 { $as_echo "$as_me:$LINENO: result: yes" >&5
10876 $as_echo "yes" >&6; }
10877 HAVE_QUORUM=yes
10878 fi
10879 CHECKCPG=yes
10880 CHECKDLM=yes
10881 fi
10882
10883 if test x$BUILDOPENAIS = xyes; then
10884
10885 pkg_failed=no
10886 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10887 $as_echo_n "checking for SALCK... " >&6; }
10888
10889 if test -n "$SALCK_CFLAGS"; then
10890 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10891 elif test -n "$PKG_CONFIG"; then
10892 if test -n "$PKG_CONFIG" && \
10893 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10894 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10895 ac_status=$?
10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; then
10898 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10899 else
10900 pkg_failed=yes
10901 fi
10902 else
10903 pkg_failed=untried
10904 fi
10905 if test -n "$SALCK_LIBS"; then
10906 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
10907 elif test -n "$PKG_CONFIG"; then
10908 if test -n "$PKG_CONFIG" && \
10909 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10910 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10911 ac_status=$?
10912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; then
10914 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
10915 else
10916 pkg_failed=yes
10917 fi
10918 else
10919 pkg_failed=untried
10920 fi
10921
10922
10923
10924 if test $pkg_failed = yes; then
10925
10926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10927 _pkg_short_errors_supported=yes
10928 else
10929 _pkg_short_errors_supported=no
10930 fi
10931 if test $_pkg_short_errors_supported = yes; then
10932 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
10933 else
10934 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
10935 fi
10936 # Put the nasty error message in config.log where it belongs
10937 echo "$SALCK_PKG_ERRORS" >&5
10938
10939 { $as_echo "$as_me:$LINENO: result: no" >&5
10940 $as_echo "no" >&6; }
10941 $bailout
10942 elif test $pkg_failed = untried; then
10943 $bailout
10944 else
10945 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
10946 SALCK_LIBS=$pkg_cv_SALCK_LIBS
10947 { $as_echo "$as_me:$LINENO: result: yes" >&5
10948 $as_echo "yes" >&6; }
10949 HAVE_SALCK=yes
10950 fi
10951 CHECKCPG=yes
10952 fi
10953
10954
10955
10956 if test x$CHECKCONFDB = xyes; then
10957
10958 pkg_failed=no
10959 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
10960 $as_echo_n "checking for CONFDB... " >&6; }
10961
10962 if test -n "$CONFDB_CFLAGS"; then
10963 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
10964 elif test -n "$PKG_CONFIG"; then
10965 if test -n "$PKG_CONFIG" && \
10966 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10967 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10968 ac_status=$?
10969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; then
10971 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
10972 else
10973 pkg_failed=yes
10974 fi
10975 else
10976 pkg_failed=untried
10977 fi
10978 if test -n "$CONFDB_LIBS"; then
10979 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
10980 elif test -n "$PKG_CONFIG"; then
10981 if test -n "$PKG_CONFIG" && \
10982 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10983 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10984 ac_status=$?
10985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; then
10987 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
10988 else
10989 pkg_failed=yes
10990 fi
10991 else
10992 pkg_failed=untried
10993 fi
10994
10995
10996
10997 if test $pkg_failed = yes; then
10998
10999 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11000 _pkg_short_errors_supported=yes
11001 else
11002 _pkg_short_errors_supported=no
11003 fi
11004 if test $_pkg_short_errors_supported = yes; then
11005 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11006 else
11007 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11008 fi
11009 # Put the nasty error message in config.log where it belongs
11010 echo "$CONFDB_PKG_ERRORS" >&5
11011
11012 { $as_echo "$as_me:$LINENO: result: no" >&5
11013 $as_echo "no" >&6; }
11014 HAVE_CONFDB=no
11015 elif test $pkg_failed = untried; then
11016 HAVE_CONFDB=no
11017 else
11018 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11019 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11020 { $as_echo "$as_me:$LINENO: result: yes" >&5
11021 $as_echo "yes" >&6; }
11022 HAVE_CONFDB=yes
11023 fi
11024
11025
11026 for ac_header in corosync/confdb.h
11027 do
11028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11031 $as_echo_n "checking for $ac_header... " >&6; }
11032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11033 $as_echo_n "(cached) " >&6
11034 fi
11035 ac_res=`eval 'as_val=${'$as_ac_Header'}
11036 $as_echo "$as_val"'`
11037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11038 $as_echo "$ac_res" >&6; }
11039 else
11040 # Is the header compilable?
11041 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11042 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
11050 #include <$ac_header>
11051 _ACEOF
11052 rm -f conftest.$ac_objext
11053 if { (ac_try="$ac_compile"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11059 $as_echo "$ac_try_echo") >&5
11060 (eval "$ac_compile") 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest.$ac_objext; then
11070 ac_header_compiler=yes
11071 else
11072 $as_echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 ac_header_compiler=no
11076 fi
11077
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11080 $as_echo "$ac_header_compiler" >&6; }
11081
11082 # Is the header present?
11083 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11084 $as_echo_n "checking $ac_header presence... " >&6; }
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #include <$ac_header>
11092 _ACEOF
11093 if { (ac_try="$ac_cpp conftest.$ac_ext"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097 esac
11098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11099 $as_echo "$ac_try_echo") >&5
11100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } >/dev/null && {
11107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 }; then
11110 ac_header_preproc=yes
11111 else
11112 $as_echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 ac_header_preproc=no
11116 fi
11117
11118 rm -f conftest.err conftest.$ac_ext
11119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11120 $as_echo "$ac_header_preproc" >&6; }
11121
11122 # So? What about this header?
11123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11124 yes:no: )
11125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11126 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11129 ac_header_preproc=yes
11130 ;;
11131 no:yes:* )
11132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11133 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11135 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11137 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11139 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11143 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11144
11145 ;;
11146 esac
11147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11148 $as_echo_n "checking for $ac_header... " >&6; }
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 $as_echo_n "(cached) " >&6
11151 else
11152 eval "$as_ac_Header=\$ac_header_preproc"
11153 fi
11154 ac_res=`eval 'as_val=${'$as_ac_Header'}
11155 $as_echo "$as_val"'`
11156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11157 $as_echo "$ac_res" >&6; }
11158
11159 fi
11160 as_val=`eval 'as_val=${'$as_ac_Header'}
11161 $as_echo "$as_val"'`
11162 if test "x$as_val" = x""yes; then
11163 cat >>confdefs.h <<_ACEOF
11164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165 _ACEOF
11166 HAVE_CONFDB_H=yes
11167 else
11168 HAVE_CONFDB_H=no
11169 fi
11170
11171 done
11172
11173
11174 if test x$HAVE_CONFDB != xyes && \
11175 test x$HAVE_CONFDB_H = xyes; then
11176 check_lib_no_libs confdb confdb_initialize
11177 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11178 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11179 CONFDB_LIBS="-lconfdb"
11180 HAVE_CONFDB=yes
11181 fi
11182
11183 if test x$BUILDCOROSYNC = xyes && \
11184 test x$HAVE_CONFDB != xyes &&
11185 test x$CLVMD != xall; then
11186 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11187 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11188 { (exit 1); exit 1; }; }
11189 fi
11190 fi
11191
11192 if test x$CHECKCPG = xyes; then
11193
11194 pkg_failed=no
11195 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11196 $as_echo_n "checking for CPG... " >&6; }
11197
11198 if test -n "$CPG_CFLAGS"; then
11199 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11200 elif test -n "$PKG_CONFIG"; then
11201 if test -n "$PKG_CONFIG" && \
11202 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11203 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11204 ac_status=$?
11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; then
11207 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11208 else
11209 pkg_failed=yes
11210 fi
11211 else
11212 pkg_failed=untried
11213 fi
11214 if test -n "$CPG_LIBS"; then
11215 pkg_cv_CPG_LIBS="$CPG_LIBS"
11216 elif test -n "$PKG_CONFIG"; then
11217 if test -n "$PKG_CONFIG" && \
11218 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11219 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11220 ac_status=$?
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; then
11223 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11224 else
11225 pkg_failed=yes
11226 fi
11227 else
11228 pkg_failed=untried
11229 fi
11230
11231
11232
11233 if test $pkg_failed = yes; then
11234
11235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11236 _pkg_short_errors_supported=yes
11237 else
11238 _pkg_short_errors_supported=no
11239 fi
11240 if test $_pkg_short_errors_supported = yes; then
11241 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11242 else
11243 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11244 fi
11245 # Put the nasty error message in config.log where it belongs
11246 echo "$CPG_PKG_ERRORS" >&5
11247
11248 { $as_echo "$as_me:$LINENO: result: no" >&5
11249 $as_echo "no" >&6; }
11250 $bailout
11251 elif test $pkg_failed = untried; then
11252 $bailout
11253 else
11254 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11255 CPG_LIBS=$pkg_cv_CPG_LIBS
11256 { $as_echo "$as_me:$LINENO: result: yes" >&5
11257 $as_echo "yes" >&6; }
11258 HAVE_CPG=yes
11259 fi
11260 fi
11261
11262 if test x$CHECKDLM = xyes; then
11263
11264 pkg_failed=no
11265 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11266 $as_echo_n "checking for DLM... " >&6; }
11267
11268 if test -n "$DLM_CFLAGS"; then
11269 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11270 elif test -n "$PKG_CONFIG"; then
11271 if test -n "$PKG_CONFIG" && \
11272 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11273 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11274 ac_status=$?
11275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; then
11277 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11278 else
11279 pkg_failed=yes
11280 fi
11281 else
11282 pkg_failed=untried
11283 fi
11284 if test -n "$DLM_LIBS"; then
11285 pkg_cv_DLM_LIBS="$DLM_LIBS"
11286 elif test -n "$PKG_CONFIG"; then
11287 if test -n "$PKG_CONFIG" && \
11288 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11289 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11290 ac_status=$?
11291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; then
11293 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11294 else
11295 pkg_failed=yes
11296 fi
11297 else
11298 pkg_failed=untried
11299 fi
11300
11301
11302
11303 if test $pkg_failed = yes; then
11304
11305 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11306 _pkg_short_errors_supported=yes
11307 else
11308 _pkg_short_errors_supported=no
11309 fi
11310 if test $_pkg_short_errors_supported = yes; then
11311 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11312 else
11313 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11314 fi
11315 # Put the nasty error message in config.log where it belongs
11316 echo "$DLM_PKG_ERRORS" >&5
11317
11318 { $as_echo "$as_me:$LINENO: result: no" >&5
11319 $as_echo "no" >&6; }
11320 NOTFOUND=0
11321
11322 for ac_header in libdlm.h
11323 do
11324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 $as_echo_n "checking for $ac_header... " >&6; }
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 $as_echo_n "(cached) " >&6
11330 fi
11331 ac_res=`eval 'as_val=${'$as_ac_Header'}
11332 $as_echo "$as_val"'`
11333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11334 $as_echo "$ac_res" >&6; }
11335 else
11336 # Is the header compilable?
11337 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11338 $as_echo_n "checking $ac_header usability... " >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 $ac_includes_default
11346 #include <$ac_header>
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11355 $as_echo "$ac_try_echo") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.$ac_objext; then
11366 ac_header_compiler=yes
11367 else
11368 $as_echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371 ac_header_compiler=no
11372 fi
11373
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376 $as_echo "$ac_header_compiler" >&6; }
11377
11378 # Is the header present?
11379 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380 $as_echo_n "checking $ac_header presence... " >&6; }
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h. */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 #include <$ac_header>
11388 _ACEOF
11389 if { (ac_try="$ac_cpp conftest.$ac_ext"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11395 $as_echo "$ac_try_echo") >&5
11396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } >/dev/null && {
11403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11405 }; then
11406 ac_header_preproc=yes
11407 else
11408 $as_echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 ac_header_preproc=no
11412 fi
11413
11414 rm -f conftest.err conftest.$ac_ext
11415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 $as_echo "$ac_header_preproc" >&6; }
11417
11418 # So? What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420 yes:no: )
11421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc=yes
11426 ;;
11427 no:yes:* )
11428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440
11441 ;;
11442 esac
11443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11444 $as_echo_n "checking for $ac_header... " >&6; }
11445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11446 $as_echo_n "(cached) " >&6
11447 else
11448 eval "$as_ac_Header=\$ac_header_preproc"
11449 fi
11450 ac_res=`eval 'as_val=${'$as_ac_Header'}
11451 $as_echo "$as_val"'`
11452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11453 $as_echo "$ac_res" >&6; }
11454
11455 fi
11456 as_val=`eval 'as_val=${'$as_ac_Header'}
11457 $as_echo "$as_val"'`
11458 if test "x$as_val" = x""yes; then
11459 cat >>confdefs.h <<_ACEOF
11460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11461 _ACEOF
11462
11463 else
11464 $bailout
11465 fi
11466
11467 done
11468
11469 check_lib_no_libs dlm dlm_lock -lpthread
11470 if test $NOTFOUND = 0; then
11471 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11472 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11473 DLM_LIBS="-ldlm -lpthread"
11474 HAVE_DLM=yes
11475 fi
11476 elif test $pkg_failed = untried; then
11477 NOTFOUND=0
11478
11479 for ac_header in libdlm.h
11480 do
11481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 $as_echo_n "checking for $ac_header... " >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 $as_echo_n "(cached) " >&6
11487 fi
11488 ac_res=`eval 'as_val=${'$as_ac_Header'}
11489 $as_echo "$as_val"'`
11490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11491 $as_echo "$ac_res" >&6; }
11492 else
11493 # Is the header compilable?
11494 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 $as_echo_n "checking $ac_header usability... " >&6; }
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 #include <$ac_header>
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (ac_try="$ac_compile"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11512 $as_echo "$ac_try_echo") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest.$ac_objext; then
11523 ac_header_compiler=yes
11524 else
11525 $as_echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 ac_header_compiler=no
11529 fi
11530
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11533 $as_echo "$ac_header_compiler" >&6; }
11534
11535 # Is the header present?
11536 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11537 $as_echo_n "checking $ac_header presence... " >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 #include <$ac_header>
11545 _ACEOF
11546 if { (ac_try="$ac_cpp conftest.$ac_ext"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550 esac
11551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11552 $as_echo "$ac_try_echo") >&5
11553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } >/dev/null && {
11560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11561 test ! -s conftest.err
11562 }; then
11563 ac_header_preproc=yes
11564 else
11565 $as_echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568 ac_header_preproc=no
11569 fi
11570
11571 rm -f conftest.err conftest.$ac_ext
11572 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11573 $as_echo "$ac_header_preproc" >&6; }
11574
11575 # So? What about this header?
11576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11577 yes:no: )
11578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11579 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11582 ac_header_preproc=yes
11583 ;;
11584 no:yes:* )
11585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11586 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11588 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11590 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11592 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11597
11598 ;;
11599 esac
11600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11601 $as_echo_n "checking for $ac_header... " >&6; }
11602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603 $as_echo_n "(cached) " >&6
11604 else
11605 eval "$as_ac_Header=\$ac_header_preproc"
11606 fi
11607 ac_res=`eval 'as_val=${'$as_ac_Header'}
11608 $as_echo "$as_val"'`
11609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11610 $as_echo "$ac_res" >&6; }
11611
11612 fi
11613 as_val=`eval 'as_val=${'$as_ac_Header'}
11614 $as_echo "$as_val"'`
11615 if test "x$as_val" = x""yes; then
11616 cat >>confdefs.h <<_ACEOF
11617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11618 _ACEOF
11619
11620 else
11621 $bailout
11622 fi
11623
11624 done
11625
11626 check_lib_no_libs dlm dlm_lock -lpthread
11627 if test $NOTFOUND = 0; then
11628 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11629 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11630 DLM_LIBS="-ldlm -lpthread"
11631 HAVE_DLM=yes
11632 fi
11633 else
11634 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11635 DLM_LIBS=$pkg_cv_DLM_LIBS
11636 { $as_echo "$as_me:$LINENO: result: yes" >&5
11637 $as_echo "yes" >&6; }
11638 HAVE_DLM=yes
11639 fi
11640 fi
11641
11642 if test x$CLVMD = xall; then
11643 CLVMD=none
11644 if test x$HAVE_CCS = xyes && \
11645 test x$HAVE_GULM = xyes; then
11646 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11647 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11648 CLVMD="$CLVMD,gulm"
11649 fi
11650 if test x$HAVE_CMAN = xyes && \
11651 test x$HAVE_DLM = xyes; then
11652 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11653 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11654 CLVMD="$CLVMD,cman"
11655 fi
11656 if test x$HAVE_COROSYNC = xyes && \
11657 test x$HAVE_QUORUM = xyes && \
11658 test x$HAVE_CPG = xyes && \
11659 test x$HAVE_DLM = xyes && \
11660 test x$HAVE_CONFDB = xyes; then
11661 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11662 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11663 CLVMD="$CLVMD,corosync"
11664 fi
11665 if test x$HAVE_COROSYNC = xyes && \
11666 test x$HAVE_CPG = xyes && \
11667 test x$HAVE_SALCK = xyes; then
11668 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11669 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11670 CLVMD="$CLVMD,openais"
11671 fi
11672 if test x$CLVMD = xnone; then
11673 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11674 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11675 fi
11676 fi
11677
11678 ################################################################################
11679 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11680 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11681 # Check whether --enable-cmirrord was given.
11682 if test "${enable_cmirrord+set}" = set; then
11683 enableval=$enable_cmirrord; CMIRRORD=$enableval
11684 else
11685 CMIRRORD=no
11686 fi
11687
11688 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11689 $as_echo "$CMIRRORD" >&6; }
11690
11691 BUILD_CMIRRORD=$CMIRRORD
11692
11693 ################################################################################
11694
11695
11696 if test "x$BUILD_CMIRRORD" = xyes; then
11697
11698 # Check whether --with-cmirrord-pidfile was given.
11699 if test "${with_cmirrord_pidfile+set}" = set; then
11700 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11701 #define CMIRRORD_PIDFILE "$withval"
11702 _ACEOF
11703
11704 else
11705 cat >>confdefs.h <<_ACEOF
11706 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11707 _ACEOF
11708
11709 fi
11710
11711 fi
11712
11713 ################################################################################
11714 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11715 if test x$PKGCONFIG_INIT != x1; then
11716 pkg_config_init
11717 fi
11718
11719 pkg_failed=no
11720 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11721 $as_echo_n "checking for SACKPT... " >&6; }
11722
11723 if test -n "$SACKPT_CFLAGS"; then
11724 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11725 elif test -n "$PKG_CONFIG"; then
11726 if test -n "$PKG_CONFIG" && \
11727 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11728 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11729 ac_status=$?
11730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; then
11732 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11733 else
11734 pkg_failed=yes
11735 fi
11736 else
11737 pkg_failed=untried
11738 fi
11739 if test -n "$SACKPT_LIBS"; then
11740 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11741 elif test -n "$PKG_CONFIG"; then
11742 if test -n "$PKG_CONFIG" && \
11743 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11744 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11745 ac_status=$?
11746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; then
11748 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11749 else
11750 pkg_failed=yes
11751 fi
11752 else
11753 pkg_failed=untried
11754 fi
11755
11756
11757
11758 if test $pkg_failed = yes; then
11759
11760 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11761 _pkg_short_errors_supported=yes
11762 else
11763 _pkg_short_errors_supported=no
11764 fi
11765 if test $_pkg_short_errors_supported = yes; then
11766 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11767 else
11768 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11769 fi
11770 # Put the nasty error message in config.log where it belongs
11771 echo "$SACKPT_PKG_ERRORS" >&5
11772
11773 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11774
11775 $SACKPT_PKG_ERRORS
11776
11777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11778 installed software in a non-standard prefix.
11779
11780 Alternatively, you may set the environment variables SACKPT_CFLAGS
11781 and SACKPT_LIBS to avoid the need to call pkg-config.
11782 See the pkg-config man page for more details.
11783 " >&5
11784 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11785
11786 $SACKPT_PKG_ERRORS
11787
11788 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11789 installed software in a non-standard prefix.
11790
11791 Alternatively, you may set the environment variables SACKPT_CFLAGS
11792 and SACKPT_LIBS to avoid the need to call pkg-config.
11793 See the pkg-config man page for more details.
11794 " >&2;}
11795 { (exit 1); exit 1; }; }
11796 elif test $pkg_failed = untried; then
11797 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11799 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11800 is in your PATH or set the PKG_CONFIG environment variable to the full
11801 path to pkg-config.
11802
11803 Alternatively, you may set the environment variables SACKPT_CFLAGS
11804 and SACKPT_LIBS to avoid the need to call pkg-config.
11805 See the pkg-config man page for more details.
11806
11807 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11808 See \`config.log' for more details." >&5
11809 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11810 is in your PATH or set the PKG_CONFIG environment variable to the full
11811 path to pkg-config.
11812
11813 Alternatively, you may set the environment variables SACKPT_CFLAGS
11814 and SACKPT_LIBS to avoid the need to call pkg-config.
11815 See the pkg-config man page for more details.
11816
11817 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11818 See \`config.log' for more details." >&2;}
11819 { (exit 1); exit 1; }; }; }
11820 else
11821 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11822 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11823 { $as_echo "$as_me:$LINENO: result: yes" >&5
11824 $as_echo "yes" >&6; }
11825 :
11826 fi
11827 if test x$HAVE_CPG != xyes; then
11828
11829 pkg_failed=no
11830 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11831 $as_echo_n "checking for CPG... " >&6; }
11832
11833 if test -n "$CPG_CFLAGS"; then
11834 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11835 elif test -n "$PKG_CONFIG"; then
11836 if test -n "$PKG_CONFIG" && \
11837 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11838 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11839 ac_status=$?
11840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; then
11842 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11843 else
11844 pkg_failed=yes
11845 fi
11846 else
11847 pkg_failed=untried
11848 fi
11849 if test -n "$CPG_LIBS"; then
11850 pkg_cv_CPG_LIBS="$CPG_LIBS"
11851 elif test -n "$PKG_CONFIG"; then
11852 if test -n "$PKG_CONFIG" && \
11853 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11854 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11855 ac_status=$?
11856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; then
11858 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11859 else
11860 pkg_failed=yes
11861 fi
11862 else
11863 pkg_failed=untried
11864 fi
11865
11866
11867
11868 if test $pkg_failed = yes; then
11869
11870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11871 _pkg_short_errors_supported=yes
11872 else
11873 _pkg_short_errors_supported=no
11874 fi
11875 if test $_pkg_short_errors_supported = yes; then
11876 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11877 else
11878 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11879 fi
11880 # Put the nasty error message in config.log where it belongs
11881 echo "$CPG_PKG_ERRORS" >&5
11882
11883 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11884
11885 $CPG_PKG_ERRORS
11886
11887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11888 installed software in a non-standard prefix.
11889
11890 Alternatively, you may set the environment variables CPG_CFLAGS
11891 and CPG_LIBS to avoid the need to call pkg-config.
11892 See the pkg-config man page for more details.
11893 " >&5
11894 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
11895
11896 $CPG_PKG_ERRORS
11897
11898 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11899 installed software in a non-standard prefix.
11900
11901 Alternatively, you may set the environment variables CPG_CFLAGS
11902 and CPG_LIBS to avoid the need to call pkg-config.
11903 See the pkg-config man page for more details.
11904 " >&2;}
11905 { (exit 1); exit 1; }; }
11906 elif test $pkg_failed = untried; then
11907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11909 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11910 is in your PATH or set the PKG_CONFIG environment variable to the full
11911 path to pkg-config.
11912
11913 Alternatively, you may set the environment variables CPG_CFLAGS
11914 and CPG_LIBS to avoid the need to call pkg-config.
11915 See the pkg-config man page for more details.
11916
11917 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11918 See \`config.log' for more details." >&5
11919 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11920 is in your PATH or set the PKG_CONFIG environment variable to the full
11921 path to pkg-config.
11922
11923 Alternatively, you may set the environment variables CPG_CFLAGS
11924 and CPG_LIBS to avoid the need to call pkg-config.
11925 See the pkg-config man page for more details.
11926
11927 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11928 See \`config.log' for more details." >&2;}
11929 { (exit 1); exit 1; }; }; }
11930 else
11931 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11932 CPG_LIBS=$pkg_cv_CPG_LIBS
11933 { $as_echo "$as_me:$LINENO: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935 :
11936 fi
11937 fi
11938 fi
11939
11940 ################################################################################
11941 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
11942 $as_echo_n "checking whether to enable debugging... " >&6; }
11943 # Check whether --enable-debug was given.
11944 if test "${enable_debug+set}" = set; then
11945 enableval=$enable_debug; DEBUG=$enableval
11946 else
11947 DEBUG=no
11948 fi
11949
11950 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
11951 $as_echo "$DEBUG" >&6; }
11952
11953 if test x$DEBUG = xyes; then
11954 COPTIMISE_FLAG=
11955 else
11956 CSCOPE_CMD=
11957 fi
11958
11959 ################################################################################
11960 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
11961 $as_echo_n "checking for C optimisation flag... " >&6; }
11962
11963 # Check whether --with-optimisation was given.
11964 if test "${with_optimisation+set}" = set; then
11965 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
11966 fi
11967
11968 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
11969 $as_echo "$COPTIMISE_FLAG" >&6; }
11970
11971 ################################################################################
11972 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
11973 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
11974 # Check whether --enable-profiling was given.
11975 if test "${enable_profiling+set}" = set; then
11976 enableval=$enable_profiling; PROFILING=$enableval
11977 else
11978 PROFILING=no
11979 fi
11980
11981 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
11982 $as_echo "$PROFILING" >&6; }
11983
11984 if test "x$PROFILING" = xyes; then
11985 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
11986 # Extract the first word of "lcov", so it can be a program name with args.
11987 set dummy lcov; ac_word=$2
11988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if test "${ac_cv_path_LCOV+set}" = set; then
11991 $as_echo_n "(cached) " >&6
11992 else
11993 case $LCOV in
11994 [\\/]* | ?:[\\/]*)
11995 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11996 ;;
11997 *)
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12000 do
12001 IFS=$as_save_IFS
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12005 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 break 2
12008 fi
12009 done
12010 done
12011 IFS=$as_save_IFS
12012
12013 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
12014 ;;
12015 esac
12016 fi
12017 LCOV=$ac_cv_path_LCOV
12018 if test -n "$LCOV"; then
12019 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12020 $as_echo "$LCOV" >&6; }
12021 else
12022 { $as_echo "$as_me:$LINENO: result: no" >&5
12023 $as_echo "no" >&6; }
12024 fi
12025
12026
12027 # Extract the first word of "genhtml", so it can be a program name with args.
12028 set dummy genhtml; ac_word=$2
12029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if test "${ac_cv_path_GENHTML+set}" = set; then
12032 $as_echo_n "(cached) " >&6
12033 else
12034 case $GENHTML in
12035 [\\/]* | ?:[\\/]*)
12036 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12037 ;;
12038 *)
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12041 do
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12046 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
12047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12049 fi
12050 done
12051 done
12052 IFS=$as_save_IFS
12053
12054 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
12055 ;;
12056 esac
12057 fi
12058 GENHTML=$ac_cv_path_GENHTML
12059 if test -n "$GENHTML"; then
12060 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12061 $as_echo "$GENHTML" >&6; }
12062 else
12063 { $as_echo "$as_me:$LINENO: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068 if test "$LCOV" = no -o "$GENHTML" = no ; then
12069 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12070 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12071 { (exit 1); exit 1; }; }
12072 fi
12073 fi
12074
12075 ################################################################################
12076 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12077 $as_echo_n "checking whether to use device-mapper... " >&6; }
12078 # Check whether --enable-devmapper was given.
12079 if test "${enable_devmapper+set}" = set; then
12080 enableval=$enable_devmapper; DEVMAPPER=$enableval
12081 fi
12082
12083 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12084 $as_echo "$DEVMAPPER" >&6; }
12085
12086 if test x$DEVMAPPER = xyes; then
12087
12088 cat >>confdefs.h <<\_ACEOF
12089 #define DEVMAPPER_SUPPORT 1
12090 _ACEOF
12091
12092 fi
12093
12094 ################################################################################
12095 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12096 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12097 # Check whether --enable-udev_sync was given.
12098 if test "${enable_udev_sync+set}" = set; then
12099 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12100 else
12101 UDEV_SYNC=no
12102 fi
12103
12104 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12105 $as_echo "$UDEV_SYNC" >&6; }
12106
12107 if test x$UDEV_SYNC = xyes; then
12108
12109 cat >>confdefs.h <<\_ACEOF
12110 #define UDEV_SYNC_SUPPORT 1
12111 _ACEOF
12112
12113 fi
12114
12115 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12116 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12117 # Check whether --enable-udev_rules was given.
12118 if test "${enable_udev_rules+set}" = set; then
12119 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12120 else
12121 UDEV_RULES=$UDEV_SYNC
12122 fi
12123
12124 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12125 $as_echo "$UDEV_RULES" >&6; }
12126
12127 ################################################################################
12128
12129 if test x$UDEV_SYNC = xyes; then
12130 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12131 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12132 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12133 $as_echo_n "(cached) " >&6
12134 else
12135 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-ludev $LIBS"
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h. */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 char udev_queue_get_udev_is_active ();
12151 int
12152 main ()
12153 {
12154 return udev_queue_get_udev_is_active ();
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 rm -f conftest.$ac_objext conftest$ac_exeext
12160 if { (ac_try="$ac_link"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164 esac
12165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12166 $as_echo "$ac_try_echo") >&5
12167 (eval "$ac_link") 2>conftest.er1
12168 ac_status=$?
12169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
12172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } && {
12174 test -z "$ac_c_werror_flag" ||
12175 test ! -s conftest.err
12176 } && test -s conftest$ac_exeext && {
12177 test "$cross_compiling" = yes ||
12178 $as_test_x conftest$ac_exeext
12179 }; then
12180 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12181 else
12182 $as_echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12186 fi
12187
12188 rm -rf conftest.dSYM
12189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12190 conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12192 fi
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12194 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12195 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12196 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12197 else
12198 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12199 fi
12200
12201
12202 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12203
12204 cat >>confdefs.h <<\_ACEOF
12205 #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12206 _ACEOF
12207
12208 LIBS="-ludev $LIBS"
12209 fi
12210 fi
12211
12212 ################################################################################
12213 # Check whether --enable-compat was given.
12214 if test "${enable_compat+set}" = set; then
12215 enableval=$enable_compat; DM_COMPAT=$enableval
12216 else
12217 DM_COMPAT=no
12218 fi
12219
12220
12221 ################################################################################
12222 # Check whether --enable-units-compat was given.
12223 if test "${enable_units_compat+set}" = set; then
12224 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12225 else
12226 UNITS_COMPAT=no
12227 fi
12228
12229
12230 if test x$UNITS_COMPAT = xyes; then
12231
12232 cat >>confdefs.h <<\_ACEOF
12233 #define DEFAULT_SI_UNIT_CONSISTENCY 0
12234 _ACEOF
12235
12236 fi
12237
12238 ################################################################################
12239 # Check whether --enable-ioctl was given.
12240 if test "${enable_ioctl+set}" = set; then
12241 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12242 fi
12243
12244
12245 ################################################################################
12246 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12247 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12248 # Check whether --enable-o_direct was given.
12249 if test "${enable_o_direct+set}" = set; then
12250 enableval=$enable_o_direct; ODIRECT=$enableval
12251 fi
12252
12253 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12254 $as_echo "$ODIRECT" >&6; }
12255
12256 if test x$ODIRECT = xyes; then
12257
12258 cat >>confdefs.h <<\_ACEOF
12259 #define O_DIRECT_SUPPORT 1
12260 _ACEOF
12261
12262 fi
12263
12264 ################################################################################
12265 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12266 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12267 # Check whether --enable-applib was given.
12268 if test "${enable_applib+set}" = set; then
12269 enableval=$enable_applib; APPLIB=$enableval
12270 else
12271 APPLIB=no
12272 fi
12273
12274 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12275 $as_echo "$APPLIB" >&6; }
12276
12277 test x$APPLIB = xyes \
12278 && LVM2APP_LIB=-llvm2app \
12279 || LVM2APP_LIB=
12280
12281 ################################################################################
12282 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12283 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12284 # Check whether --enable-cmdlib was given.
12285 if test "${enable_cmdlib+set}" = set; then
12286 enableval=$enable_cmdlib; CMDLIB=$enableval
12287 else
12288 CMDLIB=no
12289 fi
12290
12291 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12292 $as_echo "$CMDLIB" >&6; }
12293
12294 test x$CMDLIB = xyes \
12295 && LVM2CMD_LIB=-llvm2cmd \
12296 || LVM2CMD_LIB=
12297
12298 ################################################################################
12299 # Check whether --enable-pkgconfig was given.
12300 if test "${enable_pkgconfig+set}" = set; then
12301 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12302 else
12303 PKGCONFIG=no
12304 fi
12305
12306
12307 ################################################################################
12308 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12309 $as_echo_n "checking whether to install fsadm... " >&6; }
12310 # Check whether --enable-fsadm was given.
12311 if test "${enable_fsadm+set}" = set; then
12312 enableval=$enable_fsadm; FSADM=$enableval
12313 fi
12314
12315 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12316 $as_echo "$FSADM" >&6; }
12317
12318 ################################################################################
12319 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12320 $as_echo_n "checking whether to use dmeventd... " >&6; }
12321 # Check whether --enable-dmeventd was given.
12322 if test "${enable_dmeventd+set}" = set; then
12323 enableval=$enable_dmeventd; DMEVENTD=$enableval
12324 fi
12325
12326 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12327 $as_echo "$DMEVENTD" >&6; }
12328
12329 BUILD_DMEVENTD=$DMEVENTD
12330
12331 if test x$DMEVENTD = xyes; then
12332 if test x$MIRRORS != xinternal; then
12333 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12334 " >&5
12335 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12336 " >&2;}
12337 { (exit 1); exit 1; }; }
12338 fi
12339 if test x$CMDLIB = xno; then
12340 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12341 " >&5
12342 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12343 " >&2;}
12344 { (exit 1); exit 1; }; }
12345 fi
12346 fi
12347
12348 if test x$DMEVENTD = xyes; then
12349
12350 cat >>confdefs.h <<\_ACEOF
12351 #define DMEVENTD 1
12352 _ACEOF
12353
12354 fi
12355
12356 ################################################################################
12357
12358 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12359 $as_echo_n "checking for getline in -lc... " >&6; }
12360 if test "${ac_cv_lib_c_getline+set}" = set; then
12361 $as_echo_n "(cached) " >&6
12362 else
12363 ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-lc $LIBS"
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h. */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12375 #ifdef __cplusplus
12376 extern "C"
12377 #endif
12378 char getline ();
12379 int
12380 main ()
12381 {
12382 return getline ();
12383 ;
12384 return 0;
12385 }
12386 _ACEOF
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (ac_try="$ac_link"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392 esac
12393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395 (eval "$ac_link") 2>conftest.er1
12396 ac_status=$?
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest$ac_exeext && {
12405 test "$cross_compiling" = yes ||
12406 $as_test_x conftest$ac_exeext
12407 }; then
12408 ac_cv_lib_c_getline=yes
12409 else
12410 $as_echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 ac_cv_lib_c_getline=no
12414 fi
12415
12416 rm -rf conftest.dSYM
12417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12418 conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12420 fi
12421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12422 $as_echo "$ac_cv_lib_c_getline" >&6; }
12423 if test "x$ac_cv_lib_c_getline" = x""yes; then
12424
12425 cat >>confdefs.h <<\_ACEOF
12426 #define HAVE_GETLINE 1
12427 _ACEOF
12428
12429 fi
12430
12431
12432 ################################################################################
12433
12434 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12435 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12436 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12437 $as_echo_n "(cached) " >&6
12438 else
12439 ac_check_lib_save_LIBS=$LIBS
12440 LIBS="-lc $LIBS"
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char canonicalize_file_name ();
12455 int
12456 main ()
12457 {
12458 return canonicalize_file_name ();
12459 ;
12460 return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (ac_try="$ac_link"
12465 case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12468 esac
12469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12470 $as_echo "$ac_try_echo") >&5
12471 (eval "$ac_link") 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && {
12478 test -z "$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12480 } && test -s conftest$ac_exeext && {
12481 test "$cross_compiling" = yes ||
12482 $as_test_x conftest$ac_exeext
12483 }; then
12484 ac_cv_lib_c_canonicalize_file_name=yes
12485 else
12486 $as_echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 ac_cv_lib_c_canonicalize_file_name=no
12490 fi
12491
12492 rm -rf conftest.dSYM
12493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12494 conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_lib_save_LIBS
12496 fi
12497 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12498 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12499 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12500
12501 cat >>confdefs.h <<\_ACEOF
12502 #define HAVE_CANONICALIZE_FILE_NAME 1
12503 _ACEOF
12504
12505 fi
12506
12507
12508 ################################################################################
12509 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12510 then exec_prefix="";
12511 fi;
12512
12513 ################################################################################
12514 if test x$READLINE != xno; then
12515 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12516 $as_echo_n "checking for library containing tgetent... " >&6; }
12517 if test "${ac_cv_search_tgetent+set}" = set; then
12518 $as_echo_n "(cached) " >&6
12519 else
12520 ac_func_search_save_LIBS=$LIBS
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char tgetent ();
12535 int
12536 main ()
12537 {
12538 return tgetent ();
12539 ;
12540 return 0;
12541 }
12542 _ACEOF
12543 for ac_lib in '' tinfo ncurses curses termcap termlib; do
12544 if test -z "$ac_lib"; then
12545 ac_res="none required"
12546 else
12547 ac_res=-l$ac_lib
12548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12549 fi
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555 esac
12556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12557 $as_echo "$ac_try_echo") >&5
12558 (eval "$ac_link") 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && {
12565 test -z "$ac_c_werror_flag" ||
12566 test ! -s conftest.err
12567 } && test -s conftest$ac_exeext && {
12568 test "$cross_compiling" = yes ||
12569 $as_test_x conftest$ac_exeext
12570 }; then
12571 ac_cv_search_tgetent=$ac_res
12572 else
12573 $as_echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576
12577 fi
12578
12579 rm -rf conftest.dSYM
12580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12581 conftest$ac_exeext
12582 if test "${ac_cv_search_tgetent+set}" = set; then
12583 break
12584 fi
12585 done
12586 if test "${ac_cv_search_tgetent+set}" = set; then
12587 :
12588 else
12589 ac_cv_search_tgetent=no
12590 fi
12591 rm conftest.$ac_ext
12592 LIBS=$ac_func_search_save_LIBS
12593 fi
12594 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12595 $as_echo "$ac_cv_search_tgetent" >&6; }
12596 ac_res=$ac_cv_search_tgetent
12597 if test "$ac_res" != no; then
12598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12599 tg_found=yes
12600 else
12601 tg_found=no
12602 fi
12603
12604 test x$READLINE:$tg_found = xyes:no &&
12605 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
12606 --enable-readline option (which is enabled by default). Either disable readline
12607 support with --disable-readline or download and install termcap from:
12608 ftp.gnu.org/gnu/termcap
12609 Note: if you are using precompiled packages you will also need the development
12610 package as well (which may be called termcap-devel or something similar).
12611 Note: (n)curses also seems to work as a substitute for termcap. This was
12612 not found either - but you could try installing that as well.
12613 " >&5
12614 $as_echo "$as_me: error: termcap could not be found which is required for the
12615 --enable-readline option (which is enabled by default). Either disable readline
12616 support with --disable-readline or download and install termcap from:
12617 ftp.gnu.org/gnu/termcap
12618 Note: if you are using precompiled packages you will also need the development
12619 package as well (which may be called termcap-devel or something similar).
12620 Note: (n)curses also seems to work as a substitute for termcap. This was
12621 not found either - but you could try installing that as well.
12622 " >&2;}
12623 { (exit 1); exit 1; }; }
12624 fi
12625
12626 ################################################################################
12627 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12628 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12630 $as_echo_n "(cached) " >&6
12631 else
12632 ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-ldl $LIBS"
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640
12641 /* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12644 #ifdef __cplusplus
12645 extern "C"
12646 #endif
12647 char dlopen ();
12648 int
12649 main ()
12650 {
12651 return dlopen ();
12652 ;
12653 return 0;
12654 }
12655 _ACEOF
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661 esac
12662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12663 $as_echo "$ac_try_echo") >&5
12664 (eval "$ac_link") 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } && {
12671 test -z "$ac_c_werror_flag" ||
12672 test ! -s conftest.err
12673 } && test -s conftest$ac_exeext && {
12674 test "$cross_compiling" = yes ||
12675 $as_test_x conftest$ac_exeext
12676 }; then
12677 ac_cv_lib_dl_dlopen=yes
12678 else
12679 $as_echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ac_cv_lib_dl_dlopen=no
12683 fi
12684
12685 rm -rf conftest.dSYM
12686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12689 fi
12690 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12692 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12693 HAVE_LIBDL=yes
12694 else
12695 HAVE_LIBDL=no
12696 fi
12697
12698
12699 if [ "x$HAVE_LIBDL" = xyes ]; then
12700
12701 cat >>confdefs.h <<\_ACEOF
12702 #define HAVE_LIBDL 1
12703 _ACEOF
12704
12705 LIBS="-ldl $LIBS"
12706 else
12707 HAVE_LIBDL=no
12708 fi
12709
12710 ################################################################################
12711 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12712 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12713 \) -a "x$STATIC_LINK" = xyes ];
12714 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12715 " >&5
12716 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12717 " >&2;}
12718 { (exit 1); exit 1; }; }
12719 fi
12720
12721 ################################################################################
12722 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12723 $as_echo_n "checking whether to enable selinux support... " >&6; }
12724 # Check whether --enable-selinux was given.
12725 if test "${enable_selinux+set}" = set; then
12726 enableval=$enable_selinux; SELINUX=$enableval
12727 fi
12728
12729 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12730 $as_echo "$SELINUX" >&6; }
12731
12732 ################################################################################
12733 if test x$SELINUX = xyes; then
12734 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12735 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12736 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12737 $as_echo_n "(cached) " >&6
12738 else
12739 ac_check_lib_save_LIBS=$LIBS
12740 LIBS="-lsepol $LIBS"
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h. */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12751 #ifdef __cplusplus
12752 extern "C"
12753 #endif
12754 char sepol_check_context ();
12755 int
12756 main ()
12757 {
12758 return sepol_check_context ();
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext conftest$ac_exeext
12764 if { (ac_try="$ac_link"
12765 case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768 esac
12769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12770 $as_echo "$ac_try_echo") >&5
12771 (eval "$ac_link") 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest$ac_exeext && {
12781 test "$cross_compiling" = yes ||
12782 $as_test_x conftest$ac_exeext
12783 }; then
12784 ac_cv_lib_sepol_sepol_check_context=yes
12785 else
12786 $as_echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 ac_cv_lib_sepol_sepol_check_context=no
12790 fi
12791
12792 rm -rf conftest.dSYM
12793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12794 conftest$ac_exeext conftest.$ac_ext
12795 LIBS=$ac_check_lib_save_LIBS
12796 fi
12797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12798 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12799 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12800 HAVE_SEPOL=yes
12801 else
12802 HAVE_SEPOL=no
12803 fi
12804
12805
12806 if test x$HAVE_SEPOL = xyes; then
12807
12808 cat >>confdefs.h <<\_ACEOF
12809 #define HAVE_SEPOL 1
12810 _ACEOF
12811
12812 LIBS="-lsepol $LIBS"
12813 fi
12814
12815 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12816 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12817 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-lselinux $LIBS"
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char is_selinux_enabled ();
12836 int
12837 main ()
12838 {
12839 return is_selinux_enabled ();
12840 ;
12841 return 0;
12842 }
12843 _ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (ac_try="$ac_link"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849 esac
12850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12851 $as_echo "$ac_try_echo") >&5
12852 (eval "$ac_link") 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } && {
12859 test -z "$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 } && test -s conftest$ac_exeext && {
12862 test "$cross_compiling" = yes ||
12863 $as_test_x conftest$ac_exeext
12864 }; then
12865 ac_cv_lib_selinux_is_selinux_enabled=yes
12866 else
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_cv_lib_selinux_is_selinux_enabled=no
12871 fi
12872
12873 rm -rf conftest.dSYM
12874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12875 conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_check_lib_save_LIBS
12877 fi
12878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12879 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12880 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12881 HAVE_SELINUX=yes
12882 else
12883 HAVE_SELINUX=no
12884 fi
12885
12886
12887 if test x$HAVE_SELINUX = xyes; then
12888
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_SELINUX 1
12891 _ACEOF
12892
12893 LIBS="-lselinux $LIBS"
12894 else
12895 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12896 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
12897 fi
12898
12899 # With --enable-static_link and selinux enabled, linking
12900 # fails on at least Debian unstable due to unsatisfied references
12901 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12902 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12903 lvm_saved_libs=$LIBS
12904 LIBS="$LIBS -static"
12905 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12906 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
12907 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12908 $as_echo_n "(cached) " >&6
12909 else
12910 ac_func_search_save_LIBS=$LIBS
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h. */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917
12918 /* Override any GCC internal prototype to avoid an error.
12919 Use char because int might match the return type of a GCC
12920 builtin and then its argument prototype would still apply. */
12921 #ifdef __cplusplus
12922 extern "C"
12923 #endif
12924 char pthread_mutex_lock ();
12925 int
12926 main ()
12927 {
12928 return pthread_mutex_lock ();
12929 ;
12930 return 0;
12931 }
12932 _ACEOF
12933 for ac_lib in '' pthread; do
12934 if test -z "$ac_lib"; then
12935 ac_res="none required"
12936 else
12937 ac_res=-l$ac_lib
12938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12939 fi
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (ac_try="$ac_link"
12942 case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945 esac
12946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12947 $as_echo "$ac_try_echo") >&5
12948 (eval "$ac_link") 2>conftest.er1
12949 ac_status=$?
12950 grep -v '^ *+' conftest.er1 >conftest.err
12951 rm -f conftest.er1
12952 cat conftest.err >&5
12953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && {
12955 test -z "$ac_c_werror_flag" ||
12956 test ! -s conftest.err
12957 } && test -s conftest$ac_exeext && {
12958 test "$cross_compiling" = yes ||
12959 $as_test_x conftest$ac_exeext
12960 }; then
12961 ac_cv_search_pthread_mutex_lock=$ac_res
12962 else
12963 $as_echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966
12967 fi
12968
12969 rm -rf conftest.dSYM
12970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12971 conftest$ac_exeext
12972 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12973 break
12974 fi
12975 done
12976 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12977 :
12978 else
12979 ac_cv_search_pthread_mutex_lock=no
12980 fi
12981 rm conftest.$ac_ext
12982 LIBS=$ac_func_search_save_LIBS
12983 fi
12984 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12985 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
12986 ac_res=$ac_cv_search_pthread_mutex_lock
12987 if test "$ac_res" != no; then
12988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12989 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
12990 LIB_PTHREAD=-lpthread
12991 fi
12992
12993 LIBS=$lvm_saved_libs
12994 fi
12995 fi
12996
12997 ################################################################################
12998 if test x$REALTIME = xyes; then
12999 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13000 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13001 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13002 $as_echo_n "(cached) " >&6
13003 else
13004 ac_check_lib_save_LIBS=$LIBS
13005 LIBS="-lrt $LIBS"
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012
13013 /* Override any GCC internal prototype to avoid an error.
13014 Use char because int might match the return type of a GCC
13015 builtin and then its argument prototype would still apply. */
13016 #ifdef __cplusplus
13017 extern "C"
13018 #endif
13019 char clock_gettime ();
13020 int
13021 main ()
13022 {
13023 return clock_gettime ();
13024 ;
13025 return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033 esac
13034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035 $as_echo "$ac_try_echo") >&5
13036 (eval "$ac_link") 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
13045 } && test -s conftest$ac_exeext && {
13046 test "$cross_compiling" = yes ||
13047 $as_test_x conftest$ac_exeext
13048 }; then
13049 ac_cv_lib_rt_clock_gettime=yes
13050 else
13051 $as_echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 ac_cv_lib_rt_clock_gettime=no
13055 fi
13056
13057 rm -rf conftest.dSYM
13058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13059 conftest$ac_exeext conftest.$ac_ext
13060 LIBS=$ac_check_lib_save_LIBS
13061 fi
13062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13063 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13064 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13065 HAVE_REALTIME=yes
13066 else
13067 HAVE_REALTIME=no
13068 fi
13069
13070
13071 if test x$HAVE_REALTIME = xyes; then
13072
13073 cat >>confdefs.h <<\_ACEOF
13074 #define HAVE_REALTIME 1
13075 _ACEOF
13076
13077 LIBS="-lrt $LIBS"
13078 else
13079 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13080 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13081 fi
13082 fi
13083
13084 ################################################################################
13085
13086 for ac_header in getopt.h
13087 do
13088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13091 $as_echo_n "checking for $ac_header... " >&6; }
13092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13093 $as_echo_n "(cached) " >&6
13094 fi
13095 ac_res=`eval 'as_val=${'$as_ac_Header'}
13096 $as_echo "$as_val"'`
13097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13098 $as_echo "$ac_res" >&6; }
13099 else
13100 # Is the header compilable?
13101 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13102 $as_echo_n "checking $ac_header usability... " >&6; }
13103 cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h. */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109 $ac_includes_default
13110 #include <$ac_header>
13111 _ACEOF
13112 rm -f conftest.$ac_objext
13113 if { (ac_try="$ac_compile"
13114 case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117 esac
13118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13119 $as_echo "$ac_try_echo") >&5
13120 (eval "$ac_compile") 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && {
13127 test -z "$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13129 } && test -s conftest.$ac_objext; then
13130 ac_header_compiler=yes
13131 else
13132 $as_echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 ac_header_compiler=no
13136 fi
13137
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13140 $as_echo "$ac_header_compiler" >&6; }
13141
13142 # Is the header present?
13143 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13144 $as_echo_n "checking $ac_header presence... " >&6; }
13145 cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h. */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151 #include <$ac_header>
13152 _ACEOF
13153 if { (ac_try="$ac_cpp conftest.$ac_ext"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13159 $as_echo "$ac_try_echo") >&5
13160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } >/dev/null && {
13167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13168 test ! -s conftest.err
13169 }; then
13170 ac_header_preproc=yes
13171 else
13172 $as_echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_header_preproc=no
13176 fi
13177
13178 rm -f conftest.err conftest.$ac_ext
13179 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13180 $as_echo "$ac_header_preproc" >&6; }
13181
13182 # So? What about this header?
13183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13184 yes:no: )
13185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13186 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13188 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13189 ac_header_preproc=yes
13190 ;;
13191 no:yes:* )
13192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13193 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13195 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13197 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13199 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13203 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13204
13205 ;;
13206 esac
13207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13208 $as_echo_n "checking for $ac_header... " >&6; }
13209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13210 $as_echo_n "(cached) " >&6
13211 else
13212 eval "$as_ac_Header=\$ac_header_preproc"
13213 fi
13214 ac_res=`eval 'as_val=${'$as_ac_Header'}
13215 $as_echo "$as_val"'`
13216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13217 $as_echo "$ac_res" >&6; }
13218
13219 fi
13220 as_val=`eval 'as_val=${'$as_ac_Header'}
13221 $as_echo "$as_val"'`
13222 if test "x$as_val" = x""yes; then
13223 cat >>confdefs.h <<_ACEOF
13224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13225 _ACEOF
13226
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_GETOPTLONG 1
13229 _ACEOF
13230
13231 fi
13232
13233 done
13234
13235
13236 ################################################################################
13237 if test x$READLINE != xno; then
13238 rl_found=yes
13239
13240 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13241 $as_echo_n "checking for readline in -lreadline... " >&6; }
13242 if test "${ac_cv_lib_readline_readline+set}" = set; then
13243 $as_echo_n "(cached) " >&6
13244 else
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-lreadline $LIBS"
13247 cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h. */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char readline ();
13261 int
13262 main ()
13263 {
13264 return readline ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 rm -f conftest.$ac_objext conftest$ac_exeext
13270 if { (ac_try="$ac_link"
13271 case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274 esac
13275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13276 $as_echo "$ac_try_echo") >&5
13277 (eval "$ac_link") 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest$ac_exeext && {
13287 test "$cross_compiling" = yes ||
13288 $as_test_x conftest$ac_exeext
13289 }; then
13290 ac_cv_lib_readline_readline=yes
13291 else
13292 $as_echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13294
13295 ac_cv_lib_readline_readline=no
13296 fi
13297
13298 rm -rf conftest.dSYM
13299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13300 conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13302 fi
13303 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13304 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13305 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13306 cat >>confdefs.h <<_ACEOF
13307 #define HAVE_LIBREADLINE 1
13308 _ACEOF
13309
13310 LIBS="-lreadline $LIBS"
13311
13312 else
13313 rl_found=no
13314 fi
13315
13316 test x$READLINE:$rl_found = xyes:no &&
13317 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13318 --enable-readline option (which is enabled by default). Either disable readline
13319 support with --disable-readline or download and install readline from:
13320 ftp.gnu.org/gnu/readline
13321 Note: if you are using precompiled packages you will also need the development
13322 package as well (which may be called readline-devel or something similar).
13323 " >&5
13324 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13325 --enable-readline option (which is enabled by default). Either disable readline
13326 support with --disable-readline or download and install readline from:
13327 ftp.gnu.org/gnu/readline
13328 Note: if you are using precompiled packages you will also need the development
13329 package as well (which may be called readline-devel or something similar).
13330 " >&2;}
13331 { (exit 1); exit 1; }; }
13332 if test $rl_found = yes; then
13333
13334 for ac_func in rl_completion_matches
13335 do
13336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13338 $as_echo_n "checking for $ac_func... " >&6; }
13339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13340 $as_echo_n "(cached) " >&6
13341 else
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13350 #define $ac_func innocuous_$ac_func
13351
13352 /* System header to define __stub macros and hopefully few prototypes,
13353 which can conflict with char $ac_func (); below.
13354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355 <limits.h> exists even on freestanding compilers. */
13356
13357 #ifdef __STDC__
13358 # include <limits.h>
13359 #else
13360 # include <assert.h>
13361 #endif
13362
13363 #undef $ac_func
13364
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13368 #ifdef __cplusplus
13369 extern "C"
13370 #endif
13371 char $ac_func ();
13372 /* The GNU C library defines this for functions which it implements
13373 to always fail with ENOSYS. Some functions are actually named
13374 something starting with __ and the normal name is an alias. */
13375 #if defined __stub_$ac_func || defined __stub___$ac_func
13376 choke me
13377 #endif
13378
13379 int
13380 main ()
13381 {
13382 return $ac_func ();
13383 ;
13384 return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392 esac
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395 (eval "$ac_link") 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext && {
13405 test "$cross_compiling" = yes ||
13406 $as_test_x conftest$ac_exeext
13407 }; then
13408 eval "$as_ac_var=yes"
13409 else
13410 $as_echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 eval "$as_ac_var=no"
13414 fi
13415
13416 rm -rf conftest.dSYM
13417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13418 conftest$ac_exeext conftest.$ac_ext
13419 fi
13420 ac_res=`eval 'as_val=${'$as_ac_var'}
13421 $as_echo "$as_val"'`
13422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13423 $as_echo "$ac_res" >&6; }
13424 as_val=`eval 'as_val=${'$as_ac_var'}
13425 $as_echo "$as_val"'`
13426 if test "x$as_val" = x""yes; then
13427 cat >>confdefs.h <<_ACEOF
13428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13429 _ACEOF
13430
13431 fi
13432 done
13433
13434
13435 cat >>confdefs.h <<\_ACEOF
13436 #define READLINE_SUPPORT 1
13437 _ACEOF
13438
13439 fi
13440 fi
13441
13442 ################################################################################
13443 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13444 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13445 # Check whether --enable-nls was given.
13446 if test "${enable_nls+set}" = set; then
13447 enableval=$enable_nls; INTL=$enableval
13448 else
13449 INTL=no
13450 fi
13451
13452 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13453 $as_echo "$INTL" >&6; }
13454
13455 if test x$INTL = xyes; then
13456 # FIXME - Move this - can be device-mapper too
13457 INTL_PACKAGE="lvm2"
13458 # Extract the first word of "msgfmt", so it can be a program name with args.
13459 set dummy msgfmt; ac_word=$2
13460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if test "${ac_cv_path_MSGFMT+set}" = set; then
13463 $as_echo_n "(cached) " >&6
13464 else
13465 case $MSGFMT in
13466 [\\/]* | ?:[\\/]*)
13467 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13468 ;;
13469 *)
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13472 do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13477 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481 done
13482 done
13483 IFS=$as_save_IFS
13484
13485 ;;
13486 esac
13487 fi
13488 MSGFMT=$ac_cv_path_MSGFMT
13489 if test -n "$MSGFMT"; then
13490 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13491 $as_echo "$MSGFMT" >&6; }
13492 else
13493 { $as_echo "$as_me:$LINENO: result: no" >&5
13494 $as_echo "no" >&6; }
13495 fi
13496
13497
13498 if [ "x$MSGFMT" == x ];
13499 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13500 " >&5
13501 $as_echo "$as_me: error: msgfmt not found in path $PATH
13502 " >&2;}
13503 { (exit 1); exit 1; }; }
13504 fi;
13505
13506
13507 # Check whether --with-localedir was given.
13508 if test "${with_localedir+set}" = set; then
13509 withval=$with_localedir; LOCALEDIR="$withval"
13510 else
13511 LOCALEDIR='${prefix}/share/locale'
13512 fi
13513
13514 fi
13515
13516 ################################################################################
13517
13518 # Check whether --with-confdir was given.
13519 if test "${with_confdir+set}" = set; then
13520 withval=$with_confdir; CONFDIR="$withval"
13521 else
13522 CONFDIR='/etc'
13523 fi
13524
13525
13526
13527 # Check whether --with-staticdir was given.
13528 if test "${with_staticdir+set}" = set; then
13529 withval=$with_staticdir; STATICDIR="$withval"
13530 else
13531 STATICDIR='${exec_prefix}/sbin'
13532 fi
13533
13534
13535
13536 # Check whether --with-usrlibdir was given.
13537 if test "${with_usrlibdir+set}" = set; then
13538 withval=$with_usrlibdir; usrlibdir="$withval"
13539 else
13540 usrlibdir='${prefix}/lib'
13541 fi
13542
13543
13544
13545 # Check whether --with-usrsbindir was given.
13546 if test "${with_usrsbindir+set}" = set; then
13547 withval=$with_usrsbindir; usrsbindir="$withval"
13548 else
13549 usrsbindir='${prefix}/sbin'
13550 fi
13551
13552
13553 ################################################################################
13554
13555 # Check whether --with-udev_prefix was given.
13556 if test "${with_udev_prefix+set}" = set; then
13557 withval=$with_udev_prefix; udev_prefix="$withval"
13558 else
13559 udev_prefix='${exec_prefix}'
13560 fi
13561
13562
13563
13564 # Check whether --with-udevdir was given.
13565 if test "${with_udevdir+set}" = set; then
13566 withval=$with_udevdir; udevdir="$withval"
13567 else
13568 udevdir='${udev_prefix}/lib/udev/rules.d'
13569 fi
13570
13571
13572 ################################################################################
13573 if test x$READLINE = xyes; then
13574
13575
13576 for ac_header in readline/readline.h readline/history.h
13577 do
13578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13580 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13581 $as_echo_n "checking for $ac_header... " >&6; }
13582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13583 $as_echo_n "(cached) " >&6
13584 fi
13585 ac_res=`eval 'as_val=${'$as_ac_Header'}
13586 $as_echo "$as_val"'`
13587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13588 $as_echo "$ac_res" >&6; }
13589 else
13590 # Is the header compilable?
13591 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13592 $as_echo_n "checking $ac_header usability... " >&6; }
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 #include <$ac_header>
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607 esac
13608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13609 $as_echo "$ac_try_echo") >&5
13610 (eval "$ac_compile") 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest.$ac_objext; then
13620 ac_header_compiler=yes
13621 else
13622 $as_echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13624
13625 ac_header_compiler=no
13626 fi
13627
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13630 $as_echo "$ac_header_compiler" >&6; }
13631
13632 # Is the header present?
13633 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13634 $as_echo_n "checking $ac_header presence... " >&6; }
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #include <$ac_header>
13642 _ACEOF
13643 if { (ac_try="$ac_cpp conftest.$ac_ext"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647 esac
13648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13649 $as_echo "$ac_try_echo") >&5
13650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } >/dev/null && {
13657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 }; then
13660 ac_header_preproc=yes
13661 else
13662 $as_echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665 ac_header_preproc=no
13666 fi
13667
13668 rm -f conftest.err conftest.$ac_ext
13669 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13670 $as_echo "$ac_header_preproc" >&6; }
13671
13672 # So? What about this header?
13673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13674 yes:no: )
13675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13676 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13679 ac_header_preproc=yes
13680 ;;
13681 no:yes:* )
13682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13683 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13685 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13687 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13689 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13693 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13694
13695 ;;
13696 esac
13697 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13698 $as_echo_n "checking for $ac_header... " >&6; }
13699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13700 $as_echo_n "(cached) " >&6
13701 else
13702 eval "$as_ac_Header=\$ac_header_preproc"
13703 fi
13704 ac_res=`eval 'as_val=${'$as_ac_Header'}
13705 $as_echo "$as_val"'`
13706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13707 $as_echo "$ac_res" >&6; }
13708
13709 fi
13710 as_val=`eval 'as_val=${'$as_ac_Header'}
13711 $as_echo "$as_val"'`
13712 if test "x$as_val" = x""yes; then
13713 cat >>confdefs.h <<_ACEOF
13714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13715 _ACEOF
13716
13717 else
13718 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13719 $as_echo "$as_me: error: bailing out" >&2;}
13720 { (exit 1); exit 1; }; }
13721 fi
13722
13723 done
13724
13725 fi
13726
13727 if test x$CLVMD != xnone; then
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738 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
13739 do
13740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13743 $as_echo_n "checking for $ac_header... " >&6; }
13744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13745 $as_echo_n "(cached) " >&6
13746 fi
13747 ac_res=`eval 'as_val=${'$as_ac_Header'}
13748 $as_echo "$as_val"'`
13749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13750 $as_echo "$ac_res" >&6; }
13751 else
13752 # Is the header compilable?
13753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13754 $as_echo_n "checking $ac_header usability... " >&6; }
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13762 #include <$ac_header>
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (ac_try="$ac_compile"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13771 $as_echo "$ac_try_echo") >&5
13772 (eval "$ac_compile") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest.$ac_objext; then
13782 ac_header_compiler=yes
13783 else
13784 $as_echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13786
13787 ac_header_compiler=no
13788 fi
13789
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13792 $as_echo "$ac_header_compiler" >&6; }
13793
13794 # Is the header present?
13795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13796 $as_echo_n "checking $ac_header presence... " >&6; }
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 #include <$ac_header>
13804 _ACEOF
13805 if { (ac_try="$ac_cpp conftest.$ac_ext"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13811 $as_echo "$ac_try_echo") >&5
13812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } >/dev/null && {
13819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 }; then
13822 ac_header_preproc=yes
13823 else
13824 $as_echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 ac_header_preproc=no
13828 fi
13829
13830 rm -f conftest.err conftest.$ac_ext
13831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13832 $as_echo "$ac_header_preproc" >&6; }
13833
13834 # So? What about this header?
13835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13836 yes:no: )
13837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13841 ac_header_preproc=yes
13842 ;;
13843 no:yes:* )
13844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13847 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13851 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13856
13857 ;;
13858 esac
13859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13860 $as_echo_n "checking for $ac_header... " >&6; }
13861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13862 $as_echo_n "(cached) " >&6
13863 else
13864 eval "$as_ac_Header=\$ac_header_preproc"
13865 fi
13866 ac_res=`eval 'as_val=${'$as_ac_Header'}
13867 $as_echo "$as_val"'`
13868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13869 $as_echo "$ac_res" >&6; }
13870
13871 fi
13872 as_val=`eval 'as_val=${'$as_ac_Header'}
13873 $as_echo "$as_val"'`
13874 if test "x$as_val" = x""yes; then
13875 cat >>confdefs.h <<_ACEOF
13876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13877 _ACEOF
13878
13879 else
13880 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13881 $as_echo "$as_me: error: bailing out" >&2;}
13882 { (exit 1); exit 1; }; }
13883 fi
13884
13885 done
13886
13887
13888
13889
13890
13891
13892 for ac_func in dup2 getmntent memmove select socket
13893 do
13894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13895 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13896 $as_echo_n "checking for $ac_func... " >&6; }
13897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13898 $as_echo_n "(cached) " >&6
13899 else
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13908 #define $ac_func innocuous_$ac_func
13909
13910 /* System header to define __stub macros and hopefully few prototypes,
13911 which can conflict with char $ac_func (); below.
13912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13913 <limits.h> exists even on freestanding compilers. */
13914
13915 #ifdef __STDC__
13916 # include <limits.h>
13917 #else
13918 # include <assert.h>
13919 #endif
13920
13921 #undef $ac_func
13922
13923 /* Override any GCC internal prototype to avoid an error.
13924 Use char because int might match the return type of a GCC
13925 builtin and then its argument prototype would still apply. */
13926 #ifdef __cplusplus
13927 extern "C"
13928 #endif
13929 char $ac_func ();
13930 /* The GNU C library defines this for functions which it implements
13931 to always fail with ENOSYS. Some functions are actually named
13932 something starting with __ and the normal name is an alias. */
13933 #if defined __stub_$ac_func || defined __stub___$ac_func
13934 choke me
13935 #endif
13936
13937 int
13938 main ()
13939 {
13940 return $ac_func ();
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950 esac
13951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13952 $as_echo "$ac_try_echo") >&5
13953 (eval "$ac_link") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest$ac_exeext && {
13963 test "$cross_compiling" = yes ||
13964 $as_test_x conftest$ac_exeext
13965 }; then
13966 eval "$as_ac_var=yes"
13967 else
13968 $as_echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971 eval "$as_ac_var=no"
13972 fi
13973
13974 rm -rf conftest.dSYM
13975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13976 conftest$ac_exeext conftest.$ac_ext
13977 fi
13978 ac_res=`eval 'as_val=${'$as_ac_var'}
13979 $as_echo "$as_val"'`
13980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13981 $as_echo "$ac_res" >&6; }
13982 as_val=`eval 'as_val=${'$as_ac_var'}
13983 $as_echo "$as_val"'`
13984 if test "x$as_val" = x""yes; then
13985 cat >>confdefs.h <<_ACEOF
13986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13987 _ACEOF
13988
13989 else
13990 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13991 $as_echo "$as_me: error: bailing out" >&2;}
13992 { (exit 1); exit 1; }; }
13993 fi
13994 done
13995
13996 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
13997 # -lseq on Dynix/PTX, -lgen on Unixware.
13998 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
13999 $as_echo_n "checking for library containing getmntent... " >&6; }
14000 if test "${ac_cv_search_getmntent+set}" = set; then
14001 $as_echo_n "(cached) " >&6
14002 else
14003 ac_func_search_save_LIBS=$LIBS
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char getmntent ();
14018 int
14019 main ()
14020 {
14021 return getmntent ();
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 for ac_lib in '' sun seq gen; do
14027 if test -z "$ac_lib"; then
14028 ac_res="none required"
14029 else
14030 ac_res=-l$ac_lib
14031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14032 fi
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (ac_try="$ac_link"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038 esac
14039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14040 $as_echo "$ac_try_echo") >&5
14041 (eval "$ac_link") 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } && {
14048 test -z "$ac_c_werror_flag" ||
14049 test ! -s conftest.err
14050 } && test -s conftest$ac_exeext && {
14051 test "$cross_compiling" = yes ||
14052 $as_test_x conftest$ac_exeext
14053 }; then
14054 ac_cv_search_getmntent=$ac_res
14055 else
14056 $as_echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059
14060 fi
14061
14062 rm -rf conftest.dSYM
14063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14064 conftest$ac_exeext
14065 if test "${ac_cv_search_getmntent+set}" = set; then
14066 break
14067 fi
14068 done
14069 if test "${ac_cv_search_getmntent+set}" = set; then
14070 :
14071 else
14072 ac_cv_search_getmntent=no
14073 fi
14074 rm conftest.$ac_ext
14075 LIBS=$ac_func_search_save_LIBS
14076 fi
14077 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14078 $as_echo "$ac_cv_search_getmntent" >&6; }
14079 ac_res=$ac_cv_search_getmntent
14080 if test "$ac_res" != no; then
14081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14082 ac_cv_func_getmntent=yes
14083
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_GETMNTENT 1
14086 _ACEOF
14087
14088 else
14089 ac_cv_func_getmntent=no
14090 fi
14091
14092
14093 # AC_FUNC_REALLOC
14094
14095
14096 for ac_header in sys/select.h sys/socket.h
14097 do
14098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14101 $as_echo_n "checking for $ac_header... " >&6; }
14102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14103 $as_echo_n "(cached) " >&6
14104 fi
14105 ac_res=`eval 'as_val=${'$as_ac_Header'}
14106 $as_echo "$as_val"'`
14107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14108 $as_echo "$ac_res" >&6; }
14109 else
14110 # Is the header compilable?
14111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14112 $as_echo_n "checking $ac_header usability... " >&6; }
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h. */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 $ac_includes_default
14120 #include <$ac_header>
14121 _ACEOF
14122 rm -f conftest.$ac_objext
14123 if { (ac_try="$ac_compile"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127 esac
14128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14129 $as_echo "$ac_try_echo") >&5
14130 (eval "$ac_compile") 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } && {
14137 test -z "$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14139 } && test -s conftest.$ac_objext; then
14140 ac_header_compiler=yes
14141 else
14142 $as_echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145 ac_header_compiler=no
14146 fi
14147
14148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14150 $as_echo "$ac_header_compiler" >&6; }
14151
14152 # Is the header present?
14153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14154 $as_echo_n "checking $ac_header presence... " >&6; }
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h. */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 #include <$ac_header>
14162 _ACEOF
14163 if { (ac_try="$ac_cpp conftest.$ac_ext"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167 esac
14168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14169 $as_echo "$ac_try_echo") >&5
14170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } >/dev/null && {
14177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 }; then
14180 ac_header_preproc=yes
14181 else
14182 $as_echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_header_preproc=no
14186 fi
14187
14188 rm -f conftest.err conftest.$ac_ext
14189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14190 $as_echo "$ac_header_preproc" >&6; }
14191
14192 # So? What about this header?
14193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14194 yes:no: )
14195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14199 ac_header_preproc=yes
14200 ;;
14201 no:yes:* )
14202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14214
14215 ;;
14216 esac
14217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14218 $as_echo_n "checking for $ac_header... " >&6; }
14219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14220 $as_echo_n "(cached) " >&6
14221 else
14222 eval "$as_ac_Header=\$ac_header_preproc"
14223 fi
14224 ac_res=`eval 'as_val=${'$as_ac_Header'}
14225 $as_echo "$as_val"'`
14226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14227 $as_echo "$ac_res" >&6; }
14228
14229 fi
14230 as_val=`eval 'as_val=${'$as_ac_Header'}
14231 $as_echo "$as_val"'`
14232 if test "x$as_val" = x""yes; then
14233 cat >>confdefs.h <<_ACEOF
14234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14235 _ACEOF
14236
14237 fi
14238
14239 done
14240
14241 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14242 $as_echo_n "checking types of arguments for select... " >&6; }
14243 if test "${ac_cv_func_select_args+set}" = set; then
14244 $as_echo_n "(cached) " >&6
14245 else
14246 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14247 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14248 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 #ifdef HAVE_SYS_SELECT_H
14257 # include <sys/select.h>
14258 #endif
14259 #ifdef HAVE_SYS_SOCKET_H
14260 # include <sys/socket.h>
14261 #endif
14262
14263 int
14264 main ()
14265 {
14266 extern int select ($ac_arg1,
14267 $ac_arg234, $ac_arg234, $ac_arg234,
14268 $ac_arg5);
14269 ;
14270 return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (ac_try="$ac_compile"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278 esac
14279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14280 $as_echo "$ac_try_echo") >&5
14281 (eval "$ac_compile") 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && {
14288 test -z "$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 } && test -s conftest.$ac_objext; then
14291 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14292 else
14293 $as_echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296
14297 fi
14298
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 done
14301 done
14302 done
14303 # Provide a safe default value.
14304 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14305
14306 fi
14307 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14308 $as_echo "$ac_cv_func_select_args" >&6; }
14309 ac_save_IFS=$IFS; IFS=','
14310 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14311 IFS=$ac_save_IFS
14312 shift
14313
14314 cat >>confdefs.h <<_ACEOF
14315 #define SELECT_TYPE_ARG1 $1
14316 _ACEOF
14317
14318
14319 cat >>confdefs.h <<_ACEOF
14320 #define SELECT_TYPE_ARG234 ($2)
14321 _ACEOF
14322
14323
14324 cat >>confdefs.h <<_ACEOF
14325 #define SELECT_TYPE_ARG5 ($3)
14326 _ACEOF
14327
14328 rm -f conftest*
14329
14330 fi
14331
14332 if test x$CLUSTER != xnone; then
14333
14334
14335 for ac_header in sys/socket.h sys/un.h
14336 do
14337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14340 $as_echo_n "checking for $ac_header... " >&6; }
14341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14342 $as_echo_n "(cached) " >&6
14343 fi
14344 ac_res=`eval 'as_val=${'$as_ac_Header'}
14345 $as_echo "$as_val"'`
14346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14347 $as_echo "$ac_res" >&6; }
14348 else
14349 # Is the header compilable?
14350 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14351 $as_echo_n "checking $ac_header usability... " >&6; }
14352 cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h. */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 $ac_includes_default
14359 #include <$ac_header>
14360 _ACEOF
14361 rm -f conftest.$ac_objext
14362 if { (ac_try="$ac_compile"
14363 case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366 esac
14367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14368 $as_echo "$ac_try_echo") >&5
14369 (eval "$ac_compile") 2>conftest.er1
14370 ac_status=$?
14371 grep -v '^ *+' conftest.er1 >conftest.err
14372 rm -f conftest.er1
14373 cat conftest.err >&5
14374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest.$ac_objext; then
14379 ac_header_compiler=yes
14380 else
14381 $as_echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_header_compiler=no
14385 fi
14386
14387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14389 $as_echo "$ac_header_compiler" >&6; }
14390
14391 # Is the header present?
14392 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14393 $as_echo_n "checking $ac_header presence... " >&6; }
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h. */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <$ac_header>
14401 _ACEOF
14402 if { (ac_try="$ac_cpp conftest.$ac_ext"
14403 case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406 esac
14407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14408 $as_echo "$ac_try_echo") >&5
14409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } >/dev/null && {
14416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 }; then
14419 ac_header_preproc=yes
14420 else
14421 $as_echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14423
14424 ac_header_preproc=no
14425 fi
14426
14427 rm -f conftest.err conftest.$ac_ext
14428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14429 $as_echo "$ac_header_preproc" >&6; }
14430
14431 # So? What about this header?
14432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14433 yes:no: )
14434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14435 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14438 ac_header_preproc=yes
14439 ;;
14440 no:yes:* )
14441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14442 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14444 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14446 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14448 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14452 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14453
14454 ;;
14455 esac
14456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14457 $as_echo_n "checking for $ac_header... " >&6; }
14458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14459 $as_echo_n "(cached) " >&6
14460 else
14461 eval "$as_ac_Header=\$ac_header_preproc"
14462 fi
14463 ac_res=`eval 'as_val=${'$as_ac_Header'}
14464 $as_echo "$as_val"'`
14465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14466 $as_echo "$ac_res" >&6; }
14467
14468 fi
14469 as_val=`eval 'as_val=${'$as_ac_Header'}
14470 $as_echo "$as_val"'`
14471 if test "x$as_val" = x""yes; then
14472 cat >>confdefs.h <<_ACEOF
14473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474 _ACEOF
14475
14476 else
14477 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14478 $as_echo "$as_me: error: bailing out" >&2;}
14479 { (exit 1); exit 1; }; }
14480 fi
14481
14482 done
14483
14484
14485 for ac_func in socket
14486 do
14487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14488 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14489 $as_echo_n "checking for $ac_func... " >&6; }
14490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14491 $as_echo_n "(cached) " >&6
14492 else
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14501 #define $ac_func innocuous_$ac_func
14502
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below.
14505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14506 <limits.h> exists even on freestanding compilers. */
14507
14508 #ifdef __STDC__
14509 # include <limits.h>
14510 #else
14511 # include <assert.h>
14512 #endif
14513
14514 #undef $ac_func
14515
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14519 #ifdef __cplusplus
14520 extern "C"
14521 #endif
14522 char $ac_func ();
14523 /* The GNU C library defines this for functions which it implements
14524 to always fail with ENOSYS. Some functions are actually named
14525 something starting with __ and the normal name is an alias. */
14526 #if defined __stub_$ac_func || defined __stub___$ac_func
14527 choke me
14528 #endif
14529
14530 int
14531 main ()
14532 {
14533 return $ac_func ();
14534 ;
14535 return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (ac_try="$ac_link"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_link") 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && {
14553 test -z "$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 } && test -s conftest$ac_exeext && {
14556 test "$cross_compiling" = yes ||
14557 $as_test_x conftest$ac_exeext
14558 }; then
14559 eval "$as_ac_var=yes"
14560 else
14561 $as_echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 eval "$as_ac_var=no"
14565 fi
14566
14567 rm -rf conftest.dSYM
14568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14569 conftest$ac_exeext conftest.$ac_ext
14570 fi
14571 ac_res=`eval 'as_val=${'$as_ac_var'}
14572 $as_echo "$as_val"'`
14573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14574 $as_echo "$ac_res" >&6; }
14575 as_val=`eval 'as_val=${'$as_ac_var'}
14576 $as_echo "$as_val"'`
14577 if test "x$as_val" = x""yes; then
14578 cat >>confdefs.h <<_ACEOF
14579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14580 _ACEOF
14581
14582 else
14583 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14584 $as_echo "$as_me: error: bailing out" >&2;}
14585 { (exit 1); exit 1; }; }
14586 fi
14587 done
14588
14589 fi
14590
14591 if test x$HAVE_LIBDL = xyes; then
14592
14593 for ac_header in dlfcn.h
14594 do
14595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14597 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14598 $as_echo_n "checking for $ac_header... " >&6; }
14599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14600 $as_echo_n "(cached) " >&6
14601 fi
14602 ac_res=`eval 'as_val=${'$as_ac_Header'}
14603 $as_echo "$as_val"'`
14604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14605 $as_echo "$ac_res" >&6; }
14606 else
14607 # Is the header compilable?
14608 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14609 $as_echo_n "checking $ac_header usability... " >&6; }
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h. */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 $ac_includes_default
14617 #include <$ac_header>
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (ac_try="$ac_compile"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624 esac
14625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14626 $as_echo "$ac_try_echo") >&5
14627 (eval "$ac_compile") 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && {
14634 test -z "$ac_c_werror_flag" ||
14635 test ! -s conftest.err
14636 } && test -s conftest.$ac_objext; then
14637 ac_header_compiler=yes
14638 else
14639 $as_echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 ac_header_compiler=no
14643 fi
14644
14645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14647 $as_echo "$ac_header_compiler" >&6; }
14648
14649 # Is the header present?
14650 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14651 $as_echo_n "checking $ac_header presence... " >&6; }
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h. */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 #include <$ac_header>
14659 _ACEOF
14660 if { (ac_try="$ac_cpp conftest.$ac_ext"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14666 $as_echo "$ac_try_echo") >&5
14667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } >/dev/null && {
14674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 }; then
14677 ac_header_preproc=yes
14678 else
14679 $as_echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_header_preproc=no
14683 fi
14684
14685 rm -f conftest.err conftest.$ac_ext
14686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14687 $as_echo "$ac_header_preproc" >&6; }
14688
14689 # So? What about this header?
14690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14691 yes:no: )
14692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14693 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14696 ac_header_preproc=yes
14697 ;;
14698 no:yes:* )
14699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14700 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14702 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14704 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14706 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14708 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14710 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14711
14712 ;;
14713 esac
14714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14715 $as_echo_n "checking for $ac_header... " >&6; }
14716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14717 $as_echo_n "(cached) " >&6
14718 else
14719 eval "$as_ac_Header=\$ac_header_preproc"
14720 fi
14721 ac_res=`eval 'as_val=${'$as_ac_Header'}
14722 $as_echo "$as_val"'`
14723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14724 $as_echo "$ac_res" >&6; }
14725
14726 fi
14727 as_val=`eval 'as_val=${'$as_ac_Header'}
14728 $as_echo "$as_val"'`
14729 if test "x$as_val" = x""yes; then
14730 cat >>confdefs.h <<_ACEOF
14731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14732 _ACEOF
14733
14734 else
14735 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14736 $as_echo "$as_me: error: bailing out" >&2;}
14737 { (exit 1); exit 1; }; }
14738 fi
14739
14740 done
14741
14742 fi
14743
14744 if test x$INTL = xyes; then
14745
14746 for ac_header in libintl.h
14747 do
14748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14751 $as_echo_n "checking for $ac_header... " >&6; }
14752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14753 $as_echo_n "(cached) " >&6
14754 fi
14755 ac_res=`eval 'as_val=${'$as_ac_Header'}
14756 $as_echo "$as_val"'`
14757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14758 $as_echo "$ac_res" >&6; }
14759 else
14760 # Is the header compilable?
14761 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14762 $as_echo_n "checking $ac_header usability... " >&6; }
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h. */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 $ac_includes_default
14770 #include <$ac_header>
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (ac_try="$ac_compile"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777 esac
14778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14779 $as_echo "$ac_try_echo") >&5
14780 (eval "$ac_compile") 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } && {
14787 test -z "$ac_c_werror_flag" ||
14788 test ! -s conftest.err
14789 } && test -s conftest.$ac_objext; then
14790 ac_header_compiler=yes
14791 else
14792 $as_echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 ac_header_compiler=no
14796 fi
14797
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14800 $as_echo "$ac_header_compiler" >&6; }
14801
14802 # Is the header present?
14803 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14804 $as_echo_n "checking $ac_header presence... " >&6; }
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 #include <$ac_header>
14812 _ACEOF
14813 if { (ac_try="$ac_cpp conftest.$ac_ext"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14819 $as_echo "$ac_try_echo") >&5
14820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } >/dev/null && {
14827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14828 test ! -s conftest.err
14829 }; then
14830 ac_header_preproc=yes
14831 else
14832 $as_echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_header_preproc=no
14836 fi
14837
14838 rm -f conftest.err conftest.$ac_ext
14839 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14840 $as_echo "$ac_header_preproc" >&6; }
14841
14842 # So? What about this header?
14843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14844 yes:no: )
14845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14846 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14849 ac_header_preproc=yes
14850 ;;
14851 no:yes:* )
14852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14853 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14855 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14857 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14859 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14863 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14864
14865 ;;
14866 esac
14867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14868 $as_echo_n "checking for $ac_header... " >&6; }
14869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870 $as_echo_n "(cached) " >&6
14871 else
14872 eval "$as_ac_Header=\$ac_header_preproc"
14873 fi
14874 ac_res=`eval 'as_val=${'$as_ac_Header'}
14875 $as_echo "$as_val"'`
14876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14877 $as_echo "$ac_res" >&6; }
14878
14879 fi
14880 as_val=`eval 'as_val=${'$as_ac_Header'}
14881 $as_echo "$as_val"'`
14882 if test "x$as_val" = x""yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14885 _ACEOF
14886
14887 else
14888 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14889 $as_echo "$as_me: error: bailing out" >&2;}
14890 { (exit 1); exit 1; }; }
14891 fi
14892
14893 done
14894
14895 fi
14896
14897 if test x$HAVE_SELINUX = xyes; then
14898
14899 for ac_header in selinux/selinux.h
14900 do
14901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14904 $as_echo_n "checking for $ac_header... " >&6; }
14905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14906 $as_echo_n "(cached) " >&6
14907 fi
14908 ac_res=`eval 'as_val=${'$as_ac_Header'}
14909 $as_echo "$as_val"'`
14910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14911 $as_echo "$ac_res" >&6; }
14912 else
14913 # Is the header compilable?
14914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14915 $as_echo_n "checking $ac_header usability... " >&6; }
14916 cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h. */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14922 $ac_includes_default
14923 #include <$ac_header>
14924 _ACEOF
14925 rm -f conftest.$ac_objext
14926 if { (ac_try="$ac_compile"
14927 case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14930 esac
14931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14932 $as_echo "$ac_try_echo") >&5
14933 (eval "$ac_compile") 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } && {
14940 test -z "$ac_c_werror_flag" ||
14941 test ! -s conftest.err
14942 } && test -s conftest.$ac_objext; then
14943 ac_header_compiler=yes
14944 else
14945 $as_echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 ac_header_compiler=no
14949 fi
14950
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14953 $as_echo "$ac_header_compiler" >&6; }
14954
14955 # Is the header present?
14956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14957 $as_echo_n "checking $ac_header presence... " >&6; }
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 #include <$ac_header>
14965 _ACEOF
14966 if { (ac_try="$ac_cpp conftest.$ac_ext"
14967 case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14970 esac
14971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972 $as_echo "$ac_try_echo") >&5
14973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } >/dev/null && {
14980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 }; then
14983 ac_header_preproc=yes
14984 else
14985 $as_echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988 ac_header_preproc=no
14989 fi
14990
14991 rm -f conftest.err conftest.$ac_ext
14992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993 $as_echo "$ac_header_preproc" >&6; }
14994
14995 # So? What about this header?
14996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14997 yes:no: )
14998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002 ac_header_preproc=yes
15003 ;;
15004 no:yes:* )
15005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15008 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15012 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15017
15018 ;;
15019 esac
15020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15021 $as_echo_n "checking for $ac_header... " >&6; }
15022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15023 $as_echo_n "(cached) " >&6
15024 else
15025 eval "$as_ac_Header=\$ac_header_preproc"
15026 fi
15027 ac_res=`eval 'as_val=${'$as_ac_Header'}
15028 $as_echo "$as_val"'`
15029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15030 $as_echo "$ac_res" >&6; }
15031
15032 fi
15033 as_val=`eval 'as_val=${'$as_ac_Header'}
15034 $as_echo "$as_val"'`
15035 if test "x$as_val" = x""yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15038 _ACEOF
15039
15040 else
15041 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15042 $as_echo "$as_me: error: bailing out" >&2;}
15043 { (exit 1); exit 1; }; }
15044 fi
15045
15046 done
15047
15048 fi
15049
15050 if test x$UDEV_SYNC = xyes; then
15051
15052
15053 for ac_header in sys/ipc.h sys/sem.h
15054 do
15055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15058 $as_echo_n "checking for $ac_header... " >&6; }
15059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15060 $as_echo_n "(cached) " >&6
15061 fi
15062 ac_res=`eval 'as_val=${'$as_ac_Header'}
15063 $as_echo "$as_val"'`
15064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15065 $as_echo "$ac_res" >&6; }
15066 else
15067 # Is the header compilable?
15068 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15069 $as_echo_n "checking $ac_header usability... " >&6; }
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 $ac_includes_default
15077 #include <$ac_header>
15078 _ACEOF
15079 rm -f conftest.$ac_objext
15080 if { (ac_try="$ac_compile"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084 esac
15085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15086 $as_echo "$ac_try_echo") >&5
15087 (eval "$ac_compile") 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } && {
15094 test -z "$ac_c_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest.$ac_objext; then
15097 ac_header_compiler=yes
15098 else
15099 $as_echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 ac_header_compiler=no
15103 fi
15104
15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15106 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15107 $as_echo "$ac_header_compiler" >&6; }
15108
15109 # Is the header present?
15110 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15111 $as_echo_n "checking $ac_header presence... " >&6; }
15112 cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h. */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 #include <$ac_header>
15119 _ACEOF
15120 if { (ac_try="$ac_cpp conftest.$ac_ext"
15121 case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124 esac
15125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15126 $as_echo "$ac_try_echo") >&5
15127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15128 ac_status=$?
15129 grep -v '^ *+' conftest.er1 >conftest.err
15130 rm -f conftest.er1
15131 cat conftest.err >&5
15132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } >/dev/null && {
15134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15135 test ! -s conftest.err
15136 }; then
15137 ac_header_preproc=yes
15138 else
15139 $as_echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142 ac_header_preproc=no
15143 fi
15144
15145 rm -f conftest.err conftest.$ac_ext
15146 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15147 $as_echo "$ac_header_preproc" >&6; }
15148
15149 # So? What about this header?
15150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15151 yes:no: )
15152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15153 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15155 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15156 ac_header_preproc=yes
15157 ;;
15158 no:yes:* )
15159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15160 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15162 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15164 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15166 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15170 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15171
15172 ;;
15173 esac
15174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15175 $as_echo_n "checking for $ac_header... " >&6; }
15176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177 $as_echo_n "(cached) " >&6
15178 else
15179 eval "$as_ac_Header=\$ac_header_preproc"
15180 fi
15181 ac_res=`eval 'as_val=${'$as_ac_Header'}
15182 $as_echo "$as_val"'`
15183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15184 $as_echo "$ac_res" >&6; }
15185
15186 fi
15187 as_val=`eval 'as_val=${'$as_ac_Header'}
15188 $as_echo "$as_val"'`
15189 if test "x$as_val" = x""yes; then
15190 cat >>confdefs.h <<_ACEOF
15191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15192 _ACEOF
15193
15194 else
15195 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15196 $as_echo "$as_me: error: bailing out" >&2;}
15197 { (exit 1); exit 1; }; }
15198 fi
15199
15200 done
15201
15202 fi
15203
15204 ################################################################################
15205 # Extract the first word of "modprobe", so it can be a program name with args.
15206 set dummy modprobe; ac_word=$2
15207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15208 $as_echo_n "checking for $ac_word... " >&6; }
15209 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15210 $as_echo_n "(cached) " >&6
15211 else
15212 case $MODPROBE_CMD in
15213 [\\/]* | ?:[\\/]*)
15214 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15215 ;;
15216 *)
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $PATH
15219 do
15220 IFS=$as_save_IFS
15221 test -z "$as_dir" && as_dir=.
15222 for ac_exec_ext in '' $ac_executable_extensions; do
15223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15224 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15226 break 2
15227 fi
15228 done
15229 done
15230 IFS=$as_save_IFS
15231
15232 ;;
15233 esac
15234 fi
15235 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15236 if test -n "$MODPROBE_CMD"; then
15237 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15238 $as_echo "$MODPROBE_CMD" >&6; }
15239 else
15240 { $as_echo "$as_me:$LINENO: result: no" >&5
15241 $as_echo "no" >&6; }
15242 fi
15243
15244
15245
15246 if test x$MODPROBE_CMD != x; then
15247
15248 cat >>confdefs.h <<_ACEOF
15249 #define MODPROBE_CMD "$MODPROBE_CMD"
15250 _ACEOF
15251
15252 fi
15253
15254 ################################################################################
15255
15256
15257 if test "$BUILD_DMEVENTD" = yes; then
15258
15259 # Check whether --with-dmeventd-pidfile was given.
15260 if test "${with_dmeventd_pidfile+set}" = set; then
15261 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15262 #define DMEVENTD_PIDFILE "$withval"
15263 _ACEOF
15264
15265 else
15266 cat >>confdefs.h <<_ACEOF
15267 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15268 _ACEOF
15269
15270 fi
15271
15272 fi
15273
15274
15275
15276 if test "$BUILD_DMEVENTD" = yes; then
15277 dmeventd_prefix="$exec_prefix"
15278 if test "x$dmeventd_prefix" = "xNONE"; then
15279 dmeventd_prefix="$prefix"
15280 fi
15281 if test "x$dmeventd_prefix" = "xNONE"; then
15282 dmeventd_prefix=""
15283 fi
15284
15285 # Check whether --with-dmeventd-path was given.
15286 if test "${with_dmeventd_path+set}" = set; then
15287 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15288 #define DMEVENTD_PATH "$withval"
15289 _ACEOF
15290
15291 else
15292 cat >>confdefs.h <<_ACEOF
15293 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15294 _ACEOF
15295
15296 fi
15297
15298 fi
15299
15300 ################################################################################
15301 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15302 $as_echo_n "checking for kernel interface choice... " >&6; }
15303
15304 # Check whether --with-interface was given.
15305 if test "${with_interface+set}" = set; then
15306 withval=$with_interface; interface="$withval"
15307 else
15308 interface=ioctl
15309 fi
15310
15311 if [ "x$interface" != xioctl ];
15312 then
15313 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15314 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15315 { (exit 1); exit 1; }; }
15316 fi
15317 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15318 $as_echo "$interface" >&6; }
15319
15320 ################################################################################
15321 DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
15322
15323 cat >>confdefs.h <<_ACEOF
15324 #define DM_LIB_VERSION $DM_LIB_VERSION
15325 _ACEOF
15326
15327
15328 DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15329
15330 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
15331
15332 VER=`cat VERSION`
15333 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15334 VER=`echo "$VER" | $AWK '{print $1}'`
15335 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15336 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15337 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15338 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15339 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15340 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15341
15342 ################################################################################
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426 ################################################################################
15427 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15428
15429 cat >confcache <<\_ACEOF
15430 # This file is a shell script that caches the results of configure
15431 # tests run on this system so they can be shared between configure
15432 # scripts and configure runs, see configure's option --config-cache.
15433 # It is not useful on other systems. If it contains results you don't
15434 # want to keep, you may remove or edit it.
15435 #
15436 # config.status only pays attention to the cache file if you give it
15437 # the --recheck option to rerun configure.
15438 #
15439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15441 # following values.
15442
15443 _ACEOF
15444
15445 # The following way of writing the cache mishandles newlines in values,
15446 # but we know of no workaround that is simple, portable, and efficient.
15447 # So, we kill variables containing newlines.
15448 # Ultrix sh set writes to stderr and can't be redirected directly,
15449 # and sets the high bit in the cache file unless we assign to the vars.
15450 (
15451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15452 eval ac_val=\$$ac_var
15453 case $ac_val in #(
15454 *${as_nl}*)
15455 case $ac_var in #(
15456 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15457 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15458 esac
15459 case $ac_var in #(
15460 _ | IFS | as_nl) ;; #(
15461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15462 *) $as_unset $ac_var ;;
15463 esac ;;
15464 esac
15465 done
15466
15467 (set) 2>&1 |
15468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15469 *${as_nl}ac_space=\ *)
15470 # `set' does not quote correctly, so add quotes (double-quote
15471 # substitution turns \\\\ into \\, and sed turns \\ into \).
15472 sed -n \
15473 "s/'/'\\\\''/g;
15474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15475 ;; #(
15476 *)
15477 # `set' quotes correctly as required by POSIX, so do not add quotes.
15478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15479 ;;
15480 esac |
15481 sort
15482 ) |
15483 sed '
15484 /^ac_cv_env_/b end
15485 t clear
15486 :clear
15487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15488 t end
15489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15490 :end' >>confcache
15491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15492 if test -w "$cache_file"; then
15493 test "x$cache_file" != "x/dev/null" &&
15494 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15495 $as_echo "$as_me: updating cache $cache_file" >&6;}
15496 cat confcache >$cache_file
15497 else
15498 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15499 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15500 fi
15501 fi
15502 rm -f confcache
15503
15504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15505 # Let make expand exec_prefix.
15506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15507
15508 DEFS=-DHAVE_CONFIG_H
15509
15510 ac_libobjs=
15511 ac_ltlibobjs=
15512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15513 # 1. Remove the extension, and $U if already installed.
15514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15515 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15517 # will be set to the directory where LIBOBJS objects are built.
15518 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15519 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15520 done
15521 LIBOBJS=$ac_libobjs
15522
15523 LTLIBOBJS=$ac_ltlibobjs
15524
15525
15526
15527 : ${CONFIG_STATUS=./config.status}
15528 ac_write_fail=0
15529 ac_clean_files_save=$ac_clean_files
15530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15531 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15532 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15533 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534 #! $SHELL
15535 # Generated by $as_me.
15536 # Run this file to recreate the current configuration.
15537 # Compiler output produced by configure, useful for debugging
15538 # configure, is in config.log if it exists.
15539
15540 debug=false
15541 ac_cs_recheck=false
15542 ac_cs_silent=false
15543 SHELL=\${CONFIG_SHELL-$SHELL}
15544 _ACEOF
15545
15546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547 ## --------------------- ##
15548 ## M4sh Initialization. ##
15549 ## --------------------- ##
15550
15551 # Be more Bourne compatible
15552 DUALCASE=1; export DUALCASE # for MKS sh
15553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15554 emulate sh
15555 NULLCMD=:
15556 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15557 # is contrary to our usage. Disable this feature.
15558 alias -g '${1+"$@"}'='"$@"'
15559 setopt NO_GLOB_SUBST
15560 else
15561 case `(set -o) 2>/dev/null` in
15562 *posix*) set -o posix ;;
15563 esac
15564
15565 fi
15566
15567
15568
15569
15570 # PATH needs CR
15571 # Avoid depending upon Character Ranges.
15572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15575 as_cr_digits='0123456789'
15576 as_cr_alnum=$as_cr_Letters$as_cr_digits
15577
15578 as_nl='
15579 '
15580 export as_nl
15581 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15582 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15583 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15585 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15586 as_echo='printf %s\n'
15587 as_echo_n='printf %s'
15588 else
15589 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15590 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15591 as_echo_n='/usr/ucb/echo -n'
15592 else
15593 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15594 as_echo_n_body='eval
15595 arg=$1;
15596 case $arg in
15597 *"$as_nl"*)
15598 expr "X$arg" : "X\\(.*\\)$as_nl";
15599 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15600 esac;
15601 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15602 '
15603 export as_echo_n_body
15604 as_echo_n='sh -c $as_echo_n_body as_echo'
15605 fi
15606 export as_echo_body
15607 as_echo='sh -c $as_echo_body as_echo'
15608 fi
15609
15610 # The user is always right.
15611 if test "${PATH_SEPARATOR+set}" != set; then
15612 PATH_SEPARATOR=:
15613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15614 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15615 PATH_SEPARATOR=';'
15616 }
15617 fi
15618
15619 # Support unset when possible.
15620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15621 as_unset=unset
15622 else
15623 as_unset=false
15624 fi
15625
15626
15627 # IFS
15628 # We need space, tab and new line, in precisely that order. Quoting is
15629 # there to prevent editors from complaining about space-tab.
15630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15631 # splitting by setting IFS to empty value.)
15632 IFS=" "" $as_nl"
15633
15634 # Find who we are. Look in the path if we contain no directory separator.
15635 case $0 in
15636 *[\\/]* ) as_myself=$0 ;;
15637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15639 do
15640 IFS=$as_save_IFS
15641 test -z "$as_dir" && as_dir=.
15642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15643 done
15644 IFS=$as_save_IFS
15645
15646 ;;
15647 esac
15648 # We did not find ourselves, most probably we were run as `sh COMMAND'
15649 # in which case we are not to be found in the path.
15650 if test "x$as_myself" = x; then
15651 as_myself=$0
15652 fi
15653 if test ! -f "$as_myself"; then
15654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15655 { (exit 1); exit 1; }
15656 fi
15657
15658 # Work around bugs in pre-3.0 UWIN ksh.
15659 for as_var in ENV MAIL MAILPATH
15660 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15661 done
15662 PS1='$ '
15663 PS2='> '
15664 PS4='+ '
15665
15666 # NLS nuisances.
15667 LC_ALL=C
15668 export LC_ALL
15669 LANGUAGE=C
15670 export LANGUAGE
15671
15672 # Required to use basename.
15673 if expr a : '\(a\)' >/dev/null 2>&1 &&
15674 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15675 as_expr=expr
15676 else
15677 as_expr=false
15678 fi
15679
15680 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15681 as_basename=basename
15682 else
15683 as_basename=false
15684 fi
15685
15686
15687 # Name of the executable.
15688 as_me=`$as_basename -- "$0" ||
15689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15690 X"$0" : 'X\(//\)$' \| \
15691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15692 $as_echo X/"$0" |
15693 sed '/^.*\/\([^/][^/]*\)\/*$/{
15694 s//\1/
15695 q
15696 }
15697 /^X\/\(\/\/\)$/{
15698 s//\1/
15699 q
15700 }
15701 /^X\/\(\/\).*/{
15702 s//\1/
15703 q
15704 }
15705 s/.*/./; q'`
15706
15707 # CDPATH.
15708 $as_unset CDPATH
15709
15710
15711
15712 as_lineno_1=$LINENO
15713 as_lineno_2=$LINENO
15714 test "x$as_lineno_1" != "x$as_lineno_2" &&
15715 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15716
15717 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15718 # uniformly replaced by the line number. The first 'sed' inserts a
15719 # line-number line after each line using $LINENO; the second 'sed'
15720 # does the real work. The second script uses 'N' to pair each
15721 # line-number line with the line containing $LINENO, and appends
15722 # trailing '-' during substitution so that $LINENO is not a special
15723 # case at line end.
15724 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15725 # scripts with optimization help from Paolo Bonzini. Blame Lee
15726 # E. McMahon (1931-1989) for sed's syntax. :-)
15727 sed -n '
15728 p
15729 /[$]LINENO/=
15730 ' <$as_myself |
15731 sed '
15732 s/[$]LINENO.*/&-/
15733 t lineno
15734 b
15735 :lineno
15736 N
15737 :loop
15738 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15739 t loop
15740 s/-\n.*//
15741 ' >$as_me.lineno &&
15742 chmod +x "$as_me.lineno" ||
15743 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15744 { (exit 1); exit 1; }; }
15745
15746 # Don't try to exec as it changes $[0], causing all sort of problems
15747 # (the dirname of $[0] is not the place where we might find the
15748 # original and so on. Autoconf is especially sensitive to this).
15749 . "./$as_me.lineno"
15750 # Exit status is that of the last command.
15751 exit
15752 }
15753
15754
15755 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15756 as_dirname=dirname
15757 else
15758 as_dirname=false
15759 fi
15760
15761 ECHO_C= ECHO_N= ECHO_T=
15762 case `echo -n x` in
15763 -n*)
15764 case `echo 'x\c'` in
15765 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15766 *) ECHO_C='\c';;
15767 esac;;
15768 *)
15769 ECHO_N='-n';;
15770 esac
15771 if expr a : '\(a\)' >/dev/null 2>&1 &&
15772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15773 as_expr=expr
15774 else
15775 as_expr=false
15776 fi
15777
15778 rm -f conf$$ conf$$.exe conf$$.file
15779 if test -d conf$$.dir; then
15780 rm -f conf$$.dir/conf$$.file
15781 else
15782 rm -f conf$$.dir
15783 mkdir conf$$.dir 2>/dev/null
15784 fi
15785 if (echo >conf$$.file) 2>/dev/null; then
15786 if ln -s conf$$.file conf$$ 2>/dev/null; then
15787 as_ln_s='ln -s'
15788 # ... but there are two gotchas:
15789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15791 # In both cases, we have to default to `cp -p'.
15792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15793 as_ln_s='cp -p'
15794 elif ln conf$$.file conf$$ 2>/dev/null; then
15795 as_ln_s=ln
15796 else
15797 as_ln_s='cp -p'
15798 fi
15799 else
15800 as_ln_s='cp -p'
15801 fi
15802 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15803 rmdir conf$$.dir 2>/dev/null
15804
15805 if mkdir -p . 2>/dev/null; then
15806 as_mkdir_p=:
15807 else
15808 test -d ./-p && rmdir ./-p
15809 as_mkdir_p=false
15810 fi
15811
15812 if test -x / >/dev/null 2>&1; then
15813 as_test_x='test -x'
15814 else
15815 if ls -dL / >/dev/null 2>&1; then
15816 as_ls_L_option=L
15817 else
15818 as_ls_L_option=
15819 fi
15820 as_test_x='
15821 eval sh -c '\''
15822 if test -d "$1"; then
15823 test -d "$1/.";
15824 else
15825 case $1 in
15826 -*)set "./$1";;
15827 esac;
15828 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15829 ???[sx]*):;;*)false;;esac;fi
15830 '\'' sh
15831 '
15832 fi
15833 as_executable_p=$as_test_x
15834
15835 # Sed expression to map a string onto a valid CPP name.
15836 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15837
15838 # Sed expression to map a string onto a valid variable name.
15839 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15840
15841
15842 exec 6>&1
15843
15844 # Save the log message, to keep $[0] and so on meaningful, and to
15845 # report actual input values of CONFIG_FILES etc. instead of their
15846 # values after options handling.
15847 ac_log="
15848 This file was extended by $as_me, which was
15849 generated by GNU Autoconf 2.63. Invocation command line was
15850
15851 CONFIG_FILES = $CONFIG_FILES
15852 CONFIG_HEADERS = $CONFIG_HEADERS
15853 CONFIG_LINKS = $CONFIG_LINKS
15854 CONFIG_COMMANDS = $CONFIG_COMMANDS
15855 $ $0 $@
15856
15857 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15858 "
15859
15860 _ACEOF
15861
15862 case $ac_config_files in *"
15863 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15864 esac
15865
15866 case $ac_config_headers in *"
15867 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15868 esac
15869
15870
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872 # Files that config.status was made for.
15873 config_files="$ac_config_files"
15874 config_headers="$ac_config_headers"
15875
15876 _ACEOF
15877
15878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15879 ac_cs_usage="\
15880 \`$as_me' instantiates files from templates according to the
15881 current configuration.
15882
15883 Usage: $0 [OPTION]... [FILE]...
15884
15885 -h, --help print this help, then exit
15886 -V, --version print version number and configuration settings, then exit
15887 -q, --quiet, --silent
15888 do not print progress messages
15889 -d, --debug don't remove temporary files
15890 --recheck update $as_me by reconfiguring in the same conditions
15891 --file=FILE[:TEMPLATE]
15892 instantiate the configuration file FILE
15893 --header=FILE[:TEMPLATE]
15894 instantiate the configuration header FILE
15895
15896 Configuration files:
15897 $config_files
15898
15899 Configuration headers:
15900 $config_headers
15901
15902 Report bugs to <bug-autoconf@gnu.org>."
15903
15904 _ACEOF
15905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15906 ac_cs_version="\\
15907 config.status
15908 configured by $0, generated by GNU Autoconf 2.63,
15909 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15910
15911 Copyright (C) 2008 Free Software Foundation, Inc.
15912 This config.status script is free software; the Free Software Foundation
15913 gives unlimited permission to copy, distribute and modify it."
15914
15915 ac_pwd='$ac_pwd'
15916 srcdir='$srcdir'
15917 INSTALL='$INSTALL'
15918 MKDIR_P='$MKDIR_P'
15919 AWK='$AWK'
15920 test -n "\$AWK" || AWK=awk
15921 _ACEOF
15922
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 # The default lists apply if the user does not specify any file.
15925 ac_need_defaults=:
15926 while test $# != 0
15927 do
15928 case $1 in
15929 --*=*)
15930 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15931 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15932 ac_shift=:
15933 ;;
15934 *)
15935 ac_option=$1
15936 ac_optarg=$2
15937 ac_shift=shift
15938 ;;
15939 esac
15940
15941 case $ac_option in
15942 # Handling of the options.
15943 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15944 ac_cs_recheck=: ;;
15945 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15946 $as_echo "$ac_cs_version"; exit ;;
15947 --debug | --debu | --deb | --de | --d | -d )
15948 debug=: ;;
15949 --file | --fil | --fi | --f )
15950 $ac_shift
15951 case $ac_optarg in
15952 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15953 esac
15954 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15955 ac_need_defaults=false;;
15956 --header | --heade | --head | --hea )
15957 $ac_shift
15958 case $ac_optarg in
15959 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15960 esac
15961 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15962 ac_need_defaults=false;;
15963 --he | --h)
15964 # Conflict between --help and --header
15965 { $as_echo "$as_me: error: ambiguous option: $1
15966 Try \`$0 --help' for more information." >&2
15967 { (exit 1); exit 1; }; };;
15968 --help | --hel | -h )
15969 $as_echo "$ac_cs_usage"; exit ;;
15970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15972 ac_cs_silent=: ;;
15973
15974 # This is an error.
15975 -*) { $as_echo "$as_me: error: unrecognized option: $1
15976 Try \`$0 --help' for more information." >&2
15977 { (exit 1); exit 1; }; } ;;
15978
15979 *) ac_config_targets="$ac_config_targets $1"
15980 ac_need_defaults=false ;;
15981
15982 esac
15983 shift
15984 done
15985
15986 ac_configure_extra_args=
15987
15988 if $ac_cs_silent; then
15989 exec 6>/dev/null
15990 ac_configure_extra_args="$ac_configure_extra_args --silent"
15991 fi
15992
15993 _ACEOF
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 if \$ac_cs_recheck; then
15996 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15997 shift
15998 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15999 CONFIG_SHELL='$SHELL'
16000 export CONFIG_SHELL
16001 exec "\$@"
16002 fi
16003
16004 _ACEOF
16005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006 exec 5>>config.log
16007 {
16008 echo
16009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16010 ## Running $as_me. ##
16011 _ASBOX
16012 $as_echo "$ac_log"
16013 } >&5
16014
16015 _ACEOF
16016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16017 _ACEOF
16018
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020
16021 # Handling of arguments.
16022 for ac_config_target in $ac_config_targets
16023 do
16024 case $ac_config_target in
16025 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16027 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16028 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16029 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16030 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16031 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16032 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16033 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16034 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16035 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16036 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16037 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16038 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16039 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16040 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16041 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16042 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16043 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16044 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16045 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16046 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16047 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16048 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16049 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16050 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16051 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16052 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16053 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16054 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16055 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16056 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16057 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16058
16059 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16060 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16061 { (exit 1); exit 1; }; };;
16062 esac
16063 done
16064
16065
16066 # If the user did not use the arguments to specify the items to instantiate,
16067 # then the envvar interface is used. Set only those that are not.
16068 # We use the long form for the default assignment because of an extremely
16069 # bizarre bug on SunOS 4.1.3.
16070 if $ac_need_defaults; then
16071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16073 fi
16074
16075 # Have a temporary directory for convenience. Make it in the build tree
16076 # simply because there is no reason against having it here, and in addition,
16077 # creating and moving files from /tmp can sometimes cause problems.
16078 # Hook for its removal unless debugging.
16079 # Note that there is a small window in which the directory will not be cleaned:
16080 # after its creation but before its name has been assigned to `$tmp'.
16081 $debug ||
16082 {
16083 tmp=
16084 trap 'exit_status=$?
16085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16086 ' 0
16087 trap '{ (exit 1); exit 1; }' 1 2 13 15
16088 }
16089 # Create a (secure) tmp directory for tmp files.
16090
16091 {
16092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16093 test -n "$tmp" && test -d "$tmp"
16094 } ||
16095 {
16096 tmp=./conf$$-$RANDOM
16097 (umask 077 && mkdir "$tmp")
16098 } ||
16099 {
16100 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16101 { (exit 1); exit 1; }
16102 }
16103
16104 # Set up the scripts for CONFIG_FILES section.
16105 # No need to generate them if there are no CONFIG_FILES.
16106 # This happens for instance with `./config.status config.h'.
16107 if test -n "$CONFIG_FILES"; then
16108
16109
16110 ac_cr=' '
16111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16113 ac_cs_awk_cr='\\r'
16114 else
16115 ac_cs_awk_cr=$ac_cr
16116 fi
16117
16118 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16119 _ACEOF
16120
16121
16122 {
16123 echo "cat >conf$$subs.awk <<_ACEOF" &&
16124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16125 echo "_ACEOF"
16126 } >conf$$subs.sh ||
16127 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16128 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16129 { (exit 1); exit 1; }; }
16130 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16131 ac_delim='%!_!# '
16132 for ac_last_try in false false false false false :; do
16133 . ./conf$$subs.sh ||
16134 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16135 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16136 { (exit 1); exit 1; }; }
16137
16138 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16139 if test $ac_delim_n = $ac_delim_num; then
16140 break
16141 elif $ac_last_try; then
16142 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16143 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16144 { (exit 1); exit 1; }; }
16145 else
16146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16147 fi
16148 done
16149 rm -f conf$$subs.sh
16150
16151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16152 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16153 _ACEOF
16154 sed -n '
16155 h
16156 s/^/S["/; s/!.*/"]=/
16157 p
16158 g
16159 s/^[^!]*!//
16160 :repl
16161 t repl
16162 s/'"$ac_delim"'$//
16163 t delim
16164 :nl
16165 h
16166 s/\(.\{148\}\).*/\1/
16167 t more1
16168 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16169 p
16170 n
16171 b repl
16172 :more1
16173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16174 p
16175 g
16176 s/.\{148\}//
16177 t nl
16178 :delim
16179 h
16180 s/\(.\{148\}\).*/\1/
16181 t more2
16182 s/["\\]/\\&/g; s/^/"/; s/$/"/
16183 p
16184 b
16185 :more2
16186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16187 p
16188 g
16189 s/.\{148\}//
16190 t delim
16191 ' <conf$$subs.awk | sed '
16192 /^[^""]/{
16193 N
16194 s/\n//
16195 }
16196 ' >>$CONFIG_STATUS || ac_write_fail=1
16197 rm -f conf$$subs.awk
16198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199 _ACAWK
16200 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16201 for (key in S) S_is_set[key] = 1
16202 FS = "\a"
16203
16204 }
16205 {
16206 line = $ 0
16207 nfields = split(line, field, "@")
16208 substed = 0
16209 len = length(field[1])
16210 for (i = 2; i < nfields; i++) {
16211 key = field[i]
16212 keylen = length(key)
16213 if (S_is_set[key]) {
16214 value = S[key]
16215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16216 len += length(value) + length(field[++i])
16217 substed = 1
16218 } else
16219 len += 1 + keylen
16220 }
16221
16222 print line
16223 }
16224
16225 _ACAWK
16226 _ACEOF
16227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16228 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16229 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16230 else
16231 cat
16232 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16233 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16234 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16235 { (exit 1); exit 1; }; }
16236 _ACEOF
16237
16238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16240 # trailing colons and then remove the whole line if VPATH becomes empty
16241 # (actually we leave an empty line to preserve line numbers).
16242 if test "x$srcdir" = x.; then
16243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16244 s/:*\$(srcdir):*/:/
16245 s/:*\${srcdir}:*/:/
16246 s/:*@srcdir@:*/:/
16247 s/^\([^=]*=[ ]*\):*/\1/
16248 s/:*$//
16249 s/^[^=]*=[ ]*$//
16250 }'
16251 fi
16252
16253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16254 fi # test -n "$CONFIG_FILES"
16255
16256 # Set up the scripts for CONFIG_HEADERS section.
16257 # No need to generate them if there are no CONFIG_HEADERS.
16258 # This happens for instance with `./config.status Makefile'.
16259 if test -n "$CONFIG_HEADERS"; then
16260 cat >"$tmp/defines.awk" <<\_ACAWK ||
16261 BEGIN {
16262 _ACEOF
16263
16264 # Transform confdefs.h into an awk script `defines.awk', embedded as
16265 # here-document in config.status, that substitutes the proper values into
16266 # config.h.in to produce config.h.
16267
16268 # Create a delimiter string that does not exist in confdefs.h, to ease
16269 # handling of long lines.
16270 ac_delim='%!_!# '
16271 for ac_last_try in false false :; do
16272 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16273 if test -z "$ac_t"; then
16274 break
16275 elif $ac_last_try; then
16276 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16277 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16278 { (exit 1); exit 1; }; }
16279 else
16280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16281 fi
16282 done
16283
16284 # For the awk script, D is an array of macro values keyed by name,
16285 # likewise P contains macro parameters if any. Preserve backslash
16286 # newline sequences.
16287
16288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16289 sed -n '
16290 s/.\{148\}/&'"$ac_delim"'/g
16291 t rset
16292 :rset
16293 s/^[ ]*#[ ]*define[ ][ ]*/ /
16294 t def
16295 d
16296 :def
16297 s/\\$//
16298 t bsnl
16299 s/["\\]/\\&/g
16300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16301 D["\1"]=" \3"/p
16302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16303 d
16304 :bsnl
16305 s/["\\]/\\&/g
16306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16307 D["\1"]=" \3\\\\\\n"\\/p
16308 t cont
16309 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16310 t cont
16311 d
16312 :cont
16313 n
16314 s/.\{148\}/&'"$ac_delim"'/g
16315 t clear
16316 :clear
16317 s/\\$//
16318 t bsnlc
16319 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16320 d
16321 :bsnlc
16322 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16323 b cont
16324 ' <confdefs.h | sed '
16325 s/'"$ac_delim"'/"\\\
16326 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16327
16328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16329 for (key in D) D_is_set[key] = 1
16330 FS = "\a"
16331 }
16332 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16333 line = \$ 0
16334 split(line, arg, " ")
16335 if (arg[1] == "#") {
16336 defundef = arg[2]
16337 mac1 = arg[3]
16338 } else {
16339 defundef = substr(arg[1], 2)
16340 mac1 = arg[2]
16341 }
16342 split(mac1, mac2, "(") #)
16343 macro = mac2[1]
16344 prefix = substr(line, 1, index(line, defundef) - 1)
16345 if (D_is_set[macro]) {
16346 # Preserve the white space surrounding the "#".
16347 print prefix "define", macro P[macro] D[macro]
16348 next
16349 } else {
16350 # Replace #undef with comments. This is necessary, for example,
16351 # in the case of _POSIX_SOURCE, which is predefined and required
16352 # on some systems where configure will not decide to define it.
16353 if (defundef == "undef") {
16354 print "/*", prefix defundef, macro, "*/"
16355 next
16356 }
16357 }
16358 }
16359 { print }
16360 _ACAWK
16361 _ACEOF
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16364 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16365 { (exit 1); exit 1; }; }
16366 fi # test -n "$CONFIG_HEADERS"
16367
16368
16369 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16370 shift
16371 for ac_tag
16372 do
16373 case $ac_tag in
16374 :[FHLC]) ac_mode=$ac_tag; continue;;
16375 esac
16376 case $ac_mode$ac_tag in
16377 :[FHL]*:*);;
16378 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16379 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16380 { (exit 1); exit 1; }; };;
16381 :[FH]-) ac_tag=-:-;;
16382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16383 esac
16384 ac_save_IFS=$IFS
16385 IFS=:
16386 set x $ac_tag
16387 IFS=$ac_save_IFS
16388 shift
16389 ac_file=$1
16390 shift
16391
16392 case $ac_mode in
16393 :L) ac_source=$1;;
16394 :[FH])
16395 ac_file_inputs=
16396 for ac_f
16397 do
16398 case $ac_f in
16399 -) ac_f="$tmp/stdin";;
16400 *) # Look for the file first in the build tree, then in the source tree
16401 # (if the path is not absolute). The absolute path cannot be DOS-style,
16402 # because $ac_f cannot contain `:'.
16403 test -f "$ac_f" ||
16404 case $ac_f in
16405 [\\/$]*) false;;
16406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16407 esac ||
16408 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16409 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16410 { (exit 1); exit 1; }; };;
16411 esac
16412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16413 ac_file_inputs="$ac_file_inputs '$ac_f'"
16414 done
16415
16416 # Let's still pretend it is `configure' which instantiates (i.e., don't
16417 # use $as_me), people would be surprised to read:
16418 # /* config.h. Generated by config.status. */
16419 configure_input='Generated from '`
16420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16421 `' by configure.'
16422 if test x"$ac_file" != x-; then
16423 configure_input="$ac_file. $configure_input"
16424 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16425 $as_echo "$as_me: creating $ac_file" >&6;}
16426 fi
16427 # Neutralize special characters interpreted by sed in replacement strings.
16428 case $configure_input in #(
16429 *\&* | *\|* | *\\* )
16430 ac_sed_conf_input=`$as_echo "$configure_input" |
16431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16432 *) ac_sed_conf_input=$configure_input;;
16433 esac
16434
16435 case $ac_tag in
16436 *:-:* | *:-) cat >"$tmp/stdin" \
16437 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16438 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16439 { (exit 1); exit 1; }; } ;;
16440 esac
16441 ;;
16442 esac
16443
16444 ac_dir=`$as_dirname -- "$ac_file" ||
16445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 X"$ac_file" : 'X\(//\)[^/]' \| \
16447 X"$ac_file" : 'X\(//\)$' \| \
16448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16449 $as_echo X"$ac_file" |
16450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451 s//\1/
16452 q
16453 }
16454 /^X\(\/\/\)[^/].*/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\/\)$/{
16459 s//\1/
16460 q
16461 }
16462 /^X\(\/\).*/{
16463 s//\1/
16464 q
16465 }
16466 s/.*/./; q'`
16467 { as_dir="$ac_dir"
16468 case $as_dir in #(
16469 -*) as_dir=./$as_dir;;
16470 esac
16471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16472 as_dirs=
16473 while :; do
16474 case $as_dir in #(
16475 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16476 *) as_qdir=$as_dir;;
16477 esac
16478 as_dirs="'$as_qdir' $as_dirs"
16479 as_dir=`$as_dirname -- "$as_dir" ||
16480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16481 X"$as_dir" : 'X\(//\)[^/]' \| \
16482 X"$as_dir" : 'X\(//\)$' \| \
16483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16484 $as_echo X"$as_dir" |
16485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16486 s//\1/
16487 q
16488 }
16489 /^X\(\/\/\)[^/].*/{
16490 s//\1/
16491 q
16492 }
16493 /^X\(\/\/\)$/{
16494 s//\1/
16495 q
16496 }
16497 /^X\(\/\).*/{
16498 s//\1/
16499 q
16500 }
16501 s/.*/./; q'`
16502 test -d "$as_dir" && break
16503 done
16504 test -z "$as_dirs" || eval "mkdir $as_dirs"
16505 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16506 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16507 { (exit 1); exit 1; }; }; }
16508 ac_builddir=.
16509
16510 case "$ac_dir" in
16511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16512 *)
16513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16514 # A ".." for each directory in $ac_dir_suffix.
16515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16516 case $ac_top_builddir_sub in
16517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16519 esac ;;
16520 esac
16521 ac_abs_top_builddir=$ac_pwd
16522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16523 # for backward compatibility:
16524 ac_top_builddir=$ac_top_build_prefix
16525
16526 case $srcdir in
16527 .) # We are building in place.
16528 ac_srcdir=.
16529 ac_top_srcdir=$ac_top_builddir_sub
16530 ac_abs_top_srcdir=$ac_pwd ;;
16531 [\\/]* | ?:[\\/]* ) # Absolute name.
16532 ac_srcdir=$srcdir$ac_dir_suffix;
16533 ac_top_srcdir=$srcdir
16534 ac_abs_top_srcdir=$srcdir ;;
16535 *) # Relative name.
16536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16537 ac_top_srcdir=$ac_top_build_prefix$srcdir
16538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16539 esac
16540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16541
16542
16543 case $ac_mode in
16544 :F)
16545 #
16546 # CONFIG_FILE
16547 #
16548
16549 case $INSTALL in
16550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16552 esac
16553 ac_MKDIR_P=$MKDIR_P
16554 case $MKDIR_P in
16555 [\\/$]* | ?:[\\/]* ) ;;
16556 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16557 esac
16558 _ACEOF
16559
16560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16561 # If the template does not know about datarootdir, expand it.
16562 # FIXME: This hack should be removed a few years after 2.60.
16563 ac_datarootdir_hack=; ac_datarootdir_seen=
16564
16565 ac_sed_dataroot='
16566 /datarootdir/ {
16567 p
16568 q
16569 }
16570 /@datadir@/p
16571 /@docdir@/p
16572 /@infodir@/p
16573 /@localedir@/p
16574 /@mandir@/p
16575 '
16576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16577 *datarootdir*) ac_datarootdir_seen=yes;;
16578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16579 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16581 _ACEOF
16582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16583 ac_datarootdir_hack='
16584 s&@datadir@&$datadir&g
16585 s&@docdir@&$docdir&g
16586 s&@infodir@&$infodir&g
16587 s&@localedir@&$localedir&g
16588 s&@mandir@&$mandir&g
16589 s&\\\${datarootdir}&$datarootdir&g' ;;
16590 esac
16591 _ACEOF
16592
16593 # Neutralize VPATH when `$srcdir' = `.'.
16594 # Shell code in configure.ac might set extrasub.
16595 # FIXME: do we really want to maintain this feature?
16596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16597 ac_sed_extra="$ac_vpsub
16598 $extrasub
16599 _ACEOF
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 :t
16602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16603 s|@configure_input@|$ac_sed_conf_input|;t t
16604 s&@top_builddir@&$ac_top_builddir_sub&;t t
16605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16606 s&@srcdir@&$ac_srcdir&;t t
16607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16608 s&@top_srcdir@&$ac_top_srcdir&;t t
16609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16610 s&@builddir@&$ac_builddir&;t t
16611 s&@abs_builddir@&$ac_abs_builddir&;t t
16612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16613 s&@INSTALL@&$ac_INSTALL&;t t
16614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16615 $ac_datarootdir_hack
16616 "
16617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16618 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16619 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16620 { (exit 1); exit 1; }; }
16621
16622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16625 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16626 which seems to be undefined. Please make sure it is defined." >&5
16627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16628 which seems to be undefined. Please make sure it is defined." >&2;}
16629
16630 rm -f "$tmp/stdin"
16631 case $ac_file in
16632 -) cat "$tmp/out" && rm -f "$tmp/out";;
16633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16634 esac \
16635 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16636 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16637 { (exit 1); exit 1; }; }
16638 ;;
16639 :H)
16640 #
16641 # CONFIG_HEADER
16642 #
16643 if test x"$ac_file" != x-; then
16644 {
16645 $as_echo "/* $configure_input */" \
16646 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16647 } >"$tmp/config.h" \
16648 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16649 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16650 { (exit 1); exit 1; }; }
16651 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16652 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16653 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16654 else
16655 rm -f "$ac_file"
16656 mv "$tmp/config.h" "$ac_file" \
16657 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16658 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16659 { (exit 1); exit 1; }; }
16660 fi
16661 else
16662 $as_echo "/* $configure_input */" \
16663 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16664 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16665 $as_echo "$as_me: error: could not create -" >&2;}
16666 { (exit 1); exit 1; }; }
16667 fi
16668 ;;
16669
16670
16671 esac
16672
16673 done # for ac_tag
16674
16675
16676 { (exit 0); exit 0; }
16677 _ACEOF
16678 chmod +x $CONFIG_STATUS
16679 ac_clean_files=$ac_clean_files_save
16680
16681 test $ac_write_fail = 0 ||
16682 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16683 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16684 { (exit 1); exit 1; }; }
16685
16686
16687 # configure is writing to config.log, and then calls config.status.
16688 # config.status does its own redirection, appending to config.log.
16689 # Unfortunately, on DOS this fails, as config.log is still kept open
16690 # by configure, so config.status won't be able to write to it; its
16691 # output is simply discarded. So we exec the FD to /dev/null,
16692 # effectively closing config.log, so it can be properly (re)opened and
16693 # appended to by config.status. When coming back to configure, we
16694 # need to make the FD available again.
16695 if test "$no_create" != yes; then
16696 ac_cs_success=:
16697 ac_config_status_args=
16698 test "$silent" = yes &&
16699 ac_config_status_args="$ac_config_status_args --quiet"
16700 exec 5>/dev/null
16701 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16702 exec 5>>config.log
16703 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16704 # would make configure fail if this is the last instruction.
16705 $ac_cs_success || { (exit 1); exit 1; }
16706 fi
16707 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16708 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16709 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16710 fi
16711
16712
16713 if test x$ODIRECT != xyes; then
16714 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16715 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16716 fi
This page took 0.9132 seconds and 6 git commands to generate.